webpackJsonp([2],[function(e,t,r){"use strict";r(21),r(1),r(3),r(22),r(24),r(63),r(450),r(729)},function(e,t,r){(function(e){/**
	 * @license Angular v2.0.0
	 * (c) 2010-2016 Google, Inc. https://angular.io/
	 * License: MIT
	 */
!function(e,n){n(t,r(2),r(3),r(21))}(this,function(t,r,n,i){"use strict";function isPresent(e){return void 0!==e&&null!==e}var o,s=i.__platform_browser_private__.INTERNAL_BROWSER_PLATFORM_PROVIDERS;o="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:e:window;var a=o;a.assert=function(e){};var u=(function(){function NumberWrapper(){}return NumberWrapper.toFixed=function(e,t){return e.toFixed(t)},NumberWrapper.equal=function(e,t){return e===t},NumberWrapper.parseIntAutoRadix=function(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t},NumberWrapper.parseInt=function(e,t){if(10==t){if(/^(\-|\+)?[0-9]+$/.test(e))return parseInt(e,t)}else if(16==t){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(e))return parseInt(e,t)}else{var r=parseInt(e,t);if(!isNaN(r))return r}throw new Error("Invalid integer literal when parsing "+e+" in base "+t)},Object.defineProperty(NumberWrapper,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),NumberWrapper.isNumeric=function(e){return!isNaN(e-parseFloat(e))},NumberWrapper.isNaN=function(e){return isNaN(e)},NumberWrapper.isInteger=function(e){return Number.isInteger(e)},NumberWrapper}(),this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),c=function(e){function ResourceLoaderImpl(){e.apply(this,arguments)}return u(ResourceLoaderImpl,e),ResourceLoaderImpl.prototype.get=function(e){var t,r,n=new Promise(function(e,n){t=e,r=n}),i=new XMLHttpRequest;return i.open("GET",e,!0),i.responseType="text",i.onload=function(){var n=isPresent(i.response)?i.response:i.responseText,o=1223===i.status?204:i.status;0===o&&(o=n?200:0),200<=o&&o<=300?t(n):r("Failed to load "+e)},i.onerror=function(){r("Failed to load "+e)},i.send(),n},ResourceLoaderImpl.decorators=[{type:n.Injectable}],ResourceLoaderImpl.ctorParameters=[],ResourceLoaderImpl}(r.ResourceLoader),l=[s,{provide:n.COMPILER_OPTIONS,useValue:{providers:[{provide:r.ResourceLoader,useClass:c}]},multi:!0}],p=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},h=function(e){function CachedResourceLoader(){if(e.call(this),this._cache=a.$templateCache,null==this._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.")}return p(CachedResourceLoader,e),CachedResourceLoader.prototype.get=function(e){return this._cache.hasOwnProperty(e)?Promise.resolve(this._cache[e]):Promise.reject("CachedResourceLoader: Did not find cached template for "+e)},CachedResourceLoader}(r.ResourceLoader),f={INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS:l,ResourceLoaderImpl:c},d=[{provide:r.ResourceLoader,useClass:h}],m=n.createPlatformFactory(r.platformCoreDynamic,"browserDynamic",l);t.RESOURCE_CACHE_PROVIDER=d,t.platformBrowserDynamic=m,t.__platform_browser_dynamic_private__=f})}).call(t,function(){return this}())},function(e,t,r){(function(e){/**
	 * @license Angular v2.0.0
	 * (c) 2010-2016 Google, Inc. https://angular.io/
	 * License: MIT
	 */
!function(e,n){n(t,r(3))}(this,function(t,r){"use strict";function isPresent(e){return void 0!==e&&null!==e}function isBlank(e){return void 0===e||null===e}function isString(e){return"string"==typeof e}function isStringMap(e){return"object"==typeof e&&null!==e}function isStrictStringMap(e){return isStringMap(e)&&Object.getPrototypeOf(e)===o}function isArray(e){return Array.isArray(e)}function stringify(e){if("string"==typeof e)return e;if(void 0===e||null===e)return""+e;if(e.overriddenName)return e.overriddenName;if(e.name)return e.name;var t=e.toString(),r=t.indexOf("\n");return r===-1?t:t.substring(0,r)}function normalizeBlank(e){return isBlank(e)?null:e}function normalizeBool(e){return!isBlank(e)&&e}function isJsObject(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function evalExpression(e,t,r,n){var i=r+"\nreturn "+t+"\n//# sourceURL="+e,o=[],s=[];for(var a in n)o.push(a),s.push(n[a]);return(new(Function.bind.apply(Function,[void 0].concat(o.concat(i))))).apply(void 0,s)}function isPrimitive(e){return!isJsObject(e)}function escapeRegExp(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function templateVisitAll(e,t,r){void 0===r&&(r=null);var n=[];return t.forEach(function(t){var i=t.visit(e,r);isPresent(i)&&n.push(i)}),n}function _flattenArray(e,t){if(isPresent(e))for(var r=0;r<e.length;r++){var n=e[r];isArray(n)?_flattenArray(n,t):t.push(n)}return t}function splitNsName(e){if(":"!=e[0])return[null,e];var t=e.indexOf(":",1);if(t==-1)throw new Error('Unsupported format "'+e+'" expecting ":namespace:name"');return[e.slice(1,t),e.slice(t+1)]}function getNsPrefix(e){return null===e?null:splitNsName(e)[0]}function mergeNsAndName(e,t){return e?":"+e+":"+t:t}function getHtmlTagDefinition(e){return j[e.toLowerCase()]||L}function replaceVarInExpression(e,t,r){var n=new Ge(e,t);return r.visitExpression(n,null)}function findReadVarNames(e){var t=new Ke;return t.visitAllStatements(e,null),t.varNames}function variable(e,t){return void 0===t&&(t=null),new ae(e,t)}function importExpr(e,t){return void 0===t&&(t=null),new ve(e,null,t)}function importType(e,t,r){return void 0===t&&(t=null),void 0===r&&(r=null),isPresent(e)?new J(e,t,r):null}function literalArr(e,t){return void 0===t&&(t=null),new Pe(e,t)}function literalMap(e,t){return void 0===t&&(t=null),new Te(e,t)}function not(e){return new be(e)}function fn(e,t,r){return void 0===r&&(r=null),new Se(e,t,r)}function literal(e,t){return void 0===t&&(t=null),new me(e,t)}function camelCaseToDashCase(e){return s.replaceAllMapped(e,Xe,function(e){return"-"+e[1].toLowerCase()})}function splitAtColon(e,t){var r=e.indexOf(":");return r==-1?t:[e.slice(0,r).trim(),e.slice(r+1).trim()]}function sanitizeIdentifier(e){return s.replaceAll(e,/\W/g,"_")}function visitValue(e,t,r){return isArray(e)?t.visitArray(e,r):isStrictStringMap(e)?t.visitStringMap(e,r):isBlank(e)||isPrimitive(e)?t.visitPrimitive(e,r):t.visitOther(e,r)}function assetUrl(e,t,r){return void 0===t&&(t=null),void 0===r&&(r="src"),null==t?"asset:@angular/lib/"+e+"/index":"asset:@angular/lib/"+e+"/src/"+t}function createDiTokenExpression(e){return isPresent(e.value)?literal(e.value):e.identifierIsInstance?importExpr(e.identifier).instantiate([],importType(e.identifier,[],[N.Const])):importExpr(e.identifier)}function unimplemented(){throw new Error("unimplemented")}function createHostComponentMeta(e){var t=W.parse(e.selector)[0].getMatchingElementTemplate();return St.create({type:new yt({reference:Object,name:e.type.name+"_Host",moduleUrl:e.type.moduleUrl,isHost:!0}),template:new _t({encapsulation:r.ViewEncapsulation.None,template:t,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[]}),changeDetection:r.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[]})}function removeIdentifierDuplicates(e){var t=new Map;return e.forEach(function(e){t.get(e.identifier.reference)||t.set(e.identifier.reference,e)}),O.values(t)}function _normalizeArray(e){return isPresent(e)?e:[]}function isStaticSymbol(e){return isStringMap(e)&&isPresent(e.name)&&isPresent(e.filePath)}function isWhitespace(e){return e>=er&&e<=or||e==$r}function isDigit(e){return xr<=e&&e<=Ar}function isAsciiLetter(e){return e>=Fr&&e<=Qr||e>=Or&&e<=kr}function isAsciiHexDigit(e){return e>=Fr&&e<=Wr||e>=Or&&e<=Rr||isDigit(e)}function assertArrayOfStrings(e,t){if(r.isDevMode()&&!isBlank(t)){if(!isArray(t))throw new Error("Expected '"+e+"' to be an array of strings.");for(var n=0;n<t.length;n+=1)if(!isString(t[n]))throw new Error("Expected '"+e+"' to be an array of strings.")}}function assertInterpolationSymbols(e,t){if(isPresent(t)&&(!isArray(t)||2!=t.length))throw new Error("Expected '"+e+"' to be an array, [start, end].");if(r.isDevMode()&&!isBlank(t)){var n=t[0],i=t[1];en.forEach(function(e){if(e.test(n)||e.test(i))throw new Error("['"+n+"', '"+i+"'] contains unusable interpolation symbol.")})}}function newCharacterToken(e,t){return new an(e,Ie.Character,t,s.fromCharCode(t))}function newIdentifierToken(e,t){return new an(e,Ie.Identifier,0,t)}function newKeywordToken(e,t){return new an(e,Ie.Keyword,0,t)}function newOperatorToken(e,t){return new an(e,Ie.Operator,0,t)}function newStringToken(e,t){return new an(e,Ie.String,0,t)}function newNumberToken(e,t){return new an(e,Ie.Number,t,"")}function newErrorToken(e,t){return new an(e,Ie.Error,0,t)}function isIdentifierStart(e){return Fr<=e&&e<=Qr||Or<=e&&e<=kr||e==Lr||e==cr}function isIdentifier(e){if(0==e.length)return!1;var t=new cn(e);if(!isIdentifierStart(t.peek))return!1;for(t.advance();t.peek!==Yt;){if(!isIdentifierPart(t.peek))return!1;t.advance()}return!0}function isIdentifierPart(e){return isAsciiLetter(e)||isDigit(e)||e==Lr||e==cr}function isExponentStart(e){return e==Br||e==Ir}function isExponentSign(e){return e==br||e==vr}function isQuote(e){return e===hr||e===ar||e===Yr}function unescape(e){switch(e){case Ur:return tr;case Wr:return nr;case zr:return ir;case Hr:return er;case Gr:return rr;default:return e}}function _createInterpolateRegExp(e){var t=escapeRegExp(e.start)+"([\\s\\S]*?)"+escapeRegExp(e.end);return new RegExp(t,"g")}function visitAll(e,t,r){void 0===r&&(r=null);var n=[];return t.forEach(function(t){var i=t.visit(e,r);i&&n.push(i)}),n}function tokenize(e,t,r,n,i){return void 0===n&&(n=!1),void 0===i&&(i=rn),new Nn(new yn(e,t),r,n,i).tokenize()}function _unexpectedCharacterErrorMsg(e){var t=e===Yt?"EOF":String.fromCharCode(e);return'Unexpected character "'+t+'"'}function _unknownEntityErrorMsg(e){return'Unknown entity "'+e+'" - use the "&#<decimal>;" or  "&#x<hex>;" syntax'}function isNotWhitespace(e){return!isWhitespace(e)||e===Yt}function isNameEnd(e){return isWhitespace(e)||e===Pr||e===_r||e===hr||e===ar||e===Cr}function isPrefixEnd(e){return(e<Fr||Qr<e)&&(e<Or||kr<e)&&(e<xr||e>Ar)}function isDigitEntityEnd(e){return e==wr||e==Yt||!isAsciiHexDigit(e)}function isNamedEntityEnd(e){return e==wr||e==Yt||!isAsciiLetter(e)}function isExpansionFormStart(e,t,r){var n=!!r&&e.indexOf(r.start,t)==t;return e.charCodeAt(t)==Xr&&!n}function isExpansionCaseStart(e){return e===Cr||isAsciiLetter(e)}function compareCharCodeCaseInsensitive(e,t){return toUpperCaseCharCode(e)==toUpperCaseCharCode(t)}function toUpperCaseCharCode(e){return e>=Fr&&e<=Qr?e-Fr+Or:e}function mergeTextTokens(e){for(var t,r=[],n=0;n<e.length;n++){var i=e[n];t&&t.type==gn.TEXT&&i.type==gn.TEXT?(t.parts[0]+=i.parts[0],t.sourceSpan.end=i.sourceSpan.end):(t=i,r.push(t))}return r}function lastOnStack(e,t){return e.length>0&&e[e.length-1]===t}/**
	   * @license
	   * Copyright Google Inc. All Rights Reserved.
	   *
	   * Use of this source code is governed by an MIT-style license that can be
	   * found in the LICENSE file at https://angular.io/license
	   */
function digestMessage(e){return sha1(serializeNodes(e.nodes).join("")+("["+e.meaning+"]"))}function serializeNodes(e){return e.map(function(e){return e.visit(Wn,null)})}function sha1(e){var t=utf8Encode(e),r=stringToWords32(t),n=8*t.length,i=new Array(80),o=[1732584193,4023233417,2562383102,271733878,3285377520],s=o[0],a=o[1],u=o[2],c=o[3],l=o[4];r[n>>5]|=128<<24-n%32,r[(n+64>>9<<4)+15]=n;for(var p=0;p<r.length;p+=16){for(var h=[s,a,u,c,l],f=h[0],d=h[1],m=h[2],v=h[3],y=h[4],b=0;b<80;b++){b<16?i[b]=r[p+b]:i[b]=rol32(i[b-3]^i[b-8]^i[b-14]^i[b-16],1);var g=fk(b,a,u,c),_=g[0],S=g[1],w=[rol32(s,5),_,l,S,i[b]].reduce(add32);T=[c,u,rol32(a,30),s,w],l=T[0],c=T[1],u=T[2],a=T[3],s=T[4]}x=[add32(s,f),add32(a,d),add32(u,m),add32(c,v),add32(l,y)],s=x[0],a=x[1],u=x[2],c=x[3],l=x[4]}for(var E=words32ToString([s,a,u,c,l]),C="",p=0;p<E.length;p++){var P=E.charCodeAt(p);C+=(P>>>4&15).toString(16)+(15&P).toString(16)}return C.toLowerCase();var T,x}function utf8Encode(e){for(var t="",r=0;r<e.length;r++){var n=decodeSurrogatePairs(e,r);n<=127?t+=String.fromCharCode(n):n<=2047?t+=String.fromCharCode(192|n>>>6,128|63&n):n<=65535?t+=String.fromCharCode(224|n>>>12,128|n>>>6&63,128|63&n):n<=2097151&&(t+=String.fromCharCode(240|n>>>18,128|n>>>12&63,128|n>>>6&63,128|63&n))}return t}function decodeSurrogatePairs(e,t){if(t<0||t>=e.length)throw new Error("index="+t+' is out of range in "'+e+'"');var r,n=e.charCodeAt(t);return n>=55296&&n<=57343&&e.length>t+1&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?1024*(n-55296)+r-56320+65536:n}function stringToWords32(e){for(var t=Array(e.length>>>2),r=0;r<t.length;r++)t[r]=0;for(var r=0;r<e.length;r++)t[r>>>2]|=(255&e.charCodeAt(r))<<8*(3-r&3);return t}function words32ToString(e){for(var t="",r=0;r<4*e.length;r++)t+=String.fromCharCode(e[r>>>2]>>>8*(3-r&3)&255);return t}function fk(e,t,r,n){return e<20?[t&r|~t&n,1518500249]:e<40?[t^r^n,1859775393]:e<60?[t&r|t&n|r&n,2400959708]:[t^r^n,3395469782]}function add32(e,t){var r=(65535&e)+(65535&t),n=(e>>16)+(t>>16)+(r>>16);return n<<16|65535&r}function rol32(e,t){return e<<t|e>>>32-t}function createI18nMessageFactory(e){var t=new $n(Zn,e);return function(e,r,n){return t.toI18nMessage(e,r,n)}}function _extractPlaceholderName(e){return e.split(Yn)[1]}function extractMessages(e,t,r,n){var i=new ai(r,n);return i.extract(e,t)}function mergeTranslations(e,t,r,n,i){var o=new ai(n,i);return o.merge(e,t,r)}function _isOpeningComment(e){return e instanceof Tn&&e.value&&e.value.startsWith("i18n")}function _isClosingComment(e){return e instanceof Tn&&e.value&&"/i18n"===e.value}function _getI18nAttr(e){return e.attrs.find(function(e){return e.name===ri})||null}function _splitMeaningAndDesc(e){if(!e)return["",""];var t=e.indexOf("|");return t==-1?["",e]:[e.slice(0,t),e.slice(t+1)]}function getXmlTagDefinition(e){return li}/**
	   * @license
	   * Copyright Google Inc. All Rights Reserved.
	   *
	   * Use of this source code is governed by an MIT-style license that can be
	   * found in the LICENSE file at https://angular.io/license
	   */
function extractPlaceholders(e){var t=e.getMessageMap(),r={};return Object.keys(t).forEach(function(e){r[e]=t[e].placeholders}),r}function extractPlaceholderToIds(e){var t=e.getMessageMap(),r={};return Object.keys(t).forEach(function(e){r[e]=t[e].placeholderToMsgIds}),r}function serialize(e){return e.map(function(e){return e.visit(di)}).join("")}function _escapeXml(e){return gi.reduce(function(e,t){return e.replace(t[0],t[1])},e)}function resolveIdentifier(e){return new ht({name:e.name,moduleUrl:e.moduleUrl,reference:Oo.resolveIdentifier(e.name,e.moduleUrl,e.runtime)})}function identifierToken(e){return new vt({identifier:e})}function resolveIdentifierToken(e){return identifierToken(resolveIdentifier(e))}function resolveEnumIdentifier(e,t){var r=Oo.resolveEnum(e.reference,t);return new ht({name:e.name+"."+t,moduleUrl:e.moduleUrl,reference:r})}function expandNodes(e){var t=new os;return new ns(visitAll(t,e),t.isExpanded,t.errors)}function _expandPluralForm(e,t){var r=e.cases.map(function(e){rs.indexOf(e.value)!=-1||e.value.match(/^=\d+$/)||t.push(new is(e.valueSourceSpan,'Plural cases should be "=<number>" or one of '+rs.join(", ")));var r=expandNodes(e.expression);return t.push.apply(t,r.errors),new Pn("template",[new Cn("ngPluralCase",""+e.value,e.valueSourceSpan)],r.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)}),n=new Cn("[ngPlural]",e.switchValue,e.switchValueSourceSpan);return new Pn("ng-container",[n],r,e.sourceSpan,e.sourceSpan,e.sourceSpan)}function _expandDefaultForm(e,t){var r=e.cases.map(function(e){var r=expandNodes(e.expression);return t.push.apply(t,r.errors),new Pn("template",[new Cn("ngSwitchCase",""+e.value,e.valueSourceSpan)],r.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)}),n=new Cn("[ngSwitch]",e.switchValue,e.switchValueSourceSpan);return new Pn("ng-container",[n],r,e.sourceSpan,e.sourceSpan,e.sourceSpan)}function _transformProvider(e,t){var r=t.useExisting,n=t.useValue,i=t.deps;return new dt({token:e.token,useClass:e.useClass,useExisting:r,useFactory:e.useFactory,useValue:n,deps:i,multi:e.multi})}function _transformProviderAst(e,t){var r=t.eager,n=t.providers;return new _(e.token,e.multiProvider,e.eager||r,n,e.providerType,e.lifecycleHooks,e.sourceSpan)}function _normalizeProviders(e,t,r,n){return void 0===n&&(n=null),isBlank(n)&&(n=[]),isPresent(e)&&e.forEach(function(e){if(isArray(e))_normalizeProviders(e,t,r,n);else{var i=void 0;e instanceof dt?i=e:e instanceof yt?i=new dt({token:new vt({identifier:e}),useClass:e}):r.push(new as("Unknown provider type "+e,t)),isPresent(i)&&n.push(i)}}),n}function _resolveProvidersFromDirectives(e,r,n){var i=new Map;e.forEach(function(e){var o=new dt({token:new vt({identifier:e.type}),useClass:e.type});_resolveProviders([o],e.isComponent?t.ProviderAstType.Component:t.ProviderAstType.Directive,!0,r,n,i)});var o=e.filter(function(e){return e.isComponent}).concat(e.filter(function(e){return!e.isComponent}));return o.forEach(function(e){_resolveProviders(_normalizeProviders(e.providers,r,n),t.ProviderAstType.PublicService,!1,r,n,i),_resolveProviders(_normalizeProviders(e.viewProviders,r,n),t.ProviderAstType.PrivateService,!1,r,n,i)}),i}function _resolveProviders(e,t,r,n,i,o){e.forEach(function(e){var s=o.get(e.token.reference);if(isPresent(s)&&s.multiProvider!==e.multi&&i.push(new as("Mixing multi and non multi provider is not possible for token "+s.token.name,n)),isBlank(s)){var a=e.token.identifier&&e.token.identifier instanceof yt?e.token.identifier.lifecycleHooks:[];s=new _(e.token,e.multi,r||a.length>0,[e],t,a,n),o.set(e.token.reference,s)}else e.multi||R.clear(s.providers),s.providers.push(e)})}function _getViewQueries(e){var t=new Map;return isPresent(e.viewQueries)&&e.viewQueries.forEach(function(e){return _addQueryToTokenMap(t,e)}),e.type.diDeps.forEach(function(e){isPresent(e.viewQuery)&&_addQueryToTokenMap(t,e.viewQuery)}),t}function _getContentQueries(e){var t=new Map;return e.forEach(function(e){isPresent(e.queries)&&e.queries.forEach(function(e){return _addQueryToTokenMap(t,e)}),e.type.diDeps.forEach(function(e){isPresent(e.query)&&_addQueryToTokenMap(t,e.query)})}),t}function _addQueryToTokenMap(e,t){t.selectors.forEach(function(r){var n=e.get(r.reference);isBlank(n)&&(n=[],e.set(r.reference,n)),n.push(t)})}function isStyleUrlResolvable(e){if(isBlank(e)||0===e.length||"/"==e[0])return!1;var t=e.match(ds);return null===t||"package"==t[1]||"asset"==t[1]}function extractStyleUrls(e,t,r){var n=[],i=s.replaceAllMapped(r,fs,function(r){var i=isPresent(r[1])?r[1]:r[2];return isStyleUrlResolvable(i)?(n.push(e.resolve(t,i)),""):r[0]});return new hs(i,n)}function preparseElement(e){var t=null,r=null,n=null,i=!1,o=null;e.attrs.forEach(function(e){var s=e.name.toLowerCase();s==ms?t=e.value:s==gs?r=e.value:s==bs?n=e.value:e.name==Es?i=!0:e.name==Cs&&e.value.length>0&&(o=e.value)}),t=normalizeNgContentSelect(t);var s=e.name.toLowerCase(),a=si.OTHER;return splitNsName(s)[1]==vs?a=si.NG_CONTENT:s==Ss?a=si.STYLE:s==ws?a=si.SCRIPT:s==ys&&n==_s&&(a=si.STYLESHEET),new Ts(a,t,r,i,o)}function normalizeNgContentSelect(e){return null===e||0===e.length?"*":e}function splitClasses(e){return e.trim().split(/\s+/g)}function createElementCssSelector(e,t){var r=new W,n=splitNsName(e)[1];r.setElement(n);for(var i=0;i<t.length;i++){var o=t[i][0],s=splitNsName(o)[1],a=t[i][1];if(r.addAttribute(s,a),o.toLowerCase()==zs){var u=splitClasses(a);u.forEach(function(e){return r.addClassName(e)})}}return r}function unimplemented$1(){throw new Error("unimplemented")}function parseAnimationEntry(e){var t=[],r={},n=[],i=[];e.definitions.forEach(function(e){e instanceof nt?_parseAnimationDeclarationStates(e,t).forEach(function(e){i.push(e),r[e.stateName]=e.styles}):n.push(e)});var o=n.map(function(e){return _parseAnimationStateTransition(e,r,t)}),s=new fa(e.name,i,o);return new Ra(s,t)}function parseAnimationOutputName(e,t){var r,n=e.split("."),i="";if(n.length>1){r=n[0];var o=n[1];switch(o){case"start":case"done":i=o;break;default:t.push(new Ia('The provided animation output phase value "'+o+'" for "@'+r+'" is not supported (use start or done)'))}}else r=e,t.push(new Ia("The animation trigger output event (@"+r+") is missing its phase value name (start or done are currently supported)"));return new jo(r,i,e)}function _parseAnimationDeclarationStates(e,t){var r=[];e.styles.styles.forEach(function(e){isStringMap(e)?r.push(e):t.push(new Ia("State based animations cannot contain references to other states"))});var n=new ba(r),i=e.stateNameExpr.split(/\s*,\s*/);return i.map(function(e){return new da(e,n)})}function _parseAnimationStateTransition(e,t,r){var n=new Pa,i=[],o=e.stateChangeExpr.split(/\s*,\s*/);o.forEach(function(e){_parseAnimationTransitionExpr(e,r).forEach(function(e){i.push(e)})});var s=_normalizeAnimationEntry(e.steps),a=_normalizeStyleSteps(s,t,r),u=_parseTransitionAnimation(a,0,n,t,r);0==r.length&&_fillAnimationAstStartingKeyframes(u,n,r);var c=u instanceof _a?u:new wa([u]);return new va(i,c)}function _parseAnimationTransitionExpr(e,t){var r=[],n=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(!isPresent(n)||n.length<4)return t.push(new Ia("the provided "+e+" is not of a supported format")),r;var i=n[1],o=n[2],s=n[3];r.push(new ma(i,s));var a=i==Lo&&s==Lo;return"<"!=o[0]||a||r.push(new ma(s,i)),r}function _normalizeAnimationEntry(e){return isArray(e)?new lt(e):e}function _normalizeStyleMetadata(e,t,r){var n=[];return e.styles.forEach(function(e){isString(e)?R.addAll(n,_resolveStylesFromState(e,t,r)):n.push(e)}),n}function _normalizeStyleSteps(e,t,r){var n=_normalizeStyleStepEntry(e,t,r);return e instanceof pt?new pt(n):new lt(n)}function _mergeAnimationStyles(e,t){if(isStringMap(t)&&e.length>0){var r=e.length-1,n=e[r];if(isStringMap(n))return void(e[r]=I.merge(n,t))}e.push(t)}function _normalizeStyleStepEntry(e,t,r){var n;if(!(e instanceof ct))return[e];n=e.steps;var i,o=[];return n.forEach(function(e){if(e instanceof at)isPresent(i)||(i=[]),_normalizeStyleMetadata(e,t,r).forEach(function(e){_mergeAnimationStyles(i,e)});else{if(isPresent(i)&&(o.push(new at(0,i)),i=null),e instanceof ut){var n=e.styles;n instanceof at?n.styles=_normalizeStyleMetadata(n,t,r):n instanceof st&&n.steps.forEach(function(e){e.styles=_normalizeStyleMetadata(e,t,r)})}else if(e instanceof ct){var s=_normalizeStyleStepEntry(e,t,r);e=e instanceof pt?new pt(s):new lt(s)}o.push(e)}}),isPresent(i)&&o.push(new at(0,i)),o}function _resolveStylesFromState(e,t,r){var n=[];if(":"!=e[0])r.push(new Ia('Animation states via styles must be prefixed with a ":"'));else{var i=e.substring(1),o=t[i];isPresent(o)?o.styles.forEach(function(e){isStringMap(e)&&n.push(e)}):r.push(new Ia('Unable to apply styles due to missing a state: "'+i+'"'))}return n}function _parseAnimationKeyframes(e,t,r,n,i){var o=e.steps.length,s=0;e.steps.forEach(function(e){return s+=isPresent(e.offset)?1:0}),s>0&&s<o&&(i.push(new Ia("Not all style() entries contain an offset for the provided keyframe()")),s=o);var a=o-1,u=0==s?1/a:0,c=[],l=0,p=!1,h=0;e.steps.forEach(function(e){var t=e.offset,r={};e.styles.forEach(function(e){I.forEach(e,function(e,t){"offset"!=t&&(r[t]=e)})}),isPresent(t)?p=p||t<h:t=l==a?Aa:u*l,c.push([t,r]),h=t,l++}),p&&R.sort(c,function(e,t){return e[0]<=t[0]?-1:1});var f,d=c[0];d[0]!=xa&&R.insert(c,0,d=[xa,{}]);var m=d[1];a=c.length-1;var v=c[a];v[0]!=Aa&&(c.push(v=[Aa,{}]),a++);var y=v[1];for(f=1;f<=a;f++){var b=c[f],g=b[1];I.forEach(g,function(e,t){isPresent(m[t])||(m[t]=Wo)})}for(f=a-1;f>=0;f--){var b=c[f],g=b[1];I.forEach(g,function(e,t){isPresent(y[t])||(y[t]=e)})}return c.map(function(e){return new ga(e[0],new ba([e[1]]))})}function _parseTransitionAnimation(e,t,r,n,i){var o,s=0,a=t;if(e instanceof ct){var u,c=0,l=[],p=e instanceof pt;if(e.steps.forEach(function(e){var o=p?a:t;if(e instanceof at)return e.styles.forEach(function(e){var t=e;I.forEach(t,function(e,t){r.insertAtTime(t,o,e)})}),void(u=e.styles);var h=_parseTransitionAnimation(e,o,r,n,i);if(isPresent(u)){if(e instanceof ct){var f=new ba(u);l.push(new ya(f,[],0,0,""))}else{var d=h;R.addAll(d.startingStyles.styles,u)}u=null}var m=h.playTime;t+=m,s+=m,c=Ea.max(m,c),l.push(h)}),isPresent(u)){var h=new ba(u);l.push(new ya(h,[],0,0,""))}p?(o=new Sa(l),s=c,t=a+s):o=new wa(l)}else if(e instanceof ut){var f,d=_parseTimeExpression(e.timings,i),m=e.styles;if(m instanceof st)f=_parseAnimationKeyframes(m,t,r,n,i);else{var v=m,y=Aa,b=new ba(v.styles),g=new ga(y,b);f=[g]}o=new ya(new ba([]),f,d.duration,d.delay,d.easing),s=d.duration+d.delay,t+=s,f.forEach(function(e){return e.styles.styles.forEach(function(e){return I.forEach(e,function(e,n){return r.insertAtTime(n,t,e)})})})}else o=new ya(null,[],0,0,"");return o.playTime=s,o.startTime=a,o}function _fillAnimationAstStartingKeyframes(e,t,r){if(e instanceof ya&&e.keyframes.length>0){var n=e.keyframes;if(1==n.length){var i=n[0],o=_createStartKeyframeFromEndKeyframe(i,e.startTime,e.playTime,t,r);e.keyframes=[o,i]}}else e instanceof _a&&e.steps.forEach(function(e){return _fillAnimationAstStartingKeyframes(e,t,r)})}function _parseTimeExpression(e,t){var r,n=/^([\.\d]+)(m?s)(?:\s+([\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?/i,i=0,o=null;if(isString(e)){var s=e.match(n);if(null===s)return t.push(new Ia('The provided timing value "'+e+'" is invalid.')),new Ma(0,0,null);var a=parseFloat(s[1]),u=s[2];"s"==u&&(a*=Oa),r=Ea.floor(a);var c=s[3],l=s[4];if(isPresent(c)){var p=parseFloat(c);isPresent(l)&&"s"==l&&(p*=Oa),i=Ea.floor(p)}var h=s[5];isBlank(h)||(o=h)}else r=e;return new Ma(r,i,o)}function _createStartKeyframeFromEndKeyframe(e,t,r,n,i){var o={},s=t+r;return e.styles.styles.forEach(function(e){I.forEach(e,function(e,r){if("offset"!=r){var a,u,c,l=n.indexOfAtOrBeforeTime(r,t);isPresent(l)?(a=n.getByIndex(r,l),c=a.value,u=n.getByIndex(r,l+1)):c=Wo,isPresent(u)&&!u.matches(s,e)&&i.push(new Ia('The animated CSS property "'+r+'" unexpectedly changes between steps "'+a.time+'ms" and "'+s+'ms" at "'+u.time+'ms"')),o[r]=c}})}),new ga(xa,new ba([o]))}function _compareToAnimationStateExpr(e,t){var r=literal(Bo);switch(t){case Bo:return e.equals(r);case Lo:return literal(!0);default:return e.equals(literal(t))}}function _isEndStateAnimateStep(e){if(e instanceof ya&&e.duration>0&&2==e.keyframes.length){var t=_getStylesArray(e.keyframes[0])[0],r=_getStylesArray(e.keyframes[1])[0];return I.isEmpty(t)&&I.isEmpty(r)}return!1}function _getStylesArray(e){return e.styles.styles}function _validateAnimationProperties(e,t){var r=new Ya(e);return templateVisitAll(r,t),new $a(r.outputs,r.errors)}function convertValueToOutputAst(e,t){return void 0===t&&(t=null),visitValue(e,new eu,t)}function getPropertyInView(e,t,r){if(t===r)return e;for(var n=xe,i=t;i!==r&&isPresent(i.declarationElement.view);)i=i.declarationElement.view,n=n.prop("parent");if(i!==r)throw new Error("Internal error: Could not calculate a property in a parent view: "+e);if(e instanceof Ee){var o=e;(r.fields.some(function(e){return e.name==o.name})||r.getters.some(function(e){return e.name==o.name}))&&(n=n.cast(r.classType))}return replaceVarInExpression(xe.name,n,e)}function injectFromViewParentInjector(e,t){var r=[createDiTokenExpression(e)];return t&&r.push(Oe),xe.prop("parentInjector").callMethod("get",r)}function getViewFactoryName(e,t){return"viewFactory_"+e.type.name+t}function createFlatArray(e){for(var t=[],r=literalArr([]),n=0;n<e.length;n++){var i=e[n];i.type instanceof Z?(t.length>0&&(r=r.callMethod(se.ConcatArray,[literalArr(t)]),t=[]),r=r.callMethod(se.ConcatArray,[i])):t.push(i)}return t.length>0&&(r=r.callMethod(se.ConcatArray,[literalArr(t)])),r}function createPureProxy(e,t,r,n){n.fields.push(new je(r.name,null));var i=t<$o.pureProxies.length?$o.pureProxies[t]:null;if(isBlank(i))throw new Error("Unsupported number of argument for pure functions: "+t);n.createMethod.addStmt(xe.prop(r.name).set(importExpr(resolveIdentifier(i)).callFn([e])).toStmt())}function createQueryValues(e){return R.flatten(e.values.map(function(e){return e instanceof iu?mapNestedViews(e.view.declarationElement.appElement,e.view,createQueryValues(e)):e}))}function mapNestedViews(e,t,r){var n=r.map(function(e){return replaceVarInExpression(xe.name,variable("nestedView"),e)});return e.callMethod("mapNestedViews",[variable(t.className),fn([new _e("nestedView",t.classType)],[new De(literalArr(n))],Y)])}function createQueryList(e,t,r,n){n.fields.push(new je(r,importType(resolveIdentifier($o.QueryList),[Y])));var i=xe.prop(r);return n.createMethod.addStmt(xe.prop(r).set(importExpr(resolveIdentifier($o.QueryList),[Y]).instantiate([])).toStmt()),i}function addQueryToTokenMap(e,t){t.meta.selectors.forEach(function(r){var n=e.get(r.reference);isBlank(n)&&(n=[],e.set(r.reference,n)),n.push(t)})}function _enumExpression(e,t){return importExpr(resolveEnumIdentifier(e,t))}function createInjectInternalCondition(e,t,r,n){var i;return i=t>0?literal(e).lowerEquals(hu.requestNodeIndex).and(hu.requestNodeIndex.lowerEquals(literal(e+t))):literal(e).identical(hu.requestNodeIndex),new We(hu.token.identical(createDiTokenExpression(r.token)).and(i),[new De(n)])}function createProviderProperty(e,t,r,n,i,o){var s,a,u=o.view;if(n?(s=literalArr(r),a=new Z(Y)):(s=r[0],a=r[0].type),isBlank(a)&&(a=Y),i)u.fields.push(new je(e,a)),u.createMethod.addStmt(xe.prop(e).set(s).toStmt());else{var c="_"+e;u.fields.push(new je(c,a));var l=new nu(u);l.resetDebugInfo(o.nodeIndex,o.sourceAst),l.addStmt(new We(xe.prop(c).isBlank(),[xe.prop(c).set(s).toStmt()])),l.addStmt(new De(xe.prop(c))),u.getters.push(new Fe(e,l.finish(),a))}return xe.prop(e)}function _findPipeMeta(e,t){for(var r=null,n=e.pipeMetas.length-1;n>=0;n--){var i=e.pipeMetas[n];if(i.name==t){r=i;break}}if(isBlank(r))throw new Error("Illegal state: Could not find pipe "+t+" although the parser should have detected this error!");return r}function getViewType(e,t){return t>0?ro.EMBEDDED:e.type.isHost?ro.HOST:ro.COMPONENT}function convertCdExpressionToIr(e,t,r,n,i){var o=new Eu(e,t,n,i),s=r.visit(o,Ps.Expression);return new Su(s,o.needsValueUnwrapper,o.temporaryCount)}function convertCdStatementToIr(e,t,r,n){var i=new Eu(e,t,null,n),o=[];return flattenStatements(r.visit(i,Ps.Statement),o),prependTemporaryDecls(i.temporaryCount,n,o),o}function temporaryName(e,t){return"tmp_"+e+"_"+t}function temporaryDeclaration(e,t){return new Me(temporaryName(e,t),Oe)}function prependTemporaryDecls(e,t,r){for(var n=e-1;n>=0;n--)r.unshift(temporaryDeclaration(t,n))}function ensureStatementMode(e,t){if(e!==Ps.Statement)throw new Error("Expected a statement, but saw "+t)}function ensureExpressionMode(e,t){if(e!==Ps.Expression)throw new Error("Expected an expression, but saw "+t)}function convertToStatementIfNeeded(e,t){return e===Ps.Statement?t.toStmt():t}function flattenStatements(e,t){isArray(e)?e.forEach(function(e){return flattenStatements(e,t)}):t.push(e)}function collectEventListeners(e,t,r){var n=[];return e.forEach(function(e){r.view.bindings.push(new _u(r,e));var t=Pu.getOrCreate(r,e.target,e.name,n);t.addAction(e,null,null)}),t.forEach(function(e){var t=r.instances.get(identifierToken(e.directive.type).reference);e.hostEvents.forEach(function(i){r.view.bindings.push(new _u(r,i));var o=Pu.getOrCreate(r,i.target,i.name,n);o.addAction(i,e.directive,t)})}),n.forEach(function(e){return e.finishMethod()}),n}function bindDirectiveOutputs(e,t,r){I.forEach(e.directive.outputs,function(e,n){r.filter(function(t){return t.eventName==e}).forEach(function(e){e.listenToDirective(t,n)})})}function bindRenderOutputs(e){e.forEach(function(e){return e.listenToRenderer()})}function bindAnimationOutputs(e){e.forEach(function(e){e.listener.listenToAnimation(e.output)})}function convertStmtIntoExpression(e){return e instanceof Ne?e.expr:e instanceof De?e.value:null}function santitizeEventName(e){return s.replaceAll(e,/[^a-zA-Z_]/g,"_")}function bindDirectiveDetectChangesLifecycleCallbacks(e,t,r){var n=r.view,i=n.detectChangesInInputsMethod,o=e.directive.type.lifecycleHooks;o.indexOf(Ki.OnChanges)!==-1&&e.inputs.length>0&&i.addStmt(new We(fu.changes.notIdentical(Oe),[t.callMethod("ngOnChanges",[fu.changes]).toStmt()])),o.indexOf(Ki.OnInit)!==-1&&i.addStmt(new We(Tu.and(xu),[t.callMethod("ngOnInit",[]).toStmt()])),o.indexOf(Ki.DoCheck)!==-1&&i.addStmt(new We(xu,[t.callMethod("ngDoCheck",[]).toStmt()]))}function bindDirectiveAfterContentLifecycleCallbacks(e,t,r){var n=r.view,i=e.type.lifecycleHooks,o=n.afterContentLifecycleCallbacksMethod;o.resetDebugInfo(r.nodeIndex,r.sourceAst),i.indexOf(Ki.AfterContentInit)!==-1&&o.addStmt(new We(Tu,[t.callMethod("ngAfterContentInit",[]).toStmt()])),i.indexOf(Ki.AfterContentChecked)!==-1&&o.addStmt(t.callMethod("ngAfterContentChecked",[]).toStmt())}function bindDirectiveAfterViewLifecycleCallbacks(e,t,r){var n=r.view,i=e.type.lifecycleHooks,o=n.afterViewLifecycleCallbacksMethod;o.resetDebugInfo(r.nodeIndex,r.sourceAst),i.indexOf(Ki.AfterViewInit)!==-1&&o.addStmt(new We(Tu,[t.callMethod("ngAfterViewInit",[]).toStmt()])),i.indexOf(Ki.AfterViewChecked)!==-1&&o.addStmt(t.callMethod("ngAfterViewChecked",[]).toStmt())}function bindInjectableDestroyLifecycleCallbacks(e,t,r){var n=r.view.destroyMethod;n.resetDebugInfo(r.nodeIndex,r.sourceAst),e.lifecycleHooks.indexOf(Ki.OnDestroy)!==-1&&n.addStmt(t.callMethod("ngOnDestroy",[]).toStmt())}function bindPipeDestroyLifecycleCallbacks(e,t,r){var n=r.destroyMethod;e.type.lifecycleHooks.indexOf(Ki.OnDestroy)!==-1&&n.addStmt(t.callMethod("ngOnDestroy",[]).toStmt())}function createBindFieldExpr(e){return xe.prop("_expr_"+e)}function createCurrValueExpr(e){return variable("currVal_"+e)}function bind(e,t,r,n,i,o,s,a){var u=convertCdExpressionToIr(e,i,n,fu.valUnwrapper,a);if(!isBlank(u.expression)){if(u.temporaryCount)for(var c=0;c<u.temporaryCount;c++)s.addStmt(temporaryDeclaration(a,c));if(e.fields.push(new je(r.name,null,[pe.Private])),e.createMethod.addStmt(xe.prop(r.name).set(importExpr(resolveIdentifier($o.UNINITIALIZED))).toStmt()),u.needsValueUnwrapper){var l=fu.valUnwrapper.callMethod("reset",[]).toStmt();s.addStmt(l)}s.addStmt(t.set(u.expression).toDeclStmt(null,[pe.Final]));var p=importExpr(resolveIdentifier($o.checkBinding)).callFn([fu.throwOnChange,r,t]);u.needsValueUnwrapper&&(p=fu.valUnwrapper.prop("hasWrappedValue").or(p)),s.addStmt(new We(p,o.concat([xe.prop(r.name).set(t).toStmt()])))}}function bindRenderText(e,t,r){var n=r.bindings.length;r.bindings.push(new _u(t,e));var i=createCurrValueExpr(n),o=createBindFieldExpr(n);r.detectChangesRenderPropertiesMethod.resetDebugInfo(t.nodeIndex,e),bind(r,i,o,e.value,r.componentContext,[xe.prop("renderer").callMethod("setText",[t.renderNode,i]).toStmt()],r.detectChangesRenderPropertiesMethod,n)}function bindAndWriteToRenderer(e,r,n,i){var o=n.view,s=n.renderNode;e.forEach(function(e){var a=o.bindings.length;o.bindings.push(new _u(n,e)),o.detectChangesRenderPropertiesMethod.resetDebugInfo(n.nodeIndex,e);var u=createBindFieldExpr(a),c=createCurrValueExpr(a),l=sanitizedValue(e,u),p=sanitizedValue(e,c),h=[],f=o.detectChangesRenderPropertiesMethod;switch(e.type){case t.PropertyBindingType.Property:o.genConfig.logBindingUpdate&&h.push(logBindingUpdateStmt(s,e.name,p)),h.push(xe.prop("renderer").callMethod("setElementProperty",[s,literal(e.name),p]).toStmt());break;case t.PropertyBindingType.Attribute:p=p.isBlank().conditional(Oe,p.callMethod("toString",[])),h.push(xe.prop("renderer").callMethod("setElementAttribute",[s,literal(e.name),p]).toStmt());break;case t.PropertyBindingType.Class:h.push(xe.prop("renderer").callMethod("setElementClass",[s,literal(e.name),p]).toStmt());break;case t.PropertyBindingType.Style:var d=p.callMethod("toString",[]);isPresent(e.unit)&&(d=d.plus(literal(e.unit))),p=p.isBlank().conditional(Oe,d),h.push(xe.prop("renderer").callMethod("setElementStyle",[s,literal(e.name),p]).toStmt());break;case t.PropertyBindingType.Animation:var m=e.name,v=xe;i&&(v=n.appElement.prop("componentView")),f=o.animationBindingsMethod;var y=v.prop("componentType").prop("animations").key(literal(m)),b=literal(Bo),g=variable("oldRenderVar");h.push(g.set(l).toDeclStmt()),h.push(new We(g.equals(importExpr(resolveIdentifier($o.UNINITIALIZED))),[g.set(b).toStmt()]));var _=variable("newRenderVar");h.push(_.set(p).toDeclStmt()),h.push(new We(_.equals(importExpr(resolveIdentifier($o.UNINITIALIZED))),[_.set(b).toStmt()])),h.push(y.callFn([xe,s,g,_]).toStmt()),o.detachMethod.addStmt(y.callFn([xe,s,l,b]).toStmt())}bind(o,c,u,e.value,r,h,f,o.bindings.length)})}function sanitizedValue(e,t){var n;switch(e.securityContext){case r.SecurityContext.NONE:return t;case r.SecurityContext.HTML:n="HTML";break;case r.SecurityContext.STYLE:n="STYLE";break;case r.SecurityContext.SCRIPT:n="SCRIPT";break;case r.SecurityContext.URL:n="URL";break;case r.SecurityContext.RESOURCE_URL:n="RESOURCE_URL";break;default:throw new Error("internal error, unexpected SecurityContext "+e.securityContext+".")}var i=lu.viewUtils.prop("sanitizer"),o=[importExpr(resolveIdentifier($o.SecurityContext)).prop(n),t];return i.callMethod("sanitize",o)}function bindRenderInputs(e,t){bindAndWriteToRenderer(e,t.view.componentContext,t,!1)}function bindDirectiveHostProps(e,t,r){bindAndWriteToRenderer(e.hostProperties,t,r,!0)}function bindDirectiveInputs(e,t,r){if(0!==e.inputs.length){var n=r.view,i=n.detectChangesInInputsMethod;i.resetDebugInfo(r.nodeIndex,r.sourceAst);var o=e.directive.type.lifecycleHooks,s=o.indexOf(Ki.OnChanges)!==-1,a=e.directive.isComponent&&!qi(e.directive.changeDetection);s&&i.addStmt(fu.changes.set(Oe).toStmt()),a&&i.addStmt(fu.changed.set(literal(!1)).toStmt()),e.inputs.forEach(function(e){var o=n.bindings.length;n.bindings.push(new _u(r,e)),i.resetDebugInfo(r.nodeIndex,e);var u=createBindFieldExpr(o),c=createCurrValueExpr(o),l=[t.prop(e.directiveName).set(c).toStmt()];s&&(l.push(new We(fu.changes.identical(Oe),[fu.changes.set(literalMap([],new $(importType(resolveIdentifier($o.SimpleChange))))).toStmt()])),l.push(fu.changes.key(literal(e.directiveName)).set(importExpr(resolveIdentifier($o.SimpleChange)).instantiate([u,c])).toStmt())),a&&l.push(fu.changed.set(literal(!0)).toStmt()),n.genConfig.logBindingUpdate&&l.push(logBindingUpdateStmt(r.renderNode,e.directiveName,c)),bind(n,c,u,e.value,n.componentContext,l,i,o)}),a&&i.addStmt(new We(fu.changed,[r.appElement.prop("componentView").callMethod("markAsCheckOnce",[]).toStmt()]))}}function logBindingUpdateStmt(e,t,r){var n=xe.prop("renderer").callMethod("setBindingDebugInfo",[e,literal("ng-reflect-"+camelCaseToDashCase(t)),r.isBlank().conditional(Oe,r.callMethod("toString",[]))]).toStmt(),i=xe.prop("renderer").callMethod("setBindingDebugInfo",[e,literal("ng-reflect-"+camelCaseToDashCase(t)),literal("[ERROR] Exception while trying to serialize the value")]).toStmt();return new Ue([n],[i])}function bindView(e,t,r){var n=new Au(e,r);templateVisitAll(n,t),e.pipes.forEach(function(e){bindPipeDestroyLifecycleCallbacks(e.meta,e.instance,e.view)})}function buildView(e,t,r){var n=new ju(e,r);return templateVisitAll(n,t,e.declarationElement.isNull()?e.declarationElement:e.declarationElement.parent),n.nestedViewCount}function finishView(e,t){e.afterNodes(),createViewTopLevelStmts(e,t),e.nodes.forEach(function(e){e instanceof vu&&e.hasEmbeddedView&&finishView(e.embeddedView,t)})}function _getOuterContainerOrSelf(e){for(var t=e.view;_isNgContainer(e.parent,t);)e=e.parent;return e}function _getOuterContainerParentOrSelf(e){for(var t=e.view;_isNgContainer(e,t);)e=e.parent;return e}function _isNgContainer(e,t){return!e.isNull()&&e.sourceAst.name===Mu&&e.view===t}function _mergeHtmlAndDirectiveAttrs(e,t){var r={};return I.forEach(e,function(e,t){r[t]=e}),t.forEach(function(e){I.forEach(e.hostAttributes,function(e,t){var n=r[t];r[t]=isPresent(n)?mergeAttributeValue(t,n,e):e})}),mapToKeyValueArray(r)}function _readHtmlAttrs(e){var t={};return e.forEach(function(e){t[e.name]=e.value}),t}function mergeAttributeValue(e,t,r){return e==Iu||e==Ru?t+" "+r:r}function mapToKeyValueArray(e){var t=[];return I.forEach(e,function(e,r){t.push([r,e])}),R.sort(t,function(e,t){return s.compare(e[0],t[0])}),t}function createViewTopLevelStmts(e,t){var r=Oe;e.genConfig.genDebugInfo&&(r=variable("nodeDebugInfos_"+e.component.type.name+e.viewIndex),t.push(r.set(literalArr(e.nodes.map(createStaticNodeDebugInfo),new Z(new J(resolveIdentifier($o.StaticNodeDebugInfo)),[N.Const]))).toDeclStmt(null,[pe.Final])));var n=variable("renderType_"+e.component.type.name);0===e.viewIndex&&t.push(n.set(Oe).toDeclStmt(importType(resolveIdentifier($o.RenderComponentType))));var i=createViewClass(e,n,r);t.push(i),t.push(createViewFactory(e,i,n))}function createStaticNodeDebugInfo(e){var t=e instanceof vu?e:null,r=[],n=Oe,i=[];return isPresent(t)&&(r=t.getProviderTokens(),isPresent(t.component)&&(n=createDiTokenExpression(identifierToken(t.component.type))),I.forEach(t.referenceTokens,function(e,t){i.push([t,isPresent(e)?createDiTokenExpression(e):Oe])})),importExpr(resolveIdentifier($o.StaticNodeDebugInfo)).instantiate([literalArr(r,new Z(Y,[N.Const])),n,literalMap(i,new $(Y,[N.Const]))],importType(resolveIdentifier($o.StaticNodeDebugInfo),null,[N.Const]))}function createViewClass(e,t,r){var n=[new _e(cu.viewUtils.name,importType(resolveIdentifier($o.ViewUtils))),new _e(cu.parentInjector.name,importType(resolveIdentifier($o.Injector))),new _e(cu.declarationEl.name,importType(resolveIdentifier($o.AppElement)))],i=[variable(e.className),t,su.fromValue(e.viewType),cu.viewUtils,cu.parentInjector,cu.declarationEl,uu.fromValue(getChangeDetectionMode(e))];e.genConfig.genDebugInfo&&i.push(r);var o=new Le(null,n,[Ae.callFn(i).toStmt()]),s=[new Le("createInternal",[new _e(Nu.name,re)],generateCreateMethod(e),importType(resolveIdentifier($o.AppElement))),new Le("injectorGetInternal",[new _e(hu.token.name,Y),new _e(hu.requestNodeIndex.name,te),new _e(hu.notFoundResult.name,Y)],addReturnValuefNotEmpty(e.injectorGetMethod.finish(),hu.notFoundResult),Y),new Le("detectChangesInternal",[new _e(fu.throwOnChange.name,ee)],generateDetectChangesMethod(e)),new Le("dirtyParentQueriesInternal",[],e.dirtyParentQueriesMethod.finish()),new Le("destroyInternal",[],e.destroyMethod.finish()),new Le("detachInternal",[],e.detachMethod.finish())].concat(e.eventHandlerMethods),a=e.genConfig.genDebugInfo?$o.DebugAppView:$o.AppView,u=new Be(e.className,importExpr(resolveIdentifier(a),[getContextType(e)]),e.fields,e.getters,o,s.filter(function(e){return e.body.length>0}));return u}function createViewFactory(e,t,r){var n,i=[new _e(cu.viewUtils.name,importType(resolveIdentifier($o.ViewUtils))),new _e(cu.parentInjector.name,importType(resolveIdentifier($o.Injector))),new _e(cu.declarationEl.name,importType(resolveIdentifier($o.AppElement)))],o=[];if(n=e.component.template.templateUrl==e.component.type.moduleUrl?e.component.type.moduleUrl+" class "+e.component.type.name+" - inline template":e.component.template.templateUrl,0===e.viewIndex){var s=literalMap(e.animations.map(function(e){return[e.name,e.fnVariable]}));o=[new We(r.identical(Oe),[r.set(cu.viewUtils.callMethod("createRenderComponentType",[literal(n),literal(e.component.template.ngContentSelectors.length),au.fromValue(e.component.template.encapsulation),e.styles,s])).toStmt()])]}return fn(i,o.concat([new De(variable(t.name).instantiate(t.constructorMethod.params.map(function(e){return variable(e.name)})))]),importType(resolveIdentifier($o.AppView),[getContextType(e)])).toDeclStmt(e.viewFactory.name,[pe.Final])}function generateCreateMethod(e){var t=Oe,r=[];e.viewType===ro.COMPONENT&&(t=lu.renderer.callMethod("createViewRoot",[xe.prop("declarationAppElement").prop("nativeElement")]),r=[ku.set(t).toDeclStmt(importType(e.genConfig.renderTypes.renderNode),[pe.Final])]);var n;return n=e.viewType===ro.HOST?e.nodes[0].appElement:Oe,r.concat(e.createMethod.finish(),[xe.callMethod("init",[createFlatArray(e.rootNodesOrAppElements),literalArr(e.nodes.map(function(e){return e.renderNode})),literalArr(e.disposables),literalArr(e.subscriptions)]).toStmt(),new De(n)])}function generateDetectChangesMethod(e){var t=[];if(e.animationBindingsMethod.isEmpty()&&e.detectChangesInInputsMethod.isEmpty()&&e.updateContentQueriesMethod.isEmpty()&&e.afterContentLifecycleCallbacksMethod.isEmpty()&&e.detectChangesRenderPropertiesMethod.isEmpty()&&e.updateViewQueriesMethod.isEmpty()&&e.afterViewLifecycleCallbacksMethod.isEmpty())return t;R.addAll(t,e.animationBindingsMethod.finish()),R.addAll(t,e.detectChangesInInputsMethod.finish()),t.push(xe.callMethod("detectContentChildrenChanges",[fu.throwOnChange]).toStmt());var r=e.updateContentQueriesMethod.finish().concat(e.afterContentLifecycleCallbacksMethod.finish());r.length>0&&t.push(new We(not(fu.throwOnChange),r)),R.addAll(t,e.detectChangesRenderPropertiesMethod.finish()),t.push(xe.callMethod("detectViewChildrenChanges",[fu.throwOnChange]).toStmt());var n=e.updateViewQueriesMethod.finish().concat(e.afterViewLifecycleCallbacksMethod.finish());n.length>0&&t.push(new We(not(fu.throwOnChange),n));var i=[],o=findReadVarNames(t);return k.has(o,fu.changed.name)&&i.push(fu.changed.set(literal(!0)).toDeclStmt(ee)),k.has(o,fu.changes.name)&&i.push(fu.changes.set(Oe).toDeclStmt(new $(importType(resolveIdentifier($o.SimpleChange))))),k.has(o,fu.valUnwrapper.name)&&i.push(fu.valUnwrapper.set(importExpr(resolveIdentifier($o.ValueUnwrapper)).instantiate([])).toDeclStmt(null,[pe.Final])),i.concat(t)}function addReturnValuefNotEmpty(e,t){return e.length>0?e.concat([new De(t)]):e}function getContextType(e){return e.viewType===ro.COMPONENT?importType(e.component.type):Y}function getChangeDetectionMode(e){var t;return t=e.viewType===ro.COMPONENT?qi(e.component.changeDetection)?Gi.CheckAlways:Gi.CheckOnce:Gi.CheckAlways}function _resolveViewStatements(e){return e.dependencies.forEach(function(e){if(e instanceof Du){var t=e;t.placeholder.moduleUrl=_ngfactoryModuleUrl(t.comp.moduleUrl)}else if(e instanceof Vu){var r=e;r.placeholder.name=_componentFactoryName(r.comp),r.placeholder.moduleUrl=_ngfactoryModuleUrl(r.comp.moduleUrl)}}),e.statements}function _resolveStyleStatements(e,t){return e.dependencies.forEach(function(e){
e.valuePlaceholder.moduleUrl=_stylesModuleUrl(e.moduleUrl,e.isShimmed,t)}),e.statements}function _ngfactoryModuleUrl(e){var t=_splitTypescriptSuffix(e);return t[0]+".ngfactory"+t[1]}function _componentFactoryName(e){return e.name+"NgFactory"}function _stylesModuleUrl(e,t,r){return t?e+".shim"+r:""+e+r}function _assertComponent(e){if(!e.isComponent)throw new Error("Could not compile '"+e.type.name+"' because it is not a component.")}function _splitTypescriptSuffix(e){if(/\.d\.ts$/.test(e))return[e.substring(0,e.length-5),".ts"];var t=e.lastIndexOf(".");return t!==-1?[e.substring(0,t),e.substring(t)]:[e,""]}function createOfflineCompileUrlResolver(){return new Gu(Hu)}function getUrlScheme(e){var t=_split(e);return t&&t[wu.Scheme]||""}function _buildFromEncodedParts(e,t,r,n,i,o,s){var a=[];return isPresent(e)&&a.push(e+":"),isPresent(r)&&(a.push("//"),isPresent(t)&&a.push(t+"@"),a.push(r),isPresent(n)&&a.push(":"+n)),isPresent(i)&&a.push(i),isPresent(o)&&a.push("?"+o),isPresent(s)&&a.push("#"+s),a.join("")}function _split(e){return e.match(Ku)}function _removeDotSegments(e){if("/"==e)return"/";for(var t="/"==e[0]?"/":"",r="/"===e[e.length-1]?"/":"",n=e.split("/"),i=[],o=0,s=0;s<n.length;s++){var a=n[s];switch(a){case"":case".":break;case"..":i.length>0?i.pop():o++;break;default:i.push(a)}}if(""==t){for(;o-- >0;)i.unshift("..");0===i.length&&i.push(".")}return t+i.join("/")+r}function _joinAndCanonicalizePath(e){var t=e[wu.Path];return t=isBlank(t)?"":_removeDotSegments(t),e[wu.Path]=t,_buildFromEncodedParts(e[wu.Scheme],e[wu.UserInfo],e[wu.Domain],e[wu.Port],t,e[wu.QueryData],e[wu.Fragment])}function _resolveUrl(e,t){var r=_split(encodeURI(t)),n=_split(e);if(isPresent(r[wu.Scheme]))return _joinAndCanonicalizePath(r);r[wu.Scheme]=n[wu.Scheme];for(var i=wu.Scheme;i<=wu.Port;i++)isBlank(r[i])&&(r[i]=n[i]);if("/"==r[wu.Path][0])return _joinAndCanonicalizePath(r);var o=n[wu.Path];isBlank(o)&&(o="/");var s=o.lastIndexOf("/");return o=o.substring(0,s+1)+r[wu.Path],r[wu.Path]=o,_joinAndCanonicalizePath(r)}function _cloneDirectiveWithTemplate(e,t){return new St({type:e.type,isComponent:e.isComponent,selector:e.selector,exportAs:e.exportAs,changeDetection:e.changeDetection,inputs:e.inputs,outputs:e.outputs,hostListeners:e.hostListeners,hostProperties:e.hostProperties,hostAttributes:e.hostAttributes,providers:e.providers,viewProviders:e.viewProviders,queries:e.queries,viewQueries:e.viewQueries,entryComponents:e.entryComponents,template:t})}function _isDirectiveMetadata(e){return e instanceof r.Directive}function hasLifecycleHook(e,t){var r=Zu.get(e),n=$u.get(e);return Oo.hasLifecycleHook(t,r,n)}function _isNgModuleMetadata(e){return e instanceof r.NgModule}function _isPipeMetadata(e){return e instanceof r.Pipe}function getTransitiveModules(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n=new Set),e.forEach(function(e){if(!n.has(e.type.reference)){n.add(e.type.reference);var i=t?e.importedModules.concat(e.exportedModules):e.exportedModules;getTransitiveModules(i,t,r,n),r.push(e)}}),r}function flattenArray(e,t){if(void 0===t&&(t=[]),e)for(var n=0;n<e.length;n++){var i=r.resolveForwardRef(e[n]);isArray(i)?flattenArray(i,t):t.push(i)}return t}function isValidType(e){return isStaticSymbol(e)||e instanceof r.Type}function staticTypeModuleUrl(e){return isStaticSymbol(e)?e.filePath:null}function componentModuleUrl(e,t,r){if(isStaticSymbol(t))return staticTypeModuleUrl(t);if(isPresent(r.moduleId)){var n=r.moduleId,i=getUrlScheme(n);return isPresent(i)&&i.length>0?n:"package:"+n+Qe}return e.importUri(t)}function convertToCompileValue(e,t){return visitValue(e,new nc,t)}function escapeIdentifier(e,t,r){if(void 0===r&&(r=!0),isBlank(e))return null;var n=s.replaceAllMapped(e,lc,function(e){return"$"==e[0]?t?"\\$":"$":"\n"==e[0]?"\\n":"\r"==e[0]?"\\r":"\\"+e[0]}),i=r||!pc.test(n);return i?"'"+n+"'":n}function _createIndent(e){for(var t="",r=0;r<e;r++)t+="  ";return t}function debugOutputAstAsTypeScript(e){var t,r=new _c(bc),n=mc.createRoot([]);return t=isArray(e)?e:[e],t.forEach(function(e){if(e instanceof Re)e.visitStatement(r,n);else if(e instanceof oe)e.visitExpression(r,n);else{if(!(e instanceof K))throw new Error("Don't know how to print debug info for "+e);e.visitType(r,n)}}),n.toSource()}function interpretStatements(e,t){var r=e.concat([new De(variable(t))]),n=new Sc(null,null,null,new Map),i=new Ec,o=i.visitAllStatements(r,n);return isPresent(o)?o.value:null}function _executeFunctionStatements(e,t,r,n,i){for(var o=n.createChildWihtLocalVars(),s=0;s<e.length;s++)o.vars.set(e[s],t[s]);var a=i.visitAllStatements(r,o);return isPresent(a)?a.value:null}function createDynamicClass(e,t,r){var n={};e.getters.forEach(function(i){n[i.name]={configurable:!1,get:function(){var n=new Sc(t,this,e.name,t.vars);return _executeFunctionStatements([],[],i.body,n,r)}}}),e.methods.forEach(function(i){var o=i.params.map(function(e){return e.name});n[i.name]={writable:!1,configurable:!1,value:function(){for(var n=[],s=0;s<arguments.length;s++)n[s-0]=arguments[s];var a=new Sc(t,this,e.name,t.vars);return _executeFunctionStatements(o,n,i.body,a,r)}}});var i=e.constructorMethod.params.map(function(e){return e.name}),o=function(){for(var n=this,o=[],s=0;s<arguments.length;s++)o[s-0]=arguments[s];var a=new Sc(t,this,e.name,t.vars);e.fields.forEach(function(e){n[e.name]=void 0}),_executeFunctionStatements(i,o,e.constructorMethod.body,a,r)},s=e.parent.visitExpression(r,t);return o.prototype=Object.create(s.prototype,n),o}function _declareFn(e,t,r,n){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o-0]=arguments[o];return _executeFunctionStatements(e,i,t,r,n)}}function jitStatements(e,t,r){var n=new Oc,i=mc.createRoot([r]);return n.visitAllStatements(t,i),evalExpression(e,r,i.toSource(),n.getArgs())}function stripComments(e){return s.replaceAllMapped(e,Gc,function(e){return""})}function extractSourceMappingUrl(e){var t=e.match(Kc);return t?t[0]:""}function processRules(e,t){var r=escapeBlocks(e),n=0;return s.replaceAllMapped(r.escapedString,Qc,function(e){var i=e[2],o="",s=e[4],a="";isPresent(e[4])&&e[4].startsWith("{"+$c)&&(o=r.blocks[n++],s=e[4].substring($c.length+1),a="{");var u=t(new Yc(i,o));return""+e[1]+u.selector+e[3]+a+u.content+s})}function escapeBlocks(e){for(var t=s.split(e,Xc),r=[],n=[],i=0,o=[],a=0;a<t.length;a++){var u=t[a];u==Zc&&i--,i>0?o.push(u):(o.length>0&&(n.push(o.join("")),r.push($c),o=[]),r.push(u)),u==Jc&&i++}return o.length>0&&(n.push(o.join("")),r.push($c)),new el(r.join(""),n)}function getStylesVarName(e){var t="styles";return e&&(t+="_"+e.type.name),t}function assertComponent(e){if(!e.isComponent)throw new Error("Could not compile '"+e.type.name+"' because it is not a component.")}function registerContext(e,t){for(var r=0,n=t;r<n.length;r++){var i=n[r];pl[i.toLowerCase()]=e}}function _initReflector(){Oo.reflectionCapabilities=new Ro}function _mergeOptions(e){return{useDebug:_lastDefined(e.map(function(e){return e.useDebug})),useJit:_lastDefined(e.map(function(e){return e.useJit})),defaultEncapsulation:_lastDefined(e.map(function(e){return e.defaultEncapsulation})),providers:_mergeArrays(e.map(function(e){return e.providers}))}}function _lastDefined(e){for(var t=e.length-1;t>=0;t--)if(void 0!==e[t])return e[t]}function _mergeArrays(e){var t=[];return e.forEach(function(e){return e&&t.push.apply(t,e)}),t}/**
	   * @license
	   * Copyright Google Inc. All Rights Reserved.
	   *
	   * Use of this source code is governed by an MIT-style license that can be
	   * found in the LICENSE file at https://angular.io/license
	   */
var n;n="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:e:window;var i=n;i.assert=function(e){};var o=Object.getPrototypeOf({}),s=function(){function StringWrapper(){}return StringWrapper.fromCharCode=function(e){return String.fromCharCode(e)},StringWrapper.charCodeAt=function(e,t){return e.charCodeAt(t)},StringWrapper.split=function(e,t){return e.split(t)},StringWrapper.equals=function(e,t){return e===t},StringWrapper.stripLeft=function(e,t){if(e&&e.length){for(var r=0,n=0;n<e.length&&e[n]==t;n++)r++;e=e.substring(r)}return e},StringWrapper.stripRight=function(e,t){if(e&&e.length){for(var r=e.length,n=e.length-1;n>=0&&e[n]==t;n--)r--;e=e.substring(0,r)}return e},StringWrapper.replace=function(e,t,r){return e.replace(t,r)},StringWrapper.replaceAll=function(e,t,r){return e.replace(t,r)},StringWrapper.slice=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=null),e.slice(t,null===r?void 0:r)},StringWrapper.replaceAllMapped=function(e,t,r){return e.replace(t,function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return e.splice(-2,2),r(e)})},StringWrapper.contains=function(e,t){return e.indexOf(t)!=-1},StringWrapper.compare=function(e,t){return e<t?-1:e>t?1:0},StringWrapper}(),a=function(){function StringJoiner(e){void 0===e&&(e=[]),this.parts=e}return StringJoiner.prototype.add=function(e){this.parts.push(e)},StringJoiner.prototype.toString=function(){return this.parts.join("")},StringJoiner}(),u=function(){function NumberWrapper(){}return NumberWrapper.toFixed=function(e,t){return e.toFixed(t)},NumberWrapper.equal=function(e,t){return e===t},NumberWrapper.parseIntAutoRadix=function(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t},NumberWrapper.parseInt=function(e,t){if(10==t){if(/^(\-|\+)?[0-9]+$/.test(e))return parseInt(e,t)}else if(16==t){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(e))return parseInt(e,t)}else{var r=parseInt(e,t);if(!isNaN(r))return r}throw new Error("Invalid integer literal when parsing "+e+" in base "+t)},Object.defineProperty(NumberWrapper,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),NumberWrapper.isNumeric=function(e){return!isNaN(e-parseFloat(e))},NumberWrapper.isNaN=function(e){return isNaN(e)},NumberWrapper.isInteger=function(e){return Number.isInteger(e)},NumberWrapper}(),c=function(){function TextAst(e,t,r){this.value=e,this.ngContentIndex=t,this.sourceSpan=r}return TextAst.prototype.visit=function(e,t){return e.visitText(this,t)},TextAst}(),l=function(){function BoundTextAst(e,t,r){this.value=e,this.ngContentIndex=t,this.sourceSpan=r}return BoundTextAst.prototype.visit=function(e,t){return e.visitBoundText(this,t)},BoundTextAst}(),p=function(){function AttrAst(e,t,r){this.name=e,this.value=t,this.sourceSpan=r}return AttrAst.prototype.visit=function(e,t){return e.visitAttr(this,t)},AttrAst}(),h=function(){function BoundElementPropertyAst(e,t,r,n,i,o){this.name=e,this.type=t,this.securityContext=r,this.value=n,this.unit=i,this.sourceSpan=o}return BoundElementPropertyAst.prototype.visit=function(e,t){return e.visitElementProperty(this,t)},BoundElementPropertyAst}(),f=function(){function BoundEventAst(e,t,r,n){this.name=e,this.target=t,this.handler=r,this.sourceSpan=n}return BoundEventAst.prototype.visit=function(e,t){return e.visitEvent(this,t)},Object.defineProperty(BoundEventAst.prototype,"fullName",{get:function(){return isPresent(this.target)?this.target+":"+this.name:this.name},enumerable:!0,configurable:!0}),BoundEventAst}(),d=function(){function ReferenceAst(e,t,r){this.name=e,this.value=t,this.sourceSpan=r}return ReferenceAst.prototype.visit=function(e,t){return e.visitReference(this,t)},ReferenceAst}(),m=function(){function VariableAst(e,t,r){this.name=e,this.value=t,this.sourceSpan=r}return VariableAst.prototype.visit=function(e,t){return e.visitVariable(this,t)},VariableAst}(),v=function(){function ElementAst(e,t,r,n,i,o,s,a,u,c,l){this.name=e,this.attrs=t,this.inputs=r,this.outputs=n,this.references=i,this.directives=o,this.providers=s,this.hasViewContainer=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=l}return ElementAst.prototype.visit=function(e,t){return e.visitElement(this,t)},ElementAst}(),y=function(){function EmbeddedTemplateAst(e,t,r,n,i,o,s,a,u,c){this.attrs=e,this.outputs=t,this.references=r,this.variables=n,this.directives=i,this.providers=o,this.hasViewContainer=s,this.children=a,this.ngContentIndex=u,this.sourceSpan=c}return EmbeddedTemplateAst.prototype.visit=function(e,t){return e.visitEmbeddedTemplate(this,t)},EmbeddedTemplateAst}(),b=function(){function BoundDirectivePropertyAst(e,t,r,n){this.directiveName=e,this.templateName=t,this.value=r,this.sourceSpan=n}return BoundDirectivePropertyAst.prototype.visit=function(e,t){return e.visitDirectiveProperty(this,t)},BoundDirectivePropertyAst}(),g=function(){function DirectiveAst(e,t,r,n,i){this.directive=e,this.inputs=t,this.hostProperties=r,this.hostEvents=n,this.sourceSpan=i}return DirectiveAst.prototype.visit=function(e,t){return e.visitDirective(this,t)},DirectiveAst}(),_=function(){function ProviderAst(e,t,r,n,i,o,s){this.token=e,this.multiProvider=t,this.eager=r,this.providers=n,this.providerType=i,this.lifecycleHooks=o,this.sourceSpan=s}return ProviderAst.prototype.visit=function(e,t){return null},ProviderAst}();t.ProviderAstType,function(e){e[e.PublicService=0]="PublicService",e[e.PrivateService=1]="PrivateService",e[e.Component=2]="Component",e[e.Directive=3]="Directive",e[e.Builtin=4]="Builtin"}(t.ProviderAstType||(t.ProviderAstType={}));var S=function(){function NgContentAst(e,t,r){this.index=e,this.ngContentIndex=t,this.sourceSpan=r}return NgContentAst.prototype.visit=function(e,t){return e.visitNgContent(this,t)},NgContentAst}();t.PropertyBindingType,function(e){e[e.Property=0]="Property",e[e.Attribute=1]="Attribute",e[e.Class=2]="Class",e[e.Style=3]="Style",e[e.Animation=4]="Animation"}(t.PropertyBindingType||(t.PropertyBindingType={}));var w,E=i.Map,C=i.Set,P=function(){try{if(1===new E([[1,2]]).size)return function(e){return new E(e)}}catch(e){}return function(e){for(var t=new E,r=0;r<e.length;r++){var n=e[r];t.set(n[0],n[1])}return t}}(),T=function(){try{if(new E(new E))return function(e){return new E(e)}}catch(e){}return function(e){var t=new E;return e.forEach(function(e,r){t.set(r,e)}),t}}(),x=function(){return(new E).keys().next?function(e){for(var t,r=e.keys();!(t=r.next()).done;)e.set(t.value,null)}:function(e){e.forEach(function(t,r){e.set(r,null)})}}(),A=function(){try{if((new E).values().next)return function(e,t){return t?Array.from(e.values()):Array.from(e.keys())}}catch(e){}return function(e,t){var r=R.createFixedSize(e.size),n=0;return e.forEach(function(e,i){r[n]=t?e:i,n++}),r}}(),O=function(){function MapWrapper(){}return MapWrapper.clone=function(e){return T(e)},MapWrapper.createFromStringMap=function(e){var t=new E;for(var r in e)t.set(r,e[r]);return t},MapWrapper.toStringMap=function(e){var t={};return e.forEach(function(e,r){return t[r]=e}),t},MapWrapper.createFromPairs=function(e){return P(e)},MapWrapper.clearValues=function(e){x(e)},MapWrapper.iterable=function(e){return e},MapWrapper.keys=function(e){return A(e,!1)},MapWrapper.values=function(e){return A(e,!0)},MapWrapper}(),I=function(){function StringMapWrapper(){}return StringMapWrapper.create=function(){return{}},StringMapWrapper.contains=function(e,t){return e.hasOwnProperty(t)},StringMapWrapper.get=function(e,t){return e.hasOwnProperty(t)?e[t]:void 0},StringMapWrapper.set=function(e,t,r){e[t]=r},StringMapWrapper.keys=function(e){return Object.keys(e)},StringMapWrapper.values=function(e){return Object.keys(e).map(function(t){return e[t]})},StringMapWrapper.isEmpty=function(e){for(var t in e)return!1;return!0},StringMapWrapper["delete"]=function(e,t){delete e[t]},StringMapWrapper.forEach=function(e,t){for(var r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];t(e[i],i)}},StringMapWrapper.merge=function(e,t){for(var r={},n=0,i=Object.keys(e);n<i.length;n++){var o=i[n];r[o]=e[o]}for(var s=0,a=Object.keys(t);s<a.length;s++){var o=a[s];r[o]=t[o]}return r},StringMapWrapper.equals=function(e,t){var r=Object.keys(e),n=Object.keys(t);if(r.length!=n.length)return!1;for(var i=0;i<r.length;i++){var o=r[i];if(e[o]!==t[o])return!1}return!0},StringMapWrapper}(),R=function(){function ListWrapper(){}return ListWrapper.createFixedSize=function(e){return new Array(e)},ListWrapper.createGrowableSize=function(e){return new Array(e)},ListWrapper.clone=function(e){return e.slice(0)},ListWrapper.forEachWithIndex=function(e,t){for(var r=0;r<e.length;r++)t(e[r],r)},ListWrapper.first=function(e){return e?e[0]:null},ListWrapper.last=function(e){return e&&0!=e.length?e[e.length-1]:null},ListWrapper.indexOf=function(e,t,r){return void 0===r&&(r=0),e.indexOf(t,r)},ListWrapper.contains=function(e,t){return e.indexOf(t)!==-1},ListWrapper.reversed=function(e){var t=ListWrapper.clone(e);return t.reverse()},ListWrapper.concat=function(e,t){return e.concat(t)},ListWrapper.insert=function(e,t,r){e.splice(t,0,r)},ListWrapper.removeAt=function(e,t){var r=e[t];return e.splice(t,1),r},ListWrapper.removeAll=function(e,t){for(var r=0;r<t.length;++r){var n=e.indexOf(t[r]);e.splice(n,1)}},ListWrapper.remove=function(e,t){var r=e.indexOf(t);return r>-1&&(e.splice(r,1),!0)},ListWrapper.clear=function(e){e.length=0},ListWrapper.isEmpty=function(e){return 0==e.length},ListWrapper.fill=function(e,t,r,n){void 0===r&&(r=0),void 0===n&&(n=null),e.fill(t,r,null===n?e.length:n)},ListWrapper.equals=function(e,t){if(e.length!=t.length)return!1;for(var r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0},ListWrapper.slice=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=null),e.slice(t,null===r?void 0:r)},ListWrapper.splice=function(e,t,r){return e.splice(t,r)},ListWrapper.sort=function(e,t){isPresent(t)?e.sort(t):e.sort()},ListWrapper.toString=function(e){return e.toString()},ListWrapper.toJSON=function(e){return JSON.stringify(e)},ListWrapper.maximum=function(e,t){if(0==e.length)return null;for(var r=null,n=-(1/0),i=0;i<e.length;i++){var o=e[i];if(!isBlank(o)){var s=t(o);s>n&&(r=o,n=s)}}return r},ListWrapper.flatten=function(e){var t=[];return _flattenArray(e,t),t},ListWrapper.addAll=function(e,t){for(var r=0;r<t.length;r++)e.push(t[r])},ListWrapper}(),M=function(){var e=new C([1,2,3]);return 3===e.size?function(e){return new C(e)}:function(e){var t=new C(e);if(t.size!==e.length)for(var r=0;r<e.length;r++)t.add(e[r]);return t}}(),k=function(){function SetWrapper(){}return SetWrapper.createFromList=function(e){return M(e)},SetWrapper.has=function(e,t){return e.has(t)},SetWrapper["delete"]=function(e,t){e["delete"](t)},SetWrapper}();!function(e){e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA"}(w||(w={}));var N,D={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Å",aring:"å",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Β",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"ƒ",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"⁄",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",image:"ℑ",infin:"∞","int":"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ï",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"←",lArr:"⇐",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"◊",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Μ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Ν",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Œ",oelig:"œ",Ograve:"Ò",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Π",pi:"π",piv:"ϖ",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"∏",prop:"∝",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"”",real:"ℜ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"ρ",rlm:"‏",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Š",scaron:"š",sdot:"⋅",sect:"§",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sim:"∼",spades:"♠",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"τ",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"˜",times:"×",trade:"™",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",Uuml:"Ü",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"‍",zwnj:"‌"},V=function(){function HtmlTagDefinition(e){var t=this,r=void 0===e?{}:e,n=r.closedByChildren,i=r.requiredParents,o=r.implicitNamespacePrefix,s=r.contentType,a=void 0===s?w.PARSABLE_DATA:s,u=r.closedByParent,c=void 0!==u&&u,l=r.isVoid,p=void 0!==l&&l,h=r.ignoreFirstLf,f=void 0!==h&&h;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,n&&n.length>0&&n.forEach(function(e){return t.closedByChildren[e]=!0}),this.isVoid=p,this.closedByParent=c||p,i&&i.length>0&&(this.requiredParents={},this.parentToAdd=i[0],i.forEach(function(e){return t.requiredParents[e]=!0})),this.implicitNamespacePrefix=o,this.contentType=a,this.ignoreFirstLf=f}return HtmlTagDefinition.prototype.requireExtraParent=function(e){if(!this.requiredParents)return!1;if(!e)return!0;var t=e.toLowerCase();return 1!=this.requiredParents[t]&&"template"!=t},HtmlTagDefinition.prototype.isClosedByChild=function(e){return this.isVoid||e.toLowerCase()in this.closedByChildren},HtmlTagDefinition}(),j={base:new V({isVoid:!0}),meta:new V({isVoid:!0}),area:new V({isVoid:!0}),embed:new V({isVoid:!0}),link:new V({isVoid:!0}),img:new V({isVoid:!0}),input:new V({isVoid:!0}),param:new V({isVoid:!0}),hr:new V({isVoid:!0}),br:new V({isVoid:!0}),source:new V({isVoid:!0}),track:new V({isVoid:!0}),wbr:new V({isVoid:!0}),p:new V({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new V({closedByChildren:["tbody","tfoot"]}),tbody:new V({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new V({closedByChildren:["tbody"],closedByParent:!0}),tr:new V({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new V({closedByChildren:["td","th"],closedByParent:!0}),th:new V({closedByChildren:["td","th"],closedByParent:!0}),col:new V({requiredParents:["colgroup"],isVoid:!0}),svg:new V({implicitNamespacePrefix:"svg"}),math:new V({implicitNamespacePrefix:"math"}),li:new V({closedByChildren:["li"],closedByParent:!0}),dt:new V({closedByChildren:["dt","dd"]}),dd:new V({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new V({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new V({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new V({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new V({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new V({closedByChildren:["optgroup"],closedByParent:!0}),option:new V({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new V({ignoreFirstLf:!0}),listing:new V({ignoreFirstLf:!0}),style:new V({contentType:w.RAW_TEXT}),script:new V({contentType:w.RAW_TEXT}),title:new V({contentType:w.ESCAPABLE_RAW_TEXT}),textarea:new V({contentType:w.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},L=new V,F="",B=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-\\w*]+)(?:=([^\\]]*))?\\])|(\\))|(\\s*,\\s*)","g"),W=function(){function CssSelector(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return CssSelector.parse=function(e){var t,r=[],n=function(e,t){t.notSelectors.length>0&&isBlank(t.element)&&R.isEmpty(t.classNames)&&R.isEmpty(t.attrs)&&(t.element="*"),e.push(t)},i=new CssSelector,o=i,s=!1;for(B.lastIndex=0;isPresent(t=B.exec(e));){if(isPresent(t[1])){if(s)throw new Error("Nesting :not is not allowed in a selector");s=!0,o=new CssSelector,i.notSelectors.push(o)}if(isPresent(t[2])&&o.setElement(t[2]),isPresent(t[3])&&o.addClassName(t[3]),isPresent(t[4])&&o.addAttribute(t[4],t[5]),isPresent(t[6])&&(s=!1,o=i),isPresent(t[7])){if(s)throw new Error("Multiple selectors in :not are not supported");n(r,i),i=o=new CssSelector}}return n(r,i),r},CssSelector.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},CssSelector.prototype.hasElementSelector=function(){return!!this.element},CssSelector.prototype.setElement=function(e){void 0===e&&(e=null),this.element=e},CssSelector.prototype.getMatchingElementTemplate=function(){for(var e=this.element||"div",t=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",r="",n=0;n<this.attrs.length;n+=2){var i=this.attrs[n],o=""!==this.attrs[n+1]?'="'+this.attrs[n+1]+'"':"";r+=" "+i+o}return getHtmlTagDefinition(e).isVoid?"<"+e+t+r+"/>":"<"+e+t+r+"></"+e+">"},CssSelector.prototype.addAttribute=function(e,t){void 0===t&&(t=F),this.attrs.push(e),t=isPresent(t)?t.toLowerCase():F,this.attrs.push(t)},CssSelector.prototype.addClassName=function(e){this.classNames.push(e.toLowerCase())},CssSelector.prototype.toString=function(){var e="";if(isPresent(this.element)&&(e+=this.element),isPresent(this.classNames))for(var t=0;t<this.classNames.length;t++)e+="."+this.classNames[t];if(isPresent(this.attrs))for(var t=0;t<this.attrs.length;){var r=this.attrs[t++],n=this.attrs[t++];e+="["+r,n.length>0&&(e+="="+n),e+="]"}return this.notSelectors.forEach(function(t){return e+=":not("+t+")"}),e},CssSelector}(),U=function(){function SelectorMatcher(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return SelectorMatcher.createNotMatcher=function(e){var t=new SelectorMatcher;return t.addSelectables(e,null),t},SelectorMatcher.prototype.addSelectables=function(e,t){var r=null;e.length>1&&(r=new z(e),this._listContexts.push(r));for(var n=0;n<e.length;n++)this._addSelectable(e[n],t,r)},SelectorMatcher.prototype._addSelectable=function(e,t,r){var n=this,i=e.element,o=e.classNames,s=e.attrs,a=new H(e,t,r);if(isPresent(i)){var u=0===s.length&&0===o.length;u?this._addTerminal(n._elementMap,i,a):n=this._addPartial(n._elementPartialMap,i)}if(isPresent(o))for(var c=0;c<o.length;c++){var u=0===s.length&&c===o.length-1,l=o[c];u?this._addTerminal(n._classMap,l,a):n=this._addPartial(n._classPartialMap,l)}if(isPresent(s))for(var c=0;c<s.length;){var u=c===s.length-2,p=s[c++],h=s[c++];if(u){var f=n._attrValueMap,d=f.get(p);isBlank(d)&&(d=new Map,f.set(p,d)),this._addTerminal(d,h,a)}else{var m=n._attrValuePartialMap,v=m.get(p);isBlank(v)&&(v=new Map,m.set(p,v)),n=this._addPartial(v,h)}}},SelectorMatcher.prototype._addTerminal=function(e,t,r){var n=e.get(t);isBlank(n)&&(n=[],e.set(t,n)),n.push(r)},SelectorMatcher.prototype._addPartial=function(e,t){var r=e.get(t);return isBlank(r)&&(r=new SelectorMatcher,e.set(t,r)),r},SelectorMatcher.prototype.match=function(e,t){for(var r=!1,n=e.element,i=e.classNames,o=e.attrs,a=0;a<this._listContexts.length;a++)this._listContexts[a].alreadyMatched=!1;if(r=this._matchTerminal(this._elementMap,n,e,t)||r,r=this._matchPartial(this._elementPartialMap,n,e,t)||r,isPresent(i))for(var u=0;u<i.length;u++){var c=i[u];r=this._matchTerminal(this._classMap,c,e,t)||r,r=this._matchPartial(this._classPartialMap,c,e,t)||r}if(isPresent(o))for(var u=0;u<o.length;){var l=o[u++],p=o[u++],h=this._attrValueMap.get(l);s.equals(p,F)||(r=this._matchTerminal(h,F,e,t)||r),r=this._matchTerminal(h,p,e,t)||r;var f=this._attrValuePartialMap.get(l);s.equals(p,F)||(r=this._matchPartial(f,F,e,t)||r),r=this._matchPartial(f,p,e,t)||r}return r},SelectorMatcher.prototype._matchTerminal=function(e,t,r,n){if(isBlank(e)||isBlank(t))return!1;var i=e.get(t),o=e.get("*");if(isPresent(o)&&(i=i.concat(o)),isBlank(i))return!1;for(var s,a=!1,u=0;u<i.length;u++)s=i[u],a=s.finalize(r,n)||a;return a},SelectorMatcher.prototype._matchPartial=function(e,t,r,n){if(isBlank(e)||isBlank(t))return!1;var i=e.get(t);return!isBlank(i)&&i.match(r,n)},SelectorMatcher}(),z=function(){function SelectorListContext(e){this.selectors=e,this.alreadyMatched=!1}return SelectorListContext}(),H=function(){function SelectorContext(e,t,r){this.selector=e,this.cbContext=t,this.listContext=r,this.notSelectors=e.notSelectors}return SelectorContext.prototype.finalize=function(e,t){var r=!0;if(this.notSelectors.length>0&&(isBlank(this.listContext)||!this.listContext.alreadyMatched)){var n=U.createNotMatcher(this.notSelectors);r=!n.match(e,null)}return r&&isPresent(t)&&(isBlank(this.listContext)||!this.listContext.alreadyMatched)&&(isPresent(this.listContext)&&(this.listContext.alreadyMatched=!0),t(this.selector,this.cbContext)),r},SelectorContext}(),q=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)};!function(e){e[e.Const=0]="Const"}(N||(N={}));var G,K=function(){function Type(e){void 0===e&&(e=null),this.modifiers=e,isBlank(e)&&(this.modifiers=[])}return Type.prototype.hasModifier=function(e){return this.modifiers.indexOf(e)!==-1},Type}();!function(e){e[e.Dynamic=0]="Dynamic",e[e.Bool=1]="Bool",e[e.String=2]="String",e[e.Int=3]="Int",e[e.Number=4]="Number",e[e.Function=5]="Function"}(G||(G={}));var Q,X=function(e){function BuiltinType(t,r){void 0===r&&(r=null),e.call(this,r),this.name=t}return q(BuiltinType,e),BuiltinType.prototype.visitType=function(e,t){return e.visitBuiltintType(this,t)},BuiltinType}(K),J=function(e){function ExternalType(t,r,n){void 0===r&&(r=null),void 0===n&&(n=null),e.call(this,n),this.value=t,this.typeParams=r}return q(ExternalType,e),ExternalType.prototype.visitType=function(e,t){return e.visitExternalType(this,t)},ExternalType}(K),Z=function(e){function ArrayType(t,r){void 0===r&&(r=null),e.call(this,r),this.of=t}return q(ArrayType,e),ArrayType.prototype.visitType=function(e,t){return e.visitArrayType(this,t)},ArrayType}(K),$=function(e){function MapType(t,r){void 0===r&&(r=null),e.call(this,r),this.valueType=t}return q(MapType,e),MapType.prototype.visitType=function(e,t){return e.visitMapType(this,t)},MapType}(K),Y=new X(G.Dynamic),ee=new X(G.Bool),te=(new X(G.Int),new X(G.Number)),re=new X(G.String),ne=new X(G.Function);!function(e){e[e.Equals=0]="Equals",e[e.NotEquals=1]="NotEquals",e[e.Identical=2]="Identical",e[e.NotIdentical=3]="NotIdentical",e[e.Minus=4]="Minus",e[e.Plus=5]="Plus",e[e.Divide=6]="Divide",e[e.Multiply=7]="Multiply",e[e.Modulo=8]="Modulo",e[e.And=9]="And",e[e.Or=10]="Or",e[e.Lower=11]="Lower",e[e.LowerEquals=12]="LowerEquals",e[e.Bigger=13]="Bigger",e[e.BiggerEquals=14]="BiggerEquals"}(Q||(Q={}));var ie,oe=function(){function Expression(e){this.type=e}return Expression.prototype.prop=function(e){return new Ee(this,e)},Expression.prototype.key=function(e,t){return void 0===t&&(t=null),new Ce(this,e,t)},Expression.prototype.callMethod=function(e,t){return new he(this,e,t)},Expression.prototype.callFn=function(e){return new fe(this,e)},Expression.prototype.instantiate=function(e,t){return void 0===t&&(t=null),new de(this,e,t)},Expression.prototype.conditional=function(e,t){return void 0===t&&(t=null),new ye(this,e,t)},Expression.prototype.equals=function(e){return new we(Q.Equals,this,e)},Expression.prototype.notEquals=function(e){return new we(Q.NotEquals,this,e)},Expression.prototype.identical=function(e){return new we(Q.Identical,this,e)},Expression.prototype.notIdentical=function(e){return new we(Q.NotIdentical,this,e)},Expression.prototype.minus=function(e){return new we(Q.Minus,this,e)},Expression.prototype.plus=function(e){return new we(Q.Plus,this,e)},Expression.prototype.divide=function(e){return new we(Q.Divide,this,e)},Expression.prototype.multiply=function(e){return new we(Q.Multiply,this,e)},Expression.prototype.modulo=function(e){return new we(Q.Modulo,this,e)},Expression.prototype.and=function(e){return new we(Q.And,this,e)},Expression.prototype.or=function(e){return new we(Q.Or,this,e)},Expression.prototype.lower=function(e){return new we(Q.Lower,this,e)},Expression.prototype.lowerEquals=function(e){return new we(Q.LowerEquals,this,e)},Expression.prototype.bigger=function(e){return new we(Q.Bigger,this,e)},Expression.prototype.biggerEquals=function(e){return new we(Q.BiggerEquals,this,e)},Expression.prototype.isBlank=function(){return this.equals(Oe)},Expression.prototype.cast=function(e){return new ge(this,e)},Expression.prototype.toStmt=function(){return new Ne(this)},Expression}();!function(e){e[e.This=0]="This",e[e.Super=1]="Super",e[e.CatchError=2]="CatchError",e[e.CatchStack=3]="CatchStack"}(ie||(ie={}));var se,ae=function(e){function ReadVarExpr(t,r){void 0===r&&(r=null),e.call(this,r),isString(t)?(this.name=t,this.builtin=null):(this.name=null,this.builtin=t)}return q(ReadVarExpr,e),ReadVarExpr.prototype.visitExpression=function(e,t){return e.visitReadVarExpr(this,t)},ReadVarExpr.prototype.set=function(e){return new ue(this.name,e)},ReadVarExpr}(oe),ue=function(e){function WriteVarExpr(t,r,n){void 0===n&&(n=null),e.call(this,isPresent(n)?n:r.type),this.name=t,this.value=r}return q(WriteVarExpr,e),WriteVarExpr.prototype.visitExpression=function(e,t){return e.visitWriteVarExpr(this,t)},WriteVarExpr.prototype.toDeclStmt=function(e,t){return void 0===e&&(e=null),void 0===t&&(t=null),new Me(this.name,this.value,e,t)},WriteVarExpr}(oe),ce=function(e){function WriteKeyExpr(t,r,n,i){void 0===i&&(i=null),e.call(this,isPresent(i)?i:n.type),this.receiver=t,this.index=r,this.value=n}return q(WriteKeyExpr,e),WriteKeyExpr.prototype.visitExpression=function(e,t){return e.visitWriteKeyExpr(this,t)},WriteKeyExpr}(oe),le=function(e){function WritePropExpr(t,r,n,i){void 0===i&&(i=null),e.call(this,isPresent(i)?i:n.type),this.receiver=t,this.name=r,this.value=n}return q(WritePropExpr,e),WritePropExpr.prototype.visitExpression=function(e,t){return e.visitWritePropExpr(this,t)},WritePropExpr}(oe);!function(e){e[e.ConcatArray=0]="ConcatArray",e[e.SubscribeObservable=1]="SubscribeObservable",e[e.Bind=2]="Bind"}(se||(se={}));var pe,he=function(e){function InvokeMethodExpr(t,r,n,i){void 0===i&&(i=null),e.call(this,i),this.receiver=t,this.args=n,isString(r)?(this.name=r,this.builtin=null):(this.name=null,this.builtin=r)}return q(InvokeMethodExpr,e),InvokeMethodExpr.prototype.visitExpression=function(e,t){return e.visitInvokeMethodExpr(this,t)},InvokeMethodExpr}(oe),fe=function(e){function InvokeFunctionExpr(t,r,n){void 0===n&&(n=null),e.call(this,n),this.fn=t,this.args=r}return q(InvokeFunctionExpr,e),InvokeFunctionExpr.prototype.visitExpression=function(e,t){return e.visitInvokeFunctionExpr(this,t)},InvokeFunctionExpr}(oe),de=function(e){function InstantiateExpr(t,r,n){e.call(this,n),this.classExpr=t,this.args=r}return q(InstantiateExpr,e),InstantiateExpr.prototype.visitExpression=function(e,t){return e.visitInstantiateExpr(this,t)},InstantiateExpr}(oe),me=function(e){function LiteralExpr(t,r){void 0===r&&(r=null),e.call(this,r),this.value=t}return q(LiteralExpr,e),LiteralExpr.prototype.visitExpression=function(e,t){return e.visitLiteralExpr(this,t)},LiteralExpr}(oe),ve=function(e){function ExternalExpr(t,r,n){void 0===r&&(r=null),void 0===n&&(n=null),e.call(this,r),this.value=t,this.typeParams=n}return q(ExternalExpr,e),ExternalExpr.prototype.visitExpression=function(e,t){return e.visitExternalExpr(this,t)},ExternalExpr}(oe),ye=function(e){function ConditionalExpr(t,r,n,i){void 0===n&&(n=null),void 0===i&&(i=null),e.call(this,isPresent(i)?i:r.type),this.condition=t,this.falseCase=n,this.trueCase=r}return q(ConditionalExpr,e),ConditionalExpr.prototype.visitExpression=function(e,t){return e.visitConditionalExpr(this,t)},ConditionalExpr}(oe),be=function(e){function NotExpr(t){e.call(this,ee),this.condition=t}return q(NotExpr,e),NotExpr.prototype.visitExpression=function(e,t){return e.visitNotExpr(this,t)},NotExpr}(oe),ge=function(e){function CastExpr(t,r){e.call(this,r),this.value=t}return q(CastExpr,e),CastExpr.prototype.visitExpression=function(e,t){return e.visitCastExpr(this,t)},CastExpr}(oe),_e=function(){function FnParam(e,t){void 0===t&&(t=null),this.name=e,this.type=t}return FnParam}(),Se=function(e){function FunctionExpr(t,r,n){void 0===n&&(n=null),e.call(this,n),this.params=t,this.statements=r}return q(FunctionExpr,e),FunctionExpr.prototype.visitExpression=function(e,t){return e.visitFunctionExpr(this,t)},FunctionExpr.prototype.toDeclStmt=function(e,t){return void 0===t&&(t=null),new ke(e,this.params,this.statements,this.type,t)},FunctionExpr}(oe),we=function(e){function BinaryOperatorExpr(t,r,n,i){void 0===i&&(i=null),e.call(this,isPresent(i)?i:r.type),this.operator=t,this.rhs=n,this.lhs=r}return q(BinaryOperatorExpr,e),BinaryOperatorExpr.prototype.visitExpression=function(e,t){return e.visitBinaryOperatorExpr(this,t)},BinaryOperatorExpr}(oe),Ee=function(e){function ReadPropExpr(t,r,n){void 0===n&&(n=null),e.call(this,n),this.receiver=t,this.name=r}return q(ReadPropExpr,e),ReadPropExpr.prototype.visitExpression=function(e,t){return e.visitReadPropExpr(this,t)},ReadPropExpr.prototype.set=function(e){return new le(this.receiver,this.name,e)},ReadPropExpr}(oe),Ce=function(e){function ReadKeyExpr(t,r,n){void 0===n&&(n=null),e.call(this,n),this.receiver=t,this.index=r}return q(ReadKeyExpr,e),ReadKeyExpr.prototype.visitExpression=function(e,t){return e.visitReadKeyExpr(this,t)},ReadKeyExpr.prototype.set=function(e){return new ce(this.receiver,this.index,e)},ReadKeyExpr}(oe),Pe=function(e){function LiteralArrayExpr(t,r){void 0===r&&(r=null),e.call(this,r),this.entries=t}return q(LiteralArrayExpr,e),LiteralArrayExpr.prototype.visitExpression=function(e,t){return e.visitLiteralArrayExpr(this,t)},LiteralArrayExpr}(oe),Te=function(e){function LiteralMapExpr(t,r){void 0===r&&(r=null),e.call(this,r),this.entries=t,this.valueType=null,isPresent(r)&&(this.valueType=r.valueType)}return q(LiteralMapExpr,e),LiteralMapExpr.prototype.visitExpression=function(e,t){return e.visitLiteralMapExpr(this,t)},LiteralMapExpr}(oe),xe=new ae(ie.This),Ae=new ae(ie.Super),Oe=(new ae(ie.CatchError),new ae(ie.CatchStack),new me(null,null));!function(e){e[e.Final=0]="Final",e[e.Private=1]="Private"}(pe||(pe={}));var Ie,Re=function(){function Statement(e){void 0===e&&(e=null),this.modifiers=e,isBlank(e)&&(this.modifiers=[])}return Statement.prototype.hasModifier=function(e){return this.modifiers.indexOf(e)!==-1},Statement}(),Me=function(e){function DeclareVarStmt(t,r,n,i){void 0===n&&(n=null),void 0===i&&(i=null),e.call(this,i),this.name=t,this.value=r,this.type=isPresent(n)?n:r.type}return q(DeclareVarStmt,e),DeclareVarStmt.prototype.visitStatement=function(e,t){return e.visitDeclareVarStmt(this,t)},DeclareVarStmt}(Re),ke=function(e){function DeclareFunctionStmt(t,r,n,i,o){void 0===i&&(i=null),void 0===o&&(o=null),e.call(this,o),this.name=t,this.params=r,this.statements=n,this.type=i}return q(DeclareFunctionStmt,e),DeclareFunctionStmt.prototype.visitStatement=function(e,t){return e.visitDeclareFunctionStmt(this,t)},DeclareFunctionStmt;
}(Re),Ne=function(e){function ExpressionStatement(t){e.call(this),this.expr=t}return q(ExpressionStatement,e),ExpressionStatement.prototype.visitStatement=function(e,t){return e.visitExpressionStmt(this,t)},ExpressionStatement}(Re),De=function(e){function ReturnStatement(t){e.call(this),this.value=t}return q(ReturnStatement,e),ReturnStatement.prototype.visitStatement=function(e,t){return e.visitReturnStmt(this,t)},ReturnStatement}(Re),Ve=function(){function AbstractClassPart(e,t){void 0===e&&(e=null),this.type=e,this.modifiers=t,isBlank(t)&&(this.modifiers=[])}return AbstractClassPart.prototype.hasModifier=function(e){return this.modifiers.indexOf(e)!==-1},AbstractClassPart}(),je=function(e){function ClassField(t,r,n){void 0===r&&(r=null),void 0===n&&(n=null),e.call(this,r,n),this.name=t}return q(ClassField,e),ClassField}(Ve),Le=function(e){function ClassMethod(t,r,n,i,o){void 0===i&&(i=null),void 0===o&&(o=null),e.call(this,i,o),this.name=t,this.params=r,this.body=n}return q(ClassMethod,e),ClassMethod}(Ve),Fe=function(e){function ClassGetter(t,r,n,i){void 0===n&&(n=null),void 0===i&&(i=null),e.call(this,n,i),this.name=t,this.body=r}return q(ClassGetter,e),ClassGetter}(Ve),Be=function(e){function ClassStmt(t,r,n,i,o,s,a){void 0===a&&(a=null),e.call(this,a),this.name=t,this.parent=r,this.fields=n,this.getters=i,this.constructorMethod=o,this.methods=s}return q(ClassStmt,e),ClassStmt.prototype.visitStatement=function(e,t){return e.visitDeclareClassStmt(this,t)},ClassStmt}(Re),We=function(e){function IfStmt(t,r,n){void 0===n&&(n=[]),e.call(this),this.condition=t,this.trueCase=r,this.falseCase=n}return q(IfStmt,e),IfStmt.prototype.visitStatement=function(e,t){return e.visitIfStmt(this,t)},IfStmt}(Re),Ue=(function(e){function CommentStmt(t){e.call(this),this.comment=t}return q(CommentStmt,e),CommentStmt.prototype.visitStatement=function(e,t){return e.visitCommentStmt(this,t)},CommentStmt}(Re),function(e){function TryCatchStmt(t,r){e.call(this),this.bodyStmts=t,this.catchStmts=r}return q(TryCatchStmt,e),TryCatchStmt.prototype.visitStatement=function(e,t){return e.visitTryCatchStmt(this,t)},TryCatchStmt}(Re)),ze=function(e){function ThrowStmt(t){e.call(this),this.error=t}return q(ThrowStmt,e),ThrowStmt.prototype.visitStatement=function(e,t){return e.visitThrowStmt(this,t)},ThrowStmt}(Re),He=function(){function ExpressionTransformer(){}return ExpressionTransformer.prototype.visitReadVarExpr=function(e,t){return e},ExpressionTransformer.prototype.visitWriteVarExpr=function(e,t){return new ue(e.name,e.value.visitExpression(this,t))},ExpressionTransformer.prototype.visitWriteKeyExpr=function(e,t){return new ce(e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.value.visitExpression(this,t))},ExpressionTransformer.prototype.visitWritePropExpr=function(e,t){return new le(e.receiver.visitExpression(this,t),e.name,e.value.visitExpression(this,t))},ExpressionTransformer.prototype.visitInvokeMethodExpr=function(e,t){var r=isPresent(e.builtin)?e.builtin:e.name;return new he(e.receiver.visitExpression(this,t),r,this.visitAllExpressions(e.args,t),e.type)},ExpressionTransformer.prototype.visitInvokeFunctionExpr=function(e,t){return new fe(e.fn.visitExpression(this,t),this.visitAllExpressions(e.args,t),e.type)},ExpressionTransformer.prototype.visitInstantiateExpr=function(e,t){return new de(e.classExpr.visitExpression(this,t),this.visitAllExpressions(e.args,t),e.type)},ExpressionTransformer.prototype.visitLiteralExpr=function(e,t){return e},ExpressionTransformer.prototype.visitExternalExpr=function(e,t){return e},ExpressionTransformer.prototype.visitConditionalExpr=function(e,t){return new ye(e.condition.visitExpression(this,t),e.trueCase.visitExpression(this,t),e.falseCase.visitExpression(this,t))},ExpressionTransformer.prototype.visitNotExpr=function(e,t){return new be(e.condition.visitExpression(this,t))},ExpressionTransformer.prototype.visitCastExpr=function(e,t){return new ge(e.value.visitExpression(this,t),t)},ExpressionTransformer.prototype.visitFunctionExpr=function(e,t){return e},ExpressionTransformer.prototype.visitBinaryOperatorExpr=function(e,t){return new we(e.operator,e.lhs.visitExpression(this,t),e.rhs.visitExpression(this,t),e.type)},ExpressionTransformer.prototype.visitReadPropExpr=function(e,t){return new Ee(e.receiver.visitExpression(this,t),e.name,e.type)},ExpressionTransformer.prototype.visitReadKeyExpr=function(e,t){return new Ce(e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.type)},ExpressionTransformer.prototype.visitLiteralArrayExpr=function(e,t){return new Pe(this.visitAllExpressions(e.entries,t))},ExpressionTransformer.prototype.visitLiteralMapExpr=function(e,t){var r=this;return new Te(e.entries.map(function(e){return[e[0],e[1].visitExpression(r,t)]}))},ExpressionTransformer.prototype.visitAllExpressions=function(e,t){var r=this;return e.map(function(e){return e.visitExpression(r,t)})},ExpressionTransformer.prototype.visitDeclareVarStmt=function(e,t){return new Me(e.name,e.value.visitExpression(this,t),e.type,e.modifiers)},ExpressionTransformer.prototype.visitDeclareFunctionStmt=function(e,t){return e},ExpressionTransformer.prototype.visitExpressionStmt=function(e,t){return new Ne(e.expr.visitExpression(this,t))},ExpressionTransformer.prototype.visitReturnStmt=function(e,t){return new De(e.value.visitExpression(this,t))},ExpressionTransformer.prototype.visitDeclareClassStmt=function(e,t){return e},ExpressionTransformer.prototype.visitIfStmt=function(e,t){return new We(e.condition.visitExpression(this,t),this.visitAllStatements(e.trueCase,t),this.visitAllStatements(e.falseCase,t))},ExpressionTransformer.prototype.visitTryCatchStmt=function(e,t){return new Ue(this.visitAllStatements(e.bodyStmts,t),this.visitAllStatements(e.catchStmts,t))},ExpressionTransformer.prototype.visitThrowStmt=function(e,t){return new ze(e.error.visitExpression(this,t))},ExpressionTransformer.prototype.visitCommentStmt=function(e,t){return e},ExpressionTransformer.prototype.visitAllStatements=function(e,t){var r=this;return e.map(function(e){return e.visitStatement(r,t)})},ExpressionTransformer}(),qe=function(){function RecursiveExpressionVisitor(){}return RecursiveExpressionVisitor.prototype.visitReadVarExpr=function(e,t){return e},RecursiveExpressionVisitor.prototype.visitWriteVarExpr=function(e,t){return e.value.visitExpression(this,t),e},RecursiveExpressionVisitor.prototype.visitWriteKeyExpr=function(e,t){return e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.value.visitExpression(this,t),e},RecursiveExpressionVisitor.prototype.visitWritePropExpr=function(e,t){return e.receiver.visitExpression(this,t),e.value.visitExpression(this,t),e},RecursiveExpressionVisitor.prototype.visitInvokeMethodExpr=function(e,t){return e.receiver.visitExpression(this,t),this.visitAllExpressions(e.args,t),e},RecursiveExpressionVisitor.prototype.visitInvokeFunctionExpr=function(e,t){return e.fn.visitExpression(this,t),this.visitAllExpressions(e.args,t),e},RecursiveExpressionVisitor.prototype.visitInstantiateExpr=function(e,t){return e.classExpr.visitExpression(this,t),this.visitAllExpressions(e.args,t),e},RecursiveExpressionVisitor.prototype.visitLiteralExpr=function(e,t){return e},RecursiveExpressionVisitor.prototype.visitExternalExpr=function(e,t){return e},RecursiveExpressionVisitor.prototype.visitConditionalExpr=function(e,t){return e.condition.visitExpression(this,t),e.trueCase.visitExpression(this,t),e.falseCase.visitExpression(this,t),e},RecursiveExpressionVisitor.prototype.visitNotExpr=function(e,t){return e.condition.visitExpression(this,t),e},RecursiveExpressionVisitor.prototype.visitCastExpr=function(e,t){return e.value.visitExpression(this,t),e},RecursiveExpressionVisitor.prototype.visitFunctionExpr=function(e,t){return e},RecursiveExpressionVisitor.prototype.visitBinaryOperatorExpr=function(e,t){return e.lhs.visitExpression(this,t),e.rhs.visitExpression(this,t),e},RecursiveExpressionVisitor.prototype.visitReadPropExpr=function(e,t){return e.receiver.visitExpression(this,t),e},RecursiveExpressionVisitor.prototype.visitReadKeyExpr=function(e,t){return e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e},RecursiveExpressionVisitor.prototype.visitLiteralArrayExpr=function(e,t){return this.visitAllExpressions(e.entries,t),e},RecursiveExpressionVisitor.prototype.visitLiteralMapExpr=function(e,t){var r=this;return e.entries.forEach(function(e){return e[1].visitExpression(r,t)}),e},RecursiveExpressionVisitor.prototype.visitAllExpressions=function(e,t){var r=this;e.forEach(function(e){return e.visitExpression(r,t)})},RecursiveExpressionVisitor.prototype.visitDeclareVarStmt=function(e,t){return e.value.visitExpression(this,t),e},RecursiveExpressionVisitor.prototype.visitDeclareFunctionStmt=function(e,t){return e},RecursiveExpressionVisitor.prototype.visitExpressionStmt=function(e,t){return e.expr.visitExpression(this,t),e},RecursiveExpressionVisitor.prototype.visitReturnStmt=function(e,t){return e.value.visitExpression(this,t),e},RecursiveExpressionVisitor.prototype.visitDeclareClassStmt=function(e,t){return e},RecursiveExpressionVisitor.prototype.visitIfStmt=function(e,t){return e.condition.visitExpression(this,t),this.visitAllStatements(e.trueCase,t),this.visitAllStatements(e.falseCase,t),e},RecursiveExpressionVisitor.prototype.visitTryCatchStmt=function(e,t){return this.visitAllStatements(e.bodyStmts,t),this.visitAllStatements(e.catchStmts,t),e},RecursiveExpressionVisitor.prototype.visitThrowStmt=function(e,t){return e.error.visitExpression(this,t),e},RecursiveExpressionVisitor.prototype.visitCommentStmt=function(e,t){return e},RecursiveExpressionVisitor.prototype.visitAllStatements=function(e,t){var r=this;e.forEach(function(e){return e.visitStatement(r,t)})},RecursiveExpressionVisitor}(),Ge=function(e){function _ReplaceVariableTransformer(t,r){e.call(this),this._varName=t,this._newValue=r}return q(_ReplaceVariableTransformer,e),_ReplaceVariableTransformer.prototype.visitReadVarExpr=function(e,t){return e.name==this._varName?this._newValue:e},_ReplaceVariableTransformer}(He),Ke=function(e){function _VariableFinder(){e.apply(this,arguments),this.varNames=new Set}return q(_VariableFinder,e),_VariableFinder.prototype.visitReadVarExpr=function(e,t){return this.varNames.add(e.name),null},_VariableFinder}(qe),Qe="",Xe=/([A-Z])/g,Je=function(){function ValueTransformer(){}return ValueTransformer.prototype.visitArray=function(e,t){var r=this;return e.map(function(e){return visitValue(e,r,t)})},ValueTransformer.prototype.visitStringMap=function(e,t){var r=this,n={};return I.forEach(e,function(e,i){n[i]=visitValue(e,r,t)}),n},ValueTransformer.prototype.visitPrimitive=function(e,t){return e},ValueTransformer.prototype.visitOther=function(e,t){return e},ValueTransformer}(),Ze=function(){function SyncAsyncResult(e,t){void 0===t&&(t=null),this.syncResult=e,this.asyncResult=t,t||(this.asyncResult=Promise.resolve(e))}return SyncAsyncResult}(),$e=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},Ye=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,et=function(){function CompileMetadataWithIdentifier(){}return Object.defineProperty(CompileMetadataWithIdentifier.prototype,"identifier",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),CompileMetadataWithIdentifier}(),tt=function(){function CompileAnimationEntryMetadata(e,t){void 0===e&&(e=null),void 0===t&&(t=null),this.name=e,this.definitions=t}return CompileAnimationEntryMetadata}(),rt=function(){function CompileAnimationStateMetadata(){}return CompileAnimationStateMetadata}(),nt=function(e){function CompileAnimationStateDeclarationMetadata(t,r){e.call(this),this.stateNameExpr=t,this.styles=r}return $e(CompileAnimationStateDeclarationMetadata,e),CompileAnimationStateDeclarationMetadata}(rt),it=function(e){function CompileAnimationStateTransitionMetadata(t,r){e.call(this),this.stateChangeExpr=t,this.steps=r}return $e(CompileAnimationStateTransitionMetadata,e),CompileAnimationStateTransitionMetadata}(rt),ot=function(){function CompileAnimationMetadata(){}return CompileAnimationMetadata}(),st=function(e){function CompileAnimationKeyframesSequenceMetadata(t){void 0===t&&(t=[]),e.call(this),this.steps=t}return $e(CompileAnimationKeyframesSequenceMetadata,e),CompileAnimationKeyframesSequenceMetadata}(ot),at=function(e){function CompileAnimationStyleMetadata(t,r){void 0===r&&(r=null),e.call(this),this.offset=t,this.styles=r}return $e(CompileAnimationStyleMetadata,e),CompileAnimationStyleMetadata}(ot),ut=function(e){function CompileAnimationAnimateMetadata(t,r){void 0===t&&(t=0),void 0===r&&(r=null),e.call(this),this.timings=t,this.styles=r}return $e(CompileAnimationAnimateMetadata,e),CompileAnimationAnimateMetadata}(ot),ct=function(e){function CompileAnimationWithStepsMetadata(t){void 0===t&&(t=null),e.call(this),this.steps=t}return $e(CompileAnimationWithStepsMetadata,e),CompileAnimationWithStepsMetadata}(ot),lt=function(e){function CompileAnimationSequenceMetadata(t){void 0===t&&(t=null),e.call(this,t)}return $e(CompileAnimationSequenceMetadata,e),CompileAnimationSequenceMetadata}(ct),pt=function(e){function CompileAnimationGroupMetadata(t){void 0===t&&(t=null),e.call(this,t)}return $e(CompileAnimationGroupMetadata,e),CompileAnimationGroupMetadata}(ct),ht=function(){function CompileIdentifierMetadata(e){var t=void 0===e?{}:e,r=t.reference,n=t.name,i=t.moduleUrl,o=t.prefix,s=t.value;this.reference=r,this.name=n,this.prefix=o,this.moduleUrl=i,this.value=s}return Object.defineProperty(CompileIdentifierMetadata.prototype,"identifier",{get:function(){return this},enumerable:!0,configurable:!0}),CompileIdentifierMetadata}(),ft=function(){function CompileDiDependencyMetadata(e){var t=void 0===e?{}:e,r=t.isAttribute,n=t.isSelf,i=t.isHost,o=t.isSkipSelf,s=t.isOptional,a=t.isValue,u=t.query,c=t.viewQuery,l=t.token,p=t.value;this.isAttribute=normalizeBool(r),this.isSelf=normalizeBool(n),this.isHost=normalizeBool(i),this.isSkipSelf=normalizeBool(o),this.isOptional=normalizeBool(s),this.isValue=normalizeBool(a),this.query=u,this.viewQuery=c,this.token=l,this.value=p}return CompileDiDependencyMetadata}(),dt=function(){function CompileProviderMetadata(e){var t=e.token,r=e.useClass,n=e.useValue,i=e.useExisting,o=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=r,this.useValue=n,this.useExisting=i,this.useFactory=o,this.deps=normalizeBlank(s),this.multi=normalizeBool(a)}return CompileProviderMetadata}(),mt=function(e){function CompileFactoryMetadata(t){var r=t.reference,n=t.name,i=t.moduleUrl,o=t.prefix,s=t.diDeps,a=t.value;e.call(this,{reference:r,name:n,prefix:o,moduleUrl:i,value:a}),this.diDeps=_normalizeArray(s)}return $e(CompileFactoryMetadata,e),CompileFactoryMetadata}(ht),vt=function(){function CompileTokenMetadata(e){var t=e.value,r=e.identifier,n=e.identifierIsInstance;this.value=t,this.identifier=r,this.identifierIsInstance=normalizeBool(n)}return Object.defineProperty(CompileTokenMetadata.prototype,"reference",{get:function(){return isPresent(this.identifier)?this.identifier.reference:this.value},enumerable:!0,configurable:!0}),Object.defineProperty(CompileTokenMetadata.prototype,"name",{get:function(){return isPresent(this.value)?sanitizeIdentifier(this.value):this.identifier.name},enumerable:!0,configurable:!0}),CompileTokenMetadata}(),yt=function(e){function CompileTypeMetadata(t){var r=void 0===t?{}:t,n=r.reference,i=r.name,o=r.moduleUrl,s=r.prefix,a=r.isHost,u=r.value,c=r.diDeps,l=r.lifecycleHooks;e.call(this,{reference:n,name:i,moduleUrl:o,prefix:s,value:u}),this.isHost=normalizeBool(a),this.diDeps=_normalizeArray(c),this.lifecycleHooks=_normalizeArray(l)}return $e(CompileTypeMetadata,e),CompileTypeMetadata}(ht),bt=function(){function CompileQueryMetadata(e){var t=void 0===e?{}:e,r=t.selectors,n=t.descendants,i=t.first,o=t.propertyName,s=t.read;this.selectors=r,this.descendants=normalizeBool(n),this.first=normalizeBool(i),this.propertyName=o,this.read=s}return CompileQueryMetadata}(),gt=function(){function CompileStylesheetMetadata(e){var t=void 0===e?{}:e,r=t.moduleUrl,n=t.styles,i=t.styleUrls;this.moduleUrl=r,this.styles=_normalizeArray(n),this.styleUrls=_normalizeArray(i)}return CompileStylesheetMetadata}(),_t=function(){function CompileTemplateMetadata(e){var t=void 0===e?{}:e,r=t.encapsulation,n=t.template,i=t.templateUrl,o=t.styles,s=t.styleUrls,a=t.externalStylesheets,u=t.animations,c=t.ngContentSelectors,l=t.interpolation;if(this.encapsulation=r,this.template=n,this.templateUrl=i,this.styles=_normalizeArray(o),this.styleUrls=_normalizeArray(s),this.externalStylesheets=_normalizeArray(a),this.animations=isPresent(u)?R.flatten(u):[],this.ngContentSelectors=isPresent(c)?c:[],isPresent(l)&&2!=l.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=l}return CompileTemplateMetadata}(),St=function(){function CompileDirectiveMetadata(e){var t=void 0===e?{}:e,r=t.type,n=t.isComponent,i=t.selector,o=t.exportAs,s=t.changeDetection,a=t.inputs,u=t.outputs,c=t.hostListeners,l=t.hostProperties,p=t.hostAttributes,h=t.providers,f=t.viewProviders,d=t.queries,m=t.viewQueries,v=t.entryComponents,y=t.template;this.type=r,this.isComponent=n,this.selector=i,this.exportAs=o,this.changeDetection=s,this.inputs=a,this.outputs=u,this.hostListeners=c,this.hostProperties=l,this.hostAttributes=p,this.providers=_normalizeArray(h),this.viewProviders=_normalizeArray(f),this.queries=_normalizeArray(d),this.viewQueries=_normalizeArray(m),this.entryComponents=_normalizeArray(v),this.template=y}return CompileDirectiveMetadata.create=function(e){var t=void 0===e?{}:e,r=t.type,n=t.isComponent,i=t.selector,o=t.exportAs,s=t.changeDetection,a=t.inputs,u=t.outputs,c=t.host,l=t.providers,p=t.viewProviders,h=t.queries,f=t.viewQueries,d=t.entryComponents,m=t.template,v={},y={},b={};isPresent(c)&&I.forEach(c,function(e,t){var r=t.match(Ye);null===r?b[t]=e:isPresent(r[1])?y[r[1]]=e:isPresent(r[2])&&(v[r[2]]=e)});var g={};isPresent(a)&&a.forEach(function(e){var t=splitAtColon(e,[e,e]);g[t[0]]=t[1]});var _={};return isPresent(u)&&u.forEach(function(e){var t=splitAtColon(e,[e,e]);_[t[0]]=t[1]}),new CompileDirectiveMetadata({type:r,isComponent:normalizeBool(n),selector:i,exportAs:o,changeDetection:s,inputs:g,outputs:_,hostListeners:v,hostProperties:y,hostAttributes:b,providers:l,viewProviders:p,queries:h,viewQueries:f,entryComponents:d,template:m})},Object.defineProperty(CompileDirectiveMetadata.prototype,"identifier",{get:function(){return this.type},enumerable:!0,configurable:!0}),CompileDirectiveMetadata}(),wt=function(){function CompilePipeMetadata(e){var t=void 0===e?{}:e,r=t.type,n=t.name,i=t.pure;this.type=r,this.name=n,this.pure=normalizeBool(i)}return Object.defineProperty(CompilePipeMetadata.prototype,"identifier",{get:function(){return this.type},enumerable:!0,configurable:!0}),CompilePipeMetadata}(),Et=function(){function CompileNgModuleMetadata(e){var t=void 0===e?{}:e,r=t.type,n=t.providers,i=t.declaredDirectives,o=t.exportedDirectives,s=t.declaredPipes,a=t.exportedPipes,u=t.entryComponents,c=t.bootstrapComponents,l=t.importedModules,p=t.exportedModules,h=t.schemas,f=t.transitiveModule,d=t.id;this.type=r,this.declaredDirectives=_normalizeArray(i),this.exportedDirectives=_normalizeArray(o),this.declaredPipes=_normalizeArray(s),this.exportedPipes=_normalizeArray(a),this.providers=_normalizeArray(n),this.entryComponents=_normalizeArray(u),this.bootstrapComponents=_normalizeArray(c),this.importedModules=_normalizeArray(l),this.exportedModules=_normalizeArray(p),this.schemas=_normalizeArray(h),this.id=d,this.transitiveModule=f}return Object.defineProperty(CompileNgModuleMetadata.prototype,"identifier",{get:function(){return this.type},enumerable:!0,configurable:!0}),CompileNgModuleMetadata}(),Ct=function(){function TransitiveCompileNgModuleMetadata(e,t,r,n,i){var o=this;this.modules=e,this.providers=t,this.entryComponents=r,this.directives=n,this.pipes=i,this.directivesSet=new Set,this.pipesSet=new Set,n.forEach(function(e){return o.directivesSet.add(e.type.reference)}),i.forEach(function(e){return o.pipesSet.add(e.type.reference)})}return TransitiveCompileNgModuleMetadata}(),Pt=function(){function ProviderMeta(e,t){var r=t.useClass,n=t.useValue,i=t.useExisting,o=t.useFactory,s=t.deps,a=t.multi;this.token=e,this.useClass=r,this.useValue=n,this.useExisting=i,this.useFactory=o,this.dependencies=s,this.multi=!!a}return ProviderMeta}(),Tt=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},xt=function(){function ParserError(e,t,r,n){this.input=t,this.errLocation=r,this.ctxLocation=n,this.message="Parser Error: "+e+" "+r+" ["+t+"] in "+n}return ParserError}(),At=function(){function ParseSpan(e,t){this.start=e,this.end=t}return ParseSpan}(),Ot=function(){function AST(e){this.span=e}return AST.prototype.visit=function(e,t){return void 0===t&&(t=null),null},AST.prototype.toString=function(){return"AST"},AST}(),It=function(e){function Quote(t,r,n,i){e.call(this,t),this.prefix=r,this.uninterpretedExpression=n,this.location=i}return Tt(Quote,e),Quote.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitQuote(this,t)},Quote.prototype.toString=function(){return"Quote"},Quote}(Ot),Rt=function(e){function EmptyExpr(){e.apply(this,arguments)}return Tt(EmptyExpr,e),EmptyExpr.prototype.visit=function(e,t){void 0===t&&(t=null)},EmptyExpr}(Ot),Mt=function(e){function ImplicitReceiver(){e.apply(this,arguments)}return Tt(ImplicitReceiver,e),ImplicitReceiver.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitImplicitReceiver(this,t)},ImplicitReceiver}(Ot),kt=function(e){function Chain(t,r){e.call(this,t),this.expressions=r}return Tt(Chain,e),Chain.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitChain(this,t)},Chain}(Ot),Nt=function(e){function Conditional(t,r,n,i){e.call(this,t),this.condition=r,this.trueExp=n,this.falseExp=i}return Tt(Conditional,e),Conditional.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitConditional(this,t)},Conditional}(Ot),Dt=function(e){function PropertyRead(t,r,n){e.call(this,t),this.receiver=r,this.name=n}return Tt(PropertyRead,e),PropertyRead.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPropertyRead(this,t)},PropertyRead}(Ot),Vt=function(e){function PropertyWrite(t,r,n,i){e.call(this,t),this.receiver=r,this.name=n,this.value=i}return Tt(PropertyWrite,e),PropertyWrite.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPropertyWrite(this,t)},PropertyWrite}(Ot),jt=function(e){function SafePropertyRead(t,r,n){e.call(this,t),this.receiver=r,this.name=n}return Tt(SafePropertyRead,e),SafePropertyRead.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitSafePropertyRead(this,t)},SafePropertyRead}(Ot),Lt=function(e){function KeyedRead(t,r,n){e.call(this,t),this.obj=r,this.key=n}return Tt(KeyedRead,e),KeyedRead.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitKeyedRead(this,t)},KeyedRead}(Ot),Ft=function(e){function KeyedWrite(t,r,n,i){e.call(this,t),this.obj=r,this.key=n,this.value=i}return Tt(KeyedWrite,e),KeyedWrite.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitKeyedWrite(this,t)},KeyedWrite}(Ot),Bt=function(e){function BindingPipe(t,r,n,i){e.call(this,t),this.exp=r,this.name=n,this.args=i}return Tt(BindingPipe,e),BindingPipe.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPipe(this,t)},BindingPipe}(Ot),Wt=function(e){function LiteralPrimitive(t,r){e.call(this,t),this.value=r}return Tt(LiteralPrimitive,e),LiteralPrimitive.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralPrimitive(this,t)},LiteralPrimitive}(Ot),Ut=function(e){function LiteralArray(t,r){e.call(this,t),this.expressions=r}return Tt(LiteralArray,e),LiteralArray.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralArray(this,t)},LiteralArray}(Ot),zt=function(e){function LiteralMap(t,r,n){e.call(this,t),this.keys=r,this.values=n}return Tt(LiteralMap,e),LiteralMap.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralMap(this,t)},LiteralMap}(Ot),Ht=function(e){function Interpolation(t,r,n){e.call(this,t),this.strings=r,this.expressions=n}return Tt(Interpolation,e),Interpolation.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitInterpolation(this,t)},Interpolation}(Ot),qt=function(e){function Binary(t,r,n,i){e.call(this,t),this.operation=r,this.left=n,this.right=i}return Tt(Binary,e),Binary.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitBinary(this,t)},Binary}(Ot),Gt=function(e){function PrefixNot(t,r){e.call(this,t),this.expression=r}return Tt(PrefixNot,e),PrefixNot.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPrefixNot(this,t)},PrefixNot}(Ot),Kt=function(e){function MethodCall(t,r,n,i){e.call(this,t),this.receiver=r,this.name=n,this.args=i}return Tt(MethodCall,e),MethodCall.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitMethodCall(this,t)},MethodCall}(Ot),Qt=function(e){function SafeMethodCall(t,r,n,i){e.call(this,t),this.receiver=r,this.name=n,this.args=i}return Tt(SafeMethodCall,e),SafeMethodCall.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitSafeMethodCall(this,t)},SafeMethodCall}(Ot),Xt=function(e){function FunctionCall(t,r,n){e.call(this,t),this.target=r,this.args=n}return Tt(FunctionCall,e),FunctionCall.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitFunctionCall(this,t)},FunctionCall}(Ot),Jt=function(e){function ASTWithSource(t,r,n,i){e.call(this,new At(0,isBlank(r)?0:r.length)),this.ast=t,this.source=r,this.location=n,this.errors=i}return Tt(ASTWithSource,e),ASTWithSource.prototype.visit=function(e,t){return void 0===t&&(t=null),this.ast.visit(e,t)},ASTWithSource.prototype.toString=function(){return this.source+" in "+this.location},ASTWithSource}(Ot),Zt=function(){function TemplateBinding(e,t,r,n){this.key=e,this.keyIsVar=t,this.name=r,this.expression=n}return TemplateBinding}(),$t=function(){function RecursiveAstVisitor(){}return RecursiveAstVisitor.prototype.visitBinary=function(e,t){return e.left.visit(this),e.right.visit(this),null},RecursiveAstVisitor.prototype.visitChain=function(e,t){return this.visitAll(e.expressions,t)},RecursiveAstVisitor.prototype.visitConditional=function(e,t){return e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this),null},RecursiveAstVisitor.prototype.visitPipe=function(e,t){return e.exp.visit(this),this.visitAll(e.args,t),null},RecursiveAstVisitor.prototype.visitFunctionCall=function(e,t){return e.target.visit(this),this.visitAll(e.args,t),null},RecursiveAstVisitor.prototype.visitImplicitReceiver=function(e,t){return null},RecursiveAstVisitor.prototype.visitInterpolation=function(e,t){return this.visitAll(e.expressions,t)},RecursiveAstVisitor.prototype.visitKeyedRead=function(e,t){return e.obj.visit(this),e.key.visit(this),null},RecursiveAstVisitor.prototype.visitKeyedWrite=function(e,t){return e.obj.visit(this),e.key.visit(this),e.value.visit(this),null},RecursiveAstVisitor.prototype.visitLiteralArray=function(e,t){return this.visitAll(e.expressions,t)},RecursiveAstVisitor.prototype.visitLiteralMap=function(e,t){return this.visitAll(e.values,t)},RecursiveAstVisitor.prototype.visitLiteralPrimitive=function(e,t){return null},RecursiveAstVisitor.prototype.visitMethodCall=function(e,t){return e.receiver.visit(this),this.visitAll(e.args,t)},RecursiveAstVisitor.prototype.visitPrefixNot=function(e,t){return e.expression.visit(this),null},RecursiveAstVisitor.prototype.visitPropertyRead=function(e,t){return e.receiver.visit(this),null},RecursiveAstVisitor.prototype.visitPropertyWrite=function(e,t){return e.receiver.visit(this),e.value.visit(this),null},RecursiveAstVisitor.prototype.visitSafePropertyRead=function(e,t){return e.receiver.visit(this),null},RecursiveAstVisitor.prototype.visitSafeMethodCall=function(e,t){return e.receiver.visit(this),this.visitAll(e.args,t)},RecursiveAstVisitor.prototype.visitAll=function(e,t){var r=this;return e.forEach(function(e){return e.visit(r,t)}),null},RecursiveAstVisitor.prototype.visitQuote=function(e,t){return null},RecursiveAstVisitor}(),Yt=0,er=9,tr=10,rr=11,nr=12,ir=13,or=32,sr=33,ar=34,ur=35,cr=36,lr=37,pr=38,hr=39,fr=40,dr=41,mr=42,vr=43,yr=44,br=45,gr=46,_r=47,Sr=58,wr=59,Er=60,Cr=61,Pr=62,Tr=63,xr=48,Ar=57,Or=65,Ir=69,Rr=70,Mr=88,kr=90,Nr=91,Dr=92,Vr=93,jr=94,Lr=95,Fr=97,Br=101,Wr=102,Ur=110,zr=114,Hr=116,qr=117,Gr=118,Kr=120,Qr=122,Xr=123,Jr=124,Zr=125,$r=160,Yr=96,en=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],tn=function(){function InterpolationConfig(e,t){this.start=e,this.end=t}return InterpolationConfig.fromArray=function(e){return e?(assertInterpolationSymbols("interpolation",e),new InterpolationConfig(e[0],e[1])):rn},InterpolationConfig}(),rn=new tn("{{","}}");!function(e){e[e.Character=0]="Character",e[e.Identifier=1]="Identifier",e[e.Keyword=2]="Keyword",e[e.String=3]="String",e[e.Operator=4]="Operator",e[e.Number=5]="Number",e[e.Error=6]="Error"}(Ie||(Ie={}));var nn,on=["var","let","null","undefined","true","false","if","else","this"],sn=function(){function Lexer(){}return Lexer.prototype.tokenize=function(e){for(var t=new cn(e),r=[],n=t.scanToken();null!=n;)r.push(n),n=t.scanToken();return r},Lexer.decorators=[{type:r.Injectable}],Lexer.ctorParameters=[],Lexer}(),an=function(){function Token(e,t,r,n){this.index=e,this.type=t,this.numValue=r,this.strValue=n}return Token.prototype.isCharacter=function(e){return this.type==Ie.Character&&this.numValue==e},Token.prototype.isNumber=function(){return this.type==Ie.Number},Token.prototype.isString=function(){return this.type==Ie.String},Token.prototype.isOperator=function(e){return this.type==Ie.Operator&&this.strValue==e},Token.prototype.isIdentifier=function(){return this.type==Ie.Identifier},Token.prototype.isKeyword=function(){return this.type==Ie.Keyword},Token.prototype.isKeywordLet=function(){return this.type==Ie.Keyword&&"let"==this.strValue},Token.prototype.isKeywordNull=function(){return this.type==Ie.Keyword&&"null"==this.strValue},Token.prototype.isKeywordUndefined=function(){return this.type==Ie.Keyword&&"undefined"==this.strValue},Token.prototype.isKeywordTrue=function(){return this.type==Ie.Keyword&&"true"==this.strValue},Token.prototype.isKeywordFalse=function(){return this.type==Ie.Keyword&&"false"==this.strValue},Token.prototype.isKeywordThis=function(){return this.type==Ie.Keyword&&"this"==this.strValue},Token.prototype.isError=function(){return this.type==Ie.Error},Token.prototype.toNumber=function(){return this.type==Ie.Number?this.numValue:-1},Token.prototype.toString=function(){switch(this.type){case Ie.Character:case Ie.Identifier:case Ie.Keyword:case Ie.Operator:case Ie.String:case Ie.Error:return this.strValue;case Ie.Number:return this.numValue.toString();default:return null}},Token}(),un=new an((-1),Ie.Character,0,""),cn=function(){function _Scanner(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}return _Scanner.prototype.advance=function(){this.peek=++this.index>=this.length?Yt:s.charCodeAt(this.input,this.index)},_Scanner.prototype.scanToken=function(){for(var e=this.input,t=this.length,r=this.peek,n=this.index;r<=or;){if(++n>=t){r=Yt;break}r=s.charCodeAt(e,n)}if(this.peek=r,this.index=n,n>=t)return null;if(isIdentifierStart(r))return this.scanIdentifier();if(isDigit(r))return this.scanNumber(n);var i=n;switch(r){case gr:return this.advance(),isDigit(this.peek)?this.scanNumber(i):newCharacterToken(i,gr);case fr:case dr:case Xr:case Zr:case Nr:case Vr:case yr:case Sr:case wr:return this.scanCharacter(i,r);case hr:case ar:return this.scanString();case ur:case vr:case br:case mr:case _r:case lr:case jr:return this.scanOperator(i,s.fromCharCode(r));
case Tr:return this.scanComplexOperator(i,"?",gr,".");case Er:case Pr:return this.scanComplexOperator(i,s.fromCharCode(r),Cr,"=");case sr:case Cr:return this.scanComplexOperator(i,s.fromCharCode(r),Cr,"=",Cr,"=");case pr:return this.scanComplexOperator(i,"&",pr,"&");case Jr:return this.scanComplexOperator(i,"|",Jr,"|");case $r:for(;isWhitespace(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+s.fromCharCode(r)+"]",0)},_Scanner.prototype.scanCharacter=function(e,t){return this.advance(),newCharacterToken(e,t)},_Scanner.prototype.scanOperator=function(e,t){return this.advance(),newOperatorToken(e,t)},_Scanner.prototype.scanComplexOperator=function(e,t,r,n,i,o){this.advance();var s=t;return this.peek==r&&(this.advance(),s+=n),isPresent(i)&&this.peek==i&&(this.advance(),s+=o),newOperatorToken(e,s)},_Scanner.prototype.scanIdentifier=function(){var e=this.index;for(this.advance();isIdentifierPart(this.peek);)this.advance();var t=this.input.substring(e,this.index);return on.indexOf(t)>-1?newKeywordToken(e,t):newIdentifierToken(e,t)},_Scanner.prototype.scanNumber=function(e){var t=this.index===e;for(this.advance();;){if(isDigit(this.peek));else if(this.peek==gr)t=!1;else{if(!isExponentStart(this.peek))break;if(this.advance(),isExponentSign(this.peek)&&this.advance(),!isDigit(this.peek))return this.error("Invalid exponent",-1);t=!1}this.advance()}var r=this.input.substring(e,this.index),n=t?u.parseIntAutoRadix(r):parseFloat(r);return newNumberToken(e,n)},_Scanner.prototype.scanString=function(){var e=this.index,t=this.peek;this.advance();for(var r,n=this.index,i=this.input;this.peek!=t;)if(this.peek==Dr){null==r&&(r=new a),r.add(i.substring(n,this.index)),this.advance();var o;if(this.peek==qr){var c=i.substring(this.index+1,this.index+5);try{o=u.parseInt(c,16)}catch(l){return this.error("Invalid unicode escape [\\u"+c+"]",0)}for(var p=0;p<5;p++)this.advance()}else o=unescape(this.peek),this.advance();r.add(s.fromCharCode(o)),n=this.index}else{if(this.peek==Yt)return this.error("Unterminated quote",0);this.advance()}var h=i.substring(n,this.index);this.advance();var f=h;return null!=r&&(r.add(h),f=r.toString()),newStringToken(e,f)},_Scanner.prototype.error=function(e,t){var r=this.index+t;return newErrorToken(r,"Lexer Error: "+e+" at column "+r+" in expression ["+this.input+"]")},_Scanner}(),ln=function(){function SplitInterpolation(e,t){this.strings=e,this.expressions=t}return SplitInterpolation}(),pn=function(){function TemplateBindingParseResult(e,t,r){this.templateBindings=e,this.warnings=t,this.errors=r}return TemplateBindingParseResult}(),hn=function(){function Parser(e){this._lexer=e,this.errors=[]}return Parser.prototype.parseAction=function(e,t,r){void 0===r&&(r=rn),this._checkNoInterpolation(e,t,r);var n=this._lexer.tokenize(this._stripComments(e)),i=new dn(e,t,n,(!0),this.errors).parseChain();return new Jt(i,e,t,this.errors)},Parser.prototype.parseBinding=function(e,t,r){void 0===r&&(r=rn);var n=this._parseBindingAst(e,t,r);return new Jt(n,e,t,this.errors)},Parser.prototype.parseSimpleBinding=function(e,t,r){void 0===r&&(r=rn);var n=this._parseBindingAst(e,t,r);return mn.check(n)||this._reportError("Host binding expression can only contain field access and constants",e,t),new Jt(n,e,t,this.errors)},Parser.prototype._reportError=function(e,t,r,n){this.errors.push(new xt(e,t,r,n))},Parser.prototype._parseBindingAst=function(e,t,r){var n=this._parseQuote(e,t);if(isPresent(n))return n;this._checkNoInterpolation(e,t,r);var i=this._lexer.tokenize(this._stripComments(e));return new dn(e,t,i,(!1),this.errors).parseChain()},Parser.prototype._parseQuote=function(e,t){if(isBlank(e))return null;var r=e.indexOf(":");if(r==-1)return null;var n=e.substring(0,r).trim();if(!isIdentifier(n))return null;var i=e.substring(r+1);return new It(new At(0,e.length),n,i,t)},Parser.prototype.parseTemplateBindings=function(e,t){var r=this._lexer.tokenize(e);return new dn(e,t,r,(!1),this.errors).parseTemplateBindings()},Parser.prototype.parseInterpolation=function(e,t,r){void 0===r&&(r=rn);var n=this.splitInterpolation(e,t,r);if(null==n)return null;for(var i=[],o=0;o<n.expressions.length;++o){var s=this._lexer.tokenize(this._stripComments(n.expressions[o])),a=new dn(e,t,s,(!1),this.errors).parseChain();i.push(a)}return new Jt(new Ht(new At(0,isBlank(e)?0:e.length),n.strings,i),e,t,this.errors)},Parser.prototype.splitInterpolation=function(e,t,r){void 0===r&&(r=rn);var n=_createInterpolateRegExp(r),i=s.split(e,n);if(i.length<=1)return null;for(var o=[],a=[],u=0;u<i.length;u++){var c=i[u];u%2===0?o.push(c):c.trim().length>0?a.push(c):this._reportError("Blank expressions are not allowed in interpolated strings",e,"at column "+this._findInterpolationErrorColumn(i,u,r)+" in",t)}return new ln(o,a)},Parser.prototype.wrapLiteralPrimitive=function(e,t){return new Jt(new Wt(new At(0,isBlank(e)?0:e.length),e),e,t,this.errors)},Parser.prototype._stripComments=function(e){var t=this._commentStart(e);return isPresent(t)?e.substring(0,t).trim():e},Parser.prototype._commentStart=function(e){for(var t=null,r=0;r<e.length-1;r++){var n=s.charCodeAt(e,r),i=s.charCodeAt(e,r+1);if(n===_r&&i==_r&&isBlank(t))return r;t===n?t=null:isBlank(t)&&isQuote(n)&&(t=n)}return null},Parser.prototype._checkNoInterpolation=function(e,t,r){var n=_createInterpolateRegExp(r),i=s.split(e,n);i.length>1&&this._reportError("Got interpolation ("+r.start+r.end+") where expression was expected",e,"at column "+this._findInterpolationErrorColumn(i,1,r)+" in",t)},Parser.prototype._findInterpolationErrorColumn=function(e,t,r){for(var n="",i=0;i<t;i++)n+=i%2===0?e[i]:""+r.start+e[i]+r.end;return n.length},Parser.decorators=[{type:r.Injectable}],Parser.ctorParameters=[{type:sn}],Parser}(),dn=function(){function _ParseAST(e,t,r,n,i){this.input=e,this.location=t,this.tokens=r,this.parseAction=n,this.errors=i,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return _ParseAST.prototype.peek=function(e){var t=this.index+e;return t<this.tokens.length?this.tokens[t]:un},Object.defineProperty(_ParseAST.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(_ParseAST.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index:this.input.length},enumerable:!0,configurable:!0}),_ParseAST.prototype.span=function(e){return new At(e,this.inputIndex)},_ParseAST.prototype.advance=function(){this.index++},_ParseAST.prototype.optionalCharacter=function(e){return!!this.next.isCharacter(e)&&(this.advance(),!0)},_ParseAST.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},_ParseAST.prototype.expectCharacter=function(e){this.optionalCharacter(e)||this.error("Missing expected "+s.fromCharCode(e))},_ParseAST.prototype.optionalOperator=function(e){return!!this.next.isOperator(e)&&(this.advance(),!0)},_ParseAST.prototype.expectOperator=function(e){this.optionalOperator(e)||this.error("Missing expected operator "+e)},_ParseAST.prototype.expectIdentifierOrKeyword=function(){var e=this.next;return e.isIdentifier()||e.isKeyword()?(this.advance(),e.toString()):(this.error("Unexpected token "+e+", expected identifier or keyword"),"")},_ParseAST.prototype.expectIdentifierOrKeywordOrString=function(){var e=this.next;return e.isIdentifier()||e.isKeyword()||e.isString()?(this.advance(),e.toString()):(this.error("Unexpected token "+e+", expected identifier, keyword, or string"),"")},_ParseAST.prototype.parseChain=function(){for(var e=[],t=this.inputIndex;this.index<this.tokens.length;){var r=this.parsePipe();if(e.push(r),this.optionalCharacter(wr))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(wr););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==e.length?new Rt(this.span(t)):1==e.length?e[0]:new kt(this.span(t),e)},_ParseAST.prototype.parsePipe=function(){var e=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var t=this.expectIdentifierOrKeyword(),r=[];this.optionalCharacter(Sr);)r.push(this.parseExpression());e=new Bt(this.span(e.span.start),e,t,r)}while(this.optionalOperator("|"))}return e},_ParseAST.prototype.parseExpression=function(){return this.parseConditional()},_ParseAST.prototype.parseConditional=function(){var e=this.inputIndex,t=this.parseLogicalOr();if(this.optionalOperator("?")){var r=this.parsePipe(),n=void 0;if(this.optionalCharacter(Sr))n=this.parsePipe();else{var i=this.inputIndex,o=this.input.substring(e,i);this.error("Conditional expression "+o+" requires all 3 expressions"),n=new Rt(this.span(e))}return new Nt(this.span(e),t,r,n)}return t},_ParseAST.prototype.parseLogicalOr=function(){for(var e=this.parseLogicalAnd();this.optionalOperator("||");){var t=this.parseLogicalAnd();e=new qt(this.span(e.span.start),"||",e,t)}return e},_ParseAST.prototype.parseLogicalAnd=function(){for(var e=this.parseEquality();this.optionalOperator("&&");){var t=this.parseEquality();e=new qt(this.span(e.span.start),"&&",e,t)}return e},_ParseAST.prototype.parseEquality=function(){for(var e=this.parseRelational();this.next.type==Ie.Operator;){var t=this.next.strValue;switch(t){case"==":case"===":case"!=":case"!==":this.advance();var r=this.parseRelational();e=new qt(this.span(e.span.start),t,e,r);continue}break}return e},_ParseAST.prototype.parseRelational=function(){for(var e=this.parseAdditive();this.next.type==Ie.Operator;){var t=this.next.strValue;switch(t){case"<":case">":case"<=":case">=":this.advance();var r=this.parseAdditive();e=new qt(this.span(e.span.start),t,e,r);continue}break}return e},_ParseAST.prototype.parseAdditive=function(){for(var e=this.parseMultiplicative();this.next.type==Ie.Operator;){var t=this.next.strValue;switch(t){case"+":case"-":this.advance();var r=this.parseMultiplicative();e=new qt(this.span(e.span.start),t,e,r);continue}break}return e},_ParseAST.prototype.parseMultiplicative=function(){for(var e=this.parsePrefix();this.next.type==Ie.Operator;){var t=this.next.strValue;switch(t){case"*":case"%":case"/":this.advance();var r=this.parsePrefix();e=new qt(this.span(e.span.start),t,e,r);continue}break}return e},_ParseAST.prototype.parsePrefix=function(){if(this.next.type==Ie.Operator){var e=this.inputIndex,t=this.next.strValue,r=void 0;switch(t){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),r=this.parsePrefix(),new qt(this.span(e),t,new Wt(new At(e,e),0),r);case"!":return this.advance(),r=this.parsePrefix(),new Gt(this.span(e),r)}}return this.parseCallChain()},_ParseAST.prototype.parseCallChain=function(){for(var e=this.parsePrimary();;)if(this.optionalCharacter(gr))e=this.parseAccessMemberOrMethodCall(e,!1);else if(this.optionalOperator("?."))e=this.parseAccessMemberOrMethodCall(e,!0);else if(this.optionalCharacter(Nr)){this.rbracketsExpected++;var t=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(Vr),this.optionalOperator("=")){var r=this.parseConditional();e=new Ft(this.span(e.span.start),e,t,r)}else e=new Lt(this.span(e.span.start),e,t)}else{if(!this.optionalCharacter(fr))return e;this.rparensExpected++;var n=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(dr),e=new Xt(this.span(e.span.start),e,n)}},_ParseAST.prototype.parsePrimary=function(){var e=this.inputIndex;if(this.optionalCharacter(fr)){this.rparensExpected++;var t=this.parsePipe();return this.rparensExpected--,this.expectCharacter(dr),t}if(this.next.isKeywordNull())return this.advance(),new Wt(this.span(e),null);if(this.next.isKeywordUndefined())return this.advance(),new Wt(this.span(e),(void 0));if(this.next.isKeywordTrue())return this.advance(),new Wt(this.span(e),(!0));if(this.next.isKeywordFalse())return this.advance(),new Wt(this.span(e),(!1));if(this.next.isKeywordThis())return this.advance(),new Mt(this.span(e));if(this.optionalCharacter(Nr)){this.rbracketsExpected++;var r=this.parseExpressionList(Vr);return this.rbracketsExpected--,this.expectCharacter(Vr),new Ut(this.span(e),r)}if(this.next.isCharacter(Xr))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Mt(this.span(e)),!1);if(this.next.isNumber()){var n=this.next.toNumber();return this.advance(),new Wt(this.span(e),n)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new Wt(this.span(e),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new Rt(this.span(e))):(this.error("Unexpected token "+this.next),new Rt(this.span(e)))},_ParseAST.prototype.parseExpressionList=function(e){var t=[];if(!this.next.isCharacter(e))do t.push(this.parsePipe());while(this.optionalCharacter(yr));return t},_ParseAST.prototype.parseLiteralMap=function(){var e=[],t=[],r=this.inputIndex;if(this.expectCharacter(Xr),!this.optionalCharacter(Zr)){this.rbracesExpected++;do{var n=this.expectIdentifierOrKeywordOrString();e.push(n),this.expectCharacter(Sr),t.push(this.parsePipe())}while(this.optionalCharacter(yr));this.rbracesExpected--,this.expectCharacter(Zr)}return new zt(this.span(r),e,t)},_ParseAST.prototype.parseAccessMemberOrMethodCall=function(e,t){void 0===t&&(t=!1);var r=e.span.start,n=this.expectIdentifierOrKeyword();if(this.optionalCharacter(fr)){this.rparensExpected++;var i=this.parseCallArguments();this.expectCharacter(dr),this.rparensExpected--;var o=this.span(r);return t?new Qt(o,e,n,i):new Kt(o,e,n,i)}if(t)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Rt(this.span(r))):new jt(this.span(r),e,n);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Rt(this.span(r));var s=this.parseConditional();return new Vt(this.span(r),e,n,s)}return new Dt(this.span(r),e,n)},_ParseAST.prototype.parseCallArguments=function(){if(this.next.isCharacter(dr))return[];var e=[];do e.push(this.parsePipe());while(this.optionalCharacter(yr));return e},_ParseAST.prototype.expectTemplateBindingKey=function(){var e="",t=!1;do e+=this.expectIdentifierOrKeywordOrString(),t=this.optionalOperator("-"),t&&(e+="-");while(t);return e.toString()},_ParseAST.prototype.parseTemplateBindings=function(){for(var e=[],t=null,r=[];this.index<this.tokens.length;){var n=this.peekKeywordLet();n&&this.advance();var i=this.expectTemplateBindingKey();n||(null==t?t=i:i=t+i[0].toUpperCase()+i.substring(1)),this.optionalCharacter(Sr);var o=null,s=null;if(n)o=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.next!==un&&!this.peekKeywordLet()){var a=this.inputIndex,u=this.parsePipe(),c=this.input.substring(a,this.inputIndex);s=new Jt(u,c,this.location,this.errors)}e.push(new Zt(i,n,o,s)),this.optionalCharacter(wr)||this.optionalCharacter(yr)}return new pn(e,r,this.errors)},_ParseAST.prototype.error=function(e,t){void 0===t&&(t=null),this.errors.push(new xt(e,this.input,this.locationText(t),this.location)),this.skip()},_ParseAST.prototype.locationText=function(e){return void 0===e&&(e=null),isBlank(e)&&(e=this.index),e<this.tokens.length?"at column "+(this.tokens[e].index+1)+" in":"at the end of the expression"},_ParseAST.prototype.skip=function(){for(var e=this.next;this.index<this.tokens.length&&!e.isCharacter(wr)&&(this.rparensExpected<=0||!e.isCharacter(dr))&&(this.rbracesExpected<=0||!e.isCharacter(Zr))&&(this.rbracketsExpected<=0||!e.isCharacter(Vr));)this.next.isError()&&this.errors.push(new xt(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next},_ParseAST}(),mn=function(){function SimpleExpressionChecker(){this.simple=!0}return SimpleExpressionChecker.check=function(e){var t=new SimpleExpressionChecker;return e.visit(t),t.simple},SimpleExpressionChecker.prototype.visitImplicitReceiver=function(e,t){},SimpleExpressionChecker.prototype.visitInterpolation=function(e,t){this.simple=!1},SimpleExpressionChecker.prototype.visitLiteralPrimitive=function(e,t){},SimpleExpressionChecker.prototype.visitPropertyRead=function(e,t){},SimpleExpressionChecker.prototype.visitPropertyWrite=function(e,t){this.simple=!1},SimpleExpressionChecker.prototype.visitSafePropertyRead=function(e,t){this.simple=!1},SimpleExpressionChecker.prototype.visitMethodCall=function(e,t){this.simple=!1},SimpleExpressionChecker.prototype.visitSafeMethodCall=function(e,t){this.simple=!1},SimpleExpressionChecker.prototype.visitFunctionCall=function(e,t){this.simple=!1},SimpleExpressionChecker.prototype.visitLiteralArray=function(e,t){this.visitAll(e.expressions)},SimpleExpressionChecker.prototype.visitLiteralMap=function(e,t){this.visitAll(e.values)},SimpleExpressionChecker.prototype.visitBinary=function(e,t){this.simple=!1},SimpleExpressionChecker.prototype.visitPrefixNot=function(e,t){this.simple=!1},SimpleExpressionChecker.prototype.visitConditional=function(e,t){this.simple=!1},SimpleExpressionChecker.prototype.visitPipe=function(e,t){this.simple=!1},SimpleExpressionChecker.prototype.visitKeyedRead=function(e,t){this.simple=!1},SimpleExpressionChecker.prototype.visitKeyedWrite=function(e,t){this.simple=!1},SimpleExpressionChecker.prototype.visitAll=function(e){var t=this;return e.map(function(e){return e.visit(t)})},SimpleExpressionChecker.prototype.visitChain=function(e,t){this.simple=!1},SimpleExpressionChecker.prototype.visitQuote=function(e,t){this.simple=!1},SimpleExpressionChecker}(),vn=function(){function ParseLocation(e,t,r,n){this.file=e,this.offset=t,this.line=r,this.col=n}return ParseLocation.prototype.toString=function(){return isPresent(this.offset)?this.file.url+"@"+this.line+":"+this.col:this.file.url},ParseLocation}(),yn=function(){function ParseSourceFile(e,t){this.content=e,this.url=t}return ParseSourceFile}(),bn=function(){function ParseSourceSpan(e,t,r){void 0===r&&(r=null),this.start=e,this.end=t,this.details=r}return ParseSourceSpan.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},ParseSourceSpan}();!function(e){e[e.WARNING=0]="WARNING",e[e.FATAL=1]="FATAL"}(nn||(nn={}));var gn,_n=function(){function ParseError(e,t,r){void 0===r&&(r=nn.FATAL),this.span=e,this.msg=t,this.level=r}return ParseError.prototype.toString=function(){var e=this.span.start.file.content,t=this.span.start.offset,r="",n="";if(isPresent(t)){t>e.length-1&&(t=e.length-1);for(var i=t,o=0,s=0;o<100&&t>0&&(t--,o++,"\n"!=e[t]||3!=++s););for(o=0,s=0;o<100&&i<e.length-1&&(i++,o++,"\n"!=e[i]||3!=++s););var a=e.substring(t,this.span.start.offset)+"[ERROR ->]"+e.substring(this.span.start.offset,i+1);r=' ("'+a+'")'}return this.span.details&&(n=", "+this.span.details),""+this.msg+r+": "+this.span.start+n},ParseError}(),Sn=function(){function Text(e,t){this.value=e,this.sourceSpan=t}return Text.prototype.visit=function(e,t){return e.visitText(this,t)},Text}(),wn=function(){function Expansion(e,t,r,n,i){this.switchValue=e,this.type=t,this.cases=r,this.sourceSpan=n,this.switchValueSourceSpan=i}return Expansion.prototype.visit=function(e,t){return e.visitExpansion(this,t)},Expansion}(),En=function(){function ExpansionCase(e,t,r,n,i){this.value=e,this.expression=t,this.sourceSpan=r,this.valueSourceSpan=n,this.expSourceSpan=i}return ExpansionCase.prototype.visit=function(e,t){return e.visitExpansionCase(this,t)},ExpansionCase}(),Cn=function(){function Attribute(e,t,r){this.name=e,this.value=t,this.sourceSpan=r}return Attribute.prototype.visit=function(e,t){return e.visitAttribute(this,t)},Attribute}(),Pn=function(){function Element(e,t,r,n,i,o){this.name=e,this.attrs=t,this.children=r,this.sourceSpan=n,this.startSourceSpan=i,this.endSourceSpan=o}return Element.prototype.visit=function(e,t){return e.visitElement(this,t)},Element}(),Tn=function(){function Comment(e,t){this.value=e,this.sourceSpan=t}return Comment.prototype.visit=function(e,t){return e.visitComment(this,t)},Comment}(),xn=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)};!function(e){e[e.TAG_OPEN_START=0]="TAG_OPEN_START",e[e.TAG_OPEN_END=1]="TAG_OPEN_END",e[e.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",e[e.TAG_CLOSE=3]="TAG_CLOSE",e[e.TEXT=4]="TEXT",e[e.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",e[e.RAW_TEXT=6]="RAW_TEXT",e[e.COMMENT_START=7]="COMMENT_START",e[e.COMMENT_END=8]="COMMENT_END",e[e.CDATA_START=9]="CDATA_START",e[e.CDATA_END=10]="CDATA_END",e[e.ATTR_NAME=11]="ATTR_NAME",e[e.ATTR_VALUE=12]="ATTR_VALUE",e[e.DOC_TYPE=13]="DOC_TYPE",e[e.EXPANSION_FORM_START=14]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=15]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=16]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=17]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=18]="EXPANSION_FORM_END",e[e.EOF=19]="EOF"}(gn||(gn={}));var An,On=function(){function Token(e,t,r){this.type=e,this.parts=t,this.sourceSpan=r}return Token}(),In=function(e){function TokenError(t,r,n){e.call(this,n,t),this.tokenType=r}return xn(TokenError,e),TokenError}(_n),Rn=function(){function TokenizeResult(e,t){this.tokens=e,this.errors=t}return TokenizeResult}(),Mn=/\r\n?/g,kn=function(){function _ControlFlowError(e){this.error=e}return _ControlFlowError}(),Nn=function(){function _Tokenizer(e,t,r,n){void 0===n&&(n=rn),this._file=e,this._getTagDefinition=t,this._tokenizeIcu=r,this._interpolationConfig=n,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=e.content,this._length=e.content.length,this._advance()}return _Tokenizer.prototype._processCarriageReturns=function(e){return e.replace(Mn,"\n")},_Tokenizer.prototype.tokenize=function(){for(;this._peek!==Yt;){var e=this._getLocation();try{this._attemptCharCode(Er)?this._attemptCharCode(sr)?this._attemptCharCode(Nr)?this._consumeCdata(e):this._attemptCharCode(br)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(_r)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(t){if(!(t instanceof kn))throw t;this.errors.push(t.error)}}return this._beginToken(gn.EOF),this._endToken([]),new Rn(mergeTextTokens(this.tokens),this.errors)},_Tokenizer.prototype._tokenizeExpansionForm=function(){if(isExpansionFormStart(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(isExpansionCaseStart(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._peek===Zr){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},_Tokenizer.prototype._getLocation=function(){return new vn(this._file,this._index,this._line,this._column)},_Tokenizer.prototype._getSpan=function(e,t){return void 0===e&&(e=this._getLocation()),void 0===t&&(t=this._getLocation()),new bn(e,t)},_Tokenizer.prototype._beginToken=function(e,t){void 0===t&&(t=this._getLocation()),this._currentTokenStart=t,this._currentTokenType=e},_Tokenizer.prototype._endToken=function(e,t){void 0===t&&(t=this._getLocation());var r=new On(this._currentTokenType,e,new bn(this._currentTokenStart,t));return this.tokens.push(r),this._currentTokenStart=null,this._currentTokenType=null,r},_Tokenizer.prototype._createError=function(e,t){this._isInExpansionForm()&&(e+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var r=new In(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new kn(r)},_Tokenizer.prototype._advance=function(){if(this._index>=this._length)throw this._createError(_unexpectedCharacterErrorMsg(Yt),this._getSpan());this._peek===tr?(this._line++,this._column=0):this._peek!==tr&&this._peek!==ir&&this._column++,this._index++,this._peek=this._index>=this._length?Yt:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?Yt:this._input.charCodeAt(this._index+1)},_Tokenizer.prototype._attemptCharCode=function(e){return this._peek===e&&(this._advance(),!0)},_Tokenizer.prototype._attemptCharCodeCaseInsensitive=function(e){return!!compareCharCodeCaseInsensitive(this._peek,e)&&(this._advance(),!0)},_Tokenizer.prototype._requireCharCode=function(e){var t=this._getLocation();if(!this._attemptCharCode(e))throw this._createError(_unexpectedCharacterErrorMsg(this._peek),this._getSpan(t,t))},_Tokenizer.prototype._attemptStr=function(e){var t=e.length;if(this._index+t>this._length)return!1;for(var r=this._savePosition(),n=0;n<t;n++)if(!this._attemptCharCode(e.charCodeAt(n)))return this._restorePosition(r),!1;return!0},_Tokenizer.prototype._attemptStrCaseInsensitive=function(e){for(var t=0;t<e.length;t++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(t)))return!1;return!0},_Tokenizer.prototype._requireStr=function(e){var t=this._getLocation();if(!this._attemptStr(e))throw this._createError(_unexpectedCharacterErrorMsg(this._peek),this._getSpan(t))},_Tokenizer.prototype._attemptCharCodeUntilFn=function(e){for(;!e(this._peek);)this._advance()},_Tokenizer.prototype._requireCharCodeUntilFn=function(e,t){var r=this._getLocation();if(this._attemptCharCodeUntilFn(e),this._index-r.offset<t)throw this._createError(_unexpectedCharacterErrorMsg(this._peek),this._getSpan(r,r))},_Tokenizer.prototype._attemptUntilChar=function(e){for(;this._peek!==e;)this._advance()},_Tokenizer.prototype._readChar=function(e){if(e&&this._peek===pr)return this._decodeEntity();var t=this._index;return this._advance(),this._input[t]},_Tokenizer.prototype._decodeEntity=function(){var e=this._getLocation();if(this._advance(),!this._attemptCharCode(ur)){var t=this._savePosition();if(this._attemptCharCodeUntilFn(isNamedEntityEnd),this._peek!=wr)return this._restorePosition(t),"&";this._advance();var r=this._input.substring(e.offset+1,this._index-1),n=D[r];if(!n)throw this._createError(_unknownEntityErrorMsg(r),this._getSpan(e));return n}var i=this._attemptCharCode(Kr)||this._attemptCharCode(Mr),o=this._getLocation().offset;if(this._attemptCharCodeUntilFn(isDigitEntityEnd),this._peek!=wr)throw this._createError(_unexpectedCharacterErrorMsg(this._peek),this._getSpan());this._advance();var s=this._input.substring(o,this._index-1);try{var a=parseInt(s,i?16:10);return String.fromCharCode(a)}catch(u){var c=this._input.substring(e.offset+1,this._index-1);throw this._createError(_unknownEntityErrorMsg(c),this._getSpan(e))}},_Tokenizer.prototype._consumeRawText=function(e,t,r){var n,i=this._getLocation();this._beginToken(e?gn.ESCAPABLE_RAW_TEXT:gn.RAW_TEXT,i);for(var o=[];;){if(n=this._getLocation(),this._attemptCharCode(t)&&r())break;for(this._index>n.offset&&o.push(this._input.substring(n.offset,this._index));this._peek!==t;)o.push(this._readChar(e))}return this._endToken([this._processCarriageReturns(o.join(""))],n)},_Tokenizer.prototype._consumeComment=function(e){var t=this;this._beginToken(gn.COMMENT_START,e),this._requireCharCode(br),this._endToken([]);var r=this._consumeRawText(!1,br,function(){return t._attemptStr("->")});this._beginToken(gn.COMMENT_END,r.sourceSpan.end),this._endToken([])},_Tokenizer.prototype._consumeCdata=function(e){var t=this;this._beginToken(gn.CDATA_START,e),this._requireStr("CDATA["),this._endToken([]);var r=this._consumeRawText(!1,Vr,function(){return t._attemptStr("]>")});this._beginToken(gn.CDATA_END,r.sourceSpan.end),this._endToken([])},_Tokenizer.prototype._consumeDocType=function(e){this._beginToken(gn.DOC_TYPE,e),this._attemptUntilChar(Pr),this._advance(),this._endToken([this._input.substring(e.offset+2,this._index-1)])},_Tokenizer.prototype._consumePrefixAndName=function(){for(var e=this._index,t=null;this._peek!==Sr&&!isPrefixEnd(this._peek);)this._advance();var r;this._peek===Sr?(this._advance(),t=this._input.substring(e,this._index-1),r=this._index):r=e,this._requireCharCodeUntilFn(isNameEnd,this._index===r?1:0);var n=this._input.substring(r,this._index);return[t,n]},_Tokenizer.prototype._consumeTagOpen=function(e){var t,r,n=this._savePosition();try{if(!isAsciiLetter(this._peek))throw this._createError(_unexpectedCharacterErrorMsg(this._peek),this._getSpan());var i=this._index;for(this._consumeTagOpenStart(e),t=this._input.substring(i,this._index),r=t.toLowerCase(),this._attemptCharCodeUntilFn(isNotWhitespace);this._peek!==_r&&this._peek!==Pr;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(isNotWhitespace),this._attemptCharCode(Cr)&&(this._attemptCharCodeUntilFn(isNotWhitespace),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(isNotWhitespace);this._consumeTagOpenEnd()}catch(o){if(o instanceof kn)return this._restorePosition(n),this._beginToken(gn.TEXT,e),void this._endToken(["<"]);throw o}var s=this._getTagDefinition(t).contentType;s===w.RAW_TEXT?this._consumeRawTextWithTagClose(r,!1):s===w.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(r,!0)},_Tokenizer.prototype._consumeRawTextWithTagClose=function(e,t){var r=this,n=this._consumeRawText(t,Er,function(){return!!r._attemptCharCode(_r)&&(r._attemptCharCodeUntilFn(isNotWhitespace),!!r._attemptStrCaseInsensitive(e)&&(r._attemptCharCodeUntilFn(isNotWhitespace),r._attemptCharCode(Pr)))});this._beginToken(gn.TAG_CLOSE,n.sourceSpan.end),this._endToken([null,e])},_Tokenizer.prototype._consumeTagOpenStart=function(e){this._beginToken(gn.TAG_OPEN_START,e);var t=this._consumePrefixAndName();this._endToken(t)},_Tokenizer.prototype._consumeAttributeName=function(){this._beginToken(gn.ATTR_NAME);var e=this._consumePrefixAndName();this._endToken(e)},_Tokenizer.prototype._consumeAttributeValue=function(){this._beginToken(gn.ATTR_VALUE);var e;if(this._peek===hr||this._peek===ar){var t=this._peek;this._advance();for(var r=[];this._peek!==t;)r.push(this._readChar(!0));e=r.join(""),this._advance()}else{var n=this._index;this._requireCharCodeUntilFn(isNameEnd,1),e=this._input.substring(n,this._index)}this._endToken([this._processCarriageReturns(e)])},_Tokenizer.prototype._consumeTagOpenEnd=function(){var e=this._attemptCharCode(_r)?gn.TAG_OPEN_END_VOID:gn.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(Pr),this._endToken([])},_Tokenizer.prototype._consumeTagClose=function(e){this._beginToken(gn.TAG_CLOSE,e),this._attemptCharCodeUntilFn(isNotWhitespace);var t=this._consumePrefixAndName();this._attemptCharCodeUntilFn(isNotWhitespace),this._requireCharCode(Pr),this._endToken(t)},_Tokenizer.prototype._consumeExpansionFormStart=function(){this._beginToken(gn.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(Xr),this._endToken([]),this._expansionCaseStack.push(gn.EXPANSION_FORM_START),this._beginToken(gn.RAW_TEXT,this._getLocation());var e=this._readUntil(yr);this._endToken([e],this._getLocation()),this._requireCharCode(yr),this._attemptCharCodeUntilFn(isNotWhitespace),this._beginToken(gn.RAW_TEXT,this._getLocation());var t=this._readUntil(yr);this._endToken([t],this._getLocation()),this._requireCharCode(yr),this._attemptCharCodeUntilFn(isNotWhitespace)},_Tokenizer.prototype._consumeExpansionCaseStart=function(){this._beginToken(gn.EXPANSION_CASE_VALUE,this._getLocation());var e=this._readUntil(Xr).trim();this._endToken([e],this._getLocation()),this._attemptCharCodeUntilFn(isNotWhitespace),this._beginToken(gn.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(Xr),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(isNotWhitespace),this._expansionCaseStack.push(gn.EXPANSION_CASE_EXP_START)},_Tokenizer.prototype._consumeExpansionCaseEnd=function(){this._beginToken(gn.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(Zr),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(isNotWhitespace),this._expansionCaseStack.pop()},_Tokenizer.prototype._consumeExpansionFormEnd=function(){this._beginToken(gn.EXPANSION_FORM_END,this._getLocation()),
this._requireCharCode(Zr),this._endToken([]),this._expansionCaseStack.pop()},_Tokenizer.prototype._consumeText=function(){var e=this._getLocation();this._beginToken(gn.TEXT,e);var t=[];do this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(t.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._attemptStr(this._interpolationConfig.end)&&this._inInterpolation?(t.push(this._interpolationConfig.end),this._inInterpolation=!1):t.push(this._readChar(!0));while(!this._isTextEnd());this._endToken([this._processCarriageReturns(t.join(""))])},_Tokenizer.prototype._isTextEnd=function(){if(this._peek===Er||this._peek===Yt)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(isExpansionFormStart(this._input,this._index,this._interpolationConfig))return!0;if(this._peek===Zr&&this._isInExpansionCase())return!0}return!1},_Tokenizer.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},_Tokenizer.prototype._readUntil=function(e){var t=this._index;return this._attemptUntilChar(e),this._input.substring(t,this._index)},_Tokenizer.prototype._restorePosition=function(e){this._peek=e[0],this._index=e[1],this._column=e[2],this._line=e[3];var t=e[4];t<this.tokens.length&&(this.tokens=this.tokens.slice(0,t))},_Tokenizer.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===gn.EXPANSION_CASE_EXP_START},_Tokenizer.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===gn.EXPANSION_FORM_START},_Tokenizer}(),Dn=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},Vn=function(e){function TreeError(t,r,n){e.call(this,r,n),this.elementName=t}return Dn(TreeError,e),TreeError.create=function(e,t,r){return new TreeError(e,t,r)},TreeError}(_n),jn=function(){function ParseTreeResult(e,t){this.rootNodes=e,this.errors=t}return ParseTreeResult}(),Ln=function(){function Parser(e){this.getTagDefinition=e}return Parser.prototype.parse=function(e,t,r,n){void 0===r&&(r=!1),void 0===n&&(n=rn);var i=tokenize(e,t,this.getTagDefinition,r,n),o=new Fn(i.tokens,this.getTagDefinition).build();return new jn(o.rootNodes,i.errors.concat(o.errors))},Parser}(),Fn=function(){function _TreeBuilder(e,t){this.tokens=e,this.getTagDefinition=t,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return _TreeBuilder.prototype.build=function(){for(;this._peek.type!==gn.EOF;)this._peek.type===gn.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===gn.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===gn.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===gn.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===gn.TEXT||this._peek.type===gn.RAW_TEXT||this._peek.type===gn.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===gn.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new jn(this._rootNodes,this._errors)},_TreeBuilder.prototype._advance=function(){var e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e},_TreeBuilder.prototype._advanceIf=function(e){return this._peek.type===e?this._advance():null},_TreeBuilder.prototype._consumeCdata=function(e){this._consumeText(this._advance()),this._advanceIf(gn.CDATA_END)},_TreeBuilder.prototype._consumeComment=function(e){var t=this._advanceIf(gn.RAW_TEXT);this._advanceIf(gn.COMMENT_END);var r=isPresent(t)?t.parts[0].trim():null;this._addToParent(new Tn(r,e.sourceSpan))},_TreeBuilder.prototype._consumeExpansion=function(e){for(var t=this._advance(),r=this._advance(),n=[];this._peek.type===gn.EXPANSION_CASE_VALUE;){var i=this._parseExpansionCase();if(isBlank(i))return;n.push(i)}if(this._peek.type!==gn.EXPANSION_FORM_END)return void this._errors.push(Vn.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));var o=new bn(e.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new wn(t.parts[0],r.parts[0],n,o,t.sourceSpan)),this._advance()},_TreeBuilder.prototype._parseExpansionCase=function(){var e=this._advance();if(this._peek.type!==gn.EXPANSION_CASE_EXP_START)return this._errors.push(Vn.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var t=this._advance(),r=this._collectExpansionExpTokens(t);if(isBlank(r))return null;var n=this._advance();r.push(new On(gn.EOF,[],n.sourceSpan));var i=new _TreeBuilder(r,this.getTagDefinition).build();if(i.errors.length>0)return this._errors=this._errors.concat(i.errors),null;var o=new bn(e.sourceSpan.start,n.sourceSpan.end),s=new bn(t.sourceSpan.start,n.sourceSpan.end);return new En(e.parts[0],i.rootNodes,o,e.sourceSpan,s)},_TreeBuilder.prototype._collectExpansionExpTokens=function(e){for(var t=[],r=[gn.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==gn.EXPANSION_FORM_START&&this._peek.type!==gn.EXPANSION_CASE_EXP_START||r.push(this._peek.type),this._peek.type===gn.EXPANSION_CASE_EXP_END){if(!lastOnStack(r,gn.EXPANSION_CASE_EXP_START))return this._errors.push(Vn.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(r.pop(),0==r.length)return t}if(this._peek.type===gn.EXPANSION_FORM_END){if(!lastOnStack(r,gn.EXPANSION_FORM_START))return this._errors.push(Vn.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;r.pop()}if(this._peek.type===gn.EOF)return this._errors.push(Vn.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;t.push(this._advance())}},_TreeBuilder.prototype._consumeText=function(e){var t=e.parts[0];if(t.length>0&&"\n"==t[0]){var r=this._getParentElement();isPresent(r)&&0==r.children.length&&this.getTagDefinition(r.name).ignoreFirstLf&&(t=t.substring(1))}t.length>0&&this._addToParent(new Sn(t,e.sourceSpan))},_TreeBuilder.prototype._closeVoidElement=function(){if(this._elementStack.length>0){var e=R.last(this._elementStack);this.getTagDefinition(e.name).isVoid&&this._elementStack.pop()}},_TreeBuilder.prototype._consumeStartTag=function(e){for(var t=e.parts[0],r=e.parts[1],n=[];this._peek.type===gn.ATTR_NAME;)n.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(t,r,this._getParentElement()),o=!1;if(this._peek.type===gn.TAG_OPEN_END_VOID){this._advance(),o=!0;var s=this.getTagDefinition(i);s.canSelfClose||null!==getNsPrefix(i)||s.isVoid||this._errors.push(Vn.create(i,e.sourceSpan,'Only void and foreign elements can be self closed "'+e.parts[1]+'"'))}else this._peek.type===gn.TAG_OPEN_END&&(this._advance(),o=!1);var a=this._peek.sourceSpan.start,u=new bn(e.sourceSpan.start,a),c=new Pn(i,n,[],u,u,null);this._pushElement(c),o&&(this._popElement(i),c.endSourceSpan=u)},_TreeBuilder.prototype._pushElement=function(e){if(this._elementStack.length>0){var t=R.last(this._elementStack);this.getTagDefinition(t.name).isClosedByChild(e.name)&&this._elementStack.pop()}var r=this.getTagDefinition(e.name),n=this._getParentElementSkippingContainers(),i=n.parent,o=n.container;if(isPresent(i)&&r.requireExtraParent(i.name)){var s=new Pn(r.parentToAdd,[],[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan);this._insertBeforeContainer(i,o,s)}this._addToParent(e),this._elementStack.push(e)},_TreeBuilder.prototype._consumeEndTag=function(e){var t=this._getElementFullName(e.parts[0],e.parts[1],this._getParentElement());this._getParentElement()&&(this._getParentElement().endSourceSpan=e.sourceSpan),this.getTagDefinition(t).isVoid?this._errors.push(Vn.create(t,e.sourceSpan,'Void elements do not have end tags "'+e.parts[1]+'"')):this._popElement(t)||this._errors.push(Vn.create(t,e.sourceSpan,'Unexpected closing tag "'+e.parts[1]+'"'))},_TreeBuilder.prototype._popElement=function(e){for(var t=this._elementStack.length-1;t>=0;t--){var r=this._elementStack[t];if(r.name==e)return R.splice(this._elementStack,t,this._elementStack.length-t),!0;if(!this.getTagDefinition(r.name).closedByParent)return!1}return!1},_TreeBuilder.prototype._consumeAttr=function(e){var t=mergeNsAndName(e.parts[0],e.parts[1]),r=e.sourceSpan.end,n="";if(this._peek.type===gn.ATTR_VALUE){var i=this._advance();n=i.parts[0],r=i.sourceSpan.end}return new Cn(t,n,new bn(e.sourceSpan.start,r))},_TreeBuilder.prototype._getParentElement=function(){return this._elementStack.length>0?R.last(this._elementStack):null},_TreeBuilder.prototype._getParentElementSkippingContainers=function(){for(var e=null,t=this._elementStack.length-1;t>=0;t--){if("ng-container"!==this._elementStack[t].name)return{parent:this._elementStack[t],container:e};e=this._elementStack[t]}return{parent:R.last(this._elementStack),container:e}},_TreeBuilder.prototype._addToParent=function(e){var t=this._getParentElement();isPresent(t)?t.children.push(e):this._rootNodes.push(e)},_TreeBuilder.prototype._insertBeforeContainer=function(e,t,r){if(t){if(e){var n=e.children.indexOf(t);e.children[n]=r}else this._rootNodes.push(r);r.children.push(t),this._elementStack.splice(this._elementStack.indexOf(t),0,r)}else this._addToParent(r),this._elementStack.push(r)},_TreeBuilder.prototype._getElementFullName=function(e,t,r){return isBlank(e)&&(e=this.getTagDefinition(t).implicitNamespacePrefix,isBlank(e)&&isPresent(r)&&(e=getNsPrefix(r.name))),mergeNsAndName(e,t)},_TreeBuilder}(),Bn=function(){function _SerializerVisitor(){}return _SerializerVisitor.prototype.visitText=function(e,t){return e.value},_SerializerVisitor.prototype.visitContainer=function(e,t){var r=this;return"["+e.children.map(function(e){return e.visit(r)}).join(", ")+"]"},_SerializerVisitor.prototype.visitIcu=function(e,t){var r=this,n=Object.keys(e.cases).map(function(t){return t+" {"+e.cases[t].visit(r)+"}"});return"{"+e.expression+", "+e.type+", "+n.join(", ")+"}"},_SerializerVisitor.prototype.visitTagPlaceholder=function(e,t){var r=this;return e.isVoid?'<ph tag name="'+e.startName+'"/>':'<ph tag name="'+e.startName+'">'+e.children.map(function(e){return e.visit(r)}).join(", ")+'</ph name="'+e.closeName+'">'},_SerializerVisitor.prototype.visitPlaceholder=function(e,t){return'<ph name="'+e.name+'">'+e.value+"</ph>"},_SerializerVisitor.prototype.visitIcuPlaceholder=function(e,t){return'<ph icu name="'+e.name+'">'+e.value.visit(this)+"</ph>"},_SerializerVisitor}(),Wn=new Bn,Un=function(){function Message(e,t,r,n,i){this.nodes=e,this.placeholders=t,this.placeholderToMsgIds=r,this.meaning=n,this.description=i}return Message}(),zn=function(){function Text(e,t){this.value=e,this.sourceSpan=t}return Text.prototype.visit=function(e,t){return e.visitText(this,t)},Text}(),Hn=function(){function Container(e,t){this.children=e,this.sourceSpan=t}return Container.prototype.visit=function(e,t){return e.visitContainer(this,t)},Container}(),qn=function(){function Icu(e,t,r,n){this.expression=e,this.type=t,this.cases=r,this.sourceSpan=n}return Icu.prototype.visit=function(e,t){return e.visitIcu(this,t)},Icu}(),Gn=function(){function TagPlaceholder(e,t,r,n,i,o,s){this.tag=e,this.attrs=t,this.startName=r,this.closeName=n,this.children=i,this.isVoid=o,this.sourceSpan=s}return TagPlaceholder.prototype.visit=function(e,t){return e.visitTagPlaceholder(this,t)},TagPlaceholder}(),Kn=function(){function Placeholder(e,t,r){void 0===t&&(t=""),this.value=e,this.name=t,this.sourceSpan=r}return Placeholder.prototype.visit=function(e,t){return e.visitPlaceholder(this,t)},Placeholder}(),Qn=function(){function IcuPlaceholder(e,t,r){void 0===t&&(t=""),this.value=e,this.name=t,this.sourceSpan=r}return IcuPlaceholder.prototype.visit=function(e,t){return e.visitIcuPlaceholder(this,t)},IcuPlaceholder}(),Xn={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},Jn=function(){function PlaceholderRegistry(){this._placeHolderNameCounts={},this._signatureToName={}}return PlaceholderRegistry.prototype.getStartTagPlaceholderName=function(e,t,r){var n=this._hashTag(e,t,r);if(this._signatureToName[n])return this._signatureToName[n];var i=e.toUpperCase(),o=Xn[i]||"TAG_"+i,s=this._generateUniqueName(r?o:"START_"+o);return this._signatureToName[n]=s,s},PlaceholderRegistry.prototype.getCloseTagPlaceholderName=function(e){var t=this._hashClosingTag(e);if(this._signatureToName[t])return this._signatureToName[t];var r=e.toUpperCase(),n=Xn[r]||"TAG_"+r,i=this._generateUniqueName("CLOSE_"+n);return this._signatureToName[t]=i,i},PlaceholderRegistry.prototype.getPlaceholderName=function(e,t){var r=e.toUpperCase(),n="PH: "+r+"="+t;if(this._signatureToName[n])return this._signatureToName[n];var i=this._generateUniqueName(r);return this._signatureToName[n]=i,i},PlaceholderRegistry.prototype._hashTag=function(e,t,r){var n="<"+e,i=Object.keys(t).sort().map(function(e){return" "+e+"="+t[e]}).join(""),o=r?"/>":"></"+e+">";return n+i+o},PlaceholderRegistry.prototype._hashClosingTag=function(e){return this._hashTag("/"+e,{},!1)},PlaceholderRegistry.prototype._generateUniqueName=function(e){var t=e,r=this._placeHolderNameCounts[t];return r?(t+="_"+r,r++):r=1,this._placeHolderNameCounts[e]=r,t},PlaceholderRegistry}(),Zn=new hn(new sn),$n=function(){function _I18nVisitor(e,t){this._expressionParser=e,this._interpolationConfig=t}return _I18nVisitor.prototype.toI18nMessage=function(e,t,r){this._isIcu=1==e.length&&e[0]instanceof wn,this._icuDepth=0,this._placeholderRegistry=new Jn,this._placeholderToContent={},this._placeholderToIds={};var n=visitAll(this,e,{});return new Un(n,this._placeholderToContent,this._placeholderToIds,t,r)},_I18nVisitor.prototype.visitElement=function(e,t){var r=visitAll(this,e.children),n={};e.attrs.forEach(function(e){n[e.name]=e.value});var i=getHtmlTagDefinition(e.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(e.name,n,i);this._placeholderToContent[o]=e.sourceSpan.toString();var s="";return i||(s=this._placeholderRegistry.getCloseTagPlaceholderName(e.name),this._placeholderToContent[s]="</"+e.name+">"),new Gn(e.name,n,o,s,r,i,e.sourceSpan)},_I18nVisitor.prototype.visitAttribute=function(e,t){return this._visitTextWithInterpolation(e.value,e.sourceSpan)},_I18nVisitor.prototype.visitText=function(e,t){return this._visitTextWithInterpolation(e.value,e.sourceSpan)},_I18nVisitor.prototype.visitComment=function(e,t){return null},_I18nVisitor.prototype.visitExpansion=function(e,t){var r=this;this._icuDepth++;var n={},i=new qn(e.switchValue,e.type,n,e.sourceSpan);if(e.cases.forEach(function(e){n[e.value]=new Hn(e.expression.map(function(e){return e.visit(r,{})}),e.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0)return i;var o=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),s=new _I18nVisitor(this._expressionParser,this._interpolationConfig);return this._placeholderToIds[o]=digestMessage(s.toI18nMessage([e],"","")),new Qn(i,o,e.sourceSpan)},_I18nVisitor.prototype.visitExpansionCase=function(e,t){throw new Error("Unreachable code")},_I18nVisitor.prototype._visitTextWithInterpolation=function(e,t){var r=this._expressionParser.splitInterpolation(e,t.start.toString(),this._interpolationConfig);if(!r)return new zn(e,t);for(var n=[],i=new Hn(n,t),o=this._interpolationConfig,s=o.start,a=o.end,u=0;u<r.strings.length-1;u++){var c=r.expressions[u],l=_extractPlaceholderName(c)||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(l,c);r.strings[u].length&&n.push(new zn(r.strings[u],t)),n.push(new Kn(c,p,t)),this._placeholderToContent[p]=s+c+a}var h=r.strings.length-1;return r.strings[h].length&&n.push(new zn(r.strings[h],t)),i},_I18nVisitor}(),Yn=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*"([\s\S]*?)"[\s\S]*\)/g,ei=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},ti=function(e){function I18nError(t,r){e.call(this,t,r)}return ei(I18nError,e),I18nError}(_n),ri="i18n",ni="i18n-",ii=/^i18n:?/,oi=function(){function ExtractionResult(e,t){this.messages=e,this.errors=t}return ExtractionResult}();!function(e){e[e.Extract=0]="Extract",e[e.Merge=1]="Merge"}(An||(An={}));var si,ai=function(){function _Visitor(e,t){this._implicitTags=e,this._implicitAttrs=t}return _Visitor.prototype.extract=function(e,t){var r=this;return this._init(An.Extract,t),e.forEach(function(e){return e.visit(r,null)}),this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new oi(this._messages,this._errors)},_Visitor.prototype.merge=function(e,t,r){this._init(An.Merge,r),this._translations=t;var n=new Pn("wrapper",[],e,null,null,null),i=n.visit(this,null);return this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new jn(i.children,this._errors)},_Visitor.prototype.visitExpansionCase=function(e,t){var r=visitAll(this,e.expression,t);if(this._mode===An.Merge)return new En(e.value,r,e.sourceSpan,e.valueSourceSpan,e.expSourceSpan)},_Visitor.prototype.visitExpansion=function(e,t){this._mayBeAddBlockChildren(e);var r=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([e]),this._inIcu=!0);var n=visitAll(this,e.cases,t);return this._mode===An.Merge&&(e=new wn(e.switchValue,e.type,n,e.sourceSpan,e.switchValueSourceSpan)),this._inIcu=r,e},_Visitor.prototype.visitComment=function(e,t){var r=_isOpeningComment(e);if(r&&this._isInTranslatableSection)return void this._reportError(e,"Could not start a block inside a translatable section");var n=_isClosingComment(e);if(n&&!this._inI18nBlock)return void this._reportError(e,"Trying to close an unopened block");if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(n){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(e,this._blockChildren),this._inI18nBlock=!1;var i=this._addMessage(this._blockChildren,this._blockMeaningAndDesc),o=this._translateMessage(e,i);return visitAll(this,o)}return void this._reportError(e,"I18N blocks should not cross element boundaries")}}else r&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=e.value.replace(ii,"").trim(),this._openTranslatableSection(e))},_Visitor.prototype.visitText=function(e,t){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(e),e},_Visitor.prototype.visitElement=function(e,t){var r=this;this._mayBeAddBlockChildren(e),this._depth++;var n,i=this._inI18nNode,o=this._inImplicitNode,s=_getI18nAttr(e),a=this._implicitTags.some(function(t){return e.name===t})&&!this._inIcu&&!this._isInTranslatableSection,u=!o&&a;if(this._inImplicitNode=this._inImplicitNode||a,this._isInTranslatableSection||this._inIcu)(s||u)&&this._reportError(e,"Could not mark an element as translatable inside a translatable section"),this._mode==An.Extract&&visitAll(this,e.children),this._mode==An.Merge&&(n=[],e.children.forEach(function(e){var i=e.visit(r,t);i&&!r._isInTranslatableSection&&(n=n.concat(i))}));else{if(s){this._inI18nNode=!0;var c=this._addMessage(e.children,s.value);n=this._translateMessage(e,c)}else if(u){this._inI18nNode=!0;var c=this._addMessage(e.children);n=this._translateMessage(e,c)}if(this._mode==An.Extract){var l=s||u;l&&this._openTranslatableSection(e),visitAll(this,e.children),l&&this._closeTranslatableSection(e,e.children)}this._mode!==An.Merge||s||u||(n=[],e.children.forEach(function(e){var i=e.visit(r,t);i&&!r._isInTranslatableSection&&(n=n.concat(i))}))}if(this._visitAttributesOf(e),this._depth--,this._inI18nNode=i,this._inImplicitNode=o,this._mode===An.Merge){var p=this._translateAttributes(e);return new Pn(e.name,p,n,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}},_Visitor.prototype.visitAttribute=function(e,t){throw new Error("unreachable code")},_Visitor.prototype._init=function(e,t){this._mode=e,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=createI18nMessageFactory(t)},_Visitor.prototype._visitAttributesOf=function(e){var t=this,r={},n=this._implicitAttrs[e.name]||[];e.attrs.filter(function(e){return e.name.startsWith(ni)}).forEach(function(e){return r[e.name.slice(ni.length)]=e.value}),e.attrs.forEach(function(e){e.name in r?t._addMessage([e],r[e.name]):n.some(function(t){return e.name===t})&&t._addMessage([e])})},_Visitor.prototype._addMessage=function(e,t){if(!(0==e.length||1==e.length&&e[0]instanceof Cn&&!e[0].value)){var r=_splitMeaningAndDesc(t),n=r[0],i=r[1],o=this._createI18nMessage(e,n,i);return this._messages.push(o),o}},_Visitor.prototype._translateMessage=function(e,t){if(t&&this._mode===An.Merge){var r=digestMessage(t),n=this._translations.get(r);if(n)return n;this._reportError(e,'Translation unavailable for message id="'+r+'"')}return[]},_Visitor.prototype._translateAttributes=function(e){var t=this,r=e.attrs,n={};r.forEach(function(e){e.name.startsWith(ni)&&(n[e.name.slice(ni.length)]=_splitMeaningAndDesc(e.value)[0])});var i=[];return r.forEach(function(r){if(r.name!==ri&&!r.name.startsWith(ni))if(r.value&&""!=r.value&&n.hasOwnProperty(r.name)){var o=n[r.name],s=t._createI18nMessage([r],o,""),a=digestMessage(s),u=t._translations.get(a);if(u)if(u[0]instanceof Sn){var c=u[0].value;i.push(new Cn(r.name,c,r.sourceSpan))}else t._reportError(e,'Unexpected translation for attribute "'+r.name+'" (id="'+a+'")');else t._reportError(e,'Translation unavailable for attribute "'+r.name+'" (id="'+a+'")')}else i.push(r)}),i},_Visitor.prototype._mayBeAddBlockChildren=function(e){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(e)},_Visitor.prototype._openTranslatableSection=function(e){this._isInTranslatableSection?this._reportError(e,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(_Visitor.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),_Visitor.prototype._closeTranslatableSection=function(e,t){if(!this._isInTranslatableSection)return void this._reportError(e,"Unexpected section end");var r=this._msgCountAtSectionStart,n=t.reduce(function(e,t){return e+(t instanceof Tn?0:1)},0);if(1==n)for(var i=this._messages.length-1;i>=r;i--){var o=this._messages[i].nodes;if(!(1==o.length&&o[0]instanceof zn)){this._messages.splice(i,1);break}}this._msgCountAtSectionStart=void 0},_Visitor.prototype._reportError=function(e,t){this._errors.push(new ti(e.sourceSpan,t))},_Visitor}(),ui=function(){function MessageBundle(e,t,r){this._htmlParser=e,this._implicitTags=t,this._implicitAttrs=r,this._messageMap={}}return MessageBundle.prototype.updateFromTemplate=function(e,t,r){var n=this,i=this._htmlParser.parse(e,t,!0,r);if(i.errors.length)return i.errors;var o=extractMessages(i.rootNodes,r,this._implicitTags,this._implicitAttrs);return o.errors.length?o.errors:void o.messages.forEach(function(e){n._messageMap[digestMessage(e)]=e})},MessageBundle.prototype.getMessageMap=function(){return this._messageMap},MessageBundle.prototype.write=function(e){return e.write(this._messageMap)},MessageBundle}(),ci=function(){function XmlTagDefinition(){this.closedByParent=!1,this.contentType=w.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return XmlTagDefinition.prototype.requireExtraParent=function(e){return!1},XmlTagDefinition.prototype.isClosedByChild=function(e){return!1},XmlTagDefinition}(),li=new ci,pi=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},hi=function(e){function XmlParser(){e.call(this,getXmlTagDefinition)}return pi(XmlParser,e),XmlParser.prototype.parse=function(t,r,n){return void 0===n&&(n=!1),e.prototype.parse.call(this,t,r,n,null)},XmlParser}(Ln),fi=function(){function _Visitor(){}return _Visitor.prototype.visitTag=function(e){var t=this,r=this._serializeAttributes(e.attrs);if(0==e.children.length)return"<"+e.name+r+"/>";var n=e.children.map(function(e){return e.visit(t)});return"<"+e.name+r+">"+n.join("")+"</"+e.name+">"},_Visitor.prototype.visitText=function(e){return e.value},_Visitor.prototype.visitDeclaration=function(e){return"<?xml"+this._serializeAttributes(e.attrs)+" ?>"},_Visitor.prototype._serializeAttributes=function(e){var t=Object.keys(e).map(function(t){return t+'="'+e[t]+'"'}).join(" ");return t.length>0?" "+t:""},_Visitor.prototype.visitDoctype=function(e){return"<!DOCTYPE "+e.rootTag+" [\n"+e.dtd+"\n]>"},_Visitor}(),di=new fi,mi=function(){function Declaration(e){var t=this;this.attrs={},Object.keys(e).forEach(function(r){t.attrs[r]=_escapeXml(e[r])})}return Declaration.prototype.visit=function(e){return e.visitDeclaration(this)},Declaration}(),vi=function(){function Doctype(e,t){this.rootTag=e,this.dtd=t}return Doctype.prototype.visit=function(e){return e.visitDoctype(this)},Doctype}(),yi=function(){function Tag(e,t,r){var n=this;void 0===t&&(t={}),void 0===r&&(r=[]),this.name=e,this.children=r,this.attrs={},Object.keys(t).forEach(function(e){n.attrs[e]=_escapeXml(t[e])})}return Tag.prototype.visit=function(e){return e.visitTag(this)},Tag}(),bi=function(){function Text(e){this.value=_escapeXml(e)}return Text.prototype.visit=function(e){return e.visitText(this)},Text}(),gi=[[/&/g,"&amp;"],[/"/g,"&quot;"],[/'/g,"&apos;"],[/</g,"&lt;"],[/>/g,"&gt;"]],_i="1.2",Si="urn:oasis:names:tc:xliff:document:1.2",wi="en",Ei="x",Ci="source",Pi="target",Ti="trans-unit",xi=function(e){return void 0===e&&(e=0),new bi("\n"+new Array(e).join(" "))},Ai=function(){function Xliff(e,t){this._htmlParser=e,this._interpolationConfig=t}return Xliff.prototype.write=function(e){var t=new Oi,r=[];Object.keys(e).forEach(function(n){var i=e[n],o=new yi(Ti,{id:n,datatype:"html"});o.children.push(xi(8),new yi(Ci,{},t.serialize(i.nodes)),xi(8),new yi(Pi)),i.description&&o.children.push(xi(8),new yi("note",{priority:"1",from:"description"},[new bi(i.description)])),i.meaning&&o.children.push(xi(8),new yi("note",{priority:"1",from:"meaning"},[new bi(i.meaning)])),o.children.push(xi(6)),r.push(xi(6),o)});var n=new yi("body",{},r.concat([xi(4)])),i=new yi("file",{"source-language":wi,datatype:"plaintext",original:"ng2.template"},[xi(4),n,xi(2)]),o=new yi("xliff",{version:_i,xmlns:Si},[xi(2),i,xi()]);return serialize([new mi({version:"1.0",encoding:"UTF-8"}),xi(),o])},Xliff.prototype.load=function(e,t,r){var n=this,i=(new hi).parse(e,t);if(i.errors.length)throw new Error("xtb parse errors:\n"+i.errors.join("\n"));var o=(new Ii).parse(i.rootNodes,r),s=o.messages,a=o.errors;if(a.length)throw new Error("xtb parse errors:\n"+a.join("\n"));var u={},c=[];if(Object.keys(s).forEach(function(e){var r=n._htmlParser.parse(s[e],t,!0,n._interpolationConfig);c.push.apply(c,r.errors),u[e]=r.rootNodes}),c.length)throw new Error("xtb parse errors:\n"+c.join("\n"));return u},Xliff}(),Oi=function(){function _WriteVisitor(){}return _WriteVisitor.prototype.visitText=function(e,t){return[new bi(e.value)]},_WriteVisitor.prototype.visitContainer=function(e,t){var r=this,n=[];return e.children.forEach(function(e){return n.push.apply(n,e.visit(r))}),n},_WriteVisitor.prototype.visitIcu=function(e,t){if(this._isInIcu)throw new Error("xliff does not support nested ICU messages");this._isInIcu=!0;var r=[];return this._isInIcu=!1,r},_WriteVisitor.prototype.visitTagPlaceholder=function(e,t){var r=new yi(Ei,{id:e.startName,ctype:e.tag});if(e.isVoid)return[r];var n=new yi(Ei,{id:e.closeName,ctype:e.tag});return[r].concat(this.serialize(e.children),[n])},_WriteVisitor.prototype.visitPlaceholder=function(e,t){return[new yi(Ei,{id:e.name})]},_WriteVisitor.prototype.visitIcuPlaceholder=function(e,t){return[new yi(Ei,{id:e.name})]},_WriteVisitor.prototype.serialize=function(e){var t=this;return this._isInIcu=!1,R.flatten(e.map(function(e){return e.visit(t)}))},_WriteVisitor}(),Ii=function(){function _LoadVisitor(){}return _LoadVisitor.prototype.parse=function(e,t){var r=this;this._messageNodes=[],this._translatedMessages={},this._msgId="",this._target=[],this._errors=[],visitAll(this,e,null);var n=t.getMessageMap(),i=extractPlaceholders(t),o=extractPlaceholderToIds(t);return this._messageNodes.filter(function(e){return n.hasOwnProperty(e[0])}).sort(function(e,t){return 0==Object.keys(n[e[0]].placeholderToMsgIds).length?-1:0==Object.keys(n[t[0]].placeholderToMsgIds).length?1:0}).forEach(function(e){var t=e[0];r._placeholders=i[t]||{},r._placeholderToIds=o[t]||{},r._translatedMessages[t]=visitAll(r,e[1]).join("")}),{messages:this._translatedMessages,errors:this._errors}},_LoadVisitor.prototype.visitElement=function(e,t){switch(e.name){case Ti:this._target=null;var r=e.attrs.find(function(e){return"id"===e.name});r?this._msgId=r.value:this._addError(e,"<"+Ti+'> misses the "id" attribute'),visitAll(this,e.children,null),null!==this._msgId&&this._messageNodes.push([this._msgId,this._target]);break;case Ci:break;case Pi:this._target=e.children;break;case Ei:var n=e.attrs.find(function(e){return"id"===e.name});if(n){var i=n.value;if(this._placeholders.hasOwnProperty(i))return this._placeholders[i];if(this._placeholderToIds.hasOwnProperty(i)&&this._translatedMessages.hasOwnProperty(this._placeholderToIds[i]))return this._translatedMessages[this._placeholderToIds[i]];this._addError(e,'The placeholder "'+i+'" does not exists in the source message')}else this._addError(e,"<"+Ei+'> misses the "id" attribute');break;default:visitAll(this,e.children,null)}},_LoadVisitor.prototype.visitAttribute=function(e,t){throw new Error("unreachable code")},_LoadVisitor.prototype.visitText=function(e,t){return e.value},_LoadVisitor.prototype.visitComment=function(e,t){return""},_LoadVisitor.prototype.visitExpansion=function(e,t){throw new Error("unreachable code")},_LoadVisitor.prototype.visitExpansionCase=function(e,t){throw new Error("unreachable code")},_LoadVisitor.prototype._addError=function(e,t){this._errors.push(new ti(e.sourceSpan,t))},_LoadVisitor}(),Ri="messagebundle",Mi="msg",ki="ph",Ni="ex",Di='<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) "default">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>',Vi=function(){function Xmb(){}return Xmb.prototype.write=function(e){var t=new ji,r=new yi(Ri);return r.children.push(new bi("\n")),Object.keys(e).forEach(function(n){var i=e[n],o={id:n};i.description&&(o.desc=i.description),i.meaning&&(o.meaning=i.meaning),r.children.push(new bi("  "),new yi(Mi,o,t.serialize(i.nodes)),new bi("\n"))}),serialize([new mi({version:"1.0",encoding:"UTF-8"}),new bi("\n"),new vi(Ri,Di),new bi("\n"),r])},Xmb.prototype.load=function(e,t,r){throw new Error("Unsupported")},Xmb}(),ji=function(){function _Visitor(){}return _Visitor.prototype.visitText=function(e,t){return[new bi(e.value)]},_Visitor.prototype.visitContainer=function(e,t){var r=this,n=[];return e.children.forEach(function(e){return n.push.apply(n,e.visit(r));
}),n},_Visitor.prototype.visitIcu=function(e,t){var r=this,n=[new bi("{"+e.expression+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(t){n.push.apply(n,[new bi(t+" {")].concat(e.cases[t].visit(r),[new bi("} ")]))}),n.push(new bi("}")),n},_Visitor.prototype.visitTagPlaceholder=function(e,t){var r=new yi(Ni,{},[new bi("<"+e.tag+">")]),n=new yi(ki,{name:e.startName},[r]);if(e.isVoid)return[n];var i=new yi(Ni,{},[new bi("</"+e.tag+">")]),o=new yi(ki,{name:e.closeName},[i]);return[n].concat(this.serialize(e.children),[o])},_Visitor.prototype.visitPlaceholder=function(e,t){return[new yi(ki,{name:e.name})]},_Visitor.prototype.visitIcuPlaceholder=function(e,t){return[new yi(ki,{name:e.name})]},_Visitor.prototype.serialize=function(e){var t=this;return R.flatten(e.map(function(e){return e.visit(t)}))},_Visitor}(),Li="translationbundle",Fi="translation",Bi="ph",Wi=function(){function Xtb(e,t){this._htmlParser=e,this._interpolationConfig=t}return Xtb.prototype.write=function(e){throw new Error("Unsupported")},Xtb.prototype.load=function(e,t,r){var n=this,i=(new hi).parse(e,t);if(i.errors.length)throw new Error("xtb parse errors:\n"+i.errors.join("\n"));var o=(new Ui).parse(i.rootNodes,r),s=o.messages,a=o.errors;if(a.length)throw new Error("xtb parse errors:\n"+a.join("\n"));var u={},c=[];if(Object.keys(s).forEach(function(e){var r=n._htmlParser.parse(s[e],t,!0,n._interpolationConfig);c.push.apply(c,r.errors),u[e]=r.rootNodes}),c.length)throw new Error("xtb parse errors:\n"+c.join("\n"));return u},Xtb}(),Ui=function(){function _Visitor(){}return _Visitor.prototype.parse=function(e,t){var r=this;this._messageNodes=[],this._translatedMessages={},this._bundleDepth=0,this._translationDepth=0,this._errors=[],visitAll(this,e,null);var n=t.getMessageMap(),i=extractPlaceholders(t),o=extractPlaceholderToIds(t);return this._messageNodes.filter(function(e){return n.hasOwnProperty(e[0])}).sort(function(e,t){return 0==Object.keys(n[e[0]].placeholderToMsgIds).length?-1:0==Object.keys(n[t[0]].placeholderToMsgIds).length?1:0}).forEach(function(e){var t=e[0];r._placeholders=i[t]||{},r._placeholderToIds=o[t]||{},r._translatedMessages[t]=visitAll(r,e[1]).join("")}),{messages:this._translatedMessages,errors:this._errors}},_Visitor.prototype.visitElement=function(e,t){switch(e.name){case Li:this._bundleDepth++,this._bundleDepth>1&&this._addError(e,"<"+Li+"> elements can not be nested"),visitAll(this,e.children,null),this._bundleDepth--;break;case Fi:this._translationDepth++,this._translationDepth>1&&this._addError(e,"<"+Fi+"> elements can not be nested");var r=e.attrs.find(function(e){return"id"===e.name});r?this._messageNodes.push([r.value,e.children]):this._addError(e,"<"+Fi+'> misses the "id" attribute'),this._translationDepth--;break;case Bi:var n=e.attrs.find(function(e){return"name"===e.name});if(n){var i=n.value;if(this._placeholders.hasOwnProperty(i))return this._placeholders[i];if(this._placeholderToIds.hasOwnProperty(i)&&this._translatedMessages.hasOwnProperty(this._placeholderToIds[i]))return this._translatedMessages[this._placeholderToIds[i]];this._addError(e,'The placeholder "'+i+'" does not exists in the source message')}else this._addError(e,"<"+Bi+'> misses the "name" attribute');break;default:this._addError(e,"Unexpected tag")}},_Visitor.prototype.visitAttribute=function(e,t){throw new Error("unreachable code")},_Visitor.prototype.visitText=function(e,t){return e.value},_Visitor.prototype.visitComment=function(e,t){return""},_Visitor.prototype.visitExpansion=function(e,t){var r=this;e.cases.map(function(e){return e.visit(r,null)});return"{"+e.switchValue+", "+e.type+", strCases.join(' ')}"},_Visitor.prototype.visitExpansionCase=function(e,t){return e.value+" {"+visitAll(this,e.expression,null)+"}"},_Visitor.prototype._addError=function(e,t){this._errors.push(new ti(e.sourceSpan,t))},_Visitor}(),zi=function(){function TranslationBundle(e){void 0===e&&(e={}),this._messageMap=e}return TranslationBundle.load=function(e,t,r,n){return new TranslationBundle(n.load(e,t,r))},TranslationBundle.prototype.get=function(e){return this._messageMap[e]},TranslationBundle.prototype.has=function(e){return e in this._messageMap},TranslationBundle}(),Hi=function(){function I18NHtmlParser(e,t,r){this._htmlParser=e,this._translations=t,this._translationsFormat=r}return I18NHtmlParser.prototype.parse=function(e,t,r,n){void 0===r&&(r=!1),void 0===n&&(n=rn);var i=this._htmlParser.parse(e,t,r,n);if(!this._translations||""===this._translations)return i;var o=new ui(this._htmlParser,[],{}),s=o.updateFromTemplate(e,t,n);if(s&&s.length)return new jn(i.rootNodes,i.errors.concat(s));var a=this._createSerializer(n),u=zi.load(this._translations,t,o,a);return mergeTranslations(i.rootNodes,u,n,[],{})},I18NHtmlParser.prototype._createSerializer=function(e){var t=(this._translationsFormat||"xlf").toLowerCase();switch(t){case"xmb":return new Vi;case"xtb":return new Wi(this._htmlParser,e);case"xliff":case"xlf":default:return new Ai(this._htmlParser,e)}},I18NHtmlParser}(),qi=r.__core_private__.isDefaultChangeDetectionStrategy,Gi=r.__core_private__.ChangeDetectorStatus,Ki=r.__core_private__.LifecycleHooks,Qi=r.__core_private__.LIFECYCLE_HOOKS_VALUES,Xi=r.__core_private__.ReflectorReader,Ji=r.__core_private__.AppElement,Zi=r.__core_private__.CodegenComponentFactoryResolver,$i=r.__core_private__.AppView,Yi=r.__core_private__.DebugAppView,eo=r.__core_private__.NgModuleInjector,to=r.__core_private__.registerModuleFactory,ro=r.__core_private__.ViewType,no=r.__core_private__.MAX_INTERPOLATION_VALUES,io=r.__core_private__.checkBinding,oo=r.__core_private__.flattenNestedViewRenderNodes,so=r.__core_private__.interpolate,ao=r.__core_private__.ViewUtils,uo=r.__core_private__.DebugContext,co=r.__core_private__.StaticNodeDebugInfo,lo=r.__core_private__.devModeEqual,po=r.__core_private__.UNINITIALIZED,ho=r.__core_private__.ValueUnwrapper,fo=r.__core_private__.TemplateRef_,mo=r.__core_private__.EMPTY_ARRAY,vo=r.__core_private__.EMPTY_MAP,yo=r.__core_private__.pureProxy1,bo=r.__core_private__.pureProxy2,go=r.__core_private__.pureProxy3,_o=r.__core_private__.pureProxy4,So=r.__core_private__.pureProxy5,wo=r.__core_private__.pureProxy6,Eo=r.__core_private__.pureProxy7,Co=r.__core_private__.pureProxy8,Po=r.__core_private__.pureProxy9,To=r.__core_private__.pureProxy10,xo=r.__core_private__.castByValue,Ao=r.__core_private__.Console,Oo=r.__core_private__.reflector,Io=r.__core_private__.Reflector,Ro=r.__core_private__.ReflectionCapabilities,Mo=r.__core_private__.NoOpAnimationPlayer,ko=r.__core_private__.AnimationSequencePlayer,No=r.__core_private__.AnimationGroupPlayer,Do=r.__core_private__.AnimationKeyframe,Vo=r.__core_private__.AnimationStyles,jo=r.__core_private__.AnimationOutput,Lo=r.__core_private__.ANY_STATE,Fo=r.__core_private__.DEFAULT_STATE,Bo=r.__core_private__.EMPTY_STATE,Wo=r.__core_private__.FILL_STYLE_FLAG,Uo=r.__core_private__.prepareFinalAnimationStyles,zo=r.__core_private__.balanceAnimationKeyframes,Ho=r.__core_private__.clearStyles,qo=r.__core_private__.collectAndResolveStyles,Go=r.__core_private__.renderStyles,Ko=r.__core_private__.ComponentStillLoadingError,Qo=assetUrl("core","linker/view"),Xo=assetUrl("core","linker/view_utils"),Jo=assetUrl("core","change_detection/change_detection"),Zo=assetUrl("core","animation/animation_style_util"),$o=function(){function Identifiers(){}return Identifiers.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleUrl:assetUrl("core","metadata/di"),runtime:r.ANALYZE_FOR_ENTRY_COMPONENTS},Identifiers.ViewUtils={name:"ViewUtils",moduleUrl:assetUrl("core","linker/view_utils"),runtime:ao},Identifiers.AppView={name:"AppView",moduleUrl:Qo,runtime:$i},Identifiers.DebugAppView={name:"DebugAppView",moduleUrl:Qo,runtime:Yi},Identifiers.AppElement={name:"AppElement",moduleUrl:assetUrl("core","linker/element"),runtime:Ji},Identifiers.ElementRef={name:"ElementRef",moduleUrl:assetUrl("core","linker/element_ref"),runtime:r.ElementRef},Identifiers.ViewContainerRef={name:"ViewContainerRef",moduleUrl:assetUrl("core","linker/view_container_ref"),runtime:r.ViewContainerRef},Identifiers.ChangeDetectorRef={name:"ChangeDetectorRef",moduleUrl:assetUrl("core","change_detection/change_detector_ref"),runtime:r.ChangeDetectorRef},Identifiers.RenderComponentType={name:"RenderComponentType",moduleUrl:assetUrl("core","render/api"),runtime:r.RenderComponentType},Identifiers.QueryList={name:"QueryList",moduleUrl:assetUrl("core","linker/query_list"),runtime:r.QueryList},Identifiers.TemplateRef={name:"TemplateRef",moduleUrl:assetUrl("core","linker/template_ref"),runtime:r.TemplateRef},Identifiers.TemplateRef_={name:"TemplateRef_",moduleUrl:assetUrl("core","linker/template_ref"),runtime:fo},Identifiers.CodegenComponentFactoryResolver={name:"CodegenComponentFactoryResolver",moduleUrl:assetUrl("core","linker/component_factory_resolver"),runtime:Zi},Identifiers.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleUrl:assetUrl("core","linker/component_factory_resolver"),runtime:r.ComponentFactoryResolver},Identifiers.ComponentFactory={name:"ComponentFactory",runtime:r.ComponentFactory,moduleUrl:assetUrl("core","linker/component_factory")},Identifiers.NgModuleFactory={name:"NgModuleFactory",runtime:r.NgModuleFactory,moduleUrl:assetUrl("core","linker/ng_module_factory")},Identifiers.NgModuleInjector={name:"NgModuleInjector",runtime:eo,moduleUrl:assetUrl("core","linker/ng_module_factory")},Identifiers.RegisterModuleFactoryFn={name:"registerModuleFactory",runtime:to,moduleUrl:assetUrl("core","linker/ng_module_factory_loader")},Identifiers.ValueUnwrapper={name:"ValueUnwrapper",moduleUrl:Jo,runtime:ho},Identifiers.Injector={name:"Injector",moduleUrl:assetUrl("core","di/injector"),runtime:r.Injector},Identifiers.ViewEncapsulation={name:"ViewEncapsulation",moduleUrl:assetUrl("core","metadata/view"),runtime:r.ViewEncapsulation},Identifiers.ViewType={name:"ViewType",moduleUrl:assetUrl("core","linker/view_type"),runtime:ro},Identifiers.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleUrl:Jo,runtime:r.ChangeDetectionStrategy},Identifiers.StaticNodeDebugInfo={name:"StaticNodeDebugInfo",moduleUrl:assetUrl("core","linker/debug_context"),runtime:co},Identifiers.DebugContext={name:"DebugContext",moduleUrl:assetUrl("core","linker/debug_context"),runtime:uo},Identifiers.Renderer={name:"Renderer",moduleUrl:assetUrl("core","render/api"),runtime:r.Renderer},Identifiers.SimpleChange={name:"SimpleChange",moduleUrl:Jo,runtime:r.SimpleChange},Identifiers.UNINITIALIZED={name:"UNINITIALIZED",moduleUrl:Jo,runtime:po},Identifiers.ChangeDetectorStatus={name:"ChangeDetectorStatus",moduleUrl:Jo,runtime:Gi},Identifiers.checkBinding={name:"checkBinding",moduleUrl:Xo,runtime:io},Identifiers.flattenNestedViewRenderNodes={name:"flattenNestedViewRenderNodes",moduleUrl:Xo,runtime:oo},Identifiers.devModeEqual={name:"devModeEqual",moduleUrl:Jo,runtime:lo},Identifiers.interpolate={name:"interpolate",moduleUrl:Xo,runtime:so},Identifiers.castByValue={name:"castByValue",moduleUrl:Xo,runtime:xo},Identifiers.EMPTY_ARRAY={name:"EMPTY_ARRAY",moduleUrl:Xo,runtime:mo},Identifiers.EMPTY_MAP={name:"EMPTY_MAP",moduleUrl:Xo,runtime:vo},Identifiers.pureProxies=[null,{name:"pureProxy1",moduleUrl:Xo,runtime:yo},{name:"pureProxy2",moduleUrl:Xo,runtime:bo},{name:"pureProxy3",moduleUrl:Xo,runtime:go},{name:"pureProxy4",moduleUrl:Xo,runtime:_o},{name:"pureProxy5",moduleUrl:Xo,runtime:So},{name:"pureProxy6",moduleUrl:Xo,runtime:wo},{name:"pureProxy7",moduleUrl:Xo,runtime:Eo},{name:"pureProxy8",moduleUrl:Xo,runtime:Co},{name:"pureProxy9",moduleUrl:Xo,runtime:Po},{name:"pureProxy10",moduleUrl:Xo,runtime:To}],Identifiers.SecurityContext={name:"SecurityContext",moduleUrl:assetUrl("core","security"),runtime:r.SecurityContext},Identifiers.AnimationKeyframe={name:"AnimationKeyframe",moduleUrl:assetUrl("core","animation/animation_keyframe"),runtime:Do},Identifiers.AnimationStyles={name:"AnimationStyles",moduleUrl:assetUrl("core","animation/animation_styles"),runtime:Vo},Identifiers.NoOpAnimationPlayer={name:"NoOpAnimationPlayer",moduleUrl:assetUrl("core","animation/animation_player"),runtime:Mo},Identifiers.AnimationGroupPlayer={name:"AnimationGroupPlayer",moduleUrl:assetUrl("core","animation/animation_group_player"),runtime:No},Identifiers.AnimationSequencePlayer={name:"AnimationSequencePlayer",moduleUrl:assetUrl("core","animation/animation_sequence_player"),runtime:ko},Identifiers.prepareFinalAnimationStyles={name:"prepareFinalAnimationStyles",moduleUrl:Zo,runtime:Uo},Identifiers.balanceAnimationKeyframes={name:"balanceAnimationKeyframes",moduleUrl:Zo,runtime:zo},Identifiers.clearStyles={name:"clearStyles",moduleUrl:Zo,runtime:Ho},Identifiers.renderStyles={name:"renderStyles",moduleUrl:Zo,runtime:Go},Identifiers.collectAndResolveStyles={name:"collectAndResolveStyles",moduleUrl:Zo,runtime:qo},Identifiers.LOCALE_ID={name:"LOCALE_ID",moduleUrl:assetUrl("core","i18n/tokens"),runtime:r.LOCALE_ID},Identifiers.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleUrl:assetUrl("core","i18n/tokens"),runtime:r.TRANSLATIONS_FORMAT},Identifiers.AnimationOutput={name:"AnimationOutput",moduleUrl:assetUrl("core","animation/animation_output"),runtime:jo},Identifiers}(),Yo=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},es=function(e){function HtmlParser(){e.call(this,getHtmlTagDefinition)}return Yo(HtmlParser,e),HtmlParser.prototype.parse=function(t,r,n,i){return void 0===n&&(n=!1),void 0===i&&(i=rn),e.prototype.parse.call(this,t,r,n,i)},HtmlParser.decorators=[{type:r.Injectable}],HtmlParser.ctorParameters=[],HtmlParser}(Ln),ts=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},rs=["zero","one","two","few","many","other"],ns=function(){function ExpansionResult(e,t,r){this.nodes=e,this.expanded=t,this.errors=r}return ExpansionResult}(),is=function(e){function ExpansionError(t,r){e.call(this,t,r)}return ts(ExpansionError,e),ExpansionError}(_n),os=function(){function _Expander(){this.isExpanded=!1,this.errors=[]}return _Expander.prototype.visitElement=function(e,t){return new Pn(e.name,e.attrs,visitAll(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan)},_Expander.prototype.visitAttribute=function(e,t){return e},_Expander.prototype.visitText=function(e,t){return e},_Expander.prototype.visitComment=function(e,t){return e},_Expander.prototype.visitExpansion=function(e,t){return this.isExpanded=!0,"plural"==e.type?_expandPluralForm(e,this.errors):_expandDefaultForm(e,this.errors)},_Expander.prototype.visitExpansionCase=function(e,t){throw new Error("Should not be reached")},_Expander}(),ss=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},as=function(e){function ProviderError(t,r){e.call(this,r,t)}return ss(ProviderError,e),ProviderError}(_n),us=function(){function ProviderViewContext(e,t){var r=this;this.component=e,this.sourceSpan=t,this.errors=[],this.viewQueries=_getViewQueries(e),this.viewProviders=new Map,_normalizeProviders(e.viewProviders,t,this.errors).forEach(function(e){isBlank(r.viewProviders.get(e.token.reference))&&r.viewProviders.set(e.token.reference,!0)})}return ProviderViewContext}(),cs=function(){function ProviderElementContext(e,t,r,n,i,o,s){var a=this;this._viewContext=e,this._parent=t,this._isViewRoot=r,this._directiveAsts=n,this._sourceSpan=s,this._transformedProviders=new Map,this._seenProviders=new Map,this._hasViewContainer=!1,this._attrs={},i.forEach(function(e){return a._attrs[e.name]=e.value});var u=n.map(function(e){return e.directive});this._allProviders=_resolveProvidersFromDirectives(u,s,e.errors),this._contentQueries=_getContentQueries(u);var c=new Map;O.values(this._allProviders).forEach(function(e){a._addQueryReadsTo(e.token,c)}),o.forEach(function(e){a._addQueryReadsTo(new vt({value:e.name}),c)}),isPresent(c.get(resolveIdentifierToken($o.ViewContainerRef).reference))&&(this._hasViewContainer=!0),O.values(this._allProviders).forEach(function(e){var t=e.eager||isPresent(c.get(e.token.reference));t&&a._getOrCreateLocalProvider(e.providerType,e.token,!0)})}return ProviderElementContext.prototype.afterElement=function(){var e=this;O.values(this._allProviders).forEach(function(t){e._getOrCreateLocalProvider(t.providerType,t.token,!1)})},Object.defineProperty(ProviderElementContext.prototype,"transformProviders",{get:function(){return O.values(this._transformedProviders)},enumerable:!0,configurable:!0}),Object.defineProperty(ProviderElementContext.prototype,"transformedDirectiveAsts",{get:function(){var e=this.transformProviders.map(function(e){return e.token.identifier}),t=R.clone(this._directiveAsts);return R.sort(t,function(t,r){return e.indexOf(t.directive.type)-e.indexOf(r.directive.type)}),t},enumerable:!0,configurable:!0}),Object.defineProperty(ProviderElementContext.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),ProviderElementContext.prototype._addQueryReadsTo=function(e,t){this._getQueriesFor(e).forEach(function(r){var n=isPresent(r.read)?r.read:e;isBlank(t.get(n.reference))&&t.set(n.reference,!0)})},ProviderElementContext.prototype._getQueriesFor=function(e){for(var t,r=[],n=this,i=0;null!==n;)t=n._contentQueries.get(e.reference),isPresent(t)&&R.addAll(r,t.filter(function(e){return e.descendants||i<=1})),n._directiveAsts.length>0&&i++,n=n._parent;return t=this._viewContext.viewQueries.get(e.reference),isPresent(t)&&R.addAll(r,t),r},ProviderElementContext.prototype._getOrCreateLocalProvider=function(e,r,n){var i=this,o=this._allProviders.get(r.reference);if(isBlank(o)||(e===t.ProviderAstType.Directive||e===t.ProviderAstType.PublicService)&&o.providerType===t.ProviderAstType.PrivateService||(e===t.ProviderAstType.PrivateService||e===t.ProviderAstType.PublicService)&&o.providerType===t.ProviderAstType.Builtin)return null;var s=this._transformedProviders.get(r.reference);if(isPresent(s))return s;if(isPresent(this._seenProviders.get(r.reference)))return this._viewContext.errors.push(new as("Cannot instantiate cyclic dependency! "+r.name,this._sourceSpan)),null;this._seenProviders.set(r.reference,!0);var a=o.providers.map(function(e){var t,r=e.useValue,s=e.useExisting;if(isPresent(e.useExisting)){var a=i._getDependency(o.providerType,new ft({token:e.useExisting}),n);isPresent(a.token)?s=a.token:(s=null,r=a.value)}else if(isPresent(e.useFactory)){var u=isPresent(e.deps)?e.deps:e.useFactory.diDeps;t=u.map(function(e){return i._getDependency(o.providerType,e,n)})}else if(isPresent(e.useClass)){var u=isPresent(e.deps)?e.deps:e.useClass.diDeps;t=u.map(function(e){return i._getDependency(o.providerType,e,n)})}return _transformProvider(e,{useExisting:s,useValue:r,deps:t})});return s=_transformProviderAst(o,{eager:n,providers:a}),this._transformedProviders.set(r.reference,s),s},ProviderElementContext.prototype._getLocalDependency=function(e,r,n){if(void 0===n&&(n=null),r.isAttribute){var i=this._attrs[r.token.value];return new ft({isValue:!0,value:normalizeBlank(i)})}if(isPresent(r.query)||isPresent(r.viewQuery))return r;if(isPresent(r.token)){if(e===t.ProviderAstType.Directive||e===t.ProviderAstType.Component){if(r.token.reference===resolveIdentifierToken($o.Renderer).reference||r.token.reference===resolveIdentifierToken($o.ElementRef).reference||r.token.reference===resolveIdentifierToken($o.ChangeDetectorRef).reference||r.token.reference===resolveIdentifierToken($o.TemplateRef).reference)return r;r.token.reference===resolveIdentifierToken($o.ViewContainerRef).reference&&(this._hasViewContainer=!0)}if(r.token.reference===resolveIdentifierToken($o.Injector).reference)return r;if(isPresent(this._getOrCreateLocalProvider(e,r.token,n)))return r}return null},ProviderElementContext.prototype._getDependency=function(e,r,n){void 0===n&&(n=null);var i=this,o=n,s=null;if(r.isSkipSelf||(s=this._getLocalDependency(e,r,n)),r.isSelf)isBlank(s)&&r.isOptional&&(s=new ft({isValue:!0,value:null}));else{for(;isBlank(s)&&isPresent(i._parent);){var a=i;i=i._parent,a._isViewRoot&&(o=!1),s=i._getLocalDependency(t.ProviderAstType.PublicService,r,o)}isBlank(s)&&(s=!r.isHost||this._viewContext.component.type.isHost||this._viewContext.component.type.reference===r.token.reference||isPresent(this._viewContext.viewProviders.get(r.token.reference))?r:r.isOptional?s=new ft({isValue:!0,value:null}):null)}return isBlank(s)&&this._viewContext.errors.push(new as("No provider for "+r.token.name,this._sourceSpan)),s},ProviderElementContext}(),ls=function(){function NgModuleProviderAnalyzer(e,r,n){var i=this;this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map;var o=e.transitiveModule.modules.map(function(e){return e.type});o.forEach(function(e){var r=new dt({token:new vt({identifier:e}),useClass:e});_resolveProviders([r],t.ProviderAstType.PublicService,!0,n,i._errors,i._allProviders)}),_resolveProviders(_normalizeProviders(e.transitiveModule.providers.concat(r),n,this._errors),t.ProviderAstType.PublicService,!1,n,this._errors,this._allProviders)}return NgModuleProviderAnalyzer.prototype.parse=function(){var e=this;if(O.values(this._allProviders).forEach(function(t){e._getOrCreateLocalProvider(t.token,t.eager)}),this._errors.length>0){var t=this._errors.join("\n");throw new Error("Provider parse errors:\n"+t)}return O.values(this._transformedProviders)},NgModuleProviderAnalyzer.prototype._getOrCreateLocalProvider=function(e,t){var r=this,n=this._allProviders.get(e.reference);if(isBlank(n))return null;var i=this._transformedProviders.get(e.reference);if(isPresent(i))return i;if(isPresent(this._seenProviders.get(e.reference)))return this._errors.push(new as("Cannot instantiate cyclic dependency! "+e.name,n.sourceSpan)),null;this._seenProviders.set(e.reference,!0);var o=n.providers.map(function(e){var i,o=e.useValue,s=e.useExisting;if(isPresent(e.useExisting)){var a=r._getDependency(new ft({token:e.useExisting}),t,n.sourceSpan);isPresent(a.token)?s=a.token:(s=null,o=a.value)}else if(isPresent(e.useFactory)){var u=isPresent(e.deps)?e.deps:e.useFactory.diDeps;i=u.map(function(e){return r._getDependency(e,t,n.sourceSpan)})}else if(isPresent(e.useClass)){var u=isPresent(e.deps)?e.deps:e.useClass.diDeps;i=u.map(function(e){return r._getDependency(e,t,n.sourceSpan)})}return _transformProvider(e,{useExisting:s,useValue:o,deps:i})});return i=_transformProviderAst(n,{eager:t,providers:o}),this._transformedProviders.set(e.reference,i),i},NgModuleProviderAnalyzer.prototype._getDependency=function(e,t,r){void 0===t&&(t=null);var n=!1;!e.isSkipSelf&&isPresent(e.token)&&(e.token.reference===resolveIdentifierToken($o.Injector).reference||e.token.reference===resolveIdentifierToken($o.ComponentFactoryResolver).reference?n=!0:isPresent(this._getOrCreateLocalProvider(e.token,t))&&(n=!0));var i=e;return e.isSelf&&!n&&(e.isOptional?i=new ft({isValue:!0,value:null}):this._errors.push(new as("No provider for "+e.token.name,r))),i},NgModuleProviderAnalyzer}(),ps=function(){function ElementSchemaRegistry(){}return ElementSchemaRegistry}(),hs=function(){function StyleWithImports(e,t){this.style=e,this.styleUrls=t}return StyleWithImports}(),fs=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,ds=/^([^:\/?#]+):/,ms="select",vs="ng-content",ys="link",bs="rel",gs="href",_s="stylesheet",Ss="style",ws="script",Es="ngNonBindable",Cs="ngProjectAs";!function(e){e[e.NG_CONTENT=0]="NG_CONTENT",e[e.STYLE=1]="STYLE",e[e.STYLESHEET=2]="STYLESHEET",e[e.SCRIPT=3]="SCRIPT",e[e.OTHER=4]="OTHER"}(si||(si={}));var Ps,Ts=function(){function PreparsedElement(e,t,r,n,i){this.type=e,this.selectAttr=t,this.hrefAttr=r,this.nonBindable=n,this.projectAs=i}return PreparsedElement}(),xs=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},As=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,Os=1,Is=2,Rs=3,Ms=4,ks=5,Ns=6,Ds=7,Vs=8,js=9,Ls=10,Fs="animate-",Bs="template",Ws="template",Us="*",zs="class",Hs=".",qs="attr",Gs="class",Ks="style",Qs=W.parse("*")[0],Xs=new r.OpaqueToken("TemplateTransforms"),Js=function(e){function TemplateParseError(t,r,n){e.call(this,r,t,n)}return xs(TemplateParseError,e),TemplateParseError}(_n),Zs=function(){function TemplateParseResult(e,t){this.templateAst=e,this.errors=t}return TemplateParseResult}(),$s=function(){function TemplateParser(e,t,r,n,i){this._exprParser=e,this._schemaRegistry=t,this._htmlParser=r,this._console=n,this.transforms=i}return TemplateParser.prototype.parse=function(e,t,r,n,i,o){var s=this.tryParse(e,t,r,n,i,o),a=s.errors.filter(function(e){return e.level===nn.WARNING}),u=s.errors.filter(function(e){return e.level===nn.FATAL});if(a.length>0&&this._console.warn("Template parse warnings:\n"+a.join("\n")),u.length>0){var c=u.join("\n");throw new Error("Template parse errors:\n"+c)}return s.templateAst},TemplateParser.prototype.tryParse=function(e,t,r,n,i,o){var s;e.template&&(s=tn.fromArray(e.template.interpolation));var a,u=this._htmlParser.parse(t,o,!0,s),c=u.errors;if(0==c.length){var l=expandNodes(u.rootNodes);c.push.apply(c,l.errors),u=new jn(l.nodes,c)}if(u.rootNodes.length>0){var p=removeIdentifierDuplicates(r),h=removeIdentifierDuplicates(n),f=new us(e,u.rootNodes[0].sourceSpan),d=new Ys(f,p,h,i,this._exprParser,this._schemaRegistry);a=visitAll(d,u.rootNodes,ia),c.push.apply(c,d.errors.concat(f.errors))}else a=[];return this._assertNoReferenceDuplicationOnTemplate(a,c),c.length>0?new Zs(a,c):(isPresent(this.transforms)&&this.transforms.forEach(function(e){a=templateVisitAll(e,a)}),new Zs(a,c))},TemplateParser.prototype._assertNoReferenceDuplicationOnTemplate=function(e,t){var r=[];e.filter(function(e){return!!e.references}).forEach(function(e){return e.references.forEach(function(e){var n=e.name;if(r.indexOf(n)<0)r.push(n);else{var i=new Js('Reference "#'+n+'" is defined several times',e.sourceSpan,nn.FATAL);t.push(i)}})})},TemplateParser.decorators=[{type:r.Injectable}],TemplateParser.ctorParameters=[{type:hn},{type:ps},{type:Hi},{type:Ao},{type:Array,decorators:[{type:r.Optional},{type:r.Inject,args:[Xs]}]}],TemplateParser}(),Ys=function(){function TemplateParseVisitor(e,t,r,n,i,o){var s=this;this.providerViewContext=e,this._schemas=n,this._exprParser=i,this._schemaRegistry=o,this.selectorMatcher=new U,this.errors=[],this.directivesIndex=new Map,this.ngContentCount=0,this.pipesByName=new Map;var a=e.component.template;a&&a.interpolation&&(this._interpolationConfig={start:a.interpolation[0],end:a.interpolation[1]}),t.forEach(function(e,t){var r=W.parse(e.selector);s.selectorMatcher.addSelectables(r,e),s.directivesIndex.set(e,t)}),r.forEach(function(e){return s.pipesByName.set(e.name,e)})}return TemplateParseVisitor.prototype._reportError=function(e,t,r){void 0===r&&(r=nn.FATAL),this.errors.push(new Js(e,t,r))},TemplateParseVisitor.prototype._reportParserErrors=function(e,t){for(var r=0,n=e;r<n.length;r++){var i=n[r];this._reportError(i.message,t)}},TemplateParseVisitor.prototype._parseInterpolation=function(e,t){var r=t.start.toString();try{var n=this._exprParser.parseInterpolation(e,r,this._interpolationConfig);if(n&&this._reportParserErrors(n.errors,t),this._checkPipes(n,t),isPresent(n)&&n.ast.expressions.length>no)throw new Error("Only support at most "+no+" interpolation values!");return n}catch(i){return this._reportError(""+i,t),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},TemplateParseVisitor.prototype._parseAction=function(e,t){var r=t.start.toString();try{var n=this._exprParser.parseAction(e,r,this._interpolationConfig);return n&&this._reportParserErrors(n.errors,t),!n||n.ast instanceof Rt?(this._reportError("Empty expressions are not allowed",t),this._exprParser.wrapLiteralPrimitive("ERROR",r)):(this._checkPipes(n,t),n)}catch(i){return this._reportError(""+i,t),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},TemplateParseVisitor.prototype._parseBinding=function(e,t){var r=t.start.toString();try{var n=this._exprParser.parseBinding(e,r,this._interpolationConfig);return n&&this._reportParserErrors(n.errors,t),this._checkPipes(n,t),n}catch(i){return this._reportError(""+i,t),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},TemplateParseVisitor.prototype._parseTemplateBindings=function(e,t){var r=this,n=t.start.toString();try{var i=this._exprParser.parseTemplateBindings(e,n);return this._reportParserErrors(i.errors,t),i.templateBindings.forEach(function(e){isPresent(e.expression)&&r._checkPipes(e.expression,t)}),i.warnings.forEach(function(e){r._reportError(e,t,nn.WARNING)}),i.templateBindings}catch(o){return this._reportError(""+o,t),[]}},TemplateParseVisitor.prototype._checkPipes=function(e,t){var r=this;if(isPresent(e)){var n=new sa;e.visit(n),n.pipes.forEach(function(e){r.pipesByName.has(e)||r._reportError("The pipe '"+e+"' could not be found",t)})}},TemplateParseVisitor.prototype.visitExpansion=function(e,t){return null},TemplateParseVisitor.prototype.visitExpansionCase=function(e,t){return null},TemplateParseVisitor.prototype.visitText=function(e,t){var r=t.findNgContentIndex(Qs),n=this._parseInterpolation(e.value,e.sourceSpan);return isPresent(n)?new l(n,r,e.sourceSpan):new c(e.value,r,e.sourceSpan)},TemplateParseVisitor.prototype.visitAttribute=function(e,t){return new p(e.name,e.value,e.sourceSpan)},TemplateParseVisitor.prototype.visitComment=function(e,t){return null},TemplateParseVisitor.prototype.visitElement=function(e,t){var r=this,n=e.name,i=preparseElement(e);if(i.type===si.SCRIPT||i.type===si.STYLE)return null;if(i.type===si.STYLESHEET&&isStyleUrlResolvable(i.hrefAttr))return null;var o=[],s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=!1,m=[],b=splitNsName(n.toLowerCase())[1],g=b==Bs;e.attrs.forEach(function(e){var t=r._parseAttr(g,e,o,s,c,l,a,u),n=r._parseInlineTemplateBinding(e,h,p,f);n&&d&&r._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",e.sourceSpan),t||n||(m.push(r.visitAttribute(e,null)),o.push([e.name,e.value])),n&&(d=!0)});var _=createElementCssSelector(n,o),w=this._parseDirectives(this.selectorMatcher,_),E=w.directives,C=w.matchElement,P=[],T=this._createDirectiveAsts(g,e.name,E,s,a,e.sourceSpan,P),x=this._createElementPropertyAsts(e.name,s,T).concat(c),A=t.isTemplateElement||d,O=new cs(this.providerViewContext,t.providerContext,A,T,m,P,e.sourceSpan),I=visitAll(i.nonBindable?oa:this,e.children,na.create(g,T,g?t.providerContext:O));O.afterElement();var R,M=isPresent(i.projectAs)?W.parse(i.projectAs)[0]:_,k=t.findNgContentIndex(M);if(i.type===si.NG_CONTENT)isPresent(e.children)&&e.children.length>0&&this._reportError("<ng-content> element cannot have content. <ng-content> must be immediately followed by </ng-content>",e.sourceSpan),R=new S((this.ngContentCount++),d?null:k,e.sourceSpan);else if(g)this._assertAllEventsPublishedByDirectives(T,l),this._assertNoComponentsNorElementBindingsOnTemplate(T,x,e.sourceSpan),R=new y(m,l,P,u,O.transformedDirectiveAsts,O.transformProviders,O.transformedHasViewContainer,I,d?null:k,e.sourceSpan);else{this._assertElementExists(C,e),this._assertOnlyOneComponent(T,e.sourceSpan);var N=d?null:t.findNgContentIndex(M);R=new v(n,m,x,l,P,O.transformedDirectiveAsts,O.transformProviders,O.transformedHasViewContainer,I,d?null:N,e.sourceSpan)}if(d){var D=createElementCssSelector(Bs,h),V=this._parseDirectives(this.selectorMatcher,D).directives,j=this._createDirectiveAsts(!0,e.name,V,p,[],e.sourceSpan,[]),L=this._createElementPropertyAsts(e.name,p,j);this._assertNoComponentsNorElementBindingsOnTemplate(j,L,e.sourceSpan);
var F=new cs(this.providerViewContext,t.providerContext,t.isTemplateElement,j,[],[],e.sourceSpan);F.afterElement(),R=new y([],[],[],f,F.transformedDirectiveAsts,F.transformProviders,F.transformedHasViewContainer,[R],k,e.sourceSpan)}return R},TemplateParseVisitor.prototype._parseInlineTemplateBinding=function(e,t,r,n){var i=null;if(this._normalizeAttributeName(e.name)==Ws)i=e.value;else if(e.name.startsWith(Us)){var o=e.name.substring(Us.length);i=0==e.value.length?o:o+" "+e.value}if(isPresent(i)){for(var s=this._parseTemplateBindings(i,e.sourceSpan),a=0;a<s.length;a++){var u=s[a];u.keyIsVar?n.push(new m(u.key,u.name,e.sourceSpan)):isPresent(u.expression)?this._parsePropertyAst(u.key,u.expression,e.sourceSpan,t,r):(t.push([u.key,""]),this._parseLiteralAttr(u.key,null,e.sourceSpan,r))}return!0}return!1},TemplateParseVisitor.prototype._parseAttr=function(e,t,r,n,i,o,s,a){var u=this._normalizeAttributeName(t.name),c=t.value,l=t.sourceSpan,p=u.match(As),h=!1;if(null!==p)if(h=!0,isPresent(p[Os]))this._parsePropertyOrAnimation(p[Ds],c,l,r,n,i);else if(p[Is])if(e){var f=p[Ds];this._parseVariable(f,c,l,a)}else this._reportError('"let-" is only supported on template elements.',l);else if(p[Rs]){var f=p[Ds];this._parseReference(f,c,l,s)}else p[Ms]?this._parseEvent(p[Ds],c,l,r,o):p[ks]?(this._parsePropertyOrAnimation(p[Ds],c,l,r,n,i),this._parseAssignmentEvent(p[Ds],c,l,r,o)):p[Ns]?("@"==u[0]&&isPresent(c)&&c.length>0&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',l,nn.FATAL),this._parseAnimation(p[Ds],c,l,r,i)):p[Vs]?(this._parsePropertyOrAnimation(p[Vs],c,l,r,n,i),this._parseAssignmentEvent(p[Vs],c,l,r,o)):p[js]?this._parsePropertyOrAnimation(p[js],c,l,r,n,i):p[Ls]&&this._parseEvent(p[Ls],c,l,r,o);else h=this._parsePropertyInterpolation(u,c,l,r,n);return h||this._parseLiteralAttr(u,c,l,n),h},TemplateParseVisitor.prototype._normalizeAttributeName=function(e){return/^data-/i.test(e)?e.substring(5):e},TemplateParseVisitor.prototype._parseVariable=function(e,t,r,n){e.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',r),n.push(new m(e,t,r))},TemplateParseVisitor.prototype._parseReference=function(e,t,r,n){e.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',r),n.push(new ra(e,t,r))},TemplateParseVisitor.prototype._parsePropertyOrAnimation=function(e,t,r,n,i,o){var s=Fs.length,a="@"==e[0],u=1;e.substring(0,s)==Fs&&(a=!0,u=s),a?this._parseAnimation(e.substr(u),t,r,n,o):this._parsePropertyAst(e,this._parseBinding(t,r),r,n,i)},TemplateParseVisitor.prototype._parseAnimation=function(e,n,i,o,s){isPresent(n)&&0!=n.length||(n="null");var a=this._parseBinding(n,i);o.push([e,a.source]),s.push(new h(e,t.PropertyBindingType.Animation,r.SecurityContext.NONE,a,null,i))},TemplateParseVisitor.prototype._parsePropertyInterpolation=function(e,t,r,n,i){var o=this._parseInterpolation(t,r);return!!isPresent(o)&&(this._parsePropertyAst(e,o,r,n,i),!0)},TemplateParseVisitor.prototype._parsePropertyAst=function(e,t,r,n,i){n.push([e,t.source]),i.push(new ta(e,t,(!1),r))},TemplateParseVisitor.prototype._parseAssignmentEvent=function(e,t,r,n,i){this._parseEvent(e+"Change",t+"=$event",r,n,i)},TemplateParseVisitor.prototype._parseEvent=function(e,t,r,n,i){var o=splitAtColon(e,[null,e]),s=o[0],a=o[1],u=this._parseAction(t,r);n.push([e,u.source]),i.push(new f(a,s,u,r))},TemplateParseVisitor.prototype._parseLiteralAttr=function(e,t,r,n){n.push(new ta(e,this._exprParser.wrapLiteralPrimitive(t,""),(!0),r))},TemplateParseVisitor.prototype._parseDirectives=function(e,t){var r=this,n=new Array(this.directivesIndex.size),i=!1;return e.match(t,function(e,t){n[r.directivesIndex.get(t)]=t,i=i||e.hasElementSelector()}),{directives:n.filter(function(e){return!!e}),matchElement:i}},TemplateParseVisitor.prototype._createDirectiveAsts=function(e,t,r,n,i,o,s){var a=this,u=new Set,c=null,l=r.map(function(e){var r=new bn(o.start,o.end,"Directive "+e.type.name);e.isComponent&&(c=e);var l=[],p=[],h=[];return a._createDirectiveHostPropertyAsts(t,e.hostProperties,r,l),a._createDirectiveHostEventAsts(e.hostListeners,r,p),a._createDirectivePropertyAsts(e.inputs,n,h),i.forEach(function(t){(0===t.value.length&&e.isComponent||e.exportAs==t.value)&&(s.push(new d(t.name,identifierToken(e.type),t.sourceSpan)),u.add(t.name))}),new g(e,h,l,p,r)});return i.forEach(function(t){if(t.value.length>0)u.has(t.name)||a._reportError('There is no directive with "exportAs" set to "'+t.value+'"',t.sourceSpan);else if(!c){var r=null;e&&(r=resolveIdentifierToken($o.TemplateRef)),s.push(new d(t.name,r,t.sourceSpan))}}),l},TemplateParseVisitor.prototype._createDirectiveHostPropertyAsts=function(e,t,r,n){var i=this;t&&I.forEach(t,function(t,o){if(isString(t)){var s=i._parseBinding(t,r);n.push(i._createElementPropertyAst(e,o,s,r))}else i._reportError('Value of the host property binding "'+o+'" needs to be a string representing an expression but got "'+t+'" ('+typeof t+")",r)})},TemplateParseVisitor.prototype._createDirectiveHostEventAsts=function(e,t,r){var n=this;e&&I.forEach(e,function(e,i){isString(e)?n._parseEvent(i,e,t,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+e+'" ('+typeof e+")",t)})},TemplateParseVisitor.prototype._createDirectivePropertyAsts=function(e,t,r){if(e){var n=new Map;t.forEach(function(e){var t=n.get(e.name);(isBlank(t)||t.isLiteral)&&n.set(e.name,e)}),I.forEach(e,function(e,t){var i=n.get(e);i&&r.push(new b(t,i.name,i.expression,i.sourceSpan))})}},TemplateParseVisitor.prototype._createElementPropertyAsts=function(e,t,r){var n=this,i=[],o=new Map;return r.forEach(function(e){e.inputs.forEach(function(e){o.set(e.templateName,e)})}),t.forEach(function(t){!t.isLiteral&&isBlank(o.get(t.name))&&i.push(n._createElementPropertyAst(e,t.name,t.expression,t.sourceSpan))}),i},TemplateParseVisitor.prototype._createElementPropertyAst=function(e,n,i,o){var s,a,u,c=null,l=n.split(Hs);if(1===l.length){var p=l[0];if("@"==p[0])a=p.substr(1),s=t.PropertyBindingType.Animation,u=r.SecurityContext.NONE;else if(a=this._schemaRegistry.getMappedPropName(p),u=this._schemaRegistry.securityContext(e,a),s=t.PropertyBindingType.Property,this._assertNoEventBinding(a,o),!this._schemaRegistry.hasProperty(e,a,this._schemas)){var f="Can't bind to '"+a+"' since it isn't a known property of '"+e+"'.";e.indexOf("-")>-1&&(f+="\n1. If '"+e+"' is an Angular component and it has '"+a+"' input, then verify that it is part of this module."+("\n2. If '"+e+"' is a Web Component then add \"CUSTOM_ELEMENTS_SCHEMA\" to the '@NgModule.schema' of this component to suppress this message.\n")),this._reportError(f,o)}}else if(l[0]==qs){a=l[1],this._assertNoEventBinding(a,o);var d=this._schemaRegistry.getMappedPropName(a);u=this._schemaRegistry.securityContext(e,d);var m=a.indexOf(":");if(m>-1){var v=a.substring(0,m),y=a.substring(m+1);a=mergeNsAndName(v,y)}s=t.PropertyBindingType.Attribute}else l[0]==Gs?(a=l[1],s=t.PropertyBindingType.Class,u=r.SecurityContext.NONE):l[0]==Ks?(c=l.length>2?l[2]:null,a=l[1],s=t.PropertyBindingType.Style,u=r.SecurityContext.STYLE):(this._reportError("Invalid property name '"+n+"'",o),s=null,u=null);return new h(a,s,u,i,c,o)},TemplateParseVisitor.prototype._assertNoEventBinding=function(e,t){e.toLowerCase().startsWith("on")&&this._reportError("Binding to event attribute '"+e+"' is disallowed "+("for security reasons, please use ("+e.slice(2)+")=..."),t,nn.FATAL)},TemplateParseVisitor.prototype._findComponentDirectiveNames=function(e){var t=[];return e.forEach(function(e){var r=e.directive.type.name;e.directive.isComponent&&t.push(r)}),t},TemplateParseVisitor.prototype._assertOnlyOneComponent=function(e,t){var r=this._findComponentDirectiveNames(e);r.length>1&&this._reportError("More than one component: "+r.join(","),t)},TemplateParseVisitor.prototype._assertElementExists=function(e,t){var r=t.name.replace(/^:xhtml:/,"");if(!e&&!this._schemaRegistry.hasElement(r,this._schemas)){var n="'"+r+"' is not a known element:\n"+("1. If '"+r+"' is an Angular component, then verify that it is part of this module.\n")+("2. If '"+r+"' is a Web Component then add \"CUSTOM_ELEMENTS_SCHEMA\" to the '@NgModule.schema' of this component to suppress this message.");this._reportError(n,t.sourceSpan)}},TemplateParseVisitor.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(e,t,r){var n=this,i=this._findComponentDirectiveNames(e);i.length>0&&this._reportError("Components on an embedded template: "+i.join(","),r),t.forEach(function(e){n._reportError("Property binding "+e.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "directives" section.',r)})},TemplateParseVisitor.prototype._assertAllEventsPublishedByDirectives=function(e,t){var r=this,n=new Set;e.forEach(function(e){I.forEach(e.directive.outputs,function(e){n.add(e)})}),t.forEach(function(e){!isPresent(e.target)&&n.has(e.name)||r._reportError("Event binding "+e.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "directives" section.',e.sourceSpan)})},TemplateParseVisitor}(),ea=function(){function NonBindableVisitor(){}return NonBindableVisitor.prototype.visitElement=function(e,t){var r=preparseElement(e);if(r.type===si.SCRIPT||r.type===si.STYLE||r.type===si.STYLESHEET)return null;var n=e.attrs.map(function(e){return[e.name,e.value]}),i=createElementCssSelector(e.name,n),o=t.findNgContentIndex(i),s=visitAll(this,e.children,ia);return new v(e.name,visitAll(this,e.attrs),[],[],[],[],[],(!1),s,o,e.sourceSpan)},NonBindableVisitor.prototype.visitComment=function(e,t){return null},NonBindableVisitor.prototype.visitAttribute=function(e,t){return new p(e.name,e.value,e.sourceSpan)},NonBindableVisitor.prototype.visitText=function(e,t){var r=t.findNgContentIndex(Qs);return new c(e.value,r,e.sourceSpan)},NonBindableVisitor.prototype.visitExpansion=function(e,t){return e},NonBindableVisitor.prototype.visitExpansionCase=function(e,t){return e},NonBindableVisitor}(),ta=function(){function BoundElementOrDirectiveProperty(e,t,r,n){this.name=e,this.expression=t,this.isLiteral=r,this.sourceSpan=n}return BoundElementOrDirectiveProperty}(),ra=function(){function ElementOrDirectiveRef(e,t,r){this.name=e,this.value=t,this.sourceSpan=r}return ElementOrDirectiveRef}(),na=function(){function ElementContext(e,t,r,n){this.isTemplateElement=e,this._ngContentIndexMatcher=t,this._wildcardNgContentIndex=r,this.providerContext=n}return ElementContext.create=function(e,t,r){var n=new U,i=null,o=t.find(function(e){return e.directive.isComponent});if(o)for(var s=o.directive.template.ngContentSelectors,a=0;a<s.length;a++){var u=s[a];"*"===u?i=a:n.addSelectables(W.parse(s[a]),a)}return new ElementContext(e,n,i,r)},ElementContext.prototype.findNgContentIndex=function(e){var t=[];return this._ngContentIndexMatcher.match(e,function(e,r){t.push(r)}),t.sort(),isPresent(this._wildcardNgContentIndex)&&t.push(this._wildcardNgContentIndex),t.length>0?t[0]:null},ElementContext}(),ia=new na((!0),new U,null,null),oa=new ea,sa=function(e){function PipeCollector(){e.apply(this,arguments),this.pipes=new Set}return xs(PipeCollector,e),PipeCollector.prototype.visitPipe=function(e,t){return this.pipes.add(e.name),e.exp.visit(this),this.visitAll(e.args,t),null},PipeCollector}($t),aa=function(){function CompilerConfig(e){var t=void 0===e?{}:e,n=t.renderTypes,i=void 0===n?new ca:n,o=t.defaultEncapsulation,s=void 0===o?r.ViewEncapsulation.Emulated:o,a=t.genDebugInfo,u=t.logBindingUpdate,c=t.useJit,l=void 0===c||c;this.renderTypes=i,this.defaultEncapsulation=s,this._genDebugInfo=a,this._logBindingUpdate=u,this.useJit=l}return Object.defineProperty(CompilerConfig.prototype,"genDebugInfo",{get:function(){return void 0===this._genDebugInfo?r.isDevMode():this._genDebugInfo},enumerable:!0,configurable:!0}),Object.defineProperty(CompilerConfig.prototype,"logBindingUpdate",{get:function(){return void 0===this._logBindingUpdate?r.isDevMode():this._logBindingUpdate},enumerable:!0,configurable:!0}),CompilerConfig}(),ua=function(){function RenderTypes(){}return Object.defineProperty(RenderTypes.prototype,"renderer",{get:function(){return unimplemented$1()},enumerable:!0,configurable:!0}),Object.defineProperty(RenderTypes.prototype,"renderText",{get:function(){return unimplemented$1()},enumerable:!0,configurable:!0}),Object.defineProperty(RenderTypes.prototype,"renderElement",{get:function(){return unimplemented$1()},enumerable:!0,configurable:!0}),Object.defineProperty(RenderTypes.prototype,"renderComment",{get:function(){return unimplemented$1()},enumerable:!0,configurable:!0}),Object.defineProperty(RenderTypes.prototype,"renderNode",{get:function(){return unimplemented$1()},enumerable:!0,configurable:!0}),Object.defineProperty(RenderTypes.prototype,"renderEvent",{get:function(){return unimplemented$1()},enumerable:!0,configurable:!0}),RenderTypes}(),ca=function(){function DefaultRenderTypes(){this.renderText=null,this.renderElement=null,this.renderComment=null,this.renderNode=null,this.renderEvent=null}return Object.defineProperty(DefaultRenderTypes.prototype,"renderer",{get:function(){return resolveIdentifier($o.Renderer)},enumerable:!0,configurable:!0}),DefaultRenderTypes}(),la=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},pa=function(){function AnimationAst(){this.startTime=0,this.playTime=0}return AnimationAst}(),ha=function(e){function AnimationStateAst(){e.apply(this,arguments)}return la(AnimationStateAst,e),AnimationStateAst}(pa),fa=function(e){function AnimationEntryAst(t,r,n){e.call(this),this.name=t,this.stateDeclarations=r,this.stateTransitions=n}return la(AnimationEntryAst,e),AnimationEntryAst.prototype.visit=function(e,t){return e.visitAnimationEntry(this,t)},AnimationEntryAst}(pa),da=function(e){function AnimationStateDeclarationAst(t,r){e.call(this),this.stateName=t,this.styles=r}return la(AnimationStateDeclarationAst,e),AnimationStateDeclarationAst.prototype.visit=function(e,t){return e.visitAnimationStateDeclaration(this,t)},AnimationStateDeclarationAst}(ha),ma=function(){function AnimationStateTransitionExpression(e,t){this.fromState=e,this.toState=t}return AnimationStateTransitionExpression}(),va=function(e){function AnimationStateTransitionAst(t,r){e.call(this),this.stateChanges=t,this.animation=r}return la(AnimationStateTransitionAst,e),AnimationStateTransitionAst.prototype.visit=function(e,t){return e.visitAnimationStateTransition(this,t)},AnimationStateTransitionAst}(ha),ya=function(e){function AnimationStepAst(t,r,n,i,o){e.call(this),this.startingStyles=t,this.keyframes=r,this.duration=n,this.delay=i,this.easing=o}return la(AnimationStepAst,e),AnimationStepAst.prototype.visit=function(e,t){return e.visitAnimationStep(this,t)},AnimationStepAst}(pa),ba=function(e){function AnimationStylesAst(t){e.call(this),this.styles=t}return la(AnimationStylesAst,e),AnimationStylesAst.prototype.visit=function(e,t){return e.visitAnimationStyles(this,t)},AnimationStylesAst}(pa),ga=function(e){function AnimationKeyframeAst(t,r){e.call(this),this.offset=t,this.styles=r}return la(AnimationKeyframeAst,e),AnimationKeyframeAst.prototype.visit=function(e,t){return e.visitAnimationKeyframe(this,t)},AnimationKeyframeAst}(pa),_a=function(e){function AnimationWithStepsAst(t){e.call(this),this.steps=t}return la(AnimationWithStepsAst,e),AnimationWithStepsAst}(pa),Sa=function(e){function AnimationGroupAst(t){e.call(this,t)}return la(AnimationGroupAst,e),AnimationGroupAst.prototype.visit=function(e,t){return e.visitAnimationGroup(this,t)},AnimationGroupAst}(_a),wa=function(e){function AnimationSequenceAst(t){e.call(this,t)}return la(AnimationSequenceAst,e),AnimationSequenceAst.prototype.visit=function(e,t){return e.visitAnimationSequence(this,t)},AnimationSequenceAst}(_a),Ea=i.Math,Ca=function(){function StylesCollectionEntry(e,t){this.time=e,this.value=t}return StylesCollectionEntry.prototype.matches=function(e,t){return e==this.time&&t==this.value},StylesCollectionEntry}(),Pa=function(){function StylesCollection(){this.styles={}}return StylesCollection.prototype.insertAtTime=function(e,t,r){var n=new Ca(t,r),i=this.styles[e];isPresent(i)||(i=this.styles[e]=[]);for(var o=0,s=i.length-1;s>=0;s--)if(i[s].time<=t){o=s+1;break}R.insert(i,o,n)},StylesCollection.prototype.getByIndex=function(e,t){var r=this.styles[e];return isPresent(r)?t>=r.length?null:r[t]:null},StylesCollection.prototype.indexOfAtOrBeforeTime=function(e,t){var r=this.styles[e];if(isPresent(r))for(var n=r.length-1;n>=0;n--)if(r[n].time<=t)return n;return null},StylesCollection}(),Ta=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},xa=0,Aa=1,Oa=1e3,Ia=function(e){function AnimationParseError(t){e.call(this,null,t)}return Ta(AnimationParseError,e),AnimationParseError.prototype.toString=function(){return""+this.msg},AnimationParseError}(_n),Ra=function(){function ParsedAnimationResult(e,t){this.ast=e,this.errors=t}return ParsedAnimationResult}(),Ma=function(){function _AnimationTimings(e,t,r){this.duration=e,this.delay=t,this.easing=r}return _AnimationTimings}(),ka=new Map,Na=function(){function CompiledAnimationTriggerResult(e,t,r,n,i){this.name=e,this.statesMapStatement=t,this.statesVariableName=r,this.fnStatement=n,this.fnVariable=i}return CompiledAnimationTriggerResult}(),Da=function(){function CompiledComponentAnimationResult(e,t){this.outputs=e,this.triggers=t}return CompiledComponentAnimationResult}(),Va=function(){function AnimationCompiler(){}return AnimationCompiler.prototype.compileComponent=function(e,t){var r=[],n=[],i={},o=e.type.name;e.template.animations.forEach(function(e){var t=parseAnimationEntry(e),s=e.name;if(t.errors.length>0){var a='Unable to parse the animation sequence for "'+s+'" due to the following errors:';t.errors.forEach(function(e){a+="\n-- "+e.msg}),n.push(a)}if(i[s])n.push('The animation trigger "'+s+'" has already been registered on "'+o+'"');else{var u=o+"_"+e.name,c=new Xa(s,u),l=c.build(t.ast);r.push(l),i[e.name]=l}});var s=_validateAnimationProperties(r,t);if(s.errors.forEach(function(e){n.push(e.msg)}),n.length>0){var a="Animation parsing for "+e.type.name+" has failed due to the following errors:";throw n.forEach(function(e){return a+="\n- "+e}),new Error(a)}return ka.set(e,r),new Da(s.outputs,r)},AnimationCompiler}(),ja=variable("element"),La=variable("defaultStateStyles"),Fa=variable("view"),Ba=Fa.prop("renderer"),Wa=variable("currentState"),Ua=variable("nextState"),za=variable("player"),Ha=variable("totalTime"),qa=variable("startStateStyles"),Ga=variable("endStateStyles"),Ka=variable("collectedStyles"),Qa=literalMap([]),Xa=function(){function _AnimationBuilder(e,t){this.animationName=e,this._fnVarName=t+"_factory",this._statesMapVarName=t+"_states",this._statesMapVar=variable(this._statesMapVarName)}return _AnimationBuilder.prototype.visitAnimationStyles=function(e,t){var r=[];return t.isExpectingFirstStyleStep&&(r.push(qa),t.isExpectingFirstStyleStep=!1),e.styles.forEach(function(e){r.push(literalMap(I.keys(e).map(function(t){return[t,literal(e[t])]})))}),importExpr(resolveIdentifier($o.AnimationStyles)).instantiate([importExpr(resolveIdentifier($o.collectAndResolveStyles)).callFn([Ka,literalArr(r)])])},_AnimationBuilder.prototype.visitAnimationKeyframe=function(e,t){return importExpr(resolveIdentifier($o.AnimationKeyframe)).instantiate([literal(e.offset),e.styles.visit(this,t)])},_AnimationBuilder.prototype.visitAnimationStep=function(e,t){var r=this;if(t.endStateAnimateStep===e)return this._visitEndStateAnimation(e,t);var n=e.startingStyles.visit(this,t),i=e.keyframes.map(function(e){return e.visit(r,t)});return this._callAnimateMethod(e,n,literalArr(i),t)},_AnimationBuilder.prototype._visitEndStateAnimation=function(e,t){var r=this,n=e.startingStyles.visit(this,t),i=e.keyframes.map(function(e){return e.visit(r,t)}),o=importExpr(resolveIdentifier($o.balanceAnimationKeyframes)).callFn([Ka,Ga,literalArr(i)]);return this._callAnimateMethod(e,n,o,t)},_AnimationBuilder.prototype._callAnimateMethod=function(e,t,r,n){return n.totalTransitionTime+=e.duration+e.delay,Ba.callMethod("animate",[ja,t,r,literal(e.duration),literal(e.delay),literal(e.easing)])},_AnimationBuilder.prototype.visitAnimationSequence=function(e,t){var r=this,n=e.steps.map(function(e){return e.visit(r,t)});return importExpr(resolveIdentifier($o.AnimationSequencePlayer)).instantiate([literalArr(n)])},_AnimationBuilder.prototype.visitAnimationGroup=function(e,t){var r=this,n=e.steps.map(function(e){return e.visit(r,t)});return importExpr(resolveIdentifier($o.AnimationGroupPlayer)).instantiate([literalArr(n)])},_AnimationBuilder.prototype.visitAnimationStateDeclaration=function(e,t){var r={};_getStylesArray(e).forEach(function(e){I.forEach(e,function(e,t){r[t]=e})}),t.stateMap.registerState(e.stateName,r)},_AnimationBuilder.prototype.visitAnimationStateTransition=function(e,t){var r=e.animation.steps,n=r[r.length-1];_isEndStateAnimateStep(n)&&(t.endStateAnimateStep=n),t.totalTransitionTime=0,t.isExpectingFirstStyleStep=!0;var i=[];e.stateChanges.forEach(function(e){i.push(_compareToAnimationStateExpr(Wa,e.fromState).and(_compareToAnimationStateExpr(Ua,e.toState))),e.fromState!=Lo&&t.stateMap.registerState(e.fromState),e.toState!=Lo&&t.stateMap.registerState(e.toState)});var o=e.animation.visit(this,t),s=i.reduce(function(e,t){return e.or(t)}),a=za.equals(Oe).and(s),u=za.set(o).toStmt(),c=Ha.set(literal(t.totalTransitionTime)).toStmt();return new We(a,[u,c])},_AnimationBuilder.prototype.visitAnimationEntry=function(e,t){var r=this;e.stateDeclarations.forEach(function(e){return e.visit(r,t)}),t.stateMap.registerState(Fo,{});var n=[];n.push(Fa.callMethod("cancelActiveAnimation",[ja,literal(this.animationName),Ua.equals(literal(Bo))]).toStmt()),n.push(Ka.set(Qa).toDeclStmt()),n.push(za.set(Oe).toDeclStmt()),n.push(Ha.set(literal(0)).toDeclStmt()),n.push(La.set(this._statesMapVar.key(literal(Fo))).toDeclStmt()),n.push(qa.set(this._statesMapVar.key(Wa)).toDeclStmt()),n.push(new We(qa.equals(Oe),[qa.set(La).toStmt()])),n.push(Ga.set(this._statesMapVar.key(Ua)).toDeclStmt()),n.push(new We(Ga.equals(Oe),[Ga.set(La).toStmt()]));var i=importExpr(resolveIdentifier($o.renderStyles));return n.push(i.callFn([ja,Ba,importExpr(resolveIdentifier($o.clearStyles)).callFn([qa])]).toStmt()),e.stateTransitions.forEach(function(e){return n.push(e.visit(r,t))}),n.push(new We(za.equals(Oe),[za.set(importExpr(resolveIdentifier($o.NoOpAnimationPlayer)).instantiate([])).toStmt()])),n.push(za.callMethod("onDone",[fn([],[i.callFn([ja,Ba,importExpr(resolveIdentifier($o.prepareFinalAnimationStyles)).callFn([qa,Ga])]).toStmt()])]).toStmt()),n.push(Fa.callMethod("queueAnimation",[ja,literal(this.animationName),za,Ha,Wa,Ua]).toStmt()),fn([new _e(Fa.name,importType(resolveIdentifier($o.AppView),[Y])),new _e(ja.name,Y),new _e(Wa.name,Y),new _e(Ua.name,Y)],n)},_AnimationBuilder.prototype.build=function(e){var t=new Ja,r=e.visit(this,t).toDeclStmt(this._fnVarName),n=variable(this._fnVarName),i=[];I.forEach(t.stateMap.states,function(e,t){var r=Qa;if(isPresent(e)){var n=[];I.forEach(e,function(e,t){n.push([t,literal(e)])}),r=literalMap(n)}i.push([t,r])});var o=this._statesMapVar.set(literalMap(i)).toDeclStmt();return new Na(this.animationName,o,this._statesMapVarName,r,n)},_AnimationBuilder}(),Ja=function(){function _AnimationBuilderContext(){this.stateMap=new Za,this.endStateAnimateStep=null,this.isExpectingFirstStyleStep=!1,this.totalTransitionTime=0}return _AnimationBuilderContext}(),Za=function(){function _AnimationBuilderStateMap(){this._states={}}return Object.defineProperty(_AnimationBuilderStateMap.prototype,"states",{get:function(){return this._states},enumerable:!0,configurable:!0}),_AnimationBuilderStateMap.prototype.registerState=function(e,t){void 0===t&&(t=null);var r=this._states[e];isBlank(r)&&(this._states[e]=t)},_AnimationBuilderStateMap}(),$a=function(){function AnimationPropertyValidationOutput(e,t){this.outputs=e,this.errors=t}return AnimationPropertyValidationOutput}(),Ya=function(){function _AnimationTemplatePropertyVisitor(e){this.errors=[],this.outputs=[],this._animationRegistry=this._buildCompileAnimationLookup(e)}return _AnimationTemplatePropertyVisitor.prototype._buildCompileAnimationLookup=function(e){var t={};return e.forEach(function(e){t[e.name]=!0}),t},_AnimationTemplatePropertyVisitor.prototype._validateAnimationInputOutputPairs=function(e,r,n,i){var o=this,s={};e.forEach(function(e){if(e.type==t.PropertyBindingType.Animation){var r=e.name;isPresent(n[r])?s[r]=!0:o.errors.push(new Ia("Couldn't find an animation entry for "+r))}}),r.forEach(function(e){if("@"==e.name[0]){var t=parseAnimationOutputName(e.name.substr(1),o.errors),r=t.name,a=t.phase;n[r]?s[r]?o.outputs.push(t):o.errors.push(new Ia("Unable to listen on (@"+r+"."+a+") because the animation trigger [@"+r+"] isn't being used on the same element")):o.errors.push(new Ia("Couldn't find the corresponding "+(i?"host-level ":"")+"animation trigger definition for (@"+r+")"))}})},_AnimationTemplatePropertyVisitor.prototype.visitElement=function(e,t){this._validateAnimationInputOutputPairs(e.inputs,e.outputs,this._animationRegistry,!1);var r=e.directives.find(function(e){return e.directive.isComponent});if(r){var n=ka.get(r.directive);n&&this._validateAnimationInputOutputPairs(r.hostProperties,r.hostEvents,this._buildCompileAnimationLookup(n),!0)}templateVisitAll(this,e.children)},_AnimationTemplatePropertyVisitor.prototype.visitEmbeddedTemplate=function(e,t){templateVisitAll(this,e.children)},_AnimationTemplatePropertyVisitor.prototype.visitEvent=function(e,t){},_AnimationTemplatePropertyVisitor.prototype.visitBoundText=function(e,t){},_AnimationTemplatePropertyVisitor.prototype.visitText=function(e,t){},_AnimationTemplatePropertyVisitor.prototype.visitNgContent=function(e,t){},_AnimationTemplatePropertyVisitor.prototype.visitAttr=function(e,t){},_AnimationTemplatePropertyVisitor.prototype.visitDirective=function(e,t){},_AnimationTemplatePropertyVisitor.prototype.visitReference=function(e,t){},_AnimationTemplatePropertyVisitor.prototype.visitVariable=function(e,t){},_AnimationTemplatePropertyVisitor.prototype.visitDirectiveProperty=function(e,t){},_AnimationTemplatePropertyVisitor.prototype.visitElementProperty=function(e,t){},_AnimationTemplatePropertyVisitor}(),eu=function(){function _ValueOutputAstTransformer(){}return _ValueOutputAstTransformer.prototype.visitArray=function(e,t){var r=this;return literalArr(e.map(function(e){return visitValue(e,r,null)}),t)},_ValueOutputAstTransformer.prototype.visitStringMap=function(e,t){var r=this,n=[];return I.forEach(e,function(e,t){n.push([t,visitValue(e,r,null)])}),literalMap(n,t)},_ValueOutputAstTransformer.prototype.visitPrimitive=function(e,t){return literal(e,t)},_ValueOutputAstTransformer.prototype.visitOther=function(e,t){if(e instanceof ht)return importExpr(e);if(e instanceof oe)return e;throw new Error("Illegal state: Don't now how to compile value "+e)},_ValueOutputAstTransformer}(),tu=function(){function _DebugState(e,t){this.nodeIndex=e,this.sourceAst=t}return _DebugState}(),ru=new tu(null,null),nu=function(){function CompileMethod(e){this._view=e,this._newState=ru,this._currState=ru,this._bodyStatements=[],this._debugEnabled=this._view.genConfig.genDebugInfo}return CompileMethod.prototype._updateDebugContextIfNeeded=function(){if(this._newState.nodeIndex!==this._currState.nodeIndex||this._newState.sourceAst!==this._currState.sourceAst){var e=this._updateDebugContext(this._newState);isPresent(e)&&this._bodyStatements.push(e.toStmt())}},CompileMethod.prototype._updateDebugContext=function(e){if(this._currState=this._newState=e,this._debugEnabled){var t=isPresent(e.sourceAst)?e.sourceAst.sourceSpan.start:null;return xe.callMethod("debug",[literal(e.nodeIndex),isPresent(t)?literal(t.line):Oe,isPresent(t)?literal(t.col):Oe])}return null},CompileMethod.prototype.resetDebugInfoExpr=function(e,t){var r=this._updateDebugContext(new tu(e,t));return isPresent(r)?r:Oe},CompileMethod.prototype.resetDebugInfo=function(e,t){this._newState=new tu(e,t)},CompileMethod.prototype.addStmt=function(e){this._updateDebugContextIfNeeded(),this._bodyStatements.push(e)},CompileMethod.prototype.addStmts=function(e){this._updateDebugContextIfNeeded(),R.addAll(this._bodyStatements,e)},CompileMethod.prototype.finish=function(){return this._bodyStatements},CompileMethod.prototype.isEmpty=function(){return 0===this._bodyStatements.length},CompileMethod}(),iu=function(){function ViewQueryValues(e,t){this.view=e,this.values=t}return ViewQueryValues}(),ou=function(){function CompileQuery(e,t,r,n){this.meta=e,this.queryList=t,this.ownerDirectiveExpression=r,this.view=n,this._values=new iu(n,[])}return CompileQuery.prototype.addValue=function(e,t){for(var r=t,n=[];isPresent(r)&&r!==this.view;){var i=r.declarationElement;n.unshift(i),r=i.view}var o=getPropertyInView(this.queryList,t,this.view),s=this._values;n.forEach(function(e){var t=s.values.length>0?s.values[s.values.length-1]:null;if(t instanceof iu&&t.view===e.embeddedView)s=t;else{var r=new iu(e.embeddedView,[]);s.values.push(r),s=r}}),s.values.push(e),n.length>0&&t.dirtyParentQueriesMethod.addStmt(o.callMethod("setDirty",[]).toStmt())},CompileQuery.prototype._isStatic=function(){return!this._values.values.some(function(e){return e instanceof iu})},CompileQuery.prototype.afterChildren=function(e,t){var r=createQueryValues(this._values),n=[this.queryList.callMethod("reset",[literalArr(r)]).toStmt()];if(isPresent(this.ownerDirectiveExpression)){var i=this.meta.first?this.queryList.prop("first"):this.queryList;n.push(this.ownerDirectiveExpression.prop(this.meta.propertyName).set(i).toStmt())}this.meta.first||n.push(this.queryList.callMethod("notifyOnChanges",[]).toStmt()),this.meta.first&&this._isStatic()?e.addStmts(n):t.addStmt(new We(this.queryList.prop("dirty"),n))},CompileQuery}(),su=function(){function ViewTypeEnum(){}return ViewTypeEnum.fromValue=function(e){var t=resolveIdentifier($o.ViewType);switch(e){case ro.HOST:return _enumExpression(t,"HOST");case ro.COMPONENT:return _enumExpression(t,"COMPONENT");case ro.EMBEDDED:return _enumExpression(t,"EMBEDDED");default:throw Error("Inavlid ViewType value: "+e)}},ViewTypeEnum}(),au=function(){function ViewEncapsulationEnum(){}return ViewEncapsulationEnum.fromValue=function(e){var t=resolveIdentifier($o.ViewEncapsulation);switch(e){case r.ViewEncapsulation.Emulated:return _enumExpression(t,"Emulated");case r.ViewEncapsulation.Native:return _enumExpression(t,"Native");case r.ViewEncapsulation.None:return _enumExpression(t,"None");default:throw Error("Inavlid ViewEncapsulation value: "+e)}},ViewEncapsulationEnum}(),uu=function(){function ChangeDetectorStatusEnum(){}return ChangeDetectorStatusEnum.fromValue=function(e){var t=resolveIdentifier($o.ChangeDetectorStatus);switch(e){case Gi.CheckOnce:return _enumExpression(t,"CheckOnce");case Gi.Checked:return _enumExpression(t,"Checked");case Gi.CheckAlways:return _enumExpression(t,"CheckAlways");case Gi.Detached:return _enumExpression(t,"Detached");case Gi.Errored:return _enumExpression(t,"Errored");case Gi.Destroyed:return _enumExpression(t,"Destroyed");default:throw Error("Inavlid ChangeDetectorStatus value: "+e)}},ChangeDetectorStatusEnum}(),cu=function(){function ViewConstructorVars(){}return ViewConstructorVars.viewUtils=variable("viewUtils"),ViewConstructorVars.parentInjector=variable("parentInjector"),ViewConstructorVars.declarationEl=variable("declarationEl"),ViewConstructorVars;
}(),lu=function(){function ViewProperties(){}return ViewProperties.renderer=xe.prop("renderer"),ViewProperties.projectableNodes=xe.prop("projectableNodes"),ViewProperties.viewUtils=xe.prop("viewUtils"),ViewProperties}(),pu=function(){function EventHandlerVars(){}return EventHandlerVars.event=variable("$event"),EventHandlerVars}(),hu=function(){function InjectMethodVars(){}return InjectMethodVars.token=variable("token"),InjectMethodVars.requestNodeIndex=variable("requestNodeIndex"),InjectMethodVars.notFoundResult=variable("notFoundResult"),InjectMethodVars}(),fu=function(){function DetectChangesVars(){}return DetectChangesVars.throwOnChange=variable("throwOnChange"),DetectChangesVars.changes=variable("changes"),DetectChangesVars.changed=variable("changed"),DetectChangesVars.valUnwrapper=variable("valUnwrapper"),DetectChangesVars}(),du=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},mu=function(){function CompileNode(e,t,r,n,i){this.parent=e,this.view=t,this.nodeIndex=r,this.renderNode=n,this.sourceAst=i}return CompileNode.prototype.isNull=function(){return isBlank(this.renderNode)},CompileNode.prototype.isRootElement=function(){return this.view!=this.parent.view},CompileNode}(),vu=function(e){function CompileElement(t,r,n,i,o,s,a,u,c,l,p){var h=this;e.call(this,t,r,n,i,o),this.component=s,this._directives=a,this._resolvedProvidersArray=u,this.hasViewContainer=c,this.hasEmbeddedView=l,this._compViewExpr=null,this.instances=new Map,this._queryCount=0,this._queries=new Map,this._componentConstructorViewQueryLists=[],this.contentNodesByNgContentIndex=null,this.referenceTokens={},p.forEach(function(e){return h.referenceTokens[e.name]=e.value}),this.elementRef=importExpr(resolveIdentifier($o.ElementRef)).instantiate([this.renderNode]),this.instances.set(resolveIdentifierToken($o.ElementRef).reference,this.elementRef),this.injector=xe.callMethod("injector",[literal(this.nodeIndex)]),this.instances.set(resolveIdentifierToken($o.Injector).reference,this.injector),this.instances.set(resolveIdentifierToken($o.Renderer).reference,xe.prop("renderer")),(this.hasViewContainer||this.hasEmbeddedView||isPresent(this.component))&&this._createAppElement()}return du(CompileElement,e),CompileElement.createNull=function(){return new CompileElement(null,null,null,null,null,null,[],[],(!1),(!1),[])},CompileElement.prototype._createAppElement=function(){var e="_appEl_"+this.nodeIndex,t=this.isRootElement()?null:this.parent.nodeIndex;this.view.fields.push(new je(e,importType(resolveIdentifier($o.AppElement)),[pe.Private]));var r=xe.prop(e).set(importExpr(resolveIdentifier($o.AppElement)).instantiate([literal(this.nodeIndex),literal(t),xe,this.renderNode])).toStmt();this.view.createMethod.addStmt(r),this.appElement=xe.prop(e),this.instances.set(resolveIdentifierToken($o.AppElement).reference,this.appElement)},CompileElement.prototype.createComponentFactoryResolver=function(e){if(e&&0!==e.length){var r=importExpr(resolveIdentifier($o.CodegenComponentFactoryResolver)).instantiate([literalArr(e.map(function(e){return importExpr(e)})),injectFromViewParentInjector(resolveIdentifierToken($o.ComponentFactoryResolver),!1)]),n=new dt({token:resolveIdentifierToken($o.ComponentFactoryResolver),useValue:r});this._resolvedProvidersArray.unshift(new _(n.token,(!1),(!0),[n],t.ProviderAstType.PrivateService,[],this.sourceAst.sourceSpan))}},CompileElement.prototype.setComponentView=function(e){this._compViewExpr=e,this.contentNodesByNgContentIndex=R.createFixedSize(this.component.template.ngContentSelectors.length);for(var t=0;t<this.contentNodesByNgContentIndex.length;t++)this.contentNodesByNgContentIndex[t]=[]},CompileElement.prototype.setEmbeddedView=function(e){if(this.embeddedView=e,isPresent(e)){var r=importExpr(resolveIdentifier($o.TemplateRef_)).instantiate([this.appElement,this.embeddedView.viewFactory]),n=new dt({token:resolveIdentifierToken($o.TemplateRef),useValue:r});this._resolvedProvidersArray.unshift(new _(n.token,(!1),(!0),[n],t.ProviderAstType.Builtin,[],this.sourceAst.sourceSpan))}},CompileElement.prototype.beforeChildren=function(){var e=this;this.hasViewContainer&&this.instances.set(resolveIdentifierToken($o.ViewContainerRef).reference,this.appElement.prop("vcRef")),this._resolvedProviders=new Map,this._resolvedProvidersArray.forEach(function(t){return e._resolvedProviders.set(t.token.reference,t)}),O.values(this._resolvedProviders).forEach(function(t){var r=t.providers.map(function(r){if(isPresent(r.useExisting))return e._getDependency(t.providerType,new ft({token:r.useExisting}));if(isPresent(r.useFactory)){var n=isPresent(r.deps)?r.deps:r.useFactory.diDeps,i=n.map(function(r){return e._getDependency(t.providerType,r)});return importExpr(r.useFactory).callFn(i)}if(isPresent(r.useClass)){var n=isPresent(r.deps)?r.deps:r.useClass.diDeps,i=n.map(function(r){return e._getDependency(t.providerType,r)});return importExpr(r.useClass).instantiate(i,importType(r.useClass))}return convertValueToOutputAst(r.useValue)}),n="_"+t.token.name+"_"+e.nodeIndex+"_"+e.instances.size,i=createProviderProperty(n,t,r,t.multiProvider,t.eager,e);e.instances.set(t.token.reference,i)});for(var t=0;t<this._directives.length;t++){var r=this._directives[t],n=this.instances.get(identifierToken(r.type).reference);r.queries.forEach(function(t){e._addQuery(t,n)})}var i=[];if(O.values(this._resolvedProviders).forEach(function(t){var r=e._getQueriesFor(t.token);R.addAll(i,r.map(function(e){return new yu(e,t.token)}))}),I.forEach(this.referenceTokens,function(t,r){var n,o=e.referenceTokens[r];n=isPresent(o)?e.instances.get(o.reference):e.renderNode,e.view.locals.set(r,n);var s=new vt({value:r});R.addAll(i,e._getQueriesFor(s).map(function(e){return new yu(e,s)}))}),i.forEach(function(t){var r;if(isPresent(t.read.identifier))r=e.instances.get(t.read.reference);else{var n=e.referenceTokens[t.read.value];r=isPresent(n)?e.instances.get(n.reference):e.elementRef}isPresent(r)&&t.query.addValue(r,e.view)}),isPresent(this.component)){var o=isPresent(this.component)?literalArr(this._componentConstructorViewQueryLists):Oe,s=isPresent(this.getComponent())?this.getComponent():Oe;this.view.createMethod.addStmt(this.appElement.callMethod("initComponent",[s,o,this._compViewExpr]).toStmt())}},CompileElement.prototype.afterChildren=function(e){var r=this;O.values(this._resolvedProviders).forEach(function(n){var i=r.instances.get(n.token.reference),o=n.providerType===t.ProviderAstType.PrivateService?0:e;r.view.injectorGetMethod.addStmt(createInjectInternalCondition(r.nodeIndex,o,n,i))}),O.values(this._queries).forEach(function(e){return e.forEach(function(e){return e.afterChildren(r.view.createMethod,r.view.updateContentQueriesMethod)})})},CompileElement.prototype.addContentNode=function(e,t){this.contentNodesByNgContentIndex[e].push(t)},CompileElement.prototype.getComponent=function(){return isPresent(this.component)?this.instances.get(identifierToken(this.component.type).reference):null},CompileElement.prototype.getProviderTokens=function(){return O.values(this._resolvedProviders).map(function(e){return createDiTokenExpression(e.token)})},CompileElement.prototype._getQueriesFor=function(e){for(var t,r=[],n=this,i=0;!n.isNull();)t=n._queries.get(e.reference),isPresent(t)&&R.addAll(r,t.filter(function(e){return e.meta.descendants||i<=1})),n._directives.length>0&&i++,n=n.parent;return t=this.view.componentView.viewQueries.get(e.reference),isPresent(t)&&R.addAll(r,t),r},CompileElement.prototype._addQuery=function(e,t){var r="_query_"+e.selectors[0].name+"_"+this.nodeIndex+"_"+this._queryCount++,n=createQueryList(e,t,r,this.view),i=new ou(e,n,t,this.view);return addQueryToTokenMap(this._queries,i),i},CompileElement.prototype._getLocalDependency=function(e,r){var n=null;if(isBlank(n)&&isPresent(r.query)&&(n=this._addQuery(r.query,null).queryList),isBlank(n)&&isPresent(r.viewQuery)&&(n=createQueryList(r.viewQuery,null,"_viewQuery_"+r.viewQuery.selectors[0].name+"_"+this.nodeIndex+"_"+this._componentConstructorViewQueryLists.length,this.view),this._componentConstructorViewQueryLists.push(n)),isPresent(r.token)){if(isBlank(n)&&r.token.reference===resolveIdentifierToken($o.ChangeDetectorRef).reference)return e===t.ProviderAstType.Component?this._compViewExpr.prop("ref"):getPropertyInView(xe.prop("ref"),this.view,this.view.componentView);if(isBlank(n)){var i=this._resolvedProviders.get(r.token.reference);if(i&&(e===t.ProviderAstType.Directive||e===t.ProviderAstType.PublicService)&&i.providerType===t.ProviderAstType.PrivateService)return null;n=this.instances.get(r.token.reference)}}return n},CompileElement.prototype._getDependency=function(e,r){var n=this,i=null;for(r.isValue&&(i=literal(r.value)),isBlank(i)&&!r.isSkipSelf&&(i=this._getLocalDependency(e,r));isBlank(i)&&!n.parent.isNull();)n=n.parent,i=n._getLocalDependency(t.ProviderAstType.PublicService,new ft({token:r.token}));return isBlank(i)&&(i=injectFromViewParentInjector(r.token,r.isOptional)),isBlank(i)&&(i=Oe),getPropertyInView(i,this.view,n.view)},CompileElement}(mu),yu=function(){function _QueryWithRead(e,t){this.query=e,this.read=isPresent(e.meta.read)?e.meta.read:t}return _QueryWithRead}(),bu=function(){function CompilePipe(e,t){var r=this;this.view=e,this.meta=t,this._purePipeProxyCount=0,this.instance=xe.prop("_pipe_"+t.name+"_"+e.pipeCount++);var n=this.meta.type.diDeps.map(function(e){return e.token.reference===resolveIdentifierToken($o.ChangeDetectorRef).reference?getPropertyInView(xe.prop("ref"),r.view,r.view.componentView):injectFromViewParentInjector(e.token,!1)});this.view.fields.push(new je(this.instance.name,importType(this.meta.type))),this.view.createMethod.resetDebugInfo(null,null),this.view.createMethod.addStmt(xe.prop(this.instance.name).set(importExpr(this.meta.type).instantiate(n)).toStmt())}return CompilePipe.call=function(e,t,r){var n,i=e.componentView,o=_findPipeMeta(i,t);return o.pure?(n=i.purePipes.get(t),isBlank(n)&&(n=new CompilePipe(i,o),i.purePipes.set(t,n),i.pipes.push(n))):(n=new CompilePipe(e,o),e.pipes.push(n)),n._call(e,r)},Object.defineProperty(CompilePipe.prototype,"pure",{get:function(){return this.meta.pure},enumerable:!0,configurable:!0}),CompilePipe.prototype._call=function(e,t){if(this.meta.pure){var r=xe.prop(this.instance.name+"_"+this._purePipeProxyCount++),n=getPropertyInView(this.instance,e,this.view);return createPureProxy(n.prop("transform").callMethod(se.Bind,[n]),t.length,r,e),importExpr(resolveIdentifier($o.castByValue)).callFn([r,n.prop("transform")]).callFn(t)}return getPropertyInView(this.instance,e,this.view).callMethod("transform",t)},CompilePipe}(),gu=function(){function CompileView(e,t,r,n,i,o,s,a){var u=this;this.component=e,this.genConfig=t,this.pipeMetas=r,this.styles=n,this.animations=i,this.viewIndex=o,this.declarationElement=s,this.templateVariableBindings=a,this.nodes=[],this.rootNodesOrAppElements=[],this.bindings=[],this.classStatements=[],this.eventHandlerMethods=[],this.fields=[],this.getters=[],this.disposables=[],this.subscriptions=[],this.purePipes=new Map,this.pipes=[],this.locals=new Map,this.literalArrayCount=0,this.literalMapCount=0,this.pipeCount=0,this.createMethod=new nu(this),this.animationBindingsMethod=new nu(this),this.injectorGetMethod=new nu(this),this.updateContentQueriesMethod=new nu(this),this.dirtyParentQueriesMethod=new nu(this),this.updateViewQueriesMethod=new nu(this),this.detectChangesInInputsMethod=new nu(this),this.detectChangesRenderPropertiesMethod=new nu(this),this.afterContentLifecycleCallbacksMethod=new nu(this),this.afterViewLifecycleCallbacksMethod=new nu(this),this.destroyMethod=new nu(this),this.detachMethod=new nu(this),this.viewType=getViewType(e,o),this.className="_View_"+e.type.name+o,this.classType=importType(new ht({name:this.className})),this.viewFactory=variable(getViewFactoryName(e,o)),this.viewType===ro.COMPONENT||this.viewType===ro.HOST?this.componentView=this:this.componentView=this.declarationElement.view.componentView,this.componentContext=getPropertyInView(xe.prop("context"),this,this.componentView);var c=new Map;if(this.viewType===ro.COMPONENT){var l=xe.prop("context");R.forEachWithIndex(this.component.viewQueries,function(e,t){var r="_viewQuery_"+e.selectors[0].name+"_"+t,n=createQueryList(e,l,r,u),i=new ou(e,n,l,u);addQueryToTokenMap(c,i)});var p=0;this.component.type.diDeps.forEach(function(e){if(isPresent(e.viewQuery)){var t=xe.prop("declarationAppElement").prop("componentConstructorViewQueries").key(literal(p++)),r=new ou(e.viewQuery,t,null,u);addQueryToTokenMap(c,r)}})}this.viewQueries=c,a.forEach(function(e){u.locals.set(e[1],xe.prop("context").prop(e[0]))}),this.declarationElement.isNull()||this.declarationElement.setEmbeddedView(this)}return CompileView.prototype.callPipe=function(e,t,r){return bu.call(this,e,[t].concat(r))},CompileView.prototype.getLocal=function(e){if(e==pu.event.name)return pu.event;for(var t=this,r=t.locals.get(e);isBlank(r)&&isPresent(t.declarationElement.view);)t=t.declarationElement.view,r=t.locals.get(e);return isPresent(r)?getPropertyInView(r,this,t):null},CompileView.prototype.createLiteralArray=function(e){if(0===e.length)return importExpr(resolveIdentifier($o.EMPTY_ARRAY));for(var t=xe.prop("_arr_"+this.literalArrayCount++),r=[],n=[],i=0;i<e.length;i++){var o="p"+i;r.push(new _e(o)),n.push(variable(o))}return createPureProxy(fn(r,[new De(literalArr(n))],new Z(Y)),e.length,t,this),t.callFn(e)},CompileView.prototype.createLiteralMap=function(e){if(0===e.length)return importExpr(resolveIdentifier($o.EMPTY_MAP));for(var t=xe.prop("_map_"+this.literalMapCount++),r=[],n=[],i=[],o=0;o<e.length;o++){var s="p"+o;r.push(new _e(s)),n.push([e[o][0],variable(s)]),i.push(e[o][1])}return createPureProxy(fn(r,[new De(literalMap(n))],new $(Y)),e.length,t,this),t.callFn(i)},CompileView.prototype.afterNodes=function(){var e=this;O.values(this.viewQueries).forEach(function(t){return t.forEach(function(t){return t.afterChildren(e.createMethod,e.updateViewQueriesMethod)})})},CompileView}(),_u=function(){function CompileBinding(e,t){this.node=e,this.sourceAst=t}return CompileBinding}(),Su=function(){function ExpressionWithWrappedValueInfo(e,t,r){this.expression=e,this.needsValueUnwrapper=t,this.temporaryCount=r}return ExpressionWithWrappedValueInfo}();!function(e){e[e.Statement=0]="Statement",e[e.Expression=1]="Expression"}(Ps||(Ps={}));var wu,Eu=function(){function _AstToIrVisitor(e,t,r,n){this._nameResolver=e,this._implicitReceiver=t,this._valueUnwrapper=r,this.bindingIndex=n,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.needsValueUnwrapper=!1,this.temporaryCount=0}return _AstToIrVisitor.prototype.visitBinary=function(e,t){var r;switch(e.operation){case"+":r=Q.Plus;break;case"-":r=Q.Minus;break;case"*":r=Q.Multiply;break;case"/":r=Q.Divide;break;case"%":r=Q.Modulo;break;case"&&":r=Q.And;break;case"||":r=Q.Or;break;case"==":r=Q.Equals;break;case"!=":r=Q.NotEquals;break;case"===":r=Q.Identical;break;case"!==":r=Q.NotIdentical;break;case"<":r=Q.Lower;break;case">":r=Q.Bigger;break;case"<=":r=Q.LowerEquals;break;case">=":r=Q.BiggerEquals;break;default:throw new Error("Unsupported operation "+e.operation)}return convertToStatementIfNeeded(t,new we(r,this.visit(e.left,Ps.Expression),this.visit(e.right,Ps.Expression)))},_AstToIrVisitor.prototype.visitChain=function(e,t){return ensureStatementMode(t,e),this.visitAll(e.expressions,t)},_AstToIrVisitor.prototype.visitConditional=function(e,t){var r=this.visit(e.condition,Ps.Expression);return convertToStatementIfNeeded(t,r.conditional(this.visit(e.trueExp,Ps.Expression),this.visit(e.falseExp,Ps.Expression)))},_AstToIrVisitor.prototype.visitPipe=function(e,t){var r=this.visit(e.exp,Ps.Expression),n=this.visitAll(e.args,Ps.Expression),i=this._nameResolver.callPipe(e.name,r,n);return this.needsValueUnwrapper=!0,convertToStatementIfNeeded(t,this._valueUnwrapper.callMethod("unwrap",[i]))},_AstToIrVisitor.prototype.visitFunctionCall=function(e,t){return convertToStatementIfNeeded(t,this.visit(e.target,Ps.Expression).callFn(this.visitAll(e.args,Ps.Expression)))},_AstToIrVisitor.prototype.visitImplicitReceiver=function(e,t){return ensureExpressionMode(t,e),this._implicitReceiver},_AstToIrVisitor.prototype.visitInterpolation=function(e,t){ensureExpressionMode(t,e);for(var r=[literal(e.expressions.length)],n=0;n<e.strings.length-1;n++)r.push(literal(e.strings[n])),r.push(this.visit(e.expressions[n],Ps.Expression));return r.push(literal(e.strings[e.strings.length-1])),importExpr(resolveIdentifier($o.interpolate)).callFn(r)},_AstToIrVisitor.prototype.visitKeyedRead=function(e,t){return convertToStatementIfNeeded(t,this.visit(e.obj,Ps.Expression).key(this.visit(e.key,Ps.Expression)))},_AstToIrVisitor.prototype.visitKeyedWrite=function(e,t){var r=this.visit(e.obj,Ps.Expression),n=this.visit(e.key,Ps.Expression),i=this.visit(e.value,Ps.Expression);return convertToStatementIfNeeded(t,r.key(n).set(i))},_AstToIrVisitor.prototype.visitLiteralArray=function(e,t){return convertToStatementIfNeeded(t,this._nameResolver.createLiteralArray(this.visitAll(e.expressions,t)))},_AstToIrVisitor.prototype.visitLiteralMap=function(e,t){for(var r=[],n=0;n<e.keys.length;n++)r.push([e.keys[n],this.visit(e.values[n],Ps.Expression)]);return convertToStatementIfNeeded(t,this._nameResolver.createLiteralMap(r))},_AstToIrVisitor.prototype.visitLiteralPrimitive=function(e,t){return convertToStatementIfNeeded(t,literal(e.value))},_AstToIrVisitor.prototype.visitMethodCall=function(e,t){var r=this.leftMostSafeNode(e);if(r)return this.convertSafeAccess(e,r,t);var n=this.visitAll(e.args,Ps.Expression),i=null,o=this.visit(e.receiver,Ps.Expression);if(o===this._implicitReceiver){var s=this._nameResolver.getLocal(e.name);isPresent(s)&&(i=s.callFn(n))}return isBlank(i)&&(i=o.callMethod(e.name,n)),convertToStatementIfNeeded(t,i)},_AstToIrVisitor.prototype.visitPrefixNot=function(e,t){return convertToStatementIfNeeded(t,not(this.visit(e.expression,Ps.Expression)))},_AstToIrVisitor.prototype.visitPropertyRead=function(e,t){var r=this.leftMostSafeNode(e);if(r)return this.convertSafeAccess(e,r,t);var n=null,i=this.visit(e.receiver,Ps.Expression);return i===this._implicitReceiver&&(n=this._nameResolver.getLocal(e.name)),isBlank(n)&&(n=i.prop(e.name)),convertToStatementIfNeeded(t,n)},_AstToIrVisitor.prototype.visitPropertyWrite=function(e,t){var r=this.visit(e.receiver,Ps.Expression);if(r===this._implicitReceiver){var n=this._nameResolver.getLocal(e.name);if(isPresent(n))throw new Error("Cannot assign to a reference or variable!")}return convertToStatementIfNeeded(t,r.prop(e.name).set(this.visit(e.value,Ps.Expression)))},_AstToIrVisitor.prototype.visitSafePropertyRead=function(e,t){return this.convertSafeAccess(e,this.leftMostSafeNode(e),t)},_AstToIrVisitor.prototype.visitSafeMethodCall=function(e,t){return this.convertSafeAccess(e,this.leftMostSafeNode(e),t)},_AstToIrVisitor.prototype.visitAll=function(e,t){var r=this;return e.map(function(e){return r.visit(e,t)})},_AstToIrVisitor.prototype.visitQuote=function(e,t){throw new Error("Quotes are not supported for evaluation!")},_AstToIrVisitor.prototype.visit=function(e,t){var r=this._resultMap.get(e);return r?r:(this._nodeMap.get(e)||e).visit(this,t)},_AstToIrVisitor.prototype.convertSafeAccess=function(e,t,r){var n,i=this.visit(t.receiver,r);this.needsTemporary(t.receiver)&&(n=this.allocateTemporary(),i=n.set(i),this._resultMap.set(t.receiver,n));var o=i.isBlank();t instanceof Qt?this._nodeMap.set(t,new Kt(t.span,t.receiver,t.name,t.args)):this._nodeMap.set(t,new Dt(t.span,t.receiver,t.name));var s=this.visit(e,r);return this._nodeMap["delete"](t),n&&this.releaseTemporary(n),o.conditional(literal(null),s)},_AstToIrVisitor.prototype.leftMostSafeNode=function(e){var t=this,r=function(e,r){return(t._nodeMap.get(r)||r).visit(e)};return e.visit({visitBinary:function(e){return null},visitChain:function(e){return null},visitConditional:function(e){return null},visitFunctionCall:function(e){return null},visitImplicitReceiver:function(e){return null},visitInterpolation:function(e){return null},visitKeyedRead:function(e){return r(this,e.obj)},visitKeyedWrite:function(e){return null},visitLiteralArray:function(e){return null},visitLiteralMap:function(e){return null},visitLiteralPrimitive:function(e){return null},visitMethodCall:function(e){return r(this,e.receiver)},visitPipe:function(e){return null},visitPrefixNot:function(e){return null},visitPropertyRead:function(e){return r(this,e.receiver)},visitPropertyWrite:function(e){return null},visitQuote:function(e){return null},visitSafeMethodCall:function(e){return r(this,e.receiver)||e},visitSafePropertyRead:function(e){return r(this,e.receiver)||e}})},_AstToIrVisitor.prototype.needsTemporary=function(e){var t=this,r=function(e,r){return r&&(t._nodeMap.get(r)||r).visit(e)},n=function(e,t){return t.some(function(t){return r(e,t)})};return e.visit({visitBinary:function(e){return r(this,e.left)||r(this,e.right)},visitChain:function(e){return!1},visitConditional:function(e){return r(this,e.condition)||r(this,e.trueExp)||r(this,e.falseExp)},visitFunctionCall:function(e){return!0},visitImplicitReceiver:function(e){return!1},visitInterpolation:function(e){return n(this,e.expressions)},visitKeyedRead:function(e){return!1},visitKeyedWrite:function(e){return!1},visitLiteralArray:function(e){return!0},visitLiteralMap:function(e){return!0},visitLiteralPrimitive:function(e){return!1},visitMethodCall:function(e){return!0},visitPipe:function(e){return!0},visitPrefixNot:function(e){return r(this,e.expression)},visitPropertyRead:function(e){return!1},visitPropertyWrite:function(e){return!1},visitQuote:function(e){return!1},visitSafeMethodCall:function(e){return!0},visitSafePropertyRead:function(e){return!1}})},_AstToIrVisitor.prototype.allocateTemporary=function(){var e=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new ae(temporaryName(this.bindingIndex,e))},_AstToIrVisitor.prototype.releaseTemporary=function(e){if(this._currentTemporary--,e.name!=temporaryName(this.bindingIndex,this._currentTemporary))throw new Error("Temporary "+e.name+" released out of order")},_AstToIrVisitor}(),Cu=function(){function CompileElementAnimationOutput(e,t){this.listener=e,this.output=t}return CompileElementAnimationOutput}(),Pu=function(){function CompileEventListener(e,t,r,n){this.compileElement=e,this.eventTarget=t,this.eventName=r,this._hasComponentHostListener=!1,this._actionResultExprs=[],this._method=new nu(e.view),this._methodName="_handle_"+santitizeEventName(r)+"_"+e.nodeIndex+"_"+n,this._eventParam=new _e(pu.event.name,importType(this.compileElement.view.genConfig.renderTypes.renderEvent))}return CompileEventListener.getOrCreate=function(e,t,r,n){var i=n.find(function(e){return e.eventTarget==t&&e.eventName==r});return isBlank(i)&&(i=new CompileEventListener(e,t,r,n.length),n.push(i)),i},Object.defineProperty(CompileEventListener.prototype,"methodName",{get:function(){return this._methodName},enumerable:!0,configurable:!0}),CompileEventListener.prototype.addAction=function(e,t,r){isPresent(t)&&t.isComponent&&(this._hasComponentHostListener=!0),this._method.resetDebugInfo(this.compileElement.nodeIndex,e);var n=isPresent(r)?r:this.compileElement.view.componentContext,i=convertCdStatementToIr(this.compileElement.view,n,e.handler,this.compileElement.nodeIndex),o=i.length-1;if(o>=0){var s=i[o],a=convertStmtIntoExpression(s),u=variable("pd_"+this._actionResultExprs.length);this._actionResultExprs.push(u),isPresent(a)&&(i[o]=u.set(a.cast(Y).notIdentical(literal(!1))).toDeclStmt(null,[pe.Final]))}this._method.addStmts(i)},CompileEventListener.prototype.finishMethod=function(){var e=this._hasComponentHostListener?this.compileElement.appElement.prop("componentView"):xe,t=literal(!0);this._actionResultExprs.forEach(function(e){t=t.and(e)});var r=[e.callMethod("markPathToRootAsCheckOnce",[]).toStmt()].concat(this._method.finish()).concat([new De(t)]);this.compileElement.view.eventHandlerMethods.push(new Le(this._methodName,[this._eventParam],r,ee,[pe.Private]))},CompileEventListener.prototype.listenToRenderer=function(){var e,t=xe.callMethod("eventHandler",[xe.prop(this._methodName).callMethod(se.Bind,[xe])]);e=isPresent(this.eventTarget)?lu.renderer.callMethod("listenGlobal",[literal(this.eventTarget),literal(this.eventName),t]):lu.renderer.callMethod("listen",[this.compileElement.renderNode,literal(this.eventName),t]);var r=variable("disposable_"+this.compileElement.view.disposables.length);this.compileElement.view.disposables.push(r),this.compileElement.view.createMethod.addStmt(r.set(e).toDeclStmt(ne,[pe.Private]))},CompileEventListener.prototype.listenToAnimation=function(e){var t=xe.callMethod("eventHandler",[xe.prop(this._methodName).callMethod(se.Bind,[xe])]),r=xe.callMethod("registerAnimationOutput",[this.compileElement.renderNode,importExpr(resolveIdentifier($o.AnimationOutput)).instantiate([literal(e.name),literal(e.phase)]),t]).toStmt();this.compileElement.view.createMethod.addStmt(r)},CompileEventListener.prototype.listenToDirective=function(e,t){var r=variable("subscription_"+this.compileElement.view.subscriptions.length);this.compileElement.view.subscriptions.push(r);var n=xe.callMethod("eventHandler",[xe.prop(this._methodName).callMethod(se.Bind,[xe])]);this.compileElement.view.createMethod.addStmt(r.set(e.prop(t).callMethod(se.SubscribeObservable,[n])).toDeclStmt(null,[pe.Final]))},CompileEventListener}(),Tu=xe.prop("numberOfChecks").identical(new me(0)),xu=not(fu.throwOnChange),Au=function(){function ViewBinderVisitor(e,t){var r=this;this.view=e,this.animationOutputs=t,this._nodeIndex=0,this._animationOutputsMap={},t.forEach(function(e){r._animationOutputsMap[e.fullPropertyName]=e})}return ViewBinderVisitor.prototype.visitBoundText=function(e,t){var r=this.view.nodes[this._nodeIndex++];return bindRenderText(e,r,this.view),null},ViewBinderVisitor.prototype.visitText=function(e,t){return this._nodeIndex++,null},ViewBinderVisitor.prototype.visitNgContent=function(e,t){return null},ViewBinderVisitor.prototype.visitElement=function(e,t){var r=this,n=this.view.nodes[this._nodeIndex++],i=[],o=[];return collectEventListeners(e.outputs,e.directives,n).forEach(function(e){if("@"==e.eventName[0]){var t=e.eventName.substr(1),n=r._animationOutputsMap[t];n&&o.push(new Cu(e,n))}else i.push(e)}),bindAnimationOutputs(o),bindRenderInputs(e.inputs,n),bindRenderOutputs(i),e.directives.forEach(function(e){var t=n.instances.get(e.directive.type.reference);bindDirectiveInputs(e,t,n),bindDirectiveDetectChangesLifecycleCallbacks(e,t,n),bindDirectiveHostProps(e,t,n),bindDirectiveOutputs(e,t,i)}),templateVisitAll(this,e.children,n),e.directives.forEach(function(e){var t=n.instances.get(e.directive.type.reference);bindDirectiveAfterContentLifecycleCallbacks(e.directive,t,n),bindDirectiveAfterViewLifecycleCallbacks(e.directive,t,n)}),e.providers.forEach(function(e){var t=n.instances.get(e.token.reference);bindInjectableDestroyLifecycleCallbacks(e,t,n)}),null},ViewBinderVisitor.prototype.visitEmbeddedTemplate=function(e,t){var r=this.view.nodes[this._nodeIndex++],n=collectEventListeners(e.outputs,e.directives,r);return e.directives.forEach(function(e){var t=r.instances.get(e.directive.type.reference);bindDirectiveInputs(e,t,r),bindDirectiveDetectChangesLifecycleCallbacks(e,t,r),bindDirectiveOutputs(e,t,n),bindDirectiveAfterContentLifecycleCallbacks(e.directive,t,r),bindDirectiveAfterViewLifecycleCallbacks(e.directive,t,r)}),e.providers.forEach(function(e){var t=r.instances.get(e.token.reference);bindInjectableDestroyLifecycleCallbacks(e,t,r)}),bindView(r.embeddedView,e.children,this.animationOutputs),null},ViewBinderVisitor.prototype.visitAttr=function(e,t){return null},ViewBinderVisitor.prototype.visitDirective=function(e,t){return null},ViewBinderVisitor.prototype.visitEvent=function(e,t){return null},ViewBinderVisitor.prototype.visitReference=function(e,t){return null},ViewBinderVisitor.prototype.visitVariable=function(e,t){return null},ViewBinderVisitor.prototype.visitDirectiveProperty=function(e,t){return null},ViewBinderVisitor.prototype.visitElementProperty=function(e,t){return null},ViewBinderVisitor}(),Ou="$implicit",Iu="class",Ru="style",Mu="ng-container",ku=variable("parentRenderNode"),Nu=variable("rootSelector"),Du=function(){function ViewFactoryDependency(e,t){this.comp=e,this.placeholder=t}return ViewFactoryDependency}(),Vu=function(){function ComponentFactoryDependency(e,t){this.comp=e,this.placeholder=t}return ComponentFactoryDependency}(),ju=function(){function ViewBuilderVisitor(e,t){this.view=e,this.targetDependencies=t,this.nestedViewCount=0,this._animationCompiler=new Va}return ViewBuilderVisitor.prototype._isRootNode=function(e){return e.view!==this.view},ViewBuilderVisitor.prototype._addRootNodeAndProject=function(e){var t=_getOuterContainerOrSelf(e),r=t.parent,n=t.sourceAst.ngContentIndex,i=e instanceof vu&&e.hasViewContainer?e.appElement:null;this._isRootNode(r)?this.view.viewType!==ro.COMPONENT&&this.view.rootNodesOrAppElements.push(isPresent(i)?i:e.renderNode):isPresent(r.component)&&isPresent(n)&&r.addContentNode(n,isPresent(i)?i:e.renderNode)},ViewBuilderVisitor.prototype._getParentRenderNode=function(e){return e=_getOuterContainerParentOrSelf(e),this._isRootNode(e)?this.view.viewType===ro.COMPONENT?ku:Oe:isPresent(e.component)&&e.component.template.encapsulation!==r.ViewEncapsulation.Native?Oe:e.renderNode},ViewBuilderVisitor.prototype.visitBoundText=function(e,t){return this._visitText(e,"",t)},ViewBuilderVisitor.prototype.visitText=function(e,t){return this._visitText(e,e.value,t)},ViewBuilderVisitor.prototype._visitText=function(e,t,r){var n="_text_"+this.view.nodes.length;this.view.fields.push(new je(n,importType(this.view.genConfig.renderTypes.renderText)));var i=xe.prop(n),o=new mu(r,this.view,this.view.nodes.length,i,e),s=xe.prop(n).set(lu.renderer.callMethod("createText",[this._getParentRenderNode(r),literal(t),this.view.createMethod.resetDebugInfoExpr(this.view.nodes.length,e)])).toStmt();return this.view.nodes.push(o),this.view.createMethod.addStmt(s),this._addRootNodeAndProject(o),i},ViewBuilderVisitor.prototype.visitNgContent=function(e,t){this.view.createMethod.resetDebugInfo(null,e);var r=this._getParentRenderNode(t),n=lu.projectableNodes.key(literal(e.index),new Z(importType(this.view.genConfig.renderTypes.renderNode)));return r!==Oe?this.view.createMethod.addStmt(lu.renderer.callMethod("projectNodes",[r,importExpr(resolveIdentifier($o.flattenNestedViewRenderNodes)).callFn([n])]).toStmt()):this._isRootNode(t)?this.view.viewType!==ro.COMPONENT&&this.view.rootNodesOrAppElements.push(n):isPresent(t.component)&&isPresent(e.ngContentIndex)&&t.addContentNode(e.ngContentIndex,n),null},ViewBuilderVisitor.prototype.visitElement=function(e,t){var r,n=this,i=this.view.nodes.length,o=this.view.createMethod.resetDebugInfoExpr(i,e);r=0===i&&this.view.viewType===ro.HOST?xe.callMethod("selectOrCreateHostElement",[literal(e.name),Nu,o]):e.name===Mu?lu.renderer.callMethod("createTemplateAnchor",[this._getParentRenderNode(t),o]):lu.renderer.callMethod("createElement",[this._getParentRenderNode(t),literal(e.name),o]);var s="_el_"+i;this.view.fields.push(new je(s,importType(this.view.genConfig.renderTypes.renderElement))),this.view.createMethod.addStmt(xe.prop(s).set(r).toStmt());for(var a=xe.prop(s),u=e.directives.map(function(e){return e.directive}),c=u.find(function(e){return e.isComponent}),l=_readHtmlAttrs(e.attrs),p=_mergeHtmlAndDirectiveAttrs(l,u),h=0;h<p.length;h++){var f=p[h][0];if(e.name!==Mu){var d=p[h][1];this.view.createMethod.addStmt(lu.renderer.callMethod("setElementAttribute",[a,literal(f),literal(d)]).toStmt())}}var m=new vu(t,this.view,i,a,e,c,u,e.providers,e.hasViewContainer,(!1),e.references);this.view.nodes.push(m);var v=null;if(isPresent(c)){var y=new ht({name:getViewFactoryName(c,0)
});this.targetDependencies.push(new Du(c.type,y));var b=c.entryComponents.map(function(e){var t=new ht({name:e.name});return n.targetDependencies.push(new Vu(e,t)),t});m.createComponentFactoryResolver(b),v=variable("compView_"+i),m.setComponentView(v),this.view.createMethod.addStmt(v.set(importExpr(y).callFn([lu.viewUtils,m.injector,m.appElement])).toDeclStmt())}if(m.beforeChildren(),this._addRootNodeAndProject(m),templateVisitAll(this,e.children,m),m.afterChildren(this.view.nodes.length-i-1),isPresent(v)){var g;g=this.view.component.type.isHost?lu.projectableNodes:literalArr(m.contentNodesByNgContentIndex.map(function(e){return createFlatArray(e)})),this.view.createMethod.addStmt(v.callMethod("create",[m.getComponent(),g,Oe]).toStmt())}return null},ViewBuilderVisitor.prototype.visitEmbeddedTemplate=function(e,t){var r=this.view.nodes.length,n="_anchor_"+r;this.view.fields.push(new je(n,importType(this.view.genConfig.renderTypes.renderComment))),this.view.createMethod.addStmt(xe.prop(n).set(lu.renderer.callMethod("createTemplateAnchor",[this._getParentRenderNode(t),this.view.createMethod.resetDebugInfoExpr(r,e)])).toStmt());var i=xe.prop(n),o=e.variables.map(function(e){return[e.value.length>0?e.value:Ou,e.name]}),s=e.directives.map(function(e){return e.directive}),a=new vu(t,this.view,r,i,e,null,s,e.providers,e.hasViewContainer,(!0),e.references);this.view.nodes.push(a);var u=this._animationCompiler.compileComponent(this.view.component,[e]);this.nestedViewCount++;var c=new gu(this.view.component,this.view.genConfig,this.view.pipeMetas,Oe,u.triggers,this.view.viewIndex+this.nestedViewCount,a,o);return this.nestedViewCount+=buildView(c,e.children,this.targetDependencies),a.beforeChildren(),this._addRootNodeAndProject(a),a.afterChildren(0),null},ViewBuilderVisitor.prototype.visitAttr=function(e,t){return null},ViewBuilderVisitor.prototype.visitDirective=function(e,t){return null},ViewBuilderVisitor.prototype.visitEvent=function(e,t){return null},ViewBuilderVisitor.prototype.visitReference=function(e,t){return null},ViewBuilderVisitor.prototype.visitVariable=function(e,t){return null},ViewBuilderVisitor.prototype.visitDirectiveProperty=function(e,t){return null},ViewBuilderVisitor.prototype.visitElementProperty=function(e,t){return null},ViewBuilderVisitor}(),Lu=function(){function ViewCompileResult(e,t,r){this.statements=e,this.viewFactoryVar=t,this.dependencies=r}return ViewCompileResult}(),Fu=function(){function ViewCompiler(e){this._genConfig=e,this._animationCompiler=new Va}return ViewCompiler.prototype.compileComponent=function(e,t,r,n){var i=[],o=this._animationCompiler.compileComponent(e,t),s=[],a=o.triggers;a.forEach(function(e){s.push(e.statesMapStatement),s.push(e.fnStatement)});var u=new gu(e,this._genConfig,n,r,a,0,vu.createNull(),[]);return buildView(u,t,i),bindView(u,t,o.outputs),finishView(u,s),new Lu(s,u.viewFactory.name,i)},ViewCompiler.decorators=[{type:r.Injectable}],ViewCompiler.ctorParameters=[{type:aa}],ViewCompiler}(),Bu=function(){function SourceModule(e,t){this.moduleUrl=e,this.source=t}return SourceModule}(),Wu=function(){function NgModulesSummary(e){this.ngModuleByComponent=e}return NgModulesSummary}(),Uu=function(){function OfflineCompiler(e,t,r,n,i,o,s,a,u){this._metadataResolver=e,this._directiveNormalizer=t,this._templateParser=r,this._styleCompiler=n,this._viewCompiler=i,this._ngModuleCompiler=o,this._outputEmitter=s,this._localeId=a,this._translationFormat=u}return OfflineCompiler.prototype.analyzeModules=function(e){var t=this,r=new Map;return e.forEach(function(e){var n=t._metadataResolver.getNgModuleMetadata(e);n.declaredDirectives.forEach(function(e){e.isComponent&&r.set(e.type.reference,n)})}),new Wu(r)},OfflineCompiler.prototype.clearCache=function(){this._directiveNormalizer.clearCache(),this._metadataResolver.clearCache()},OfflineCompiler.prototype.compile=function(e,t,r,n){var i=this,o=_splitTypescriptSuffix(e)[1],s=[],a=[],u=[];return a.push.apply(a,n.map(function(e){return i._compileModule(e,s)})),Promise.all(r.map(function(e){var r=i._metadataResolver.getDirectiveMetadata(e),n=t.ngModuleByComponent.get(e);if(!n)throw new Error("Cannot determine the module for component "+r.type.name+"!");return Promise.all([r].concat(n.transitiveModule.directives).map(function(e){return i._directiveNormalizer.normalizeDirective(e).asyncResult})).then(function(e){var t=e[0],r=e.slice(1);_assertComponent(t);var c=i._styleCompiler.compileComponent(t);c.externalStylesheets.forEach(function(e){u.push(i._codgenStyles(e,o))}),a.push(i._compileComponentFactory(t,o,s)),a.push(i._compileComponent(t,r,n.transitiveModule.pipes,n.schemas,c.componentStylesheet,o,s))})})).then(function(){return s.length>0&&u.unshift(i._codegenSourceModule(_ngfactoryModuleUrl(e),s,a)),u})},OfflineCompiler.prototype._compileModule=function(e,t){var r=this._metadataResolver.getNgModuleMetadata(e),n=this._ngModuleCompiler.compile(r,[new dt({token:resolveIdentifierToken($o.LOCALE_ID),useValue:this._localeId}),new dt({token:resolveIdentifierToken($o.TRANSLATIONS_FORMAT),useValue:this._translationFormat})]);return n.dependencies.forEach(function(e){e.placeholder.name=_componentFactoryName(e.comp),e.placeholder.moduleUrl=_ngfactoryModuleUrl(e.comp.moduleUrl)}),t.push.apply(t,n.statements),n.ngModuleFactoryVar},OfflineCompiler.prototype._compileComponentFactory=function(e,t,r){var n=createHostComponentMeta(e),i=this._compileComponent(n,[e],[],[],null,t,r),o=_componentFactoryName(e.type);return r.push(variable(o).set(importExpr(resolveIdentifier($o.ComponentFactory),[importType(e.type)]).instantiate([literal(e.selector),variable(i),importExpr(e.type)],importType(resolveIdentifier($o.ComponentFactory),[importType(e.type)],[N.Const]))).toDeclStmt(null,[pe.Final])),o},OfflineCompiler.prototype._compileComponent=function(e,t,r,n,i,o,s){var a=this._templateParser.parse(e,e.template.template,t,r,n,e.type.name),u=i?variable(i.stylesVar):literalArr([]),c=this._viewCompiler.compileComponent(e,a,u,r);return i&&R.addAll(s,_resolveStyleStatements(i,o)),R.addAll(s,_resolveViewStatements(c)),c.viewFactoryVar},OfflineCompiler.prototype._codgenStyles=function(e,t){return _resolveStyleStatements(e,t),this._codegenSourceModule(_stylesModuleUrl(e.meta.moduleUrl,e.isShimmed,t),e.statements,[e.stylesVar])},OfflineCompiler.prototype._codegenSourceModule=function(e,t,r){return new Bu(e,this._outputEmitter.emitStatements(e,t,r))},OfflineCompiler}(),zu=function(){function ResourceLoader(){}return ResourceLoader.prototype.get=function(e){return null},ResourceLoader}(),Hu="asset:",qu={provide:r.PACKAGE_ROOT_URL,useValue:"/"},Gu=function(){function UrlResolver(e){void 0===e&&(e=null),this._packagePrefix=e}return UrlResolver.prototype.resolve=function(e,t){var r=t;isPresent(e)&&e.length>0&&(r=_resolveUrl(e,r));var n=_split(r),i=this._packagePrefix;if(isPresent(i)&&isPresent(n)&&"package"==n[wu.Scheme]){var o=n[wu.Path];if(this._packagePrefix!==Hu)return i=s.stripRight(i,"/"),o=s.stripLeft(o,"/"),i+"/"+o;var a=o.split(/\//);r="asset:"+a[0]+"/lib/"+a.slice(1).join("/")}return r},UrlResolver.decorators=[{type:r.Injectable}],UrlResolver.ctorParameters=[{type:void 0,decorators:[{type:r.Inject,args:[r.PACKAGE_ROOT_URL]}]}],UrlResolver}(),Ku=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");!function(e){e[e.Scheme=1]="Scheme",e[e.UserInfo=2]="UserInfo",e[e.Domain=3]="Domain",e[e.Port=4]="Port",e[e.Path=5]="Path",e[e.QueryData=6]="QueryData",e[e.Fragment=7]="Fragment"}(wu||(wu={}));var Qu=function(){function DirectiveNormalizer(e,t,r,n){this._resourceLoader=e,this._urlResolver=t,this._htmlParser=r,this._config=n,this._resourceLoaderCache=new Map}return DirectiveNormalizer.prototype.clearCache=function(){this._resourceLoaderCache.clear()},DirectiveNormalizer.prototype.clearCacheFor=function(e){var t=this;e.isComponent&&(this._resourceLoaderCache["delete"](e.template.templateUrl),e.template.externalStylesheets.forEach(function(e){t._resourceLoaderCache["delete"](e.moduleUrl)}))},DirectiveNormalizer.prototype._fetch=function(e){var t=this._resourceLoaderCache.get(e);return t||(t=this._resourceLoader.get(e),this._resourceLoaderCache.set(e,t)),t},DirectiveNormalizer.prototype.normalizeDirective=function(e){var t=this;if(!e.isComponent)return new Ze(e,Promise.resolve(e));var r,n=null;if(isPresent(e.template.template))n=this.normalizeTemplateSync(e.type,e.template),r=Promise.resolve(n);else{if(!e.template.templateUrl)throw new Error("No template specified for component "+e.type.name);r=this.normalizeTemplateAsync(e.type,e.template)}if(n&&0===n.styleUrls.length){var i=_cloneDirectiveWithTemplate(e,n);return new Ze(i,Promise.resolve(i))}return new Ze(null,r.then(function(e){return t.normalizeExternalStylesheets(e)}).then(function(t){return _cloneDirectiveWithTemplate(e,t)}))},DirectiveNormalizer.prototype.normalizeTemplateSync=function(e,t){return this.normalizeLoadedTemplate(e,t,t.template,e.moduleUrl)},DirectiveNormalizer.prototype.normalizeTemplateAsync=function(e,t){var r=this,n=this._urlResolver.resolve(e.moduleUrl,t.templateUrl);return this._fetch(n).then(function(i){return r.normalizeLoadedTemplate(e,t,i,n)})},DirectiveNormalizer.prototype.normalizeLoadedTemplate=function(e,t,n,i){var o=tn.fromArray(t.interpolation),s=this._htmlParser.parse(n,e.name,!1,o);if(s.errors.length>0){var a=s.errors.join("\n");throw new Error("Template parse errors:\n"+a)}var u=this.normalizeStylesheet(new gt({styles:t.styles,styleUrls:t.styleUrls,moduleUrl:e.moduleUrl})),c=new Xu;visitAll(c,s.rootNodes);var l=this.normalizeStylesheet(new gt({styles:c.styles,styleUrls:c.styleUrls,moduleUrl:i})),p=u.styles.concat(l.styles),h=u.styleUrls.concat(l.styleUrls),f=t.encapsulation;return isBlank(f)&&(f=this._config.defaultEncapsulation),f===r.ViewEncapsulation.Emulated&&0===p.length&&0===h.length&&(f=r.ViewEncapsulation.None),new _t({encapsulation:f,template:n,templateUrl:i,styles:p,styleUrls:h,externalStylesheets:t.externalStylesheets,ngContentSelectors:c.ngContentSelectors,animations:t.animations,interpolation:t.interpolation})},DirectiveNormalizer.prototype.normalizeExternalStylesheets=function(e){return this._loadMissingExternalStylesheets(e.styleUrls).then(function(t){return new _t({encapsulation:e.encapsulation,template:e.template,templateUrl:e.templateUrl,styles:e.styles,styleUrls:e.styleUrls,externalStylesheets:t,ngContentSelectors:e.ngContentSelectors,animations:e.animations,interpolation:e.interpolation})})},DirectiveNormalizer.prototype._loadMissingExternalStylesheets=function(e,t){var r=this;return void 0===t&&(t=new Map),Promise.all(e.filter(function(e){return!t.has(e)}).map(function(e){return r._fetch(e).then(function(n){var i=r.normalizeStylesheet(new gt({styles:[n],moduleUrl:e}));return t.set(e,i),r._loadMissingExternalStylesheets(i.styleUrls,t)})})).then(function(e){return O.values(t)})},DirectiveNormalizer.prototype.normalizeStylesheet=function(e){var t=this,r=e.styleUrls.filter(isStyleUrlResolvable).map(function(r){return t._urlResolver.resolve(e.moduleUrl,r)}),n=e.styles.map(function(n){var i=extractStyleUrls(t._urlResolver,e.moduleUrl,n);return r.push.apply(r,i.styleUrls),i.style});return new gt({styles:n,styleUrls:r,moduleUrl:e.moduleUrl})},DirectiveNormalizer.decorators=[{type:r.Injectable}],DirectiveNormalizer.ctorParameters=[{type:zu},{type:Gu},{type:es},{type:aa}],DirectiveNormalizer}(),Xu=function(){function TemplatePreparseVisitor(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return TemplatePreparseVisitor.prototype.visitElement=function(e,t){var r=preparseElement(e);switch(r.type){case si.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(r.selectAttr);break;case si.STYLE:var n="";e.children.forEach(function(e){e instanceof Sn&&(n+=e.value)}),this.styles.push(n);break;case si.STYLESHEET:this.styleUrls.push(r.hrefAttr)}return r.nonBindable&&this.ngNonBindableStackCount++,visitAll(this,e.children),r.nonBindable&&this.ngNonBindableStackCount--,null},TemplatePreparseVisitor.prototype.visitComment=function(e,t){return null},TemplatePreparseVisitor.prototype.visitAttribute=function(e,t){return null},TemplatePreparseVisitor.prototype.visitText=function(e,t){return null},TemplatePreparseVisitor.prototype.visitExpansion=function(e,t){return null},TemplatePreparseVisitor.prototype.visitExpansionCase=function(e,t){return null},TemplatePreparseVisitor}(),Ju=function(){function DirectiveResolver(e){void 0===e&&(e=Oo),this._reflector=e}return DirectiveResolver.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=this._reflector.annotations(r.resolveForwardRef(e));if(isPresent(n)){var i=n.find(_isDirectiveMetadata);if(isPresent(i)){var o=this._reflector.propMetadata(e);return this._mergeWithPropertyMetadata(i,o,e)}}if(t)throw new Error("No Directive annotation found on "+stringify(e));return null},DirectiveResolver.prototype._mergeWithPropertyMetadata=function(e,t,n){var i=[],o=[],s={},a={};return I.forEach(t,function(e,t){e.forEach(function(e){if(e instanceof r.Input)isPresent(e.bindingPropertyName)?i.push(t+": "+e.bindingPropertyName):i.push(t);else if(e instanceof r.Output){var n=e;isPresent(n.bindingPropertyName)?o.push(t+": "+n.bindingPropertyName):o.push(t)}else if(e instanceof r.HostBinding){var u=e;isPresent(u.hostPropertyName)?s["["+u.hostPropertyName+"]"]=t:s["["+t+"]"]=t}else if(e instanceof r.HostListener){var c=e,l=isPresent(c.args)?c.args.join(", "):"";s["("+c.eventName+")"]=t+"("+l+")"}else e instanceof r.Query&&(a[t]=e)})}),this._merge(e,i,o,s,a,n)},DirectiveResolver.prototype._extractPublicName=function(e){return splitAtColon(e,[null,e])[1].trim()},DirectiveResolver.prototype._merge=function(e,t,n,i,o,s){var a,u=this;if(isPresent(e.inputs)){var c=e.inputs.map(function(e){return u._extractPublicName(e)});t.forEach(function(e){var t=u._extractPublicName(e);if(c.indexOf(t)>-1)throw new Error("Input '"+t+"' defined multiple times in '"+stringify(s)+"'")}),a=e.inputs.concat(t)}else a=t;var l;if(isPresent(e.outputs)){var p=e.outputs.map(function(e){return u._extractPublicName(e)});n.forEach(function(e){var t=u._extractPublicName(e);if(p.indexOf(t)>-1)throw new Error("Output event '"+t+"' defined multiple times in '"+stringify(s)+"'")}),l=e.outputs.concat(n)}else l=n;var h=isPresent(e.host)?I.merge(e.host,i):i,f=isPresent(e.queries)?I.merge(e.queries,o):o;return e instanceof r.Component?new r.Component({selector:e.selector,inputs:a,outputs:l,host:h,exportAs:e.exportAs,moduleId:e.moduleId,queries:f,changeDetection:e.changeDetection,providers:e.providers,viewProviders:e.viewProviders,entryComponents:e.entryComponents,template:e.template,templateUrl:e.templateUrl,styles:e.styles,styleUrls:e.styleUrls,encapsulation:e.encapsulation,animations:e.animations,interpolation:e.interpolation}):new r.Directive({selector:e.selector,inputs:a,outputs:l,host:h,exportAs:e.exportAs,queries:f,providers:e.providers})},DirectiveResolver.decorators=[{type:r.Injectable}],DirectiveResolver.ctorParameters=[{type:Xi}],DirectiveResolver}(),Zu=O.createFromPairs([[Ki.OnInit,r.OnInit],[Ki.OnDestroy,r.OnDestroy],[Ki.DoCheck,r.DoCheck],[Ki.OnChanges,r.OnChanges],[Ki.AfterContentInit,r.AfterContentInit],[Ki.AfterContentChecked,r.AfterContentChecked],[Ki.AfterViewInit,r.AfterViewInit],[Ki.AfterViewChecked,r.AfterViewChecked]]),$u=O.createFromPairs([[Ki.OnInit,"ngOnInit"],[Ki.OnDestroy,"ngOnDestroy"],[Ki.DoCheck,"ngDoCheck"],[Ki.OnChanges,"ngOnChanges"],[Ki.AfterContentInit,"ngAfterContentInit"],[Ki.AfterContentChecked,"ngAfterContentChecked"],[Ki.AfterViewInit,"ngAfterViewInit"],[Ki.AfterViewChecked,"ngAfterViewChecked"]]),Yu=function(){function NgModuleResolver(e){void 0===e&&(e=Oo),this._reflector=e}return NgModuleResolver.prototype.resolve=function(e,t){void 0===t&&(t=!0);var r=this._reflector.annotations(e).find(_isNgModuleMetadata);if(isPresent(r))return r;if(t)throw new Error("No NgModule metadata found for '"+stringify(e)+"'.");return null},NgModuleResolver.decorators=[{type:r.Injectable}],NgModuleResolver.ctorParameters=[{type:Xi}],NgModuleResolver}(),ec=function(){function PipeResolver(e){void 0===e&&(e=Oo),this._reflector=e}return PipeResolver.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=this._reflector.annotations(r.resolveForwardRef(e));if(isPresent(n)){var i=n.find(_isPipeMetadata);if(isPresent(i))return i}if(t)throw new Error("No Pipe decorator found on "+stringify(e));return null},PipeResolver.decorators=[{type:r.Injectable}],PipeResolver.ctorParameters=[{type:Xi}],PipeResolver}(),tc=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},rc=function(){function CompileMetadataResolver(e,t,r,n,i){void 0===i&&(i=Oo),this._ngModuleResolver=e,this._directiveResolver=t,this._pipeResolver=r,this._schemaRegistry=n,this._reflector=i,this._directiveCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map,this._anonymousTypes=new Map,this._anonymousTypeIndex=0}return CompileMetadataResolver.prototype.sanitizeTokenName=function(e){var t=stringify(e);if(t.indexOf("(")>=0){var r=this._anonymousTypes.get(e);isBlank(r)&&(this._anonymousTypes.set(e,this._anonymousTypeIndex++),r=this._anonymousTypes.get(e)),t="anonymous_token_"+r+"_"}return sanitizeIdentifier(t)},CompileMetadataResolver.prototype.clearCacheFor=function(e){this._directiveCache["delete"](e),this._pipeCache["delete"](e),this._ngModuleOfTypes["delete"](e),this._ngModuleCache.clear()},CompileMetadataResolver.prototype.clearCache=function(){this._directiveCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear()},CompileMetadataResolver.prototype.getAnimationEntryMetadata=function(e){var t=this,r=e.definitions.map(function(e){return t.getAnimationStateMetadata(e)});return new tt(e.name,r)},CompileMetadataResolver.prototype.getAnimationStateMetadata=function(e){if(e instanceof r.AnimationStateDeclarationMetadata){var t=this.getAnimationStyleMetadata(e.styles);return new nt(e.stateNameExpr,t)}return e instanceof r.AnimationStateTransitionMetadata?new it(e.stateChangeExpr,this.getAnimationMetadata(e.steps)):null},CompileMetadataResolver.prototype.getAnimationStyleMetadata=function(e){return new at(e.offset,e.styles)},CompileMetadataResolver.prototype.getAnimationMetadata=function(e){var t=this;if(e instanceof r.AnimationStyleMetadata)return this.getAnimationStyleMetadata(e);if(e instanceof r.AnimationKeyframesSequenceMetadata)return new st(e.steps.map(function(e){return t.getAnimationStyleMetadata(e)}));if(e instanceof r.AnimationAnimateMetadata){var n=this.getAnimationMetadata(e.styles);return new ut(e.timings,n)}if(e instanceof r.AnimationWithStepsMetadata){var i=e.steps.map(function(e){return t.getAnimationMetadata(e)});return e instanceof r.AnimationGroupMetadata?new pt(i):new lt(i)}return null},CompileMetadataResolver.prototype.getDirectiveMetadata=function(e,t){var n=this;void 0===t&&(t=!0),e=r.resolveForwardRef(e);var i=this._directiveCache.get(e);if(isBlank(i)){var o=this._directiveResolver.resolve(e,t);if(!o)return null;var s=null,a=null,u=[],c=staticTypeModuleUrl(e),l=[],p=o.selector;if(o instanceof r.Component){var h=o;assertArrayOfStrings("styles",h.styles),assertInterpolationSymbols("interpolation",h.interpolation);var f=isPresent(h.animations)?h.animations.map(function(e){return n.getAnimationEntryMetadata(e)}):null;assertArrayOfStrings("styles",h.styles),assertArrayOfStrings("styleUrls",h.styleUrls),s=new _t({encapsulation:h.encapsulation,template:h.template,templateUrl:h.templateUrl,styles:h.styles,styleUrls:h.styleUrls,animations:f,interpolation:h.interpolation}),a=h.changeDetection,isPresent(o.viewProviders)&&(u=this.getProvidersMetadata(o.viewProviders,l,'viewProviders for "'+stringify(e)+'"')),c=componentModuleUrl(this._reflector,e,h),h.entryComponents&&(l=flattenArray(h.entryComponents).map(function(e){return n.getTypeMetadata(e,staticTypeModuleUrl(e))}).concat(l)),p||(p=this._schemaRegistry.getDefaultComponentElementName())}else if(!p)throw new Error("Directive "+stringify(e)+" has no selector, please add it!");var d=[];isPresent(o.providers)&&(d=this.getProvidersMetadata(o.providers,l,'providers for "'+stringify(e)+'"'));var m=[],v=[];isPresent(o.queries)&&(m=this.getQueriesMetadata(o.queries,!1,e),v=this.getQueriesMetadata(o.queries,!0,e)),i=St.create({selector:p,exportAs:o.exportAs,isComponent:isPresent(s),type:this.getTypeMetadata(e,c),template:s,changeDetection:a,inputs:o.inputs,outputs:o.outputs,host:o.host,providers:d,viewProviders:u,queries:m,viewQueries:v,entryComponents:l}),this._directiveCache.set(e,i)}return i},CompileMetadataResolver.prototype.getNgModuleMetadata=function(e,t){var n=this;void 0===t&&(t=!0),e=r.resolveForwardRef(e);var i=this._ngModuleCache.get(e);if(!i){var o=this._ngModuleResolver.resolve(e,t);if(!o)return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=[],m=[];o.imports&&flattenArray(o.imports).forEach(function(t){var r;if(isValidType(t))r=t;else if(t&&t.ngModule){var i=t;r=i.ngModule,i.providers&&h.push.apply(h,n.getProvidersMetadata(i.providers,f,"provider for the NgModule '"+stringify(r)+"'"))}if(!r)throw new Error("Unexpected value '"+stringify(t)+"' imported by the module '"+stringify(e)+"'");var o=n.getNgModuleMetadata(r,!1);if(null===o)throw new Error("Unexpected "+n._getTypeDescriptor(t)+" '"+stringify(t)+"' imported by the module '"+stringify(e)+"'");l.push(o)}),o.exports&&flattenArray(o.exports).forEach(function(t){if(!isValidType(t))throw new Error("Unexpected value '"+stringify(t)+"' exported by the module '"+stringify(e)+"'");var r,i,o;if(r=n.getDirectiveMetadata(t,!1))a.push(r);else if(i=n.getPipeMetadata(t,!1))c.push(i);else{if(!(o=n.getNgModuleMetadata(t,!1)))throw new Error("Unexpected "+n._getTypeDescriptor(t)+" '"+stringify(t)+"' exported by the module '"+stringify(e)+"'");p.push(o)}});var v=this._getTransitiveNgModuleMetadata(l,p);if(o.declarations&&flattenArray(o.declarations).forEach(function(t){if(!isValidType(t))throw new Error("Unexpected value '"+stringify(t)+"' declared by the module '"+stringify(e)+"'");var r,i;if(r=n.getDirectiveMetadata(t,!1))n._addDirectiveToModule(r,e,v,s,!0);else{if(!(i=n.getPipeMetadata(t,!1)))throw new Error("Unexpected "+n._getTypeDescriptor(t)+" '"+stringify(t)+"' declared by the module '"+stringify(e)+"'");n._addPipeToModule(i,e,v,u,!0)}}),o.providers&&h.push.apply(h,this.getProvidersMetadata(o.providers,f,"provider for the NgModule '"+stringify(e)+"'")),o.entryComponents&&f.push.apply(f,flattenArray(o.entryComponents).map(function(e){return n.getTypeMetadata(e,staticTypeModuleUrl(e))})),o.bootstrap){var y=flattenArray(o.bootstrap).map(function(t){if(!isValidType(t))throw new Error("Unexpected value '"+stringify(t)+"' used in the bootstrap property of module '"+stringify(e)+"'");return n.getTypeMetadata(t,staticTypeModuleUrl(t))});d.push.apply(d,y)}f.push.apply(f,d),o.schemas&&m.push.apply(m,flattenArray(o.schemas)),(b=v.entryComponents).push.apply(b,f),(g=v.providers).push.apply(g,h),i=new Et({type:this.getTypeMetadata(e,staticTypeModuleUrl(e)),providers:h,entryComponents:f,bootstrapComponents:d,schemas:m,declaredDirectives:s,exportedDirectives:a,declaredPipes:u,exportedPipes:c,importedModules:l,exportedModules:p,transitiveModule:v,id:o.id}),v.modules.push(i),this._verifyModule(i),this._ngModuleCache.set(e,i)}return i;var b,g},CompileMetadataResolver.prototype._verifyModule=function(e){e.exportedDirectives.forEach(function(t){if(!e.transitiveModule.directivesSet.has(t.type.reference))throw new Error("Can't export directive "+stringify(t.type.reference)+" from "+stringify(e.type.reference)+" as it was neither declared nor imported!")}),e.exportedPipes.forEach(function(t){if(!e.transitiveModule.pipesSet.has(t.type.reference))throw new Error("Can't export pipe "+stringify(t.type.reference)+" from "+stringify(e.type.reference)+" as it was neither declared nor imported!")})},CompileMetadataResolver.prototype._getTypeDescriptor=function(e){return null!==this._directiveResolver.resolve(e,!1)?"directive":null!==this._pipeResolver.resolve(e,!1)?"pipe":null!==this._ngModuleResolver.resolve(e,!1)?"module":e.provide?"provider":"value"},CompileMetadataResolver.prototype._addTypeToModule=function(e,t){var r=this._ngModuleOfTypes.get(e);if(r&&r!==t)throw new Error("Type "+stringify(e)+" is part of the declarations of 2 modules: "+stringify(r)+" and "+stringify(t)+"! "+("Please consider moving "+stringify(e)+" to a higher module that imports "+stringify(r)+" and "+stringify(t)+". ")+("You can also create a new NgModule that exports and includes "+stringify(e)+" then import that NgModule in "+stringify(r)+" and "+stringify(t)+"."));this._ngModuleOfTypes.set(e,t)},CompileMetadataResolver.prototype._getTransitiveNgModuleMetadata=function(e,t){var r=getTransitiveModules(e.concat(t),!0),n=flattenArray(r.map(function(e){return e.providers})),i=flattenArray(r.map(function(e){return e.entryComponents})),o=getTransitiveModules(e,!1),s=flattenArray(o.map(function(e){return e.exportedDirectives})),a=flattenArray(o.map(function(e){return e.exportedPipes}));return new Ct(r,n,i,s,a)},CompileMetadataResolver.prototype._addDirectiveToModule=function(e,t,r,n,i){return void 0===i&&(i=!1),!(!i&&r.directivesSet.has(e.type.reference))&&(r.directivesSet.add(e.type.reference),r.directives.push(e),n.push(e),this._addTypeToModule(e.type.reference,t),!0)},CompileMetadataResolver.prototype._addPipeToModule=function(e,t,r,n,i){return void 0===i&&(i=!1),!(!i&&r.pipesSet.has(e.type.reference))&&(r.pipesSet.add(e.type.reference),r.pipes.push(e),n.push(e),this._addTypeToModule(e.type.reference,t),!0)},CompileMetadataResolver.prototype.getTypeMetadata=function(e,t,n){return void 0===n&&(n=null),e=r.resolveForwardRef(e),new yt({name:this.sanitizeTokenName(e),moduleUrl:t,reference:e,diDeps:this.getDependenciesMetadata(e,n),lifecycleHooks:Qi.filter(function(t){return hasLifecycleHook(t,e)})})},CompileMetadataResolver.prototype.getFactoryMetadata=function(e,t,n){return void 0===n&&(n=null),e=r.resolveForwardRef(e),new mt({name:this.sanitizeTokenName(e),moduleUrl:t,reference:e,diDeps:this.getDependenciesMetadata(e,n)})},CompileMetadataResolver.prototype.getPipeMetadata=function(e,t){void 0===t&&(t=!0),e=r.resolveForwardRef(e);var n=this._pipeCache.get(e);if(isBlank(n)){var i=this._pipeResolver.resolve(e,t);if(!i)return null;n=new wt({type:this.getTypeMetadata(e,staticTypeModuleUrl(e)),name:i.name,pure:i.pure}),this._pipeCache.set(e,n)}return n},CompileMetadataResolver.prototype.getDependenciesMetadata=function(e,t){var n=this,i=!1,o=isPresent(t)?t:this._reflector.parameters(e);isBlank(o)&&(o=[]);var s=o.map(function(t){var o=!1,s=!1,a=!1,u=!1,c=!1,l=null,p=null,h=null;return isArray(t)?t.forEach(function(e){e instanceof r.Host?s=!0:e instanceof r.Self?a=!0:e instanceof r.SkipSelf?u=!0:e instanceof r.Optional?c=!0:e instanceof r.Attribute?(o=!0,h=e.attributeName):e instanceof r.Query?e.isViewQuery?p=e:l=e:e instanceof r.Inject?h=e.token:isValidType(e)&&isBlank(h)&&(h=e)}):h=t,isBlank(h)?(i=!0,null):new ft({isAttribute:o,isHost:s,isSelf:a,isSkipSelf:u,isOptional:c,query:isPresent(l)?n.getQueryMetadata(l,null,e):null,viewQuery:isPresent(p)?n.getQueryMetadata(p,null,e):null,token:n.getTokenMetadata(h)})});if(i){var a=s.map(function(e){return e?stringify(e.token):"?"}).join(", ");throw new Error("Can't resolve all parameters for "+stringify(e)+": ("+a+").")}return s},CompileMetadataResolver.prototype.getTokenMetadata=function(e){e=r.resolveForwardRef(e);var t;return t=new vt(isString(e)?{value:e}:{identifier:new ht({reference:e,name:this.sanitizeTokenName(e),moduleUrl:staticTypeModuleUrl(e)})})},CompileMetadataResolver.prototype.getProvidersMetadata=function(e,t,n){var i=this,o=[];return e.forEach(function(s,a){s=r.resolveForwardRef(s),s&&"object"==typeof s&&s.hasOwnProperty("provide")&&(s=new Pt(s.provide,s));var u;if(isArray(s))u=i.getProvidersMetadata(s,t,n);else if(s instanceof Pt){var c=i.getTokenMetadata(s.token);c.reference===resolveIdentifierToken($o.ANALYZE_FOR_ENTRY_COMPONENTS).reference?t.push.apply(t,i._getEntryComponentsFromProvider(s)):u=i.getProviderMetadata(s)}else{if(!isValidType(s)){var l=e.reduce(function(e,t,r){return r<a?e.push(""+stringify(t)):r==a?e.push("?"+stringify(t)+"?"):r==a+1&&e.push("..."),e},[]).join(", ");throw new Error("Invalid "+(n?n:"provider")+" - only instances of Provider and Type are allowed, got: ["+l+"]")}u=i.getTypeMetadata(s,staticTypeModuleUrl(s))}u&&o.push(u)}),o},CompileMetadataResolver.prototype._getEntryComponentsFromProvider=function(e){var t=this,r=[],n=[];if(e.useFactory||e.useExisting||e.useClass)throw new Error("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!");if(!e.multi)throw new Error("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!");return convertToCompileValue(e.useValue,n),n.forEach(function(e){var n=t.getDirectiveMetadata(e.reference,!1);n&&r.push(n.type)}),r},CompileMetadataResolver.prototype.getProviderMetadata=function(e){var t,r=null,n=null;return isPresent(e.useClass)?(r=this.getTypeMetadata(e.useClass,staticTypeModuleUrl(e.useClass),e.dependencies),t=r.diDeps):isPresent(e.useFactory)&&(n=this.getFactoryMetadata(e.useFactory,staticTypeModuleUrl(e.useFactory),e.dependencies),t=n.diDeps),new dt({token:this.getTokenMetadata(e.token),useClass:r,useValue:convertToCompileValue(e.useValue,[]),useFactory:n,useExisting:isPresent(e.useExisting)?this.getTokenMetadata(e.useExisting):null,deps:t,multi:e.multi})},CompileMetadataResolver.prototype.getQueriesMetadata=function(e,t,r){var n=this,i=[];return I.forEach(e,function(e,o){e.isViewQuery===t&&i.push(n.getQueryMetadata(e,o,r))}),i},CompileMetadataResolver.prototype._queryVarBindings=function(e){return s.split(e,/\s*,\s*/g)},CompileMetadataResolver.prototype.getQueryMetadata=function(e,t,r){var n,i=this;if(isString(e.selector))n=this._queryVarBindings(e.selector).map(function(e){return i.getTokenMetadata(e)});else{if(!isPresent(e.selector))throw new Error("Can't construct a query for the property \""+t+'" of "'+stringify(r)+"\" since the query selector wasn't defined.");n=[this.getTokenMetadata(e.selector)]}return new bt({selectors:n,first:e.first,descendants:e.descendants,propertyName:t,read:isPresent(e.read)?this.getTokenMetadata(e.read):null})},CompileMetadataResolver.decorators=[{type:r.Injectable}],CompileMetadataResolver.ctorParameters=[{type:Yu},{type:Ju},{type:ec},{type:ps},{type:Xi}],CompileMetadataResolver}(),nc=function(e){function _CompileValueConverter(){e.apply(this,arguments)}return tc(_CompileValueConverter,e),_CompileValueConverter.prototype.visitOther=function(e,t){var r;return r=new ht(isStaticSymbol(e)?{name:e.name,moduleUrl:e.filePath,reference:e}:{reference:e}),t.push(r),r},_CompileValueConverter}(Je),ic=function(){function ComponentFactoryDependency(e,t){this.comp=e,this.placeholder=t}return ComponentFactoryDependency}(),oc=function(){function NgModuleCompileResult(e,t,r){this.statements=e,this.ngModuleFactoryVar=t,this.dependencies=r}return NgModuleCompileResult}(),sc=function(){function NgModuleCompiler(){}return NgModuleCompiler.prototype.compile=function(e,t){var r=isPresent(e.type.moduleUrl)?"in NgModule "+e.type.name+" in "+e.type.moduleUrl:"in NgModule "+e.type.name,n=new yn("",r),i=new bn(new vn(n,null,null,null),new vn(n,null,null,null)),o=[],s=[],a=e.transitiveModule.entryComponents.map(function(t){var r=new ht({name:t.name});return e.bootstrapComponents.indexOf(t)>-1&&s.push(r),o.push(new ic(t,r)),r}),u=new ac(e,a,s,i),c=new ls(e,t,i);c.parse().forEach(function(e){return u.addProvider(e)});var l=u.build(),p=e.type.name+"NgFactory",h=variable(p).set(importExpr(resolveIdentifier($o.NgModuleFactory)).instantiate([variable(l.name),importExpr(e.type)],importType(resolveIdentifier($o.NgModuleFactory),[importType(e.type)],[N.Const]))).toDeclStmt(null,[pe.Final]),f=[l,h];
if(e.id){var d=importExpr(resolveIdentifier($o.RegisterModuleFactoryFn)).callFn([literal(e.id),variable(p)]).toStmt();f.push(d)}return new oc(f,p,o)},NgModuleCompiler.decorators=[{type:r.Injectable}],NgModuleCompiler.ctorParameters=[],NgModuleCompiler}(),ac=function(){function _InjectorBuilder(e,t,r,n){this._ngModuleMeta=e,this._entryComponentFactories=t,this._bootstrapComponentFactories=r,this._sourceSpan=n,this._tokens=[],this._instances=new Map,this._fields=[],this._createStmts=[],this._destroyStmts=[],this._getters=[]}return _InjectorBuilder.prototype.addProvider=function(e){var t=this,r=e.providers.map(function(e){return t._getProviderValue(e)}),n="_"+e.token.name+"_"+this._instances.size,i=this._createProviderProperty(n,e,r,e.multiProvider,e.eager);e.lifecycleHooks.indexOf(Ki.OnDestroy)!==-1&&this._destroyStmts.push(i.callMethod("ngOnDestroy",[]).toStmt()),this._tokens.push(e.token),this._instances.set(e.token.reference,i)},_InjectorBuilder.prototype.build=function(){var e=this,t=this._tokens.map(function(t){var r=e._instances.get(t.reference);return new We(cc.token.identical(createDiTokenExpression(t)),[new De(r)])}),r=[new Le("createInternal",[],this._createStmts.concat(new De(this._instances.get(this._ngModuleMeta.type.reference))),importType(this._ngModuleMeta.type)),new Le("getInternal",[new _e(cc.token.name,Y),new _e(cc.notFoundResult.name,Y)],t.concat([new De(cc.notFoundResult)]),Y),new Le("destroyInternal",[],this._destroyStmts)],n=new Le(null,[new _e(uc.parent.name,importType(resolveIdentifier($o.Injector)))],[Ae.callFn([variable(uc.parent.name),literalArr(this._entryComponentFactories.map(function(e){return importExpr(e)})),literalArr(this._bootstrapComponentFactories.map(function(e){return importExpr(e)}))]).toStmt()]),i=this._ngModuleMeta.type.name+"Injector";return new Be(i,importExpr(resolveIdentifier($o.NgModuleInjector),[importType(this._ngModuleMeta.type)]),this._fields,this._getters,n,r)},_InjectorBuilder.prototype._getProviderValue=function(e){var t,r=this;if(isPresent(e.useExisting))t=this._getDependency(new ft({token:e.useExisting}));else if(isPresent(e.useFactory)){var n=isPresent(e.deps)?e.deps:e.useFactory.diDeps,i=n.map(function(e){return r._getDependency(e)});t=importExpr(e.useFactory).callFn(i)}else if(isPresent(e.useClass)){var n=isPresent(e.deps)?e.deps:e.useClass.diDeps,i=n.map(function(e){return r._getDependency(e)});t=importExpr(e.useClass).instantiate(i,importType(e.useClass))}else t=convertValueToOutputAst(e.useValue);return t},_InjectorBuilder.prototype._createProviderProperty=function(e,t,r,n,i){var o,s;if(n?(o=literalArr(r),s=new Z(Y)):(o=r[0],s=r[0].type),isBlank(s)&&(s=Y),i)this._fields.push(new je(e,s)),this._createStmts.push(xe.prop(e).set(o).toStmt());else{var a="_"+e;this._fields.push(new je(a,s));var u=[new We(xe.prop(a).isBlank(),[xe.prop(a).set(o).toStmt()]),new De(xe.prop(a))];this._getters.push(new Fe(e,u,s))}return xe.prop(e)},_InjectorBuilder.prototype._getDependency=function(e){var t=null;if(e.isValue&&(t=literal(e.value)),e.isSkipSelf||(!e.token||e.token.reference!==resolveIdentifierToken($o.Injector).reference&&e.token.reference!==resolveIdentifierToken($o.ComponentFactoryResolver).reference||(t=xe),isBlank(t)&&(t=this._instances.get(e.token.reference))),isBlank(t)){var r=[createDiTokenExpression(e.token)];e.isOptional&&r.push(Oe),t=uc.parent.callMethod("get",r)}return t},_InjectorBuilder}(),uc=function(){function InjectorProps(){}return InjectorProps.parent=xe.prop("parent"),InjectorProps}(),cc=function(){function InjectMethodVars(){}return InjectMethodVars.token=variable("token"),InjectMethodVars.notFoundResult=variable("notFoundResult"),InjectMethodVars}(),lc=/'|\\|\n|\r|\$/g,pc=/^[$A-Z_][0-9A-Z_$]*$/i,hc=variable("error"),fc=variable("stack"),dc=function(){function _EmittedLine(e){this.indent=e,this.parts=[]}return _EmittedLine}(),mc=function(){function EmitterVisitorContext(e,t){this._exportedVars=e,this._indent=t,this._classes=[],this._lines=[new dc(t)]}return EmitterVisitorContext.createRoot=function(e){return new EmitterVisitorContext(e,0)},Object.defineProperty(EmitterVisitorContext.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),EmitterVisitorContext.prototype.isExportedVar=function(e){return this._exportedVars.indexOf(e)!==-1},EmitterVisitorContext.prototype.println=function(e){void 0===e&&(e=""),this.print(e,!0)},EmitterVisitorContext.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},EmitterVisitorContext.prototype.print=function(e,t){void 0===t&&(t=!1),e.length>0&&this._currentLine.parts.push(e),t&&this._lines.push(new dc(this._indent))},EmitterVisitorContext.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},EmitterVisitorContext.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},EmitterVisitorContext.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},EmitterVisitorContext.prototype.pushClass=function(e){this._classes.push(e)},EmitterVisitorContext.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(EmitterVisitorContext.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),EmitterVisitorContext.prototype.toSource=function(){var e=this._lines;return 0===e[e.length-1].parts.length&&(e=e.slice(0,e.length-1)),e.map(function(e){return e.parts.length>0?_createIndent(e.indent)+e.parts.join(""):""}).join("\n")},EmitterVisitorContext}(),vc=function(){function AbstractEmitterVisitor(e){this._escapeDollarInStrings=e}return AbstractEmitterVisitor.prototype.visitExpressionStmt=function(e,t){return e.expr.visitExpression(this,t),t.println(";"),null},AbstractEmitterVisitor.prototype.visitReturnStmt=function(e,t){return t.print("return "),e.value.visitExpression(this,t),t.println(";"),null},AbstractEmitterVisitor.prototype.visitIfStmt=function(e,t){t.print("if ("),e.condition.visitExpression(this,t),t.print(") {");var r=isPresent(e.falseCase)&&e.falseCase.length>0;return e.trueCase.length<=1&&!r?(t.print(" "),this.visitAllStatements(e.trueCase,t),t.removeEmptyLastLine(),t.print(" ")):(t.println(),t.incIndent(),this.visitAllStatements(e.trueCase,t),t.decIndent(),r&&(t.println("} else {"),t.incIndent(),this.visitAllStatements(e.falseCase,t),t.decIndent())),t.println("}"),null},AbstractEmitterVisitor.prototype.visitThrowStmt=function(e,t){return t.print("throw "),e.error.visitExpression(this,t),t.println(";"),null},AbstractEmitterVisitor.prototype.visitCommentStmt=function(e,t){var r=e.comment.split("\n");return r.forEach(function(e){t.println("// "+e)}),null},AbstractEmitterVisitor.prototype.visitWriteVarExpr=function(e,t){var r=t.lineIsEmpty();return r||t.print("("),t.print(e.name+" = "),e.value.visitExpression(this,t),r||t.print(")"),null},AbstractEmitterVisitor.prototype.visitWriteKeyExpr=function(e,t){var r=t.lineIsEmpty();return r||t.print("("),e.receiver.visitExpression(this,t),t.print("["),e.index.visitExpression(this,t),t.print("] = "),e.value.visitExpression(this,t),r||t.print(")"),null},AbstractEmitterVisitor.prototype.visitWritePropExpr=function(e,t){var r=t.lineIsEmpty();return r||t.print("("),e.receiver.visitExpression(this,t),t.print("."+e.name+" = "),e.value.visitExpression(this,t),r||t.print(")"),null},AbstractEmitterVisitor.prototype.visitInvokeMethodExpr=function(e,t){e.receiver.visitExpression(this,t);var r=e.name;return isPresent(e.builtin)&&(r=this.getBuiltinMethodName(e.builtin),isBlank(r))?null:(t.print("."+r+"("),this.visitAllExpressions(e.args,t,","),t.print(")"),null)},AbstractEmitterVisitor.prototype.visitInvokeFunctionExpr=function(e,t){return e.fn.visitExpression(this,t),t.print("("),this.visitAllExpressions(e.args,t,","),t.print(")"),null},AbstractEmitterVisitor.prototype.visitReadVarExpr=function(e,t){var r=e.name;if(isPresent(e.builtin))switch(e.builtin){case ie.Super:r="super";break;case ie.This:r="this";break;case ie.CatchError:r=hc.name;break;case ie.CatchStack:r=fc.name;break;default:throw new Error("Unknown builtin variable "+e.builtin)}return t.print(r),null},AbstractEmitterVisitor.prototype.visitInstantiateExpr=function(e,t){return t.print("new "),e.classExpr.visitExpression(this,t),t.print("("),this.visitAllExpressions(e.args,t,","),t.print(")"),null},AbstractEmitterVisitor.prototype.visitLiteralExpr=function(e,t,r){void 0===r&&(r="null");var n=e.value;return isString(n)?t.print(escapeIdentifier(n,this._escapeDollarInStrings)):isBlank(n)?t.print(r):t.print(""+n),null},AbstractEmitterVisitor.prototype.visitConditionalExpr=function(e,t){return t.print("("),e.condition.visitExpression(this,t),t.print("? "),e.trueCase.visitExpression(this,t),t.print(": "),e.falseCase.visitExpression(this,t),t.print(")"),null},AbstractEmitterVisitor.prototype.visitNotExpr=function(e,t){return t.print("!"),e.condition.visitExpression(this,t),null},AbstractEmitterVisitor.prototype.visitBinaryOperatorExpr=function(e,t){var r;switch(e.operator){case Q.Equals:r="==";break;case Q.Identical:r="===";break;case Q.NotEquals:r="!=";break;case Q.NotIdentical:r="!==";break;case Q.And:r="&&";break;case Q.Or:r="||";break;case Q.Plus:r="+";break;case Q.Minus:r="-";break;case Q.Divide:r="/";break;case Q.Multiply:r="*";break;case Q.Modulo:r="%";break;case Q.Lower:r="<";break;case Q.LowerEquals:r="<=";break;case Q.Bigger:r=">";break;case Q.BiggerEquals:r=">=";break;default:throw new Error("Unknown operator "+e.operator)}return t.print("("),e.lhs.visitExpression(this,t),t.print(" "+r+" "),e.rhs.visitExpression(this,t),t.print(")"),null},AbstractEmitterVisitor.prototype.visitReadPropExpr=function(e,t){return e.receiver.visitExpression(this,t),t.print("."),t.print(e.name),null},AbstractEmitterVisitor.prototype.visitReadKeyExpr=function(e,t){return e.receiver.visitExpression(this,t),t.print("["),e.index.visitExpression(this,t),t.print("]"),null},AbstractEmitterVisitor.prototype.visitLiteralArrayExpr=function(e,t){var r=e.entries.length>1;return t.print("[",r),t.incIndent(),this.visitAllExpressions(e.entries,t,",",r),t.decIndent(),t.print("]",r),null},AbstractEmitterVisitor.prototype.visitLiteralMapExpr=function(e,t){var r=this,n=e.entries.length>1;return t.print("{",n),t.incIndent(),this.visitAllObjects(function(e){t.print(escapeIdentifier(e[0],r._escapeDollarInStrings,!1)+": "),e[1].visitExpression(r,t)},e.entries,t,",",n),t.decIndent(),t.print("}",n),null},AbstractEmitterVisitor.prototype.visitAllExpressions=function(e,t,r,n){var i=this;void 0===n&&(n=!1),this.visitAllObjects(function(e){return e.visitExpression(i,t)},e,t,r,n)},AbstractEmitterVisitor.prototype.visitAllObjects=function(e,t,r,n,i){void 0===i&&(i=!1);for(var o=0;o<t.length;o++)o>0&&r.print(n,i),e(t[o]);i&&r.println()},AbstractEmitterVisitor.prototype.visitAllStatements=function(e,t){var r=this;e.forEach(function(e){return e.visitStatement(r,t)})},AbstractEmitterVisitor}(),yc=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},bc="asset://debug/lib",gc=function(){function TypeScriptEmitter(e){this._importGenerator=e}return TypeScriptEmitter.prototype.emitStatements=function(e,t,r){var n=this,i=new _c(e),o=mc.createRoot(r);i.visitAllStatements(t,o);var s=[];return i.importsWithPrefixes.forEach(function(t,r){s.push("imp"+("ort * as "+t+" from '"+n._importGenerator.getImportPath(e,r)+"';"))}),s.push(o.toSource()),s.join("\n")},TypeScriptEmitter}(),_c=function(e){function _TsEmitterVisitor(t){e.call(this,!1),this._moduleUrl=t,this.importsWithPrefixes=new Map}return yc(_TsEmitterVisitor,e),_TsEmitterVisitor.prototype.visitType=function(e,t,r){void 0===r&&(r="any"),isPresent(e)?e.visitType(this,t):t.print(r)},_TsEmitterVisitor.prototype.visitLiteralExpr=function(t,r){e.prototype.visitLiteralExpr.call(this,t,r,"(null as any)")},_TsEmitterVisitor.prototype.visitExternalExpr=function(e,t){return this._visitIdentifier(e.value,e.typeParams,t),null},_TsEmitterVisitor.prototype.visitDeclareVarStmt=function(e,t){return t.isExportedVar(e.name)&&t.print("export "),e.hasModifier(pe.Final)?t.print("const"):t.print("var"),t.print(" "+e.name+":"),this.visitType(e.type,t),t.print(" = "),e.value.visitExpression(this,t),t.println(";"),null},_TsEmitterVisitor.prototype.visitCastExpr=function(e,t){return t.print("(<"),e.type.visitType(this,t),t.print(">"),e.value.visitExpression(this,t),t.print(")"),null},_TsEmitterVisitor.prototype.visitDeclareClassStmt=function(e,t){var r=this;return t.pushClass(e),t.isExportedVar(e.name)&&t.print("export "),t.print("class "+e.name),isPresent(e.parent)&&(t.print(" extends "),e.parent.visitExpression(this,t)),t.println(" {"),t.incIndent(),e.fields.forEach(function(e){return r._visitClassField(e,t)}),isPresent(e.constructorMethod)&&this._visitClassConstructor(e,t),e.getters.forEach(function(e){return r._visitClassGetter(e,t)}),e.methods.forEach(function(e){return r._visitClassMethod(e,t)}),t.decIndent(),t.println("}"),t.popClass(),null},_TsEmitterVisitor.prototype._visitClassField=function(e,t){e.hasModifier(pe.Private)&&t.print("/*private*/ "),t.print(e.name),t.print(":"),this.visitType(e.type,t),t.println(";")},_TsEmitterVisitor.prototype._visitClassGetter=function(e,t){e.hasModifier(pe.Private)&&t.print("private "),t.print("get "+e.name+"()"),t.print(":"),this.visitType(e.type,t),t.println(" {"),t.incIndent(),this.visitAllStatements(e.body,t),t.decIndent(),t.println("}")},_TsEmitterVisitor.prototype._visitClassConstructor=function(e,t){t.print("constructor("),this._visitParams(e.constructorMethod.params,t),t.println(") {"),t.incIndent(),this.visitAllStatements(e.constructorMethod.body,t),t.decIndent(),t.println("}")},_TsEmitterVisitor.prototype._visitClassMethod=function(e,t){e.hasModifier(pe.Private)&&t.print("private "),t.print(e.name+"("),this._visitParams(e.params,t),t.print("):"),this.visitType(e.type,t,"void"),t.println(" {"),t.incIndent(),this.visitAllStatements(e.body,t),t.decIndent(),t.println("}")},_TsEmitterVisitor.prototype.visitFunctionExpr=function(e,t){return t.print("("),this._visitParams(e.params,t),t.print("):"),this.visitType(e.type,t,"void"),t.println(" => {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.print("}"),null},_TsEmitterVisitor.prototype.visitDeclareFunctionStmt=function(e,t){return t.isExportedVar(e.name)&&t.print("export "),t.print("function "+e.name+"("),this._visitParams(e.params,t),t.print("):"),this.visitType(e.type,t,"void"),t.println(" {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.println("}"),null},_TsEmitterVisitor.prototype.visitTryCatchStmt=function(e,t){t.println("try {"),t.incIndent(),this.visitAllStatements(e.bodyStmts,t),t.decIndent(),t.println("} catch ("+hc.name+") {"),t.incIndent();var r=[fc.set(hc.prop("stack")).toDeclStmt(null,[pe.Final])].concat(e.catchStmts);return this.visitAllStatements(r,t),t.decIndent(),t.println("}"),null},_TsEmitterVisitor.prototype.visitBuiltintType=function(e,t){var r;switch(e.name){case G.Bool:r="boolean";break;case G.Dynamic:r="any";break;case G.Function:r="Function";break;case G.Number:r="number";break;case G.Int:r="number";break;case G.String:r="string";break;default:throw new Error("Unsupported builtin type "+e.name)}return t.print(r),null},_TsEmitterVisitor.prototype.visitExternalType=function(e,t){return this._visitIdentifier(e.value,e.typeParams,t),null},_TsEmitterVisitor.prototype.visitArrayType=function(e,t){return this.visitType(e.of,t),t.print("[]"),null},_TsEmitterVisitor.prototype.visitMapType=function(e,t){return t.print("{[key: string]:"),this.visitType(e.valueType,t),t.print("}"),null},_TsEmitterVisitor.prototype.getBuiltinMethodName=function(e){var t;switch(e){case se.ConcatArray:t="concat";break;case se.SubscribeObservable:t="subscribe";break;case se.Bind:t="bind";break;default:throw new Error("Unknown builtin method: "+e)}return t},_TsEmitterVisitor.prototype._visitParams=function(e,t){var r=this;this.visitAllObjects(function(e){t.print(e.name),t.print(":"),r.visitType(e.type,t)},e,t,",")},_TsEmitterVisitor.prototype._visitIdentifier=function(e,t,r){var n=this;if(isBlank(e.name))throw new Error("Internal error: unknown identifier "+e);if(isPresent(e.moduleUrl)&&e.moduleUrl!=this._moduleUrl){var i=this.importsWithPrefixes.get(e.moduleUrl);isBlank(i)&&(i="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(e.moduleUrl,i)),r.print(i+".")}e.reference&&e.reference.members?(r.print(e.reference.name),r.print("."),r.print(e.reference.members.join("."))):r.print(e.name),isPresent(t)&&t.length>0&&(r.print("<"),this.visitAllObjects(function(e){return e.visitType(n,r)},t,r,","),r.print(">"))},_TsEmitterVisitor}(vc),Sc=function(){function _ExecutionContext(e,t,r,n){this.parent=e,this.instance=t,this.className=r,this.vars=n}return _ExecutionContext.prototype.createChildWihtLocalVars=function(){return new _ExecutionContext(this,this.instance,this.className,new Map)},_ExecutionContext}(),wc=function(){function ReturnValue(e){this.value=e}return ReturnValue}(),Ec=function(){function StatementInterpreter(){}return StatementInterpreter.prototype.debugAst=function(e){return debugOutputAstAsTypeScript(e)},StatementInterpreter.prototype.visitDeclareVarStmt=function(e,t){return t.vars.set(e.name,e.value.visitExpression(this,t)),null},StatementInterpreter.prototype.visitWriteVarExpr=function(e,t){for(var r=e.value.visitExpression(this,t),n=t;null!=n;){if(n.vars.has(e.name))return n.vars.set(e.name,r),r;n=n.parent}throw new Error("Not declared variable "+e.name)},StatementInterpreter.prototype.visitReadVarExpr=function(e,t){var r=e.name;if(isPresent(e.builtin))switch(e.builtin){case ie.Super:return t.instance.__proto__;case ie.This:return t.instance;case ie.CatchError:r=Cc;break;case ie.CatchStack:r=Pc;break;default:throw new Error("Unknown builtin variable "+e.builtin)}for(var n=t;null!=n;){if(n.vars.has(r))return n.vars.get(r);n=n.parent}throw new Error("Not declared variable "+r)},StatementInterpreter.prototype.visitWriteKeyExpr=function(e,t){var r=e.receiver.visitExpression(this,t),n=e.index.visitExpression(this,t),i=e.value.visitExpression(this,t);return r[n]=i,i},StatementInterpreter.prototype.visitWritePropExpr=function(e,t){var r=e.receiver.visitExpression(this,t),n=e.value.visitExpression(this,t);return r[e.name]=n,n},StatementInterpreter.prototype.visitInvokeMethodExpr=function(e,t){var r,n=e.receiver.visitExpression(this,t),i=this.visitAllExpressions(e.args,t);if(isPresent(e.builtin))switch(e.builtin){case se.ConcatArray:r=R.concat(n,i[0]);break;case se.SubscribeObservable:r=n.subscribe({next:i[0]});break;case se.Bind:r=n.bind(i[0]);break;default:throw new Error("Unknown builtin method "+e.builtin)}else r=n[e.name].apply(n,i);return r},StatementInterpreter.prototype.visitInvokeFunctionExpr=function(e,t){var r=this.visitAllExpressions(e.args,t),n=e.fn;if(n instanceof ae&&n.builtin===ie.Super)return t.instance.constructor.prototype.constructor.apply(t.instance,r),null;var i=e.fn.visitExpression(this,t);return i.apply(null,r)},StatementInterpreter.prototype.visitReturnStmt=function(e,t){return new wc(e.value.visitExpression(this,t))},StatementInterpreter.prototype.visitDeclareClassStmt=function(e,t){var r=createDynamicClass(e,t,this);return t.vars.set(e.name,r),null},StatementInterpreter.prototype.visitExpressionStmt=function(e,t){return e.expr.visitExpression(this,t)},StatementInterpreter.prototype.visitIfStmt=function(e,t){var r=e.condition.visitExpression(this,t);return r?this.visitAllStatements(e.trueCase,t):isPresent(e.falseCase)?this.visitAllStatements(e.falseCase,t):null},StatementInterpreter.prototype.visitTryCatchStmt=function(e,t){try{return this.visitAllStatements(e.bodyStmts,t)}catch(r){var n=t.createChildWihtLocalVars();return n.vars.set(Cc,r),n.vars.set(Pc,r.stack),this.visitAllStatements(e.catchStmts,n)}},StatementInterpreter.prototype.visitThrowStmt=function(e,t){throw e.error.visitExpression(this,t)},StatementInterpreter.prototype.visitCommentStmt=function(e,t){return null},StatementInterpreter.prototype.visitInstantiateExpr=function(e,t){var r=this.visitAllExpressions(e.args,t),n=e.classExpr.visitExpression(this,t);return new(n.bind.apply(n,[void 0].concat(r)))},StatementInterpreter.prototype.visitLiteralExpr=function(e,t){return e.value},StatementInterpreter.prototype.visitExternalExpr=function(e,t){return e.value.reference},StatementInterpreter.prototype.visitConditionalExpr=function(e,t){return e.condition.visitExpression(this,t)?e.trueCase.visitExpression(this,t):isPresent(e.falseCase)?e.falseCase.visitExpression(this,t):null},StatementInterpreter.prototype.visitNotExpr=function(e,t){return!e.condition.visitExpression(this,t)},StatementInterpreter.prototype.visitCastExpr=function(e,t){return e.value.visitExpression(this,t)},StatementInterpreter.prototype.visitFunctionExpr=function(e,t){var r=e.params.map(function(e){return e.name});return _declareFn(r,e.statements,t,this)},StatementInterpreter.prototype.visitDeclareFunctionStmt=function(e,t){var r=e.params.map(function(e){return e.name});return t.vars.set(e.name,_declareFn(r,e.statements,t,this)),null},StatementInterpreter.prototype.visitBinaryOperatorExpr=function(e,t){var r=this,n=function(){return e.lhs.visitExpression(r,t)},i=function(){return e.rhs.visitExpression(r,t)};switch(e.operator){case Q.Equals:return n()==i();case Q.Identical:return n()===i();case Q.NotEquals:return n()!=i();case Q.NotIdentical:return n()!==i();case Q.And:return n()&&i();case Q.Or:return n()||i();case Q.Plus:return n()+i();case Q.Minus:return n()-i();case Q.Divide:return n()/i();case Q.Multiply:return n()*i();case Q.Modulo:return n()%i();case Q.Lower:return n()<i();case Q.LowerEquals:return n()<=i();case Q.Bigger:return n()>i();case Q.BiggerEquals:return n()>=i();default:throw new Error("Unknown operator "+e.operator)}},StatementInterpreter.prototype.visitReadPropExpr=function(e,t){var r,n=e.receiver.visitExpression(this,t);return r=n[e.name]},StatementInterpreter.prototype.visitReadKeyExpr=function(e,t){var r=e.receiver.visitExpression(this,t),n=e.index.visitExpression(this,t);return r[n]},StatementInterpreter.prototype.visitLiteralArrayExpr=function(e,t){return this.visitAllExpressions(e.entries,t)},StatementInterpreter.prototype.visitLiteralMapExpr=function(e,t){var r=this,n={};return e.entries.forEach(function(e){return n[e[0]]=e[1].visitExpression(r,t)}),n},StatementInterpreter.prototype.visitAllExpressions=function(e,t){var r=this;return e.map(function(e){return e.visitExpression(r,t)})},StatementInterpreter.prototype.visitAllStatements=function(e,t){for(var r=0;r<e.length;r++){var n=e[r],i=n.visitStatement(this,t);if(i instanceof wc)return i}return null},StatementInterpreter}(),Cc="error",Pc="stack",Tc=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},xc=function(e){function AbstractJsEmitterVisitor(){e.call(this,!1)}return Tc(AbstractJsEmitterVisitor,e),AbstractJsEmitterVisitor.prototype.visitDeclareClassStmt=function(e,t){var r=this;return t.pushClass(e),this._visitClassConstructor(e,t),isPresent(e.parent)&&(t.print(e.name+".prototype = Object.create("),e.parent.visitExpression(this,t),t.println(".prototype);")),e.getters.forEach(function(n){return r._visitClassGetter(e,n,t)}),e.methods.forEach(function(n){return r._visitClassMethod(e,n,t)}),t.popClass(),null},AbstractJsEmitterVisitor.prototype._visitClassConstructor=function(e,t){t.print("function "+e.name+"("),isPresent(e.constructorMethod)&&this._visitParams(e.constructorMethod.params,t),t.println(") {"),t.incIndent(),isPresent(e.constructorMethod)&&e.constructorMethod.body.length>0&&(t.println("var self = this;"),this.visitAllStatements(e.constructorMethod.body,t)),t.decIndent(),t.println("}")},AbstractJsEmitterVisitor.prototype._visitClassGetter=function(e,t,r){r.println("Object.defineProperty("+e.name+".prototype, '"+t.name+"', { get: function() {"),r.incIndent(),t.body.length>0&&(r.println("var self = this;"),this.visitAllStatements(t.body,r)),r.decIndent(),r.println("}});")},AbstractJsEmitterVisitor.prototype._visitClassMethod=function(e,t,r){r.print(e.name+".prototype."+t.name+" = function("),this._visitParams(t.params,r),r.println(") {"),r.incIndent(),t.body.length>0&&(r.println("var self = this;"),this.visitAllStatements(t.body,r)),r.decIndent(),r.println("};")},AbstractJsEmitterVisitor.prototype.visitReadVarExpr=function(t,r){if(t.builtin===ie.This)r.print("self");else{if(t.builtin===ie.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");e.prototype.visitReadVarExpr.call(this,t,r)}return null},AbstractJsEmitterVisitor.prototype.visitDeclareVarStmt=function(e,t){return t.print("var "+e.name+" = "),e.value.visitExpression(this,t),t.println(";"),null},AbstractJsEmitterVisitor.prototype.visitCastExpr=function(e,t){return e.value.visitExpression(this,t),null},AbstractJsEmitterVisitor.prototype.visitInvokeFunctionExpr=function(t,r){var n=t.fn;return n instanceof ae&&n.builtin===ie.Super?(r.currentClass.parent.visitExpression(this,r),r.print(".call(this"),t.args.length>0&&(r.print(", "),this.visitAllExpressions(t.args,r,",")),r.print(")")):e.prototype.visitInvokeFunctionExpr.call(this,t,r),null},AbstractJsEmitterVisitor.prototype.visitFunctionExpr=function(e,t){return t.print("function("),this._visitParams(e.params,t),t.println(") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.print("}"),null},AbstractJsEmitterVisitor.prototype.visitDeclareFunctionStmt=function(e,t){return t.print("function "+e.name+"("),this._visitParams(e.params,t),t.println(") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.println("}"),null},AbstractJsEmitterVisitor.prototype.visitTryCatchStmt=function(e,t){t.println("try {"),t.incIndent(),this.visitAllStatements(e.bodyStmts,t),t.decIndent(),t.println("} catch ("+hc.name+") {"),t.incIndent();var r=[fc.set(hc.prop("stack")).toDeclStmt(null,[pe.Final])].concat(e.catchStmts);return this.visitAllStatements(r,t),t.decIndent(),t.println("}"),null},AbstractJsEmitterVisitor.prototype._visitParams=function(e,t){this.visitAllObjects(function(e){return t.print(e.name)},e,t,",")},AbstractJsEmitterVisitor.prototype.getBuiltinMethodName=function(e){var t;switch(e){case se.ConcatArray:t="concat";break;case se.SubscribeObservable:t="subscribe";break;case se.Bind:t="bind";break;default:throw new Error("Unknown builtin method: "+e)}return t},AbstractJsEmitterVisitor}(vc),Ac=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},Oc=function(e){function JitEmitterVisitor(){e.apply(this,arguments),this._evalArgNames=[],this._evalArgValues=[]}return Ac(JitEmitterVisitor,e),JitEmitterVisitor.prototype.getArgs=function(){for(var e={},t=0;t<this._evalArgNames.length;t++)e[this._evalArgNames[t]]=this._evalArgValues[t];return e},JitEmitterVisitor.prototype.visitExternalExpr=function(e,t){var r=e.value.reference,n=this._evalArgValues.indexOf(r);if(n===-1){n=this._evalArgValues.length,this._evalArgValues.push(r);var i=isPresent(e.value.name)?sanitizeIdentifier(e.value.name):"val";this._evalArgNames.push(sanitizeIdentifier("jit_"+i+n))}return t.print(this._evalArgNames[n]),null},JitEmitterVisitor}(xc),Ic=function(){function ShadowCss(){this.strictStyling=!0}return ShadowCss.prototype.shimCssText=function(e,t,r){void 0===r&&(r="");var n=extractSourceMappingUrl(e);return e=stripComments(e),e=this._insertDirectives(e),this._scopeCssText(e,t,r)+n},ShadowCss.prototype._insertDirectives=function(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)},ShadowCss.prototype._insertPolyfillDirectivesInCssText=function(e){return s.replaceAllMapped(e,Rc,function(e){return e[1]+"{"})},ShadowCss.prototype._insertPolyfillRulesInCssText=function(e){return s.replaceAllMapped(e,Mc,function(e){var t=e[0];return t=s.replace(t,e[1],""),t=s.replace(t,e[2],""),e[3]+t})},ShadowCss.prototype._scopeCssText=function(e,t,r){var n=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),isPresent(t)&&(e=this._scopeSelectors(e,t,r)),e=e+"\n"+n,e.trim()},ShadowCss.prototype._extractUnscopedRulesFromCssText=function(e){var t,r="";for(kc.lastIndex=0;null!==(t=kc.exec(e));){var n=t[0];n=s.replace(n,t[2],""),n=s.replace(n,t[1],t[3]),r+=n+"\n\n"}return r},ShadowCss.prototype._convertColonHost=function(e){return this._convertColonRule(e,jc,this._colonHostPartReplacer)},ShadowCss.prototype._convertColonHostContext=function(e){return this._convertColonRule(e,Lc,this._colonHostContextPartReplacer)},ShadowCss.prototype._convertColonRule=function(e,t,r){return s.replaceAllMapped(e,t,function(e){if(isPresent(e[2])){for(var t=e[2].split(","),n=[],i=0;i<t.length;i++){var o=t[i];if(isBlank(o))break;o=o.trim(),n.push(r(Fc,o,e[3]))}return n.join(",")}return Fc+e[3]})},ShadowCss.prototype._colonHostContextPartReplacer=function(e,t,r){return s.contains(t,Nc)?this._colonHostPartReplacer(e,t,r):e+t+r+", "+t+" "+e+r},ShadowCss.prototype._colonHostPartReplacer=function(e,t,r){return e+s.replace(t,Nc,"")+r},ShadowCss.prototype._convertShadowDOMSelectors=function(e){return Bc.reduce(function(e,t){return s.replaceAll(e,t," ")},e)},ShadowCss.prototype._scopeSelectors=function(e,t,r){var n=this;return processRules(e,function(e){var i=e.selector,o=e.content;return"@"!=e.selector[0]||e.selector.startsWith("@page")?i=n._scopeSelector(e.selector,t,r,n.strictStyling):(e.selector.startsWith("@media")||e.selector.startsWith("@supports"))&&(o=n._scopeSelectors(e.content,t,r)),new Yc(i,o)})},ShadowCss.prototype._scopeSelector=function(e,t,r,n){var i=this;return e.split(",").map(function(e){return e.trim().split(Wc)}).map(function(e){var o=e[0],s=e.slice(1),a=function(e){return i._selectorNeedsScoping(e,t)?n?i._applyStrictSelectorScope(e,t,r):i._applySelectorScope(e,t,r):e};return[a(o)].concat(s).join(" ")}).join(", ")},ShadowCss.prototype._selectorNeedsScoping=function(e,t){var r=this._makeScopeMatcher(t);return!r.test(e)},ShadowCss.prototype._makeScopeMatcher=function(e){var t=/\[/g,r=/\]/g;return e=s.replaceAll(e,t,"\\["),e=s.replaceAll(e,r,"\\]"),new RegExp("^("+e+")"+Uc,"m")},ShadowCss.prototype._applySelectorScope=function(e,t,r){return this._applySimpleSelectorScope(e,t,r)},ShadowCss.prototype._applySimpleSelectorScope=function(e,t,r){if(zc.lastIndex=0,zc.test(e)){var n=this.strictStyling?"["+r+"]":t;return e=s.replace(e,Fc,n),s.replaceAll(e,zc,n+" ")}return t+" "+e},ShadowCss.prototype._applyStrictSelectorScope=function(e,t,r){var n=this,i=/\[is=([^\]]*)\]/g;t=t.replace(i,function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];return t[0]});for(var o,s="["+t+"]",a=function(e){var i=e.trim();if(0==i.length)return"";if(e.indexOf(Fc)>-1)i=n._applySimpleSelectorScope(e,t,r);else{var o=e.replace(zc,"");if(o.length>0){var a=o.match(/([^:]*)(:*)(.*)/);null!==a&&(i=a[1]+s+a[2]+a[3])}}return i},u=/( |>|\+|~)\s*/g,c=e.indexOf(Fc),l="",p=0;null!==(o=u.exec(e));){var h=o[1],f=e.slice(p,o.index).trim(),d=p>=c?a(f):f;l+=d+" "+h+" ",p=u.lastIndex}return l+a(e.substring(p))},ShadowCss.prototype._insertPolyfillHostInCssText=function(e){return e.replace(qc,Dc).replace(Hc,Nc)},ShadowCss}(),Rc=/polyfill-next-selector[^}]*content:[\s]*?['"](.*?)['"][;\s]*}([^{]*?){/gim,Mc=/(polyfill-rule)[^}]*(content:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,kc=/(polyfill-unscoped-rule)[^}]*(content:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,Nc="-shadowcsshost",Dc="-shadowcsscontext",Vc=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",jc=new RegExp("("+Nc+Vc,"gim"),Lc=new RegExp("("+Dc+Vc,"gim"),Fc=Nc+"-no-combinator",Bc=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Wc=/(?:>>>)|(?:\/deep\/)/g,Uc="([>\\s~+[.,{:][\\s\\S]*)?$",zc=/-shadowcsshost/gim,Hc=/:host/gim,qc=/:host-context/gim,Gc=/\/\*\s*[\s\S]*?\*\//g,Kc=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,Qc=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Xc=/([{}])/g,Jc="{",Zc="}",$c="%BLOCK%",Yc=function(){
function CssRule(e,t){this.selector=e,this.content=t}return CssRule}(),el=function(){function StringWithEscapedBlocks(e,t){this.escapedString=e,this.blocks=t}return StringWithEscapedBlocks}(),tl="%COMP%",rl="_nghost-"+tl,nl="_ngcontent-"+tl,il=function(){function StylesCompileDependency(e,t,r){this.moduleUrl=e,this.isShimmed=t,this.valuePlaceholder=r}return StylesCompileDependency}(),ol=function(){function StylesCompileResult(e,t){this.componentStylesheet=e,this.externalStylesheets=t}return StylesCompileResult}(),sl=function(){function CompiledStylesheet(e,t,r,n,i){this.statements=e,this.stylesVar=t,this.dependencies=r,this.isShimmed=n,this.meta=i}return CompiledStylesheet}(),al=function(){function StyleCompiler(e){this._urlResolver=e,this._shadowCss=new Ic}return StyleCompiler.prototype.compileComponent=function(e){var t=this,r=[],n=this._compileStyles(e,new gt({styles:e.template.styles,styleUrls:e.template.styleUrls,moduleUrl:e.type.moduleUrl}),!0);return e.template.externalStylesheets.forEach(function(n){var i=t._compileStyles(e,n,!1);r.push(i)}),new ol(n,r)},StyleCompiler.prototype._compileStyles=function(e,t,n){for(var i=this,o=e.template.encapsulation===r.ViewEncapsulation.Emulated,s=t.styles.map(function(e){return literal(i._shimIfNeeded(e,o))}),a=[],u=0;u<t.styleUrls.length;u++){var c=new ht({name:getStylesVarName(null)});a.push(new il(t.styleUrls[u],o,c)),s.push(new ve(c))}var l=getStylesVarName(n?e:null),p=variable(l).set(literalArr(s,new Z(Y,[N.Const]))).toDeclStmt(null,[pe.Final]);return new sl([p],l,a,o,t)},StyleCompiler.prototype._shimIfNeeded=function(e,t){return t?this._shadowCss.shimCssText(e,nl,rl):e},StyleCompiler.decorators=[{type:r.Injectable}],StyleCompiler.ctorParameters=[{type:Gu}],StyleCompiler}(),ul=function(){function RuntimeCompiler(e,t,r,n,i,o,s,a){this._injector=e,this._metadataResolver=t,this._templateNormalizer=r,this._templateParser=n,this._styleCompiler=i,this._viewCompiler=o,this._ngModuleCompiler=s,this._compilerConfig=a,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledNgModuleCache=new Map}return Object.defineProperty(RuntimeCompiler.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),RuntimeCompiler.prototype.compileModuleSync=function(e){return this._compileModuleAndComponents(e,!0).syncResult},RuntimeCompiler.prototype.compileModuleAsync=function(e){return this._compileModuleAndComponents(e,!1).asyncResult},RuntimeCompiler.prototype.compileModuleAndAllComponentsSync=function(e){return this._compileModuleAndAllComponents(e,!0).syncResult},RuntimeCompiler.prototype.compileModuleAndAllComponentsAsync=function(e){return this._compileModuleAndAllComponents(e,!1).asyncResult},RuntimeCompiler.prototype._compileModuleAndComponents=function(e,t){var r=this._compileComponents(e,t),n=this._compileModule(e);return new Ze(n,r.then(function(){return n}))},RuntimeCompiler.prototype._compileModuleAndAllComponents=function(e,t){var n=this,i=this._compileComponents(e,t),o=this._compileModule(e),s=this._metadataResolver.getNgModuleMetadata(e),a=[],u=new Set;s.transitiveModule.modules.forEach(function(e){e.declaredDirectives.forEach(function(e){if(e.isComponent){var t=n._createCompiledHostTemplate(e.type.reference);u.add(t),a.push(t.proxyComponentFactory)}})});var c=new r.ModuleWithComponentFactories(o,a),l=function(){return u.forEach(function(e){n._compileTemplate(e)}),c},p=t?Promise.resolve(l()):i.then(l);return new Ze(c,p)},RuntimeCompiler.prototype._compileModule=function(e){var t=this,n=this._compiledNgModuleCache.get(e);if(!n){var i=this._metadataResolver.getNgModuleMetadata(e),o=[this._metadataResolver.getProviderMetadata(new Pt(r.Compiler,{useFactory:function(){return new ll(t,i.type.reference)}}))],s=this._ngModuleCompiler.compile(i,o);s.dependencies.forEach(function(e){e.placeholder.reference=t._assertComponentKnown(e.comp.reference,!0).proxyComponentFactory,e.placeholder.name="compFactory_"+e.comp.name}),n=this._compilerConfig.useJit?jitStatements(i.type.name+".ngfactory.js",s.statements,s.ngModuleFactoryVar):interpretStatements(s.statements,s.ngModuleFactoryVar),this._compiledNgModuleCache.set(i.type.reference,n)}return n},RuntimeCompiler.prototype._compileComponents=function(e,t){var r=this,n=new Set,i=[],o=this._metadataResolver.getNgModuleMetadata(e);o.transitiveModule.modules.forEach(function(e){e.declaredDirectives.forEach(function(t){t.isComponent&&(n.add(r._createCompiledTemplate(t,e)),t.entryComponents.forEach(function(e){n.add(r._createCompiledHostTemplate(e.reference))}))}),e.entryComponents.forEach(function(e){n.add(r._createCompiledHostTemplate(e.reference))})}),n.forEach(function(e){if(e.loading){if(t)throw new Ko(e.compType.reference);i.push(e.loading)}});var s=function(){n.forEach(function(e){r._compileTemplate(e)})};return t?(s(),Promise.resolve(null)):Promise.all(i).then(s)},RuntimeCompiler.prototype.clearCacheFor=function(e){this._compiledNgModuleCache["delete"](e),this._metadataResolver.clearCacheFor(e),this._compiledHostTemplateCache["delete"](e);var t=this._compiledTemplateCache.get(e);t&&(this._templateNormalizer.clearCacheFor(t.normalizedCompMeta),this._compiledTemplateCache["delete"](e))},RuntimeCompiler.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._templateNormalizer.clearCache(),this._compiledNgModuleCache.clear()},RuntimeCompiler.prototype._createCompiledHostTemplate=function(e){var t=this._compiledHostTemplateCache.get(e);if(isBlank(t)){var r=this._metadataResolver.getDirectiveMetadata(e);assertComponent(r);var n=createHostComponentMeta(r);t=new cl((!0),r.selector,r.type,[r],[],[],this._templateNormalizer.normalizeDirective(n)),this._compiledHostTemplateCache.set(e,t)}return t},RuntimeCompiler.prototype._createCompiledTemplate=function(e,t){var r=this._compiledTemplateCache.get(e.type.reference);return isBlank(r)&&(assertComponent(e),r=new cl((!1),e.selector,e.type,t.transitiveModule.directives,t.transitiveModule.pipes,t.schemas,this._templateNormalizer.normalizeDirective(e)),this._compiledTemplateCache.set(e.type.reference,r)),r},RuntimeCompiler.prototype._assertComponentKnown=function(e,t){var r=t?this._compiledHostTemplateCache.get(e):this._compiledTemplateCache.get(e);if(!r)throw t?new Error("Illegal state: Compiled view for component "+stringify(e)+" does not exist!"):new Error("Component "+stringify(e)+" is not part of any NgModule or the module has not been imported into your module.");return r},RuntimeCompiler.prototype._assertComponentLoaded=function(e,t){var r=this._assertComponentKnown(e,t);if(r.loading)throw new Error("Illegal state: CompiledTemplate for "+stringify(e)+" (isHost: "+t+") is still loading!");return r},RuntimeCompiler.prototype._compileTemplate=function(e){var t=this;if(!e.isCompiled){var r=e.normalizedCompMeta,n=new Map,i=this._styleCompiler.compileComponent(r);i.externalStylesheets.forEach(function(e){n.set(e.meta.moduleUrl,e)}),this._resolveStylesCompileResult(i.componentStylesheet,n);var o=e.viewComponentTypes.map(function(e){return t._assertComponentLoaded(e,!1).normalizedCompMeta}),s=this._templateParser.parse(r,r.template.template,e.viewDirectives.concat(o),e.viewPipes,e.schemas,r.type.name),a=this._viewCompiler.compileComponent(r,s,variable(i.componentStylesheet.stylesVar),e.viewPipes);a.dependencies.forEach(function(e){var r;if(e instanceof Du){var n=e;r=t._assertComponentLoaded(n.comp.reference,!1),n.placeholder.reference=r.proxyViewFactory,n.placeholder.name="viewFactory_"+n.comp.name}else if(e instanceof Vu){var i=e;r=t._assertComponentLoaded(i.comp.reference,!0),i.placeholder.reference=r.proxyComponentFactory,i.placeholder.name="compFactory_"+i.comp.name}});var u,c=i.componentStylesheet.statements.concat(a.statements);u=this._compilerConfig.useJit?jitStatements(""+e.compType.name+(e.isHost?"_Host":"")+".ngfactory.js",c,a.viewFactoryVar):interpretStatements(c,a.viewFactoryVar),e.compiled(u)}},RuntimeCompiler.prototype._resolveStylesCompileResult=function(e,t){var r=this;e.dependencies.forEach(function(e,n){var i=t.get(e.moduleUrl),o=r._resolveAndEvalStylesCompileResult(i,t);e.valuePlaceholder.reference=o,e.valuePlaceholder.name="importedStyles"+n})},RuntimeCompiler.prototype._resolveAndEvalStylesCompileResult=function(e,t){return this._resolveStylesCompileResult(e,t),this._compilerConfig.useJit?jitStatements(e.meta.moduleUrl+".css.js",e.statements,e.stylesVar):interpretStatements(e.statements,e.stylesVar)},RuntimeCompiler.decorators=[{type:r.Injectable}],RuntimeCompiler.ctorParameters=[{type:r.Injector},{type:rc},{type:Qu},{type:$s},{type:al},{type:Fu},{type:sc},{type:aa}],RuntimeCompiler}(),cl=function(){function CompiledTemplate(e,t,n,i,o,s,a){var u=this;this.isHost=e,this.compType=n,this.viewPipes=o,this.schemas=s,this._viewFactory=null,this.loading=null,this._normalizedCompMeta=null,this.isCompiled=!1,this.isCompiledWithDeps=!1,this.viewComponentTypes=[],this.viewDirectives=[],i.forEach(function(e){e.isComponent?u.viewComponentTypes.push(e.type.reference):u.viewDirectives.push(e)}),this.proxyViewFactory=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];if(!u._viewFactory)throw new Error("Illegal state: CompiledTemplate for "+stringify(u.compType)+" is not compiled yet!");return u._viewFactory.apply(null,e)},this.proxyComponentFactory=e?new r.ComponentFactory(t,this.proxyViewFactory,n.reference):null,a.syncResult?this._normalizedCompMeta=a.syncResult:this.loading=a.asyncResult.then(function(e){u._normalizedCompMeta=e,u.loading=null})}return Object.defineProperty(CompiledTemplate.prototype,"normalizedCompMeta",{get:function(){if(this.loading)throw new Error("Template is still loading for "+this.compType.name+"!");return this._normalizedCompMeta},enumerable:!0,configurable:!0}),CompiledTemplate.prototype.compiled=function(e){this._viewFactory=e,this.isCompiled=!0},CompiledTemplate.prototype.depsCompiled=function(){this.isCompiledWithDeps=!0},CompiledTemplate}(),ll=function(){function ModuleBoundCompiler(e,t){this._delegate=e,this._ngModule=t}return Object.defineProperty(ModuleBoundCompiler.prototype,"_injector",{get:function(){return this._delegate.injector},enumerable:!0,configurable:!0}),ModuleBoundCompiler.prototype.compileModuleSync=function(e){return this._delegate.compileModuleSync(e)},ModuleBoundCompiler.prototype.compileModuleAsync=function(e){return this._delegate.compileModuleAsync(e)},ModuleBoundCompiler.prototype.compileModuleAndAllComponentsSync=function(e){return this._delegate.compileModuleAndAllComponentsSync(e)},ModuleBoundCompiler.prototype.compileModuleAndAllComponentsAsync=function(e){return this._delegate.compileModuleAndAllComponentsAsync(e)},ModuleBoundCompiler.prototype.clearCache=function(){this._delegate.clearCache()},ModuleBoundCompiler.prototype.clearCacheFor=function(e){this._delegate.clearCacheFor(e)},ModuleBoundCompiler}(),pl={};registerContext(r.SecurityContext.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),registerContext(r.SecurityContext.STYLE,["*|style"]),registerContext(r.SecurityContext.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),registerContext(r.SecurityContext.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"]);/**
	   * @license
	   * Copyright Google Inc. All Rights Reserved.
	   *
	   * Use of this source code is governed by an MIT-style license that can be
	   * found in the LICENSE file at https://angular.io/license
	   */
var hl=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},fl="boolean",dl="number",ml="string",vl="object",yl=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","keygen^[HTMLElement]|!autofocus,challenge,!disabled,keytype,name","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:cursor^:svg:|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime"],bl={"class":"className",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},gl=function(e){function DomElementSchemaRegistry(){var t=this;e.call(this),this._schema={},yl.forEach(function(e){var r={},n=e.split("|"),i=n[0],o=n[1],s=o.split(","),a=i.split("^"),u=a[0],c=a[1];u.split(",").forEach(function(e){return t._schema[e.toLowerCase()]=r});var l=c&&t._schema[c.toLowerCase()];l&&Object.keys(l).forEach(function(e){r[e]=l[e]}),s.forEach(function(e){if(e.length>0)switch(e[0]){case"*":break;case"!":r[e.substring(1)]=fl;break;case"#":r[e.substring(1)]=dl;break;case"%":r[e.substring(1)]=vl;break;default:r[e]=ml}})})}return hl(DomElementSchemaRegistry,e),DomElementSchemaRegistry.prototype.hasProperty=function(e,t,n){if(n.some(function(e){return e.name===r.NO_ERRORS_SCHEMA.name}))return!0;if(e.indexOf("-")>-1){if("ng-container"===e||"ng-content"===e)return!1;if(n.some(function(e){return e.name===r.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}var i=this._schema[e.toLowerCase()]||this._schema.unknown;return!!i[t]},DomElementSchemaRegistry.prototype.hasElement=function(e,t){if(t.some(function(e){return e.name===r.NO_ERRORS_SCHEMA.name}))return!0;if(e.indexOf("-")>-1){if("ng-container"===e||"ng-content"===e)return!0;if(t.some(function(e){return e.name===r.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!this._schema[e.toLowerCase()]},DomElementSchemaRegistry.prototype.securityContext=function(e,t){e=e.toLowerCase(),t=t.toLowerCase();var n=pl[e+"|"+t];return n?n:(n=pl["*|"+t],n?n:r.SecurityContext.NONE)},DomElementSchemaRegistry.prototype.getMappedPropName=function(e){return bl[e]||e},DomElementSchemaRegistry.prototype.getDefaultComponentElementName=function(){return"ng-component"},DomElementSchemaRegistry.decorators=[{type:r.Injectable}],DomElementSchemaRegistry.ctorParameters=[],DomElementSchemaRegistry}(ps),_l={get:function(e){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+e+'"')}},Sl=[{provide:Io,useValue:Oo},{provide:Xi,useExisting:Io},{provide:zu,useValue:_l},Ao,sn,hn,es,{provide:Hi,useFactory:function(e,t,r){return new Hi(e,t,r)},deps:[es,[new r.Optional,new r.Inject(r.TRANSLATIONS)],[new r.Optional,new r.Inject(r.TRANSLATIONS_FORMAT)]]},$s,Qu,rc,qu,al,Fu,sc,{provide:aa,useValue:new aa},ul,{provide:r.Compiler,useExisting:ul},gl,{provide:ps,useExisting:gl},Gu,Ju,ec,Yu],wl=function(){function RuntimeCompilerFactory(e){this._defaultOptions=[{useDebug:r.isDevMode(),useJit:!0,defaultEncapsulation:r.ViewEncapsulation.Emulated}].concat(e)}return RuntimeCompilerFactory.prototype.createCompiler=function(e){void 0===e&&(e=[]);var t=_mergeOptions(this._defaultOptions.concat(e)),n=r.ReflectiveInjector.resolveAndCreate([Sl,{provide:aa,useFactory:function(){return new aa({genDebugInfo:t.useDebug,useJit:t.useJit,defaultEncapsulation:t.defaultEncapsulation,logBindingUpdate:t.useDebug})},deps:[]},t.providers]);return n.get(r.Compiler)},RuntimeCompilerFactory.decorators=[{type:r.Injectable}],RuntimeCompilerFactory.ctorParameters=[{type:Array,decorators:[{type:r.Inject,args:[r.COMPILER_OPTIONS]}]}],RuntimeCompilerFactory}(),El=r.createPlatformFactory(r.platformCore,"coreDynamic",[{provide:r.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:r.CompilerFactory,useClass:wl},{provide:r.PLATFORM_INITIALIZER,useValue:_initReflector,multi:!0}]),Cl=/asset:([^\/]+)\/([^\/]+)\/(.+)/,Pl=function(){function ImportGenerator(){}return ImportGenerator.parseAssetUrl=function(e){return Tl.parse(e)},ImportGenerator}(),Tl=function(){function AssetUrl(e,t,r){this.packageName=e,this.firstLevelDir=t,this.modulePath=r}return AssetUrl.parse=function(e,t){void 0===t&&(t=!0);var r=e.match(Cl);if(null!==r)return new AssetUrl(r[1],r[2],r[3]);if(t)return null;throw new Error("Url "+e+" is not a valid asset: url")},AssetUrl}(),xl={SelectorMatcher:U,CssSelector:W,AssetUrl:Tl,ImportGenerator:Pl,CompileMetadataResolver:rc,HtmlParser:es,InterpolationConfig:tn,DirectiveNormalizer:Qu,Lexer:sn,Parser:hn,ParseLocation:vn,ParseError:_n,ParseErrorLevel:nn,ParseSourceFile:yn,ParseSourceSpan:bn,TemplateParser:$s,DomElementSchemaRegistry:gl,StyleCompiler:al,ViewCompiler:Fu,NgModuleCompiler:sc,TypeScriptEmitter:gc};t.COMPILER_PROVIDERS=Sl,t.CompileDiDependencyMetadata=ft,t.CompileDirectiveMetadata=St,t.CompileFactoryMetadata=mt,t.CompileIdentifierMetadata=ht,t.CompileMetadataWithIdentifier=et,t.CompilePipeMetadata=wt,t.CompileProviderMetadata=dt,t.CompileQueryMetadata=bt,t.CompileTemplateMetadata=_t,t.CompileTokenMetadata=vt,t.CompileTypeMetadata=yt,t.CompilerConfig=aa,t.DEFAULT_PACKAGE_URL_PROVIDER=qu,t.DirectiveResolver=Ju,t.NgModuleResolver=Yu,t.OfflineCompiler=Uu,t.PipeResolver=ec,t.RenderTypes=ua,t.ResourceLoader=zu,t.RuntimeCompiler=ul,t.SourceModule=Bu,t.TEMPLATE_TRANSFORMS=Xs,t.UrlResolver=Gu,t.createOfflineCompileUrlResolver=createOfflineCompileUrlResolver,t.platformCoreDynamic=El,t.DEFAULT_INTERPOLATION_CONFIG=rn,t.InterpolationConfig=tn,t.ElementSchemaRegistry=ps,t.I18NHtmlParser=Hi,t.MessageBundle=ui,t.Xliff=Ai,t.Xmb=Vi,t.Xtb=Wi,t.TextAst=c,t.BoundTextAst=l,t.AttrAst=p,t.BoundElementPropertyAst=h,t.BoundEventAst=f,t.ReferenceAst=d,t.VariableAst=m,t.ElementAst=v,t.EmbeddedTemplateAst=y,t.BoundDirectivePropertyAst=b,t.DirectiveAst=g,t.ProviderAst=_,t.NgContentAst=S,t.templateVisitAll=templateVisitAll,t.__compiler_private__=xl})}).call(t,function(){return this}())},function(e,t,r){(function(e){/**
	 * @license Angular v2.0.0
	 * (c) 2010-2016 Google, Inc. https://angular.io/
	 * License: MIT
	 */
!function(e,n){n(t,r(4),r(5))}(this,function(t,r,n){"use strict";function scheduleMicroTask(e){Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function getTypeNameForDebugging(e){return e.name?e.name:typeof e}function isPresent(e){return void 0!==e&&null!==e}function isBlank(e){return void 0===e||null===e}function isString(e){return"string"==typeof e}function isFunction(e){return"function"==typeof e}function isPromise(e){return isPresent(e)&&isFunction(e.then)}function isArray(e){return Array.isArray(e)}function stringify(e){if("string"==typeof e)return e;if(void 0===e||null===e)return""+e;if(e.overriddenName)return e.overriddenName;if(e.name)return e.name;var t=e.toString(),r=t.indexOf("\n");return r===-1?t:t.substring(0,r)}function looseIdentical(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function getMapKey(e){return e}function isJsObject(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function print(e){console.log(e)}function warn(e){console.warn(e)}function getSymbolIterator(){if(isBlank(u))if(isPresent(i.Symbol)&&isPresent(Symbol.iterator))u=Symbol.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),t=0;t<e.length;++t){var r=e[t];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(u=r)}return u}function isPrimitive(e){return!isJsObject(e)}function extractAnnotation(e){return isFunction(e)&&e.hasOwnProperty("annotation")&&(e=e.annotation),e}function applyParams(e,t){if(e===Object||e===String||e===Function||e===Number||e===Array)throw new Error("Can not use native "+stringify(e)+" as constructor");if(isFunction(e))return e;if(e instanceof Array){var r=e,n=r.length-1,i=e[n];if(!isFunction(i))throw new Error("Last position of Class method array must be Function in key "+t+" was '"+stringify(i)+"'");if(n!=i.length)throw new Error("Number of annotations ("+n+") does not match number of arguments ("+i.length+") in the function: "+stringify(i));for(var o=[],s=0,a=r.length-1;s<a;s++){var u=[];o.push(u);var c=r[s];if(c instanceof Array)for(var p=0;p<c.length;p++)u.push(extractAnnotation(c[p]));else isFunction(c)?u.push(extractAnnotation(c)):u.push(c)}return l.defineMetadata("parameters",o,i),i}throw new Error("Only Function or Array is supported in Class definition for key '"+t+"' is '"+stringify(e)+"'")}function Class(e){var t=applyParams(e.hasOwnProperty("constructor")?e.constructor:void 0,"constructor"),r=t.prototype;if(e.hasOwnProperty("extends")){if(!isFunction(e["extends"]))throw new Error("Class definition 'extends' property must be a constructor function was: "+stringify(e["extends"]));t.prototype=r=Object.create(e["extends"].prototype)}for(var n in e)"extends"!=n&&"prototype"!=n&&e.hasOwnProperty(n)&&(r[n]=applyParams(e[n],n));this&&this.annotations instanceof Array&&l.defineMetadata("annotations",this.annotations,t);var i=t.name;return i&&"constructor"!==i||(t.overriddenName="class"+c++),t}function makeDecorator(e,t,r,n){function DecoratorFactory(e){if(!l||!l.getMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof DecoratorFactory)return i.call(this,e),this;var t=new DecoratorFactory(e),r=isFunction(this)&&this.annotations instanceof Array?this.annotations:[];r.push(t);var o=function(e){var r=l.getOwnMetadata("annotations",e)||[];return r.push(t),l.defineMetadata("annotations",r,e),e};return o.annotations=r,o.Class=Class,n&&n(o),o}void 0===n&&(n=null);var i=makeMetadataCtor([t]);return r&&(DecoratorFactory.prototype=Object.create(r.prototype)),DecoratorFactory.prototype.toString=function(){return"@"+e},DecoratorFactory.annotationCls=DecoratorFactory,DecoratorFactory}function makeMetadataCtor(e){function ctor(){for(var t=this,r=[],n=0;n<arguments.length;n++)r[n-0]=arguments[n];e.forEach(function(e,n){var i=r[n];if(Array.isArray(e)){var o=i&&void 0!==i?i:e[1];t[e[0]]=o}else for(var s in e){var o=i&&void 0!==i[s]?i[s]:e[s];t[s]=o}})}return ctor}function makeParamDecorator(e,t,r){function ParamDecoratorFactory(){function ParamDecorator(e,t,n){for(var i=l.getMetadata("parameters",e)||[];i.length<=n;)i.push(null);i[n]=i[n]||[];var o=i[n];return o.push(r),l.defineMetadata("parameters",i,e),e}for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];if(this instanceof ParamDecoratorFactory)return n.apply(this,e),this;var r=new((i=ParamDecoratorFactory).bind.apply(i,[void 0].concat(e)));return ParamDecorator.annotation=r,ParamDecorator;var i}var n=makeMetadataCtor(t);return r&&(ParamDecoratorFactory.prototype=Object.create(r.prototype)),ParamDecoratorFactory.prototype.toString=function(){return"@"+e},ParamDecoratorFactory.annotationCls=ParamDecoratorFactory,ParamDecoratorFactory}function makePropDecorator(e,t,r){function PropDecoratorFactory(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];if(this instanceof PropDecoratorFactory)return n.apply(this,e),this;var r=new((i=PropDecoratorFactory).bind.apply(i,[void 0].concat(e)));return function(e,t){var n=l.getOwnMetadata("propMetadata",e.constructor)||{};n[t]=n[t]||[],n[t].unshift(r),l.defineMetadata("propMetadata",n,e.constructor)};var i}var n=makeMetadataCtor(t);return r&&(PropDecoratorFactory.prototype=Object.create(r.prototype)),PropDecoratorFactory.prototype.toString=function(){return"@"+e},PropDecoratorFactory.annotationCls=PropDecoratorFactory,PropDecoratorFactory}function isDefaultChangeDetectionStrategy(e){return isBlank(e)||e===t.ChangeDetectionStrategy.Default}function forwardRef(e){return e.__forward_ref__=forwardRef,e.toString=function(){return stringify(this())},e}function resolveForwardRef(e){return isFunction(e)&&e.hasOwnProperty("__forward_ref__")&&e.__forward_ref__===forwardRef?e():e}function unimplemented(){throw new Error("unimplemented")}function _flattenArray(e,t){if(isPresent(e))for(var r=0;r<e.length;r++){var n=e[r];isArray(n)?_flattenArray(n,t):t.push(n)}return t}function isListLikeIterable(e){return!!isJsObject(e)&&(isArray(e)||!(e instanceof re)&&getSymbolIterator()in e)}function areIterablesEqual(e,t,r){for(var n=e[getSymbolIterator()](),i=t[getSymbolIterator()]();;){var o=n.next(),s=i.next();if(o.done&&s.done)return!0;if(o.done||s.done)return!1;if(!r(o.value,s.value))return!1}}function iterateListLike(e,t){if(isArray(e))for(var r=0;r<e.length;r++)t(e[r]);else for(var n,i=e[getSymbolIterator()]();!(n=i.next()).done;)t(n.value)}function findFirstClosedCycle(e){for(var t=[],r=0;r<e.length;++r){if(le.contains(t,e[r]))return t.push(e[r]),t;t.push(e[r])}return t}function constructResolvingPath(e){if(e.length>1){var t=findFirstClosedCycle(le.reversed(e)),r=t.map(function(e){return stringify(e.token)});return" ("+r.join(" -> ")+")"}return""}function convertTsickleDecoratorIntoMetadata(e){return e?e.map(function(e){var t=e.type,r=t.annotationCls,n=e.args?e.args:[];return new(r.bind.apply(r,[void 0].concat(n)))}):[]}function _mergeMaps(e,t){ce.forEach(t,function(t,r){return e.set(r,t)})}function resolveReflectiveFactory(e){var t,r;if(isPresent(e.useClass)){var n=resolveForwardRef(e.useClass);t=Ie.factory(n),r=_dependenciesFor(n)}else isPresent(e.useExisting)?(t=function(e){return e},r=[Re.fromKey(we.get(e.useExisting))]):isPresent(e.useFactory)?(t=e.useFactory,r=constructDependencies(e.useFactory,e.deps)):(t=function(){return e.useValue},r=Me);return new Ne(t,r)}function resolveReflectiveProvider(e){return new ke(we.get(e.provide),[resolveReflectiveFactory(e)],e.multi)}function resolveReflectiveProviders(e){var t=_normalizeProviders(e,[]),r=t.map(resolveReflectiveProvider);return ue.values(mergeResolvedReflectiveProviders(r,new Map))}function mergeResolvedReflectiveProviders(e,t){for(var r=0;r<e.length;r++){var n=e[r],i=t.get(n.key.id);if(isPresent(i)){if(n.multiProvider!==i.multiProvider)throw new Se(i,n);if(n.multiProvider)for(var o=0;o<n.resolvedFactories.length;o++)i.resolvedFactories.push(n.resolvedFactories[o]);else t.set(n.key.id,n)}else{var s;s=n.multiProvider?new ke(n.key,le.clone(n.resolvedFactories),n.multiProvider):n,t.set(n.key.id,s)}}return t}function _normalizeProviders(e,t){return e.forEach(function(e){if(e instanceof Pe)t.push({provide:e,useClass:e});else if(e&&"object"==typeof e&&void 0!==e.provide)t.push(e);else{if(!(e instanceof Array))throw new be(e);_normalizeProviders(e,t)}}),t}function constructDependencies(e,t){if(isBlank(t))return _dependenciesFor(e);var r=t.map(function(e){return[e]});return t.map(function(t){return _extractToken(e,t,r)})}function _dependenciesFor(e){var t=Ie.parameters(e);if(isBlank(t))return[];if(t.some(isBlank))throw new ge(e,t);return t.map(function(r){return _extractToken(e,r,t)})}function _extractToken(e,t,r){var n=[],i=null,o=!1;if(!isArray(t))return t instanceof p?_createDependency(t.token,o,null,null,n):_createDependency(t,o,null,null,n);for(var s=null,a=null,u=0;u<t.length;++u){var c=t[u];c instanceof Pe?i=c:c instanceof p?i=c.token:c instanceof h?o=!0:c instanceof d?a=c:c instanceof v?a=c:c instanceof m&&(s=c)}if(i=resolveForwardRef(i),isPresent(i))return _createDependency(i,o,s,a,n);throw new ge(e,r)}function _createDependency(e,t,r,n,i){return new Re(we.get(e),t,r,n,i)}function _mapProviders(e,t){for(var r=new Array(e._proto.numberOfProviders),n=0;n<e._proto.numberOfProviders;++n)r[n]=t(e._proto.getProviderAtIndex(n));return r}function _appIdRandomProviderFactory(){return""+_randomChar()+_randomChar()+_randomChar()}function _randomChar(){return a.fromCharCode(97+s.floor(25*s.random()))}function _throwError(){throw new Error("Runtime compiler is not loaded")}function getPreviousIndex(e,t,r){var n=e.previousIndex;if(null===n)return n;var i=0;return r&&n<r.length&&(i=r[n]),n+t+i}function devModeEqual(e,t){return isListLikeIterable(e)&&isListLikeIterable(t)?areIterablesEqual(e,t,devModeEqual):!(isListLikeIterable(e)||isPrimitive(e)||isListLikeIterable(t)||isPrimitive(t))||looseIdentical(e,t)}function detectWTF(){var e=o.wtf;return!(!e||!(It=e.trace))&&(Rt=It.events,!0)}function createScope(e,t){return void 0===t&&(t=null),Rt.createScope(e,t)}function leave(e,t){return It.leaveScope(e,t),t}function startTimeRange(e,t){return It.beginTimeRange(e,t)}function endTimeRange(e){It.endTimeRange(e)}function noopScope(e,t){return null}function flattenNestedViewRenderNodes(e){return _flattenNestedViewRenderNodes(e,[])}function _flattenNestedViewRenderNodes(e,t){for(var r=0;r<e.length;r++){var n=e[r];if(n instanceof zt){var i=n;if(t.push(i.nativeElement),isPresent(i.nestedViews))for(var o=0;o<i.nestedViews.length;o++)_flattenNestedViewRenderNodes(i.nestedViews[o].rootNodesOrAppElements,t)}else t.push(n)}return t}function ensureSlotCount(e,t){var r;if(isBlank(e))r=Xt;else if(e.length<t){var n=e.length;r=le.createFixedSize(t);for(var i=0;i<t;i++)r[i]=i<n?e[i]:Xt}else r=e;return r}function interpolate(e,t,r,n,i,o,s,a,u,c,l,p,h,f,d,m,v,y,b,g){switch(e){case 1:return t+_toStringWithNull(r)+n;case 2:return t+_toStringWithNull(r)+n+_toStringWithNull(i)+o;case 3:return t+_toStringWithNull(r)+n+_toStringWithNull(i)+o+_toStringWithNull(s)+a;case 4:return t+_toStringWithNull(r)+n+_toStringWithNull(i)+o+_toStringWithNull(s)+a+_toStringWithNull(u)+c;case 5:return t+_toStringWithNull(r)+n+_toStringWithNull(i)+o+_toStringWithNull(s)+a+_toStringWithNull(u)+c+_toStringWithNull(l)+p;case 6:return t+_toStringWithNull(r)+n+_toStringWithNull(i)+o+_toStringWithNull(s)+a+_toStringWithNull(u)+c+_toStringWithNull(l)+p+_toStringWithNull(h)+f;case 7:return t+_toStringWithNull(r)+n+_toStringWithNull(i)+o+_toStringWithNull(s)+a+_toStringWithNull(u)+c+_toStringWithNull(l)+p+_toStringWithNull(h)+f+_toStringWithNull(d)+m;case 8:return t+_toStringWithNull(r)+n+_toStringWithNull(i)+o+_toStringWithNull(s)+a+_toStringWithNull(u)+c+_toStringWithNull(l)+p+_toStringWithNull(h)+f+_toStringWithNull(d)+m+_toStringWithNull(v)+y;case 9:return t+_toStringWithNull(r)+n+_toStringWithNull(i)+o+_toStringWithNull(s)+a+_toStringWithNull(u)+c+_toStringWithNull(l)+p+_toStringWithNull(h)+f+_toStringWithNull(d)+m+_toStringWithNull(v)+y+_toStringWithNull(b)+g;default:throw new Error("Does not support more than 9 expressions")}}function _toStringWithNull(e){return null!=e?e.toString():""}function checkBinding(e,t,r){if(e){if(!devModeEqual(t,r))throw new qt(t,r);return!1}return!looseIdentical(t,r)}function castByValue(e,t){return e}function pureProxy1(e){var t,r=yt;return function(n){return looseIdentical(r,n)||(r=n,t=e(n)),t}}function pureProxy2(e){var t,r=yt,n=yt;return function(i,o){return looseIdentical(r,i)&&looseIdentical(n,o)||(r=i,n=o,t=e(i,o)),t}}function pureProxy3(e){var t,r=yt,n=yt,i=yt;return function(o,s,a){return looseIdentical(r,o)&&looseIdentical(n,s)&&looseIdentical(i,a)||(r=o,n=s,i=a,t=e(o,s,a)),t}}function pureProxy4(e){var t,r,n,i,o;return r=n=i=o=yt,function(s,a,u,c){return looseIdentical(r,s)&&looseIdentical(n,a)&&looseIdentical(i,u)&&looseIdentical(o,c)||(r=s,n=a,i=u,o=c,t=e(s,a,u,c)),t}}function pureProxy5(e){var t,r,n,i,o,s;return r=n=i=o=s=yt,function(a,u,c,l,p){return looseIdentical(r,a)&&looseIdentical(n,u)&&looseIdentical(i,c)&&looseIdentical(o,l)&&looseIdentical(s,p)||(r=a,n=u,i=c,o=l,s=p,t=e(a,u,c,l,p)),t}}function pureProxy6(e){var t,r,n,i,o,s,a;return r=n=i=o=s=a=yt,function(u,c,l,p,h,f){return looseIdentical(r,u)&&looseIdentical(n,c)&&looseIdentical(i,l)&&looseIdentical(o,p)&&looseIdentical(s,h)&&looseIdentical(a,f)||(r=u,n=c,i=l,o=p,s=h,a=f,t=e(u,c,l,p,h,f)),t}}function pureProxy7(e){var t,r,n,i,o,s,a,u;return r=n=i=o=s=a=u=yt,function(c,l,p,h,f,d,m){return looseIdentical(r,c)&&looseIdentical(n,l)&&looseIdentical(i,p)&&looseIdentical(o,h)&&looseIdentical(s,f)&&looseIdentical(a,d)&&looseIdentical(u,m)||(r=c,n=l,i=p,o=h,s=f,a=d,u=m,t=e(c,l,p,h,f,d,m)),t}}function pureProxy8(e){var t,r,n,i,o,s,a,u,c;return r=n=i=o=s=a=u=c=yt,function(l,p,h,f,d,m,v,y){return looseIdentical(r,l)&&looseIdentical(n,p)&&looseIdentical(i,h)&&looseIdentical(o,f)&&looseIdentical(s,d)&&looseIdentical(a,m)&&looseIdentical(u,v)&&looseIdentical(c,y)||(r=l,n=p,i=h,o=f,s=d,a=m,u=v,c=y,t=e(l,p,h,f,d,m,v,y)),t}}function pureProxy9(e){var t,r,n,i,o,s,a,u,c,l;return r=n=i=o=s=a=u=c=l=yt,function(p,h,f,d,m,v,y,b,g){return looseIdentical(r,p)&&looseIdentical(n,h)&&looseIdentical(i,f)&&looseIdentical(o,d)&&looseIdentical(s,m)&&looseIdentical(a,v)&&looseIdentical(u,y)&&looseIdentical(c,b)&&looseIdentical(l,g)||(r=p,n=h,i=f,o=d,s=m,a=v,u=y,c=b,l=g,t=e(p,h,f,d,m,v,y,b,g)),t}}function pureProxy10(e){var t,r,n,i,o,s,a,u,c,l,p;return r=n=i=o=s=a=u=c=l=p=yt,function(h,f,d,m,v,y,b,g,_,S){return looseIdentical(r,h)&&looseIdentical(n,f)&&looseIdentical(i,d)&&looseIdentical(o,m)&&looseIdentical(s,v)&&looseIdentical(a,y)&&looseIdentical(u,b)&&looseIdentical(c,g)&&looseIdentical(l,_)&&looseIdentical(p,S)||(r=h,n=f,i=d,o=m,s=v,a=y,u=b,c=g,l=_,p=S,t=e(h,f,d,m,v,y,b,g,_,S)),t}}function setTestabilityGetter(e){vr=e}function enableProdMode(){if(gr)throw new Error("Cannot enable prod mode after platform setup.");br=!1}function isDevMode(){return gr=!0,br}function createPlatform(e){if(isPresent(Ut)&&!Ut.destroyed)throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ut=e.get(_r);var t=e.get(Je,null);return isPresent(t)&&t.forEach(function(e){return e()}),Ut}function createPlatformFactory(e,t,r){void 0===r&&(r=[]);var n=new y("Platform: "+t);return function(t){return void 0===t&&(t=[]),getPlatform()||(e?e(r.concat(t).concat({provide:n,useValue:!0})):createPlatform(Ue.resolveAndCreate(r.concat(t).concat({provide:n,useValue:!0})))),assertPlatform(n)}}function assertPlatform(e){var t=getPlatform();if(isBlank(t))throw new Error("No platform exists!");if(isPresent(t)&&isBlank(t.injector.get(e,null)))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}function destroyPlatform(){isPresent(Ut)&&!Ut.destroyed&&Ut.destroy()}function getPlatform(){return isPresent(Ut)&&!Ut.destroyed?Ut:null}function _callAndReportToErrorHandler(e,t){try{var r=t();return isPromise(r)?r["catch"](function(t){throw e.handleError(t),t}):r}catch(n){throw e.handleError(n),n}}function registerModuleFactory(e,t){var r=Ir.get(e);if(r)throw new Error("Duplicate module registered for "+e+" - "+r.moduleType.name+" vs "+t.moduleType.name);Ir.set(e,t)}function getModuleFactory(e){var t=Ir.get(e);if(!t)throw new Error("No module with ID "+e+" loaded");return t}function checkNotEmpty(e,t,r){if(!e)throw new Error("Cannot find '"+r+"' in '"+t+"'");return e}function queueAnimation(e){Br.push(e)}function triggerQueuedAnimations(){for(var e=0;e<Br.length;e++){var t=Br[e];t.play()}Br=[]}function asNativeElements(e){return e.map(function(e){return e.nativeElement})}function _queryElementChildren(e,t,r){e.childNodes.forEach(function(e){e instanceof Qr&&(t(e)&&r.push(e),_queryElementChildren(e,t,r))})}function _queryNodeChildren(e,t,r){e instanceof Qr&&e.childNodes.forEach(function(e){t(e)&&r.push(e),e instanceof Qr&&_queryNodeChildren(e,t,r)})}function getDebugNode(e){return Xr.get(e)}function indexDebugNode(e){Xr.set(e.nativeNode,e)}function removeDebugNodeFromIndex(e){Xr["delete"](e.nativeNode)}function _reflector(){return Ie}function _iterableDiffersFactory(){return Ct}function _keyValueDiffersFactory(){return Pt}function animate(e,t){void 0===t&&(t=null);var r=t;if(!isPresent(r)){var n={};r=new wn([n],1)}return new En(e,r)}function group(e){return new Tn(e)}function sequence(e){return new Pn(e)}function style(e){var t,r=null;return isString(e)?t=[e]:(t=isArray(e)?e:[e],t.forEach(function(e){var t=e.offset;isPresent(t)&&(r=null==r?parseFloat(t):r)})),new wn(t,r)}function state(e,t){return new bn(e,t)}function keyframes(e){return new Sn(e)}function transition(e,t){var r=isArray(t)?new Pn(t):t;return new gn(e,r)}function trigger(e,t){return new vn(e,t)}function prepareFinalAnimationStyles(e,t,r){void 0===r&&(r=null);var n={};return ce.forEach(t,function(e,t){n[t]=e==mn?r:e.toString()}),ce.forEach(e,function(e,t){isPresent(n[t])||(n[t]=r)}),n}function balanceAnimationKeyframes(e,t,r){var n=r.length-1,i=r[0],o=flattenStyles(i.styles.styles),s={},a=!1;ce.forEach(e,function(e,t){o[t]||(o[t]=e,s[t]=e,a=!0)});var u=ce.merge({},o),c=r[n];le.insert(c.styles.styles,0,t);var l=flattenStyles(c.styles.styles),p={},h=!1;return ce.forEach(u,function(e,t){isPresent(l[t])||(p[t]=mn,h=!0)}),h&&c.styles.styles.push(p),ce.forEach(l,function(e,t){isPresent(o[t])||(s[t]=mn,a=!0)}),a&&i.styles.styles.push(s),r}function clearStyles(e){var t={};return ce.keys(e).forEach(function(e){t[e]=null}),t}function collectAndResolveStyles(e,t){return t.map(function(t){var r={};return ce.forEach(t,function(t,n){t==rn&&(t=e[n],isPresent(t)||(t=mn)),e[n]=t,r[n]=t}),r})}function renderStyles(e,t,r){ce.forEach(r,function(r,n){t.setElementStyle(e,n,r)})}function flattenStyles(e){var t={};return e.forEach(function(e){ce.forEach(e,function(e,r){t[r]=e})}),t}function _findLastRenderNode(e){var t;if(e instanceof zt){var r=e;if(t=r.nativeElement,isPresent(r.nestedViews))for(var n=r.nestedViews.length-1;n>=0;n--){var i=r.nestedViews[n];i.rootNodesOrAppElements.length>0&&(t=_findLastRenderNode(i.rootNodesOrAppElements[i.rootNodesOrAppElements.length-1]))}}else t=e;return t}/**
	     * @license
	     * Copyright Google Inc. All Rights Reserved.
	     *
	     * Use of this source code is governed by an MIT-style license that can be
	     * found in the LICENSE file at https://angular.io/license
	     */
var i;i="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:e:window;var o=i,s=o.Math;o.assert=function(e){};var a=function(){function StringWrapper(){}return StringWrapper.fromCharCode=function(e){return String.fromCharCode(e)},StringWrapper.charCodeAt=function(e,t){return e.charCodeAt(t)},StringWrapper.split=function(e,t){return e.split(t)},StringWrapper.equals=function(e,t){return e===t},StringWrapper.stripLeft=function(e,t){if(e&&e.length){for(var r=0,n=0;n<e.length&&e[n]==t;n++)r++;e=e.substring(r)}return e},StringWrapper.stripRight=function(e,t){if(e&&e.length){for(var r=e.length,n=e.length-1;n>=0&&e[n]==t;n--)r--;e=e.substring(0,r)}return e},StringWrapper.replace=function(e,t,r){return e.replace(t,r)},StringWrapper.replaceAll=function(e,t,r){return e.replace(t,r)},StringWrapper.slice=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=null),e.slice(t,null===r?void 0:r)},StringWrapper.replaceAllMapped=function(e,t,r){return e.replace(t,function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return e.splice(-2,2),r(e)})},StringWrapper.contains=function(e,t){return e.indexOf(t)!=-1},StringWrapper.compare=function(e,t){return e<t?-1:e>t?1:0},StringWrapper}(),u=(function(){function NumberWrapper(){}return NumberWrapper.toFixed=function(e,t){return e.toFixed(t)},NumberWrapper.equal=function(e,t){return e===t},NumberWrapper.parseIntAutoRadix=function(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t},NumberWrapper.parseInt=function(e,t){if(10==t){if(/^(\-|\+)?[0-9]+$/.test(e))return parseInt(e,t)}else if(16==t){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(e))return parseInt(e,t)}else{var r=parseInt(e,t);if(!isNaN(r))return r}throw new Error("Invalid integer literal when parsing "+e+" in base "+t)},Object.defineProperty(NumberWrapper,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),NumberWrapper.isNumeric=function(e){return!isNaN(e-parseFloat(e))},NumberWrapper.isNaN=function(e){return isNaN(e)},NumberWrapper.isInteger=function(e){return Number.isInteger(e)},NumberWrapper}(),null),c=0,l=o.Reflect,p=makeParamDecorator("Inject",[["token",void 0]]),h=makeParamDecorator("Optional",[]),f=makeParamDecorator("Injectable",[]),d=makeParamDecorator("Self",[]),m=makeParamDecorator("SkipSelf",[]),v=makeParamDecorator("Host",[]),y=function(){function OpaqueToken(e){this._desc=e}return OpaqueToken.prototype.toString=function(){return"Token "+this._desc},OpaqueToken.decorators=[{type:f}],OpaqueToken.ctorParameters=[null],OpaqueToken}(),b=new y("AnalyzeForEntryComponents"),g=makeParamDecorator("Attribute",[["attributeName",void 0]]),_=function(){function Query(){}return Query}(),S=makePropDecorator("ContentChildren",[["selector",void 0],{first:!1,isViewQuery:!1,descendants:!1,read:void 0}],_),w=makePropDecorator("ContentChild",[["selector",void 0],{first:!0,isViewQuery:!1,descendants:!1,read:void 0}],_),E=makePropDecorator("ViewChildren",[["selector",void 0],{first:!1,isViewQuery:!0,descendants:!0,read:void 0}],_),C=makePropDecorator("ViewChild",[["selector",void 0],{first:!0,isViewQuery:!0,descendants:!0,read:void 0}],_);t.ChangeDetectionStrategy,function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"}(t.ChangeDetectionStrategy||(t.ChangeDetectionStrategy={}));var P;!function(e){e[e.CheckOnce=0]="CheckOnce",e[e.Checked=1]="Checked",e[e.CheckAlways=2]="CheckAlways",e[e.Detached=3]="Detached",e[e.Errored=4]="Errored",e[e.Destroyed=5]="Destroyed"}(P||(P={}));var T,x=[t.ChangeDetectionStrategy.OnPush,t.ChangeDetectionStrategy.Default],A=makeDecorator("Directive",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,providers:void 0,exportAs:void 0,queries:void 0}),O=makeDecorator("Component",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,exportAs:void 0,moduleId:void 0,providers:void 0,viewProviders:void 0,changeDetection:t.ChangeDetectionStrategy.Default,queries:void 0,templateUrl:void 0,template:void 0,styleUrls:void 0,styles:void 0,animations:void 0,encapsulation:void 0,interpolation:void 0,entryComponents:void 0},A),I=makeDecorator("Pipe",{name:void 0,pure:!0}),R=makePropDecorator("Input",[["bindingPropertyName",void 0]]),M=makePropDecorator("Output",[["bindingPropertyName",void 0]]),k=makePropDecorator("HostBinding",[["hostPropertyName",void 0]]),N=makePropDecorator("HostListener",[["eventName",void 0],["args",[]]]);!function(e){e[e.OnInit=0]="OnInit",e[e.OnDestroy=1]="OnDestroy",e[e.DoCheck=2]="DoCheck",e[e.OnChanges=3]="OnChanges",e[e.AfterContentInit=4]="AfterContentInit",e[e.AfterContentChecked=5]="AfterContentChecked",e[e.AfterViewInit=6]="AfterViewInit",e[e.AfterViewChecked=7]="AfterViewChecked"}(T||(T={}));var D=[T.OnInit,T.OnDestroy,T.DoCheck,T.OnChanges,T.AfterContentInit,T.AfterContentChecked,T.AfterViewInit,T.AfterViewChecked],V=function(){function OnChanges(){}return OnChanges}(),j=function(){function OnInit(){}return OnInit}(),L=function(){function DoCheck(){}return DoCheck}(),F=function(){function OnDestroy(){}return OnDestroy}(),B=function(){function AfterContentInit(){}return AfterContentInit}(),W=function(){function AfterContentChecked(){}return AfterContentChecked}(),U=function(){function AfterViewInit(){}return AfterViewInit}(),z=function(){function AfterViewChecked(){}return AfterViewChecked}(),H={name:"custom-elements"},q={name:"no-errors-schema"},G=makeDecorator("NgModule",{providers:void 0,declarations:void 0,imports:void 0,exports:void 0,entryComponents:void 0,bootstrap:void 0,schemas:void 0,id:void 0});/**
	     * @license
	     * Copyright Google Inc. All Rights Reserved.
	     *
	     * Use of this source code is governed by an MIT-style license that can be
	     * found in the LICENSE file at https://angular.io/license
	     */
t.ViewEncapsulation,function(e){e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None"}(t.ViewEncapsulation||(t.ViewEncapsulation={}));var K=[t.ViewEncapsulation.Emulated,t.ViewEncapsulation.Native,t.ViewEncapsulation.None],Q=function(){function ViewMetadata(e){var t=void 0===e?{}:e,r=t.templateUrl,n=t.template,i=t.encapsulation,o=t.styles,s=t.styleUrls,a=t.animations,u=t.interpolation;this.templateUrl=r,this.template=n,this.styleUrls=s,this.styles=o,this.encapsulation=i,this.animations=a,this.interpolation=u}return ViewMetadata}(),X=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},J=function(e){function BaseError(t){var r=e.call(this,t);this._nativeError=r}return X(BaseError,e),Object.defineProperty(BaseError.prototype,"message",{get:function(){return this._nativeError.message},set:function(e){this._nativeError.message=e},enumerable:!0,configurable:!0}),Object.defineProperty(BaseError.prototype,"name",{get:function(){return this._nativeError.name},enumerable:!0,configurable:!0}),Object.defineProperty(BaseError.prototype,"stack",{get:function(){return this._nativeError.stack},set:function(e){this._nativeError.stack=e},enumerable:!0,configurable:!0}),BaseError.prototype.toString=function(){return this._nativeError.toString()},BaseError}(Error),Z=function(e){function WrappedError(t,r){e.call(this,t+" caused by: "+(r instanceof Error?r.message:r)),this.originalError=r}return X(WrappedError,e),Object.defineProperty(WrappedError.prototype,"stack",{get:function(){return(this.originalError instanceof Error?this.originalError:this._nativeError).stack},enumerable:!0,configurable:!0}),WrappedError}(J),$=new Object,Y=$,ee=function(){function _NullInjector(){}return _NullInjector.prototype.get=function(e,t){if(void 0===t&&(t=$),t===$)throw new Error("No provider for "+stringify(e)+"!");return t},_NullInjector}(),te=function(){function Injector(){}return Injector.prototype.get=function(e,t){return unimplemented()},Injector.THROW_IF_NOT_FOUND=$,Injector.NULL=new ee,Injector}(),re=o.Map,ne=o.Set,ie=function(){try{if(1===new re([[1,2]]).size)return function(e){return new re(e)}}catch(e){}return function(e){for(var t=new re,r=0;r<e.length;r++){var n=e[r];t.set(n[0],n[1])}return t}}(),oe=function(){try{if(new re(new re))return function(e){return new re(e)}}catch(e){}return function(e){var t=new re;return e.forEach(function(e,r){t.set(r,e)}),t}}(),se=function(){return(new re).keys().next?function(e){for(var t,r=e.keys();!(t=r.next()).done;)e.set(t.value,null)}:function(e){e.forEach(function(t,r){e.set(r,null)})}}(),ae=function(){try{if((new re).values().next)return function(e,t){return t?Array.from(e.values()):Array.from(e.keys())}}catch(e){}return function(e,t){var r=le.createFixedSize(e.size),n=0;return e.forEach(function(e,i){r[n]=t?e:i,n++}),r}}(),ue=function(){function MapWrapper(){}return MapWrapper.clone=function(e){return oe(e)},MapWrapper.createFromStringMap=function(e){var t=new re;for(var r in e)t.set(r,e[r]);return t},MapWrapper.toStringMap=function(e){var t={};return e.forEach(function(e,r){return t[r]=e}),t},MapWrapper.createFromPairs=function(e){return ie(e)},MapWrapper.clearValues=function(e){se(e)},MapWrapper.iterable=function(e){return e},MapWrapper.keys=function(e){return ae(e,!1)},MapWrapper.values=function(e){return ae(e,!0)},MapWrapper}(),ce=function(){function StringMapWrapper(){}return StringMapWrapper.create=function(){return{}},StringMapWrapper.contains=function(e,t){return e.hasOwnProperty(t)},StringMapWrapper.get=function(e,t){return e.hasOwnProperty(t)?e[t]:void 0},StringMapWrapper.set=function(e,t,r){e[t]=r},StringMapWrapper.keys=function(e){return Object.keys(e)},StringMapWrapper.values=function(e){return Object.keys(e).map(function(t){return e[t]})},StringMapWrapper.isEmpty=function(e){for(var t in e)return!1;return!0},StringMapWrapper["delete"]=function(e,t){delete e[t]},StringMapWrapper.forEach=function(e,t){for(var r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];t(e[i],i)}},StringMapWrapper.merge=function(e,t){for(var r={},n=0,i=Object.keys(e);n<i.length;n++){var o=i[n];r[o]=e[o]}for(var s=0,a=Object.keys(t);s<a.length;s++){var o=a[s];r[o]=t[o]}return r},StringMapWrapper.equals=function(e,t){var r=Object.keys(e),n=Object.keys(t);if(r.length!=n.length)return!1;for(var i=0;i<r.length;i++){var o=r[i];if(e[o]!==t[o])return!1}return!0},StringMapWrapper}(),le=function(){function ListWrapper(){}return ListWrapper.createFixedSize=function(e){return new Array(e)},ListWrapper.createGrowableSize=function(e){return new Array(e)},ListWrapper.clone=function(e){return e.slice(0)},ListWrapper.forEachWithIndex=function(e,t){for(var r=0;r<e.length;r++)t(e[r],r)},ListWrapper.first=function(e){return e?e[0]:null},ListWrapper.last=function(e){return e&&0!=e.length?e[e.length-1]:null},ListWrapper.indexOf=function(e,t,r){return void 0===r&&(r=0),e.indexOf(t,r)},ListWrapper.contains=function(e,t){return e.indexOf(t)!==-1},ListWrapper.reversed=function(e){var t=ListWrapper.clone(e);return t.reverse()},ListWrapper.concat=function(e,t){return e.concat(t)},ListWrapper.insert=function(e,t,r){e.splice(t,0,r)},ListWrapper.removeAt=function(e,t){var r=e[t];return e.splice(t,1),r},ListWrapper.removeAll=function(e,t){for(var r=0;r<t.length;++r){var n=e.indexOf(t[r]);e.splice(n,1)}},ListWrapper.remove=function(e,t){var r=e.indexOf(t);return r>-1&&(e.splice(r,1),!0)},ListWrapper.clear=function(e){e.length=0},ListWrapper.isEmpty=function(e){return 0==e.length},ListWrapper.fill=function(e,t,r,n){void 0===r&&(r=0),void 0===n&&(n=null),e.fill(t,r,null===n?e.length:n)},ListWrapper.equals=function(e,t){if(e.length!=t.length)return!1;for(var r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0},ListWrapper.slice=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=null),e.slice(t,null===r?void 0:r)},ListWrapper.splice=function(e,t,r){return e.splice(t,r)},ListWrapper.sort=function(e,t){isPresent(t)?e.sort(t):e.sort()},ListWrapper.toString=function(e){return e.toString()},ListWrapper.toJSON=function(e){return JSON.stringify(e)},ListWrapper.maximum=function(e,t){if(0==e.length)return null;for(var r=null,n=-(1/0),i=0;i<e.length;i++){var o=e[i];if(!isBlank(o)){var s=t(o);s>n&&(r=o,n=s)}}return r},ListWrapper.flatten=function(e){var t=[];return _flattenArray(e,t),t},ListWrapper.addAll=function(e,t){for(var r=0;r<t.length;r++)e.push(t[r])},ListWrapper}(),pe=function(){var e=new ne([1,2,3]);return 3===e.size?function(e){return new ne(e)}:function(e){var t=new ne(e);if(t.size!==e.length)for(var r=0;r<e.length;r++)t.add(e[r]);return t}}(),he=function(){function SetWrapper(){}return SetWrapper.createFromList=function(e){return pe(e)},SetWrapper.has=function(e,t){return e.has(t)},SetWrapper["delete"]=function(e,t){e["delete"](t)},SetWrapper}(),fe=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},de=function(e){function AbstractProviderError(t,r,n){e.call(this,"DI Error"),this.keys=[r],this.injectors=[t],this.constructResolvingMessage=n,this.message=this.constructResolvingMessage(this.keys)}return fe(AbstractProviderError,e),AbstractProviderError.prototype.addKey=function(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)},AbstractProviderError}(J),me=function(e){function NoProviderError(t,r){e.call(this,t,r,function(e){var t=stringify(le.first(e).token);return"No provider for "+t+"!"+constructResolvingPath(e)})}return fe(NoProviderError,e),NoProviderError}(de),ve=function(e){function CyclicDependencyError(t,r){e.call(this,t,r,function(e){return"Cannot instantiate cyclic dependency!"+constructResolvingPath(e)})}return fe(CyclicDependencyError,e),CyclicDependencyError}(de),ye=function(e){function InstantiationError(t,r,n,i){e.call(this,"DI Error",r),this.keys=[i],this.injectors=[t]}return fe(InstantiationError,e),InstantiationError.prototype.addKey=function(e,t){this.injectors.push(e),this.keys.push(t)},Object.defineProperty(InstantiationError.prototype,"message",{get:function(){var e=stringify(le.first(this.keys).token);return this.originalError.message+": Error during instantiation of "+e+"!"+constructResolvingPath(this.keys)+"."},enumerable:!0,configurable:!0}),Object.defineProperty(InstantiationError.prototype,"causeKey",{get:function(){return this.keys[0]},enumerable:!0,configurable:!0}),InstantiationError}(Z),be=function(e){function InvalidProviderError(t){e.call(this,"Invalid provider - only instances of Provider and Type are allowed, got: "+t)}return fe(InvalidProviderError,e),InvalidProviderError}(J),ge=function(e){function NoAnnotationError(t,r){e.call(this,NoAnnotationError._genMessage(t,r))}return fe(NoAnnotationError,e),NoAnnotationError._genMessage=function(e,t){for(var r=[],n=0,i=t.length;n<i;n++){var o=t[n];isBlank(o)||0==o.length?r.push("?"):r.push(o.map(stringify).join(" "))}return"Cannot resolve all parameters for '"+stringify(e)+"'("+r.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+stringify(e)+"' is decorated with Injectable."},NoAnnotationError}(J),_e=function(e){function OutOfBoundsError(t){e.call(this,"Index "+t+" is out-of-bounds.")}return fe(OutOfBoundsError,e),OutOfBoundsError}(J),Se=function(e){function MixingMultiProvidersWithRegularProvidersError(t,r){e.call(this,"Cannot mix multi providers and regular providers, got: "+t.toString()+" "+r.toString())}return fe(MixingMultiProvidersWithRegularProvidersError,e),MixingMultiProvidersWithRegularProvidersError}(J),we=function(){function ReflectiveKey(e,t){if(this.token=e,this.id=t,isBlank(e))throw new Error("Token must be defined!")}return Object.defineProperty(ReflectiveKey.prototype,"displayName",{get:function(){return stringify(this.token)},enumerable:!0,configurable:!0}),ReflectiveKey.get=function(e){return Ce.get(resolveForwardRef(e))},Object.defineProperty(ReflectiveKey,"numberOfKeys",{get:function(){return Ce.numberOfKeys},enumerable:!0,configurable:!0}),ReflectiveKey}(),Ee=function(){function KeyRegistry(){this._allKeys=new Map}return KeyRegistry.prototype.get=function(e){if(e instanceof we)return e;if(this._allKeys.has(e))return this._allKeys.get(e);var t=new we(e,we.numberOfKeys);return this._allKeys.set(e,t),t},Object.defineProperty(KeyRegistry.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),KeyRegistry}(),Ce=new Ee,Pe=Function,Te=function(){function ReflectionCapabilities(e){this._reflect=e||o.Reflect}return ReflectionCapabilities.prototype.isReflectionEnabled=function(){return!0},ReflectionCapabilities.prototype.factory=function(e){var t=e.prototype;return function(){for(var r=[],n=0;n<arguments.length;n++)r[n-0]=arguments[n];var i=Object.create(t);return e.apply(i,r),i}},ReflectionCapabilities.prototype._zipTypesAndAnnotations=function(e,t){var r;r="undefined"==typeof e?new Array(t.length):new Array(e.length);for(var n=0;n<r.length;n++)"undefined"==typeof e?r[n]=[]:e[n]!=Object?r[n]=[e[n]]:r[n]=[],isPresent(t)&&isPresent(t[n])&&(r[n]=r[n].concat(t[n]));return r},ReflectionCapabilities.prototype.parameters=function(e){if(isPresent(e.parameters))return e.parameters;if(isPresent(e.ctorParameters)){var t=e.ctorParameters,r=t.map(function(e){return e&&e.type}),n=t.map(function(e){return e&&convertTsickleDecoratorIntoMetadata(e.decorators)});return this._zipTypesAndAnnotations(r,n)}if(isPresent(this._reflect)&&isPresent(this._reflect.getMetadata)){var i=this._reflect.getMetadata("parameters",e),o=this._reflect.getMetadata("design:paramtypes",e);if(isPresent(o)||isPresent(i))return this._zipTypesAndAnnotations(o,i)}var s=new Array(e.length);return s.fill(void 0),s},ReflectionCapabilities.prototype.annotations=function(e){if(isPresent(e.annotations)){var t=e.annotations;return isFunction(t)&&t.annotations&&(t=t.annotations),t}if(isPresent(e.decorators))return convertTsickleDecoratorIntoMetadata(e.decorators);if(isPresent(this._reflect)&&isPresent(this._reflect.getMetadata)){var t=this._reflect.getMetadata("annotations",e);if(isPresent(t))return t}return[]},ReflectionCapabilities.prototype.propMetadata=function(e){if(isPresent(e.propMetadata)){var t=e.propMetadata;return isFunction(t)&&t.propMetadata&&(t=t.propMetadata),t}if(isPresent(e.propDecorators)){var r=e.propDecorators,n={};return Object.keys(r).forEach(function(e){n[e]=convertTsickleDecoratorIntoMetadata(r[e])}),n}if(isPresent(this._reflect)&&isPresent(this._reflect.getMetadata)){var t=this._reflect.getMetadata("propMetadata",e);if(isPresent(t))return t}return{}},ReflectionCapabilities.prototype.interfaces=function(e){return[]},ReflectionCapabilities.prototype.hasLifecycleHook=function(e,t,r){if(!(e instanceof Pe))return!1;var n=e.prototype;return!!n[r]},ReflectionCapabilities.prototype.getter=function(e){return new Function("o","return o."+e+";")},ReflectionCapabilities.prototype.setter=function(e){return new Function("o","v","return o."+e+" = v;")},ReflectionCapabilities.prototype.method=function(e){var t="if (!o."+e+") throw new Error('\""+e+"\" is undefined');\n        return o."+e+".apply(o, args);";return new Function("o","args",t)},ReflectionCapabilities.prototype.importUri=function(e){return"object"==typeof e&&e.filePath?e.filePath:"./"+stringify(e)},ReflectionCapabilities.prototype.resolveIdentifier=function(e,t,r){return r},ReflectionCapabilities.prototype.resolveEnum=function(e,t){return e[t]},ReflectionCapabilities}(),xe=function(){function ReflectorReader(){}return ReflectorReader}(),Ae=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},Oe=function(e){function Reflector(t){e.call(this),this._injectableInfo=new re,this._getters=new re,this._setters=new re,this._methods=new re,this._usedKeys=null,this.reflectionCapabilities=t}return Ae(Reflector,e),Reflector.prototype.updateCapabilities=function(e){this.reflectionCapabilities=e},Reflector.prototype.isReflectionEnabled=function(){return this.reflectionCapabilities.isReflectionEnabled()},Reflector.prototype.trackUsage=function(){this._usedKeys=new ne},Reflector.prototype.listUnusedKeys=function(){var e=this;if(null==this._usedKeys)throw new Error("Usage tracking is disabled");var t=ue.keys(this._injectableInfo);return t.filter(function(t){return!he.has(e._usedKeys,t)})},Reflector.prototype.registerFunction=function(e,t){this._injectableInfo.set(e,t)},Reflector.prototype.registerType=function(e,t){this._injectableInfo.set(e,t)},Reflector.prototype.registerGetters=function(e){_mergeMaps(this._getters,e)},Reflector.prototype.registerSetters=function(e){_mergeMaps(this._setters,e)},Reflector.prototype.registerMethods=function(e){_mergeMaps(this._methods,e)},Reflector.prototype.factory=function(e){if(this._containsReflectionInfo(e)){var t=this._getReflectionInfo(e).factory;return isPresent(t)?t:null}return this.reflectionCapabilities.factory(e)},Reflector.prototype.parameters=function(e){if(this._injectableInfo.has(e)){var t=this._getReflectionInfo(e).parameters;return isPresent(t)?t:[]}return this.reflectionCapabilities.parameters(e)},Reflector.prototype.annotations=function(e){if(this._injectableInfo.has(e)){var t=this._getReflectionInfo(e).annotations;return isPresent(t)?t:[]}return this.reflectionCapabilities.annotations(e)},Reflector.prototype.propMetadata=function(e){if(this._injectableInfo.has(e)){var t=this._getReflectionInfo(e).propMetadata;return isPresent(t)?t:{}}return this.reflectionCapabilities.propMetadata(e)},Reflector.prototype.interfaces=function(e){if(this._injectableInfo.has(e)){var t=this._getReflectionInfo(e).interfaces;return isPresent(t)?t:[]}return this.reflectionCapabilities.interfaces(e)},Reflector.prototype.hasLifecycleHook=function(e,t,r){var n=this.interfaces(e);return n.indexOf(t)!==-1||this.reflectionCapabilities.hasLifecycleHook(e,t,r)},Reflector.prototype.getter=function(e){return this._getters.has(e)?this._getters.get(e):this.reflectionCapabilities.getter(e)},Reflector.prototype.setter=function(e){return this._setters.has(e)?this._setters.get(e):this.reflectionCapabilities.setter(e)},Reflector.prototype.method=function(e){return this._methods.has(e)?this._methods.get(e):this.reflectionCapabilities.method(e)},Reflector.prototype._getReflectionInfo=function(e){return isPresent(this._usedKeys)&&this._usedKeys.add(e),this._injectableInfo.get(e)},Reflector.prototype._containsReflectionInfo=function(e){return this._injectableInfo.has(e)},Reflector.prototype.importUri=function(e){return this.reflectionCapabilities.importUri(e)},Reflector.prototype.resolveIdentifier=function(e,t,r){return this.reflectionCapabilities.resolveIdentifier(e,t,r)},Reflector.prototype.resolveEnum=function(e,t){return this.reflectionCapabilities.resolveEnum(e,t)},Reflector}(xe),Ie=new Oe(new Te),Re=function(){function ReflectiveDependency(e,t,r,n,i){this.key=e,this.optional=t,this.lowerBoundVisibility=r,this.upperBoundVisibility=n,this.properties=i}return ReflectiveDependency.fromKey=function(e){return new ReflectiveDependency(e,(!1),null,null,[])},ReflectiveDependency}(),Me=[],ke=function(){function ResolvedReflectiveProvider_(e,t,r){this.key=e,this.resolvedFactories=t,this.multiProvider=r}return Object.defineProperty(ResolvedReflectiveProvider_.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),ResolvedReflectiveProvider_}(),Ne=function(){function ResolvedReflectiveFactory(e,t){this.factory=e,this.dependencies=t}return ResolvedReflectiveFactory}(),De=10,Ve=new Object,je=function(){function ReflectiveProtoInjectorInlineStrategy(e,t){this.provider0=null,this.provider1=null,this.provider2=null,this.provider3=null,this.provider4=null,this.provider5=null,this.provider6=null,this.provider7=null,this.provider8=null,this.provider9=null,this.keyId0=null,this.keyId1=null,this.keyId2=null,this.keyId3=null,this.keyId4=null,this.keyId5=null,this.keyId6=null,this.keyId7=null,this.keyId8=null,this.keyId9=null;var r=t.length;r>0&&(this.provider0=t[0],this.keyId0=t[0].key.id),r>1&&(this.provider1=t[1],this.keyId1=t[1].key.id),r>2&&(this.provider2=t[2],this.keyId2=t[2].key.id),r>3&&(this.provider3=t[3],this.keyId3=t[3].key.id),r>4&&(this.provider4=t[4],this.keyId4=t[4].key.id),r>5&&(this.provider5=t[5],this.keyId5=t[5].key.id),r>6&&(this.provider6=t[6],this.keyId6=t[6].key.id),r>7&&(this.provider7=t[7],this.keyId7=t[7].key.id),r>8&&(this.provider8=t[8],this.keyId8=t[8].key.id),r>9&&(this.provider9=t[9],this.keyId9=t[9].key.id)}return ReflectiveProtoInjectorInlineStrategy.prototype.getProviderAtIndex=function(e){if(0==e)return this.provider0;if(1==e)return this.provider1;if(2==e)return this.provider2;if(3==e)return this.provider3;if(4==e)return this.provider4;if(5==e)return this.provider5;if(6==e)return this.provider6;if(7==e)return this.provider7;if(8==e)return this.provider8;if(9==e)return this.provider9;throw new _e(e)},ReflectiveProtoInjectorInlineStrategy.prototype.createInjectorStrategy=function(e){return new Be(e,this)},ReflectiveProtoInjectorInlineStrategy}(),Le=function(){function ReflectiveProtoInjectorDynamicStrategy(e,t){this.providers=t;var r=t.length;this.keyIds=le.createFixedSize(r);for(var n=0;n<r;n++)this.keyIds[n]=t[n].key.id}return ReflectiveProtoInjectorDynamicStrategy.prototype.getProviderAtIndex=function(e){if(e<0||e>=this.providers.length)throw new _e(e);return this.providers[e]},ReflectiveProtoInjectorDynamicStrategy.prototype.createInjectorStrategy=function(e){return new We(this,e)},ReflectiveProtoInjectorDynamicStrategy}(),Fe=function(){function ReflectiveProtoInjector(e){this.numberOfProviders=e.length,this._strategy=e.length>De?new Le(this,e):new je(this,e)}return ReflectiveProtoInjector.fromResolvedProviders=function(e){return new ReflectiveProtoInjector(e)},ReflectiveProtoInjector.prototype.getProviderAtIndex=function(e){return this._strategy.getProviderAtIndex(e)},ReflectiveProtoInjector}(),Be=function(){function ReflectiveInjectorInlineStrategy(e,t){this.injector=e,this.protoStrategy=t,this.obj0=Ve,this.obj1=Ve,this.obj2=Ve,this.obj3=Ve,this.obj4=Ve,this.obj5=Ve,this.obj6=Ve,this.obj7=Ve,this.obj8=Ve,this.obj9=Ve}return ReflectiveInjectorInlineStrategy.prototype.resetConstructionCounter=function(){this.injector._constructionCounter=0},ReflectiveInjectorInlineStrategy.prototype.instantiateProvider=function(e){return this.injector._new(e)},ReflectiveInjectorInlineStrategy.prototype.getObjByKeyId=function(e){var t=this.protoStrategy,r=this.injector;return t.keyId0===e?(this.obj0===Ve&&(this.obj0=r._new(t.provider0)),this.obj0):t.keyId1===e?(this.obj1===Ve&&(this.obj1=r._new(t.provider1)),this.obj1):t.keyId2===e?(this.obj2===Ve&&(this.obj2=r._new(t.provider2)),this.obj2):t.keyId3===e?(this.obj3===Ve&&(this.obj3=r._new(t.provider3)),this.obj3):t.keyId4===e?(this.obj4===Ve&&(this.obj4=r._new(t.provider4)),this.obj4):t.keyId5===e?(this.obj5===Ve&&(this.obj5=r._new(t.provider5)),this.obj5):t.keyId6===e?(this.obj6===Ve&&(this.obj6=r._new(t.provider6)),this.obj6):t.keyId7===e?(this.obj7===Ve&&(this.obj7=r._new(t.provider7)),this.obj7):t.keyId8===e?(this.obj8===Ve&&(this.obj8=r._new(t.provider8)),this.obj8):t.keyId9===e?(this.obj9===Ve&&(this.obj9=r._new(t.provider9)),this.obj9):Ve},ReflectiveInjectorInlineStrategy.prototype.getObjAtIndex=function(e){if(0==e)return this.obj0;if(1==e)return this.obj1;if(2==e)return this.obj2;if(3==e)return this.obj3;if(4==e)return this.obj4;if(5==e)return this.obj5;if(6==e)return this.obj6;if(7==e)return this.obj7;if(8==e)return this.obj8;if(9==e)return this.obj9;throw new _e(e)},ReflectiveInjectorInlineStrategy.prototype.getMaxNumberOfObjects=function(){return De},ReflectiveInjectorInlineStrategy}(),We=function(){function ReflectiveInjectorDynamicStrategy(e,t){this.protoStrategy=e,this.injector=t,this.objs=le.createFixedSize(e.providers.length),le.fill(this.objs,Ve)}return ReflectiveInjectorDynamicStrategy.prototype.resetConstructionCounter=function(){this.injector._constructionCounter=0},ReflectiveInjectorDynamicStrategy.prototype.instantiateProvider=function(e){return this.injector._new(e)},ReflectiveInjectorDynamicStrategy.prototype.getObjByKeyId=function(e){for(var t=this.protoStrategy,r=0;r<t.keyIds.length;r++)if(t.keyIds[r]===e)return this.objs[r]===Ve&&(this.objs[r]=this.injector._new(t.providers[r])),this.objs[r];return Ve},ReflectiveInjectorDynamicStrategy.prototype.getObjAtIndex=function(e){if(e<0||e>=this.objs.length)throw new _e(e);return this.objs[e]},ReflectiveInjectorDynamicStrategy.prototype.getMaxNumberOfObjects=function(){return this.objs.length},ReflectiveInjectorDynamicStrategy}(),Ue=function(){function ReflectiveInjector(){}return ReflectiveInjector.resolve=function(e){return resolveReflectiveProviders(e)},ReflectiveInjector.resolveAndCreate=function(e,t){void 0===t&&(t=null);var r=ReflectiveInjector.resolve(e);return ReflectiveInjector.fromResolvedProviders(r,t)},ReflectiveInjector.fromResolvedProviders=function(e,t){return void 0===t&&(t=null),new ze(Fe.fromResolvedProviders(e),t)},Object.defineProperty(ReflectiveInjector.prototype,"parent",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),ReflectiveInjector.prototype.resolveAndCreateChild=function(e){return unimplemented()},ReflectiveInjector.prototype.createChildFromResolved=function(e){return unimplemented()},ReflectiveInjector.prototype.resolveAndInstantiate=function(e){return unimplemented()},ReflectiveInjector.prototype.instantiateResolved=function(e){return unimplemented()},ReflectiveInjector}(),ze=function(){function ReflectiveInjector_(e,t){void 0===t&&(t=null),this._constructionCounter=0,this._proto=e,this._parent=t,this._strategy=e._strategy.createInjectorStrategy(this)}return ReflectiveInjector_.prototype.get=function(e,t){return void 0===t&&(t=Y),this._getByKey(we.get(e),null,null,t)},ReflectiveInjector_.prototype.getAt=function(e){return this._strategy.getObjAtIndex(e)},Object.defineProperty(ReflectiveInjector_.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(ReflectiveInjector_.prototype,"internalStrategy",{get:function(){return this._strategy},enumerable:!0,configurable:!0}),ReflectiveInjector_.prototype.resolveAndCreateChild=function(e){var t=Ue.resolve(e);return this.createChildFromResolved(t)},ReflectiveInjector_.prototype.createChildFromResolved=function(e){var t=new Fe(e),r=new ReflectiveInjector_(t);return r._parent=this,r},ReflectiveInjector_.prototype.resolveAndInstantiate=function(e){return this.instantiateResolved(Ue.resolve([e])[0])},ReflectiveInjector_.prototype.instantiateResolved=function(e){return this._instantiateProvider(e)},ReflectiveInjector_.prototype._new=function(e){if(this._constructionCounter++>this._strategy.getMaxNumberOfObjects())throw new ve(this,e.key);return this._instantiateProvider(e)},ReflectiveInjector_.prototype._instantiateProvider=function(e){if(e.multiProvider){for(var t=le.createFixedSize(e.resolvedFactories.length),r=0;r<e.resolvedFactories.length;++r)t[r]=this._instantiate(e,e.resolvedFactories[r]);return t}return this._instantiate(e,e.resolvedFactories[0])},ReflectiveInjector_.prototype._instantiate=function(e,t){var r,n,i,o,s,a,u,c,l,p,h,f,d,m,v,y,b,g,_,S,w=t.factory,E=t.dependencies,C=E.length;try{r=C>0?this._getByReflectiveDependency(e,E[0]):null,n=C>1?this._getByReflectiveDependency(e,E[1]):null,i=C>2?this._getByReflectiveDependency(e,E[2]):null,o=C>3?this._getByReflectiveDependency(e,E[3]):null,s=C>4?this._getByReflectiveDependency(e,E[4]):null,a=C>5?this._getByReflectiveDependency(e,E[5]):null,u=C>6?this._getByReflectiveDependency(e,E[6]):null,c=C>7?this._getByReflectiveDependency(e,E[7]):null,l=C>8?this._getByReflectiveDependency(e,E[8]):null,p=C>9?this._getByReflectiveDependency(e,E[9]):null,h=C>10?this._getByReflectiveDependency(e,E[10]):null,f=C>11?this._getByReflectiveDependency(e,E[11]):null,d=C>12?this._getByReflectiveDependency(e,E[12]):null,m=C>13?this._getByReflectiveDependency(e,E[13]):null,v=C>14?this._getByReflectiveDependency(e,E[14]):null,y=C>15?this._getByReflectiveDependency(e,E[15]):null,b=C>16?this._getByReflectiveDependency(e,E[16]):null,g=C>17?this._getByReflectiveDependency(e,E[17]):null,_=C>18?this._getByReflectiveDependency(e,E[18]):null,S=C>19?this._getByReflectiveDependency(e,E[19]):null}catch(P){throw(P instanceof de||P instanceof ye)&&P.addKey(this,e.key),P}var T;try{switch(C){case 0:T=w();break;case 1:T=w(r);break;case 2:T=w(r,n);break;case 3:T=w(r,n,i);break;case 4:T=w(r,n,i,o);break;case 5:T=w(r,n,i,o,s);break;case 6:T=w(r,n,i,o,s,a);break;case 7:T=w(r,n,i,o,s,a,u);break;case 8:T=w(r,n,i,o,s,a,u,c);break;case 9:T=w(r,n,i,o,s,a,u,c,l);break;case 10:T=w(r,n,i,o,s,a,u,c,l,p);break;case 11:T=w(r,n,i,o,s,a,u,c,l,p,h);break;case 12:T=w(r,n,i,o,s,a,u,c,l,p,h,f);break;case 13:T=w(r,n,i,o,s,a,u,c,l,p,h,f,d);break;case 14:T=w(r,n,i,o,s,a,u,c,l,p,h,f,d,m);break;case 15:T=w(r,n,i,o,s,a,u,c,l,p,h,f,d,m,v);break;case 16:T=w(r,n,i,o,s,a,u,c,l,p,h,f,d,m,v,y);break;case 17:T=w(r,n,i,o,s,a,u,c,l,p,h,f,d,m,v,y,b);break;case 18:T=w(r,n,i,o,s,a,u,c,l,p,h,f,d,m,v,y,b,g);break;case 19:T=w(r,n,i,o,s,a,u,c,l,p,h,f,d,m,v,y,b,g,_);break;case 20:T=w(r,n,i,o,s,a,u,c,l,p,h,f,d,m,v,y,b,g,_,S);break;default:throw new Error("Cannot instantiate '"+e.key.displayName+"' because it has more than 20 dependencies")}}catch(P){throw new ye(this,P,P.stack,e.key)}return T},ReflectiveInjector_.prototype._getByReflectiveDependency=function(e,t){return this._getByKey(t.key,t.lowerBoundVisibility,t.upperBoundVisibility,t.optional?null:Y)},ReflectiveInjector_.prototype._getByKey=function(e,t,r,n){return e===He?this:r instanceof d?this._getByKeySelf(e,n):this._getByKeyDefault(e,n,t)},ReflectiveInjector_.prototype._throwOrNull=function(e,t){if(t!==Y)return t;throw new me(this,e)},ReflectiveInjector_.prototype._getByKeySelf=function(e,t){var r=this._strategy.getObjByKeyId(e.id);return r!==Ve?r:this._throwOrNull(e,t)},ReflectiveInjector_.prototype._getByKeyDefault=function(e,t,r){var n;for(n=r instanceof m?this._parent:this;n instanceof ReflectiveInjector_;){var i=n,o=i._strategy.getObjByKeyId(e.id);if(o!==Ve)return o;n=i._parent}return null!==n?n.get(e.token,t):this._throwOrNull(e,t)},Object.defineProperty(ReflectiveInjector_.prototype,"displayName",{get:function(){var e=_mapProviders(this,function(e){return' "'+e.key.displayName+'" '}).join(", ");return"ReflectiveInjector(providers: ["+e+"])"},enumerable:!0,configurable:!0}),ReflectiveInjector_.prototype.toString=function(){return this.displayName},ReflectiveInjector_}(),He=we.get(te),qe=function(){function ErrorHandler(e){void 0===e&&(e=!0),this._console=console,this.rethrowError=e}return ErrorHandler.prototype.handleError=function(e){var t=this._findOriginalError(e),r=this._findOriginalStack(e),n=this._findContext(e);if(this._console.error("EXCEPTION: "+this._extractMessage(e)),t&&this._console.error("ORIGINAL EXCEPTION: "+this._extractMessage(t)),r&&(this._console.error("ORIGINAL STACKTRACE:"),this._console.error(r)),n&&(this._console.error("ERROR CONTEXT:"),this._console.error(n)),this.rethrowError)throw e},ErrorHandler.prototype._extractMessage=function(e){return e instanceof Error?e.message:e.toString()},ErrorHandler.prototype._findContext=function(e){return e?e.context?e.context:this._findContext(e.originalError):null},ErrorHandler.prototype._findOriginalError=function(e){for(var t=e.originalError;t&&t.originalError;)t=t.originalError;return t},ErrorHandler.prototype._findOriginalStack=function(e){if(!(e instanceof Error))return null;for(var t=e,r=t.stack;t instanceof Error&&t.originalError;)t=t.originalError,t instanceof Error&&t.stack&&(r=t.stack);return r},ErrorHandler}(),Ge=new y("Application Initializer"),Ke=function(){function ApplicationInitStatus(e){var t=this;this._done=!1;var r=[];if(e)for(var n=0;n<e.length;n++){var i=e[n]();isPromise(i)&&r.push(i)}this._donePromise=Promise.all(r).then(function(){t._done=!0}),0===r.length&&(this._done=!0)}return Object.defineProperty(ApplicationInitStatus.prototype,"done",{get:function(){return this._done},enumerable:!0,configurable:!0}),Object.defineProperty(ApplicationInitStatus.prototype,"donePromise",{get:function(){return this._donePromise},enumerable:!0,configurable:!0}),ApplicationInitStatus.decorators=[{type:f}],ApplicationInitStatus.ctorParameters=[{type:Array,decorators:[{type:p,args:[Ge]},{type:h}]}],ApplicationInitStatus}(),Qe=new y("AppId"),Xe={provide:Qe,useFactory:_appIdRandomProviderFactory,deps:[]},Je=new y("Platform Initializer"),Ze=new y("appBootstrapListener"),$e=new y("Application Packages Root URL"),Ye=function(){function Console(){}return Console.prototype.log=function(e){print(e)},Console.prototype.warn=function(e){warn(e)},Console.decorators=[{type:f}],Console.ctorParameters=[],Console}(),et=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},tt=function(e){function ComponentStillLoadingError(t){e.call(this,"Can't compile synchronously as "+stringify(t)+" is still being loaded!"),this.compType=t}return et(ComponentStillLoadingError,e),ComponentStillLoadingError}(J),rt=function(){function ModuleWithComponentFactories(e,t){this.ngModuleFactory=e,this.componentFactories=t}return ModuleWithComponentFactories}(),nt=function(){function Compiler(){}return Compiler.prototype.compileModuleSync=function(e){throw _throwError()},Compiler.prototype.compileModuleAsync=function(e){throw _throwError()},Compiler.prototype.compileModuleAndAllComponentsSync=function(e){throw _throwError()},Compiler.prototype.compileModuleAndAllComponentsAsync=function(e){throw _throwError()},Compiler.prototype.clearCache=function(){},
Compiler.prototype.clearCacheFor=function(e){},Compiler}(),it=new y("compilerOptions"),ot=function(){function CompilerFactory(){}return CompilerFactory}(),st=function(){function DefaultIterableDifferFactory(){}return DefaultIterableDifferFactory.prototype.supports=function(e){return isListLikeIterable(e)},DefaultIterableDifferFactory.prototype.create=function(e,t){return new ut(t)},DefaultIterableDifferFactory}(),at=function(e,t){return t},ut=function(){function DefaultIterableDiffer(e){this._trackByFn=e,this._length=null,this._collection=null,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=isPresent(this._trackByFn)?this._trackByFn:at}return Object.defineProperty(DefaultIterableDiffer.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(DefaultIterableDiffer.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),DefaultIterableDiffer.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},DefaultIterableDiffer.prototype.forEachOperation=function(e){for(var t=this._itHead,r=this._removalsHead,n=0,i=null;t||r;){var o=!r||t&&t.currentIndex<getPreviousIndex(r,n,i)?t:r,s=getPreviousIndex(o,n,i),a=o.currentIndex;if(o===r)n--,r=r._nextRemoved;else if(t=t._next,null==o.previousIndex)n++;else{i||(i=[]);var u=s-n,c=a-n;if(u!=c){for(var l=0;l<u;l++){var p=l<i.length?i[l]:i[l]=0,h=p+l;c<=h&&h<u&&(i[l]=p+1)}var f=o.previousIndex;i[f]=c-u}}s!==a&&e(o,s,a)}},DefaultIterableDiffer.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)},DefaultIterableDiffer.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},DefaultIterableDiffer.prototype.forEachMovedItem=function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)},DefaultIterableDiffer.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},DefaultIterableDiffer.prototype.forEachIdentityChange=function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)},DefaultIterableDiffer.prototype.diff=function(e){if(isBlank(e)&&(e=[]),!isListLikeIterable(e))throw new Error("Error trying to diff '"+e+"'");return this.check(e)?this:null},DefaultIterableDiffer.prototype.onDestroy=function(){},DefaultIterableDiffer.prototype.check=function(e){var t=this;this._reset();var r,n,i,o=this._itHead,s=!1;if(isArray(e)){var a=e;for(this._length=e.length,r=0;r<this._length;r++)n=a[r],i=this._trackByFn(r,n),null!==o&&looseIdentical(o.trackById,i)?(s&&(o=this._verifyReinsertion(o,n,i,r)),looseIdentical(o.item,n)||this._addIdentityChange(o,n)):(o=this._mismatch(o,n,i,r),s=!0),o=o._next}else r=0,iterateListLike(e,function(e){i=t._trackByFn(r,e),null!==o&&looseIdentical(o.trackById,i)?(s&&(o=t._verifyReinsertion(o,e,i,r)),looseIdentical(o.item,e)||t._addIdentityChange(o,e)):(o=t._mismatch(o,e,i,r),s=!0),o=o._next,r++}),this._length=r;return this._truncate(o),this._collection=e,this.isDirty},Object.defineProperty(DefaultIterableDiffer.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),DefaultIterableDiffer.prototype._reset=function(){if(this.isDirty){var e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},DefaultIterableDiffer.prototype._mismatch=function(e,t,r,n){var i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),e=null===this._linkedRecords?null:this._linkedRecords.get(r,n),null!==e?(looseIdentical(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,n)):(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r),null!==e?(looseIdentical(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,n)):e=this._addAfter(new ct(t,r),i,n)),e},DefaultIterableDiffer.prototype._verifyReinsertion=function(e,t,r,n){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r);return null!==i?e=this._reinsertAfter(i,e._prev,n):e.currentIndex!=n&&(e.currentIndex=n,this._addToMoves(e,n)),e},DefaultIterableDiffer.prototype._truncate=function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},DefaultIterableDiffer.prototype._reinsertAfter=function(e,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var n=e._prevRemoved,i=e._nextRemoved;return null===n?this._removalsHead=i:n._nextRemoved=i,null===i?this._removalsTail=n:i._prevRemoved=n,this._insertAfter(e,t,r),this._addToMoves(e,r),e},DefaultIterableDiffer.prototype._moveAfter=function(e,t,r){return this._unlink(e),this._insertAfter(e,t,r),this._addToMoves(e,r),e},DefaultIterableDiffer.prototype._addAfter=function(e,t,r){return this._insertAfter(e,t,r),null===this._additionsTail?this._additionsTail=this._additionsHead=e:this._additionsTail=this._additionsTail._nextAdded=e,e},DefaultIterableDiffer.prototype._insertAfter=function(e,t,r){var n=null===t?this._itHead:t._next;return e._next=n,e._prev=t,null===n?this._itTail=e:n._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new pt),this._linkedRecords.put(e),e.currentIndex=r,e},DefaultIterableDiffer.prototype._remove=function(e){return this._addToRemovals(this._unlink(e))},DefaultIterableDiffer.prototype._unlink=function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,r=e._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,e},DefaultIterableDiffer.prototype._addToMoves=function(e,t){return e.previousIndex===t?e:(null===this._movesTail?this._movesTail=this._movesHead=e:this._movesTail=this._movesTail._nextMoved=e,e)},DefaultIterableDiffer.prototype._addToRemovals=function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new pt),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e},DefaultIterableDiffer.prototype._addIdentityChange=function(e,t){return e.item=t,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=e:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=e,e},DefaultIterableDiffer.prototype.toString=function(){var e=[];this.forEachItem(function(t){return e.push(t)});var t=[];this.forEachPreviousItem(function(e){return t.push(e)});var r=[];this.forEachAddedItem(function(e){return r.push(e)});var n=[];this.forEachMovedItem(function(e){return n.push(e)});var i=[];this.forEachRemovedItem(function(e){return i.push(e)});var o=[];return this.forEachIdentityChange(function(e){return o.push(e)}),"collection: "+e.join(", ")+"\nprevious: "+t.join(", ")+"\nadditions: "+r.join(", ")+"\nmoves: "+n.join(", ")+"\nremovals: "+i.join(", ")+"\nidentityChanges: "+o.join(", ")+"\n"},DefaultIterableDiffer}(),ct=function(){function CollectionChangeRecord(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}return CollectionChangeRecord.prototype.toString=function(){return this.previousIndex===this.currentIndex?stringify(this.item):stringify(this.item)+"["+stringify(this.previousIndex)+"->"+stringify(this.currentIndex)+"]"},CollectionChangeRecord}(),lt=function(){function _DuplicateItemRecordList(){this._head=null,this._tail=null}return _DuplicateItemRecordList.prototype.add=function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)},_DuplicateItemRecordList.prototype.get=function(e,t){var r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<r.currentIndex)&&looseIdentical(r.trackById,e))return r;return null},_DuplicateItemRecordList.prototype.remove=function(e){var t=e._prevDup,r=e._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head},_DuplicateItemRecordList}(),pt=function(){function _DuplicateMap(){this.map=new Map}return _DuplicateMap.prototype.put=function(e){var t=getMapKey(e.trackById),r=this.map.get(t);isPresent(r)||(r=new lt,this.map.set(t,r)),r.add(e)},_DuplicateMap.prototype.get=function(e,t){void 0===t&&(t=null);var r=getMapKey(e),n=this.map.get(r);return isBlank(n)?null:n.get(e,t)},_DuplicateMap.prototype.remove=function(e){var t=getMapKey(e.trackById),r=this.map.get(t);return r.remove(e)&&this.map["delete"](t),e},Object.defineProperty(_DuplicateMap.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),_DuplicateMap.prototype.clear=function(){this.map.clear()},_DuplicateMap.prototype.toString=function(){return"_DuplicateMap("+stringify(this.map)+")"},_DuplicateMap}(),ht=function(){function DefaultKeyValueDifferFactory(){}return DefaultKeyValueDifferFactory.prototype.supports=function(e){return e instanceof Map||isJsObject(e)},DefaultKeyValueDifferFactory.prototype.create=function(e){return new ft},DefaultKeyValueDifferFactory}(),ft=function(){function DefaultKeyValueDiffer(){this._records=new Map,this._mapHead=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(DefaultKeyValueDiffer.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),DefaultKeyValueDiffer.prototype.forEachItem=function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)},DefaultKeyValueDiffer.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)},DefaultKeyValueDiffer.prototype.forEachChangedItem=function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)},DefaultKeyValueDiffer.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},DefaultKeyValueDiffer.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},DefaultKeyValueDiffer.prototype.diff=function(e){if(e){if(!(e instanceof Map||isJsObject(e)))throw new Error("Error trying to diff '"+e+"'")}else e=new Map;return this.check(e)?this:null},DefaultKeyValueDiffer.prototype.onDestroy=function(){},DefaultKeyValueDiffer.prototype.check=function(e){var t=this;this._reset();var r=this._records,n=this._mapHead,i=null,o=null,s=!1;return this._forEach(e,function(e,a){var u;n&&a===n.key?(u=n,t._maybeAddToChanges(u,e)):(s=!0,null!==n&&(t._removeFromSeq(i,n),t._addToRemovals(n)),r.has(a)?(u=r.get(a),t._maybeAddToChanges(u,e)):(u=new dt(a),r.set(a,u),u.currentValue=e,t._addToAdditions(u))),s&&(t._isInRemovals(u)&&t._removeFromRemovals(u),null==o?t._mapHead=u:o._next=u),i=n,o=u,n=n&&n._next}),this._truncate(i,n),this.isDirty},DefaultKeyValueDiffer.prototype._reset=function(){if(this.isDirty){var e=void 0;for(e=this._previousMapHead=this._mapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=this._removalsTail=null}},DefaultKeyValueDiffer.prototype._truncate=function(e,t){for(;null!==t;){null===e?this._mapHead=null:e._next=null;var r=t._next;this._addToRemovals(t),e=t,t=r}for(var n=this._removalsHead;null!==n;n=n._nextRemoved)n.previousValue=n.currentValue,n.currentValue=null,this._records["delete"](n.key)},DefaultKeyValueDiffer.prototype._maybeAddToChanges=function(e,t){looseIdentical(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))},DefaultKeyValueDiffer.prototype._isInRemovals=function(e){return e===this._removalsHead||null!==e._nextRemoved||null!==e._prevRemoved},DefaultKeyValueDiffer.prototype._addToRemovals=function(e){null===this._removalsHead?this._removalsHead=this._removalsTail=e:(this._removalsTail._nextRemoved=e,e._prevRemoved=this._removalsTail,this._removalsTail=e)},DefaultKeyValueDiffer.prototype._removeFromSeq=function(e,t){var r=t._next;null===e?this._mapHead=r:e._next=r,t._next=null},DefaultKeyValueDiffer.prototype._removeFromRemovals=function(e){var t=e._prevRemoved,r=e._nextRemoved;null===t?this._removalsHead=r:t._nextRemoved=r,null===r?this._removalsTail=t:r._prevRemoved=t,e._prevRemoved=e._nextRemoved=null},DefaultKeyValueDiffer.prototype._addToAdditions=function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)},DefaultKeyValueDiffer.prototype._addToChanges=function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)},DefaultKeyValueDiffer.prototype.toString=function(){var e,t=[],r=[],n=[],i=[],o=[];for(e=this._mapHead;null!==e;e=e._next)t.push(stringify(e));for(e=this._previousMapHead;null!==e;e=e._nextPrevious)r.push(stringify(e));for(e=this._changesHead;null!==e;e=e._nextChanged)n.push(stringify(e));for(e=this._additionsHead;null!==e;e=e._nextAdded)i.push(stringify(e));for(e=this._removalsHead;null!==e;e=e._nextRemoved)o.push(stringify(e));return"map: "+t.join(", ")+"\nprevious: "+r.join(", ")+"\nadditions: "+i.join(", ")+"\nchanges: "+n.join(", ")+"\nremovals: "+o.join(", ")+"\n"},DefaultKeyValueDiffer.prototype._forEach=function(e,t){e instanceof Map?e.forEach(t):ce.forEach(e,t)},DefaultKeyValueDiffer}(),dt=function(){function KeyValueChangeRecord(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._nextAdded=null,this._nextRemoved=null,this._prevRemoved=null,this._nextChanged=null}return KeyValueChangeRecord.prototype.toString=function(){return looseIdentical(this.previousValue,this.currentValue)?stringify(this.key):stringify(this.key)+"["+stringify(this.previousValue)+"->"+stringify(this.currentValue)+"]"},KeyValueChangeRecord}(),mt=function(){function IterableDiffers(e){this.factories=e}return IterableDiffers.create=function(e,t){if(isPresent(t)){var r=le.clone(t.factories);return e=e.concat(r),new IterableDiffers(e)}return new IterableDiffers(e)},IterableDiffers.extend=function(e){return{provide:IterableDiffers,useFactory:function(t){if(isBlank(t))throw new Error("Cannot extend IterableDiffers without a parent injector");return IterableDiffers.create(e,t)},deps:[[IterableDiffers,new m,new h]]}},IterableDiffers.prototype.find=function(e){var t=this.factories.find(function(t){return t.supports(e)});if(isPresent(t))return t;throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+getTypeNameForDebugging(e)+"'")},IterableDiffers}(),vt=function(){function KeyValueDiffers(e){this.factories=e}return KeyValueDiffers.create=function(e,t){if(isPresent(t)){var r=le.clone(t.factories);return e=e.concat(r),new KeyValueDiffers(e)}return new KeyValueDiffers(e)},KeyValueDiffers.extend=function(e){return{provide:KeyValueDiffers,useFactory:function(t){if(isBlank(t))throw new Error("Cannot extend KeyValueDiffers without a parent injector");return KeyValueDiffers.create(e,t)},deps:[[KeyValueDiffers,new m,new h]]}},KeyValueDiffers.prototype.find=function(e){var t=this.factories.find(function(t){return t.supports(e)});if(isPresent(t))return t;throw new Error("Cannot find a differ supporting object '"+e+"'")},KeyValueDiffers}(),yt={toString:function(){return"CD_INIT_VALUE"}},bt=function(){function WrappedValue(e){this.wrapped=e}return WrappedValue.wrap=function(e){return new WrappedValue(e)},WrappedValue}(),gt=function(){function ValueUnwrapper(){this.hasWrappedValue=!1}return ValueUnwrapper.prototype.unwrap=function(e){return e instanceof bt?(this.hasWrappedValue=!0,e.wrapped):e},ValueUnwrapper.prototype.reset=function(){this.hasWrappedValue=!1},ValueUnwrapper}(),_t=function(){function SimpleChange(e,t){this.previousValue=e,this.currentValue=t}return SimpleChange.prototype.isFirstChange=function(){return this.previousValue===yt},SimpleChange}(),St=function(){function ChangeDetectorRef(){}return ChangeDetectorRef}(),wt=[new ht],Et=[new st],Ct=new mt(Et),Pt=new vt(wt),Tt=function(){function RenderComponentType(e,t,r,n,i,o){this.id=e,this.templateUrl=t,this.slotCount=r,this.encapsulation=n,this.styles=i,this.animations=o}return RenderComponentType}(),xt=function(){function RenderDebugInfo(){}return Object.defineProperty(RenderDebugInfo.prototype,"injector",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(RenderDebugInfo.prototype,"component",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(RenderDebugInfo.prototype,"providerTokens",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(RenderDebugInfo.prototype,"references",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(RenderDebugInfo.prototype,"context",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(RenderDebugInfo.prototype,"source",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),RenderDebugInfo}(),At=function(){function Renderer(){}return Renderer}(),Ot=function(){function RootRenderer(){}return RootRenderer}();/**
	     * @license
	     * Copyright Google Inc. All Rights Reserved.
	     *
	     * Use of this source code is governed by an MIT-style license that can be
	     * found in the LICENSE file at https://angular.io/license
	     */
t.SecurityContext,function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL"}(t.SecurityContext||(t.SecurityContext={}));var It,Rt,Mt,kt=function(){function Sanitizer(){}return Sanitizer}(),Nt=function(){function ElementRef(e){this.nativeElement=e}return ElementRef}(),Dt=detectWTF(),Vt=Dt?createScope:function(e,t){return noopScope},jt=Dt?leave:function(e,t){return t},Lt=Dt?startTimeRange:function(e,t){return null},Ft=Dt?endTimeRange:function(e){return null},Bt=function(){function ViewContainerRef(){}return Object.defineProperty(ViewContainerRef.prototype,"element",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(ViewContainerRef.prototype,"injector",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(ViewContainerRef.prototype,"parentInjector",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(ViewContainerRef.prototype,"length",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),ViewContainerRef}(),Wt=function(){function ViewContainerRef_(e){this._element=e,this._createComponentInContainerScope=Vt("ViewContainerRef#createComponent()"),this._insertScope=Vt("ViewContainerRef#insert()"),this._removeScope=Vt("ViewContainerRef#remove()"),this._detachScope=Vt("ViewContainerRef#detach()")}return ViewContainerRef_.prototype.get=function(e){return this._element.nestedViews[e].ref},Object.defineProperty(ViewContainerRef_.prototype,"length",{get:function(){var e=this._element.nestedViews;return isPresent(e)?e.length:0},enumerable:!0,configurable:!0}),Object.defineProperty(ViewContainerRef_.prototype,"element",{get:function(){return this._element.elementRef},enumerable:!0,configurable:!0}),Object.defineProperty(ViewContainerRef_.prototype,"injector",{get:function(){return this._element.injector},enumerable:!0,configurable:!0}),Object.defineProperty(ViewContainerRef_.prototype,"parentInjector",{get:function(){return this._element.parentInjector},enumerable:!0,configurable:!0}),ViewContainerRef_.prototype.createEmbeddedView=function(e,t,r){void 0===t&&(t=null),void 0===r&&(r=-1);var n=e.createEmbeddedView(t);return this.insert(n,r),n},ViewContainerRef_.prototype.createComponent=function(e,t,r,n){void 0===t&&(t=-1),void 0===r&&(r=null),void 0===n&&(n=null);var i=this._createComponentInContainerScope(),o=isPresent(r)?r:this._element.parentInjector,s=e.create(o,n);return this.insert(s.hostView,t),jt(i,s)},ViewContainerRef_.prototype.insert=function(e,t){void 0===t&&(t=-1);var r=this._insertScope();t==-1&&(t=this.length);var n=e;return this._element.attachView(n.internalView,t),jt(r,n)},ViewContainerRef_.prototype.move=function(e,t){var r=this._insertScope();if(t!=-1){var n=e;return this._element.moveView(n.internalView,t),jt(r,n)}},ViewContainerRef_.prototype.indexOf=function(e){return le.indexOf(this._element.nestedViews,e.internalView)},ViewContainerRef_.prototype.remove=function(e){void 0===e&&(e=-1);var t=this._removeScope();e==-1&&(e=this.length-1);var r=this._element.detachView(e);r.destroy(),jt(t)},ViewContainerRef_.prototype.detach=function(e){void 0===e&&(e=-1);var t=this._detachScope();e==-1&&(e=this.length-1);var r=this._element.detachView(e);return jt(t,r.ref)},ViewContainerRef_.prototype.clear=function(){for(var e=this.length-1;e>=0;e--)this.remove(e)},ViewContainerRef_}();!function(e){e[e.HOST=0]="HOST",e[e.COMPONENT=1]="COMPONENT",e[e.EMBEDDED=2]="EMBEDDED"}(Mt||(Mt={}));var Ut,zt=function(){function AppElement(e,t,r,n){this.index=e,this.parentIndex=t,this.parentView=r,this.nativeElement=n,this.nestedViews=null,this.componentView=null}return Object.defineProperty(AppElement.prototype,"elementRef",{get:function(){return new Nt(this.nativeElement)},enumerable:!0,configurable:!0}),Object.defineProperty(AppElement.prototype,"vcRef",{get:function(){return new Wt(this)},enumerable:!0,configurable:!0}),AppElement.prototype.initComponent=function(e,t,r){this.component=e,this.componentConstructorViewQueries=t,this.componentView=r},Object.defineProperty(AppElement.prototype,"parentInjector",{get:function(){return this.parentView.injector(this.parentIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(AppElement.prototype,"injector",{get:function(){return this.parentView.injector(this.index)},enumerable:!0,configurable:!0}),AppElement.prototype.mapNestedViews=function(e,t){var r=[];return isPresent(this.nestedViews)&&this.nestedViews.forEach(function(n){n.clazz===e&&r.push(t(n))}),r},AppElement.prototype.moveView=function(e,t){var r=this.nestedViews.indexOf(e);if(e.type===Mt.COMPONENT)throw new Error("Component views can't be moved!");var n=this.nestedViews;null==n&&(n=[],this.nestedViews=n),le.removeAt(n,r),le.insert(n,t,e);var i;if(t>0){var o=n[t-1];i=o.lastRootNode}else i=this.nativeElement;isPresent(i)&&e.renderer.attachViewAfter(i,e.flatRootNodes),e.markContentChildAsMoved(this)},AppElement.prototype.attachView=function(e,t){if(e.type===Mt.COMPONENT)throw new Error("Component views can't be moved!");var r=this.nestedViews;null==r&&(r=[],this.nestedViews=r),le.insert(r,t,e);var n;if(t>0){var i=r[t-1];n=i.lastRootNode}else n=this.nativeElement;isPresent(n)&&e.renderer.attachViewAfter(n,e.flatRootNodes),e.addToContentChildren(this)},AppElement.prototype.detachView=function(e){var t=le.removeAt(this.nestedViews,e);if(t.type===Mt.COMPONENT)throw new Error("Component views can't be moved!");return t.detach(),t.removeFromContentChildren(this),t},AppElement}(),Ht=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},qt=function(e){function ExpressionChangedAfterItHasBeenCheckedError(t,r){var n="Expression has changed after it was checked. Previous value: '"+t+"'. Current value: '"+r+"'.";t===yt&&(n+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),e.call(this,n)}return Ht(ExpressionChangedAfterItHasBeenCheckedError,e),ExpressionChangedAfterItHasBeenCheckedError}(J),Gt=function(e){function ViewWrappedError(t,r){e.call(this,"Error in "+r.source,t),this.context=r}return Ht(ViewWrappedError,e),ViewWrappedError}(Z),Kt=function(e){function ViewDestroyedError(t){e.call(this,"Attempt to use a destroyed view: "+t)}return Ht(ViewDestroyedError,e),ViewDestroyedError}(J),Qt=function(){function ViewUtils(e,t,r){this._renderer=e,this._appId=t,this._nextCompTypeId=0,this.sanitizer=r}return ViewUtils.prototype.createRenderComponentType=function(e,t,r,n,i){return new Tt(this._appId+"-"+this._nextCompTypeId++,e,t,r,n,i)},ViewUtils.prototype.renderComponent=function(e){return this._renderer.renderComponent(e)},ViewUtils.decorators=[{type:f}],ViewUtils.ctorParameters=[{type:Ot},{type:void 0,decorators:[{type:p,args:[Qe]}]},{type:kt}],ViewUtils}(),Xt=[],Jt=9,Zt=[],$t={},Yt=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},er=function(){function ComponentRef(){}return Object.defineProperty(ComponentRef.prototype,"location",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(ComponentRef.prototype,"injector",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(ComponentRef.prototype,"instance",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(ComponentRef.prototype,"hostView",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(ComponentRef.prototype,"changeDetectorRef",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(ComponentRef.prototype,"componentType",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),ComponentRef}(),tr=function(e){function ComponentRef_(t,r){e.call(this),this._hostElement=t,this._componentType=r}return Yt(ComponentRef_,e),Object.defineProperty(ComponentRef_.prototype,"location",{get:function(){return this._hostElement.elementRef},enumerable:!0,configurable:!0}),Object.defineProperty(ComponentRef_.prototype,"injector",{get:function(){return this._hostElement.injector},enumerable:!0,configurable:!0}),Object.defineProperty(ComponentRef_.prototype,"instance",{get:function(){return this._hostElement.component},enumerable:!0,configurable:!0}),Object.defineProperty(ComponentRef_.prototype,"hostView",{get:function(){return this._hostElement.parentView.ref},enumerable:!0,configurable:!0}),Object.defineProperty(ComponentRef_.prototype,"changeDetectorRef",{get:function(){return this._hostElement.parentView.ref},enumerable:!0,configurable:!0}),Object.defineProperty(ComponentRef_.prototype,"componentType",{get:function(){return this._componentType},enumerable:!0,configurable:!0}),ComponentRef_.prototype.destroy=function(){this._hostElement.parentView.destroy()},ComponentRef_.prototype.onDestroy=function(e){this.hostView.onDestroy(e)},ComponentRef_}(er),rr=new Object,nr=function(){function ComponentFactory(e,t,r){this.selector=e,this._viewFactory=t,this._componentType=r}return Object.defineProperty(ComponentFactory.prototype,"componentType",{get:function(){return this._componentType},enumerable:!0,configurable:!0}),ComponentFactory.prototype.create=function(e,t,r){void 0===t&&(t=null),void 0===r&&(r=null);var n=e.get(Qt);isBlank(t)&&(t=[]);var i=this._viewFactory(n,e,null),o=i.create(rr,t,r);return new tr(o,this._componentType)},ComponentFactory}(),ir=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},or=function(e){function NoComponentFactoryError(t){e.call(this,"No component factory found for "+stringify(t)),this.component=t}return ir(NoComponentFactoryError,e),NoComponentFactoryError}(J),sr=function(){function _NullComponentFactoryResolver(){}return _NullComponentFactoryResolver.prototype.resolveComponentFactory=function(e){throw new or(e)},_NullComponentFactoryResolver}(),ar=function(){function ComponentFactoryResolver(){}return ComponentFactoryResolver.NULL=new sr,ComponentFactoryResolver}(),ur=function(){function CodegenComponentFactoryResolver(e,t){this._parent=t,this._factories=new Map;for(var r=0;r<e.length;r++){var n=e[r];this._factories.set(n.componentType,n)}}return CodegenComponentFactoryResolver.prototype.resolveComponentFactory=function(e){var t=this._factories.get(e);return t||(t=this._parent.resolveComponentFactory(e)),t},CodegenComponentFactoryResolver}(),cr=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},lr=function(e){function EventEmitter(t){void 0===t&&(t=!1),e.call(this),this.__isAsync=t}return cr(EventEmitter,e),EventEmitter.prototype.emit=function(t){e.prototype.next.call(this,t)},EventEmitter.prototype.subscribe=function(t,r,n){var i,o=function(e){return null},s=function(){return null};return t&&"object"==typeof t?(i=this.__isAsync?function(e){setTimeout(function(){return t.next(e)})}:function(e){t.next(e)},t.error&&(o=this.__isAsync?function(e){setTimeout(function(){return t.error(e)})}:function(e){t.error(e)}),t.complete&&(s=this.__isAsync?function(){setTimeout(function(){return t.complete()})}:function(){t.complete()})):(i=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)},r&&(o=this.__isAsync?function(e){setTimeout(function(){return r(e)})}:function(e){r(e)}),n&&(s=this.__isAsync?function(){setTimeout(function(){return n()})}:function(){n()})),e.prototype.subscribe.call(this,i,o,s)},EventEmitter}(r.Subject),pr=function(){function NgZoneImpl(e){var t=this,r=e.trace,n=e.onEnter,i=e.onLeave,o=e.setMicrotask,s=e.setMacrotask,a=e.onError;if(this.onEnter=n,this.onLeave=i,this.setMicrotask=o,this.setMacrotask=s,this.onError=a,"undefined"==typeof Zone)throw new Error("Angular requires Zone.js prolyfill.");Zone.assertZonePatched(),this.outer=this.inner=Zone.current,Zone.wtfZoneSpec&&(this.inner=this.inner.fork(Zone.wtfZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(this.inner=this.inner.fork(Zone.longStackTraceZoneSpec)),this.inner=this.inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,r,n,i,o,s){try{return t.onEnter(),e.invokeTask(n,i,o,s)}finally{t.onLeave()}},onInvoke:function(e,r,n,i,o,s,a){try{return t.onEnter(),e.invoke(n,i,o,s,a)}finally{t.onLeave()}},onHasTask:function(e,r,n,i){e.hasTask(n,i),r===n&&("microTask"==i.change?t.setMicrotask(i.microTask):"macroTask"==i.change&&t.setMacrotask(i.macroTask))},onHandleError:function(e,r,n,i){return e.handleError(n,i),t.onError(i),!1}})}return NgZoneImpl.isInAngularZone=function(){return Zone.current.get("isAngularZone")===!0},NgZoneImpl.prototype.runInner=function(e){return this.inner.run(e)},NgZoneImpl.prototype.runInnerGuarded=function(e){return this.inner.runGuarded(e)},NgZoneImpl.prototype.runOuter=function(e){return this.outer.run(e)},NgZoneImpl}(),hr=function(){function NgZone(e){var t=this,r=e.enableLongStackTrace,n=void 0!==r&&r;this._hasPendingMicrotasks=!1,this._hasPendingMacrotasks=!1,this._isStable=!0,this._nesting=0,this._onUnstable=new lr((!1)),this._onMicrotaskEmpty=new lr((!1)),this._onStable=new lr((!1)),this._onErrorEvents=new lr((!1)),this._zoneImpl=new pr({trace:n,onEnter:function(){t._nesting++,t._isStable&&(t._isStable=!1,t._onUnstable.emit(null))},onLeave:function(){t._nesting--,t._checkStable()},setMicrotask:function(e){t._hasPendingMicrotasks=e,t._checkStable()},setMacrotask:function(e){t._hasPendingMacrotasks=e},onError:function(e){return t._onErrorEvents.emit(e)}})}return NgZone.isInAngularZone=function(){return pr.isInAngularZone()},NgZone.assertInAngularZone=function(){if(!pr.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},NgZone.assertNotInAngularZone=function(){if(pr.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},NgZone.prototype._checkStable=function(){var e=this;if(0==this._nesting&&!this._hasPendingMicrotasks&&!this._isStable)try{this._nesting++,this._onMicrotaskEmpty.emit(null)}finally{if(this._nesting--,!this._hasPendingMicrotasks)try{this.runOutsideAngular(function(){return e._onStable.emit(null)})}finally{this._isStable=!0}}},Object.defineProperty(NgZone.prototype,"onUnstable",{get:function(){return this._onUnstable},enumerable:!0,configurable:!0}),Object.defineProperty(NgZone.prototype,"onMicrotaskEmpty",{get:function(){return this._onMicrotaskEmpty},enumerable:!0,configurable:!0}),Object.defineProperty(NgZone.prototype,"onStable",{get:function(){return this._onStable},enumerable:!0,configurable:!0}),Object.defineProperty(NgZone.prototype,"onError",{get:function(){return this._onErrorEvents},enumerable:!0,configurable:!0}),Object.defineProperty(NgZone.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),Object.defineProperty(NgZone.prototype,"hasPendingMicrotasks",{get:function(){return this._hasPendingMicrotasks},enumerable:!0,configurable:!0}),Object.defineProperty(NgZone.prototype,"hasPendingMacrotasks",{get:function(){return this._hasPendingMacrotasks},enumerable:!0,configurable:!0}),NgZone.prototype.run=function(e){return this._zoneImpl.runInner(e)},NgZone.prototype.runGuarded=function(e){return this._zoneImpl.runInnerGuarded(e)},NgZone.prototype.runOutsideAngular=function(e){return this._zoneImpl.runOuter(e)},NgZone}(),fr=function(){function Testability(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return Testability.prototype._watchAngularEvents=function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.subscribe({next:function(){hr.assertNotInAngularZone(),scheduleMicroTask(function(){e._isZoneStable=!0,e._runCallbacksIfReady()})}})})},Testability.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},Testability.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},Testability.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},Testability.prototype._runCallbacksIfReady=function(){var e=this;this.isStable()?scheduleMicroTask(function(){for(;0!==e._callbacks.length;)e._callbacks.pop()(e._didWork);e._didWork=!1}):this._didWork=!0},Testability.prototype.whenStable=function(e){this._callbacks.push(e),this._runCallbacksIfReady()},Testability.prototype.getPendingRequestCount=function(){return this._pendingCount},Testability.prototype.findBindings=function(e,t,r){return[]},Testability.prototype.findProviders=function(e,t,r){return[]},Testability.decorators=[{type:f}],Testability.ctorParameters=[{type:hr}],Testability}(),dr=function(){function TestabilityRegistry(){this._applications=new re,vr.addToWindow(this)}return TestabilityRegistry.prototype.registerApplication=function(e,t){this._applications.set(e,t)},TestabilityRegistry.prototype.getTestability=function(e){return this._applications.get(e)},TestabilityRegistry.prototype.getAllTestabilities=function(){return ue.values(this._applications)},TestabilityRegistry.prototype.getAllRootElements=function(){return ue.keys(this._applications)},TestabilityRegistry.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),vr.findTestabilityInTree(this,e,t)},TestabilityRegistry.decorators=[{type:f}],TestabilityRegistry.ctorParameters=[],TestabilityRegistry}(),mr=function(){function _NoopGetTestability(){}return _NoopGetTestability.prototype.addToWindow=function(e){},_NoopGetTestability.prototype.findTestabilityInTree=function(e,t,r){return null},_NoopGetTestability}(),vr=new mr,yr=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},br=!0,gr=!1,_r=function(){function PlatformRef(){}return PlatformRef.prototype.bootstrapModuleFactory=function(e){throw unimplemented()},PlatformRef.prototype.bootstrapModule=function(e,t){throw void 0===t&&(t=[]),unimplemented()},Object.defineProperty(PlatformRef.prototype,"injector",{get:function(){throw unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(PlatformRef.prototype,"destroyed",{get:function(){throw unimplemented()},enumerable:!0,configurable:!0}),PlatformRef}(),Sr=function(e){function PlatformRef_(t){e.call(this),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return yr(PlatformRef_,e),PlatformRef_.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(PlatformRef_.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(PlatformRef_.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),PlatformRef_.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");le.clone(this._modules).forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},PlatformRef_.prototype.bootstrapModuleFactory=function(e){return this._bootstrapModuleFactoryWithZone(e,null)},PlatformRef_.prototype._bootstrapModuleFactoryWithZone=function(e,t){var r=this;return t||(t=new hr({enableLongStackTrace:isDevMode()})),t.run(function(){var n=Ue.resolveAndCreate([{provide:hr,useValue:t}],r.injector),i=e.create(n),o=i.injector.get(qe,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(function(){return le.remove(r._modules,i)}),t.onError.subscribe({next:function(e){o.handleError(e)}}),_callAndReportToErrorHandler(o,function(){var e=i.injector.get(Ke);return e.donePromise.then(function(){return r._moduleDoBootstrap(i),i})})})},PlatformRef_.prototype.bootstrapModule=function(e,t){return void 0===t&&(t=[]),this._bootstrapModuleWithZone(e,t,null)},PlatformRef_.prototype._bootstrapModuleWithZone=function(e,t,r,n){var i=this;void 0===t&&(t=[]);var o=this.injector.get(ot),s=o.createCompiler(t instanceof Array?t:[t]);return n?s.compileModuleAndAllComponentsAsync(e).then(function(e){var t=e.ngModuleFactory,o=e.componentFactories;return n(o),i._bootstrapModuleFactoryWithZone(t,r)}):s.compileModuleAsync(e).then(function(e){return i._bootstrapModuleFactoryWithZone(e,r)})},PlatformRef_.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(wr);if(e.bootstrapFactories.length>0)e.bootstrapFactories.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+stringify(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}},PlatformRef_.decorators=[{type:f}],PlatformRef_.ctorParameters=[{type:te}],PlatformRef_}(_r),wr=function(){function ApplicationRef(){}return Object.defineProperty(ApplicationRef.prototype,"componentTypes",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(ApplicationRef.prototype,"components",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),ApplicationRef}(),Er=function(e){function ApplicationRef_(t,r,n,i,o,s,a,u){var c=this;e.call(this),this._zone=t,this._console=r,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=s,this._testabilityRegistry=a,this._testability=u,this._bootstrapListeners=[],this._rootComponents=[],this._rootComponentTypes=[],this._changeDetectorRefs=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._enforceNoNewChanges=isDevMode(),this._zone.onMicrotaskEmpty.subscribe({next:function(){c._zone.run(function(){c.tick()})}})}return yr(ApplicationRef_,e),ApplicationRef_.prototype.registerChangeDetector=function(e){this._changeDetectorRefs.push(e)},ApplicationRef_.prototype.unregisterChangeDetector=function(e){le.remove(this._changeDetectorRefs,e)},ApplicationRef_.prototype.bootstrap=function(e){var t=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");var r;r=e instanceof nr?e:this._componentFactoryResolver.resolveComponentFactory(e),this._rootComponentTypes.push(r.componentType);var n=r.create(this._injector,[],r.selector);n.onDestroy(function(){t._unloadComponent(n)});var i=n.injector.get(fr,null);return isPresent(i)&&n.injector.get(dr).registerApplication(n.location.nativeElement,i),this._loadComponent(n),isDevMode()&&this._console.log("Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode."),n},ApplicationRef_.prototype._loadComponent=function(e){this._changeDetectorRefs.push(e.changeDetectorRef),this.tick(),this._rootComponents.push(e);var t=this._injector.get(Ze,[]).concat(this._bootstrapListeners);t.forEach(function(t){return t(e)})},ApplicationRef_.prototype._unloadComponent=function(e){le.contains(this._rootComponents,e)&&(this.unregisterChangeDetector(e.changeDetectorRef),le.remove(this._rootComponents,e))},ApplicationRef_.prototype.tick=function(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var e=ApplicationRef_._tickScope();try{this._runningTick=!0,this._changeDetectorRefs.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._changeDetectorRefs.forEach(function(e){return e.checkNoChanges()})}finally{this._runningTick=!1,jt(e)}},ApplicationRef_.prototype.ngOnDestroy=function(){le.clone(this._rootComponents).forEach(function(e){return e.destroy()})},Object.defineProperty(ApplicationRef_.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(ApplicationRef_.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),ApplicationRef_._tickScope=Vt("ApplicationRef#tick()"),ApplicationRef_.decorators=[{type:f}],ApplicationRef_.ctorParameters=[{type:hr},{type:Ye},{type:te},{type:qe},{type:ar},{type:Ke},{type:dr,decorators:[{type:h}]},{type:fr,decorators:[{type:h}]}],ApplicationRef_}(wr),Cr=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},Pr=function(){function NgModuleRef(){}return Object.defineProperty(NgModuleRef.prototype,"injector",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(NgModuleRef.prototype,"componentFactoryResolver",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(NgModuleRef.prototype,"instance",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),NgModuleRef}(),Tr=function(){function NgModuleFactory(e,t){this._injectorClass=e,this._moduleType=t}return Object.defineProperty(NgModuleFactory.prototype,"moduleType",{get:function(){return this._moduleType},enumerable:!0,configurable:!0}),NgModuleFactory.prototype.create=function(e){e||(e=te.NULL);var t=new this._injectorClass(e);return t.create(),t},NgModuleFactory}(),xr=new Object,Ar=function(e){function NgModuleInjector(t,r,n){e.call(this,r,t.get(ar,ar.NULL)),this.parent=t,this.bootstrapFactories=n,this._destroyListeners=[],this._destroyed=!1}return Cr(NgModuleInjector,e),NgModuleInjector.prototype.create=function(){this.instance=this.createInternal()},NgModuleInjector.prototype.get=function(e,t){if(void 0===t&&(t=Y),e===te||e===ar)return this;var r=this.getInternal(e,xr);return r===xr?this.parent.get(e,t):r},Object.defineProperty(NgModuleInjector.prototype,"injector",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(NgModuleInjector.prototype,"componentFactoryResolver",{get:function(){return this},enumerable:!0,configurable:!0}),NgModuleInjector.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+stringify(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,this.destroyInternal(),this._destroyListeners.forEach(function(e){return e()})},NgModuleInjector.prototype.onDestroy=function(e){this._destroyListeners.push(e)},NgModuleInjector}(ur),Or=function(){function NgModuleFactoryLoader(){}return NgModuleFactoryLoader}(),Ir=new Map,Rr=function(){function QueryList(){this._dirty=!0,this._results=[],this._emitter=new lr}return Object.defineProperty(QueryList.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(QueryList.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(QueryList.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(QueryList.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),QueryList.prototype.map=function(e){return this._results.map(e)},QueryList.prototype.filter=function(e){return this._results.filter(e)},QueryList.prototype.reduce=function(e,t){return this._results.reduce(e,t)},QueryList.prototype.forEach=function(e){this._results.forEach(e)},QueryList.prototype.some=function(e){return this._results.some(e)},QueryList.prototype.toArray=function(){return this._results.slice()},QueryList.prototype[getSymbolIterator()]=function(){return this._results[getSymbolIterator()]()},QueryList.prototype.toString=function(){return this._results.toString()},QueryList.prototype.reset=function(e){this._results=le.flatten(e),this._dirty=!1},QueryList.prototype.notifyOnChanges=function(){this._emitter.emit(this)},QueryList.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(QueryList.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),QueryList}(),Mr="#",kr="NgFactory",Nr=function(){function SystemJsNgModuleLoaderConfig(){}return SystemJsNgModuleLoaderConfig}(),Dr={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Vr=function(){function SystemJsNgModuleLoader(e,t){this._compiler=e,this._config=t||Dr}return SystemJsNgModuleLoader.prototype.load=function(e){var t=this._compiler instanceof nt;return t?this.loadFactory(e):this.loadAndCompile(e)},SystemJsNgModuleLoader.prototype.loadAndCompile=function(e){var t=this,r=e.split(Mr),n=r[0],i=r[1];return void 0===i&&(i="default"),System["import"](n).then(function(e){return e[i]}).then(function(e){return checkNotEmpty(e,n,i)}).then(function(e){return t._compiler.compileModuleAsync(e)})},SystemJsNgModuleLoader.prototype.loadFactory=function(e){var t=e.split(Mr),r=t[0],n=t[1],i=kr;return void 0===n&&(n="default",i=""),System["import"](this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(e){return e[n+i]}).then(function(e){return checkNotEmpty(e,r,n)})},SystemJsNgModuleLoader.decorators=[{type:f}],SystemJsNgModuleLoader.ctorParameters=[{type:nt},{type:Nr,decorators:[{type:h}]}],SystemJsNgModuleLoader}(),jr=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},Lr=function(){function TemplateRef(){}return Object.defineProperty(TemplateRef.prototype,"elementRef",{get:function(){return null},enumerable:!0,configurable:!0}),TemplateRef}(),Fr=function(e){function TemplateRef_(t,r){e.call(this),this._appElement=t,this._viewFactory=r}return jr(TemplateRef_,e),TemplateRef_.prototype.createEmbeddedView=function(e){var t=this._viewFactory(this._appElement.parentView.viewUtils,this._appElement.parentInjector,this._appElement);return t.create(e||{},null,null),t.ref},Object.defineProperty(TemplateRef_.prototype,"elementRef",{get:function(){return this._appElement.elementRef},enumerable:!0,configurable:!0}),TemplateRef_}(Lr),Br=[],Wr=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},Ur=function(){function ViewRef(){}return Object.defineProperty(ViewRef.prototype,"destroyed",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),ViewRef}(),zr=function(e){function EmbeddedViewRef(){e.apply(this,arguments)}return Wr(EmbeddedViewRef,e),Object.defineProperty(EmbeddedViewRef.prototype,"context",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(EmbeddedViewRef.prototype,"rootNodes",{get:function(){return unimplemented()},enumerable:!0,configurable:!0}),EmbeddedViewRef}(Ur),Hr=function(){function ViewRef_(e){this._view=e,this._view=e,this._originalMode=this._view.cdMode}return Object.defineProperty(ViewRef_.prototype,"internalView",{get:function(){return this._view},enumerable:!0,configurable:!0}),Object.defineProperty(ViewRef_.prototype,"rootNodes",{get:function(){return this._view.flatRootNodes},enumerable:!0,configurable:!0}),Object.defineProperty(ViewRef_.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(ViewRef_.prototype,"destroyed",{get:function(){return this._view.destroyed},enumerable:!0,configurable:!0}),ViewRef_.prototype.markForCheck=function(){
this._view.markPathToRootAsCheckOnce()},ViewRef_.prototype.detach=function(){this._view.cdMode=P.Detached},ViewRef_.prototype.detectChanges=function(){this._view.detectChanges(!1),triggerQueuedAnimations()},ViewRef_.prototype.checkNoChanges=function(){this._view.detectChanges(!0)},ViewRef_.prototype.reattach=function(){this._view.cdMode=this._originalMode,this.markForCheck()},ViewRef_.prototype.onDestroy=function(e){this._view.disposables.push(e)},ViewRef_.prototype.destroy=function(){this._view.destroy()},ViewRef_}(),qr=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},Gr=function(){function EventListener(e,t){this.name=e,this.callback=t}return EventListener}(),Kr=function(){function DebugNode(e,t,r){this._debugInfo=r,this.nativeNode=e,isPresent(t)&&t instanceof Qr?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(DebugNode.prototype,"injector",{get:function(){return isPresent(this._debugInfo)?this._debugInfo.injector:null},enumerable:!0,configurable:!0}),Object.defineProperty(DebugNode.prototype,"componentInstance",{get:function(){return isPresent(this._debugInfo)?this._debugInfo.component:null},enumerable:!0,configurable:!0}),Object.defineProperty(DebugNode.prototype,"context",{get:function(){return isPresent(this._debugInfo)?this._debugInfo.context:null},enumerable:!0,configurable:!0}),Object.defineProperty(DebugNode.prototype,"references",{get:function(){return isPresent(this._debugInfo)?this._debugInfo.references:null},enumerable:!0,configurable:!0}),Object.defineProperty(DebugNode.prototype,"providerTokens",{get:function(){return isPresent(this._debugInfo)?this._debugInfo.providerTokens:null},enumerable:!0,configurable:!0}),Object.defineProperty(DebugNode.prototype,"source",{get:function(){return isPresent(this._debugInfo)?this._debugInfo.source:null},enumerable:!0,configurable:!0}),DebugNode}(),Qr=function(e){function DebugElement(t,r,n){e.call(this,t,r,n),this.properties={},this.attributes={},this.classes={},this.styles={},this.childNodes=[],this.nativeElement=t}return qr(DebugElement,e),DebugElement.prototype.addChild=function(e){isPresent(e)&&(this.childNodes.push(e),e.parent=this)},DebugElement.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);t!==-1&&(e.parent=null,this.childNodes.splice(t,1))},DebugElement.prototype.insertChildrenAfter=function(e,t){var r=this.childNodes.indexOf(e);if(r!==-1){var n=this.childNodes.slice(0,r+1),i=this.childNodes.slice(r+1);this.childNodes=le.concat(le.concat(n,t),i);for(var o=0;o<t.length;++o){var s=t[o];isPresent(s.parent)&&s.parent.removeChild(s),s.parent=this}}},DebugElement.prototype.query=function(e){var t=this.queryAll(e);return t.length>0?t[0]:null},DebugElement.prototype.queryAll=function(e){var t=[];return _queryElementChildren(this,e,t),t},DebugElement.prototype.queryAllNodes=function(e){var t=[];return _queryNodeChildren(this,e,t),t},Object.defineProperty(DebugElement.prototype,"children",{get:function(){var e=[];return this.childNodes.forEach(function(t){t instanceof DebugElement&&e.push(t)}),e},enumerable:!0,configurable:!0}),DebugElement.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(r){r.name==e&&r.callback(t)})},DebugElement}(Kr),Xr=new Map,Jr=[Sr,{provide:_r,useExisting:Sr},{provide:Oe,useFactory:_reflector,deps:[]},{provide:xe,useExisting:Oe},dr,Ye],Zr=createPlatformFactory(null,"core",Jr),$r=new y("LocaleId"),Yr=new y("Translations"),en=new y("TranslationsFormat"),tn=function(){function ApplicationModule(){}return ApplicationModule.decorators=[{type:G,args:[{providers:[Er,{provide:wr,useExisting:Er},Ke,nt,Xe,Qt,{provide:mt,useFactory:_iterableDiffersFactory},{provide:vt,useFactory:_keyValueDiffersFactory},{provide:$r,useValue:"en-US"}]}]}],ApplicationModule.ctorParameters=[],ApplicationModule}(),rn="true",nn="*",on="*",sn="void",an=o.Math,un=function(){function AnimationGroupPlayer(e){var t=this;this._players=e,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this.parentPlayer=null;var r=0,n=this._players.length;0==n?scheduleMicroTask(function(){return t._onFinish()}):this._players.forEach(function(e){e.parentPlayer=t,e.onDone(function(){++r>=n&&t._onFinish()})})}return AnimationGroupPlayer.prototype._onFinish=function(){this._finished||(this._finished=!0,isPresent(this.parentPlayer)||this.destroy(),this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},AnimationGroupPlayer.prototype.init=function(){this._players.forEach(function(e){return e.init()})},AnimationGroupPlayer.prototype.onStart=function(e){this._onStartFns.push(e)},AnimationGroupPlayer.prototype.onDone=function(e){this._onDoneFns.push(e)},AnimationGroupPlayer.prototype.hasStarted=function(){return this._started},AnimationGroupPlayer.prototype.play=function(){isPresent(this.parentPlayer)||this.init(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0),this._players.forEach(function(e){return e.play()})},AnimationGroupPlayer.prototype.pause=function(){this._players.forEach(function(e){return e.pause()})},AnimationGroupPlayer.prototype.restart=function(){this._players.forEach(function(e){return e.restart()})},AnimationGroupPlayer.prototype.finish=function(){this._onFinish(),this._players.forEach(function(e){return e.finish()})},AnimationGroupPlayer.prototype.destroy=function(){this._onFinish(),this._players.forEach(function(e){return e.destroy()})},AnimationGroupPlayer.prototype.reset=function(){this._players.forEach(function(e){return e.reset()})},AnimationGroupPlayer.prototype.setPosition=function(e){this._players.forEach(function(t){t.setPosition(e)})},AnimationGroupPlayer.prototype.getPosition=function(){var e=0;return this._players.forEach(function(t){var r=t.getPosition();e=an.min(r,e)}),e},AnimationGroupPlayer}(),cn=function(){function AnimationKeyframe(e,t){this.offset=e,this.styles=t}return AnimationKeyframe}(),ln=function(){function AnimationOutput(e,t,r){this.name=e,this.phase=t,this.fullPropertyName=r}return AnimationOutput}(),pn=function(){function AnimationPlayer(){}return Object.defineProperty(AnimationPlayer.prototype,"parentPlayer",{get:function(){throw new Error("NOT IMPLEMENTED: Base Class")},set:function(e){throw new Error("NOT IMPLEMENTED: Base Class")},enumerable:!0,configurable:!0}),AnimationPlayer}(),hn=function(){function NoOpAnimationPlayer(){var e=this;this._onDoneFns=[],this._onStartFns=[],this._started=!1,this.parentPlayer=null,scheduleMicroTask(function(){return e._onFinish()})}return NoOpAnimationPlayer.prototype._onFinish=function(){this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[]},NoOpAnimationPlayer.prototype.onStart=function(e){this._onStartFns.push(e)},NoOpAnimationPlayer.prototype.onDone=function(e){this._onDoneFns.push(e)},NoOpAnimationPlayer.prototype.hasStarted=function(){return this._started},NoOpAnimationPlayer.prototype.init=function(){},NoOpAnimationPlayer.prototype.play=function(){this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]),this._started=!0},NoOpAnimationPlayer.prototype.pause=function(){},NoOpAnimationPlayer.prototype.restart=function(){},NoOpAnimationPlayer.prototype.finish=function(){this._onFinish()},NoOpAnimationPlayer.prototype.destroy=function(){},NoOpAnimationPlayer.prototype.reset=function(){},NoOpAnimationPlayer.prototype.setPosition=function(e){},NoOpAnimationPlayer.prototype.getPosition=function(){return 0},NoOpAnimationPlayer}(),fn=function(){function AnimationSequencePlayer(e){var t=this;this._players=e,this._currentIndex=0,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this.parentPlayer=null,this._players.forEach(function(e){e.parentPlayer=t}),this._onNext(!1)}return AnimationSequencePlayer.prototype._onNext=function(e){var t=this;if(!this._finished)if(0==this._players.length)this._activePlayer=new hn,scheduleMicroTask(function(){return t._onFinish()});else if(this._currentIndex>=this._players.length)this._activePlayer=new hn,this._onFinish();else{var r=this._players[this._currentIndex++];r.onDone(function(){return t._onNext(!0)}),this._activePlayer=r,e&&r.play()}},AnimationSequencePlayer.prototype._onFinish=function(){this._finished||(this._finished=!0,isPresent(this.parentPlayer)||this.destroy(),this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},AnimationSequencePlayer.prototype.init=function(){this._players.forEach(function(e){return e.init()})},AnimationSequencePlayer.prototype.onStart=function(e){this._onStartFns.push(e)},AnimationSequencePlayer.prototype.onDone=function(e){this._onDoneFns.push(e)},AnimationSequencePlayer.prototype.hasStarted=function(){return this._started},AnimationSequencePlayer.prototype.play=function(){isPresent(this.parentPlayer)||this.init(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0),this._activePlayer.play()},AnimationSequencePlayer.prototype.pause=function(){this._activePlayer.pause()},AnimationSequencePlayer.prototype.restart=function(){this._players.length>0&&(this.reset(),this._players[0].restart())},AnimationSequencePlayer.prototype.reset=function(){this._players.forEach(function(e){return e.reset()})},AnimationSequencePlayer.prototype.finish=function(){this._onFinish(),this._players.forEach(function(e){return e.finish()})},AnimationSequencePlayer.prototype.destroy=function(){this._onFinish(),this._players.forEach(function(e){return e.destroy()})},AnimationSequencePlayer.prototype.setPosition=function(e){this._players[0].setPosition(e)},AnimationSequencePlayer.prototype.getPosition=function(){return this._players[0].getPosition()},AnimationSequencePlayer}(),dn=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},mn="*",vn=function(){function AnimationEntryMetadata(e,t){this.name=e,this.definitions=t}return AnimationEntryMetadata}(),yn=function(){function AnimationStateMetadata(){}return AnimationStateMetadata}(),bn=function(e){function AnimationStateDeclarationMetadata(t,r){e.call(this),this.stateNameExpr=t,this.styles=r}return dn(AnimationStateDeclarationMetadata,e),AnimationStateDeclarationMetadata}(yn),gn=function(e){function AnimationStateTransitionMetadata(t,r){e.call(this),this.stateChangeExpr=t,this.steps=r}return dn(AnimationStateTransitionMetadata,e),AnimationStateTransitionMetadata}(yn),_n=function(){function AnimationMetadata(){}return AnimationMetadata}(),Sn=function(e){function AnimationKeyframesSequenceMetadata(t){e.call(this),this.steps=t}return dn(AnimationKeyframesSequenceMetadata,e),AnimationKeyframesSequenceMetadata}(_n),wn=function(e){function AnimationStyleMetadata(t,r){void 0===r&&(r=null),e.call(this),this.styles=t,this.offset=r}return dn(AnimationStyleMetadata,e),AnimationStyleMetadata}(_n),En=function(e){function AnimationAnimateMetadata(t,r){e.call(this),this.timings=t,this.styles=r}return dn(AnimationAnimateMetadata,e),AnimationAnimateMetadata}(_n),Cn=function(e){function AnimationWithStepsMetadata(){e.call(this)}return dn(AnimationWithStepsMetadata,e),Object.defineProperty(AnimationWithStepsMetadata.prototype,"steps",{get:function(){throw new Error("NOT IMPLEMENTED: Base Class")},enumerable:!0,configurable:!0}),AnimationWithStepsMetadata}(_n),Pn=function(e){function AnimationSequenceMetadata(t){e.call(this),this._steps=t}return dn(AnimationSequenceMetadata,e),Object.defineProperty(AnimationSequenceMetadata.prototype,"steps",{get:function(){return this._steps},enumerable:!0,configurable:!0}),AnimationSequenceMetadata}(Cn),Tn=function(e){function AnimationGroupMetadata(t){e.call(this),this._steps=t}return dn(AnimationGroupMetadata,e),Object.defineProperty(AnimationGroupMetadata.prototype,"steps",{get:function(){return this._steps},enumerable:!0,configurable:!0}),AnimationGroupMetadata}(Cn),xn=function(){function AnimationStyles(e){this.styles=e}return AnimationStyles}(),An=function(){function DebugDomRootRenderer(e){this._delegate=e}return DebugDomRootRenderer.prototype.renderComponent=function(e){return new On(this._delegate.renderComponent(e))},DebugDomRootRenderer}(),On=function(){function DebugDomRenderer(e){this._delegate=e}return DebugDomRenderer.prototype.selectRootElement=function(e,t){var r=this._delegate.selectRootElement(e,t),n=new Qr(r,null,t);return indexDebugNode(n),r},DebugDomRenderer.prototype.createElement=function(e,t,r){var n=this._delegate.createElement(e,t,r),i=new Qr(n,getDebugNode(e),r);return i.name=t,indexDebugNode(i),n},DebugDomRenderer.prototype.createViewRoot=function(e){return this._delegate.createViewRoot(e)},DebugDomRenderer.prototype.createTemplateAnchor=function(e,t){var r=this._delegate.createTemplateAnchor(e,t),n=new Kr(r,getDebugNode(e),t);return indexDebugNode(n),r},DebugDomRenderer.prototype.createText=function(e,t,r){var n=this._delegate.createText(e,t,r),i=new Kr(n,getDebugNode(e),r);return indexDebugNode(i),n},DebugDomRenderer.prototype.projectNodes=function(e,t){var r=getDebugNode(e);if(isPresent(r)&&r instanceof Qr){var n=r;t.forEach(function(e){n.addChild(getDebugNode(e))})}this._delegate.projectNodes(e,t)},DebugDomRenderer.prototype.attachViewAfter=function(e,t){var r=getDebugNode(e);if(isPresent(r)){var n=r.parent;if(t.length>0&&isPresent(n)){var i=[];t.forEach(function(e){return i.push(getDebugNode(e))}),n.insertChildrenAfter(r,i)}}this._delegate.attachViewAfter(e,t)},DebugDomRenderer.prototype.detachView=function(e){e.forEach(function(e){var t=getDebugNode(e);isPresent(t)&&isPresent(t.parent)&&t.parent.removeChild(t)}),this._delegate.detachView(e)},DebugDomRenderer.prototype.destroyView=function(e,t){t.forEach(function(e){removeDebugNodeFromIndex(getDebugNode(e))}),this._delegate.destroyView(e,t)},DebugDomRenderer.prototype.listen=function(e,t,r){var n=getDebugNode(e);return isPresent(n)&&n.listeners.push(new Gr(t,r)),this._delegate.listen(e,t,r)},DebugDomRenderer.prototype.listenGlobal=function(e,t,r){return this._delegate.listenGlobal(e,t,r)},DebugDomRenderer.prototype.setElementProperty=function(e,t,r){var n=getDebugNode(e);isPresent(n)&&n instanceof Qr&&(n.properties[t]=r),this._delegate.setElementProperty(e,t,r)},DebugDomRenderer.prototype.setElementAttribute=function(e,t,r){var n=getDebugNode(e);isPresent(n)&&n instanceof Qr&&(n.attributes[t]=r),this._delegate.setElementAttribute(e,t,r)},DebugDomRenderer.prototype.setBindingDebugInfo=function(e,t,r){this._delegate.setBindingDebugInfo(e,t,r)},DebugDomRenderer.prototype.setElementClass=function(e,t,r){var n=getDebugNode(e);isPresent(n)&&n instanceof Qr&&(n.classes[t]=r),this._delegate.setElementClass(e,t,r)},DebugDomRenderer.prototype.setElementStyle=function(e,t,r){var n=getDebugNode(e);isPresent(n)&&n instanceof Qr&&(n.styles[t]=r),this._delegate.setElementStyle(e,t,r)},DebugDomRenderer.prototype.invokeElementMethod=function(e,t,r){this._delegate.invokeElementMethod(e,t,r)},DebugDomRenderer.prototype.setText=function(e,t){this._delegate.setText(e,t)},DebugDomRenderer.prototype.animate=function(e,t,r,n,i,o){return this._delegate.animate(e,t,r,n,i,o)},DebugDomRenderer}(),In=function(){function StaticNodeDebugInfo(e,t,r){this.providerTokens=e,this.componentToken=t,this.refTokens=r}return StaticNodeDebugInfo}(),Rn=function(){function DebugContext(e,t,r,n){this._view=e,this._nodeIndex=t,this._tplRow=r,this._tplCol=n}return Object.defineProperty(DebugContext.prototype,"_staticNodeInfo",{get:function(){return isPresent(this._nodeIndex)?this._view.staticNodeDebugInfos[this._nodeIndex]:null},enumerable:!0,configurable:!0}),Object.defineProperty(DebugContext.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(DebugContext.prototype,"component",{get:function(){var e=this._staticNodeInfo;return isPresent(e)&&isPresent(e.componentToken)?this.injector.get(e.componentToken):null},enumerable:!0,configurable:!0}),Object.defineProperty(DebugContext.prototype,"componentRenderElement",{get:function(){for(var e=this._view;isPresent(e.declarationAppElement)&&e.type!==Mt.COMPONENT;)e=e.declarationAppElement.parentView;return isPresent(e.declarationAppElement)?e.declarationAppElement.nativeElement:null},enumerable:!0,configurable:!0}),Object.defineProperty(DebugContext.prototype,"injector",{get:function(){return this._view.injector(this._nodeIndex)},enumerable:!0,configurable:!0}),Object.defineProperty(DebugContext.prototype,"renderNode",{get:function(){return isPresent(this._nodeIndex)&&this._view.allNodes?this._view.allNodes[this._nodeIndex]:null},enumerable:!0,configurable:!0}),Object.defineProperty(DebugContext.prototype,"providerTokens",{get:function(){var e=this._staticNodeInfo;return isPresent(e)?e.providerTokens:null},enumerable:!0,configurable:!0}),Object.defineProperty(DebugContext.prototype,"source",{get:function(){return this._view.componentType.templateUrl+":"+this._tplRow+":"+this._tplCol},enumerable:!0,configurable:!0}),Object.defineProperty(DebugContext.prototype,"references",{get:function(){var e=this,t={},r=this._staticNodeInfo;if(isPresent(r)){var n=r.refTokens;ce.forEach(n,function(r,n){var i;i=isBlank(r)?e._view.allNodes?e._view.allNodes[e._nodeIndex]:null:e._view.injectorGet(r,e._nodeIndex,null),t[n]=i})}return t},enumerable:!0,configurable:!0}),DebugContext}(),Mn=function(){function AnimationTransitionEvent(e){var t=e.fromState,r=e.toState,n=e.totalTime;this.fromState=t,this.toState=r,this.totalTime=n}return AnimationTransitionEvent}(),kn=function(){function ViewAnimationMap(){this._map=new re,this._allPlayers=[]}return Object.defineProperty(ViewAnimationMap.prototype,"length",{get:function(){return this.getAllPlayers().length},enumerable:!0,configurable:!0}),ViewAnimationMap.prototype.find=function(e,t){var r=this._map.get(e);if(isPresent(r))return r[t]},ViewAnimationMap.prototype.findAllPlayersByElement=function(e){var t=this._map.get(e);return t?ce.values(t):[]},ViewAnimationMap.prototype.set=function(e,t,r){var n=this._map.get(e);isPresent(n)||(n={});var i=n[t];isPresent(i)&&this.remove(e,t),n[t]=r,this._allPlayers.push(r),this._map.set(e,n)},ViewAnimationMap.prototype.getAllPlayers=function(){return this._allPlayers},ViewAnimationMap.prototype.remove=function(e,t){var r=this._map.get(e);if(isPresent(r)){var n=r[t];delete r[t];var i=this._allPlayers.indexOf(n);le.removeAt(this._allPlayers,i),ce.isEmpty(r)&&this._map["delete"](e)}},ViewAnimationMap}(),Nn=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},Dn=new Object,Vn=function(e){function ElementInjector(t,r){e.call(this),this._view=t,this._nodeIndex=r}return Nn(ElementInjector,e),ElementInjector.prototype.get=function(e,t){void 0===t&&(t=Y);var r=Dn;return r===Dn&&(r=this._view.injectorGet(e,this._nodeIndex,Dn)),r===Dn&&(r=this._view.parentInjector.get(e,t)),r},ElementInjector}(te),jn=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},Ln=Vt("AppView#check(ascii id)"),Fn=function(){function AppView(e,t,r,n,i,o,s){this.clazz=e,this.componentType=t,this.type=r,this.viewUtils=n,this.parentInjector=i,this.declarationAppElement=o,this.cdMode=s,this.contentChildren=[],this.viewChildren=[],this.viewContainerElement=null,this.numberOfChecks=0,this.animationPlayers=new kn,this._animationListeners=new Map,this.ref=new Hr(this),r===Mt.COMPONENT||r===Mt.HOST?this.renderer=n.renderComponent(t):this.renderer=o.parentView.renderer}return Object.defineProperty(AppView.prototype,"destroyed",{get:function(){return this.cdMode===P.Destroyed},enumerable:!0,configurable:!0}),AppView.prototype.cancelActiveAnimation=function(e,t,r){if(void 0===r&&(r=!1),r)this.animationPlayers.findAllPlayersByElement(e).forEach(function(e){return e.destroy()});else{var n=this.animationPlayers.find(e,t);isPresent(n)&&n.destroy()}},AppView.prototype.queueAnimation=function(e,t,r,n,i,o){var s=this;queueAnimation(r);var a=new Mn({fromState:i,toState:o,totalTime:n});this.animationPlayers.set(e,t,r),r.onDone(function(){s.triggerAnimationOutput(e,t,"done",a),s.animationPlayers.remove(e,t)}),r.onStart(function(){s.triggerAnimationOutput(e,t,"start",a)})},AppView.prototype.triggerAnimationOutput=function(e,t,r,n){var i=this._animationListeners.get(e);if(isPresent(i)&&i.length)for(var o=0;o<i.length;o++){var s=i[o];if(s.output.name==t&&s.output.phase==r){s.handler(n);break}}},AppView.prototype.registerAnimationOutput=function(e,t,r){var n=new Wn(t,r),i=this._animationListeners.get(e);isPresent(i)||this._animationListeners.set(e,i=[]),i.push(n)},AppView.prototype.create=function(e,t,r){this.context=e;var n;switch(this.type){case Mt.COMPONENT:n=ensureSlotCount(t,this.componentType.slotCount);break;case Mt.EMBEDDED:n=this.declarationAppElement.parentView.projectableNodes;break;case Mt.HOST:n=t}return this._hasExternalHostElement=isPresent(r),this.projectableNodes=n,this.createInternal(r)},AppView.prototype.createInternal=function(e){return null},AppView.prototype.init=function(e,t,r,n){this.rootNodesOrAppElements=e,this.allNodes=t,this.disposables=r,this.subscriptions=n,this.type===Mt.COMPONENT&&(this.declarationAppElement.parentView.viewChildren.push(this),this.dirtyParentQueriesInternal())},AppView.prototype.selectOrCreateHostElement=function(e,t,r){var n;return n=isPresent(t)?this.renderer.selectRootElement(t,r):this.renderer.createElement(null,e,r)},AppView.prototype.injectorGet=function(e,t,r){return this.injectorGetInternal(e,t,r)},AppView.prototype.injectorGetInternal=function(e,t,r){return r},AppView.prototype.injector=function(e){return isPresent(e)?new Vn(this,e):this.parentInjector},AppView.prototype.destroy=function(){this._hasExternalHostElement?this.renderer.detachView(this.flatRootNodes):isPresent(this.viewContainerElement)&&this.viewContainerElement.detachView(this.viewContainerElement.nestedViews.indexOf(this)),this._destroyRecurse()},AppView.prototype._destroyRecurse=function(){if(this.cdMode!==P.Destroyed){for(var e=this.contentChildren,t=0;t<e.length;t++)e[t]._destroyRecurse();e=this.viewChildren;for(var t=0;t<e.length;t++)e[t]._destroyRecurse();this.destroyLocal(),this.cdMode=P.Destroyed}},AppView.prototype.destroyLocal=function(){for(var e=this,t=this.type===Mt.COMPONENT?this.declarationAppElement.nativeElement:null,r=0;r<this.disposables.length;r++)this.disposables[r]();for(var r=0;r<this.subscriptions.length;r++)this.subscriptions[r].unsubscribe();if(this.destroyInternal(),this.dirtyParentQueriesInternal(),0==this.animationPlayers.length)this.renderer.destroyView(t,this.allNodes);else{var n=new un(this.animationPlayers.getAllPlayers());n.onDone(function(){e.renderer.destroyView(t,e.allNodes)})}},AppView.prototype.destroyInternal=function(){},AppView.prototype.detachInternal=function(){},AppView.prototype.detach=function(){var e=this;if(this.detachInternal(),0==this.animationPlayers.length)this.renderer.detachView(this.flatRootNodes);else{var t=new un(this.animationPlayers.getAllPlayers());t.onDone(function(){e.renderer.detachView(e.flatRootNodes)})}},Object.defineProperty(AppView.prototype,"changeDetectorRef",{get:function(){return this.ref},enumerable:!0,configurable:!0}),Object.defineProperty(AppView.prototype,"parent",{get:function(){return isPresent(this.declarationAppElement)?this.declarationAppElement.parentView:null},enumerable:!0,configurable:!0}),Object.defineProperty(AppView.prototype,"flatRootNodes",{get:function(){return flattenNestedViewRenderNodes(this.rootNodesOrAppElements)},enumerable:!0,configurable:!0}),Object.defineProperty(AppView.prototype,"lastRootNode",{get:function(){var e=this.rootNodesOrAppElements.length>0?this.rootNodesOrAppElements[this.rootNodesOrAppElements.length-1]:null;return _findLastRenderNode(e)},enumerable:!0,configurable:!0}),AppView.prototype.dirtyParentQueriesInternal=function(){},AppView.prototype.detectChanges=function(e){var t=Ln(this.clazz);this.cdMode!==P.Checked&&this.cdMode!==P.Errored&&(this.cdMode===P.Destroyed&&this.throwDestroyedError("detectChanges"),this.detectChangesInternal(e),this.cdMode===P.CheckOnce&&(this.cdMode=P.Checked),this.numberOfChecks++,jt(t))},AppView.prototype.detectChangesInternal=function(e){this.detectContentChildrenChanges(e),this.detectViewChildrenChanges(e)},AppView.prototype.detectContentChildrenChanges=function(e){for(var t=0;t<this.contentChildren.length;++t){var r=this.contentChildren[t];r.cdMode!==P.Detached&&r.detectChanges(e)}},AppView.prototype.detectViewChildrenChanges=function(e){for(var t=0;t<this.viewChildren.length;++t){var r=this.viewChildren[t];r.cdMode!==P.Detached&&r.detectChanges(e)}},AppView.prototype.markContentChildAsMoved=function(e){this.dirtyParentQueriesInternal()},AppView.prototype.addToContentChildren=function(e){e.parentView.contentChildren.push(this),this.viewContainerElement=e,this.dirtyParentQueriesInternal()},AppView.prototype.removeFromContentChildren=function(e){le.remove(e.parentView.contentChildren,this),this.dirtyParentQueriesInternal(),this.viewContainerElement=null},AppView.prototype.markAsCheckOnce=function(){this.cdMode=P.CheckOnce},AppView.prototype.markPathToRootAsCheckOnce=function(){for(var e=this;isPresent(e)&&e.cdMode!==P.Detached;){e.cdMode===P.Checked&&(e.cdMode=P.CheckOnce);var t=e.type===Mt.COMPONENT?e.declarationAppElement:e.viewContainerElement;e=isPresent(t)?t.parentView:null}},AppView.prototype.eventHandler=function(e){return e},AppView.prototype.throwDestroyedError=function(e){throw new Kt(e)},AppView}(),Bn=function(e){function DebugAppView(t,r,n,i,o,s,a,u){e.call(this,t,r,n,i,o,s,a),this.staticNodeDebugInfos=u,this._currentDebugContext=null}return jn(DebugAppView,e),DebugAppView.prototype.create=function(t,r,n){this._resetDebug();try{return e.prototype.create.call(this,t,r,n)}catch(i){throw this._rethrowWithContext(i),i}},DebugAppView.prototype.injectorGet=function(t,r,n){this._resetDebug();try{return e.prototype.injectorGet.call(this,t,r,n)}catch(i){throw this._rethrowWithContext(i),i}},DebugAppView.prototype.detach=function(){this._resetDebug();try{e.prototype.detach.call(this)}catch(t){throw this._rethrowWithContext(t),t}},DebugAppView.prototype.destroyLocal=function(){this._resetDebug();try{e.prototype.destroyLocal.call(this)}catch(t){throw this._rethrowWithContext(t),t}},DebugAppView.prototype.detectChanges=function(t){this._resetDebug();try{e.prototype.detectChanges.call(this,t)}catch(r){throw this._rethrowWithContext(r),r}},DebugAppView.prototype._resetDebug=function(){this._currentDebugContext=null},DebugAppView.prototype.debug=function(e,t,r){return this._currentDebugContext=new Rn(this,e,t,r)},DebugAppView.prototype._rethrowWithContext=function(e){if(!(e instanceof Gt)&&(e instanceof qt||(this.cdMode=P.Errored),isPresent(this._currentDebugContext)))throw new Gt(e,this._currentDebugContext)},DebugAppView.prototype.eventHandler=function(t){var r=this,n=e.prototype.eventHandler.call(this,t);return function(e){r._resetDebug();try{return n(e)}catch(t){throw r._rethrowWithContext(t),t}}},DebugAppView}(Fn),Wn=function(){function _AnimationOutputWithHandler(e,t){this.output=e,this.handler=t}return _AnimationOutputWithHandler}(),Un={isDefaultChangeDetectionStrategy:isDefaultChangeDetectionStrategy,ChangeDetectorStatus:P,CHANGE_DETECTION_STRATEGY_VALUES:x,constructDependencies:constructDependencies,LifecycleHooks:T,LIFECYCLE_HOOKS_VALUES:D,ReflectorReader:xe,CodegenComponentFactoryResolver:ur,AppElement:zt,AppView:Fn,DebugAppView:Bn,NgModuleInjector:Ar,registerModuleFactory:registerModuleFactory,ViewType:Mt,MAX_INTERPOLATION_VALUES:Jt,checkBinding:checkBinding,flattenNestedViewRenderNodes:flattenNestedViewRenderNodes,interpolate:interpolate,ViewUtils:Qt,VIEW_ENCAPSULATION_VALUES:K,ViewMetadata:Q,DebugContext:Rn,StaticNodeDebugInfo:In,devModeEqual:devModeEqual,UNINITIALIZED:yt,ValueUnwrapper:gt,RenderDebugInfo:xt,TemplateRef_:Fr,ReflectionCapabilities:Te,makeDecorator:makeDecorator,DebugDomRootRenderer:An,EMPTY_ARRAY:Zt,EMPTY_MAP:$t,pureProxy1:pureProxy1,pureProxy2:pureProxy2,pureProxy3:pureProxy3,pureProxy4:pureProxy4,pureProxy5:pureProxy5,pureProxy6:pureProxy6,pureProxy7:pureProxy7,pureProxy8:pureProxy8,pureProxy9:pureProxy9,pureProxy10:pureProxy10,castByValue:castByValue,Console:Ye,reflector:Ie,Reflector:Oe,NoOpAnimationPlayer:hn,AnimationPlayer:pn,AnimationSequencePlayer:fn,AnimationGroupPlayer:un,AnimationKeyframe:cn,prepareFinalAnimationStyles:prepareFinalAnimationStyles,balanceAnimationKeyframes:balanceAnimationKeyframes,flattenStyles:flattenStyles,clearStyles:clearStyles,renderStyles:renderStyles,collectAndResolveStyles:collectAndResolveStyles,AnimationStyles:xn,AnimationOutput:ln,ANY_STATE:nn,DEFAULT_STATE:on,EMPTY_STATE:sn,FILL_STYLE_FLAG:rn,ComponentStillLoadingError:tt};t.createPlatform=createPlatform,t.assertPlatform=assertPlatform,t.destroyPlatform=destroyPlatform,t.getPlatform=getPlatform,t.PlatformRef=_r,t.ApplicationRef=wr,t.enableProdMode=enableProdMode,t.isDevMode=isDevMode,t.createPlatformFactory=createPlatformFactory,t.APP_ID=Qe,t.PACKAGE_ROOT_URL=$e,t.PLATFORM_INITIALIZER=Je,t.APP_BOOTSTRAP_LISTENER=Ze,t.APP_INITIALIZER=Ge,t.ApplicationInitStatus=Ke,t.DebugElement=Qr,t.DebugNode=Kr,t.asNativeElements=asNativeElements,t.getDebugNode=getDebugNode,t.Testability=fr,t.TestabilityRegistry=dr,t.setTestabilityGetter=setTestabilityGetter,t.TRANSLATIONS=Yr,t.TRANSLATIONS_FORMAT=en,t.LOCALE_ID=$r,t.ApplicationModule=tn,t.wtfCreateScope=Vt,t.wtfLeave=jt,t.wtfStartTimeRange=Lt,t.wtfEndTimeRange=Ft,t.Type=Pe,t.EventEmitter=lr,t.ErrorHandler=qe,t.AnimationTransitionEvent=Mn,t.AnimationPlayer=pn,t.Sanitizer=kt,t.ANALYZE_FOR_ENTRY_COMPONENTS=b,t.Attribute=g,t.ContentChild=w,t.ContentChildren=S,t.Query=_,t.ViewChild=C,t.ViewChildren=E,t.Component=O,t.Directive=A,t.HostBinding=k,t.HostListener=N,t.Input=R,t.Output=M,t.Pipe=I,t.AfterContentChecked=W,t.AfterContentInit=B,t.AfterViewChecked=z,t.AfterViewInit=U,t.DoCheck=L,t.OnChanges=V,t.OnDestroy=F,t.OnInit=j,t.CUSTOM_ELEMENTS_SCHEMA=H,t.NO_ERRORS_SCHEMA=q,t.NgModule=G,t.Class=Class,t.forwardRef=forwardRef,t.resolveForwardRef=resolveForwardRef,t.Injector=te,t.ReflectiveInjector=Ue,t.ResolvedReflectiveFactory=Ne,t.ReflectiveKey=we,t.OpaqueToken=y,t.Inject=p,t.Optional=h,t.Injectable=f,t.Self=d,t.SkipSelf=m,t.Host=v,t.NgZone=hr,t.RenderComponentType=Tt,t.Renderer=At,t.RootRenderer=Ot,t.COMPILER_OPTIONS=it,t.Compiler=nt,t.CompilerFactory=ot,t.ModuleWithComponentFactories=rt,t.ComponentFactory=nr,t.ComponentRef=er,t.ComponentFactoryResolver=ar,t.ElementRef=Nt,t.NgModuleFactory=Tr,t.NgModuleRef=Pr,t.NgModuleFactoryLoader=Or,t.getModuleFactory=getModuleFactory,t.QueryList=Rr,t.SystemJsNgModuleLoader=Vr,t.SystemJsNgModuleLoaderConfig=Nr,t.TemplateRef=Lr,t.ViewContainerRef=Bt,t.EmbeddedViewRef=zr,t.ViewRef=Ur,t.ChangeDetectorRef=St,t.CollectionChangeRecord=ct,t.DefaultIterableDiffer=ut,t.IterableDiffers=mt,t.KeyValueChangeRecord=dt,t.KeyValueDiffers=vt,t.SimpleChange=_t,t.WrappedValue=bt,t.platformCore=Zr,t.__core_private__=Un,t.AUTO_STYLE=mn,t.AnimationEntryMetadata=vn,t.AnimationStateMetadata=yn,t.AnimationStateDeclarationMetadata=bn,t.AnimationStateTransitionMetadata=gn,t.AnimationMetadata=_n,t.AnimationKeyframesSequenceMetadata=Sn,t.AnimationStyleMetadata=wn,t.AnimationAnimateMetadata=En,t.AnimationWithStepsMetadata=Cn,t.AnimationSequenceMetadata=Pn,t.AnimationGroupMetadata=Tn,t.animate=animate,t.group=group,t.sequence=sequence,t.style=style,t.state=state,t.keyframes=keyframes,t.transition=transition,t.trigger=trigger})}).call(t,function(){return this}())},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);
e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(5),o=r(8),s=r(10),a=r(19),u=r(20),c=r(17),l=function(e){function SubjectSubscriber(t){e.call(this,t),this.destination=t}return n(SubjectSubscriber,e),SubjectSubscriber}(o.Subscriber);t.SubjectSubscriber=l;var p=function(e){function Subject(){e.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return n(Subject,e),Subject.prototype[c.$$rxSubscriber]=function(){return new l(this)},Subject.prototype.lift=function(e){var t=new h(this,this);return t.operator=e,t},Subject.prototype.next=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var t=this.observers,r=t.length,n=t.slice(),i=0;i<r;i++)n[i].next(e)},Subject.prototype.error=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,r=t.length,n=t.slice(),i=0;i<r;i++)n[i].error(e);this.observers.length=0},Subject.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var e=this.observers,t=e.length,r=e.slice(),n=0;n<t;n++)r[n].complete();this.observers.length=0},Subject.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},Subject.prototype._subscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(e.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(e.complete(),s.Subscription.EMPTY):(this.observers.push(e),new u.SubjectSubscription(this,e))},Subject.prototype.asObservable=function(){var e=new i.Observable;return e.source=this,e},Subject.create=function(e,t){return new h(e,t)},Subject}(i.Observable);t.Subject=p;var h=function(e){function AnonymousSubject(t,r){e.call(this),this.destination=t,this.source=r}return n(AnonymousSubject,e),AnonymousSubject.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},AnonymousSubject.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},AnonymousSubject.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},AnonymousSubject.prototype._subscribe=function(e){var t=this.source;return t?this.source.subscribe(e):s.Subscription.EMPTY},AnonymousSubject}(p);t.AnonymousSubject=h},function(e,t,r){"use strict";var n=r(6),i=r(7),o=r(18),s=function(){function Observable(e){this._isScalar=!1,e&&(this._subscribe=e)}return Observable.prototype.lift=function(e){var t=new Observable;return t.source=this,t.operator=e,t},Observable.prototype.subscribe=function(e,t,r){var n=this.operator,o=i.toSubscriber(e,t,r);if(n?n.call(o,this):o.add(this._subscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},Observable.prototype.forEach=function(e,t){var r=this;if(t||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?t=n.root.Rx.config.Promise:n.root.Promise&&(t=n.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,n){var i=r.subscribe(function(t){if(i)try{e(t)}catch(r){n(r),i.unsubscribe()}else e(t)},n,t)})},Observable.prototype._subscribe=function(e){return this.source.subscribe(e)},Observable.prototype[o.$$observable]=function(){return this},Observable.create=function(e){return new Observable(e)},Observable}();t.Observable=s},function(e,t){(function(e){"use strict";var r={"boolean":!1,"function":!0,object:!0,number:!1,string:!1,undefined:!1};t.root=r[typeof self]&&self||r[typeof window]&&window;var n=r[typeof e]&&e;!n||n.global!==n&&n.window!==n||(t.root=n)}).call(t,function(){return this}())},function(e,t,r){"use strict";function toSubscriber(e,t,r){if(e){if(e instanceof n.Subscriber)return e;if(e[i.$$rxSubscriber])return e[i.$$rxSubscriber]()}return e||t||r?new n.Subscriber(e,t,r):new n.Subscriber}var n=r(8),i=r(17);t.toSubscriber=toSubscriber},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(9),o=r(10),s=r(16),a=r(17),u=function(e){function Subscriber(t,r,n){switch(e.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!t){this.destination=s.empty;break}if("object"==typeof t){t instanceof Subscriber?(this.destination=t,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,t,r,n)}}return n(Subscriber,e),Subscriber.prototype[a.$$rxSubscriber]=function(){return this},Subscriber.create=function(e,t,r){var n=new Subscriber(e,t,r);return n.syncErrorThrowable=!1,n},Subscriber.prototype.next=function(e){this.isStopped||this._next(e)},Subscriber.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},Subscriber.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},Subscriber.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},Subscriber.prototype._next=function(e){this.destination.next(e)},Subscriber.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},Subscriber.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},Subscriber}(o.Subscription);t.Subscriber=u;var c=function(e){function SafeSubscriber(t,r,n,o){e.call(this),this._parent=t;var s,a=this;i.isFunction(r)?s=r:r&&(a=r,s=r.next,n=r.error,o=r.complete,i.isFunction(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this)),this._context=a,this._next=s,this._error=n,this._complete=o}return n(SafeSubscriber,e),SafeSubscriber.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parent;t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},SafeSubscriber.prototype.error=function(e){if(!this.isStopped){var t=this._parent;if(this._error)t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else{if(!t.syncErrorThrowable)throw this.unsubscribe(),e;t.syncErrorValue=e,t.syncErrorThrown=!0,this.unsubscribe()}}},SafeSubscriber.prototype.complete=function(){if(!this.isStopped){var e=this._parent;this._complete?e.syncErrorThrowable?(this.__tryOrSetError(e,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):this.unsubscribe()}},SafeSubscriber.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(r){throw this.unsubscribe(),r}},SafeSubscriber.prototype.__tryOrSetError=function(e,t,r){try{t.call(this._context,r)}catch(n){return e.syncErrorValue=n,e.syncErrorThrown=!0,!0}return!1},SafeSubscriber.prototype._unsubscribe=function(){var e=this._parent;this._context=null,this._parent=null,e.unsubscribe()},SafeSubscriber}(u)},function(e,t){"use strict";function isFunction(e){return"function"==typeof e}t.isFunction=isFunction},function(e,t,r){"use strict";var n=r(11),i=r(12),o=r(9),s=r(13),a=r(14),u=r(15),c=function(){function Subscription(e){this.closed=!1,e&&(this._unsubscribe=e)}return Subscription.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){this.closed=!0;var r=this,c=r._unsubscribe,l=r._subscriptions;if(this._subscriptions=null,o.isFunction(c)){var p=s.tryCatch(c).call(this);p===a.errorObject&&(t=!0,(e=e||[]).push(a.errorObject.e))}if(n.isArray(l))for(var h=-1,f=l.length;++h<f;){var d=l[h];if(i.isObject(d)){var p=s.tryCatch(d.unsubscribe).call(d);if(p===a.errorObject){t=!0,e=e||[];var m=a.errorObject.e;m instanceof u.UnsubscriptionError?e=e.concat(m.errors):e.push(m)}}}if(t)throw new u.UnsubscriptionError(e)}},Subscription.prototype.add=function(e){if(!e||e===Subscription.EMPTY)return Subscription.EMPTY;if(e===this)return this;var t=e;switch(typeof e){case"function":t=new Subscription(e);case"object":if(t.closed||"function"!=typeof t.unsubscribe)break;this.closed?t.unsubscribe():(this._subscriptions||(this._subscriptions=[])).push(t);break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return t},Subscription.prototype.remove=function(e){if(null!=e&&e!==this&&e!==Subscription.EMPTY){var t=this._subscriptions;if(t){var r=t.indexOf(e);r!==-1&&t.splice(r,1)}}},Subscription.EMPTY=function(e){return e.closed=!0,e}(new Subscription),Subscription}();t.Subscription=c},function(e,t){"use strict";t.isArray=Array.isArray||function(e){return e&&"number"==typeof e.length}},function(e,t){"use strict";function isObject(e){return null!=e&&"object"==typeof e}t.isObject=isObject},function(e,t,r){"use strict";function tryCatcher(){try{return n.apply(this,arguments)}catch(e){return i.errorObject.e=e,i.errorObject}}function tryCatch(e){return n=e,tryCatcher}var n,i=r(14);t.tryCatch=tryCatch},function(e,t){"use strict";t.errorObject={e:{}}},function(e,t){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},n=function(e){function UnsubscriptionError(t){e.call(this),this.errors=t;var r=Error.call(this,t?t.length+" errors occurred during unsubscription:\n  "+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"");this.name=r.name="UnsubscriptionError",this.stack=r.stack,this.message=r.message}return r(UnsubscriptionError,e),UnsubscriptionError}(Error);t.UnsubscriptionError=n},function(e,t){"use strict";t.empty={closed:!0,next:function(e){},error:function(e){throw e},complete:function(){}}},function(e,t,r){"use strict";var n=r(6),i=n.root.Symbol;t.$$rxSubscriber="function"==typeof i&&"function"==typeof i["for"]?i["for"]("rxSubscriber"):"@@rxSubscriber"},function(e,t,r){"use strict";function getSymbolObservable(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}var n=r(6);t.getSymbolObservable=getSymbolObservable,t.$$observable=getSymbolObservable(n.root)},function(e,t){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},n=function(e){function ObjectUnsubscribedError(){var t=e.call(this,"object unsubscribed");this.name=t.name="ObjectUnsubscribedError",this.stack=t.stack,this.message=t.message}return r(ObjectUnsubscribedError,e),ObjectUnsubscribedError}(Error);t.ObjectUnsubscribedError=n},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(10),o=function(e){function SubjectSubscription(t,r){e.call(this),this.subject=t,this.subscriber=r,this.closed=!1}return n(SubjectSubscription,e),SubjectSubscription.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var r=t.indexOf(this.subscriber);r!==-1&&t.splice(r,1)}}},SubjectSubscription}(i.Subscription);t.SubjectSubscription=o},function(e,t,r){(function(e){/**
	 * @license Angular v2.0.0
	 * (c) 2010-2016 Google, Inc. https://angular.io/
	 * License: MIT
	 */
!function(e,n){n(t,r(22),r(3))}(this,function(t,r,n){"use strict";function isPresent(e){return void 0!==e&&null!==e}function isBlank(e){return void 0===e||null===e}function isNumber(e){return"number"==typeof e}function isString(e){return"string"==typeof e}function isFunction(e){return"function"==typeof e}function isArray(e){return Array.isArray(e)}function stringify(e){if("string"==typeof e)return e;if(void 0===e||null===e)return""+e;if(e.overriddenName)return e.overriddenName;if(e.name)return e.name;var t=e.toString(),r=t.indexOf("\n");return r===-1?t:t.substring(0,r)}function setValueOnPath(e,t,r){for(var n=t.split("."),i=e;n.length>1;){var o=n.shift();i=i.hasOwnProperty(o)&&isPresent(i[o])?i[o]:i[o]={}}void 0!==i&&null!==i||(i={}),i[n.shift()]=r}function _flattenArray(e,t){if(isPresent(e))for(var r=0;r<e.length;r++){var n=e[r];isArray(n)?_flattenArray(n,t):t.push(n)}return t}function camelCaseToDashCase(e){return p.replaceAllMapped(e,g,function(e){return"-"+e[1].toLowerCase()})}function dashCaseToCamelCase(e){return p.replaceAllMapped(e,_,function(e){return e[1].toUpperCase()})}function getDOM(){return S}function setRootDomAdapter(e){isBlank(S)&&(S=e)}function _computeStyle(e,t){return getDOM().getComputedStyle(e)[t]}function _populateStyles(e,t,r){var i={};return t.styles.forEach(function(e){y.forEach(e,function(e,t){var r=dashCaseToCamelCase(t);i[r]=e==n.AUTO_STYLE?e:e.toString()+_resolveStyleUnit(e,t,r)})}),y.forEach(r,function(e,t){isPresent(i[t])||(i[t]=e)}),i}function _resolveStyleUnit(e,t,r){var n="";if(_isPixelDimensionStyle(r)&&0!=e&&"0"!=e)if(isNumber(e))n="px";else if(0==_findDimensionalSuffix(e.toString()).length)throw new Error("Please provide a CSS unit value for "+t+":"+e);return n}function _findDimensionalSuffix(e){for(var t=0;t<e.length;t++){var r=p.charCodeAt(e,t);if(!(r>=P&&r<=T||r==x))return e.substring(t,e.length)}return""}function _isPixelDimensionStyle(e){switch(e){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}function getBaseElementHref(){return isBlank(V)&&(V=document.querySelector("base"),isBlank(V))?null:V.getAttribute("href")}function relativePath(e){return isBlank(j)&&(j=document.createElement("a")),j.setAttribute("href",e),"/"===j.pathname.charAt(0)?j.pathname:"/"+j.pathname}function parseCookieValue(e,t){t=encodeURIComponent(t);for(var r=0,n=e.split(";");r<n.length;r++){var i=n[r],o=i.indexOf("="),s=o==-1?[i,""]:[i.slice(0,o),i.slice(o+1)],a=s[0],u=s[1];if(a.trim()===t)return decodeURIComponent(u)}return null}/**
	     * @license
	     * Copyright Google Inc. All Rights Reserved.
	     *
	     * Use of this source code is governed by an MIT-style license that can be
	     * found in the LICENSE file at https://angular.io/license
	     */
function supportsState(){return!!window.history.pushState}function moveNodesAfterSibling(e,t){var r=getDOM().parentElement(e);if(t.length>0&&isPresent(r)){var n=getDOM().nextSibling(e);if(isPresent(n))for(var i=0;i<t.length;i++)getDOM().insertBefore(n,t[i]);else for(var i=0;i<t.length;i++)getDOM().appendChild(r,t[i])}}function appendNodes(e,t){for(var r=0;r<t.length;r++)getDOM().appendChild(e,t[r])}function decoratePreventDefault(e){return function(t){var r=e(t);r===!1&&getDOM().preventDefault(t)}}function _shimContentAttribute(e){return p.replaceAll(oe,re,e)}function _shimHostAttribute(e){return p.replaceAll(ie,re,e)}function _flattenStyles(e,t,r){for(var n=0;n<t.length;n++){var i=t[n];isArray(i)?_flattenStyles(e,i,r):(i=p.replaceAll(i,re,e),r.push(i))}return r}function splitNamespace(e){if(":"!=e[0])return[null,e];var t=e.match(se);return[t[1],t[2]]}function inspectNativeElement(e){return n.getDebugNode(e)}function _createConditionalRootRenderer(e,t){return n.isDevMode()?_createRootRenderer(e,t):e}function _createRootRenderer(e,t){return getDOM().setGlobalVar(ue,inspectNativeElement),getDOM().setGlobalVar(ce,y.merge(ae,_ngProbeTokensToMap(t||[]))),new o(e)}function _ngProbeTokensToMap(e){return e.reduce(function(e,t){return e[t.name]=t.token,e},{})}function sanitizeUrl(e){return e=String(e),e.match(Pe)||e.match(Te)?e:(n.isDevMode()&&getDOM().log("WARNING: sanitizing unsafe URL value "+e+" (see http://g.co/ng/security#xss)"),"unsafe:"+e)}function sanitizeSrcset(e){return e=String(e),e.split(",").map(function(e){return sanitizeUrl(e.trim())}).join(", ")}function getInertElement(){if(xe)return xe;Ae=getDOM();var e=Ae.createElement("template");if("content"in e)return e;var t=Ae.createHtmlDocument();if(xe=Ae.querySelector(t,"body"),null==xe){var r=Ae.createElement("html",t);xe=Ae.createElement("body",t),Ae.appendChild(r,xe),Ae.appendChild(t,r)}return xe}function tagSet(e){for(var t={},r=0,n=e.split(",");r<n.length;r++){var i=n[r];t[i]=!0}return t}function merge(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];for(var r={},n=0,i=e;n<i.length;n++){var o=i[n];for(var s in o)o.hasOwnProperty(s)&&(r[s]=!0)}return r}function encodeEntities(e){return e.replace(/&/g,"&amp;").replace(We,function(e){var t=e.charCodeAt(0),r=e.charCodeAt(1);return"&#"+(1024*(t-55296)+(r-56320)+65536)+";"}).replace(Ue,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function stripCustomNsAttrs(e){Ae.attributeMap(e).forEach(function(t,r){"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||Ae.removeAttribute(e,r)});for(var t=0,r=Ae.childNodesAsList(e);t<r.length;t++){var n=r[t];Ae.isElementNode(n)&&stripCustomNsAttrs(n)}}function sanitizeHtml(e){try{var t=getInertElement(),r=e?String(e):"",i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,Ae.setInnerHTML(t,r),Ae.defaultDoc().documentMode&&stripCustomNsAttrs(t),o=Ae.getInnerHTML(t)}while(r!==o);for(var s=new Be,a=s.sanitizeChildren(Ae.getTemplateContent(t)||t),u=Ae.getTemplateContent(t)||t,c=0,l=Ae.childNodesAsList(u);c<l.length;c++){var p=l[c];Ae.removeChild(u,p)}return n.isDevMode()&&s.sanitizedSomething&&Ae.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),a}catch(h){throw xe=null,h}}function hasBalancedQuotes(e){for(var t=!0,r=!0,n=0;n<e.length;n++){var i=e.charAt(n);"'"===i&&r?t=!t:'"'===i&&t&&(r=!r)}return t&&r}function sanitizeStyle(e){if(e=String(e).trim(),!e)return"";var t=e.match(Qe);return t&&sanitizeUrl(t[1])===t[1]||e.match(Ke)&&hasBalancedQuotes(e)?e:(n.isDevMode()&&getDOM().log("WARNING: sanitizing unsafe style value "+e+" (see http://g.co/ng/security#xss)."),"unsafe")}function initDomAdapter(){D.makeCurrent(),B.init()}function errorHandler(){return new n.ErrorHandler}function _document(){return getDOM().defaultDoc()}function _resolveDefaultAnimationDriver(){return getDOM().supportsWebAnimation()?new C:u.NOOP}function enableDebugTools(e){return ht.ng=new lt(e),e}function disableDebugTools(){delete ht.ng}var i,o=n.__core_private__.DebugDomRootRenderer,s=n.__core_private__.NoOpAnimationPlayer,a=function(){function _NoOpAnimationDriver(){}return _NoOpAnimationDriver.prototype.animate=function(e,t,r,n,i,o){return new s},_NoOpAnimationDriver}(),u=function(){function AnimationDriver(){}return AnimationDriver.NOOP=new a,AnimationDriver}();i="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:e:window;var c=i,l=c.Date;c.assert=function(e){};var p=function(){function StringWrapper(){}return StringWrapper.fromCharCode=function(e){return String.fromCharCode(e)},StringWrapper.charCodeAt=function(e,t){return e.charCodeAt(t)},StringWrapper.split=function(e,t){return e.split(t)},StringWrapper.equals=function(e,t){return e===t},StringWrapper.stripLeft=function(e,t){if(e&&e.length){for(var r=0,n=0;n<e.length&&e[n]==t;n++)r++;e=e.substring(r)}return e},StringWrapper.stripRight=function(e,t){if(e&&e.length){for(var r=e.length,n=e.length-1;n>=0&&e[n]==t;n--)r--;e=e.substring(0,r)}return e},StringWrapper.replace=function(e,t,r){return e.replace(t,r)},StringWrapper.replaceAll=function(e,t,r){return e.replace(t,r)},StringWrapper.slice=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=null),e.slice(t,null===r?void 0:r)},StringWrapper.replaceAllMapped=function(e,t,r){return e.replace(t,function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return e.splice(-2,2),r(e)})},StringWrapper.contains=function(e,t){return e.indexOf(t)!=-1},StringWrapper.compare=function(e,t){return e<t?-1:e>t?1:0},StringWrapper}(),h=function(){function NumberWrapper(){}return NumberWrapper.toFixed=function(e,t){return e.toFixed(t)},NumberWrapper.equal=function(e,t){return e===t},NumberWrapper.parseIntAutoRadix=function(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t},NumberWrapper.parseInt=function(e,t){if(10==t){if(/^(\-|\+)?[0-9]+$/.test(e))return parseInt(e,t)}else if(16==t){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(e))return parseInt(e,t)}else{var r=parseInt(e,t);if(!isNaN(r))return r}throw new Error("Invalid integer literal when parsing "+e+" in base "+t)},Object.defineProperty(NumberWrapper,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),NumberWrapper.isNumeric=function(e){return!isNaN(e-parseFloat(e))},NumberWrapper.isNaN=function(e){return isNaN(e)},NumberWrapper.isInteger=function(e){return Number.isInteger(e)},NumberWrapper}(),f=function(){function Json(){}return Json.parse=function(e){return c.JSON.parse(e)},Json.stringify=function(e){return c.JSON.stringify(e,null,2)},Json}(),d=function(){function DateWrapper(){}return DateWrapper.create=function(e,t,r,n,i,o,s){return void 0===t&&(t=1),void 0===r&&(r=1),void 0===n&&(n=0),void 0===i&&(i=0),void 0===o&&(o=0),void 0===s&&(s=0),new l(e,t-1,r,n,i,o,s)},DateWrapper.fromISOString=function(e){return new l(e)},DateWrapper.fromMillis=function(e){return new l(e)},DateWrapper.toMillis=function(e){return e.getTime()},DateWrapper.now=function(){return new l},DateWrapper.toJson=function(e){return e.toJSON()},DateWrapper}(),m=c.Map,v=c.Set,y=(function(){try{if(1===new m([[1,2]]).size)return function(e){return new m(e)}}catch(e){}return function(e){for(var t=new m,r=0;r<e.length;r++){var n=e[r];t.set(n[0],n[1])}return t}}(),function(){try{if(new m(new m))return function(e){return new m(e)}}catch(e){}return function(e){var t=new m;return e.forEach(function(e,r){t.set(r,e)}),t}}(),function(){return(new m).keys().next?function(e){for(var t,r=e.keys();!(t=r.next()).done;)e.set(t.value,null)}:function(e){e.forEach(function(t,r){e.set(r,null)})}}(),function(){try{if((new m).values().next)return function(e,t){return t?Array.from(e.values()):Array.from(e.keys())}}catch(e){}return function(e,t){var r=b.createFixedSize(e.size),n=0;return e.forEach(function(e,i){r[n]=t?e:i,n++}),r}}(),function(){function StringMapWrapper(){}return StringMapWrapper.create=function(){return{}},StringMapWrapper.contains=function(e,t){return e.hasOwnProperty(t)},StringMapWrapper.get=function(e,t){return e.hasOwnProperty(t)?e[t]:void 0},StringMapWrapper.set=function(e,t,r){e[t]=r},StringMapWrapper.keys=function(e){return Object.keys(e)},StringMapWrapper.values=function(e){return Object.keys(e).map(function(t){return e[t]})},StringMapWrapper.isEmpty=function(e){for(var t in e)return!1;return!0},StringMapWrapper["delete"]=function(e,t){delete e[t]},StringMapWrapper.forEach=function(e,t){for(var r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];t(e[i],i)}},StringMapWrapper.merge=function(e,t){for(var r={},n=0,i=Object.keys(e);n<i.length;n++){var o=i[n];r[o]=e[o]}for(var s=0,a=Object.keys(t);s<a.length;s++){var o=a[s];r[o]=t[o]}return r},StringMapWrapper.equals=function(e,t){var r=Object.keys(e),n=Object.keys(t);if(r.length!=n.length)return!1;for(var i=0;i<r.length;i++){var o=r[i];if(e[o]!==t[o])return!1}return!0},StringMapWrapper}()),b=function(){function ListWrapper(){}return ListWrapper.createFixedSize=function(e){return new Array(e)},ListWrapper.createGrowableSize=function(e){return new Array(e)},ListWrapper.clone=function(e){return e.slice(0)},ListWrapper.forEachWithIndex=function(e,t){for(var r=0;r<e.length;r++)t(e[r],r)},ListWrapper.first=function(e){return e?e[0]:null},ListWrapper.last=function(e){return e&&0!=e.length?e[e.length-1]:null},ListWrapper.indexOf=function(e,t,r){return void 0===r&&(r=0),e.indexOf(t,r)},ListWrapper.contains=function(e,t){return e.indexOf(t)!==-1},ListWrapper.reversed=function(e){var t=ListWrapper.clone(e);return t.reverse()},ListWrapper.concat=function(e,t){return e.concat(t)},ListWrapper.insert=function(e,t,r){e.splice(t,0,r)},ListWrapper.removeAt=function(e,t){var r=e[t];return e.splice(t,1),r},ListWrapper.removeAll=function(e,t){for(var r=0;r<t.length;++r){var n=e.indexOf(t[r]);e.splice(n,1)}},ListWrapper.remove=function(e,t){var r=e.indexOf(t);return r>-1&&(e.splice(r,1),!0)},ListWrapper.clear=function(e){e.length=0},ListWrapper.isEmpty=function(e){return 0==e.length},ListWrapper.fill=function(e,t,r,n){void 0===r&&(r=0),void 0===n&&(n=null),e.fill(t,r,null===n?e.length:n)},ListWrapper.equals=function(e,t){if(e.length!=t.length)return!1;for(var r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0},ListWrapper.slice=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=null),e.slice(t,null===r?void 0:r)},ListWrapper.splice=function(e,t,r){return e.splice(t,r)},ListWrapper.sort=function(e,t){isPresent(t)?e.sort(t):e.sort()},ListWrapper.toString=function(e){return e.toString()},ListWrapper.toJSON=function(e){return JSON.stringify(e)},ListWrapper.maximum=function(e,t){if(0==e.length)return null;for(var r=null,n=-(1/0),i=0;i<e.length;i++){var o=e[i];if(!isBlank(o)){var s=t(o);s>n&&(r=o,n=s)}}return r},ListWrapper.flatten=function(e){var t=[];return _flattenArray(e,t),t},ListWrapper.addAll=function(e,t){for(var r=0;r<t.length;r++)e.push(t[r])},ListWrapper}(),g=(function(){var e=new v([1,2,3]);return 3===e.size?function(e){return new v(e)}:function(e){var t=new v(e);if(t.size!==e.length)for(var r=0;r<e.length;r++)t.add(e[r]);return t}}(),/([A-Z])/g),_=/-([a-z])/g,S=null,w=function(){function DomAdapter(){this.resourceLoaderType=null}return Object.defineProperty(DomAdapter.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(e){this._attrToPropMap=e},enumerable:!0,configurable:!0}),DomAdapter}(),E=function(){function WebAnimationsPlayer(e,t,r){this.element=e,this.keyframes=t,this.options=r,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._initialized=!1,this._started=!1,this.parentPlayer=null,this._duration=r.duration}return WebAnimationsPlayer.prototype._onFinish=function(){this._finished||(this._finished=!0,isPresent(this.parentPlayer)||this.destroy(),this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},WebAnimationsPlayer.prototype.init=function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes.map(function(t){var r={};return y.forEach(t,function(t,i){r[i]=t==n.AUTO_STYLE?_computeStyle(e.element,i):t}),r});this._player=this._triggerWebAnimation(this.element,t,this.options),this.reset(),this._player.onfinish=function(){return e._onFinish()}}},WebAnimationsPlayer.prototype._triggerWebAnimation=function(e,t,r){return e.animate(t,r)},WebAnimationsPlayer.prototype.onStart=function(e){this._onStartFns.push(e)},WebAnimationsPlayer.prototype.onDone=function(e){this._onDoneFns.push(e)},WebAnimationsPlayer.prototype.play=function(){this.init(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0),this._player.play()},WebAnimationsPlayer.prototype.pause=function(){this.init(),this._player.pause()},WebAnimationsPlayer.prototype.finish=function(){this.init(),this._onFinish(),this._player.finish()},WebAnimationsPlayer.prototype.reset=function(){this._player.cancel()},WebAnimationsPlayer.prototype.restart=function(){this.reset(),this.play()},WebAnimationsPlayer.prototype.hasStarted=function(){return this._started},WebAnimationsPlayer.prototype.destroy=function(){this.reset(),this._onFinish()},Object.defineProperty(WebAnimationsPlayer.prototype,"totalTime",{get:function(){return this._duration},enumerable:!0,configurable:!0}),WebAnimationsPlayer.prototype.setPosition=function(e){this._player.currentTime=e*this.totalTime},WebAnimationsPlayer.prototype.getPosition=function(){return this._player.currentTime/this.totalTime},WebAnimationsPlayer}(),C=function(){function WebAnimationsDriver(){}return WebAnimationsDriver.prototype.animate=function(e,t,r,n,i,o){var s=[],a={};if(isPresent(t)&&t.styles.length>0&&(a=_populateStyles(e,t,{}),a.offset=0,s.push(a)),r.forEach(function(t){var r=_populateStyles(e,t.styles,a);r.offset=t.offset,s.push(r)}),1==s.length){var u=s[0];u.offset=null,s=[u,u]}var c={duration:n,delay:i,fill:"both"};return o&&(c.easing=o),new E(e,s,c)},WebAnimationsDriver}(),P=48,T=57,x=46,A=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},O=function(e){function GenericBrowserDomAdapter(){var t=this;e.call(this),this._animationPrefix=null,this._transitionEnd=null;try{var r=this.createElement("div",this.defaultDoc());if(isPresent(this.getStyle(r,"animationName")))this._animationPrefix="";else for(var n=["Webkit","Moz","O","ms"],i=0;i<n.length;i++)if(isPresent(this.getStyle(r,n[i]+"AnimationName"))){this._animationPrefix="-"+n[i].toLowerCase()+"-";break}var o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};y.forEach(o,function(e,n){isPresent(t.getStyle(r,n))&&(t._transitionEnd=e)})}catch(s){this._animationPrefix=null,this._transitionEnd=null}}return A(GenericBrowserDomAdapter,e),GenericBrowserDomAdapter.prototype.getDistributedNodes=function(e){return e.getDistributedNodes()},GenericBrowserDomAdapter.prototype.resolveAndSetHref=function(e,t,r){e.href=null==r?t:t+"/../"+r},GenericBrowserDomAdapter.prototype.supportsDOMEvents=function(){return!0},GenericBrowserDomAdapter.prototype.supportsNativeShadowDOM=function(){return isFunction(this.defaultDoc().body.createShadowRoot)},GenericBrowserDomAdapter.prototype.getAnimationPrefix=function(){return isPresent(this._animationPrefix)?this._animationPrefix:""},GenericBrowserDomAdapter.prototype.getTransitionEnd=function(){return isPresent(this._transitionEnd)?this._transitionEnd:""},GenericBrowserDomAdapter.prototype.supportsAnimation=function(){return isPresent(this._animationPrefix)&&isPresent(this._transitionEnd)},GenericBrowserDomAdapter}(w),I=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},R={"class":"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},M=3,k={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},N={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"},D=function(e){function BrowserDomAdapter(){e.apply(this,arguments)}return I(BrowserDomAdapter,e),BrowserDomAdapter.prototype.parse=function(e){throw new Error("parse not implemented")},BrowserDomAdapter.makeCurrent=function(){setRootDomAdapter(new BrowserDomAdapter)},BrowserDomAdapter.prototype.hasProperty=function(e,t){return t in e},BrowserDomAdapter.prototype.setProperty=function(e,t,r){e[t]=r},BrowserDomAdapter.prototype.getProperty=function(e,t){return e[t]},BrowserDomAdapter.prototype.invoke=function(e,t,r){e[t].apply(e,r)},BrowserDomAdapter.prototype.logError=function(e){window.console.error?window.console.error(e):window.console.log(e)},BrowserDomAdapter.prototype.log=function(e){window.console.log(e)},BrowserDomAdapter.prototype.logGroup=function(e){window.console.group?(window.console.group(e),this.logError(e)):window.console.log(e)},BrowserDomAdapter.prototype.logGroupEnd=function(){window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(BrowserDomAdapter.prototype,"attrToPropMap",{get:function(){return R},enumerable:!0,configurable:!0}),BrowserDomAdapter.prototype.query=function(e){return document.querySelector(e)},BrowserDomAdapter.prototype.querySelector=function(e,t){return e.querySelector(t)},BrowserDomAdapter.prototype.querySelectorAll=function(e,t){return e.querySelectorAll(t)},BrowserDomAdapter.prototype.on=function(e,t,r){e.addEventListener(t,r,!1)},BrowserDomAdapter.prototype.onAndCancel=function(e,t,r){return e.addEventListener(t,r,!1),function(){e.removeEventListener(t,r,!1)}},BrowserDomAdapter.prototype.dispatchEvent=function(e,t){e.dispatchEvent(t)},BrowserDomAdapter.prototype.createMouseEvent=function(e){var t=document.createEvent("MouseEvent");return t.initEvent(e,!0,!0),t},BrowserDomAdapter.prototype.createEvent=function(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t},BrowserDomAdapter.prototype.preventDefault=function(e){e.preventDefault(),e.returnValue=!1},BrowserDomAdapter.prototype.isPrevented=function(e){return e.defaultPrevented||isPresent(e.returnValue)&&!e.returnValue},BrowserDomAdapter.prototype.getInnerHTML=function(e){return e.innerHTML},BrowserDomAdapter.prototype.getTemplateContent=function(e){return"content"in e&&e instanceof HTMLTemplateElement?e.content:null},BrowserDomAdapter.prototype.getOuterHTML=function(e){return e.outerHTML},BrowserDomAdapter.prototype.nodeName=function(e){return e.nodeName},BrowserDomAdapter.prototype.nodeValue=function(e){return e.nodeValue},BrowserDomAdapter.prototype.type=function(e){return e.type},BrowserDomAdapter.prototype.content=function(e){return this.hasProperty(e,"content")?e.content:e},BrowserDomAdapter.prototype.firstChild=function(e){return e.firstChild},BrowserDomAdapter.prototype.nextSibling=function(e){return e.nextSibling},BrowserDomAdapter.prototype.parentElement=function(e){return e.parentNode},BrowserDomAdapter.prototype.childNodes=function(e){return e.childNodes},BrowserDomAdapter.prototype.childNodesAsList=function(e){for(var t=e.childNodes,r=b.createFixedSize(t.length),n=0;n<t.length;n++)r[n]=t[n];return r},BrowserDomAdapter.prototype.clearNodes=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},BrowserDomAdapter.prototype.appendChild=function(e,t){e.appendChild(t)},BrowserDomAdapter.prototype.removeChild=function(e,t){e.removeChild(t)},BrowserDomAdapter.prototype.replaceChild=function(e,t,r){e.replaceChild(t,r)},BrowserDomAdapter.prototype.remove=function(e){return e.parentNode&&e.parentNode.removeChild(e),e},BrowserDomAdapter.prototype.insertBefore=function(e,t){e.parentNode.insertBefore(t,e)},BrowserDomAdapter.prototype.insertAllBefore=function(e,t){t.forEach(function(t){return e.parentNode.insertBefore(t,e)})},BrowserDomAdapter.prototype.insertAfter=function(e,t){e.parentNode.insertBefore(t,e.nextSibling)},BrowserDomAdapter.prototype.setInnerHTML=function(e,t){e.innerHTML=t},BrowserDomAdapter.prototype.getText=function(e){return e.textContent},BrowserDomAdapter.prototype.setText=function(e,t){e.textContent=t},BrowserDomAdapter.prototype.getValue=function(e){return e.value},BrowserDomAdapter.prototype.setValue=function(e,t){e.value=t},BrowserDomAdapter.prototype.getChecked=function(e){return e.checked},BrowserDomAdapter.prototype.setChecked=function(e,t){e.checked=t},BrowserDomAdapter.prototype.createComment=function(e){return document.createComment(e)},BrowserDomAdapter.prototype.createTemplate=function(e){var t=document.createElement("template");return t.innerHTML=e,t},BrowserDomAdapter.prototype.createElement=function(e,t){return void 0===t&&(t=document),t.createElement(e)},BrowserDomAdapter.prototype.createElementNS=function(e,t,r){return void 0===r&&(r=document),r.createElementNS(e,t)},BrowserDomAdapter.prototype.createTextNode=function(e,t){return void 0===t&&(t=document),t.createTextNode(e)},BrowserDomAdapter.prototype.createScriptTag=function(e,t,r){void 0===r&&(r=document);var n=r.createElement("SCRIPT");return n.setAttribute(e,t),n},BrowserDomAdapter.prototype.createStyleElement=function(e,t){void 0===t&&(t=document);var r=t.createElement("style");return this.appendChild(r,this.createTextNode(e)),r},BrowserDomAdapter.prototype.createShadowRoot=function(e){return e.createShadowRoot()},BrowserDomAdapter.prototype.getShadowRoot=function(e){return e.shadowRoot},BrowserDomAdapter.prototype.getHost=function(e){return e.host},BrowserDomAdapter.prototype.clone=function(e){return e.cloneNode(!0)},BrowserDomAdapter.prototype.getElementsByClassName=function(e,t){return e.getElementsByClassName(t)},BrowserDomAdapter.prototype.getElementsByTagName=function(e,t){return e.getElementsByTagName(t)},BrowserDomAdapter.prototype.classList=function(e){return Array.prototype.slice.call(e.classList,0)},BrowserDomAdapter.prototype.addClass=function(e,t){e.classList.add(t)},BrowserDomAdapter.prototype.removeClass=function(e,t){e.classList.remove(t)},BrowserDomAdapter.prototype.hasClass=function(e,t){return e.classList.contains(t)},BrowserDomAdapter.prototype.setStyle=function(e,t,r){e.style[t]=r},BrowserDomAdapter.prototype.removeStyle=function(e,t){e.style[t]=null},BrowserDomAdapter.prototype.getStyle=function(e,t){return e.style[t]},BrowserDomAdapter.prototype.hasStyle=function(e,t,r){void 0===r&&(r=null);var n=this.getStyle(e,t)||"";return r?n==r:n.length>0},BrowserDomAdapter.prototype.tagName=function(e){return e.tagName},BrowserDomAdapter.prototype.attributeMap=function(e){for(var t=new Map,r=e.attributes,n=0;n<r.length;n++){var i=r[n];t.set(i.name,i.value)}return t},BrowserDomAdapter.prototype.hasAttribute=function(e,t){return e.hasAttribute(t)},BrowserDomAdapter.prototype.hasAttributeNS=function(e,t,r){return e.hasAttributeNS(t,r)},BrowserDomAdapter.prototype.getAttribute=function(e,t){return e.getAttribute(t)},BrowserDomAdapter.prototype.getAttributeNS=function(e,t,r){return e.getAttributeNS(t,r)},BrowserDomAdapter.prototype.setAttribute=function(e,t,r){e.setAttribute(t,r)},BrowserDomAdapter.prototype.setAttributeNS=function(e,t,r,n){e.setAttributeNS(t,r,n)},BrowserDomAdapter.prototype.removeAttribute=function(e,t){e.removeAttribute(t)},BrowserDomAdapter.prototype.removeAttributeNS=function(e,t,r){e.removeAttributeNS(t,r)},BrowserDomAdapter.prototype.templateAwareRoot=function(e){return this.isTemplateElement(e)?this.content(e):e},BrowserDomAdapter.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},BrowserDomAdapter.prototype.defaultDoc=function(){return document},BrowserDomAdapter.prototype.getBoundingClientRect=function(e){try{return e.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},BrowserDomAdapter.prototype.getTitle=function(){return document.title},BrowserDomAdapter.prototype.setTitle=function(e){document.title=e||""},BrowserDomAdapter.prototype.elementMatches=function(e,t){var r=!1;return e instanceof HTMLElement&&(e.matches?r=e.matches(t):e.msMatchesSelector?r=e.msMatchesSelector(t):e.webkitMatchesSelector&&(r=e.webkitMatchesSelector(t))),r},BrowserDomAdapter.prototype.isTemplateElement=function(e){return e instanceof HTMLElement&&"TEMPLATE"==e.nodeName},BrowserDomAdapter.prototype.isTextNode=function(e){return e.nodeType===Node.TEXT_NODE},BrowserDomAdapter.prototype.isCommentNode=function(e){return e.nodeType===Node.COMMENT_NODE},BrowserDomAdapter.prototype.isElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},BrowserDomAdapter.prototype.hasShadowRoot=function(e){return isPresent(e.shadowRoot)&&e instanceof HTMLElement},BrowserDomAdapter.prototype.isShadowRoot=function(e){return e instanceof DocumentFragment},BrowserDomAdapter.prototype.importIntoDoc=function(e){var t=e;return this.isTemplateElement(e)&&(t=this.content(e)),document.importNode(t,!0)},BrowserDomAdapter.prototype.adoptNode=function(e){return document.adoptNode(e)},BrowserDomAdapter.prototype.getHref=function(e){return e.href},BrowserDomAdapter.prototype.getEventKey=function(e){var t=e.key;if(isBlank(t)){if(t=e.keyIdentifier,isBlank(t))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),e.location===M&&N.hasOwnProperty(t)&&(t=N[t]))}return k.hasOwnProperty(t)&&(t=k[t]),t},BrowserDomAdapter.prototype.getGlobalEventTarget=function(e){return"window"==e?window:"document"==e?document:"body"==e?document.body:void 0},BrowserDomAdapter.prototype.getHistory=function(){return window.history},BrowserDomAdapter.prototype.getLocation=function(){return window.location},BrowserDomAdapter.prototype.getBaseHref=function(){var e=getBaseElementHref();return isBlank(e)?null:relativePath(e)},BrowserDomAdapter.prototype.resetBaseElement=function(){V=null},BrowserDomAdapter.prototype.getUserAgent=function(){return window.navigator.userAgent},BrowserDomAdapter.prototype.setData=function(e,t,r){this.setAttribute(e,"data-"+t,r)},BrowserDomAdapter.prototype.getData=function(e,t){return this.getAttribute(e,"data-"+t)},BrowserDomAdapter.prototype.getComputedStyle=function(e){return getComputedStyle(e)},BrowserDomAdapter.prototype.setGlobalVar=function(e,t){setValueOnPath(c,e,t)},BrowserDomAdapter.prototype.supportsWebAnimation=function(){return isFunction(Element.prototype.animate)},BrowserDomAdapter.prototype.performanceNow=function(){return isPresent(window.performance)&&isPresent(window.performance.now)?window.performance.now():d.toMillis(d.now())},BrowserDomAdapter.prototype.supportsCookies=function(){return!0},BrowserDomAdapter.prototype.getCookie=function(e){return parseCookieValue(document.cookie,e)},BrowserDomAdapter.prototype.setCookie=function(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)},BrowserDomAdapter}(O),V=null,j=null,L=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},F=function(e){function BrowserPlatformLocation(){e.call(this),this._init()}return L(BrowserPlatformLocation,e),BrowserPlatformLocation.prototype._init=function(){this._location=getDOM().getLocation(),this._history=getDOM().getHistory()},Object.defineProperty(BrowserPlatformLocation.prototype,"location",{get:function(){return this._location},enumerable:!0,configurable:!0}),BrowserPlatformLocation.prototype.getBaseHrefFromDOM=function(){return getDOM().getBaseHref()},BrowserPlatformLocation.prototype.onPopState=function(e){getDOM().getGlobalEventTarget("window").addEventListener("popstate",e,!1)},BrowserPlatformLocation.prototype.onHashChange=function(e){getDOM().getGlobalEventTarget("window").addEventListener("hashchange",e,!1)},Object.defineProperty(BrowserPlatformLocation.prototype,"pathname",{get:function(){return this._location.pathname},set:function(e){this._location.pathname=e},enumerable:!0,configurable:!0}),Object.defineProperty(BrowserPlatformLocation.prototype,"search",{get:function(){return this._location.search},enumerable:!0,configurable:!0}),Object.defineProperty(BrowserPlatformLocation.prototype,"hash",{get:function(){return this._location.hash},enumerable:!0,configurable:!0}),BrowserPlatformLocation.prototype.pushState=function(e,t,r){supportsState()?this._history.pushState(e,t,r):this._location.hash=r},BrowserPlatformLocation.prototype.replaceState=function(e,t,r){supportsState()?this._history.replaceState(e,t,r):this._location.hash=r},BrowserPlatformLocation.prototype.forward=function(){this._history.forward()},BrowserPlatformLocation.prototype.back=function(){this._history.back()},BrowserPlatformLocation.decorators=[{type:n.Injectable}],BrowserPlatformLocation.ctorParameters=[],BrowserPlatformLocation}(r.PlatformLocation),B=function(){function BrowserGetTestability(){}return BrowserGetTestability.init=function(){n.setTestabilityGetter(new BrowserGetTestability)},BrowserGetTestability.prototype.addToWindow=function(e){c.getAngularTestability=function(t,r){void 0===r&&(r=!0);var n=e.findTestabilityInTree(t,r);if(null==n)throw new Error("Could not find testability for element.");return n},c.getAllAngularTestabilities=function(){return e.getAllTestabilities()},c.getAllAngularRootElements=function(){return e.getAllRootElements()};var t=function(e){var t=c.getAllAngularTestabilities(),r=t.length,n=!1,i=function(t){n=n||t,r--,0==r&&e(n)};t.forEach(function(e){e.whenStable(i)})};c.frameworkStabilizers||(c.frameworkStabilizers=b.createGrowableSize(0)),c.frameworkStabilizers.push(t)},BrowserGetTestability.prototype.findTestabilityInTree=function(e,t,r){if(null==t)return null;var n=e.getTestability(t);return isPresent(n)?n:r?getDOM().isShadowRoot(t)?this.findTestabilityInTree(e,getDOM().getHost(t),!0):this.findTestabilityInTree(e,getDOM().parentElement(t),!0):null},BrowserGetTestability}(),W=function(){function Title(){}return Title.prototype.getTitle=function(){return getDOM().getTitle()},Title.prototype.setTitle=function(e){getDOM().setTitle(e)},Title}(),U=new n.OpaqueToken("DocumentToken"),z=new n.OpaqueToken("EventManagerPlugins"),H=function(){function EventManager(e,t){var r=this;this._zone=t,e.forEach(function(e){return e.manager=r}),this._plugins=e.slice().reverse()}return EventManager.prototype.addEventListener=function(e,t,r){var n=this._findPluginFor(t);return n.addEventListener(e,t,r)},EventManager.prototype.addGlobalEventListener=function(e,t,r){var n=this._findPluginFor(t);return n.addGlobalEventListener(e,t,r)},EventManager.prototype.getZone=function(){return this._zone},EventManager.prototype._findPluginFor=function(e){for(var t=this._plugins,r=0;r<t.length;r++){var n=t[r];if(n.supports(e))return n}throw new Error("No event manager plugin found for event "+e)},EventManager.decorators=[{type:n.Injectable}],EventManager.ctorParameters=[{type:Array,decorators:[{type:n.Inject,args:[z]}]},{type:n.NgZone}],EventManager}(),q=function(){function EventManagerPlugin(){}return EventManagerPlugin.prototype.supports=function(e){return!1},EventManagerPlugin.prototype.addEventListener=function(e,t,r){throw"not implemented"},EventManagerPlugin.prototype.addGlobalEventListener=function(e,t,r){throw"not implemented"},EventManagerPlugin}(),G=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},K=function(){function SharedStylesHost(){this._styles=[],this._stylesSet=new Set}return SharedStylesHost.prototype.addStyles=function(e){var t=this,r=[];e.forEach(function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),t._styles.push(e),r.push(e))}),this.onStylesAdded(r)},SharedStylesHost.prototype.onStylesAdded=function(e){},SharedStylesHost.prototype.getAllStyles=function(){return this._styles;
},SharedStylesHost.decorators=[{type:n.Injectable}],SharedStylesHost.ctorParameters=[],SharedStylesHost}(),Q=function(e){function DomSharedStylesHost(t){e.call(this),this._hostNodes=new Set,this._hostNodes.add(t.head)}return G(DomSharedStylesHost,e),DomSharedStylesHost.prototype._addStylesToHost=function(e,t){for(var r=0;r<e.length;r++){var n=e[r];getDOM().appendChild(t,getDOM().createStyleElement(n))}},DomSharedStylesHost.prototype.addHost=function(e){this._addStylesToHost(this._styles,e),this._hostNodes.add(e)},DomSharedStylesHost.prototype.removeHost=function(e){this._hostNodes["delete"](e)},DomSharedStylesHost.prototype.onStylesAdded=function(e){var t=this;this._hostNodes.forEach(function(r){t._addStylesToHost(e,r)})},DomSharedStylesHost.decorators=[{type:n.Injectable}],DomSharedStylesHost.ctorParameters=[{type:void 0,decorators:[{type:n.Inject,args:[U]}]}],DomSharedStylesHost}(K),X=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},J={xlink:"http://www.w3.org/1999/xlink",svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml"},Z="template bindings={}",$=/^template bindings=(.*)$/,Y=function(){function DomRootRenderer(e,t,r,n){this.document=e,this.eventManager=t,this.sharedStylesHost=r,this.animationDriver=n,this.registeredComponents=new Map}return DomRootRenderer.prototype.renderComponent=function(e){var t=this.registeredComponents.get(e.id);return isBlank(t)&&(t=new te(this,e,this.animationDriver),this.registeredComponents.set(e.id,t)),t},DomRootRenderer}(),ee=function(e){function DomRootRenderer_(t,r,n,i){e.call(this,t,r,n,i)}return X(DomRootRenderer_,e),DomRootRenderer_.decorators=[{type:n.Injectable}],DomRootRenderer_.ctorParameters=[{type:void 0,decorators:[{type:n.Inject,args:[U]}]},{type:H},{type:Q},{type:u}],DomRootRenderer_}(Y),te=function(){function DomRenderer(e,t,r){this._rootRenderer=e,this.componentProto=t,this._animationDriver=r,this._styles=_flattenStyles(t.id,t.styles,[]),t.encapsulation!==n.ViewEncapsulation.Native&&this._rootRenderer.sharedStylesHost.addStyles(this._styles),this.componentProto.encapsulation===n.ViewEncapsulation.Emulated?(this._contentAttr=_shimContentAttribute(t.id),this._hostAttr=_shimHostAttribute(t.id)):(this._contentAttr=null,this._hostAttr=null)}return DomRenderer.prototype.selectRootElement=function(e,t){var r;if(isString(e)){if(r=getDOM().querySelector(this._rootRenderer.document,e),isBlank(r))throw new Error('The selector "'+e+'" did not match any elements')}else r=e;return getDOM().clearNodes(r),r},DomRenderer.prototype.createElement=function(e,t,r){var n=splitNamespace(t),i=isPresent(n[0])?getDOM().createElementNS(J[n[0]],n[1]):getDOM().createElement(n[1]);return isPresent(this._contentAttr)&&getDOM().setAttribute(i,this._contentAttr,""),isPresent(e)&&getDOM().appendChild(e,i),i},DomRenderer.prototype.createViewRoot=function(e){var t;if(this.componentProto.encapsulation===n.ViewEncapsulation.Native){t=getDOM().createShadowRoot(e),this._rootRenderer.sharedStylesHost.addHost(t);for(var r=0;r<this._styles.length;r++)getDOM().appendChild(t,getDOM().createStyleElement(this._styles[r]))}else isPresent(this._hostAttr)&&getDOM().setAttribute(e,this._hostAttr,""),t=e;return t},DomRenderer.prototype.createTemplateAnchor=function(e,t){var r=getDOM().createComment(Z);return isPresent(e)&&getDOM().appendChild(e,r),r},DomRenderer.prototype.createText=function(e,t,r){var n=getDOM().createTextNode(t);return isPresent(e)&&getDOM().appendChild(e,n),n},DomRenderer.prototype.projectNodes=function(e,t){isBlank(e)||appendNodes(e,t)},DomRenderer.prototype.attachViewAfter=function(e,t){moveNodesAfterSibling(e,t)},DomRenderer.prototype.detachView=function(e){for(var t=0;t<e.length;t++)getDOM().remove(e[t])},DomRenderer.prototype.destroyView=function(e,t){this.componentProto.encapsulation===n.ViewEncapsulation.Native&&isPresent(e)&&this._rootRenderer.sharedStylesHost.removeHost(getDOM().getShadowRoot(e))},DomRenderer.prototype.listen=function(e,t,r){return this._rootRenderer.eventManager.addEventListener(e,t,decoratePreventDefault(r))},DomRenderer.prototype.listenGlobal=function(e,t,r){return this._rootRenderer.eventManager.addGlobalEventListener(e,t,decoratePreventDefault(r))},DomRenderer.prototype.setElementProperty=function(e,t,r){getDOM().setProperty(e,t,r)},DomRenderer.prototype.setElementAttribute=function(e,t,r){var n,i=splitNamespace(t);isPresent(i[0])&&(t=i[0]+":"+i[1],n=J[i[0]]),isPresent(r)?isPresent(n)?getDOM().setAttributeNS(e,n,t,r):getDOM().setAttribute(e,t,r):isPresent(n)?getDOM().removeAttributeNS(e,n,i[1]):getDOM().removeAttribute(e,t)},DomRenderer.prototype.setBindingDebugInfo=function(e,t,r){var n=camelCaseToDashCase(t);if(getDOM().isCommentNode(e)){var i=p.replaceAll(getDOM().getText(e),/\n/g,"").match($),o=f.parse(i[1]);o[n]=r,getDOM().setText(e,p.replace(Z,"{}",f.stringify(o)))}else this.setElementAttribute(e,t,r)},DomRenderer.prototype.setElementClass=function(e,t,r){r?getDOM().addClass(e,t):getDOM().removeClass(e,t)},DomRenderer.prototype.setElementStyle=function(e,t,r){isPresent(r)?getDOM().setStyle(e,t,stringify(r)):getDOM().removeStyle(e,t)},DomRenderer.prototype.invokeElementMethod=function(e,t,r){getDOM().invoke(e,t,r)},DomRenderer.prototype.setText=function(e,t){getDOM().setText(e,t)},DomRenderer.prototype.animate=function(e,t,r,n,i,o){return this._animationDriver.animate(e,t,r,n,i,o)},DomRenderer}(),re=/%COMP%/g,ne="%COMP%",ie="_nghost-"+ne,oe="_ngcontent-"+ne,se=/^:([^:]+):(.+)$/,ae={ApplicationRef:n.ApplicationRef,NgZone:n.NgZone},ue="ng.probe",ce="ng.coreTokens",le=function(){function NgProbeToken(e,t){this.name=e,this.token=t}return NgProbeToken}(),pe=[{provide:n.RootRenderer,useFactory:_createConditionalRootRenderer,deps:[Y,[le,new n.Optional]]}],he=([{provide:n.RootRenderer,useFactory:_createRootRenderer,deps:[Y,[le,new n.Optional]]}],this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),fe=function(e){function DomEventsPlugin(){e.apply(this,arguments)}return he(DomEventsPlugin,e),DomEventsPlugin.prototype.supports=function(e){return!0},DomEventsPlugin.prototype.addEventListener=function(e,t,r){var n=this.manager.getZone(),i=function(e){return n.runGuarded(function(){return r(e)})};return this.manager.getZone().runOutsideAngular(function(){return getDOM().onAndCancel(e,t,i)})},DomEventsPlugin.prototype.addGlobalEventListener=function(e,t,r){var n=getDOM().getGlobalEventTarget(e),i=this.manager.getZone(),o=function(e){return i.runGuarded(function(){return r(e)})};return this.manager.getZone().runOutsideAngular(function(){return getDOM().onAndCancel(n,t,o)})},DomEventsPlugin.decorators=[{type:n.Injectable}],DomEventsPlugin.ctorParameters=[],DomEventsPlugin}(q),de=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},me={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},ve=function(e){function HammerGesturesPluginCommon(){e.call(this)}return de(HammerGesturesPluginCommon,e),HammerGesturesPluginCommon.prototype.supports=function(e){return e=e.toLowerCase(),y.contains(me,e)},HammerGesturesPluginCommon}(q),ye=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},be=new n.OpaqueToken("HammerGestureConfig"),ge=function(){function HammerGestureConfig(){this.events=[],this.overrides={}}return HammerGestureConfig.prototype.buildHammer=function(e){var t=new Hammer(e);t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0});for(var r in this.overrides)t.get(r).set(this.overrides[r]);return t},HammerGestureConfig.decorators=[{type:n.Injectable}],HammerGestureConfig.ctorParameters=[],HammerGestureConfig}(),_e=function(e){function HammerGesturesPlugin(t){e.call(this),this._config=t}return ye(HammerGesturesPlugin,e),HammerGesturesPlugin.prototype.supports=function(t){if(!e.prototype.supports.call(this,t)&&!this.isCustomEvent(t))return!1;if(!isPresent(window.Hammer))throw new Error("Hammer.js is not loaded, can not bind "+t+" event");return!0},HammerGesturesPlugin.prototype.addEventListener=function(e,t,r){var n=this,i=this.manager.getZone();return t=t.toLowerCase(),i.runOutsideAngular(function(){var o=n._config.buildHammer(e),s=function(e){i.runGuarded(function(){r(e)})};return o.on(t,s),function(){o.off(t,s)}})},HammerGesturesPlugin.prototype.isCustomEvent=function(e){return this._config.events.indexOf(e)>-1},HammerGesturesPlugin.decorators=[{type:n.Injectable}],HammerGesturesPlugin.ctorParameters=[{type:ge,decorators:[{type:n.Inject,args:[be]}]}],HammerGesturesPlugin}(ve),Se=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},we=["alt","control","meta","shift"],Ee={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},Ce=function(e){function KeyEventsPlugin(){e.call(this)}return Se(KeyEventsPlugin,e),KeyEventsPlugin.prototype.supports=function(e){return isPresent(KeyEventsPlugin.parseEventName(e))},KeyEventsPlugin.prototype.addEventListener=function(e,t,r){var n=KeyEventsPlugin.parseEventName(t),i=KeyEventsPlugin.eventCallback(e,y.get(n,"fullKey"),r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return getDOM().onAndCancel(e,y.get(n,"domEventName"),i)})},KeyEventsPlugin.parseEventName=function(e){var t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||!p.equals(r,"keydown")&&!p.equals(r,"keyup"))return null;var n=KeyEventsPlugin._normalizeKey(t.pop()),i="";if(we.forEach(function(e){b.contains(t,e)&&(b.remove(t,e),i+=e+".")}),i+=n,0!=t.length||0===n.length)return null;var o=y.create();return y.set(o,"domEventName",r),y.set(o,"fullKey",i),o},KeyEventsPlugin.getEventFullKey=function(e){var t="",r=getDOM().getEventKey(e);return r=r.toLowerCase(),p.equals(r," ")?r="space":p.equals(r,".")&&(r="dot"),we.forEach(function(n){if(n!=r){var i=y.get(Ee,n);i(e)&&(t+=n+".")}}),t+=r},KeyEventsPlugin.eventCallback=function(e,t,r,n){return function(e){p.equals(KeyEventsPlugin.getEventFullKey(e),t)&&n.runGuarded(function(){return r(e)})}},KeyEventsPlugin._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},KeyEventsPlugin.decorators=[{type:n.Injectable}],KeyEventsPlugin.ctorParameters=[],KeyEventsPlugin}(q),Pe=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,Te=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,xe=null,Ae=null,Oe=tagSet("area,br,col,hr,img,wbr"),Ie=tagSet("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Re=tagSet("rp,rt"),Me=merge(Re,Ie),ke=merge(Ie,tagSet("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ne=merge(Re,tagSet("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),De=merge(Oe,ke,Ne,Me),Ve=tagSet("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),je=tagSet("srcset"),Le=tagSet("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Fe=merge(Ve,je,Le),Be=function(){function SanitizingHtmlSerializer(){this.sanitizedSomething=!1,this.buf=[]}return SanitizingHtmlSerializer.prototype.sanitizeChildren=function(e){for(var t=e.firstChild;t;)if(Ae.isElementNode(t)?this.startElement(t):Ae.isTextNode(t)?this.chars(Ae.nodeValue(t)):this.sanitizedSomething=!0,Ae.firstChild(t))t=Ae.firstChild(t);else for(;t;){if(Ae.isElementNode(t)&&this.endElement(t),Ae.nextSibling(t)){t=Ae.nextSibling(t);break}t=Ae.parentElement(t)}return this.buf.join("")},SanitizingHtmlSerializer.prototype.startElement=function(e){var t=this,r=Ae.nodeName(e).toLowerCase();return De.hasOwnProperty(r)?(this.buf.push("<"),this.buf.push(r),Ae.attributeMap(e).forEach(function(e,r){var n=r.toLowerCase();return Fe.hasOwnProperty(n)?(Ve[n]&&(e=sanitizeUrl(e)),je[n]&&(e=sanitizeSrcset(e)),t.buf.push(" "),t.buf.push(r),t.buf.push('="'),t.buf.push(encodeEntities(e)),void t.buf.push('"')):void(t.sanitizedSomething=!0)}),void this.buf.push(">")):void(this.sanitizedSomething=!0)},SanitizingHtmlSerializer.prototype.endElement=function(e){var t=Ae.nodeName(e).toLowerCase();De.hasOwnProperty(t)&&!Oe.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))},SanitizingHtmlSerializer.prototype.chars=function(e){this.buf.push(encodeEntities(e))},SanitizingHtmlSerializer}(),We=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ue=/([^\#-~ |!])/g,ze="[-,.\"'%_!# a-zA-Z0-9]+",He="(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?",qe="(?:rgb|hsl)a?",Ge="\\([-0-9.%, a-zA-Z]+\\)",Ke=new RegExp("^("+ze+"|(?:"+He+"|"+qe+")"+Ge+")$","g"),Qe=/^url\(([^)]+)\)$/,Xe=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},Je=function(){function DomSanitizer(){}return DomSanitizer}(),Ze=function(e){function DomSanitizerImpl(){e.apply(this,arguments)}return Xe(DomSanitizerImpl,e),DomSanitizerImpl.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case n.SecurityContext.NONE:return t;case n.SecurityContext.HTML:return t instanceof Ye?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),sanitizeHtml(String(t)));case n.SecurityContext.STYLE:return t instanceof et?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),sanitizeStyle(t));case n.SecurityContext.SCRIPT:if(t instanceof tt)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case n.SecurityContext.URL:return t instanceof nt||t instanceof rt?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),sanitizeUrl(String(t)));case n.SecurityContext.RESOURCE_URL:if(t instanceof nt)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+e+" (see http://g.co/ng/security#xss)")}},DomSanitizerImpl.prototype.checkNotSafeValue=function(e,t){if(e instanceof $e)throw new Error("Required a safe "+t+", got a "+e.getTypeName()+" (see http://g.co/ng/security#xss)")},DomSanitizerImpl.prototype.bypassSecurityTrustHtml=function(e){return new Ye(e)},DomSanitizerImpl.prototype.bypassSecurityTrustStyle=function(e){return new et(e)},DomSanitizerImpl.prototype.bypassSecurityTrustScript=function(e){return new tt(e)},DomSanitizerImpl.prototype.bypassSecurityTrustUrl=function(e){return new rt(e)},DomSanitizerImpl.prototype.bypassSecurityTrustResourceUrl=function(e){return new nt(e)},DomSanitizerImpl.decorators=[{type:n.Injectable}],DomSanitizerImpl.ctorParameters=[],DomSanitizerImpl}(Je),$e=function(){function SafeValueImpl(e){this.changingThisBreaksApplicationSecurity=e}return SafeValueImpl.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},SafeValueImpl}(),Ye=function(e){function SafeHtmlImpl(){e.apply(this,arguments)}return Xe(SafeHtmlImpl,e),SafeHtmlImpl.prototype.getTypeName=function(){return"HTML"},SafeHtmlImpl}($e),et=function(e){function SafeStyleImpl(){e.apply(this,arguments)}return Xe(SafeStyleImpl,e),SafeStyleImpl.prototype.getTypeName=function(){return"Style"},SafeStyleImpl}($e),tt=function(e){function SafeScriptImpl(){e.apply(this,arguments)}return Xe(SafeScriptImpl,e),SafeScriptImpl.prototype.getTypeName=function(){return"Script"},SafeScriptImpl}($e),rt=function(e){function SafeUrlImpl(){e.apply(this,arguments)}return Xe(SafeUrlImpl,e),SafeUrlImpl.prototype.getTypeName=function(){return"URL"},SafeUrlImpl}($e),nt=function(e){function SafeResourceUrlImpl(){e.apply(this,arguments)}return Xe(SafeResourceUrlImpl,e),SafeResourceUrlImpl.prototype.getTypeName=function(){return"ResourceURL"},SafeResourceUrlImpl}($e),it=[{provide:n.PLATFORM_INITIALIZER,useValue:initDomAdapter,multi:!0},{provide:r.PlatformLocation,useClass:F}],ot=[{provide:n.Sanitizer,useExisting:Je},{provide:Je,useClass:Ze}],st=n.createPlatformFactory(n.platformCore,"browser",it),at=function(){function BrowserModule(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return BrowserModule.decorators=[{type:n.NgModule,args:[{providers:[ot,{provide:n.ErrorHandler,useFactory:errorHandler,deps:[]},{provide:U,useFactory:_document,deps:[]},{provide:z,useClass:fe,multi:!0},{provide:z,useClass:Ce,multi:!0},{provide:z,useClass:_e,multi:!0},{provide:be,useClass:ge},{provide:Y,useClass:ee},{provide:n.RootRenderer,useExisting:Y},{provide:K,useExisting:Q},{provide:u,useFactory:_resolveDefaultAnimationDriver},Q,n.Testability,H,pe,W],exports:[r.CommonModule,n.ApplicationModule]}]}],BrowserModule.ctorParameters=[{type:BrowserModule,decorators:[{type:n.Optional},{type:n.SkipSelf}]}],BrowserModule}(),ut="undefined"!=typeof window&&window||{},ct=function(){function ChangeDetectionPerfRecord(e,t){this.msPerTick=e,this.numTicks=t}return ChangeDetectionPerfRecord}(),lt=function(){function AngularTools(e){this.profiler=new pt(e)}return AngularTools}(),pt=function(){function AngularProfiler(e){this.appRef=e.injector.get(n.ApplicationRef)}return AngularProfiler.prototype.timeChangeDetection=function(e){var t=isPresent(e)&&e.record,r="Change Detection",n=isPresent(ut.console.profile);t&&n&&ut.console.profile(r);for(var i=getDOM().performanceNow(),o=0;o<5||getDOM().performanceNow()-i<500;)this.appRef.tick(),o++;var s=getDOM().performanceNow();t&&n&&ut.console.profileEnd(r);var a=(s-i)/o;return ut.console.log("ran "+o+" change detection cycles"),ut.console.log(h.toFixed(a,2)+" ms per check"),new ct(a,o)},AngularProfiler}(),ht=c,ft=function(){function By(){}return By.all=function(){return function(e){return!0}},By.css=function(e){return function(t){return!!isPresent(t.nativeElement)&&getDOM().elementMatches(t.nativeElement,e)}},By.directive=function(e){return function(t){return t.providerTokens.indexOf(e)!==-1}},By}(),dt={BrowserPlatformLocation:F,DomAdapter:w,BrowserDomAdapter:D,BrowserGetTestability:B,getDOM:getDOM,setRootDomAdapter:setRootDomAdapter,DomRootRenderer_:ee,DomRootRenderer:Y,DomSharedStylesHost:Q,SharedStylesHost:K,ELEMENT_PROBE_PROVIDERS:pe,DomEventsPlugin:fe,KeyEventsPlugin:Ce,HammerGesturesPlugin:_e,initDomAdapter:initDomAdapter,INTERNAL_BROWSER_PLATFORM_PROVIDERS:it,BROWSER_SANITIZATION_PROVIDERS:ot};t.BrowserModule=at,t.platformBrowser=st,t.Title=W,t.disableDebugTools=disableDebugTools,t.enableDebugTools=enableDebugTools,t.AnimationDriver=u,t.By=ft,t.NgProbeToken=le,t.DOCUMENT=U,t.EVENT_MANAGER_PLUGINS=z,t.EventManager=H,t.HAMMER_GESTURE_CONFIG=be,t.HammerGestureConfig=ge,t.DomSanitizer=Je,t.__platform_browser_private__=dt})}).call(t,function(){return this}())},function(e,t,r){(function(e){/**
	 * @license Angular v2.0.0
	 * (c) 2010-2016 Google, Inc. https://angular.io/
	 * License: MIT
	 */
!function(e,n){n(t,r(3))}(this,function(t,r){"use strict";function getTypeNameForDebugging(e){return e.name?e.name:typeof e}function isPresent(e){return void 0!==e&&null!==e}function isBlank(e){return void 0===e||null===e}function isNumber(e){return"number"==typeof e}function isString(e){return"string"==typeof e}function isFunction(e){return"function"==typeof e}function isStringMap(e){return"object"==typeof e&&null!==e}function isPromise(e){return isPresent(e)&&isFunction(e.then)}function isArray(e){return Array.isArray(e)}function isDate(e){return e instanceof u&&!isNaN(e.valueOf())}function stringify(e){if("string"==typeof e)return e;if(void 0===e||null===e)return""+e;if(e.overriddenName)return e.overriddenName;if(e.name)return e.name;var t=e.toString(),r=t.indexOf("\n");return r===-1?t:t.substring(0,r)}function isJsObject(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function getSymbolIterator(){if(isBlank(d))if(isPresent(n.Symbol)&&isPresent(Symbol.iterator))d=Symbol.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),t=0;t<e.length;++t){var r=e[t];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(d=r)}return d}function _stripBaseHref(e,t){return e.length>0&&t.startsWith(e)?t.substring(e.length):t}function _stripIndexHtml(e){return/\/index.html$/g.test(e)?e.substring(0,e.length-11):e}function getPluralCategory(e,t,r){var n="="+e;return t.indexOf(n)>-1?n:r.getPluralCategory(e)}function getPluralCase(e,t){"string"==typeof t&&(t=parseInt(t,10));var r=t,n=r.toString().replace(/^[^.]*\.?/,""),i=Math.floor(Math.abs(r)),o=n.length,s=parseInt(n,10),a=parseInt(r.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0,u=e.split("-")[0].toLowerCase();switch(u){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===r?c.One:c.Other;case"agq":case"bas":case"cu":case"dav":case"dje":case"dua":case"dyo":case"ebu":case"ewo":case"guz":case"kam":case"khq":case"ki":case"kln":case"kok":case"ksf":case"lrc":case"lu":case"luo":case"luy":case"mer":case"mfe":case"mgh":case"mua":case"mzn":case"nmg":case"nus":case"qu":case"rn":case"rw":case"sbp":case"twq":case"vai":case"yav":case"yue":case"zgh":case"ak":case"ln":case"mg":case"pa":case"ti":return r===Math.floor(r)&&r>=0&&r<=1?c.One:c.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===r?c.One:c.Other;case"ar":return 0===r?c.Zero:1===r?c.One:2===r?c.Two:r%100===Math.floor(r%100)&&r%100>=3&&r%100<=10?c.Few:r%100===Math.floor(r%100)&&r%100>=11&&r%100<=99?c.Many:c.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===i&&0===o?c.One:c.Other;case"be":return r%10===1&&r%100!==11?c.One:r%10===Math.floor(r%10)&&r%10>=2&&r%10<=4&&!(r%100>=12&&r%100<=14)?c.Few:r%10===0||r%10===Math.floor(r%10)&&r%10>=5&&r%10<=9||r%100===Math.floor(r%100)&&r%100>=11&&r%100<=14?c.Many:c.Other;case"br":return r%10===1&&r%100!==11&&r%100!==71&&r%100!==91?c.One:r%10===2&&r%100!==12&&r%100!==72&&r%100!==92?c.Two:r%10===Math.floor(r%10)&&(r%10>=3&&r%10<=4||r%10===9)&&!(r%100>=10&&r%100<=19||r%100>=70&&r%100<=79||r%100>=90&&r%100<=99)?c.Few:0!==r&&r%1e6===0?c.Many:c.Other;case"bs":case"hr":case"sr":return 0===o&&i%10===1&&i%100!==11||s%10===1&&s%100!==11?c.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)||s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)?c.Few:c.Other;case"cs":case"sk":return 1===i&&0===o?c.One:i===Math.floor(i)&&i>=2&&i<=4&&0===o?c.Few:0!==o?c.Many:c.Other;case"cy":return 0===r?c.Zero:1===r?c.One:2===r?c.Two:3===r?c.Few:6===r?c.Many:c.Other;case"da":return 1===r||0!==a&&(0===i||1===i)?c.One:c.Other;case"dsb":case"hsb":return 0===o&&i%100===1||s%100===1?c.One:0===o&&i%100===2||s%100===2?c.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||s%100===Math.floor(s%100)&&s%100>=3&&s%100<=4?c.Few:c.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?c.One:c.Other;case"fil":return 0===o&&(1===i||2===i||3===i)||0===o&&i%10!==4&&i%10!==6&&i%10!==9||0!==o&&s%10!==4&&s%10!==6&&s%10!==9?c.One:c.Other;case"ga":return 1===r?c.One:2===r?c.Two:r===Math.floor(r)&&r>=3&&r<=6?c.Few:r===Math.floor(r)&&r>=7&&r<=10?c.Many:c.Other;case"gd":return 1===r||11===r?c.One:2===r||12===r?c.Two:r===Math.floor(r)&&(r>=3&&r<=10||r>=13&&r<=19)?c.Few:c.Other;case"gv":return 0===o&&i%10===1?c.One:0===o&&i%10===2?c.Two:0!==o||i%100!==0&&i%100!==20&&i%100!==40&&i%100!==60&&i%100!==80?0!==o?c.Many:c.Other:c.Few;case"he":return 1===i&&0===o?c.One:2===i&&0===o?c.Two:0!==o||r>=0&&r<=10||r%10!==0?c.Other:c.Many;case"is":return 0===a&&i%10===1&&i%100!==11||0!==a?c.One:c.Other;case"ksh":return 0===r?c.Zero:1===r?c.One:c.Other;case"kw":case"naq":case"se":case"smn":return 1===r?c.One:2===r?c.Two:c.Other;case"lag":return 0===r?c.Zero:0!==i&&1!==i||0===r?c.Other:c.One;case"lt":return r%10!==1||r%100>=11&&r%100<=19?r%10===Math.floor(r%10)&&r%10>=2&&r%10<=9&&!(r%100>=11&&r%100<=19)?c.Few:0!==s?c.Many:c.Other:c.One;case"lv":case"prg":return r%10===0||r%100===Math.floor(r%100)&&r%100>=11&&r%100<=19||2===o&&s%100===Math.floor(s%100)&&s%100>=11&&s%100<=19?c.Zero:r%10===1&&r%100!==11||2===o&&s%10===1&&s%100!==11||2!==o&&s%10===1?c.One:c.Other;case"mk":return 0===o&&i%10===1||s%10===1?c.One:c.Other;case"mt":return 1===r?c.One:0===r||r%100===Math.floor(r%100)&&r%100>=2&&r%100<=10?c.Few:r%100===Math.floor(r%100)&&r%100>=11&&r%100<=19?c.Many:c.Other;case"pl":return 1===i&&0===o?c.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?c.Few:0===o&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&i%10<=1||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=12&&i%100<=14?c.Many:c.Other;case"pt":return r===Math.floor(r)&&r>=0&&r<=2&&2!==r?c.One:c.Other;case"ro":return 1===i&&0===o?c.One:0!==o||0===r||1!==r&&r%100===Math.floor(r%100)&&r%100>=1&&r%100<=19?c.Few:c.Other;case"ru":case"uk":return 0===o&&i%10===1&&i%100!==11?c.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?c.Few:0===o&&i%10===0||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=14?c.Many:c.Other;case"shi":return 0===i||1===r?c.One:r===Math.floor(r)&&r>=2&&r<=10?c.Few:c.Other;case"si":return 0===r||1===r||0===i&&1===s?c.One:c.Other;case"sl":return 0===o&&i%100===1?c.One:0===o&&i%100===2?c.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||0!==o?c.Few:c.Other;case"tzm":return r===Math.floor(r)&&r>=0&&r<=1||r===Math.floor(r)&&r>=11&&r<=99?c.One:c.Other;default:return c.Other}}function _flattenArray(e,t){if(isPresent(e))for(var r=0;r<e.length;r++){var n=e[r];isArray(n)?_flattenArray(n,t):t.push(n)}return t}function isListLikeIterable(e){return!!isJsObject(e)&&(isArray(e)||!(e instanceof C)&&getSymbolIterator()in e)}function digitModifier(e){return function(t,r){var n=e(t,r);return 1==n.length?"0"+n:n}}function hourClockExtracter(e){return function(t,r){var n=e(t,r);return n.split(" ")[1]}}function hourExtracter(e){return function(t,r){var n=e(t,r);return n.split(" ")[0]}}function intlDateFormat(e,t,r){return new Intl.DateTimeFormat(t,r).format(e).replace(/[\u200e\u200f]/g,"")}function timeZoneGetter(e){var t={hour:"2-digit",hour12:!1,timeZoneName:e};return function(e,r){var n=intlDateFormat(e,r,t);return n?n.substring(3):""}}function hour12Modify(e,t){return e.hour12=t,e}function digitCondition(e,t){var r={};return r[e]=2==t?"2-digit":"numeric",r}function nameCondition(e,t){var r={};return r[e]=t<4?"short":"long",r}function combine(e){var t={};return e.forEach(function(e){Object.assign(t,e)}),t}function datePartGetterFactory(e){return function(t,r){return intlDateFormat(t,r,e)}}function dateFormatter(e,t,r){var n,i,o="",s=[];if(ee[e])return ee[e](t,r);if(re.has(e))s=re.get(e);else{for(Y.exec(e);e;)n=Y.exec(e),n?(s=concat(s,n,1),e=s.pop()):(s.push(e),e=null);re.set(e,s)}return s.forEach(function(e){i=te[e],o+=i?i(t,r):"''"===e?"'":e.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),o}function concat(e,t,r){return e.concat(ne.call(t,r))}function formatNumber(e,t,r,n,i,o,s){if(void 0===o&&(o=null),void 0===s&&(s=!1),isBlank(r))return null;if(r=isString(r)&&p.isNumeric(r)?+r:r,!isNumber(r))throw new G(e,r);var a,u,c;if(n!==E.Currency&&(a=1,u=0,c=3),isPresent(i)){var l=i.match(pe);if(null===l)throw new Error(i+" is not a valid digit info for number pipes");isPresent(l[1])&&(a=p.parseIntAutoRadix(l[1])),isPresent(l[3])&&(u=p.parseIntAutoRadix(l[3])),isPresent(l[5])&&(c=p.parseIntAutoRadix(l[5]))}return $.format(r,t,n,{minimumIntegerDigits:a,minimumFractionDigits:u,maximumFractionDigits:c,currency:o,currencyAsSymbol:s})}/**
	     * @license
	     * Copyright Google Inc. All Rights Reserved.
	     *
	     * Use of this source code is governed by an MIT-style license that can be
	     * found in the LICENSE file at https://angular.io/license
	     */
var n,i=function(){function PlatformLocation(){}return Object.defineProperty(PlatformLocation.prototype,"pathname",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(PlatformLocation.prototype,"search",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(PlatformLocation.prototype,"hash",{get:function(){return null},enumerable:!0,configurable:!0}),PlatformLocation}(),o=function(){function LocationStrategy(){}return LocationStrategy}(),s=new r.OpaqueToken("appBaseHref");n="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:e:window;var a=n,u=a.Date;a.assert=function(e){};var c,l=function(){function StringWrapper(){}return StringWrapper.fromCharCode=function(e){return String.fromCharCode(e)},StringWrapper.charCodeAt=function(e,t){return e.charCodeAt(t)},StringWrapper.split=function(e,t){return e.split(t)},StringWrapper.equals=function(e,t){return e===t},StringWrapper.stripLeft=function(e,t){if(e&&e.length){for(var r=0,n=0;n<e.length&&e[n]==t;n++)r++;e=e.substring(r)}return e},StringWrapper.stripRight=function(e,t){if(e&&e.length){for(var r=e.length,n=e.length-1;n>=0&&e[n]==t;n--)r--;e=e.substring(0,r)}return e},StringWrapper.replace=function(e,t,r){return e.replace(t,r)},StringWrapper.replaceAll=function(e,t,r){return e.replace(t,r)},StringWrapper.slice=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=null),e.slice(t,null===r?void 0:r)},StringWrapper.replaceAllMapped=function(e,t,r){return e.replace(t,function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return e.splice(-2,2),r(e)})},StringWrapper.contains=function(e,t){return e.indexOf(t)!=-1},StringWrapper.compare=function(e,t){return e<t?-1:e>t?1:0},StringWrapper}(),p=function(){function NumberWrapper(){}return NumberWrapper.toFixed=function(e,t){return e.toFixed(t)},NumberWrapper.equal=function(e,t){return e===t},NumberWrapper.parseIntAutoRadix=function(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t},NumberWrapper.parseInt=function(e,t){if(10==t){if(/^(\-|\+)?[0-9]+$/.test(e))return parseInt(e,t)}else if(16==t){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(e))return parseInt(e,t)}else{var r=parseInt(e,t);if(!isNaN(r))return r}throw new Error("Invalid integer literal when parsing "+e+" in base "+t)},Object.defineProperty(NumberWrapper,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),NumberWrapper.isNumeric=function(e){return!isNaN(e-parseFloat(e))},NumberWrapper.isNaN=function(e){return isNaN(e)},NumberWrapper.isInteger=function(e){return Number.isInteger(e)},NumberWrapper}(),h=function(){function Json(){}return Json.parse=function(e){return a.JSON.parse(e)},Json.stringify=function(e){return a.JSON.stringify(e,null,2)},Json}(),f=function(){function DateWrapper(){}return DateWrapper.create=function(e,t,r,n,i,o,s){return void 0===t&&(t=1),void 0===r&&(r=1),void 0===n&&(n=0),void 0===i&&(i=0),void 0===o&&(o=0),void 0===s&&(s=0),new u(e,t-1,r,n,i,o,s)},DateWrapper.fromISOString=function(e){return new u(e)},DateWrapper.fromMillis=function(e){return new u(e)},DateWrapper.toMillis=function(e){return e.getTime()},DateWrapper.now=function(){return new u},DateWrapper.toJson=function(e){return e.toJSON()},DateWrapper}(),d=null,m=function(){function Location(e){var t=this;this._subject=new r.EventEmitter,this._platformStrategy=e;var n=this._platformStrategy.getBaseHref();this._baseHref=Location.stripTrailingSlash(_stripIndexHtml(n)),this._platformStrategy.onPopState(function(e){t._subject.emit({url:t.path(!0),pop:!0,type:e.type})})}return Location.prototype.path=function(e){return void 0===e&&(e=!1),this.normalize(this._platformStrategy.path(e))},Location.prototype.isCurrentPathEqualTo=function(e,t){return void 0===t&&(t=""),this.path()==this.normalize(e+Location.normalizeQueryParams(t))},Location.prototype.normalize=function(e){return Location.stripTrailingSlash(_stripBaseHref(this._baseHref,_stripIndexHtml(e)))},Location.prototype.prepareExternalUrl=function(e){return e.length>0&&!e.startsWith("/")&&(e="/"+e),this._platformStrategy.prepareExternalUrl(e)},Location.prototype.go=function(e,t){void 0===t&&(t=""),this._platformStrategy.pushState(null,"",e,t)},Location.prototype.replaceState=function(e,t){void 0===t&&(t=""),this._platformStrategy.replaceState(null,"",e,t)},Location.prototype.forward=function(){this._platformStrategy.forward()},Location.prototype.back=function(){this._platformStrategy.back()},Location.prototype.subscribe=function(e,t,r){return void 0===t&&(t=null),void 0===r&&(r=null),this._subject.subscribe({next:e,error:t,complete:r})},Location.normalizeQueryParams=function(e){return e.length>0&&"?"!=e.substring(0,1)?"?"+e:e},Location.joinWithSlash=function(e,t){if(0==e.length)return t;if(0==t.length)return e;var r=0;return e.endsWith("/")&&r++,t.startsWith("/")&&r++,2==r?e+t.substring(1):1==r?e+t:e+"/"+t},Location.stripTrailingSlash=function(e){return/\/$/g.test(e)&&(e=e.substring(0,e.length-1)),e},Location.decorators=[{type:r.Injectable}],Location.ctorParameters=[{type:o}],Location}(),v=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},y=function(e){function HashLocationStrategy(t,r){e.call(this),this._platformLocation=t,this._baseHref="",isPresent(r)&&(this._baseHref=r)}return v(HashLocationStrategy,e),HashLocationStrategy.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},HashLocationStrategy.prototype.getBaseHref=function(){return this._baseHref},HashLocationStrategy.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.hash;return isPresent(t)||(t="#"),t.length>0?t.substring(1):t},HashLocationStrategy.prototype.prepareExternalUrl=function(e){var t=m.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t},HashLocationStrategy.prototype.pushState=function(e,t,r,n){var i=this.prepareExternalUrl(r+m.normalizeQueryParams(n));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)},HashLocationStrategy.prototype.replaceState=function(e,t,r,n){var i=this.prepareExternalUrl(r+m.normalizeQueryParams(n));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(e,t,i)},HashLocationStrategy.prototype.forward=function(){this._platformLocation.forward()},HashLocationStrategy.prototype.back=function(){this._platformLocation.back()},HashLocationStrategy.decorators=[{type:r.Injectable}],HashLocationStrategy.ctorParameters=[{type:i},{type:void 0,decorators:[{type:r.Optional},{type:r.Inject,args:[s]}]}],HashLocationStrategy}(o),b=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},g=function(e){function PathLocationStrategy(t,r){if(e.call(this),this._platformLocation=t,isBlank(r)&&(r=this._platformLocation.getBaseHrefFromDOM()),isBlank(r))throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=r}return b(PathLocationStrategy,e),PathLocationStrategy.prototype.onPopState=function(e){this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e)},PathLocationStrategy.prototype.getBaseHref=function(){return this._baseHref},PathLocationStrategy.prototype.prepareExternalUrl=function(e){return m.joinWithSlash(this._baseHref,e)},PathLocationStrategy.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.pathname+m.normalizeQueryParams(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?""+t+r:t},PathLocationStrategy.prototype.pushState=function(e,t,r,n){var i=this.prepareExternalUrl(r+m.normalizeQueryParams(n));this._platformLocation.pushState(e,t,i)},PathLocationStrategy.prototype.replaceState=function(e,t,r,n){var i=this.prepareExternalUrl(r+m.normalizeQueryParams(n));this._platformLocation.replaceState(e,t,i)},PathLocationStrategy.prototype.forward=function(){this._platformLocation.forward()},PathLocationStrategy.prototype.back=function(){this._platformLocation.back()},PathLocationStrategy.decorators=[{type:r.Injectable}],PathLocationStrategy.ctorParameters=[{type:i},{type:void 0,decorators:[{type:r.Optional},{type:r.Inject,args:[s]}]}],PathLocationStrategy}(o),_=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},S=function(){function NgLocalization(){}return NgLocalization}(),w=function(e){function NgLocaleLocalization(t){e.call(this),this._locale=t}return _(NgLocaleLocalization,e),NgLocaleLocalization.prototype.getPluralCategory=function(e){var t=getPluralCase(this._locale,e);switch(t){case c.Zero:return"zero";case c.One:return"one";case c.Two:return"two";case c.Few:return"few";case c.Many:return"many";default:return"other"}},NgLocaleLocalization.decorators=[{type:r.Injectable}],NgLocaleLocalization.ctorParameters=[{type:void 0,decorators:[{type:r.Inject,args:[r.LOCALE_ID]}]}],NgLocaleLocalization}(S);!function(e){e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other"}(c||(c={}));var E,C=a.Map,P=a.Set,T=(function(){try{if(1===new C([[1,2]]).size)return function(e){return new C(e)}}catch(e){}return function(e){for(var t=new C,r=0;r<e.length;r++){var n=e[r];t.set(n[0],n[1])}return t}}(),function(){try{if(new C(new C))return function(e){return new C(e)}}catch(e){}return function(e){var t=new C;return e.forEach(function(e,r){t.set(r,e)}),t}}(),function(){return(new C).keys().next?function(e){for(var t,r=e.keys();!(t=r.next()).done;)e.set(t.value,null)}:function(e){e.forEach(function(t,r){e.set(r,null)})}}(),function(){try{if((new C).values().next)return function(e,t){return t?Array.from(e.values()):Array.from(e.keys())}}catch(e){}return function(e,t){var r=x.createFixedSize(e.size),n=0;return e.forEach(function(e,i){r[n]=t?e:i,n++}),r}}(),function(){function StringMapWrapper(){}return StringMapWrapper.create=function(){return{}},StringMapWrapper.contains=function(e,t){return e.hasOwnProperty(t)},StringMapWrapper.get=function(e,t){return e.hasOwnProperty(t)?e[t]:void 0},StringMapWrapper.set=function(e,t,r){e[t]=r},StringMapWrapper.keys=function(e){return Object.keys(e)},StringMapWrapper.values=function(e){return Object.keys(e).map(function(t){return e[t]})},StringMapWrapper.isEmpty=function(e){for(var t in e)return!1;return!0},StringMapWrapper["delete"]=function(e,t){delete e[t]},StringMapWrapper.forEach=function(e,t){for(var r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];t(e[i],i)}},StringMapWrapper.merge=function(e,t){for(var r={},n=0,i=Object.keys(e);n<i.length;n++){var o=i[n];r[o]=e[o]}for(var s=0,a=Object.keys(t);s<a.length;s++){var o=a[s];r[o]=t[o]}return r},StringMapWrapper.equals=function(e,t){var r=Object.keys(e),n=Object.keys(t);if(r.length!=n.length)return!1;for(var i=0;i<r.length;i++){var o=r[i];if(e[o]!==t[o])return!1}return!0},StringMapWrapper}()),x=function(){function ListWrapper(){}return ListWrapper.createFixedSize=function(e){return new Array(e)},ListWrapper.createGrowableSize=function(e){return new Array(e)},ListWrapper.clone=function(e){return e.slice(0)},ListWrapper.forEachWithIndex=function(e,t){for(var r=0;r<e.length;r++)t(e[r],r)},ListWrapper.first=function(e){return e?e[0]:null},ListWrapper.last=function(e){return e&&0!=e.length?e[e.length-1]:null},ListWrapper.indexOf=function(e,t,r){return void 0===r&&(r=0),e.indexOf(t,r)},ListWrapper.contains=function(e,t){return e.indexOf(t)!==-1},ListWrapper.reversed=function(e){var t=ListWrapper.clone(e);return t.reverse()},ListWrapper.concat=function(e,t){return e.concat(t)},ListWrapper.insert=function(e,t,r){e.splice(t,0,r)},ListWrapper.removeAt=function(e,t){var r=e[t];return e.splice(t,1),r},ListWrapper.removeAll=function(e,t){for(var r=0;r<t.length;++r){var n=e.indexOf(t[r]);e.splice(n,1)}},ListWrapper.remove=function(e,t){var r=e.indexOf(t);return r>-1&&(e.splice(r,1),!0)},ListWrapper.clear=function(e){e.length=0},ListWrapper.isEmpty=function(e){return 0==e.length},ListWrapper.fill=function(e,t,r,n){void 0===r&&(r=0),void 0===n&&(n=null),e.fill(t,r,null===n?e.length:n)},ListWrapper.equals=function(e,t){if(e.length!=t.length)return!1;for(var r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0},ListWrapper.slice=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=null),e.slice(t,null===r?void 0:r)},ListWrapper.splice=function(e,t,r){return e.splice(t,r)},ListWrapper.sort=function(e,t){isPresent(t)?e.sort(t):e.sort()},ListWrapper.toString=function(e){return e.toString()},ListWrapper.toJSON=function(e){return JSON.stringify(e)},ListWrapper.maximum=function(e,t){if(0==e.length)return null;for(var r=null,n=-(1/0),i=0;i<e.length;i++){var o=e[i];if(!isBlank(o)){var s=t(o);s>n&&(r=o,n=s)}}return r},ListWrapper.flatten=function(e){var t=[];return _flattenArray(e,t),t},ListWrapper.addAll=function(e,t){for(var r=0;r<t.length;r++)e.push(t[r])},ListWrapper}(),A=(function(){var e=new P([1,2,3]);return 3===e.size?function(e){return new P(e)}:function(e){var t=new P(e);if(t.size!==e.length)for(var r=0;r<e.length;r++)t.add(e[r]);return t}}(),function(){function NgClass(e,t,r,n){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=r,this._renderer=n,this._initialClasses=[]}return Object.defineProperty(NgClass.prototype,"klass",{set:function(e){this._applyInitialClasses(!0),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(NgClass.prototype,"ngClass",{set:function(e){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(isListLikeIterable(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create(null):this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create(null))},enumerable:!0,configurable:!0}),NgClass.prototype.ngDoCheck=function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},NgClass.prototype._cleanupClasses=function(e){this._applyClasses(e,!0),this._applyInitialClasses(!1)},NgClass.prototype._applyKeyValueChanges=function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._toggleClass(e.key,e.currentValue)}),e.forEachRemovedItem(function(e){e.previousValue&&t._toggleClass(e.key,!1)})},NgClass.prototype._applyIterableChanges=function(e){var t=this;e.forEachAddedItem(function(e){return t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})},NgClass.prototype._applyInitialClasses=function(e){var t=this;this._initialClasses.forEach(function(r){return t._toggleClass(r,!e)})},NgClass.prototype._applyClasses=function(e,t){var r=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach(function(e){return r._toggleClass(e,!t)}):Object.keys(e).forEach(function(n){isPresent(e[n])&&r._toggleClass(n,!t)}))},NgClass.prototype._toggleClass=function(e,t){var r=this;e=e.trim(),e&&e.split(/\s+/g).forEach(function(e){r._renderer.setElementClass(r._ngEl.nativeElement,e,t)})},NgClass.decorators=[{type:r.Directive,args:[{selector:"[ngClass]"}]}],NgClass.ctorParameters=[{type:r.IterableDiffers},{type:r.KeyValueDiffers},{type:r.ElementRef},{type:r.Renderer}],NgClass.propDecorators={klass:[{type:r.Input,args:["class"]}],ngClass:[{type:r.Input}]},NgClass}()),O=function(){function NgForRow(e,t,r){this.$implicit=e,this.index=t,this.count=r}return Object.defineProperty(NgForRow.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(NgForRow.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(NgForRow.prototype,"even",{get:function(){return this.index%2===0},enumerable:!0,configurable:!0}),Object.defineProperty(NgForRow.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),NgForRow}(),I=function(){function NgFor(e,t,r,n){this._viewContainer=e,this._template=t,this._differs=r,this._cdr=n,this._differ=null}return Object.defineProperty(NgFor.prototype,"ngForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),NgFor.prototype.ngOnChanges=function(e){if("ngForOf"in e){var t=e.ngForOf.currentValue;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this._cdr,this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+getTypeNameForDebugging(t)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},NgFor.prototype.ngDoCheck=function(){if(this._differ){var e=this._differ.diff(this.ngForOf);e&&this._applyChanges(e)}},NgFor.prototype._applyChanges=function(e){var t=this,r=[];e.forEachOperation(function(e,n,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new O(null,null,null),i),s=new R(e,o);r.push(s)}else if(null==i)t._viewContainer.remove(n);else{var o=t._viewContainer.get(n);t._viewContainer.move(o,i);var s=new R(e,o);r.push(s)}});for(var n=0;n<r.length;n++)this._perViewChange(r[n].view,r[n].record);for(var n=0,i=this._viewContainer.length;n<i;n++){var o=this._viewContainer.get(n);o.context.index=n,o.context.count=i}e.forEachIdentityChange(function(e){var r=t._viewContainer.get(e.currentIndex);r.context.$implicit=e.item})},NgFor.prototype._perViewChange=function(e,t){e.context.$implicit=t.item},NgFor.decorators=[{type:r.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],NgFor.ctorParameters=[{type:r.ViewContainerRef},{type:r.TemplateRef},{type:r.IterableDiffers},{type:r.ChangeDetectorRef}],NgFor.propDecorators={ngForOf:[{type:r.Input}],ngForTrackBy:[{type:r.Input}],ngForTemplate:[{type:r.Input}]},NgFor}(),R=function(){function RecordViewTuple(e,t){this.record=e,this.view=t}return RecordViewTuple}(),M=function(){function NgIf(e,t){this._viewContainer=e,this._template=t,this._hasView=!1}return Object.defineProperty(NgIf.prototype,"ngIf",{set:function(e){e&&!this._hasView?(this._hasView=!0,this._viewContainer.createEmbeddedView(this._template)):!e&&this._hasView&&(this._hasView=!1,this._viewContainer.clear())},enumerable:!0,configurable:!0}),NgIf.decorators=[{type:r.Directive,args:[{selector:"[ngIf]"}]}],NgIf.ctorParameters=[{type:r.ViewContainerRef},{type:r.TemplateRef}],NgIf.propDecorators={ngIf:[{type:r.Input}]},NgIf}(),k=new Object,N=function(){function SwitchView(e,t){this._viewContainerRef=e,this._templateRef=t}return SwitchView.prototype.create=function(){this._viewContainerRef.createEmbeddedView(this._templateRef)},SwitchView.prototype.destroy=function(){this._viewContainerRef.clear()},SwitchView}(),D=function(){function NgSwitch(){this._useDefault=!1,this._valueViews=new Map,this._activeViews=[]}return Object.defineProperty(NgSwitch.prototype,"ngSwitch",{set:function(e){this._emptyAllActiveViews(),this._useDefault=!1;var t=this._valueViews.get(e);t||(this._useDefault=!0,t=this._valueViews.get(k)||null),this._activateViews(t),this._switchValue=e},enumerable:!0,configurable:!0}),NgSwitch.prototype._onCaseValueChanged=function(e,t,r){this._deregisterView(e,r),this._registerView(t,r),e===this._switchValue?(r.destroy(),x.remove(this._activeViews,r)):t===this._switchValue&&(this._useDefault&&(this._useDefault=!1,this._emptyAllActiveViews()),r.create(),this._activeViews.push(r)),0!==this._activeViews.length||this._useDefault||(this._useDefault=!0,this._activateViews(this._valueViews.get(k)))},NgSwitch.prototype._emptyAllActiveViews=function(){for(var e=this._activeViews,t=0;t<e.length;t++)e[t].destroy();this._activeViews=[]},NgSwitch.prototype._activateViews=function(e){if(e){for(var t=0;t<e.length;t++)e[t].create();this._activeViews=e}},NgSwitch.prototype._registerView=function(e,t){var r=this._valueViews.get(e);r||(r=[],this._valueViews.set(e,r)),r.push(t)},NgSwitch.prototype._deregisterView=function(e,t){if(e!==k){var r=this._valueViews.get(e);1==r.length?this._valueViews["delete"](e):x.remove(r,t)}},NgSwitch.decorators=[{type:r.Directive,args:[{selector:"[ngSwitch]"}]}],NgSwitch.ctorParameters=[],NgSwitch.propDecorators={ngSwitch:[{type:r.Input}]},NgSwitch}(),V=function(){function NgSwitchCase(e,t,r){this._value=k,this._switch=r,this._view=new N(e,t)}return Object.defineProperty(NgSwitchCase.prototype,"ngSwitchCase",{set:function(e){this._switch._onCaseValueChanged(this._value,e,this._view),this._value=e},enumerable:!0,configurable:!0}),NgSwitchCase.decorators=[{type:r.Directive,args:[{selector:"[ngSwitchCase]"}]}],NgSwitchCase.ctorParameters=[{type:r.ViewContainerRef},{type:r.TemplateRef},{type:D,decorators:[{type:r.Host}]}],NgSwitchCase.propDecorators={ngSwitchCase:[{type:r.Input}]},NgSwitchCase}(),j=function(){function NgSwitchDefault(e,t,r){r._registerView(k,new N(e,t))}return NgSwitchDefault.decorators=[{type:r.Directive,args:[{selector:"[ngSwitchDefault]"}]}],NgSwitchDefault.ctorParameters=[{type:r.ViewContainerRef},{type:r.TemplateRef},{type:D,decorators:[{type:r.Host}]}],NgSwitchDefault}(),L=function(){function NgPlural(e){this._localization=e,this._caseViews={}}return Object.defineProperty(NgPlural.prototype,"ngPlural",{set:function(e){this._switchValue=e,this._updateView()},enumerable:!0,configurable:!0}),NgPlural.prototype.addCase=function(e,t){this._caseViews[e]=t},NgPlural.prototype._updateView=function(){this._clearViews();var e=Object.keys(this._caseViews),t=getPluralCategory(this._switchValue,e,this._localization);this._activateView(this._caseViews[t])},NgPlural.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},NgPlural.prototype._activateView=function(e){e&&(this._activeView=e,this._activeView.create())},NgPlural.decorators=[{type:r.Directive,args:[{selector:"[ngPlural]"}]}],NgPlural.ctorParameters=[{type:S}],NgPlural.propDecorators={ngPlural:[{type:r.Input}]},NgPlural}(),F=function(){function NgPluralCase(e,t,r,n){this.value=e,n.addCase(e,new N(r,t))}return NgPluralCase.decorators=[{type:r.Directive,args:[{selector:"[ngPluralCase]"}]}],NgPluralCase.ctorParameters=[{type:void 0,decorators:[{type:r.Attribute,args:["ngPluralCase"]}]},{type:r.TemplateRef},{type:r.ViewContainerRef},{type:L,decorators:[{type:r.Host}]}],NgPluralCase}(),B=function(){function NgStyle(e,t,r){this._differs=e,this._ngEl=t,this._renderer=r}return Object.defineProperty(NgStyle.prototype,"ngStyle",{set:function(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create(null))},enumerable:!0,configurable:!0}),NgStyle.prototype.ngDoCheck=function(){if(this._differ){var e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}},NgStyle.prototype._applyChanges=function(e){var t=this;e.forEachRemovedItem(function(e){return t._setStyle(e.key,null)}),e.forEachAddedItem(function(e){return t._setStyle(e.key,e.currentValue)}),e.forEachChangedItem(function(e){return t._setStyle(e.key,e.currentValue)})},NgStyle.prototype._setStyle=function(e,t){var r=e.split("."),n=r[0],i=r[1];t=null!==t&&void 0!==t&&i?""+t+i:t,this._renderer.setElementStyle(this._ngEl.nativeElement,n,t)},NgStyle.decorators=[{type:r.Directive,args:[{selector:"[ngStyle]"}]}],NgStyle.ctorParameters=[{type:r.KeyValueDiffers},{type:r.ElementRef},{type:r.Renderer}],NgStyle.propDecorators={ngStyle:[{type:r.Input}]},NgStyle}(),W=function(){function NgTemplateOutlet(e){this._viewContainerRef=e}return Object.defineProperty(NgTemplateOutlet.prototype,"ngOutletContext",{set:function(e){this._context=e},enumerable:!0,configurable:!0}),Object.defineProperty(NgTemplateOutlet.prototype,"ngTemplateOutlet",{set:function(e){this._templateRef=e},enumerable:!0,configurable:!0}),NgTemplateOutlet.prototype.ngOnChanges=function(){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this._templateRef&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this._templateRef,this._context))},NgTemplateOutlet.decorators=[{type:r.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],NgTemplateOutlet.ctorParameters=[{type:r.ViewContainerRef}],NgTemplateOutlet.propDecorators={ngOutletContext:[{type:r.Input}],ngTemplateOutlet:[{type:r.Input}]},NgTemplateOutlet}(),U=[A,I,M,W,B,D,V,j,L,F],z=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},H=function(e){function BaseError(t){var r=e.call(this,t);this._nativeError=r}return z(BaseError,e),Object.defineProperty(BaseError.prototype,"message",{get:function(){return this._nativeError.message},set:function(e){this._nativeError.message=e},enumerable:!0,configurable:!0}),Object.defineProperty(BaseError.prototype,"name",{get:function(){return this._nativeError.name},enumerable:!0,configurable:!0}),Object.defineProperty(BaseError.prototype,"stack",{get:function(){return this._nativeError.stack},set:function(e){this._nativeError.stack=e},enumerable:!0,configurable:!0}),BaseError.prototype.toString=function(){return this._nativeError.toString()},BaseError}(Error),q=(function(e){function WrappedError(t,r){e.call(this,t+" caused by: "+(r instanceof Error?r.message:r)),this.originalError=r}return z(WrappedError,e),Object.defineProperty(WrappedError.prototype,"stack",{get:function(){return(this.originalError instanceof Error?this.originalError:this._nativeError).stack},enumerable:!0,configurable:!0}),WrappedError}(H),this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),G=function(e){function InvalidPipeArgumentError(t,r){e.call(this,"Invalid argument '"+r+"' for pipe '"+stringify(t)+"'")}return q(InvalidPipeArgumentError,e),InvalidPipeArgumentError}(H),K=function(){function ObservableStrategy(){}return ObservableStrategy.prototype.createSubscription=function(e,t){return e.subscribe({next:t,error:function(e){throw e}})},ObservableStrategy.prototype.dispose=function(e){e.unsubscribe()},ObservableStrategy.prototype.onDestroy=function(e){e.unsubscribe()},ObservableStrategy}(),Q=function(){function PromiseStrategy(){}return PromiseStrategy.prototype.createSubscription=function(e,t){return e.then(t,function(e){throw e})},PromiseStrategy.prototype.dispose=function(e){},PromiseStrategy.prototype.onDestroy=function(e){},PromiseStrategy}(),X=new Q,J=new K,Z=function(){function AsyncPipe(e){this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null,this._ref=e}return AsyncPipe.prototype.ngOnDestroy=function(){isPresent(this._subscription)&&this._dispose()},AsyncPipe.prototype.transform=function(e){return isBlank(this._obj)?(isPresent(e)&&this._subscribe(e),this._latestReturnedValue=this._latestValue,this._latestValue):e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,r.WrappedValue.wrap(this._latestValue))},AsyncPipe.prototype._subscribe=function(e){var t=this;this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,function(r){return t._updateLatestValue(e,r)})},AsyncPipe.prototype._selectStrategy=function(e){if(isPromise(e))return X;if(e.subscribe)return J;throw new G(AsyncPipe,e)},AsyncPipe.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},AsyncPipe.prototype._updateLatestValue=function(e,t){e===this._obj&&(this._latestValue=t,this._ref.markForCheck())},AsyncPipe.decorators=[{type:r.Pipe,args:[{name:"async",pure:!1}]}],AsyncPipe.ctorParameters=[{type:r.ChangeDetectorRef}],AsyncPipe}();!function(e){e[e.Decimal=0]="Decimal",e[e.Percent=1]="Percent",e[e.Currency=2]="Currency"}(E||(E={}));var $=function(){function NumberFormatter(){}return NumberFormatter.format=function(e,t,r,n){var i=void 0===n?{}:n,o=i.minimumIntegerDigits,s=i.minimumFractionDigits,a=i.maximumFractionDigits,u=i.currency,c=i.currencyAsSymbol,l=void 0!==c&&c,p={minimumIntegerDigits:o,minimumFractionDigits:s,maximumFractionDigits:a,style:E[r].toLowerCase()};return r==E.Currency&&(p.currency=u,p.currencyDisplay=l?"symbol":"code"),new Intl.NumberFormat(t,p).format(e)},NumberFormatter}(),Y=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,ee={yMMMdjms:datePartGetterFactory(combine([digitCondition("year",1),nameCondition("month",3),digitCondition("day",1),digitCondition("hour",1),digitCondition("minute",1),digitCondition("second",1)])),yMdjm:datePartGetterFactory(combine([digitCondition("year",1),digitCondition("month",1),digitCondition("day",1),digitCondition("hour",1),digitCondition("minute",1)])),yMMMMEEEEd:datePartGetterFactory(combine([digitCondition("year",1),nameCondition("month",4),nameCondition("weekday",4),digitCondition("day",1)])),yMMMMd:datePartGetterFactory(combine([digitCondition("year",1),nameCondition("month",4),digitCondition("day",1)])),yMMMd:datePartGetterFactory(combine([digitCondition("year",1),nameCondition("month",3),digitCondition("day",1)])),yMd:datePartGetterFactory(combine([digitCondition("year",1),digitCondition("month",1),digitCondition("day",1)])),jms:datePartGetterFactory(combine([digitCondition("hour",1),digitCondition("second",1),digitCondition("minute",1)])),jm:datePartGetterFactory(combine([digitCondition("hour",1),digitCondition("minute",1)]))},te={yyyy:datePartGetterFactory(digitCondition("year",4)),yy:datePartGetterFactory(digitCondition("year",2)),y:datePartGetterFactory(digitCondition("year",1)),MMMM:datePartGetterFactory(nameCondition("month",4)),MMM:datePartGetterFactory(nameCondition("month",3)),MM:datePartGetterFactory(digitCondition("month",2)),M:datePartGetterFactory(digitCondition("month",1)),LLLL:datePartGetterFactory(nameCondition("month",4)),dd:datePartGetterFactory(digitCondition("day",2)),d:datePartGetterFactory(digitCondition("day",1)),HH:digitModifier(hourExtracter(datePartGetterFactory(hour12Modify(digitCondition("hour",2),!1)))),H:hourExtracter(datePartGetterFactory(hour12Modify(digitCondition("hour",1),!1))),hh:digitModifier(hourExtracter(datePartGetterFactory(hour12Modify(digitCondition("hour",2),!0)))),h:hourExtracter(datePartGetterFactory(hour12Modify(digitCondition("hour",1),!0))),jj:datePartGetterFactory(digitCondition("hour",2)),j:datePartGetterFactory(digitCondition("hour",1)),mm:digitModifier(datePartGetterFactory(digitCondition("minute",2))),m:datePartGetterFactory(digitCondition("minute",1)),ss:digitModifier(datePartGetterFactory(digitCondition("second",2))),s:datePartGetterFactory(digitCondition("second",1)),sss:datePartGetterFactory(digitCondition("second",3)),EEEE:datePartGetterFactory(nameCondition("weekday",4)),EEE:datePartGetterFactory(nameCondition("weekday",3)),EE:datePartGetterFactory(nameCondition("weekday",2)),E:datePartGetterFactory(nameCondition("weekday",1)),a:hourClockExtracter(datePartGetterFactory(hour12Modify(digitCondition("hour",1),!0))),Z:timeZoneGetter("short"),z:timeZoneGetter("long"),ww:datePartGetterFactory({}),w:datePartGetterFactory({}),G:datePartGetterFactory(nameCondition("era",1)),GG:datePartGetterFactory(nameCondition("era",2)),GGG:datePartGetterFactory(nameCondition("era",3)),GGGG:datePartGetterFactory(nameCondition("era",4))},re=new Map,ne=[].slice,ie=function(){function DateFormatter(){}return DateFormatter.format=function(e,t,r){
return dateFormatter(r,e,t)},DateFormatter}(),oe=function(){function DatePipe(e){this._locale=e}return DatePipe.prototype.transform=function(e,t){if(void 0===t&&(t="mediumDate"),isBlank(e))return null;if(!this.supports(e))throw new G(DatePipe,e);return p.isNumeric(e)?e=f.fromMillis(parseFloat(e)):isString(e)&&(e=f.fromISOString(e)),T.contains(DatePipe._ALIASES,t)&&(t=T.get(DatePipe._ALIASES,t)),ie.format(e,this._locale,t)},DatePipe.prototype.supports=function(e){return!(!isDate(e)&&!p.isNumeric(e))||!(!isString(e)||!isDate(f.fromISOString(e)))},DatePipe._ALIASES={medium:"yMMMdjms","short":"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},DatePipe.decorators=[{type:r.Pipe,args:[{name:"date",pure:!0}]}],DatePipe.ctorParameters=[{type:void 0,decorators:[{type:r.Inject,args:[r.LOCALE_ID]}]}],DatePipe}(),se=/#/g,ae=function(){function I18nPluralPipe(e){this._localization=e}return I18nPluralPipe.prototype.transform=function(e,t){if(isBlank(e))return"";if(!isStringMap(t))throw new G(I18nPluralPipe,t);var r=getPluralCategory(e,Object.keys(t),this._localization);return l.replaceAll(t[r],se,e.toString())},I18nPluralPipe.decorators=[{type:r.Pipe,args:[{name:"i18nPlural",pure:!0}]}],I18nPluralPipe.ctorParameters=[{type:S}],I18nPluralPipe}(),ue=function(){function I18nSelectPipe(){}return I18nSelectPipe.prototype.transform=function(e,t){if(isBlank(e))return"";if(!isStringMap(t))throw new G(I18nSelectPipe,t);return t.hasOwnProperty(e)?t[e]:""},I18nSelectPipe.decorators=[{type:r.Pipe,args:[{name:"i18nSelect",pure:!0}]}],I18nSelectPipe.ctorParameters=[],I18nSelectPipe}(),ce=function(){function JsonPipe(){}return JsonPipe.prototype.transform=function(e){return h.stringify(e)},JsonPipe.decorators=[{type:r.Pipe,args:[{name:"json",pure:!1}]}],JsonPipe.ctorParameters=[],JsonPipe}(),le=function(){function LowerCasePipe(){}return LowerCasePipe.prototype.transform=function(e){if(isBlank(e))return e;if(!isString(e))throw new G(LowerCasePipe,e);return e.toLowerCase()},LowerCasePipe.decorators=[{type:r.Pipe,args:[{name:"lowercase"}]}],LowerCasePipe.ctorParameters=[],LowerCasePipe}(),pe=/^(\d+)?\.((\d+)(\-(\d+))?)?$/,he=function(){function DecimalPipe(e){this._locale=e}return DecimalPipe.prototype.transform=function(e,t){return void 0===t&&(t=null),formatNumber(DecimalPipe,this._locale,e,E.Decimal,t)},DecimalPipe.decorators=[{type:r.Pipe,args:[{name:"number"}]}],DecimalPipe.ctorParameters=[{type:void 0,decorators:[{type:r.Inject,args:[r.LOCALE_ID]}]}],DecimalPipe}(),fe=function(){function PercentPipe(e){this._locale=e}return PercentPipe.prototype.transform=function(e,t){return void 0===t&&(t=null),formatNumber(PercentPipe,this._locale,e,E.Percent,t)},PercentPipe.decorators=[{type:r.Pipe,args:[{name:"percent"}]}],PercentPipe.ctorParameters=[{type:void 0,decorators:[{type:r.Inject,args:[r.LOCALE_ID]}]}],PercentPipe}(),de=function(){function CurrencyPipe(e){this._locale=e}return CurrencyPipe.prototype.transform=function(e,t,r,n){return void 0===t&&(t="USD"),void 0===r&&(r=!1),void 0===n&&(n=null),formatNumber(CurrencyPipe,this._locale,e,E.Currency,n,t,r)},CurrencyPipe.decorators=[{type:r.Pipe,args:[{name:"currency"}]}],CurrencyPipe.ctorParameters=[{type:void 0,decorators:[{type:r.Inject,args:[r.LOCALE_ID]}]}],CurrencyPipe}(),me=function(){function SlicePipe(){}return SlicePipe.prototype.transform=function(e,t,r){if(void 0===r&&(r=null),isBlank(e))return e;if(!this.supports(e))throw new G(SlicePipe,e);return isString(e)?l.slice(e,t,r):x.slice(e,t,r)},SlicePipe.prototype.supports=function(e){return isString(e)||isArray(e)},SlicePipe.decorators=[{type:r.Pipe,args:[{name:"slice",pure:!1}]}],SlicePipe.ctorParameters=[],SlicePipe}(),ve=function(){function UpperCasePipe(){}return UpperCasePipe.prototype.transform=function(e){if(isBlank(e))return e;if(!isString(e))throw new G(UpperCasePipe,e);return e.toUpperCase()},UpperCasePipe.decorators=[{type:r.Pipe,args:[{name:"uppercase"}]}],UpperCasePipe.ctorParameters=[],UpperCasePipe}(),ye=[Z,ve,le,ce,me,he,fe,de,oe,ae,ue],be=function(){function CommonModule(){}return CommonModule.decorators=[{type:r.NgModule,args:[{declarations:[U,ye],exports:[U,ye],providers:[{provide:S,useClass:w}]}]}],CommonModule.ctorParameters=[],CommonModule}();t.NgLocalization=S,t.CommonModule=be,t.NgClass=A,t.NgFor=I,t.NgIf=M,t.NgPlural=L,t.NgPluralCase=F,t.NgStyle=B,t.NgSwitch=D,t.NgSwitchCase=V,t.NgSwitchDefault=j,t.NgTemplateOutlet=W,t.AsyncPipe=Z,t.DatePipe=oe,t.I18nPluralPipe=ae,t.I18nSelectPipe=ue,t.JsonPipe=ce,t.LowerCasePipe=le,t.CurrencyPipe=de,t.DecimalPipe=he,t.PercentPipe=fe,t.SlicePipe=me,t.UpperCasePipe=ve,t.PlatformLocation=i,t.LocationStrategy=o,t.APP_BASE_HREF=s,t.HashLocationStrategy=y,t.PathLocationStrategy=g,t.Location=m})}).call(t,function(){return this}())},,function(e,t,r){(function(e){/**
	 * @license Angular v2.0.0
	 * (c) 2010-2016 Google, Inc. https://angular.io/
	 * License: MIT
	 */
!function(e,n){n(t,r(3),r(5),r(21))}(this,function(t,r,n,i){"use strict";function isPresent(e){return void 0!==e&&null!==e}function isBlank(e){return void 0===e||null===e}function isString(e){return"string"==typeof e}function isArray(e){return Array.isArray(e)}function isJsObject(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function getSymbolIterator(){if(isBlank(l))if(isPresent(o.Symbol)&&isPresent(Symbol.iterator))l=Symbol.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),t=0;t<e.length;++t){var r=e[t];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(l=r)}return l}function _flattenArray(e,t){if(isPresent(e))for(var r=0;r<e.length;r++){var n=e[r];isArray(n)?_flattenArray(n,t):t.push(n)}return t}function isListLikeIterable(e){return!!isJsObject(e)&&(isArray(e)||!(e instanceof h)&&getSymbolIterator()in e)}function iterateListLike(e,t){if(isArray(e))for(var r=0;r<e.length;r++)t(e[r]);else for(var n,i=e[getSymbolIterator()]();!(n=i.next()).done;)t(n.value)}function normalize(e){return e.toLowerCase()}function normalizeMethodName(e){if(isString(e)){var r=e;if(e=e.replace(/(\w)(\w*)/g,function(e,t,r){return t.toUpperCase()+r.toLowerCase()}),e=t.RequestMethod[e],"number"!=typeof e)throw new Error('Invalid request method. The method "'+r+'" is not supported.')}return e}function getResponseURL(e){return"responseURL"in e?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):void 0}function stringToArrayBuffer(e){for(var t=new Uint16Array(e.length),r=0,n=e.length;r<n;r++)t[r]=e.charCodeAt(r);return t.buffer}function paramParser(e){void 0===e&&(e="");var t=new h;if(e.length>0){var r=e.split("&");r.forEach(function(e){var r=e.indexOf("="),n=r==-1?[e,""]:[e.slice(0,r),e.slice(r+1)],i=n[0],o=n[1],s=t.get(i)||[];s.push(o),t.set(i,s)})}return t}function standardEncoding(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function _getJsonpConnections(){return null===V&&(V=a[D]={}),V}function httpRequest(e,t){return e.createConnection(t).response}function mergeOptions(e,t,r,n){var i=e;return isPresent(t)?i.merge(new J({method:t.method||r,url:t.url||n,search:t.search,headers:t.headers,body:t.body,withCredentials:t.withCredentials,responseType:t.responseType})):isPresent(r)?i.merge(new J({method:r,url:n})):i.merge(new J({url:n}))}function _createDefaultCookieXSRFStrategy(){return new K}function httpFactory(e,t){return new se(e,t)}function jsonpFactory(e,t){return new ae(e,t)}var o,s=function(){function BrowserXhr(){}return BrowserXhr.prototype.build=function(){return new XMLHttpRequest},BrowserXhr.decorators=[{type:r.Injectable}],BrowserXhr.ctorParameters=[],BrowserXhr}();o="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:e:window;var a=o;a.assert=function(e){};var u=function(){function StringWrapper(){}return StringWrapper.fromCharCode=function(e){return String.fromCharCode(e)},StringWrapper.charCodeAt=function(e,t){return e.charCodeAt(t)},StringWrapper.split=function(e,t){return e.split(t)},StringWrapper.equals=function(e,t){return e===t},StringWrapper.stripLeft=function(e,t){if(e&&e.length){for(var r=0,n=0;n<e.length&&e[n]==t;n++)r++;e=e.substring(r)}return e},StringWrapper.stripRight=function(e,t){if(e&&e.length){for(var r=e.length,n=e.length-1;n>=0&&e[n]==t;n--)r--;e=e.substring(0,r)}return e},StringWrapper.replace=function(e,t,r){return e.replace(t,r)},StringWrapper.replaceAll=function(e,t,r){return e.replace(t,r)},StringWrapper.slice=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=null),e.slice(t,null===r?void 0:r)},StringWrapper.replaceAllMapped=function(e,t,r){return e.replace(t,function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return e.splice(-2,2),r(e)})},StringWrapper.contains=function(e,t){return e.indexOf(t)!=-1},StringWrapper.compare=function(e,t){return e<t?-1:e>t?1:0},StringWrapper}(),c=(function(){function NumberWrapper(){}return NumberWrapper.toFixed=function(e,t){return e.toFixed(t)},NumberWrapper.equal=function(e,t){return e===t},NumberWrapper.parseIntAutoRadix=function(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t},NumberWrapper.parseInt=function(e,t){if(10==t){if(/^(\-|\+)?[0-9]+$/.test(e))return parseInt(e,t)}else if(16==t){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(e))return parseInt(e,t)}else{var r=parseInt(e,t);if(!isNaN(r))return r}throw new Error("Invalid integer literal when parsing "+e+" in base "+t)},Object.defineProperty(NumberWrapper,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),NumberWrapper.isNumeric=function(e){return!isNaN(e-parseFloat(e))},NumberWrapper.isNaN=function(e){return isNaN(e)},NumberWrapper.isInteger=function(e){return Number.isInteger(e)},NumberWrapper}(),function(){function Json(){}return Json.parse=function(e){return a.JSON.parse(e)},Json.stringify=function(e){return a.JSON.stringify(e,null,2)},Json}()),l=null;/**
	     * @license
	     * Copyright Google Inc. All Rights Reserved.
	     *
	     * Use of this source code is governed by an MIT-style license that can be
	     * found in the LICENSE file at https://angular.io/license
	     */
t.RequestMethod,function(e){e[e.Get=0]="Get",e[e.Post=1]="Post",e[e.Put=2]="Put",e[e.Delete=3]="Delete",e[e.Options=4]="Options",e[e.Head=5]="Head",e[e.Patch=6]="Patch"}(t.RequestMethod||(t.RequestMethod={})),t.ReadyState,function(e){e[e.Unsent=0]="Unsent",e[e.Open=1]="Open",e[e.HeadersReceived=2]="HeadersReceived",e[e.Loading=3]="Loading",e[e.Done=4]="Done",e[e.Cancelled=5]="Cancelled"}(t.ReadyState||(t.ReadyState={})),t.ResponseType,function(e){e[e.Basic=0]="Basic",e[e.Cors=1]="Cors",e[e.Default=2]="Default",e[e.Error=3]="Error",e[e.Opaque=4]="Opaque"}(t.ResponseType||(t.ResponseType={}));var p;!function(e){e[e.NONE=0]="NONE",e[e.JSON=1]="JSON",e[e.FORM=2]="FORM",e[e.FORM_DATA=3]="FORM_DATA",e[e.TEXT=4]="TEXT",e[e.BLOB=5]="BLOB",e[e.ARRAY_BUFFER=6]="ARRAY_BUFFER"}(p||(p={})),t.ResponseContentType,function(e){e[e.Text=0]="Text",e[e.Json=1]="Json",e[e.ArrayBuffer=2]="ArrayBuffer",e[e.Blob=3]="Blob"}(t.ResponseContentType||(t.ResponseContentType={}));var h=a.Map,f=a.Set,d=function(){try{if(1===new h([[1,2]]).size)return function(e){return new h(e)}}catch(e){}return function(e){for(var t=new h,r=0;r<e.length;r++){var n=e[r];t.set(n[0],n[1])}return t}}(),m=function(){try{if(new h(new h))return function(e){return new h(e)}}catch(e){}return function(e){var t=new h;return e.forEach(function(e,r){t.set(r,e)}),t}}(),v=function(){return(new h).keys().next?function(e){for(var t,r=e.keys();!(t=r.next()).done;)e.set(t.value,null)}:function(e){e.forEach(function(t,r){e.set(r,null)})}}(),y=function(){try{if((new h).values().next)return function(e,t){return t?Array.from(e.values()):Array.from(e.keys())}}catch(e){}return function(e,t){var r=_.createFixedSize(e.size),n=0;return e.forEach(function(e,i){r[n]=t?e:i,n++}),r}}(),b=function(){function MapWrapper(){}return MapWrapper.clone=function(e){return m(e)},MapWrapper.createFromStringMap=function(e){var t=new h;for(var r in e)t.set(r,e[r]);return t},MapWrapper.toStringMap=function(e){var t={};return e.forEach(function(e,r){return t[r]=e}),t},MapWrapper.createFromPairs=function(e){return d(e)},MapWrapper.clearValues=function(e){v(e)},MapWrapper.iterable=function(e){return e},MapWrapper.keys=function(e){return y(e,!1)},MapWrapper.values=function(e){return y(e,!0)},MapWrapper}(),g=function(){function StringMapWrapper(){}return StringMapWrapper.create=function(){return{}},StringMapWrapper.contains=function(e,t){return e.hasOwnProperty(t)},StringMapWrapper.get=function(e,t){return e.hasOwnProperty(t)?e[t]:void 0},StringMapWrapper.set=function(e,t,r){e[t]=r},StringMapWrapper.keys=function(e){return Object.keys(e)},StringMapWrapper.values=function(e){return Object.keys(e).map(function(t){return e[t]})},StringMapWrapper.isEmpty=function(e){for(var t in e)return!1;return!0},StringMapWrapper["delete"]=function(e,t){delete e[t]},StringMapWrapper.forEach=function(e,t){for(var r=0,n=Object.keys(e);r<n.length;r++){var i=n[r];t(e[i],i)}},StringMapWrapper.merge=function(e,t){for(var r={},n=0,i=Object.keys(e);n<i.length;n++){var o=i[n];r[o]=e[o]}for(var s=0,a=Object.keys(t);s<a.length;s++){var o=a[s];r[o]=t[o]}return r},StringMapWrapper.equals=function(e,t){var r=Object.keys(e),n=Object.keys(t);if(r.length!=n.length)return!1;for(var i=0;i<r.length;i++){var o=r[i];if(e[o]!==t[o])return!1}return!0},StringMapWrapper}(),_=function(){function ListWrapper(){}return ListWrapper.createFixedSize=function(e){return new Array(e)},ListWrapper.createGrowableSize=function(e){return new Array(e)},ListWrapper.clone=function(e){return e.slice(0)},ListWrapper.forEachWithIndex=function(e,t){for(var r=0;r<e.length;r++)t(e[r],r)},ListWrapper.first=function(e){return e?e[0]:null},ListWrapper.last=function(e){return e&&0!=e.length?e[e.length-1]:null},ListWrapper.indexOf=function(e,t,r){return void 0===r&&(r=0),e.indexOf(t,r)},ListWrapper.contains=function(e,t){return e.indexOf(t)!==-1},ListWrapper.reversed=function(e){var t=ListWrapper.clone(e);return t.reverse()},ListWrapper.concat=function(e,t){return e.concat(t)},ListWrapper.insert=function(e,t,r){e.splice(t,0,r)},ListWrapper.removeAt=function(e,t){var r=e[t];return e.splice(t,1),r},ListWrapper.removeAll=function(e,t){for(var r=0;r<t.length;++r){var n=e.indexOf(t[r]);e.splice(n,1)}},ListWrapper.remove=function(e,t){var r=e.indexOf(t);return r>-1&&(e.splice(r,1),!0)},ListWrapper.clear=function(e){e.length=0},ListWrapper.isEmpty=function(e){return 0==e.length},ListWrapper.fill=function(e,t,r,n){void 0===r&&(r=0),void 0===n&&(n=null),e.fill(t,r,null===n?e.length:n)},ListWrapper.equals=function(e,t){if(e.length!=t.length)return!1;for(var r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0},ListWrapper.slice=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=null),e.slice(t,null===r?void 0:r)},ListWrapper.splice=function(e,t,r){return e.splice(t,r)},ListWrapper.sort=function(e,t){isPresent(t)?e.sort(t):e.sort()},ListWrapper.toString=function(e){return e.toString()},ListWrapper.toJSON=function(e){return JSON.stringify(e)},ListWrapper.maximum=function(e,t){if(0==e.length)return null;for(var r=null,n=-(1/0),i=0;i<e.length;i++){var o=e[i];if(!isBlank(o)){var s=t(o);s>n&&(r=o,n=s)}}return r},ListWrapper.flatten=function(e){var t=[];return _flattenArray(e,t),t},ListWrapper.addAll=function(e,t){for(var r=0;r<t.length;r++)e.push(t[r])},ListWrapper}(),S=(function(){var e=new f([1,2,3]);return 3===e.size?function(e){return new f(e)}:function(e){var t=new f(e);if(t.size!==e.length)for(var r=0;r<e.length;r++)t.add(e[r]);return t}}(),function(){function Headers(e){var t=this;return e instanceof Headers?void(this._headersMap=new h(e._headersMap)):(this._headersMap=new h,void(isBlank(e)||g.forEach(e,function(e,r){t._headersMap.set(normalize(r),isListLikeIterable(e)?e:[e])})))}return Headers.fromResponseHeaderString=function(e){var t=new Headers;return e.split("\n").forEach(function(e){var r=e.indexOf(":");if(r>0){var n=e.substring(0,r),i=e.substring(r+1).trim();t.set(n,i)}}),t},Headers.prototype.append=function(e,t){e=normalize(e);var r=this._headersMap.get(e),n=isListLikeIterable(r)?r:[];n.push(t),this._headersMap.set(e,n)},Headers.prototype["delete"]=function(e){this._headersMap["delete"](normalize(e))},Headers.prototype.forEach=function(e){this._headersMap.forEach(e)},Headers.prototype.get=function(e){return _.first(this._headersMap.get(normalize(e)))},Headers.prototype.has=function(e){return this._headersMap.has(normalize(e))},Headers.prototype.keys=function(){return b.keys(this._headersMap)},Headers.prototype.set=function(e,t){var r=[];if(isListLikeIterable(t)){var n=t.join(",");r.push(n)}else r.push(t);this._headersMap.set(normalize(e),r)},Headers.prototype.values=function(){return b.values(this._headersMap)},Headers.prototype.toJSON=function(){var e={};return this._headersMap.forEach(function(t,r){var n=[];iterateListLike(t,function(e){return n=_.concat(n,e.split(","))}),e[normalize(r)]=n}),e},Headers.prototype.getAll=function(e){var t=this._headersMap.get(normalize(e));return isListLikeIterable(t)?t:[]},Headers.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},Headers}()),w=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},E=function(){function ResponseOptions(e){var t=void 0===e?{}:e,r=t.body,n=t.status,i=t.headers,o=t.statusText,s=t.type,a=t.url;this.body=isPresent(r)?r:null,this.status=isPresent(n)?n:null,this.headers=isPresent(i)?i:null,this.statusText=isPresent(o)?o:null,this.type=isPresent(s)?s:null,this.url=isPresent(a)?a:null}return ResponseOptions.prototype.merge=function(e){return new ResponseOptions({body:isPresent(e)&&isPresent(e.body)?e.body:this.body,status:isPresent(e)&&isPresent(e.status)?e.status:this.status,headers:isPresent(e)&&isPresent(e.headers)?e.headers:this.headers,statusText:isPresent(e)&&isPresent(e.statusText)?e.statusText:this.statusText,type:isPresent(e)&&isPresent(e.type)?e.type:this.type,url:isPresent(e)&&isPresent(e.url)?e.url:this.url})},ResponseOptions}(),C=function(e){function BaseResponseOptions(){e.call(this,{status:200,statusText:"Ok",type:t.ResponseType.Default,headers:new S})}return w(BaseResponseOptions,e),BaseResponseOptions.decorators=[{type:r.Injectable}],BaseResponseOptions.ctorParameters=[],BaseResponseOptions}(E),P=function(){function ConnectionBackend(){}return ConnectionBackend}(),T=function(){function Connection(){}return Connection}(),x=function(){function XSRFStrategy(){}return XSRFStrategy}(),A=function(e){return e>=200&&e<300},O=function(){function QueryEncoder(){}return QueryEncoder.prototype.encodeKey=function(e){return standardEncoding(e)},QueryEncoder.prototype.encodeValue=function(e){return standardEncoding(e)},QueryEncoder}(),I=function(){function URLSearchParams(e,t){void 0===e&&(e=""),void 0===t&&(t=new O),this.rawParams=e,this.queryEncoder=t,this.paramsMap=paramParser(e)}return URLSearchParams.prototype.clone=function(){var e=new URLSearchParams("",this.queryEncoder);return e.appendAll(this),e},URLSearchParams.prototype.has=function(e){return this.paramsMap.has(e)},URLSearchParams.prototype.get=function(e){var t=this.paramsMap.get(e);return isListLikeIterable(t)?_.first(t):null},URLSearchParams.prototype.getAll=function(e){var t=this.paramsMap.get(e);return isPresent(t)?t:[]},URLSearchParams.prototype.set=function(e,t){var r=this.paramsMap.get(e),n=isPresent(r)?r:[];_.clear(n),n.push(t),this.paramsMap.set(e,n)},URLSearchParams.prototype.setAll=function(e){var t=this;e.paramsMap.forEach(function(e,r){var n=t.paramsMap.get(r),i=isPresent(n)?n:[];_.clear(i),i.push(e[0]),t.paramsMap.set(r,i)})},URLSearchParams.prototype.append=function(e,t){var r=this.paramsMap.get(e),n=isPresent(r)?r:[];n.push(t),this.paramsMap.set(e,n)},URLSearchParams.prototype.appendAll=function(e){var t=this;e.paramsMap.forEach(function(e,r){for(var n=t.paramsMap.get(r),i=isPresent(n)?n:[],o=0;o<e.length;++o)i.push(e[o]);t.paramsMap.set(r,i)})},URLSearchParams.prototype.replaceAll=function(e){var t=this;e.paramsMap.forEach(function(e,r){var n=t.paramsMap.get(r),i=isPresent(n)?n:[];_.clear(i);for(var o=0;o<e.length;++o)i.push(e[o]);t.paramsMap.set(r,i)})},URLSearchParams.prototype.toString=function(){var e=this,t=[];return this.paramsMap.forEach(function(r,n){r.forEach(function(r){return t.push(e.queryEncoder.encodeKey(n)+"="+e.queryEncoder.encodeValue(r))})}),t.join("&")},URLSearchParams.prototype["delete"]=function(e){this.paramsMap["delete"](e)},URLSearchParams}(),R=function(){function Body(){}return Body.prototype.json=function(){return isString(this._body)?c.parse(this._body):this._body instanceof ArrayBuffer?c.parse(this.text()):this._body},Body.prototype.text=function(){return this._body instanceof I?this._body.toString():this._body instanceof ArrayBuffer?String.fromCharCode.apply(null,new Uint16Array(this._body)):null===this._body?"":isJsObject(this._body)?c.stringify(this._body):this._body.toString()},Body.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:stringToArrayBuffer(this.text())},Body.prototype.blob=function(){if(this._body instanceof Blob)return this._body;if(this._body instanceof ArrayBuffer)return new Blob([this._body]);throw new Error("The request body isn't either a blob or an array buffer")},Body}(),M=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},k=function(e){function Response(t){e.call(this),this._body=t.body,this.status=t.status,this.ok=this.status>=200&&this.status<=299,this.statusText=t.statusText,this.headers=t.headers,this.type=t.type,this.url=t.url}return M(Response,e),Response.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},Response}(R),N=0,D="__ng_jsonp__",V=null,j=function(){function BrowserJsonp(){}return BrowserJsonp.prototype.build=function(e){var t=document.createElement("script");return t.src=e,t},BrowserJsonp.prototype.nextRequestID=function(){return"__req"+N++},BrowserJsonp.prototype.requestCallback=function(e){return D+"."+e+".finished"},BrowserJsonp.prototype.exposeConnection=function(e,t){var r=_getJsonpConnections();r[e]=t},BrowserJsonp.prototype.removeConnection=function(e){var t=_getJsonpConnections();t[e]=null},BrowserJsonp.prototype.send=function(e){document.body.appendChild(e)},BrowserJsonp.prototype.cleanup=function(e){e.parentNode&&e.parentNode.removeChild(e)},BrowserJsonp.decorators=[{type:r.Injectable}],BrowserJsonp.ctorParameters=[],BrowserJsonp}(),L=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},F="JSONP injected script did not invoke callback.",B="JSONP requests must use GET request method.",W=function(){function JSONPConnection(){}return JSONPConnection}(),U=function(e){function JSONPConnection_(r,i,o){var s=this;if(e.call(this),this._dom=i,this.baseResponseOptions=o,this._finished=!1,r.method!==t.RequestMethod.Get)throw new TypeError(B);this.request=r,this.response=new n.Observable(function(e){s.readyState=t.ReadyState.Loading;var n=s._id=i.nextRequestID();i.exposeConnection(n,s);var a=i.requestCallback(s._id),c=r.url;c.indexOf("=JSONP_CALLBACK&")>-1?c=u.replace(c,"=JSONP_CALLBACK&","="+a+"&"):c.lastIndexOf("=JSONP_CALLBACK")===c.length-"=JSONP_CALLBACK".length&&(c=c.substring(0,c.length-"=JSONP_CALLBACK".length)+("="+a));var l=s._script=i.build(c),p=function(r){if(s.readyState!==t.ReadyState.Cancelled){if(s.readyState=t.ReadyState.Done,i.cleanup(l),!s._finished){var n=new E({body:F,type:t.ResponseType.Error,url:c});return isPresent(o)&&(n=o.merge(n)),void e.error(new k(n))}var a=new E({body:s._responseData,url:c});isPresent(s.baseResponseOptions)&&(a=s.baseResponseOptions.merge(a)),e.next(new k(a)),e.complete()}},h=function(r){if(s.readyState!==t.ReadyState.Cancelled){s.readyState=t.ReadyState.Done,i.cleanup(l);var n=new E({body:r.message,type:t.ResponseType.Error});isPresent(o)&&(n=o.merge(n)),e.error(new k(n))}};return l.addEventListener("load",p),l.addEventListener("error",h),i.send(l),function(){s.readyState=t.ReadyState.Cancelled,l.removeEventListener("load",p),l.removeEventListener("error",h),isPresent(l)&&s._dom.cleanup(l)}})}return L(JSONPConnection_,e),JSONPConnection_.prototype.finished=function(e){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==t.ReadyState.Cancelled&&(this._responseData=e)},JSONPConnection_}(W),z=function(e){function JSONPBackend(){e.apply(this,arguments)}return L(JSONPBackend,e),JSONPBackend}(P),H=function(e){function JSONPBackend_(t,r){e.call(this),this._browserJSONP=t,this._baseResponseOptions=r}return L(JSONPBackend_,e),JSONPBackend_.prototype.createConnection=function(e){return new U(e,this._browserJSONP,this._baseResponseOptions)},JSONPBackend_.decorators=[{type:r.Injectable}],JSONPBackend_.ctorParameters=[{type:j},{type:E}],JSONPBackend_}(z),q=/^\)\]\}',?\n/,G=function(){function XHRConnection(e,r,i){var o=this;this.request=e,this.response=new n.Observable(function(n){var s=r.build();s.open(t.RequestMethod[e.method].toUpperCase(),e.url),isPresent(e.withCredentials)&&(s.withCredentials=e.withCredentials);var a=function(){var e=isPresent(s.response)?s.response:s.responseText;isString(e)&&(e=e.replace(q,""));var t=S.fromResponseHeaderString(s.getAllResponseHeaders()),r=getResponseURL(s),o=1223===s.status?204:s.status;0===o&&(o=e?200:0);var a=s.statusText||"OK",u=new E({body:e,status:o,headers:t,statusText:a,url:r});isPresent(i)&&(u=i.merge(u));var c=new k(u);return c.ok=A(o),c.ok?(n.next(c),void n.complete()):void n.error(c)},u=function(e){var r=new E({body:e,type:t.ResponseType.Error,status:s.status,statusText:s.statusText});isPresent(i)&&(r=i.merge(r)),n.error(new k(r))};if(o.setDetectedContentType(e,s),isPresent(e.headers)&&e.headers.forEach(function(e,t){return s.setRequestHeader(t,e.join(","))}),isPresent(e.responseType)&&isPresent(s.responseType))switch(e.responseType){case t.ResponseContentType.ArrayBuffer:s.responseType="arraybuffer";break;case t.ResponseContentType.Json:s.responseType="json";break;case t.ResponseContentType.Text:s.responseType="text";break;case t.ResponseContentType.Blob:s.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return s.addEventListener("load",a),s.addEventListener("error",u),s.send(o.request.getBody()),function(){s.removeEventListener("load",a),s.removeEventListener("error",u),s.abort()}})}return XHRConnection.prototype.setDetectedContentType=function(e,t){if(!isPresent(e.headers)||!isPresent(e.headers.get("Content-Type")))switch(e.contentType){case p.NONE:break;case p.JSON:t.setRequestHeader("content-type","application/json");break;case p.FORM:t.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case p.TEXT:t.setRequestHeader("content-type","text/plain");break;case p.BLOB:var r=e.blob();r.type&&t.setRequestHeader("content-type",r.type)}},XHRConnection}(),K=function(){function CookieXSRFStrategy(e,t){void 0===e&&(e="XSRF-TOKEN"),void 0===t&&(t="X-XSRF-TOKEN"),this._cookieName=e,this._headerName=t}return CookieXSRFStrategy.prototype.configureRequest=function(e){var t=i.__platform_browser_private__.getDOM().getCookie(this._cookieName);t&&!e.headers.has(this._headerName)&&e.headers.set(this._headerName,t)},CookieXSRFStrategy}(),Q=function(){function XHRBackend(e,t,r){this._browserXHR=e,this._baseResponseOptions=t,this._xsrfStrategy=r}return XHRBackend.prototype.createConnection=function(e){return this._xsrfStrategy.configureRequest(e),new G(e,this._browserXHR,this._baseResponseOptions)},XHRBackend.decorators=[{type:r.Injectable}],XHRBackend.ctorParameters=[{type:s},{type:E},{type:x}],XHRBackend}(),X=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},J=function(){function RequestOptions(e){var t=void 0===e?{}:e,r=t.method,n=t.headers,i=t.body,o=t.url,s=t.search,a=t.withCredentials,u=t.responseType;this.method=isPresent(r)?normalizeMethodName(r):null,this.headers=isPresent(n)?n:null,this.body=isPresent(i)?i:null,this.url=isPresent(o)?o:null,this.search=isPresent(s)?isString(s)?new I(s):s:null,this.withCredentials=isPresent(a)?a:null,this.responseType=isPresent(u)?u:null}return RequestOptions.prototype.merge=function(e){return new RequestOptions({method:isPresent(e)&&isPresent(e.method)?e.method:this.method,headers:isPresent(e)&&isPresent(e.headers)?e.headers:this.headers,body:isPresent(e)&&isPresent(e.body)?e.body:this.body,url:isPresent(e)&&isPresent(e.url)?e.url:this.url,search:isPresent(e)&&isPresent(e.search)?isString(e.search)?new I(e.search):e.search.clone():this.search,withCredentials:isPresent(e)&&isPresent(e.withCredentials)?e.withCredentials:this.withCredentials,responseType:isPresent(e)&&isPresent(e.responseType)?e.responseType:this.responseType})},RequestOptions}(),Z=function(e){function BaseRequestOptions(){e.call(this,{method:t.RequestMethod.Get,headers:new S})}return X(BaseRequestOptions,e),BaseRequestOptions.decorators=[{type:r.Injectable}],BaseRequestOptions.ctorParameters=[],BaseRequestOptions}(J),$=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},Y=function(e){function Request(t){e.call(this);var r=t.url;if(this.url=t.url,isPresent(t.search)){var n=t.search.toString();if(n.length>0){var i="?";u.contains(this.url,"?")&&(i="&"==this.url[this.url.length-1]?"":"&"),this.url=r+i+n}}this._body=t.body,this.method=normalizeMethodName(t.method),this.headers=new S(t.headers),this.contentType=this.detectContentType(),this.withCredentials=t.withCredentials,this.responseType=t.responseType}return $(Request,e),Request.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return p.JSON;case"application/x-www-form-urlencoded":return p.FORM;case"multipart/form-data":return p.FORM_DATA;case"text/plain":case"text/html":return p.TEXT;case"application/octet-stream":return p.BLOB;default:return this.detectContentTypeFromBody()}},Request.prototype.detectContentTypeFromBody=function(){return null==this._body?p.NONE:this._body instanceof I?p.FORM:this._body instanceof re?p.FORM_DATA:this._body instanceof ne?p.BLOB:this._body instanceof ie?p.ARRAY_BUFFER:this._body&&"object"==typeof this._body?p.JSON:p.TEXT},Request.prototype.getBody=function(){switch(this.contentType){case p.JSON:return this.text();case p.FORM:return this.text();case p.FORM_DATA:return this._body;case p.TEXT:return this.text();case p.BLOB:return this.blob();case p.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},Request}(R),ee=function(){},te="object"==typeof window?window:ee,re=te.FormData||ee,ne=te.Blob||ee,ie=te.ArrayBuffer||ee,oe=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},se=function(){function Http(e,t){this._backend=e,this._defaultOptions=t}return Http.prototype.request=function(e,r){var n;if(isString(e))n=httpRequest(this._backend,new Y(mergeOptions(this._defaultOptions,r,t.RequestMethod.Get,e)));else{if(!(e instanceof Y))throw new Error("First argument must be a url string or Request instance.");n=httpRequest(this._backend,e)}return n},Http.prototype.get=function(e,r){return httpRequest(this._backend,new Y(mergeOptions(this._defaultOptions,r,t.RequestMethod.Get,e)))},Http.prototype.post=function(e,r,n){return httpRequest(this._backend,new Y(mergeOptions(this._defaultOptions.merge(new J({body:r})),n,t.RequestMethod.Post,e)))},Http.prototype.put=function(e,r,n){return httpRequest(this._backend,new Y(mergeOptions(this._defaultOptions.merge(new J({body:r})),n,t.RequestMethod.Put,e)))},Http.prototype["delete"]=function(e,r){return httpRequest(this._backend,new Y(mergeOptions(this._defaultOptions,r,t.RequestMethod.Delete,e)))},Http.prototype.patch=function(e,r,n){return httpRequest(this._backend,new Y(mergeOptions(this._defaultOptions.merge(new J({body:r})),n,t.RequestMethod.Patch,e)))},Http.prototype.head=function(e,r){return httpRequest(this._backend,new Y(mergeOptions(this._defaultOptions,r,t.RequestMethod.Head,e)))},Http.prototype.options=function(e,r){return httpRequest(this._backend,new Y(mergeOptions(this._defaultOptions,r,t.RequestMethod.Options,e)))},Http.decorators=[{type:r.Injectable}],Http.ctorParameters=[{type:P},{type:J}],Http}(),ae=function(e){function Jsonp(t,r){e.call(this,t,r)}return oe(Jsonp,e),Jsonp.prototype.request=function(e,r){var n;if(isString(e)&&(e=new Y(mergeOptions(this._defaultOptions,r,t.RequestMethod.Get,e))),!(e instanceof Y))throw new Error("First argument must be a url string or Request instance.");if(e.method!==t.RequestMethod.Get)throw new Error("JSONP requests must use GET request method.");return n=httpRequest(this._backend,e)},Jsonp.decorators=[{type:r.Injectable}],Jsonp.ctorParameters=[{type:P},{type:J}],Jsonp}(se),ue=function(){function HttpModule(){}return HttpModule.decorators=[{type:r.NgModule,args:[{providers:[{provide:se,useFactory:httpFactory,deps:[Q,J]},s,{provide:J,useClass:Z},{provide:E,useClass:C},Q,{provide:x,useFactory:_createDefaultCookieXSRFStrategy}]}]}],HttpModule.ctorParameters=[],HttpModule}(),ce=function(){function JsonpModule(){}return JsonpModule.decorators=[{type:r.NgModule,args:[{providers:[{provide:ae,useFactory:jsonpFactory,deps:[z,J]},j,{provide:J,useClass:Z},{provide:E,useClass:C},{provide:z,useClass:H}]}]}],JsonpModule.ctorParameters=[],JsonpModule}();t.BrowserXhr=s,t.JSONPBackend=z,t.JSONPConnection=W,t.CookieXSRFStrategy=K,t.XHRBackend=Q,t.XHRConnection=G,t.BaseRequestOptions=Z,t.RequestOptions=J,t.BaseResponseOptions=C,t.ResponseOptions=E,t.Headers=S,t.Http=se,t.Jsonp=ae,t.HttpModule=ue,t.JsonpModule=ce,t.Connection=T,t.ConnectionBackend=P,t.XSRFStrategy=x,t.Request=Y,t.Response=k,t.QueryEncoder=O,t.URLSearchParams=I})}).call(t,function(){return this}())},,,function(e,t,r){"use strict";function toPromise(e){var t=this;if(e||(n.root.Rx&&n.root.Rx.config&&n.root.Rx.config.Promise?e=n.root.Rx.config.Promise:n.root.Promise&&(e=n.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})}var n=r(6);t.toPromise=toPromise},function(e,t,r){"use strict";var n=r(29);t.fromPromise=n.PromiseObservable.create},function(e,t,r){"use strict";function dispatchNext(e){var t=e.value,r=e.subscriber;r.closed||(r.next(t),r.complete())}function dispatchError(e){var t=e.err,r=e.subscriber;r.closed||r.error(t)}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(6),o=r(5),s=function(e){function PromiseObservable(t,r){e.call(this),this.promise=t,this.scheduler=r}return n(PromiseObservable,e),PromiseObservable.create=function(e,t){return new PromiseObservable(e,t)},PromiseObservable.prototype._subscribe=function(e){var t=this,r=this.promise,n=this.scheduler;if(null==n)this._isScalar?e.closed||(e.next(this.value),e.complete()):r.then(function(r){t.value=r,t._isScalar=!0,e.closed||(e.next(r),e.complete())},function(t){e.closed||e.error(t)}).then(null,function(e){i.root.setTimeout(function(){throw e})});else if(this._isScalar){if(!e.closed)return n.schedule(dispatchNext,0,{value:this.value,subscriber:e})}else r.then(function(r){t.value=r,t._isScalar=!0,e.closed||e.add(n.schedule(dispatchNext,0,{value:r,subscriber:e}))},function(t){e.closed||e.add(n.schedule(dispatchError,0,{err:t,subscriber:e}))}).then(null,function(e){i.root.setTimeout(function(){throw e})})},PromiseObservable}(o.Observable);t.PromiseObservable=s},function(e,t,r){"use strict";var n=r(5),i=r(31);n.Observable.forkJoin=i.forkJoin},function(e,t,r){"use strict";var n=r(32);t.forkJoin=n.ForkJoinObservable.create},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(5),o=r(33),s=r(11),a=r(34),u=r(38),c=function(e){function ForkJoinObservable(t,r){e.call(this),this.sources=t,this.resultSelector=r}return n(ForkJoinObservable,e),ForkJoinObservable.create=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];if(null===e||0===arguments.length)return new o.EmptyObservable;var r=null;return"function"==typeof e[e.length-1]&&(r=e.pop()),1===e.length&&s.isArray(e[0])&&(e=e[0]),0===e.length?new o.EmptyObservable:new ForkJoinObservable(e,r)},ForkJoinObservable.prototype._subscribe=function(e){return new l(e,this.sources,this.resultSelector)},ForkJoinObservable}(i.Observable);t.ForkJoinObservable=c;var l=function(e){function ForkJoinSubscriber(t,r,n){e.call(this,t),this.sources=r,this.resultSelector=n,this.completed=0,this.haveValues=0;var i=r.length;this.total=i,this.values=new Array(i);for(var o=0;o<i;o++){var s=r[o],u=a.subscribeToResult(this,s,null,o);u&&(u.outerIndex=o,this.add(u))}}return n(ForkJoinSubscriber,e),ForkJoinSubscriber.prototype.notifyNext=function(e,t,r,n,i){this.values[r]=t,i._hasValue||(i._hasValue=!0,this.haveValues++)},ForkJoinSubscriber.prototype.notifyComplete=function(e){var t=this.destination,r=this,n=r.haveValues,i=r.resultSelector,o=r.values,s=o.length;if(!e._hasValue)return void t.complete();if(this.completed++,this.completed===s){if(n===s){var a=i?i.apply(this,o):o;t.next(a)}t.complete()}},ForkJoinSubscriber}(u.OuterSubscriber)},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(5),o=function(e){function EmptyObservable(t){e.call(this),this.scheduler=t}return n(EmptyObservable,e),EmptyObservable.create=function(e){return new EmptyObservable(e)},EmptyObservable.dispatch=function(e){var t=e.subscriber;t.complete()},EmptyObservable.prototype._subscribe=function(e){var t=this.scheduler;return t?t.schedule(EmptyObservable.dispatch,0,{subscriber:e}):void e.complete()},EmptyObservable}(i.Observable);t.EmptyObservable=o},function(e,t,r){"use strict";function subscribeToResult(e,t,r,l){var p=new u.InnerSubscriber(e,r,l);if(p.closed)return null;if(t instanceof s.Observable)return t._isScalar?(p.next(t.value),p.complete(),null):t.subscribe(p);if(i.isArray(t)){for(var h=0,f=t.length;h<f&&!p.closed;h++)p.next(t[h]);p.closed||p.complete()}else{if(o.isPromise(t))return t.then(function(e){p.closed||(p.next(e),p.complete())},function(e){return p.error(e)}).then(null,function(e){n.root.setTimeout(function(){throw e})}),p;if("function"==typeof t[a.$$iterator])for(var d=t[a.$$iterator]();;){var m=d.next();if(m.done){p.complete();break}if(p.next(m.value),p.closed)break}else if("function"==typeof t[c.$$observable]){var v=t[c.$$observable]();if("function"==typeof v.subscribe)return v.subscribe(new u.InnerSubscriber(e,r,l));p.error(new Error("invalid observable"))}else p.error(new TypeError("unknown type returned"))}return null}var n=r(6),i=r(11),o=r(35),s=r(5),a=r(36),u=r(37),c=r(18);t.subscribeToResult=subscribeToResult},function(e,t){"use strict";function isPromise(e){return e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}t.isPromise=isPromise},function(e,t,r){"use strict";var n=r(6),i=n.root.Symbol;if("function"==typeof i)i.iterator?t.$$iterator=i.iterator:"function"==typeof i["for"]&&(t.$$iterator=i["for"]("iterator"));else if(n.root.Set&&"function"==typeof(new n.root.Set)["@@iterator"])t.$$iterator="@@iterator";else if(n.root.Map)for(var o=Object.getOwnPropertyNames(n.root.Map.prototype),s=0;s<o.length;++s){var a=o[s];if("entries"!==a&&"size"!==a&&n.root.Map.prototype[a]===n.root.Map.prototype.entries){t.$$iterator=a;break}}else t.$$iterator="@@iterator"},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8),o=function(e){function InnerSubscriber(t,r,n){e.call(this),this.parent=t,this.outerValue=r,this.outerIndex=n,this.index=0}return n(InnerSubscriber,e),InnerSubscriber.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},InnerSubscriber.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},InnerSubscriber.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},InnerSubscriber}(i.Subscriber);t.InnerSubscriber=o},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8),o=function(e){function OuterSubscriber(){e.apply(this,arguments)}return n(OuterSubscriber,e),OuterSubscriber.prototype.notifyNext=function(e,t,r,n,i){this.destination.next(t)},OuterSubscriber.prototype.notifyError=function(e,t){this.destination.error(e)},OuterSubscriber.prototype.notifyComplete=function(e){this.destination.complete()},OuterSubscriber}(i.Subscriber);t.OuterSubscriber=o},function(e,t,r){"use strict";var n=r(5),i=r(40);n.Observable.of=i.of},function(e,t,r){"use strict";var n=r(41);t.of=n.ArrayObservable.of},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,
new __)},i=r(5),o=r(42),s=r(33),a=r(43),u=function(e){function ArrayObservable(t,r){e.call(this),this.array=t,this.scheduler=r,r||1!==t.length||(this._isScalar=!0,this.value=t[0])}return n(ArrayObservable,e),ArrayObservable.create=function(e,t){return new ArrayObservable(e,t)},ArrayObservable.of=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var r=e[e.length-1];a.isScheduler(r)?e.pop():r=null;var n=e.length;return n>1?new ArrayObservable(e,r):1===n?new o.ScalarObservable(e[0],r):new s.EmptyObservable(r)},ArrayObservable.dispatch=function(e){var t=e.array,r=e.index,n=e.count,i=e.subscriber;return r>=n?void i.complete():(i.next(t[r]),void(i.closed||(e.index=r+1,this.schedule(e))))},ArrayObservable.prototype._subscribe=function(e){var t=0,r=this.array,n=r.length,i=this.scheduler;if(i)return i.schedule(ArrayObservable.dispatch,0,{array:r,index:t,count:n,subscriber:e});for(var o=0;o<n&&!e.closed;o++)e.next(r[o]);e.complete()},ArrayObservable}(i.Observable);t.ArrayObservable=u},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(5),o=function(e){function ScalarObservable(t,r){e.call(this),this.value=t,this.scheduler=r,this._isScalar=!0,r&&(this._isScalar=!1)}return n(ScalarObservable,e),ScalarObservable.create=function(e,t){return new ScalarObservable(e,t)},ScalarObservable.dispatch=function(e){var t=e.done,r=e.value,n=e.subscriber;return t?void n.complete():(n.next(r),void(n.closed||(e.done=!0,this.schedule(e))))},ScalarObservable.prototype._subscribe=function(e){var t=this.value,r=this.scheduler;return r?r.schedule(ScalarObservable.dispatch,0,{done:!1,value:t,subscriber:e}):(e.next(t),void(e.closed||e.complete()))},ScalarObservable}(i.Observable);t.ScalarObservable=o},function(e,t){"use strict";function isScheduler(e){return e&&"function"==typeof e.schedule}t.isScheduler=isScheduler},function(e,t,r){"use strict";var n=r(5),i=r(45);n.Observable.prototype.map=i.map},function(e,t,r){"use strict";function map(e,t){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new o(e,t))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8);t.map=map;var o=function(){function MapOperator(e,t){this.project=e,this.thisArg=t}return MapOperator.prototype.call=function(e,t){return t._subscribe(new s(e,this.project,this.thisArg))},MapOperator}();t.MapOperator=o;var s=function(e){function MapSubscriber(t,r,n){e.call(this,t),this.project=r,this.count=0,this.thisArg=n||this}return n(MapSubscriber,e),MapSubscriber.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(t)},MapSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(47);n.Observable.prototype.filter=i.filter},function(e,t,r){"use strict";function filter(e,t){return this.lift(new o(e,t))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8);t.filter=filter;var o=function(){function FilterOperator(e,t){this.predicate=e,this.thisArg=t}return FilterOperator.prototype.call=function(e,t){return t._subscribe(new s(e,this.predicate,this.thisArg))},FilterOperator}(),s=function(e){function FilterSubscriber(t,r,n){e.call(this,t),this.predicate=r,this.thisArg=n,this.count=0,this.predicate=r}return n(FilterSubscriber,e),FilterSubscriber.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}t&&this.destination.next(e)},FilterSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(49);n.Observable.prototype["do"]=i._do,n.Observable.prototype._do=i._do},function(e,t,r){"use strict";function _do(e,t,r){return this.lift(new o(e,t,r))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8);t._do=_do;var o=function(){function DoOperator(e,t,r){this.nextOrObserver=e,this.error=t,this.complete=r}return DoOperator.prototype.call=function(e,t){return t._subscribe(new s(e,this.nextOrObserver,this.error,this.complete))},DoOperator}(),s=function(e){function DoSubscriber(t,r,n,o){e.call(this,t);var s=new i.Subscriber(r,n,o);s.syncErrorThrowable=!0,this.add(s),this.safeSubscriber=s}return n(DoSubscriber,e),DoSubscriber.prototype._next=function(e){var t=this.safeSubscriber;t.next(e),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.next(e)},DoSubscriber.prototype._error=function(e){var t=this.safeSubscriber;t.error(e),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.error(e)},DoSubscriber.prototype._complete=function(){var e=this.safeSubscriber;e.complete(),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.complete()},DoSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(51);n.Observable.prototype.share=i.share},function(e,t,r){"use strict";function shareSubjectFactory(){return new i.Subject}function share(){return n.multicast.call(this,shareSubjectFactory).refCount()}var n=r(52),i=r(4);t.share=share},function(e,t,r){"use strict";function multicast(e,t){var r;return r="function"==typeof e?e:function(){return e},t?new n.MulticastObservable(this,r,t):new i.ConnectableObservable(this,r)}var n=r(53),i=r(54);t.multicast=multicast},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(5),o=r(54),s=function(e){function MulticastObservable(t,r,n){e.call(this),this.source=t,this.subjectFactory=r,this.selector=n}return n(MulticastObservable,e),MulticastObservable.prototype._subscribe=function(e){var t=this,r=t.selector,n=t.source,i=new o.ConnectableObservable(n,this.subjectFactory),s=r(i).subscribe(e);return s.add(i.connect()),s},MulticastObservable}(i.Observable);t.MulticastObservable=s},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(4),o=r(5),s=r(8),a=r(10),u=function(e){function ConnectableObservable(t,r){e.call(this),this.source=t,this.subjectFactory=r,this._refCount=0}return n(ConnectableObservable,e),ConnectableObservable.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},ConnectableObservable.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},ConnectableObservable.prototype.connect=function(){var e=this._connection;return e||(e=this._connection=new a.Subscription,e.add(this.source.subscribe(new c(this.getSubject(),this))),e.closed?(this._connection=null,e=a.Subscription.EMPTY):this._connection=e),e},ConnectableObservable.prototype.refCount=function(){return this.lift(new l(this))},ConnectableObservable}(o.Observable);t.ConnectableObservable=u;var c=function(e){function ConnectableSubscriber(t,r){e.call(this,t),this.connectable=r}return n(ConnectableSubscriber,e),ConnectableSubscriber.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},ConnectableSubscriber.prototype._complete=function(){this._unsubscribe(),e.prototype._complete.call(this)},ConnectableSubscriber.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},ConnectableSubscriber}(i.SubjectSubscriber),l=function(){function RefCountOperator(e){this.connectable=e}return RefCountOperator.prototype.call=function(e,t){var r=this.connectable;r._refCount++;var n=new p(e,r),i=t._subscribe(n);return n.closed||(n.connection=r.connect()),i},RefCountOperator}(),p=function(e){function RefCountSubscriber(t,r){e.call(this,t),this.connectable=r}return n(RefCountSubscriber,e),RefCountSubscriber.prototype._unsubscribe=function(){var e=this.connectable;if(!e)return void(this.connection=null);this.connectable=null;var t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);var r=this.connection,n=e._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()},RefCountSubscriber}(s.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(56);n.Observable.prototype["finally"]=i._finally,n.Observable.prototype._finally=i._finally},function(e,t,r){"use strict";function _finally(e){return this.lift(new s(e))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8),o=r(10);t._finally=_finally;var s=function(){function FinallyOperator(e){this.callback=e}return FinallyOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.callback))},FinallyOperator}(),a=function(e){function FinallySubscriber(t,r){e.call(this,t),this.add(new o.Subscription(r))}return n(FinallySubscriber,e),FinallySubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(58);n.Observable.prototype["catch"]=i._catch,n.Observable.prototype._catch=i._catch},function(e,t,r){"use strict";function _catch(e){var t=new s(e),r=this.lift(t);return t.caught=r}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(38),o=r(34);t._catch=_catch;var s=function(){function CatchOperator(e){this.selector=e}return CatchOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.selector,this.caught))},CatchOperator}(),a=function(e){function CatchSubscriber(t,r,n){e.call(this,t),this.selector=r,this.caught=n}return n(CatchSubscriber,e),CatchSubscriber.prototype.error=function(e){if(!this.isStopped){var t=void 0;try{t=this.selector(e,this.caught)}catch(e){return void this.destination.error(e)}this.unsubscribe(),this.destination.remove(this),o.subscribeToResult(this,t)}},CatchSubscriber}(i.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(60);n.Observable.prototype.first=i.first},function(e,t,r){"use strict";function first(e,t,r){return this.lift(new s(e,t,r,this))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8),o=r(61);t.first=first;var s=function(){function FirstOperator(e,t,r,n){this.predicate=e,this.resultSelector=t,this.defaultValue=r,this.source=n}return FirstOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.predicate,this.resultSelector,this.defaultValue,this.source))},FirstOperator}(),a=function(e){function FirstSubscriber(t,r,n,i,o){e.call(this,t),this.predicate=r,this.resultSelector=n,this.defaultValue=i,this.source=o,this.index=0,this.hasCompleted=!1}return n(FirstSubscriber,e),FirstSubscriber.prototype._next=function(e){var t=this.index++;this.predicate?this._tryPredicate(e,t):this._emit(e,t)},FirstSubscriber.prototype._tryPredicate=function(e,t){var r;try{r=this.predicate(e,t,this.source)}catch(n){return void this.destination.error(n)}r&&this._emit(e,t)},FirstSubscriber.prototype._emit=function(e,t){return this.resultSelector?void this._tryResultSelector(e,t):void this._emitFinal(e)},FirstSubscriber.prototype._tryResultSelector=function(e,t){var r;try{r=this.resultSelector(e,t)}catch(n){return void this.destination.error(n)}this._emitFinal(r)},FirstSubscriber.prototype._emitFinal=function(e){var t=this.destination;t.next(e),t.complete(),this.hasCompleted=!0},FirstSubscriber.prototype._complete=function(){var e=this.destination;this.hasCompleted||"undefined"==typeof this.defaultValue?this.hasCompleted||e.error(new o.EmptyError):(e.next(this.defaultValue),e.complete())},FirstSubscriber}(i.Subscriber)},function(e,t){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},n=function(e){function EmptyError(){var t=e.call(this,"no elements in sequence");this.name=t.name="EmptyError",this.stack=t.stack,this.message=t.message}return r(EmptyError,e),EmptyError}(Error);t.EmptyError=n},,function(e,t,r){/**
	 * @license @angular/router v3.0.0
	 * (c) 2010-2016 Google, Inc. https://angular.io/
	 * License: MIT
	 */
!function(e,n){n(t,r(22),r(3),r(4),r(64),r(40),r(70),r(45),r(71),r(72),r(73),r(5),r(58),r(74),r(60),r(61),r(28),r(75),r(76))}(this,function(e,t,r,n,i,o,s,a,u,c,l,p,h,f,d,m,v,y,b){"use strict";function shallowEqualArrays(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(!shallowEqual(e[r],t[r]))return!1;return!0}function shallowEqual(e,t){var r=Object.keys(e),n=Object.keys(t);if(r.length!=n.length)return!1;for(var i,o=0;o<r.length;o++)if(i=r[o],e[i]!==t[i])return!1;return!0}function flatten(e){for(var t=[],r=0;r<e.length;++r)for(var n=0;n<e[r].length;++n)t.push(e[r][n]);return t}function last(e){return e.length>0?e[e.length-1]:null}function merge(e,t){var r={};for(var n in e)e.hasOwnProperty(n)&&(r[n]=e[n]);for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);return r}function forEach(e,t){for(var r in e)e.hasOwnProperty(r)&&t(e[r],r)}function waitForMap(e,t){var r=[],n={};if(forEach(e,function(e,i){i===_&&r.push(a.map.call(t(i,e),function(e){return n[i]=e,e}))}),forEach(e,function(e,i){i!==_&&r.push(a.map.call(t(i,e),function(e){return n[i]=e,e}))}),r.length>0){var i=f.concatAll.call(o.of.apply(void 0,r)),s=y.last.call(i);return a.map.call(s,function(){return n})}return o.of(n)}function andObservables(e){var t=u.mergeAll.call(e);return s.every.call(t,function(e){return e===!0})}function wrapIntoObservable(e){return e instanceof p.Observable?e:e instanceof Promise?v.fromPromise(e):o.of(e)}function createEmptyUrlTree(){return new P(new T([],{}),{},null)}function containsTree(e,t,r){return r?equalSegmentGroups(e.root,t.root):containsSegmentGroup(e.root,t.root)}function equalSegmentGroups(e,t){if(!equalPath(e.segments,t.segments))return!1;if(e.numberOfChildren!==t.numberOfChildren)return!1;for(var r in t.children){if(!e.children[r])return!1;if(!equalSegmentGroups(e.children[r],t.children[r]))return!1}return!0}function containsSegmentGroup(e,t){return containsSegmentGroupHelper(e,t,t.segments)}function containsSegmentGroupHelper(e,t,r){if(e.segments.length>r.length){var n=e.segments.slice(0,r.length);return!!equalPath(n,r)&&!t.hasChildren()}if(e.segments.length===r.length){if(!equalPath(e.segments,r))return!1;for(var i in t.children){if(!e.children[i])return!1;if(!containsSegmentGroup(e.children[i],t.children[i]))return!1}return!0}var n=r.slice(0,e.segments.length),o=r.slice(e.segments.length);return!!equalPath(e.segments,n)&&(!!e.children[_]&&containsSegmentGroupHelper(e.children[_],t,o))}function equalPath(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(e[r].path!==t[r].path)return!1;return!0}function mapChildrenIntoArray(e,t){var r=[];return forEach(e.children,function(e,n){n===_&&(r=r.concat(t(e,n)))}),forEach(e.children,function(e,n){n!==_&&(r=r.concat(t(e,n)))}),r}function serializePaths(e){return e.segments.map(function(e){return serializePath(e)}).join("/")}function serializeSegment(e,t){if(e.hasChildren()&&t){var r=e.children[_]?serializeSegment(e.children[_],!1):"",n=[];return forEach(e.children,function(e,t){t!==_&&n.push(t+":"+serializeSegment(e,!1))}),n.length>0?r+"("+n.join("//")+")":""+r}if(e.hasChildren()&&!t){var i=mapChildrenIntoArray(e,function(t,r){return r===_?[serializeSegment(e.children[_],!1)]:[r+":"+serializeSegment(t,!1)]});return serializePaths(e)+"/("+i.join("//")+")"}return serializePaths(e)}function encode(e){return encodeURIComponent(e)}function decode(e){return decodeURIComponent(e)}function serializePath(e){return""+encode(e.path)+serializeParams(e.parameters)}function serializeParams(e){return pairs(e).map(function(e){return";"+encode(e.first)+"="+encode(e.second)}).join("")}function serializeQueryParams(e){var t=pairs(e).map(function(e){return encode(e.first)+"="+encode(e.second)});return t.length>0?"?"+t.join("&"):""}function pairs(e){var t=[];for(var r in e)e.hasOwnProperty(r)&&t.push(new I(r,e[r]));return t}function matchSegments(e){R.lastIndex=0;var t=e.match(R);return t?t[0]:""}function matchQueryParams(e){M.lastIndex=0;var t=e.match(R);return t?t[0]:""}function matchUrlQueryParamValue(e){k.lastIndex=0;var t=e.match(k);return t?t[0]:""}function noMatch(e){return new p.Observable(function(t){return t.error(new D(e))})}function absoluteRedirect(e){return new p.Observable(function(t){return t.error(new V(e))})}function canLoadFails(e){return new p.Observable(function(t){return t.error(new S("Cannot load children because the guard of the route \"path: '"+e.path+"'\" returned false"))})}function applyRedirects(e,t,r,n){return new j(e,t,r,n).apply()}function runGuards(e,t){var r=t.canLoad;if(!r||0===r.length)return o.of(!0);var n=a.map.call(i.from(r),function(r){var n=e.get(r);return wrapIntoObservable(n.canLoad?n.canLoad(t):n(t))});return andObservables(n)}function match(e,t,r){var n={matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}};if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||r.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};for(var i=t.path,o=i.split("/"),s={},a=[],u=0,c=0;c<o.length;++c){if(u>=r.length)return n;var l=r[u],p=o[c],h=p.startsWith(":");if(!h&&p!==l.path)return n;h&&(s[p.substring(1)]=l),a.push(l),u++}return"full"===t.pathMatch&&(e.hasChildren()||u<r.length)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:a,lastChild:u,positionalParamSegments:s}}function applyRedirectCommands(e,t,r){var n=t.startsWith("/")?t.substring(1):t;return""===n?[]:createSegments(t,n.split("/"),e,r)}function createSegments(e,t,r,n){return t.map(function(t){return t.startsWith(":")?findPosParam(t,n,e):findOrCreateSegment(t,r)})}function findPosParam(e,t,r){var n=e.substring(1),i=t[n];if(!i)throw new Error("Cannot redirect to '"+r+"'. Cannot find '"+e+"'.");return i}function findOrCreateSegment(e,t){for(var r=0,n=0,i=t;n<i.length;n++){var o=i[n];if(o.path===e)return t.splice(r),o;r++}return new x(e,{})}function split(e,t,r,n){if(r.length>0&&containsEmptyPathRedirectsWithNamedOutlets(e,r,n)){var i=new T(t,createChildrenForEmptySegments(n,new T(r,e.children)));return{segmentGroup:mergeTrivialChildren(i),slicedSegments:[]}}if(0===r.length&&containsEmptyPathRedirects(e,r,n)){var i=new T(e.segments,addEmptySegmentsToChildrenIfNeeded(e,r,n,e.children));return{segmentGroup:mergeTrivialChildren(i),slicedSegments:r}}return{segmentGroup:e,slicedSegments:r}}function mergeTrivialChildren(e){if(1===e.numberOfChildren&&e.children[_]){var t=e.children[_];return new T(e.segments.concat(t.segments),t.children)}return e}function addEmptySegmentsToChildrenIfNeeded(e,t,r,n){for(var i={},o=0,s=r;o<s.length;o++){var a=s[o];emptyPathRedirect(e,t,a)&&!n[getOutlet$1(a)]&&(i[getOutlet$1(a)]=new T([],{}))}return merge(n,i)}function createChildrenForEmptySegments(e,t){var r={};r[_]=t;for(var n=0,i=e;n<i.length;n++){var o=i[n];""===o.path&&getOutlet$1(o)!==_&&(r[getOutlet$1(o)]=new T([],{}))}return r}function containsEmptyPathRedirectsWithNamedOutlets(e,t,r){return r.filter(function(r){return emptyPathRedirect(e,t,r)&&getOutlet$1(r)!==_}).length>0}function containsEmptyPathRedirects(e,t,r){return r.filter(function(r){return emptyPathRedirect(e,t,r)}).length>0}function emptyPathRedirect(e,t,r){return(!(e.hasChildren()||t.length>0)||"full"!==r.pathMatch)&&(""===r.path&&void 0!==r.redirectTo)}function getOutlet$1(e){return e.outlet?e.outlet:_}/**
	     * @license
	     * Copyright Google Inc. All Rights Reserved.
	     *
	     * Use of this source code is governed by an MIT-style license that can be
	     * found in the LICENSE file at https://angular.io/license
	     */
function validateConfig(e){e.forEach(validateNode)}function validateNode(e){if(Array.isArray(e))throw new Error("Invalid route configuration: Array cannot be specified");if(e.redirectTo&&e.children)throw new Error("Invalid configuration of route '"+e.path+"': redirectTo and children cannot be used together");if(e.redirectTo&&e.loadChildren)throw new Error("Invalid configuration of route '"+e.path+"': redirectTo and loadChildren cannot be used together");if(e.children&&e.loadChildren)throw new Error("Invalid configuration of route '"+e.path+"': children and loadChildren cannot be used together");if(e.redirectTo&&e.component)throw new Error("Invalid configuration of route '"+e.path+"': redirectTo and component cannot be used together");if(void 0===e.redirectTo&&!e.component&&!e.children&&!e.loadChildren)throw new Error("Invalid configuration of route '"+e.path+"': one of the following must be provided (component or redirectTo or children or loadChildren)");if(void 0===e.path)throw new Error("Invalid route configuration: routes must have path specified");if(e.path.startsWith("/"))throw new Error("Invalid route configuration of route '"+e.path+"': path cannot start with a slash");if(""===e.path&&void 0!==e.redirectTo&&void 0===e.pathMatch){var t="The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.";throw new Error("Invalid route configuration of route '{path: \""+e.path+'", redirectTo: "'+e.redirectTo+"\"}': please provide 'pathMatch'. "+t)}if(void 0!==e.pathMatch&&"full"!==e.pathMatch&&"prefix"!==e.pathMatch)throw new Error("Invalid configuration of route '"+e.path+"': pathMatch can only be set to 'prefix' or 'full'")}function findNode(e,t){if(e===t.value)return t;for(var r=0,n=t.children;r<n.length;r++){var i=n[r],o=findNode(e,i);if(o)return o}return null}function findPath(e,t,r){if(r.push(t),e===t.value)return r;for(var n=0,i=t.children;n<i.length;n++){var o=i[n],s=r.slice(0),a=findPath(e,o,s);if(a.length>0)return a}return[]}function createEmptyState(e,t){var r=createEmptyStateSnapshot(e,t),n=new b.BehaviorSubject([new x("",{})]),i=new b.BehaviorSubject({}),o=new b.BehaviorSubject({}),s=new b.BehaviorSubject({}),a=new b.BehaviorSubject(""),u=new U(n,i,s,a,o,_,t,r.root);return u.snapshot=r.root,new W(new F(u,[]),r)}function createEmptyStateSnapshot(e,t){var r={},n={},i={},o="",s=new H([],r,i,o,n,_,t,null,e.root,(-1),z.empty);return new q("",new F(s,[]))}function setRouterStateSnapshot(e,t){t.value._routerState=e,t.children.forEach(function(t){return setRouterStateSnapshot(e,t)})}function serializeNode(e){var t=e.children.length>0?" { "+e.children.map(serializeNode).join(", ")+" } ":"";return""+e.value+t}function advanceActivatedRoute(e){e.snapshot?(shallowEqual(e.snapshot.queryParams,e._futureSnapshot.queryParams)||e.queryParams.next(e._futureSnapshot.queryParams),e.snapshot.fragment!==e._futureSnapshot.fragment&&e.fragment.next(e._futureSnapshot.fragment),shallowEqual(e.snapshot.params,e._futureSnapshot.params)||(e.params.next(e._futureSnapshot.params),e.data.next(e._futureSnapshot.data)),shallowEqualArrays(e.snapshot.url,e._futureSnapshot.url)||e.url.next(e._futureSnapshot.url),e.snapshot=e._futureSnapshot):(e.snapshot=e._futureSnapshot,e.data.next(e._futureSnapshot.data))}function createRouterState(e,t){var r=createNode(e._root,t?t._root:void 0);return new W(r,e)}function createNode(e,t){if(t&&equalRouteSnapshots(t.value.snapshot,e.value)){var r=t.value;r._futureSnapshot=e.value;var n=createOrReuseChildren(e,t);return new F(r,n)}var r=createActivatedRoute(e.value),n=e.children.map(function(e){return createNode(e)});return new F(r,n)}function createOrReuseChildren(e,t){return e.children.map(function(e){for(var r=0,n=t.children;r<n.length;r++){var i=n[r];if(equalRouteSnapshots(i.value.snapshot,e.value))return createNode(e,i)}return createNode(e)})}function createActivatedRoute(e){return new U(new b.BehaviorSubject(e.url),new b.BehaviorSubject(e.params),new b.BehaviorSubject(e.queryParams),new b.BehaviorSubject(e.fragment),new b.BehaviorSubject(e.data),e.outlet,e.component,e)}function equalRouteSnapshots(e,t){return e._routeConfig===t._routeConfig}function createUrlTree(e,t,r,n,i){if(0===r.length)return tree(t.root,t.root,t,n,i);var o=normalizeCommands(r);if(validateCommands(o),navigateToRoot(o))return tree(t.root,new T([],{}),t,n,i);var s=findStartingPosition(o,t,e),a=s.processChildren?updateSegmentGroupChildren(s.segmentGroup,s.index,o.commands):updateSegmentGroup(s.segmentGroup,s.index,o.commands);return tree(s.segmentGroup,a,t,n,i)}function validateCommands(e){if(e.isAbsolute&&e.commands.length>0&&isMatrixParams(e.commands[0]))throw new Error("Root segment cannot have matrix parameters");var t=e.commands.filter(function(e){return"object"==typeof e&&void 0!==e.outlets});if(t.length>0&&t[0]!==e.commands[e.commands.length-1])throw new Error("{outlets:{}} has to be the last command")}function isMatrixParams(e){return"object"==typeof e&&void 0===e.outlets&&void 0===e.segmentPath}function tree(e,t,r,n,i){return r.root===e?new P(t,stringify(n),i):new P(replaceSegment(r.root,e,t),stringify(n),i)}function replaceSegment(e,t,r){var n={};return forEach(e.children,function(e,i){e===t?n[i]=r:n[i]=replaceSegment(e,t,r)}),new T(e.segments,n)}function navigateToRoot(e){return e.isAbsolute&&1===e.commands.length&&"/"==e.commands[0]}function normalizeCommands(e){if("string"==typeof e[0]&&1===e.length&&"/"==e[0])return new G((!0),0,e);for(var t=0,r=!1,n=[],i=function(i){var o=e[i];if("object"==typeof o&&void 0!==o.outlets){var s={};return forEach(o.outlets,function(e,t){"string"==typeof e?s[t]=e.split("/"):s[t]=e}),n.push({outlets:s}),"continue"}if("object"==typeof o&&void 0!==o.segmentPath)return n.push(o.segmentPath),"continue";if("string"!=typeof o)return n.push(o),"continue";if(0===i)for(var a=o.split("/"),u=0;u<a.length;++u){var c=a[u];0==u&&"."==c||(0==u&&""==c?r=!0:".."==c?t++:""!=c&&n.push(c))}else n.push(o)},o=0;o<e.length;++o)i(o);return new G(r,t,n)}function findStartingPosition(e,t,r){if(e.isAbsolute)return new K(t.root,(!0),0);if(r.snapshot._lastPathIndex===-1)return new K(r.snapshot._urlSegment,(!0),0);var n=isMatrixParams(e.commands[0])?0:1,i=r.snapshot._lastPathIndex+n;return createPositionApplyingDoubleDots(r.snapshot._urlSegment,i,e.numberOfDoubleDots)}function createPositionApplyingDoubleDots(e,t,r){for(var n=e,i=t,o=r;o>i;){if(o-=i,n=n.parent,!n)throw new Error("Invalid number of '../'");i=n.segments.length}return new K(n,(!1),i-o)}function getPath(e){return""+e}function getOutlets(e){return"object"!=typeof e[0]?(t={},t[_]=e,t):void 0===e[0].outlets?(r={},r[_]=e,r):e[0].outlets;var t,r}function updateSegmentGroup(e,t,r){if(e||(e=new T([],{})),0===e.segments.length&&e.hasChildren())return updateSegmentGroupChildren(e,t,r);var n=prefixedWith(e,t,r),i=r.slice(n.lastIndex);return n.match&&0===i.length?new T(e.segments,{}):n.match&&!e.hasChildren()?createNewSegmentGroup(e,t,r):n.match?updateSegmentGroupChildren(e,0,i):createNewSegmentGroup(e,t,r)}function updateSegmentGroupChildren(e,t,r){if(0===r.length)return new T(e.segments,{});var n=getOutlets(r),i={};return forEach(n,function(r,n){null!==r&&(i[n]=updateSegmentGroup(e.children[n],t,r))}),forEach(e.children,function(e,t){void 0===n[t]&&(i[t]=e)}),new T(e.segments,i)}function prefixedWith(e,t,r){for(var n=0,i=t,o={match:!1,lastIndex:0};i<e.segments.length;){if(n>=r.length)return o;var s=e.segments[i],a=getPath(r[n]),u=n<r.length-1?r[n+1]:null;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!compare(a,u,s))return o;n+=2}else{if(!compare(a,{},s))return o;n++}i++}return{match:!0,lastIndex:n}}function createNewSegmentGroup(e,t,r){for(var n=e.segments.slice(0,t),i=0;i<r.length;){if("object"==typeof r[i]&&void 0!==r[i].outlets){var o=createNewSegmentChldren(r[i].outlets);return new T(n,o)}if(0===i&&isMatrixParams(r[0])){var s=e.segments[t];n.push(new x(s.path,r[0])),i++}else{var a=getPath(r[i]),u=i<r.length-1?r[i+1]:null;a&&u&&isMatrixParams(u)?(n.push(new x(a,stringify(u))),i+=2):(n.push(new x(a,{})),i++)}}return new T(n,{})}function createNewSegmentChldren(e){var t={};return forEach(e,function(e,r){null!==e&&(t[r]=createNewSegmentGroup(new T([],{}),0,e))}),t}function stringify(e){var t={};return forEach(e,function(e,r){return t[r]=""+e}),t}function compare(e,t,r){return e==r.path&&shallowEqual(t,r.parameters)}function recognize(e,t,r,n){return new J(e,t,r,n).recognize()}function sortActivatedRouteSnapshots(e){e.sort(function(e,t){return e.value.outlet===_?-1:t.value.outlet===_?1:e.value.outlet.localeCompare(t.value.outlet)})}function getChildConfig(e){return e.children?e.children:e.loadChildren?e._loadedConfig.routes:[]}function match$1(e,t,r,n){if(""===t.path){if("full"===t.pathMatch&&(e.hasChildren()||r.length>0))throw new Q;var i=n?n.params:{};return{consumedSegments:[],lastChild:0,parameters:i}}for(var o=t.path,s=o.split("/"),a={},u=[],c=0,l=0;l<s.length;++l){if(c>=r.length)throw new Q;var p=r[c],h=s[l],f=h.startsWith(":");if(!f&&h!==p.path)throw new Q;f&&(a[h.substring(1)]=p.path),u.push(p),c++}if("full"===t.pathMatch&&(e.hasChildren()||c<r.length))throw new Q;var d=merge(a,u[u.length-1].parameters);return{consumedSegments:u,lastChild:c,parameters:d}}function checkOutletNameUniqueness(e){var t={};e.forEach(function(e){var r=t[e.value.outlet];if(r){var n=r.url.map(function(e){return e.toString()}).join("/"),i=e.value.url.map(function(e){return e.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+n+"' and '"+i+"'.")}t[e.value.outlet]=e.value})}function getSourceSegmentGroup(e){for(var t=e;t._sourceSegment;)t=t._sourceSegment;return t}function getPathIndexShift(e){for(var t=e,r=t._segmentIndexShift?t._segmentIndexShift:0;t._sourceSegment;)t=t._sourceSegment,r+=t._segmentIndexShift?t._segmentIndexShift:0;return r-1}function split$1(e,t,r,n){if(r.length>0&&containsEmptyPathMatchesWithNamedOutlets(e,r,n)){var i=new T(t,createChildrenForEmptyPaths(e,t,n,new T(r,e.children)));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:[]}}if(0===r.length&&containsEmptyPathMatches(e,r,n)){var i=new T(e.segments,addEmptyPathsToChildrenIfNeeded(e,r,n,e.children));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:r}}var i=new T(e.segments,e.children);return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:r}}function addEmptyPathsToChildrenIfNeeded(e,t,r,n){for(var i={},o=0,s=r;o<s.length;o++){var a=s[o];if(emptyPathMatch(e,t,a)&&!n[getOutlet$2(a)]){var u=new T([],{});u._sourceSegment=e,u._segmentIndexShift=e.segments.length,i[getOutlet$2(a)]=u}}return merge(n,i)}function createChildrenForEmptyPaths(e,t,r,n){var i={};i[_]=n,n._sourceSegment=e,n._segmentIndexShift=t.length;for(var o=0,s=r;o<s.length;o++){var a=s[o];if(""===a.path&&getOutlet$2(a)!==_){var u=new T([],{});u._sourceSegment=e,u._segmentIndexShift=t.length,i[getOutlet$2(a)]=u}}return i}function containsEmptyPathMatchesWithNamedOutlets(e,t,r){return r.filter(function(r){return emptyPathMatch(e,t,r)&&getOutlet$2(r)!==_}).length>0}function containsEmptyPathMatches(e,t,r){return r.filter(function(r){return emptyPathMatch(e,t,r)}).length>0}function emptyPathMatch(e,t,r){return(!(e.hasChildren()||t.length>0)||"full"!==r.pathMatch)&&(""===r.path&&void 0===r.redirectTo)}function getOutlet$2(e){return e.outlet?e.outlet:_}function getData(e){return e.data?e.data:{}}function getResolve(e){return e.resolve?e.resolve:{}}function defaultErrorHandler(e){throw e}function parentLoadedConfig(e){for(var t=e.parent;t;){var r=t._routeConfig;if(r&&r._loadedConfig)return r._loadedConfig;if(r&&r.component)return null;t=t.parent}return null}function closestLoadedConfig(e){if(!e)return null;for(var t=e.parent;t;){var r=t._routeConfig;if(r&&r._loadedConfig)return r._loadedConfig;t=t.parent}return null}function nodeChildrenAsMap(e){return e?e.children.reduce(function(e,t){return e[t.value.outlet]=t,e},{}):{}}function getOutlet(e,t){var r=e._outlets[t.outlet];if(!r){var n=t.component.name;throw t.outlet===_?new Error("Cannot find primary outlet to load '"+n+"'"):new Error("Cannot find the outlet "+t.outlet+" to load '"+n+"'")}return r}function toBool(e){return""===e||!!e}function provideLocationStrategy(e,r,n){return void 0===n&&(n={}),n.useHash?new t.HashLocationStrategy(e,r):new t.PathLocationStrategy(e,r)}function provideForRootGuard(e){if(e)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function provideRoutes(e){return[{provide:r.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:e},{provide:w,multi:!0,useValue:e}]}function setupRouter(e,t,r,n,i,o,s,a,u){if(void 0===u&&(u={}),0==e.componentTypes.length)throw new Error("Bootstrap at least one component before injecting Router.");var c=e.componentTypes[0],l=new ne(c,t,r,n,i,o,s,flatten(a));return u.errorHandler&&(l.errorHandler=u.errorHandler),u.enableTracing&&l.events.subscribe(function(e){console.group("Router Event: "+e.constructor.name),console.log(e.toString()),console.log(e),console.groupEnd()}),l}function rootRoute(e){return e.routerState.root}function initialRouterNavigation(e,t){return function(){t.initialNavigation===!1?e.setUpLocationChangeListener():e.initialNavigation()}}function provideRouterInitializer(){return{provide:r.APP_BOOTSTRAP_LISTENER,multi:!0,useFactory:initialRouterNavigation,deps:[ne,fe]}}/**
	     * @license
	     * Copyright Google Inc. All Rights Reserved.
	     *
	     * Use of this source code is governed by an MIT-style license that can be
	     * found in the LICENSE file at https://angular.io/license
	     */
var g=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},_="primary",S=function(e){function NavigationCancelingError(t){e.call(this,t),this.message=t,this.stack=new Error(t).stack}return g(NavigationCancelingError,e),NavigationCancelingError.prototype.toString=function(){return this.message},NavigationCancelingError}(Error),w=new r.OpaqueToken("ROUTES"),E=function(){function LoadedRouterConfig(e,t,r){this.routes=e,this.injector=t,this.factoryResolver=r}return LoadedRouterConfig}(),C=function(){function RouterConfigLoader(e,t){this.loader=e,this.compiler=t}return RouterConfigLoader.prototype.load=function(e,t){return a.map.call(this.loadModuleFactory(t),function(t){var r=t.create(e);return new E(flatten(r.injector.get(w)),r.injector,r.componentFactoryResolver)})},RouterConfigLoader.prototype.loadModuleFactory=function(e){var t=this;if("string"==typeof e)return v.fromPromise(this.loader.load(e));var n=this.compiler instanceof r.Compiler;return c.mergeMap.call(wrapIntoObservable(e()),function(e){return n?o.of(e):v.fromPromise(t.compiler.compileModuleAsync(e))})},RouterConfigLoader}(),P=function(){function UrlTree(e,t,r){this.root=e,this.queryParams=t,this.fragment=r}return UrlTree.prototype.toString=function(){return(new O).serialize(this)},UrlTree}(),T=function(){function UrlSegmentGroup(e,t){var r=this;this.segments=e,this.children=t,this.parent=null,forEach(t,function(e,t){return e.parent=r})}return UrlSegmentGroup.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(UrlSegmentGroup.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),UrlSegmentGroup.prototype.toString=function(){return serializePaths(this)},UrlSegmentGroup}(),x=function(){function UrlSegment(e,t){this.path=e,this.parameters=t}return UrlSegment.prototype.toString=function(){return serializePath(this)},UrlSegment}(),A=function(){function UrlSerializer(){}return UrlSerializer}(),O=function(){function DefaultUrlSerializer(){}return DefaultUrlSerializer.prototype.parse=function(e){var t=new N(e);return new P(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())},DefaultUrlSerializer.prototype.serialize=function(e){var t="/"+serializeSegment(e.root,!0),r=serializeQueryParams(e.queryParams),n=null!==e.fragment&&void 0!==e.fragment?"#"+encodeURI(e.fragment):"";return""+t+r+n},DefaultUrlSerializer}(),I=function(){function Pair(e,t){this.first=e,this.second=t}return Pair}(),R=/^[^\/\(\)\?;=&#]+/,M=/^[^=\?&#]+/,k=/^[^\?&#]+/,N=function(){function UrlParser(e){this.url=e,this.remaining=e}return UrlParser.prototype.peekStartsWith=function(e){return this.remaining.startsWith(e)},UrlParser.prototype.capture=function(e){if(!this.remaining.startsWith(e))throw new Error('Expected "'+e+'".');this.remaining=this.remaining.substring(e.length)},UrlParser.prototype.parseRootSegment=function(){return this.remaining.startsWith("/")&&this.capture("/"),""===this.remaining||this.remaining.startsWith("?")||this.remaining.startsWith("#")?new T([],{}):new T([],this.parseChildren())},UrlParser.prototype.parseChildren=function(){if(0==this.remaining.length)return{};this.peekStartsWith("/")&&this.capture("/");var e=[];for(this.peekStartsWith("(")||e.push(this.parseSegments());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegments());var t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));var r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(t).length>0)&&(r[_]=new T(e,t)),r},UrlParser.prototype.parseSegments=function(){var e=matchSegments(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");this.capture(e);var t={};return this.peekStartsWith(";")&&(t=this.parseMatrixParams()),new x(decode(e),t)},UrlParser.prototype.parseQueryParams=function(){var e={};if(this.peekStartsWith("?"))for(this.capture("?"),this.parseQueryParam(e);this.remaining.length>0&&this.peekStartsWith("&");)this.capture("&"),this.parseQueryParam(e);return e},UrlParser.prototype.parseFragment=function(){return this.peekStartsWith("#")?decodeURI(this.remaining.substring(1)):null},UrlParser.prototype.parseMatrixParams=function(){for(var e={};this.remaining.length>0&&this.peekStartsWith(";");)this.capture(";"),this.parseParam(e);return e},UrlParser.prototype.parseParam=function(e){var t=matchSegments(this.remaining);if(t){this.capture(t);var r="";if(this.peekStartsWith("=")){this.capture("=");var n=matchSegments(this.remaining);n&&(r=n,this.capture(r))}e[decode(t)]=decode(r)}},UrlParser.prototype.parseQueryParam=function(e){var t=matchQueryParams(this.remaining);if(t){this.capture(t);var r="";if(this.peekStartsWith("=")){this.capture("=");var n=matchUrlQueryParamValue(this.remaining);n&&(r=n,this.capture(r))}e[decode(t)]=decode(r)}},UrlParser.prototype.parseParens=function(e){var t={};for(this.capture("(");!this.peekStartsWith(")")&&this.remaining.length>0;){var r=matchSegments(this.remaining),n=this.remaining[r.length];if("/"!==n&&")"!==n&&";"!==n)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;r.indexOf(":")>-1?(i=r.substr(0,r.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=_);var o=this.parseChildren();t[i]=1===Object.keys(o).length?o[_]:new T([],o),this.peekStartsWith("//")&&this.capture("//")}return this.capture(")"),t},UrlParser}(),D=function(){function NoMatch(e){void 0===e&&(e=null),this.segmentGroup=e}return NoMatch}(),V=function(){function AbsoluteRedirect(e){this.segments=e}return AbsoluteRedirect}(),j=function(){function ApplyRedirects(e,t,r,n){this.injector=e,this.configLoader=t,this.urlTree=r,this.config=n,this.allowRedirects=!0}return ApplyRedirects.prototype.apply=function(){var e=this,t=this.expandSegmentGroup(this.injector,this.config,this.urlTree.root,_),r=a.map.call(t,function(t){return e.createUrlTree(t)});return h._catch.call(r,function(t){if(t instanceof V){e.allowRedirects=!1;var r=new T([],(n={},n[_]=new T(t.segments,{}),n));return e.match(r)}throw t instanceof D?e.noMatchError(t):t;var n})},ApplyRedirects.prototype.match=function(e){var t=this,r=this.expandSegmentGroup(this.injector,this.config,e,_),n=a.map.call(r,function(e){return t.createUrlTree(e)});return h._catch.call(n,function(e){throw e instanceof D?t.noMatchError(e):e})},ApplyRedirects.prototype.noMatchError=function(e){return new Error("Cannot match any routes: '"+e.segmentGroup+"'")},ApplyRedirects.prototype.createUrlTree=function(e){var t=e.segments.length>0?new T([],(r={},r[_]=e,r)):e;return new P(t,this.urlTree.queryParams,this.urlTree.fragment);var r},ApplyRedirects.prototype.expandSegmentGroup=function(e,t,r,n){return 0===r.segments.length&&r.hasChildren()?a.map.call(this.expandChildren(e,t,r),function(e){return new T([],e)}):this.expandSegment(e,r,t,r.segments,n,!0)},ApplyRedirects.prototype.expandChildren=function(e,t,r){var n=this;return waitForMap(r.children,function(r,i){return n.expandSegmentGroup(e,t,i,r)})},ApplyRedirects.prototype.expandSegment=function(e,t,r,n,i,s){var u=this,c=o.of.apply(void 0,r),l=a.map.call(c,function(a){var c=u.expandSegmentAgainstRoute(e,t,r,a,n,i,s);return h._catch.call(c,function(e){if(e instanceof D)return o.of(null);throw e})}),p=f.concatAll.call(l),v=d.first.call(p,function(e){return!!e});return h._catch.call(v,function(e,r){throw e instanceof m.EmptyError?new D(t):e})},ApplyRedirects.prototype.expandSegmentAgainstRoute=function(e,t,r,n,i,o,s){return getOutlet$1(n)!==o?noMatch(t):void 0===n.redirectTo||s&&this.allowRedirects?void 0===n.redirectTo?this.matchSegmentAgainstRoute(e,t,n,i):this.expandSegmentAgainstRouteUsingRedirect(e,t,r,n,i,o):noMatch(t)},ApplyRedirects.prototype.expandSegmentAgainstRouteUsingRedirect=function(e,t,r,n,i,o){return"**"===n.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,r,n,i,o)},ApplyRedirects.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(e){var t=applyRedirectCommands([],e.redirectTo,{});return e.redirectTo.startsWith("/")?absoluteRedirect(t):o.of(new T(t,{}))},ApplyRedirects.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(e,t,r,n,i,o){var s=match(t,n,i),a=s.matched,u=s.consumedSegments,c=s.lastChild,l=s.positionalParamSegments;if(!a)return noMatch(t);var p=applyRedirectCommands(u,n.redirectTo,l);return n.redirectTo.startsWith("/")?absoluteRedirect(p):this.expandSegment(e,t,r,p.concat(i.slice(c)),o,!1)},ApplyRedirects.prototype.matchSegmentAgainstRoute=function(e,t,r,n){var i=this;if("**"===r.path)return o.of(new T(n,{}));var s=match(t,r,n),u=s.matched,l=s.consumedSegments,p=s.lastChild;if(!u)return noMatch(t);var h=n.slice(p),f=this.getChildConfig(e,r);return c.mergeMap.call(f,function(e){var r=e.injector,n=e.routes,s=split(t,l,h,n),u=s.segmentGroup,c=s.slicedSegments;if(0===c.length&&u.hasChildren()){var p=i.expandChildren(r,n,u);return a.map.call(p,function(e){return new T(l,e)})}if(0===n.length&&0===c.length)return o.of(new T(l,{}));var p=i.expandSegment(r,u,n,c,_,!0);return a.map.call(p,function(e){return new T(l.concat(e.segments),e.children)})})},ApplyRedirects.prototype.getChildConfig=function(e,t){var r=this;return t.children?o.of(new E(t.children,e,null)):t.loadChildren?c.mergeMap.call(runGuards(e,t),function(n){return n?t._loadedConfig?o.of(t._loadedConfig):a.map.call(r.configLoader.load(e,t.loadChildren),function(e){return t._loadedConfig=e,e}):canLoadFails(t)}):o.of(new E([],e,null))},ApplyRedirects}(),L=function(){function Tree(e){this._root=e}return Object.defineProperty(Tree.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),Tree.prototype.parent=function(e){var t=this.pathFromRoot(e);return t.length>1?t[t.length-2]:null},Tree.prototype.children=function(e){var t=findNode(e,this._root);return t?t.children.map(function(e){return e.value}):[]},Tree.prototype.firstChild=function(e){var t=findNode(e,this._root);return t&&t.children.length>0?t.children[0].value:null},Tree.prototype.siblings=function(e){var t=findPath(e,this._root,[]);if(t.length<2)return[];var r=t[t.length-2].children.map(function(e){return e.value});return r.filter(function(t){return t!==e})},Tree.prototype.pathFromRoot=function(e){return findPath(e,this._root,[]).map(function(e){return e.value})},Tree}(),F=function(){function TreeNode(e,t){this.value=e,this.children=t}return TreeNode.prototype.toString=function(){return"TreeNode("+this.value+")"},TreeNode}(),B=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},W=function(e){function RouterState(t,r){e.call(this,t),this.snapshot=r,setRouterStateSnapshot(this,t)}return B(RouterState,e),RouterState.prototype.toString=function(){return this.snapshot.toString()},RouterState}(L),U=function(){function ActivatedRoute(e,t,r,n,i,o,s,a){this.url=e,this.params=t,this.queryParams=r,this.fragment=n,this.data=i,this.outlet=o,this.component=s,this._futureSnapshot=a}return Object.defineProperty(ActivatedRoute.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(ActivatedRoute.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(ActivatedRoute.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(ActivatedRoute.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(ActivatedRoute.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(ActivatedRoute.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),ActivatedRoute.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},ActivatedRoute}(),z=function(){function InheritedResolve(e,t){this.parent=e,this.current=t,this.resolvedData={}}return Object.defineProperty(InheritedResolve.prototype,"flattenedResolvedData",{get:function(){return this.parent?merge(this.parent.flattenedResolvedData,this.resolvedData):this.resolvedData},enumerable:!0,configurable:!0}),Object.defineProperty(InheritedResolve,"empty",{get:function(){return new InheritedResolve(null,{})},enumerable:!0,configurable:!0}),InheritedResolve}(),H=function(){function ActivatedRouteSnapshot(e,t,r,n,i,o,s,a,u,c,l){this.url=e,this.params=t,this.queryParams=r,this.fragment=n,this.data=i,this.outlet=o,this.component=s,this._routeConfig=a,this._urlSegment=u,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(ActivatedRouteSnapshot.prototype,"routeConfig",{get:function(){return this._routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(ActivatedRouteSnapshot.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(ActivatedRouteSnapshot.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(ActivatedRouteSnapshot.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(ActivatedRouteSnapshot.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(ActivatedRouteSnapshot.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),ActivatedRouteSnapshot.prototype.toString=function(){var e=this.url.map(function(e){return e.toString()}).join("/"),t=this._routeConfig?this._routeConfig.path:"";return"Route(url:'"+e+"', path:'"+t+"')"},ActivatedRouteSnapshot}(),q=function(e){function RouterStateSnapshot(t,r){e.call(this,r),this.url=t,setRouterStateSnapshot(this,r)}return B(RouterStateSnapshot,e),RouterStateSnapshot.prototype.toString=function(){return serializeNode(this._root)},RouterStateSnapshot}(L),G=function(){function NormalizedNavigationCommands(e,t,r){this.isAbsolute=e,this.numberOfDoubleDots=t,this.commands=r}return NormalizedNavigationCommands}(),K=function(){function Position(e,t,r){this.segmentGroup=e,this.processChildren=t,this.index=r}return Position}(),Q=function(){function NoMatch(){}return NoMatch}(),X=function(){function InheritedFromParent(e,t,r,n,i){this.parent=e,this.snapshot=t,this.params=r,this.data=n,this.resolve=i}return Object.defineProperty(InheritedFromParent.prototype,"allParams",{get:function(){return this.parent?merge(this.parent.allParams,this.params):this.params},enumerable:!0,configurable:!0}),Object.defineProperty(InheritedFromParent.prototype,"allData",{get:function(){return this.parent?merge(this.parent.allData,this.data):this.data},enumerable:!0,configurable:!0}),InheritedFromParent.empty=function(e){return new InheritedFromParent(null,e,{},{},new z(null,{}))},InheritedFromParent}(),J=function(){function Recognizer(e,t,r,n){this.rootComponentType=e,this.config=t,this.urlTree=r,this.url=n}return Recognizer.prototype.recognize=function(){try{var e=split$1(this.urlTree.root,[],[],this.config).segmentGroup,t=this.processSegmentGroup(this.config,e,X.empty(null),_),r=new H([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},_,this.rootComponentType,null,this.urlTree.root,(-1),z.empty),n=new F(r,t);return o.of(new q(this.url,n))}catch(i){return new p.Observable(function(e){return e.error(i)})}},Recognizer.prototype.processSegmentGroup=function(e,t,r,n){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t,r):this.processSegment(e,t,0,t.segments,r,n)},Recognizer.prototype.processChildren=function(e,t,r){var n=this,i=mapChildrenIntoArray(t,function(t,i){return n.processSegmentGroup(e,t,r,i)});return checkOutletNameUniqueness(i),sortActivatedRouteSnapshots(i),i},Recognizer.prototype.processSegment=function(e,t,r,n,i,o){for(var s=0,a=e;s<a.length;s++){var u=a[s];try{return this.processSegmentAgainstRoute(u,t,r,n,i,o)}catch(c){if(!(c instanceof Q))throw c}}throw new Q},Recognizer.prototype.processSegmentAgainstRoute=function(e,t,r,n,i,o){if(e.redirectTo)throw new Q;if((e.outlet?e.outlet:_)!==o)throw new Q;var s=new z(i.resolve,getResolve(e));if("**"===e.path){var a=n.length>0?last(n).parameters:{},u=new H(n,Object.freeze(merge(i.allParams,a)),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,merge(i.allData,getData(e)),o,e.component,e,getSourceSegmentGroup(t),getPathIndexShift(t)+n.length,s);return[new F(u,[])]}var c=match$1(t,e,n,i.snapshot),l=c.consumedSegments,p=c.parameters,h=c.lastChild,f=n.slice(h),d=getChildConfig(e),m=split$1(t,l,f,d),v=m.segmentGroup,y=m.slicedSegments,b=new H(l,Object.freeze(merge(i.allParams,p)),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,merge(i.allData,getData(e)),o,e.component,e,getSourceSegmentGroup(t),getPathIndexShift(t)+l.length,s),g=e.component?X.empty(b):new X(i,b,p,getData(e),s);if(0===y.length&&v.hasChildren()){var S=this.processChildren(d,v,g);return[new F(b,S)]}if(0===d.length&&0===y.length)return[new F(b,[])];var S=this.processSegment(d,v,r+h,y,g,_);return[new F(b,S)]},Recognizer}(),Z=function(){function RouterOutletMap(){this._outlets={}}return RouterOutletMap.prototype.registerOutlet=function(e,t){this._outlets[e]=t},RouterOutletMap.prototype.removeOutlet=function(e){this._outlets[e]=void 0},RouterOutletMap}(),$=function(){function NavigationStart(e,t){this.id=e,this.url=t}return NavigationStart.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},NavigationStart}(),Y=function(){function NavigationEnd(e,t,r){this.id=e,this.url=t,this.urlAfterRedirects=r}return NavigationEnd.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},NavigationEnd}(),ee=function(){function NavigationCancel(e,t,r){this.id=e,this.url=t,this.reason=r}return NavigationCancel.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},NavigationCancel}(),te=function(){function NavigationError(e,t,r){this.id=e,this.url=t,this.error=r}return NavigationError.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},NavigationError}(),re=function(){function RoutesRecognized(e,t,r,n){this.id=e,this.url=t,this.urlAfterRedirects=r,this.state=n}return RoutesRecognized.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},RoutesRecognized}(),ne=function(){function Router(e,t,r,i,o,s,a,u){this.rootComponentType=e,this.urlSerializer=t,this.outletMap=r,this.location=i,this.injector=o,this.config=u,this.navigationId=0,this.errorHandler=defaultErrorHandler,this.navigated=!1,this.resetConfig(u),this.routerEvents=new n.Subject,this.currentUrlTree=createEmptyUrlTree(),this.configLoader=new C(s,a),this.currentRouterState=createEmptyState(this.currentUrlTree,this.rootComponentType)}return Router.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},Router.prototype.setUpLocationChangeListener=function(){var e=this;this.locationSubscription=this.location.subscribe(Zone.current.wrap(function(t){var r=e.urlSerializer.parse(t.url);return e.currentUrlTree.toString()!==r.toString()?e.scheduleNavigation(r,{skipLocationChange:t.pop,replaceUrl:!0}):null}))},Object.defineProperty(Router.prototype,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(Router.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(Router.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),Router.prototype.resetConfig=function(e){validateConfig(e),this.config=e},Router.prototype.ngOnDestroy=function(){this.dispose()},Router.prototype.dispose=function(){this.locationSubscription.unsubscribe()},Router.prototype.createUrlTree=function(e,t){var r=void 0===t?{}:t,n=r.relativeTo,i=r.queryParams,o=r.fragment,s=r.preserveQueryParams,a=r.preserveFragment,u=n?n:this.routerState.root,c=s?this.currentUrlTree.queryParams:i,l=a?this.currentUrlTree.fragment:o;return createUrlTree(u,this.currentUrlTree,e,c,l)},Router.prototype.navigateByUrl=function(e,t){if(void 0===t&&(t={skipLocationChange:!1}),e instanceof P)return this.scheduleNavigation(e,t);var r=this.urlSerializer.parse(e);return this.scheduleNavigation(r,t)},Router.prototype.navigate=function(e,t){return void 0===t&&(t={skipLocationChange:!1}),this.scheduleNavigation(this.createUrlTree(e,t),t)},Router.prototype.serializeUrl=function(e){return this.urlSerializer.serialize(e)},Router.prototype.parseUrl=function(e){return this.urlSerializer.parse(e)},Router.prototype.isActive=function(e,t){if(e instanceof P)return containsTree(this.currentUrlTree,e,t);var r=this.urlSerializer.parse(e);return containsTree(this.currentUrlTree,r,t)},Router.prototype.scheduleNavigation=function(e,t){var r=this,n=++this.navigationId;return this.routerEvents.next(new $(n,this.serializeUrl(e))),Promise.resolve().then(function(i){return r.runNavigate(e,t.skipLocationChange,t.replaceUrl,n)})},Router.prototype.runNavigate=function(e,t,r,n){var i=this;return n!==this.navigationId?(this.location.go(this.urlSerializer.serialize(this.currentUrlTree)),this.routerEvents.next(new ee(n,this.serializeUrl(e),"Navigation ID "+n+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(s,u){var l,p,h,f,d=i.currentRouterState,m=i.currentUrlTree,v=applyRedirects(i.injector,i.configLoader,e,i.config),y=c.mergeMap.call(v,function(e){return f=e,recognize(i.rootComponentType,i.config,f,i.serializeUrl(f))}),b=a.map.call(y,function(t){return i.routerEvents.next(new re(n,i.serializeUrl(e),i.serializeUrl(f),t)),t}),g=a.map.call(b,function(e){return createRouterState(e,i.currentRouterState)}),_=a.map.call(g,function(e){l=e,h=new se(l.snapshot,i.currentRouterState.snapshot,i.injector),h.traverse(i.outletMap)}),w=c.mergeMap.call(_,function(){return h.checkGuards()}),E=c.mergeMap.call(w,function(e){return e?a.map.call(h.resolveData(),function(){return e}):o.of(e)});E.forEach(function(e){if(!e||n!==i.navigationId)return void(p=!1);if(i.currentUrlTree=f,i.currentRouterState=l,!t){var o=i.urlSerializer.serialize(f);i.location.isCurrentPathEqualTo(o)||r?i.location.replaceState(o):i.location.go(o)}new ae(l,d).activate(i.outletMap),p=!0}).then(function(){i.navigated=!0,p?(i.routerEvents.next(new Y(n,i.serializeUrl(e),i.serializeUrl(f))),s(!0)):(i.routerEvents.next(new ee(n,i.serializeUrl(e),"")),s(!1))},function(t){if(t instanceof S)i.navigated=!0,i.routerEvents.next(new ee(n,i.serializeUrl(e),t.message)),s(!1);else{i.routerEvents.next(new te(n,i.serializeUrl(e),t));try{s(i.errorHandler(t))}catch(r){u(r)}}n===i.navigationId&&(i.currentRouterState=d,i.currentUrlTree=m,i.location.replaceState(i.serializeUrl(m)))})})},Router}(),ie=function(){function CanActivate(e){this.path=e}return Object.defineProperty(CanActivate.prototype,"route",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),CanActivate}(),oe=function(){function CanDeactivate(e,t){this.component=e,this.route=t}return CanDeactivate}(),se=function(){function PreActivation(e,t,r){this.future=e,this.curr=t,this.injector=r,this.checks=[]}return PreActivation.prototype.traverse=function(e){var t=this.future._root,r=this.curr?this.curr._root:null;this.traverseChildRoutes(t,r,e,[t.value])},PreActivation.prototype.checkGuards=function(){var e=this;if(0===this.checks.length)return o.of(!0);var t=i.from(this.checks),r=a.map.call(t,function(t){if(t instanceof ie)return andObservables(i.from([e.runCanActivateChild(t.path),e.runCanActivate(t.route)]));if(t instanceof oe){var r=t;return e.runCanDeactivate(r.component,r.route)}throw new Error("Cannot be reached")}),n=u.mergeAll.call(r);return s.every.call(n,function(e){return e===!0})},PreActivation.prototype.resolveData=function(){var e=this;if(0===this.checks.length)return o.of(null);var t=i.from(this.checks),r=c.mergeMap.call(t,function(t){return t instanceof ie?e.runResolve(t.route):o.of(null)});return l.reduce.call(r,function(e,t){return e})},PreActivation.prototype.traverseChildRoutes=function(e,t,r,n){var i=this,o=nodeChildrenAsMap(t);e.children.forEach(function(e){i.traverseRoutes(e,o[e.value.outlet],r,n.concat([e.value])),delete o[e.value.outlet]}),forEach(o,function(e,t){return i.deactivateOutletAndItChildren(e,r._outlets[t])})},PreActivation.prototype.traverseRoutes=function(e,t,r,n){var i=e.value,o=t?t.value:null,s=r?r._outlets[e.value.outlet]:null;o&&i._routeConfig===o._routeConfig?(shallowEqual(i.params,o.params)?i.data=o.data:this.checks.push(new oe(s.component,o),new ie(n)),i.component?this.traverseChildRoutes(e,t,s?s.outletMap:null,n):this.traverseChildRoutes(e,t,r,n)):(o&&(o.component?this.deactivateOutletAndItChildren(o,s):this.deactivateOutletMap(r)),this.checks.push(new ie(n)),i.component?this.traverseChildRoutes(e,null,s?s.outletMap:null,n):this.traverseChildRoutes(e,null,r,n))},PreActivation.prototype.deactivateOutletAndItChildren=function(e,t){t&&t.isActivated&&(this.deactivateOutletMap(t.outletMap),this.checks.push(new oe(t.component,e)))},PreActivation.prototype.deactivateOutletMap=function(e){var t=this;forEach(e._outlets,function(e){e.isActivated&&t.deactivateOutletAndItChildren(e.activatedRoute.snapshot,e)})},PreActivation.prototype.runCanActivate=function(e){var t=this,r=e._routeConfig?e._routeConfig.canActivate:null;if(!r||0===r.length)return o.of(!0);var n=a.map.call(i.from(r),function(r){var n=t.getToken(r,e);return wrapIntoObservable(n.canActivate?n.canActivate(e,t.future):n(e,t.future))});return andObservables(n)},PreActivation.prototype.runCanActivateChild=function(e){var t=this,r=e[e.length-1],n=e.slice(0,e.length-1).reverse().map(function(e){return t.extractCanActivateChild(e)}).filter(function(e){return null!==e});return andObservables(a.map.call(i.from(n),function(e){var n=a.map.call(i.from(e.guards),function(e){var n=t.getToken(e,e.node);return wrapIntoObservable(n.canActivateChild?n.canActivateChild(r,t.future):n(r,t.future))});return andObservables(n)}))},PreActivation.prototype.extractCanActivateChild=function(e){var t=e._routeConfig?e._routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null},PreActivation.prototype.runCanDeactivate=function(e,t){var r=this,n=t&&t._routeConfig?t._routeConfig.canDeactivate:null;if(!n||0===n.length)return o.of(!0);var c=a.map.call(i.from(n),function(n){var i=r.getToken(n,t);return wrapIntoObservable(i.canDeactivate?i.canDeactivate(e,t,r.curr):i(e,t,r.curr))}),l=u.mergeAll.call(c);return s.every.call(l,function(e){return e===!0})},PreActivation.prototype.runResolve=function(e){var t=e._resolve;return a.map.call(this.resolveNode(t.current,e),function(r){return t.resolvedData=r,e.data=merge(e.data,t.flattenedResolvedData),null})},PreActivation.prototype.resolveNode=function(e,t){var r=this;return waitForMap(e,function(e,n){var i=r.getToken(n,t);return wrapIntoObservable(i.resolve?i.resolve(t,r.future):i(t,r.future))})},PreActivation.prototype.getToken=function(e,t){var r=closestLoadedConfig(t),n=r?r.injector:this.injector;return n.get(e)},PreActivation}(),ae=function(){function ActivateRoutes(e,t){this.futureState=e,this.currState=t}return ActivateRoutes.prototype.activate=function(e){var t=this.futureState._root,r=this.currState?this.currState._root:null;advanceActivatedRoute(this.futureState.root),this.activateChildRoutes(t,r,e)},ActivateRoutes.prototype.activateChildRoutes=function(e,t,r){var n=this,i=nodeChildrenAsMap(t);e.children.forEach(function(e){n.activateRoutes(e,i[e.value.outlet],r),delete i[e.value.outlet]}),forEach(i,function(e,t){return n.deactivateOutletAndItChildren(r._outlets[t])})},ActivateRoutes.prototype.activateRoutes=function(e,t,r){var n=e.value,i=t?t.value:null;if(n===i)if(advanceActivatedRoute(n),n.component){var o=getOutlet(r,e.value);this.activateChildRoutes(e,t,o.outletMap)}else this.activateChildRoutes(e,t,r);else{if(i)if(i.component){var o=getOutlet(r,e.value);this.deactivateOutletAndItChildren(o)}else this.deactivateOutletMap(r);if(n.component){advanceActivatedRoute(n);var o=getOutlet(r,e.value),s=new Z;this.placeComponentIntoOutlet(s,n,o),this.activateChildRoutes(e,null,s)}else advanceActivatedRoute(n),this.activateChildRoutes(e,null,r)}},ActivateRoutes.prototype.placeComponentIntoOutlet=function(e,t,n){var i=[{provide:U,useValue:t},{provide:Z,useValue:e}],o=parentLoadedConfig(t.snapshot),s=null,a=null;o&&(s=o.factoryResolver,a=o.injector,i.push({provide:r.ComponentFactoryResolver,useValue:s})),n.activate(t,s,a,r.ReflectiveInjector.resolve(i),e)},ActivateRoutes.prototype.deactivateOutletAndItChildren=function(e){e&&e.isActivated&&(this.deactivateOutletMap(e.outletMap),e.deactivate())},ActivateRoutes.prototype.deactivateOutletMap=function(e){var t=this;forEach(e._outlets,function(e){return t.deactivateOutletAndItChildren(e)})},ActivateRoutes}(),ue=function(){function RouterLink(e,t,r){this.router=e,this.route=t,this.locationStrategy=r,this.commands=[]}return Object.defineProperty(RouterLink.prototype,"routerLink",{set:function(e){Array.isArray(e)?this.commands=e:this.commands=[e]},enumerable:!0,configurable:!0}),RouterLink.prototype.onClick=function(e,t,r){return!(0===e&&!t&&!r)||(this.router.navigateByUrl(this.urlTree),!1)},Object.defineProperty(RouterLink.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:toBool(this.preserveQueryParams),preserveFragment:toBool(this.preserveFragment)})},enumerable:!0,configurable:!0}),RouterLink.decorators=[{type:r.Directive,args:[{selector:":not(a)[routerLink]"}]}],RouterLink.ctorParameters=[{type:ne},{type:U},{type:t.LocationStrategy}],RouterLink.propDecorators={queryParams:[{type:r.Input}],fragment:[{type:r.Input}],preserveQueryParams:[{type:r.Input}],preserveFragment:[{type:r.Input}],routerLink:[{type:r.Input}],onClick:[{type:r.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey"]]}]},RouterLink}(),ce=function(){function RouterLinkWithHref(e,t,r){var n=this;this.router=e,this.route=t,this.locationStrategy=r,this.commands=[],this.subscription=e.events.subscribe(function(e){e instanceof Y&&n.updateTargetUrlAndHref()})}return Object.defineProperty(RouterLinkWithHref.prototype,"routerLink",{set:function(e){Array.isArray(e)?this.commands=e:this.commands=[e]},enumerable:!0,configurable:!0}),RouterLinkWithHref.prototype.ngOnChanges=function(e){this.updateTargetUrlAndHref()},RouterLinkWithHref.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},RouterLinkWithHref.prototype.onClick=function(e,t,r){return!(0===e&&!t&&!r)||("string"==typeof this.target&&"_self"!=this.target||(this.router.navigateByUrl(this.urlTree),!1))},RouterLinkWithHref.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(RouterLinkWithHref.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:toBool(this.preserveQueryParams),
preserveFragment:toBool(this.preserveFragment)})},enumerable:!0,configurable:!0}),RouterLinkWithHref.decorators=[{type:r.Directive,args:[{selector:"a[routerLink]"}]}],RouterLinkWithHref.ctorParameters=[{type:ne},{type:U},{type:t.LocationStrategy}],RouterLinkWithHref.propDecorators={target:[{type:r.Input}],queryParams:[{type:r.Input}],fragment:[{type:r.Input}],routerLinkOptions:[{type:r.Input}],preserveQueryParams:[{type:r.Input}],preserveFragment:[{type:r.Input}],href:[{type:r.HostBinding}],routerLink:[{type:r.Input}],onClick:[{type:r.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey"]]}]},RouterLinkWithHref}(),le=function(){function RouterLinkActive(e,t,r){var n=this;this.router=e,this.element=t,this.renderer=r,this.classes=[],this.routerLinkActiveOptions={exact:!1},this.subscription=e.events.subscribe(function(e){e instanceof Y&&n.update()})}return RouterLinkActive.prototype.ngAfterContentInit=function(){var e=this;this.links.changes.subscribe(function(t){return e.update()}),this.linksWithHrefs.changes.subscribe(function(t){return e.update()}),this.update()},Object.defineProperty(RouterLinkActive.prototype,"routerLinkActive",{set:function(e){Array.isArray(e)?this.classes=e:this.classes=e.split(" ")},enumerable:!0,configurable:!0}),RouterLinkActive.prototype.ngOnChanges=function(e){this.update()},RouterLinkActive.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},RouterLinkActive.prototype.update=function(){var e=this;if(this.links&&this.linksWithHrefs&&this.router.navigated){var t=this.reduceList(this.links),r=this.reduceList(this.linksWithHrefs);this.classes.forEach(function(n){return e.renderer.setElementClass(e.element.nativeElement,n,t||r)})}},RouterLinkActive.prototype.reduceList=function(e){var t=this;return e.reduce(function(e,r){return e||t.router.isActive(r.urlTree,t.routerLinkActiveOptions.exact)},!1)},RouterLinkActive.decorators=[{type:r.Directive,args:[{selector:"[routerLinkActive]"}]}],RouterLinkActive.ctorParameters=[{type:ne},{type:r.ElementRef},{type:r.Renderer}],RouterLinkActive.propDecorators={links:[{type:r.ContentChildren,args:[ue,{descendants:!0}]}],linksWithHrefs:[{type:r.ContentChildren,args:[ce,{descendants:!0}]}],routerLinkActiveOptions:[{type:r.Input}],routerLinkActive:[{type:r.Input}]},RouterLinkActive}(),pe=function(){function RouterOutlet(e,t,n,i){this.parentOutletMap=e,this.location=t,this.resolver=n,this.name=i,this.activateEvents=new r.EventEmitter,this.deactivateEvents=new r.EventEmitter,e.registerOutlet(i?i:_,this)}return RouterOutlet.prototype.ngOnDestroy=function(){this.parentOutletMap.removeOutlet(this.name?this.name:_)},Object.defineProperty(RouterOutlet.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(RouterOutlet.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(RouterOutlet.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),RouterOutlet.prototype.deactivate=function(){if(this.activated){var e=this.component;this.activated.destroy(),this.activated=null,this.deactivateEvents.emit(e)}},RouterOutlet.prototype.activate=function(e,t,n,i,o){this.outletMap=o,this._activatedRoute=e;var s,a=e._futureSnapshot,u=a._routeConfig.component;s=t?t.resolveComponentFactory(u):this.resolver.resolveComponentFactory(u);var c=n?n:this.location.parentInjector,l=r.ReflectiveInjector.fromResolvedProviders(i,c);this.activated=this.location.createComponent(s,this.location.length,l,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},RouterOutlet.decorators=[{type:r.Directive,args:[{selector:"router-outlet"}]}],RouterOutlet.ctorParameters=[{type:Z},{type:r.ViewContainerRef},{type:r.ComponentFactoryResolver},{type:void 0,decorators:[{type:r.Attribute,args:["name"]}]}],RouterOutlet.propDecorators={activateEvents:[{type:r.Output,args:["activate"]}],deactivateEvents:[{type:r.Output,args:["deactivate"]}]},RouterOutlet}(),he=[pe,ue,ce,le],fe=new r.OpaqueToken("ROUTER_CONFIGURATION"),de=new r.OpaqueToken("ROUTER_FORROOT_GUARD"),me=[t.Location,{provide:A,useClass:O},{provide:ne,useFactory:setupRouter,deps:[r.ApplicationRef,A,Z,t.Location,r.Injector,r.NgModuleFactoryLoader,r.Compiler,w,fe]},Z,{provide:U,useFactory:rootRoute,deps:[ne]},{provide:r.NgModuleFactoryLoader,useClass:r.SystemJsNgModuleLoader},{provide:fe,useValue:{enableTracing:!1}}],ve=function(){function RouterModule(e){}return RouterModule.forRoot=function(e,n){return{ngModule:RouterModule,providers:[me,provideRoutes(e),{provide:de,useFactory:provideForRootGuard,deps:[[ne,new r.Optional,new r.SkipSelf]]},{provide:fe,useValue:n?n:{}},{provide:t.LocationStrategy,useFactory:provideLocationStrategy,deps:[t.PlatformLocation,[new r.Inject(t.APP_BASE_HREF),new r.Optional],fe]},provideRouterInitializer()]}},RouterModule.forChild=function(e){return{ngModule:RouterModule,providers:[provideRoutes(e)]}},RouterModule.decorators=[{type:r.NgModule,args:[{declarations:he,exports:he}]}],RouterModule.ctorParameters=[{type:void 0,decorators:[{type:r.Optional},{type:r.Inject,args:[de]}]}],RouterModule}(),ye={ROUTER_PROVIDERS:me,ROUTES:w,flatten:flatten};e.RouterLink=ue,e.RouterLinkWithHref=ce,e.RouterLinkActive=le,e.RouterOutlet=pe,e.NavigationCancel=ee,e.NavigationEnd=Y,e.NavigationError=te,e.NavigationStart=$,e.Router=ne,e.RoutesRecognized=re,e.RouterModule=ve,e.provideRoutes=provideRoutes,e.RouterOutletMap=Z,e.ActivatedRoute=U,e.ActivatedRouteSnapshot=H,e.RouterState=W,e.RouterStateSnapshot=q,e.PRIMARY_OUTLET=_,e.DefaultUrlSerializer=O,e.UrlSegment=x,e.UrlSerializer=A,e.UrlTree=P,e.__router_private__=ye})},function(e,t,r){"use strict";var n=r(65);t.from=n.FromObservable.create},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(11),o=r(35),s=r(29),a=r(66),u=r(41),c=r(67),l=r(36),p=r(5),h=r(68),f=r(18),d=function(e){return e&&"number"==typeof e.length},m=function(e){function FromObservable(t,r){e.call(this,null),this.ish=t,this.scheduler=r}return n(FromObservable,e),FromObservable.create=function(e,t){if(null!=e){if("function"==typeof e[f.$$observable])return e instanceof p.Observable&&!t?e:new FromObservable(e,t);if(i.isArray(e))return new u.ArrayObservable(e,t);if(o.isPromise(e))return new s.PromiseObservable(e,t);if("function"==typeof e[l.$$iterator]||"string"==typeof e)return new a.IteratorObservable(e,t);if(d(e))return new c.ArrayLikeObservable(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")},FromObservable.prototype._subscribe=function(e){var t=this.ish,r=this.scheduler;return null==r?t[f.$$observable]().subscribe(e):t[f.$$observable]().subscribe(new h.ObserveOnSubscriber(e,r,0))},FromObservable}(p.Observable);t.FromObservable=m},function(e,t,r){"use strict";function getIterator(e){var t=e[s.$$iterator];if(!t&&"string"==typeof e)return new u(e);if(!t&&void 0!==e.length)return new c(e);if(!t)throw new TypeError("object is not iterable");return e[s.$$iterator]()}function toLength(e){var t=+e.length;return isNaN(t)?0:0!==t&&numberIsFinite(t)?(t=sign(t)*Math.floor(Math.abs(t)),t<=0?0:t>l?l:t):t}function numberIsFinite(e){return"number"==typeof e&&i.root.isFinite(e)}function sign(e){var t=+e;return 0===t?t:isNaN(t)?t:t<0?-1:1}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(6),o=r(5),s=r(36),a=function(e){function IteratorObservable(t,r){if(e.call(this),this.scheduler=r,null==t)throw new Error("iterator cannot be null.");this.iterator=getIterator(t)}return n(IteratorObservable,e),IteratorObservable.create=function(e,t){return new IteratorObservable(e,t)},IteratorObservable.dispatch=function(e){var t=e.index,r=e.hasError,n=e.iterator,i=e.subscriber;if(r)return void i.error(e.error);var o=n.next();return o.done?void i.complete():(i.next(o.value),e.index=t+1,void(i.closed||this.schedule(e)))},IteratorObservable.prototype._subscribe=function(e){var t=0,r=this,n=r.iterator,i=r.scheduler;if(i)return i.schedule(IteratorObservable.dispatch,0,{index:t,iterator:n,subscriber:e});for(;;){var o=n.next();if(o.done){e.complete();break}if(e.next(o.value),e.closed)break}},IteratorObservable}(o.Observable);t.IteratorObservable=a;var u=function(){function StringIterator(e,t,r){void 0===t&&(t=0),void 0===r&&(r=e.length),this.str=e,this.idx=t,this.len=r}return StringIterator.prototype[s.$$iterator]=function(){return this},StringIterator.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},StringIterator}(),c=function(){function ArrayIterator(e,t,r){void 0===t&&(t=0),void 0===r&&(r=toLength(e)),this.arr=e,this.idx=t,this.len=r}return ArrayIterator.prototype[s.$$iterator]=function(){return this},ArrayIterator.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},ArrayIterator}(),l=Math.pow(2,53)-1},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(5),o=r(42),s=r(33),a=function(e){function ArrayLikeObservable(t,r){e.call(this),this.arrayLike=t,this.scheduler=r,r||1!==t.length||(this._isScalar=!0,this.value=t[0])}return n(ArrayLikeObservable,e),ArrayLikeObservable.create=function(e,t){var r=e.length;return 0===r?new s.EmptyObservable:1===r?new o.ScalarObservable(e[0],t):new ArrayLikeObservable(e,t)},ArrayLikeObservable.dispatch=function(e){var t=e.arrayLike,r=e.index,n=e.length,i=e.subscriber;if(!i.closed){if(r>=n)return void i.complete();i.next(t[r]),e.index=r+1,this.schedule(e)}},ArrayLikeObservable.prototype._subscribe=function(e){var t=0,r=this,n=r.arrayLike,i=r.scheduler,o=n.length;if(i)return i.schedule(ArrayLikeObservable.dispatch,0,{arrayLike:n,index:t,length:o,subscriber:e});for(var s=0;s<o&&!e.closed;s++)e.next(n[s]);e.complete()},ArrayLikeObservable}(i.Observable);t.ArrayLikeObservable=a},function(e,t,r){"use strict";function observeOn(e,t){return void 0===t&&(t=0),this.lift(new s(e,t))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8),o=r(69);t.observeOn=observeOn;var s=function(){function ObserveOnOperator(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return ObserveOnOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.scheduler,this.delay))},ObserveOnOperator}();t.ObserveOnOperator=s;var a=function(e){function ObserveOnSubscriber(t,r,n){void 0===n&&(n=0),e.call(this,t),this.scheduler=r,this.delay=n}return n(ObserveOnSubscriber,e),ObserveOnSubscriber.dispatch=function(e){var t=e.notification,r=e.destination;t.observe(r)},ObserveOnSubscriber.prototype.scheduleMessage=function(e){this.add(this.scheduler.schedule(ObserveOnSubscriber.dispatch,this.delay,new u(e,this.destination)))},ObserveOnSubscriber.prototype._next=function(e){this.scheduleMessage(o.Notification.createNext(e))},ObserveOnSubscriber.prototype._error=function(e){this.scheduleMessage(o.Notification.createError(e))},ObserveOnSubscriber.prototype._complete=function(){this.scheduleMessage(o.Notification.createComplete())},ObserveOnSubscriber}(i.Subscriber);t.ObserveOnSubscriber=a;var u=function(){function ObserveOnMessage(e,t){this.notification=e,this.destination=t}return ObserveOnMessage}();t.ObserveOnMessage=u},function(e,t,r){"use strict";var n=r(5),i=function(){function Notification(e,t,r){this.kind=e,this.value=t,this.exception=r,this.hasValue="N"===e}return Notification.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.exception);case"C":return e.complete&&e.complete()}},Notification.prototype["do"]=function(e,t,r){var n=this.kind;switch(n){case"N":return e&&e(this.value);case"E":return t&&t(this.exception);case"C":return r&&r()}},Notification.prototype.accept=function(e,t,r){return e&&"function"==typeof e.next?this.observe(e):this["do"](e,t,r)},Notification.prototype.toObservable=function(){var e=this.kind;switch(e){case"N":return n.Observable.of(this.value);case"E":return n.Observable["throw"](this.exception);case"C":return n.Observable.empty()}throw new Error("unexpected notification kind value")},Notification.createNext=function(e){return"undefined"!=typeof e?new Notification("N",e):this.undefinedValueNotification},Notification.createError=function(e){return new Notification("E",(void 0),e)},Notification.createComplete=function(){return this.completeNotification},Notification.completeNotification=new Notification("C"),Notification.undefinedValueNotification=new Notification("N",(void 0)),Notification}();t.Notification=i},function(e,t,r){"use strict";function every(e,t){return this.lift(new o(e,t,this))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8);t.every=every;var o=function(){function EveryOperator(e,t,r){this.predicate=e,this.thisArg=t,this.source=r}return EveryOperator.prototype.call=function(e,t){return t._subscribe(new s(e,this.predicate,this.thisArg,this.source))},EveryOperator}(),s=function(e){function EverySubscriber(t,r,n,i){e.call(this,t),this.predicate=r,this.thisArg=n,this.source=i,this.index=0,this.thisArg=n||this}return n(EverySubscriber,e),EverySubscriber.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},EverySubscriber.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(r){return void this.destination.error(r)}t||this.notifyComplete(!1)},EverySubscriber.prototype._complete=function(){this.notifyComplete(!0)},EverySubscriber}(i.Subscriber)},function(e,t,r){"use strict";function mergeAll(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),this.lift(new s(e))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(38),o=r(34);t.mergeAll=mergeAll;var s=function(){function MergeAllOperator(e){this.concurrent=e}return MergeAllOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.concurrent))},MergeAllOperator}();t.MergeAllOperator=s;var a=function(e){function MergeAllSubscriber(t,r){e.call(this,t),this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0}return n(MergeAllSubscriber,e),MergeAllSubscriber.prototype._next=function(e){this.active<this.concurrent?(this.active++,this.add(o.subscribeToResult(this,e))):this.buffer.push(e)},MergeAllSubscriber.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},MergeAllSubscriber.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},MergeAllSubscriber}(i.OuterSubscriber);t.MergeAllSubscriber=a},function(e,t,r){"use strict";function mergeMap(e,t,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"number"==typeof t&&(r=t,t=null),this.lift(new s(e,t,r))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(34),o=r(38);t.mergeMap=mergeMap;var s=function(){function MergeMapOperator(e,t,r){void 0===r&&(r=Number.POSITIVE_INFINITY),this.project=e,this.resultSelector=t,this.concurrent=r}return MergeMapOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.project,this.resultSelector,this.concurrent))},MergeMapOperator}();t.MergeMapOperator=s;var a=function(e){function MergeMapSubscriber(t,r,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY),e.call(this,t),this.project=r,this.resultSelector=n,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return n(MergeMapSubscriber,e),MergeMapSubscriber.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},MergeMapSubscriber.prototype._tryNext=function(e){var t,r=this.index++;try{t=this.project(e,r)}catch(n){return void this.destination.error(n)}this.active++,this._innerSub(t,e,r)},MergeMapSubscriber.prototype._innerSub=function(e,t,r){this.add(i.subscribeToResult(this,e,t,r))},MergeMapSubscriber.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},MergeMapSubscriber.prototype.notifyNext=function(e,t,r,n,i){this.resultSelector?this._notifyResultSelector(e,t,r,n):this.destination.next(t)},MergeMapSubscriber.prototype._notifyResultSelector=function(e,t,r,n){var i;try{i=this.resultSelector(e,t,r,n)}catch(o){return void this.destination.error(o)}this.destination.next(i)},MergeMapSubscriber.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},MergeMapSubscriber}(o.OuterSubscriber);t.MergeMapSubscriber=a},function(e,t,r){"use strict";function reduce(e,t){return this.lift(new o(e,t))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8);t.reduce=reduce;var o=function(){function ReduceOperator(e,t){this.accumulator=e,this.seed=t}return ReduceOperator.prototype.call=function(e,t){return t._subscribe(new s(e,this.accumulator,this.seed))},ReduceOperator}();t.ReduceOperator=o;var s=function(e){function ReduceSubscriber(t,r,n){e.call(this,t),this.accumulator=r,this.hasValue=!1,this.acc=n,this.accumulator=r,this.hasSeed="undefined"!=typeof n}return n(ReduceSubscriber,e),ReduceSubscriber.prototype._next=function(e){this.hasValue||(this.hasValue=this.hasSeed)?this._tryReduce(e):(this.acc=e,this.hasValue=!0)},ReduceSubscriber.prototype._tryReduce=function(e){var t;try{t=this.accumulator(this.acc,e)}catch(r){return void this.destination.error(r)}this.acc=t},ReduceSubscriber.prototype._complete=function(){(this.hasValue||this.hasSeed)&&this.destination.next(this.acc),this.destination.complete()},ReduceSubscriber}(i.Subscriber);t.ReduceSubscriber=s},function(e,t,r){"use strict";function concatAll(){return this.lift(new n.MergeAllOperator(1))}var n=r(71);t.concatAll=concatAll},function(e,t,r){"use strict";function last(e,t,r){return this.lift(new s(e,t,r,this))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8),o=r(61);t.last=last;var s=function(){function LastOperator(e,t,r,n){this.predicate=e,this.resultSelector=t,this.defaultValue=r,this.source=n}return LastOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.predicate,this.resultSelector,this.defaultValue,this.source))},LastOperator}(),a=function(e){function LastSubscriber(t,r,n,i,o){e.call(this,t),this.predicate=r,this.resultSelector=n,this.defaultValue=i,this.source=o,this.hasValue=!1,this.index=0,"undefined"!=typeof i&&(this.lastValue=i,this.hasValue=!0)}return n(LastSubscriber,e),LastSubscriber.prototype._next=function(e){var t=this.index++;if(this.predicate)this._tryPredicate(e,t);else{if(this.resultSelector)return void this._tryResultSelector(e,t);this.lastValue=e,this.hasValue=!0}},LastSubscriber.prototype._tryPredicate=function(e,t){var r;try{r=this.predicate(e,t,this.source)}catch(n){return void this.destination.error(n)}if(r){if(this.resultSelector)return void this._tryResultSelector(e,t);this.lastValue=e,this.hasValue=!0}},LastSubscriber.prototype._tryResultSelector=function(e,t){var r;try{r=this.resultSelector(e,t)}catch(n){return void this.destination.error(n)}this.lastValue=r,this.hasValue=!0},LastSubscriber.prototype._complete=function(){var e=this.destination;this.hasValue?(e.next(this.lastValue),e.complete()):e.error(new o.EmptyError)},LastSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(4),o=r(19),s=function(e){function BehaviorSubject(t){e.call(this),this._value=t}return n(BehaviorSubject,e),Object.defineProperty(BehaviorSubject.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),BehaviorSubject.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return r&&!r.closed&&t.next(this._value),r},BehaviorSubject.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.ObjectUnsubscribedError;return this._value},BehaviorSubject.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},BehaviorSubject}(i.Subject);t.BehaviorSubject=s},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(e,t,r){"use strict";var n=r(4);t.Subject=n.Subject;var i=r(5);t.Observable=i.Observable,r(451),r(455),r(458),r(461),r(464),r(467),r(30),r(469),r(470),r(473),r(476),r(477),r(479),r(482),r(491),r(494),r(496),r(39),r(500),r(502),r(505),r(508),r(511),r(514),r(518),r(521),r(524),r(532),r(534),r(536),r(538),r(540),r(542),r(57),r(544),r(546),r(547),r(548),r(549),r(551),r(554),r(556),r(558),r(560),r(562),r(564),r(566),r(568),r(570),r(572),r(574),r(48),r(576),r(578),r(580),r(582),r(46),r(55),r(585),r(587),r(59),r(589),r(594),r(596),r(598),r(600),r(602),r(603),r(605),r(44),r(606),r(608),r(610),r(612),r(613),r(614),r(615),r(616),r(618),r(620),r(621),r(622),r(623),r(625),r(628),r(630),r(632),r(634),r(636),r(638),r(639),r(640),r(642),r(644),r(646),r(648),r(650),r(652),r(654),r(50),r(656),r(658),r(660),r(662),r(664),r(666),r(674),r(676),r(678),r(680),r(682),r(684),r(686),r(688),r(690),r(692),r(694),r(696),r(698),r(700),r(702),r(703),r(705),r(707),r(709),r(711),r(713),r(715),r(716);var o=r(10);t.Subscription=o.Subscription;var s=r(8);t.Subscriber=s.Subscriber;var a=r(454);t.AsyncSubject=a.AsyncSubject;var u=r(527);t.ReplaySubject=u.ReplaySubject;var c=r(76);t.BehaviorSubject=c.BehaviorSubject;var l=r(53);t.MulticastObservable=l.MulticastObservable;var p=r(54);t.ConnectableObservable=p.ConnectableObservable;var h=r(69);t.Notification=h.Notification;var f=r(61);t.EmptyError=f.EmptyError;var d=r(584);t.ArgumentOutOfRangeError=d.ArgumentOutOfRangeError;var m=r(19);t.ObjectUnsubscribedError=m.ObjectUnsubscribedError;var v=r(15);t.UnsubscriptionError=v.UnsubscriptionError;var y=r(693);t.TimeInterval=y.TimeInterval;var b=r(699);t.Timestamp=b.Timestamp;var g=r(718);t.TestScheduler=g.TestScheduler;var _=r(724);t.VirtualTimeScheduler=_.VirtualTimeScheduler;var S=r(523);t.AjaxResponse=S.AjaxResponse,t.AjaxError=S.AjaxError,t.AjaxTimeoutError=S.AjaxTimeoutError;var w=r(669),E=r(486),C=r(528),P=r(725),T=r(17),x=r(36),A=r(18),O={asap:w.asap,queue:C.queue,animationFrame:P.animationFrame,async:E.async};t.Scheduler=O;var I={rxSubscriber:T.$$rxSubscriber,observable:A.$$observable,iterator:x.$$iterator};t.Symbol=I},function(e,t,r){"use strict";var n=r(5),i=r(452);n.Observable.bindCallback=i.bindCallback},function(e,t,r){"use strict";var n=r(453);t.bindCallback=n.BoundCallbackObservable.create},function(e,t,r){"use strict";function dispatchNext(e){var t=e.value,r=e.subject;r.next(t),r.complete()}function dispatchError(e){var t=e.err,r=e.subject;r.error(t)}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(5),o=r(13),s=r(14),a=r(454),u=function(e){function BoundCallbackObservable(t,r,n,i){e.call(this),this.callbackFunc=t,this.selector=r,this.args=n,this.scheduler=i}return n(BoundCallbackObservable,e),BoundCallbackObservable.create=function(e,t,r){return void 0===t&&(t=void 0),function(){for(var n=[],i=0;i<arguments.length;i++)n[i-0]=arguments[i];return new BoundCallbackObservable(e,t,n,r)}},BoundCallbackObservable.prototype._subscribe=function(e){var t=this.callbackFunc,r=this.args,n=this.scheduler,i=this.subject;if(n)return n.schedule(BoundCallbackObservable.dispatch,0,{source:this,subscriber:e});if(!i){i=this.subject=new a.AsyncSubject;var u=function handlerFn(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var r=handlerFn.source,n=r.selector,i=r.subject;if(n){var a=o.tryCatch(n).apply(this,e);a===s.errorObject?i.error(s.errorObject.e):(i.next(a),i.complete())}else i.next(1===e.length?e[0]:e),i.complete()};u.source=this;var c=o.tryCatch(t).apply(this,r.concat(u));c===s.errorObject&&i.error(s.errorObject.e)}return i.subscribe(e)},BoundCallbackObservable.dispatch=function(e){var t=this,r=e.source,n=e.subscriber,i=r.callbackFunc,u=r.args,c=r.scheduler,l=r.subject;if(!l){l=r.subject=new a.AsyncSubject;var p=function handlerFn(){for(var e=[],r=0;r<arguments.length;r++)e[r-0]=arguments[r];var n=handlerFn.source,i=n.selector,a=n.subject;if(i){var u=o.tryCatch(i).apply(this,e);u===s.errorObject?t.add(c.schedule(dispatchError,0,{err:s.errorObject.e,subject:a})):t.add(c.schedule(dispatchNext,0,{value:u,subject:a}))}else{var l=1===e.length?e[0]:e;t.add(c.schedule(dispatchNext,0,{value:l,subject:a}))}};p.source=r;var h=o.tryCatch(i).apply(this,u.concat(p));h===s.errorObject&&l.error(s.errorObject.e)}t.add(l.subscribe(n))},BoundCallbackObservable}(i.Observable);t.BoundCallbackObservable=u},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(4),o=r(10),s=function(e){function AsyncSubject(){e.apply(this,arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}return n(AsyncSubject,e),AsyncSubject.prototype._subscribe=function(t){return this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),o.Subscription.EMPTY):this.hasError?(t.error(this.thrownError),o.Subscription.EMPTY):e.prototype._subscribe.call(this,t)},AsyncSubject.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},AsyncSubject.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},AsyncSubject}(i.Subject);t.AsyncSubject=s},function(e,t,r){"use strict";var n=r(5),i=r(456);n.Observable.bindNodeCallback=i.bindNodeCallback},function(e,t,r){"use strict";var n=r(457);t.bindNodeCallback=n.BoundNodeCallbackObservable.create},function(e,t,r){"use strict";function dispatch(e){var t=this,r=e.source,n=e.subscriber,i=r,u=i.callbackFunc,c=i.args,l=i.scheduler,p=r.subject;if(!p){p=r.subject=new a.AsyncSubject;var h=function handlerFn(){for(var e=[],r=0;r<arguments.length;r++)e[r-0]=arguments[r];var n=handlerFn.source,i=n.selector,a=n.subject,u=e.shift();if(u)a.error(u);else if(i){var c=o.tryCatch(i).apply(this,e);c===s.errorObject?t.add(l.schedule(dispatchError,0,{err:s.errorObject.e,subject:a})):t.add(l.schedule(dispatchNext,0,{value:c,subject:a}))}else{var p=1===e.length?e[0]:e;t.add(l.schedule(dispatchNext,0,{value:p,subject:a}))}};h.source=r;var f=o.tryCatch(u).apply(this,c.concat(h));f===s.errorObject&&p.error(s.errorObject.e)}t.add(p.subscribe(n))}function dispatchNext(e){var t=e.value,r=e.subject;r.next(t),r.complete()}function dispatchError(e){var t=e.err,r=e.subject;r.error(t)}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(5),o=r(13),s=r(14),a=r(454),u=function(e){function BoundNodeCallbackObservable(t,r,n,i){e.call(this),this.callbackFunc=t,this.selector=r,this.args=n,this.scheduler=i}return n(BoundNodeCallbackObservable,e),BoundNodeCallbackObservable.create=function(e,t,r){return void 0===t&&(t=void 0),function(){for(var n=[],i=0;i<arguments.length;i++)n[i-0]=arguments[i];return new BoundNodeCallbackObservable(e,t,n,r)}},BoundNodeCallbackObservable.prototype._subscribe=function(e){var t=this.callbackFunc,r=this.args,n=this.scheduler,i=this.subject;if(n)return n.schedule(dispatch,0,{source:this,subscriber:e});if(!i){i=this.subject=new a.AsyncSubject;var u=function handlerFn(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var r=handlerFn.source,n=r.selector,i=r.subject,a=e.shift();if(a)i.error(a);else if(n){var u=o.tryCatch(n).apply(this,e);u===s.errorObject?i.error(s.errorObject.e):(i.next(u),i.complete())}else i.next(1===e.length?e[0]:e),i.complete()};u.source=this;var c=o.tryCatch(t).apply(this,r.concat(u));c===s.errorObject&&i.error(s.errorObject.e)}return i.subscribe(e)},BoundNodeCallbackObservable}(i.Observable);t.BoundNodeCallbackObservable=u},function(e,t,r){"use strict";var n=r(5),i=r(459);n.Observable.combineLatest=i.combineLatest},function(e,t,r){"use strict";function combineLatest(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var r=null,a=null;return n.isScheduler(e[e.length-1])&&(a=e.pop()),"function"==typeof e[e.length-1]&&(r=e.pop()),1===e.length&&i.isArray(e[0])&&(e=e[0]),new o.ArrayObservable(e,a).lift(new s.CombineLatestOperator(r))}var n=r(43),i=r(11),o=r(41),s=r(460);t.combineLatest=combineLatest},function(e,t,r){"use strict";function combineLatest(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var r=null;return"function"==typeof e[e.length-1]&&(r=e.pop()),1===e.length&&o.isArray(e[0])&&(e=e[0]),e.unshift(this),new i.ArrayObservable(e).lift(new c(r))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(41),o=r(11),s=r(38),a=r(34),u={};t.combineLatest=combineLatest;var c=function(){function CombineLatestOperator(e){this.project=e}return CombineLatestOperator.prototype.call=function(e,t){return t._subscribe(new l(e,this.project))},CombineLatestOperator}();t.CombineLatestOperator=c;var l=function(e){function CombineLatestSubscriber(t,r){e.call(this,t),this.project=r,this.active=0,this.values=[],this.observables=[]}return n(CombineLatestSubscriber,e),CombineLatestSubscriber.prototype._next=function(e){this.values.push(u),this.observables.push(e)},CombineLatestSubscriber.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var r=0;r<t;r++){var n=e[r];this.add(a.subscribeToResult(this,n,n,r))}}},CombineLatestSubscriber.prototype.notifyComplete=function(e){0===(this.active-=1)&&this.destination.complete()},CombineLatestSubscriber.prototype.notifyNext=function(e,t,r,n,i){var o=this.values,s=o[r],a=this.toRespond?s===u?--this.toRespond:this.toRespond:0;o[r]=t,0===a&&(this.project?this._tryProject(o):this.destination.next(o.slice()))},CombineLatestSubscriber.prototype._tryProject=function(e){var t;try{
t=this.project.apply(this,e)}catch(r){return void this.destination.error(r)}this.destination.next(t)},CombineLatestSubscriber}(s.OuterSubscriber);t.CombineLatestSubscriber=l},function(e,t,r){"use strict";var n=r(5),i=r(462);n.Observable.concat=i.concat},function(e,t,r){"use strict";var n=r(463);t.concat=n.concatStatic},function(e,t,r){"use strict";function concat(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return concatStatic.apply(void 0,[this].concat(e))}function concatStatic(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var r=null,s=e;return n.isScheduler(s[e.length-1])&&(r=s.pop()),new i.ArrayObservable(e,r).lift(new o.MergeAllOperator(1))}var n=r(43),i=r(41),o=r(71);t.concat=concat,t.concatStatic=concatStatic},function(e,t,r){"use strict";var n=r(5),i=r(465);n.Observable.defer=i.defer},function(e,t,r){"use strict";var n=r(466);t.defer=n.DeferObservable.create},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(5),o=r(34),s=r(38),a=function(e){function DeferObservable(t){e.call(this),this.observableFactory=t}return n(DeferObservable,e),DeferObservable.create=function(e){return new DeferObservable(e)},DeferObservable.prototype._subscribe=function(e){return new u(e,this.observableFactory)},DeferObservable}(i.Observable);t.DeferObservable=a;var u=function(e){function DeferSubscriber(t,r){e.call(this,t),this.factory=r,this.tryDefer()}return n(DeferSubscriber,e),DeferSubscriber.prototype.tryDefer=function(){try{this._callFactory()}catch(e){this._error(e)}},DeferSubscriber.prototype._callFactory=function(){var e=this.factory();e&&this.add(o.subscribeToResult(this,e))},DeferSubscriber}(s.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(468);n.Observable.empty=i.empty},function(e,t,r){"use strict";var n=r(33);t.empty=n.EmptyObservable.create},function(e,t,r){"use strict";var n=r(5),i=r(64);n.Observable.from=i.from},function(e,t,r){"use strict";var n=r(5),i=r(471);n.Observable.fromEvent=i.fromEvent},function(e,t,r){"use strict";var n=r(472);t.fromEvent=n.FromEventObservable.create},function(e,t,r){"use strict";function isNodeStyleEventEmmitter(e){return!!e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}function isJQueryStyleEventEmitter(e){return!!e&&"function"==typeof e.on&&"function"==typeof e.off}function isNodeList(e){return!!e&&"[object NodeList]"===e.toString()}function isHTMLCollection(e){return!!e&&"[object HTMLCollection]"===e.toString()}function isEventTarget(e){return!!e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(5),o=r(13),s=r(9),a=r(14),u=r(10),c=function(e){function FromEventObservable(t,r,n,i){e.call(this),this.sourceObj=t,this.eventName=r,this.selector=n,this.options=i}return n(FromEventObservable,e),FromEventObservable.create=function(e,t,r,n){return s.isFunction(r)&&(n=r,r=void 0),new FromEventObservable(e,t,n,r)},FromEventObservable.setupSubscription=function(e,t,r,n,i){var o;if(isNodeList(e)||isHTMLCollection(e))for(var s=0,a=e.length;s<a;s++)FromEventObservable.setupSubscription(e[s],t,r,n,i);else if(isEventTarget(e)){var c=e;e.addEventListener(t,r,i),o=function(){return c.removeEventListener(t,r)}}else if(isJQueryStyleEventEmitter(e)){var l=e;e.on(t,r),o=function(){return l.off(t,r)}}else if(isNodeStyleEventEmmitter(e)){var p=e;e.addListener(t,r),o=function(){return p.removeListener(t,r)}}n.add(new u.Subscription(o))},FromEventObservable.prototype._subscribe=function(e){var t=this.sourceObj,r=this.eventName,n=this.options,i=this.selector,s=i?function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];var n=o.tryCatch(i).apply(void 0,t);n===a.errorObject?e.error(a.errorObject.e):e.next(n)}:function(t){return e.next(t)};FromEventObservable.setupSubscription(t,r,s,e,n)},FromEventObservable}(i.Observable);t.FromEventObservable=c},function(e,t,r){"use strict";var n=r(5),i=r(474);n.Observable.fromEventPattern=i.fromEventPattern},function(e,t,r){"use strict";var n=r(475);t.fromEventPattern=n.FromEventPatternObservable.create},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(5),o=r(10),s=function(e){function FromEventPatternObservable(t,r,n){e.call(this),this.addHandler=t,this.removeHandler=r,this.selector=n}return n(FromEventPatternObservable,e),FromEventPatternObservable.create=function(e,t,r){return new FromEventPatternObservable(e,t,r)},FromEventPatternObservable.prototype._subscribe=function(e){var t=this,r=this.removeHandler,n=this.selector?function(){for(var r=[],n=0;n<arguments.length;n++)r[n-0]=arguments[n];t._callSelector(e,r)}:function(t){e.next(t)};this._callAddHandler(n,e),e.add(new o.Subscription(function(){r(n)}))},FromEventPatternObservable.prototype._callSelector=function(e,t){try{var r=this.selector.apply(this,t);e.next(r)}catch(n){e.error(n)}},FromEventPatternObservable.prototype._callAddHandler=function(e,t){try{this.addHandler(e)}catch(r){t.error(r)}},FromEventPatternObservable}(i.Observable);t.FromEventPatternObservable=s},function(e,t,r){"use strict";var n=r(5),i=r(28);n.Observable.fromPromise=i.fromPromise},function(e,t,r){"use strict";var n=r(5),i=r(478);n.Observable.generate=i.GenerateObservable.create},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(5),o=r(43),s=function(e){return e},a=function(e){function GenerateObservable(t,r,n,i,o){e.call(this),this.initialState=t,this.condition=r,this.iterate=n,this.resultSelector=i,this.scheduler=o}return n(GenerateObservable,e),GenerateObservable.create=function(e,t,r,n,i){return 1==arguments.length?new GenerateObservable(e.initialState,e.condition,e.iterate,e.resultSelector||s,e.scheduler):void 0===n||o.isScheduler(n)?new GenerateObservable(e,t,r,s,n):new GenerateObservable(e,t,r,n,i)},GenerateObservable.prototype._subscribe=function(e){var t=this.initialState;if(this.scheduler)return this.scheduler.schedule(GenerateObservable.dispatch,0,{subscriber:e,iterate:this.iterate,condition:this.condition,resultSelector:this.resultSelector,state:t});for(var r=this,n=r.condition,i=r.resultSelector,o=r.iterate;;){if(n){var s=void 0;try{s=n(t)}catch(a){return void e.error(a)}if(!s){e.complete();break}}var u=void 0;try{u=i(t)}catch(a){return void e.error(a)}if(e.next(u),e.closed)break;try{t=o(t)}catch(a){return void e.error(a)}}},GenerateObservable.dispatch=function(e){var t=e.subscriber,r=e.condition;if(!t.closed){if(e.needIterate)try{e.state=e.iterate(e.state)}catch(n){return void t.error(n)}else e.needIterate=!0;if(r){var i=void 0;try{i=r(e.state)}catch(n){return void t.error(n)}if(!i)return void t.complete();if(t.closed)return}var o;try{o=e.resultSelector(e.state)}catch(n){return void t.error(n)}if(!t.closed&&(t.next(o),!t.closed))return this.schedule(e)}},GenerateObservable}(i.Observable);t.GenerateObservable=a},function(e,t,r){"use strict";var n=r(5),i=r(480);n.Observable["if"]=i._if},function(e,t,r){"use strict";var n=r(481);t._if=n.IfObservable.create},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(5),o=r(34),s=r(38),a=function(e){function IfObservable(t,r,n){e.call(this),this.condition=t,this.thenSource=r,this.elseSource=n}return n(IfObservable,e),IfObservable.create=function(e,t,r){return new IfObservable(e,t,r)},IfObservable.prototype._subscribe=function(e){var t=this,r=t.condition,n=t.thenSource,i=t.elseSource;return new u(e,r,n,i)},IfObservable}(i.Observable);t.IfObservable=a;var u=function(e){function IfSubscriber(t,r,n,i){e.call(this,t),this.condition=r,this.thenSource=n,this.elseSource=i,this.tryIf()}return n(IfSubscriber,e),IfSubscriber.prototype.tryIf=function(){var e,t=this,r=t.condition,n=t.thenSource,i=t.elseSource;try{e=r();var s=e?n:i;s?this.add(o.subscribeToResult(this,s)):this._complete()}catch(a){this._error(a)}},IfSubscriber}(s.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(483);n.Observable.interval=i.interval},function(e,t,r){"use strict";var n=r(484);t.interval=n.IntervalObservable.create},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(485),o=r(5),s=r(486),a=function(e){function IntervalObservable(t,r){void 0===t&&(t=0),void 0===r&&(r=s.async),e.call(this),this.period=t,this.scheduler=r,(!i.isNumeric(t)||t<0)&&(this.period=0),r&&"function"==typeof r.schedule||(this.scheduler=s.async)}return n(IntervalObservable,e),IntervalObservable.create=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=s.async),new IntervalObservable(e,t)},IntervalObservable.dispatch=function(e){var t=e.index,r=e.subscriber,n=e.period;r.next(t),r.closed||(e.index+=1,this.schedule(e,n))},IntervalObservable.prototype._subscribe=function(e){var t=0,r=this.period,n=this.scheduler;e.add(n.schedule(IntervalObservable.dispatch,r,{index:t,subscriber:e,period:r}))},IntervalObservable}(o.Observable);t.IntervalObservable=a},function(e,t,r){"use strict";function isNumeric(e){return!n.isArray(e)&&e-parseFloat(e)+1>=0}var n=r(11);t.isNumeric=isNumeric},function(e,t,r){"use strict";var n=r(487),i=r(489);t.async=new i.AsyncScheduler(n.AsyncAction)},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(6),o=r(488),s=function(e){function AsyncAction(t,r){e.call(this,t,r),this.scheduler=t,this.work=r,this.pending=!1}return n(AsyncAction,e),AsyncAction.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e,this.pending=!0;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,t)),this.delay=t,this.id=this.id||this.requestAsyncId(n,this.id,t),this},AsyncAction.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),i.root.setInterval(e.flush.bind(e,this),r)},AsyncAction.prototype.recycleAsyncId=function(e,t,r){return void 0===r&&(r=0),null!==r&&this.delay===r?t:i.root.clearInterval(t)&&void 0||void 0},AsyncAction.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);return r?r:void(this.pending===!1&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null)))},AsyncAction.prototype._execute=function(e,t){var r=!1,n=void 0;try{this.work(e)}catch(i){r=!0,n=!!i&&i||new Error(i)}if(r)return this.unsubscribe(),n},AsyncAction.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,r=t.actions,n=r.indexOf(this);this.work=null,this.delay=null,this.state=null,this.pending=!1,this.scheduler=null,n!==-1&&r.splice(n,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null))},AsyncAction}(o.Action);t.AsyncAction=s},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(10),o=function(e){function Action(t,r){e.call(this)}return n(Action,e),Action.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},Action}(i.Subscription);t.Action=o},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(490),o=function(e){function AsyncScheduler(){e.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return n(AsyncScheduler,e),AsyncScheduler.prototype.flush=function(e){var t=this.actions;if(this.active)return void t.push(e);var r;this.active=!0;do if(r=e.execute(e.state,e.delay))break;while(e=t.shift());if(this.active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}},AsyncScheduler}(i.Scheduler);t.AsyncScheduler=o},function(e,t){"use strict";var r=function(){function Scheduler(e,t){void 0===t&&(t=Scheduler.now),this.SchedulerAction=e,this.now=t}return Scheduler.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(r,t)},Scheduler.now=Date.now?Date.now:function(){return+new Date},Scheduler}();t.Scheduler=r},function(e,t,r){"use strict";var n=r(5),i=r(492);n.Observable.merge=i.merge},function(e,t,r){"use strict";var n=r(493);t.merge=n.mergeStatic},function(e,t,r){"use strict";function merge(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return e.unshift(this),mergeStatic.apply(this,e)}function mergeStatic(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var r=Number.POSITIVE_INFINITY,s=null,a=e[e.length-1];return o.isScheduler(a)?(s=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(r=e.pop())):"number"==typeof a&&(r=e.pop()),1===e.length?e[0]:new n.ArrayObservable(e,s).lift(new i.MergeAllOperator(r))}var n=r(41),i=r(71),o=r(43);t.merge=merge,t.mergeStatic=mergeStatic},function(e,t,r){"use strict";var n=r(5),i=r(495);n.Observable.race=i.raceStatic},function(e,t,r){"use strict";function race(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return 1===e.length&&i.isArray(e[0])&&(e=e[0]),e.unshift(this),raceStatic.apply(this,e)}function raceStatic(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];if(1===e.length){if(!i.isArray(e[0]))return e[0];e=e[0]}return new o.ArrayObservable(e).lift(new u)}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(11),o=r(41),s=r(38),a=r(34);t.race=race,t.raceStatic=raceStatic;var u=function(){function RaceOperator(){}return RaceOperator.prototype.call=function(e,t){return t._subscribe(new c(e))},RaceOperator}();t.RaceOperator=u;var c=function(e){function RaceSubscriber(t){e.call(this,t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}return n(RaceSubscriber,e),RaceSubscriber.prototype._next=function(e){this.observables.push(e)},RaceSubscriber.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(var r=0;r<t;r++){var n=e[r],i=a.subscribeToResult(this,n,n,r);this.subscriptions&&(this.subscriptions.push(i),this.add(i))}this.observables=null}},RaceSubscriber.prototype.notifyNext=function(e,t,r,n,i){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==r){var s=this.subscriptions[o];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(t)},RaceSubscriber}(s.OuterSubscriber);t.RaceSubscriber=c},function(e,t,r){"use strict";var n=r(5),i=r(497);n.Observable.never=i.never},function(e,t,r){"use strict";var n=r(498);t.never=n.NeverObservable.create},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(5),o=r(499),s=function(e){function NeverObservable(){e.call(this)}return n(NeverObservable,e),NeverObservable.create=function(){return new NeverObservable},NeverObservable.prototype._subscribe=function(e){o.noop()},NeverObservable}(i.Observable);t.NeverObservable=s},function(e,t){"use strict";function noop(){}t.noop=noop},function(e,t,r){"use strict";var n=r(5),i=r(501);n.Observable.onErrorResumeNext=i.onErrorResumeNextStatic},function(e,t,r){"use strict";function onErrorResumeNext(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return 1===e.length&&o.isArray(e[0])&&(e=e[0]),this.lift(new u(e))}function onErrorResumeNextStatic(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var r=null;return 1===e.length&&o.isArray(e[0])&&(e=e[0]),r=e.shift(),new i.FromObservable(r,null).lift(new u(e))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(65),o=r(11),s=r(38),a=r(34);t.onErrorResumeNext=onErrorResumeNext,t.onErrorResumeNextStatic=onErrorResumeNextStatic;var u=function(){function OnErrorResumeNextOperator(e){this.nextSources=e}return OnErrorResumeNextOperator.prototype.call=function(e,t){return t._subscribe(new c(e,this.nextSources))},OnErrorResumeNextOperator}(),c=function(e){function OnErrorResumeNextSubscriber(t,r){e.call(this,t),this.destination=t,this.nextSources=r}return n(OnErrorResumeNextSubscriber,e),OnErrorResumeNextSubscriber.prototype.notifyError=function(e,t){this.subscribeToNextSource()},OnErrorResumeNextSubscriber.prototype.notifyComplete=function(e){this.subscribeToNextSource()},OnErrorResumeNextSubscriber.prototype._error=function(e){this.subscribeToNextSource()},OnErrorResumeNextSubscriber.prototype._complete=function(){this.subscribeToNextSource()},OnErrorResumeNextSubscriber.prototype.subscribeToNextSource=function(){var e=this.nextSources.shift();e?this.add(a.subscribeToResult(this,e)):this.destination.complete()},OnErrorResumeNextSubscriber}(s.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(503);n.Observable.pairs=i.pairs},function(e,t,r){"use strict";var n=r(504);t.pairs=n.PairsObservable.create},function(e,t,r){"use strict";function dispatch(e){var t=e.obj,r=e.keys,n=e.length,i=e.index,o=e.subscriber;if(i===n)return void o.complete();var s=r[i];o.next([s,t[s]]),e.index=i+1,this.schedule(e)}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(5),o=function(e){function PairsObservable(t,r){e.call(this),this.obj=t,this.scheduler=r,this.keys=Object.keys(t)}return n(PairsObservable,e),PairsObservable.create=function(e,t){return new PairsObservable(e,t)},PairsObservable.prototype._subscribe=function(e){var t=this,r=t.keys,n=t.scheduler,i=r.length;if(n)return n.schedule(dispatch,0,{obj:this.obj,keys:r,length:i,index:0,subscriber:e});for(var o=0;o<i;o++){var s=r[o];e.next([s,this.obj[s]])}e.complete()},PairsObservable}(i.Observable);t.PairsObservable=o},function(e,t,r){"use strict";var n=r(5),i=r(506);n.Observable.range=i.range},function(e,t,r){"use strict";var n=r(507);t.range=n.RangeObservable.create},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(5),o=function(e){function RangeObservable(t,r,n){e.call(this),this.start=t,this._count=r,this.scheduler=n}return n(RangeObservable,e),RangeObservable.create=function(e,t,r){return void 0===e&&(e=0),void 0===t&&(t=0),new RangeObservable(e,t,r)},RangeObservable.dispatch=function(e){var t=e.start,r=e.index,n=e.count,i=e.subscriber;return r>=n?void i.complete():(i.next(t),void(i.closed||(e.index=r+1,e.start=t+1,this.schedule(e))))},RangeObservable.prototype._subscribe=function(e){var t=0,r=this.start,n=this._count,i=this.scheduler;if(i)return i.schedule(RangeObservable.dispatch,0,{index:t,count:n,start:r,subscriber:e});for(;;){if(t++>=n){e.complete();break}if(e.next(r++),e.closed)break}},RangeObservable}(i.Observable);t.RangeObservable=o},function(e,t,r){"use strict";var n=r(5),i=r(509);n.Observable.using=i.using},function(e,t,r){"use strict";var n=r(510);t.using=n.UsingObservable.create},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(5),o=r(34),s=r(38),a=function(e){function UsingObservable(t,r){e.call(this),this.resourceFactory=t,this.observableFactory=r}return n(UsingObservable,e),UsingObservable.create=function(e,t){return new UsingObservable(e,t)},UsingObservable.prototype._subscribe=function(e){var t,r=this,n=r.resourceFactory,i=r.observableFactory;try{return t=n(),new u(e,t,i)}catch(o){e.error(o)}},UsingObservable}(i.Observable);t.UsingObservable=a;var u=function(e){function UsingSubscriber(t,r,n){e.call(this,t),this.resource=r,this.observableFactory=n,t.add(r),this.tryUse()}return n(UsingSubscriber,e),UsingSubscriber.prototype.tryUse=function(){try{var e=this.observableFactory.call(this,this.resource);e&&this.add(o.subscribeToResult(this,e))}catch(t){this._error(t)}},UsingSubscriber}(s.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(512);n.Observable["throw"]=i._throw},function(e,t,r){"use strict";var n=r(513);t._throw=n.ErrorObservable.create},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(5),o=function(e){function ErrorObservable(t,r){e.call(this),this.error=t,this.scheduler=r}return n(ErrorObservable,e),ErrorObservable.create=function(e,t){return new ErrorObservable(e,t)},ErrorObservable.dispatch=function(e){var t=e.error,r=e.subscriber;r.error(t)},ErrorObservable.prototype._subscribe=function(e){var t=this.error,r=this.scheduler;return r?r.schedule(ErrorObservable.dispatch,0,{error:t,subscriber:e}):void e.error(t)},ErrorObservable}(i.Observable);t.ErrorObservable=o},function(e,t,r){"use strict";var n=r(5),i=r(515);n.Observable.timer=i.timer},function(e,t,r){"use strict";var n=r(516);t.timer=n.TimerObservable.create},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(485),o=r(5),s=r(486),a=r(43),u=r(517),c=function(e){function TimerObservable(t,r,n){void 0===t&&(t=0),e.call(this),this.period=-1,this.dueTime=0,i.isNumeric(r)?this.period=Number(r)<1&&1||Number(r):a.isScheduler(r)&&(n=r),a.isScheduler(n)||(n=s.async),this.scheduler=n,this.dueTime=u.isDate(t)?+t-this.scheduler.now():t}return n(TimerObservable,e),TimerObservable.create=function(e,t,r){return void 0===e&&(e=0),new TimerObservable(e,t,r)},TimerObservable.dispatch=function(e){var t=e.index,r=e.period,n=e.subscriber,i=this;if(n.next(t),!n.closed){if(r===-1)return n.complete();e.index=t+1,i.schedule(e,r)}},TimerObservable.prototype._subscribe=function(e){var t=0,r=this,n=r.period,i=r.dueTime,o=r.scheduler;return o.schedule(TimerObservable.dispatch,i,{index:t,period:n,subscriber:e})},TimerObservable}(o.Observable);t.TimerObservable=c},function(e,t){"use strict";function isDate(e){return e instanceof Date&&!isNaN(+e)}t.isDate=isDate},function(e,t,r){"use strict";var n=r(5),i=r(519);n.Observable.zip=i.zip},function(e,t,r){"use strict";var n=r(520);t.zip=n.zipStatic},function(e,t,r){"use strict";function zipProto(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return e.unshift(this),zipStatic.apply(this,e)}function zipStatic(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var r=e[e.length-1];return"function"==typeof r&&e.pop(),new i.ArrayObservable(e).lift(new l(r))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(41),o=r(11),s=r(8),a=r(38),u=r(34),c=r(36);t.zipProto=zipProto,t.zipStatic=zipStatic;var l=function(){function ZipOperator(e){this.project=e}return ZipOperator.prototype.call=function(e,t){return t._subscribe(new p(e,this.project))},ZipOperator}();t.ZipOperator=l;var p=function(e){function ZipSubscriber(t,r,n){void 0===n&&(n=Object.create(null)),e.call(this,t),this.index=0,this.iterators=[],this.active=0,this.project="function"==typeof r?r:null,this.values=n}return n(ZipSubscriber,e),ZipSubscriber.prototype._next=function(e){var t=this.iterators,r=this.index++;o.isArray(e)?t.push(new f(e)):"function"==typeof e[c.$$iterator]?t.push(new h(e[c.$$iterator]())):t.push(new d(this.destination,this,e,r))},ZipSubscriber.prototype._complete=function(){var e=this.iterators,t=e.length;this.active=t;for(var r=0;r<t;r++){var n=e[r];n.stillUnsubscribed?this.add(n.subscribe(n,r)):this.active--}},ZipSubscriber.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},ZipSubscriber.prototype.checkIterators=function(){for(var e=this.iterators,t=e.length,r=this.destination,n=0;n<t;n++){var i=e[n];if("function"==typeof i.hasValue&&!i.hasValue())return}for(var o=!1,s=[],n=0;n<t;n++){var i=e[n],a=i.next();if(i.hasCompleted()&&(o=!0),a.done)return void r.complete();s.push(a.value)}this.project?this._tryProject(s):r.next(s),o&&r.complete()},ZipSubscriber.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(r){return void this.destination.error(r)}this.destination.next(t)},ZipSubscriber}(s.Subscriber);t.ZipSubscriber=p;var h=function(){function StaticIterator(e){this.iterator=e,this.nextResult=e.next()}return StaticIterator.prototype.hasValue=function(){return!0},StaticIterator.prototype.next=function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e},StaticIterator.prototype.hasCompleted=function(){var e=this.nextResult;return e&&e.done},StaticIterator}(),f=function(){function StaticArrayIterator(e){this.array=e,this.index=0,this.length=0,this.length=e.length}return StaticArrayIterator.prototype[c.$$iterator]=function(){return this},StaticArrayIterator.prototype.next=function(e){var t=this.index++,r=this.array;return t<this.length?{value:r[t],done:!1}:{value:null,done:!0}},StaticArrayIterator.prototype.hasValue=function(){return this.array.length>this.index},StaticArrayIterator.prototype.hasCompleted=function(){return this.array.length===this.index},StaticArrayIterator}(),d=function(e){function ZipBufferIterator(t,r,n,i){e.call(this,t),this.parent=r,this.observable=n,this.index=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}return n(ZipBufferIterator,e),ZipBufferIterator.prototype[c.$$iterator]=function(){return this},ZipBufferIterator.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},ZipBufferIterator.prototype.hasValue=function(){return this.buffer.length>0},ZipBufferIterator.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},ZipBufferIterator.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},ZipBufferIterator.prototype.notifyNext=function(e,t,r,n,i){this.buffer.push(t),this.parent.checkIterators()},ZipBufferIterator.prototype.subscribe=function(e,t){return u.subscribeToResult(this,this.observable,this,t)},ZipBufferIterator}(a.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(522);n.Observable.ajax=i.ajax},function(e,t,r){"use strict";var n=r(523);t.ajax=n.AjaxObservable.create},function(e,t,r){"use strict";function getCORSRequest(){if(i.root.XMLHttpRequest){var e=new i.root.XMLHttpRequest;return"withCredentials"in e&&(e.withCredentials=!!this.withCredentials),e}if(i.root.XDomainRequest)return new i.root.XDomainRequest;throw new Error("CORS is not supported by your browser")}function getXMLHttpRequest(){if(i.root.XMLHttpRequest)return new i.root.XMLHttpRequest;var e=void 0;try{for(var t=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],r=0;r<3;r++)try{if(e=t[r],new i.root.ActiveXObject(e))break}catch(n){}return new i.root.ActiveXObject(e)}catch(n){throw new Error("XMLHttpRequest is not supported by your browser")}}function ajaxGet(e,t){return void 0===t&&(t=null),new l({method:"GET",url:e,headers:t})}function ajaxPost(e,t,r){return new l({method:"POST",url:e,body:t,headers:r})}function ajaxDelete(e,t){return new l({method:"DELETE",url:e,headers:t})}function ajaxPut(e,t,r){return new l({method:"PUT",url:e,body:t,headers:r})}function ajaxGetJSON(e,t){return new l({method:"GET",url:e,responseType:"json",headers:t}).lift(new c.MapOperator(function(e,t){return e.response},null))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(6),o=r(13),s=r(14),a=r(5),u=r(8),c=r(45);t.ajaxGet=ajaxGet,t.ajaxPost=ajaxPost,t.ajaxDelete=ajaxDelete,t.ajaxPut=ajaxPut,t.ajaxGetJSON=ajaxGetJSON;var l=function(e){function AjaxObservable(t){e.call(this);var r={async:!0,createXHR:function(){return this.crossDomain?getCORSRequest.call(this):getXMLHttpRequest()},crossDomain:!1,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof t)r.url=t;else for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);this.request=r}return n(AjaxObservable,e),AjaxObservable.prototype._subscribe=function(e){return new p(e,this.request)},AjaxObservable.create=function(){var e=function(e){return new AjaxObservable(e)};return e.get=ajaxGet,e.post=ajaxPost,e["delete"]=ajaxDelete,e.put=ajaxPut,e.getJSON=ajaxGetJSON,e}(),AjaxObservable}(a.Observable);t.AjaxObservable=l;var p=function(e){function AjaxSubscriber(t,r){e.call(this,t),this.request=r,this.done=!1;var n=r.headers=r.headers||{};r.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),"Content-Type"in n||i.root.FormData&&r.body instanceof i.root.FormData||"undefined"==typeof r.body||(n["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),r.body=this.serializeBody(r.body,r.headers["Content-Type"]),this.send()}return n(AjaxSubscriber,e),AjaxSubscriber.prototype.next=function(e){this.done=!0;var t=this,r=t.xhr,n=t.request,i=t.destination,o=new h(e,r,n);i.next(o)},AjaxSubscriber.prototype.send=function(){var e=this,t=e.request,r=e.request,n=r.user,i=r.method,a=r.url,u=r.async,c=r.password,l=r.headers,p=r.body,h=t.createXHR,f=o.tryCatch(h).call(t);if(f===s.errorObject)this.error(s.errorObject.e);else{this.xhr=f;var d=void 0;if(d=n?o.tryCatch(f.open).call(f,i,a,u,n,c):o.tryCatch(f.open).call(f,i,a,u),d===s.errorObject)return this.error(s.errorObject.e),null;f.timeout=t.timeout,f.responseType=t.responseType,this.setHeaders(f,l),this.setupEvents(f,t),p?f.send(p):f.send()}return f},AjaxSubscriber.prototype.serializeBody=function(e,t){if(!e||"string"==typeof e)return e;if(i.root.FormData&&e instanceof i.root.FormData)return e;if(t){var r=t.indexOf(";");r!==-1&&(t=t.substring(0,r))}switch(t){case"application/x-www-form-urlencoded":return Object.keys(e).map(function(t){return encodeURI(t)+"="+encodeURI(e[t])}).join("&");case"application/json":return JSON.stringify(e);default:return e}},AjaxSubscriber.prototype.setHeaders=function(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])},AjaxSubscriber.prototype.setupEvents=function(e,t){var r=t.progressSubscriber;e.ontimeout=function xhrTimeout(e){var t=xhrTimeout,r=t.subscriber,n=t.progressSubscriber,i=t.request;n&&n.error(e),r.error(new d(this,i))},e.ontimeout.request=t,e.ontimeout.subscriber=this,e.ontimeout.progressSubscriber=r,e.upload&&"withCredentials"in e&&i.root.XDomainRequest&&(r&&(e.onprogress=function xhrProgress(e){var t=xhrProgress.progressSubscriber;t.next(e);
},e.onprogress.progressSubscriber=r),e.onerror=function xhrError(e){var t=xhrError,r=t.progressSubscriber,n=t.subscriber,i=t.request;r&&r.error(e),n.error(new f("ajax error",this,i))},e.onerror.request=t,e.onerror.subscriber=this,e.onerror.progressSubscriber=r),e.onreadystatechange=function xhrReadyStateChange(e){var t=xhrReadyStateChange,r=t.subscriber,n=t.progressSubscriber,i=t.request;if(4===this.readyState){var o=1223===this.status?204:this.status,s="text"===this.responseType?this.response||this.responseText:this.response;0===o&&(o=s?200:0),200<=o&&o<300?(n&&n.complete(),r.next(e),r.complete()):(n&&n.error(e),r.error(new f("ajax error "+o,this,i)))}},e.onreadystatechange.subscriber=this,e.onreadystatechange.progressSubscriber=r,e.onreadystatechange.request=t},AjaxSubscriber.prototype.unsubscribe=function(){var t=this,r=t.done,n=t.xhr;!r&&n&&4!==n.readyState&&n.abort(),e.prototype.unsubscribe.call(this)},AjaxSubscriber}(u.Subscriber);t.AjaxSubscriber=p;var h=function(){function AjaxResponse(e,t,r){switch(this.originalEvent=e,this.xhr=t,this.request=r,this.status=t.status,this.responseType=t.responseType||r.responseType,this.responseType){case"json":"response"in t?this.response=t.responseType?t.response:JSON.parse(t.response||t.responseText||"null"):this.response=JSON.parse(t.responseText||"null");break;case"xml":this.response=t.responseXML;break;case"text":default:this.response="response"in t?t.response:t.responseText}}return AjaxResponse}();t.AjaxResponse=h;var f=function(e){function AjaxError(t,r,n){e.call(this,t),this.message=t,this.xhr=r,this.request=n,this.status=r.status}return n(AjaxError,e),AjaxError}(Error);t.AjaxError=f;var d=function(e){function AjaxTimeoutError(t,r){e.call(this,"ajax timeout",t,r)}return n(AjaxTimeoutError,e),AjaxTimeoutError}(f);t.AjaxTimeoutError=d},function(e,t,r){"use strict";var n=r(5),i=r(525);n.Observable.webSocket=i.webSocket},function(e,t,r){"use strict";var n=r(526);t.webSocket=n.WebSocketSubject.create},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(4),o=r(8),s=r(5),a=r(10),u=r(6),c=r(527),l=r(13),p=r(14),h=r(531),f=function(e){function WebSocketSubject(t,r){if(t instanceof s.Observable)e.call(this,r,t);else{if(e.call(this),this.WebSocketCtor=u.root.WebSocket,this._output=new i.Subject,"string"==typeof t?this.url=t:h.assign(this,t),!this.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new c.ReplaySubject}}return n(WebSocketSubject,e),WebSocketSubject.prototype.resultSelector=function(e){return JSON.parse(e.data)},WebSocketSubject.create=function(e){return new WebSocketSubject(e)},WebSocketSubject.prototype.lift=function(e){var t=new WebSocketSubject(this,this.destination);return t.operator=e,t},WebSocketSubject.prototype.multiplex=function(e,t,r){var n=this;return new s.Observable(function(i){var o=l.tryCatch(e)();o===p.errorObject?i.error(p.errorObject.e):n.next(o);var s=n.subscribe(function(e){var t=l.tryCatch(r)(e);t===p.errorObject?i.error(p.errorObject.e):t&&i.next(e)},function(e){return i.error(e)},function(){return i.complete()});return function(){var e=l.tryCatch(t)();e===p.errorObject?i.error(p.errorObject.e):n.next(e),s.unsubscribe()}})},WebSocketSubject.prototype._connectSocket=function(){var e=this,t=this.WebSocketCtor,r=this._output,n=null;try{n=this.protocol?new t(this.url,this.protocol):new t(this.url),this.socket=n}catch(i){return void r.error(i)}var s=new a.Subscription(function(){e.socket=null,n&&1===n.readyState&&n.close()});n.onopen=function(t){var i=e.openObserver;i&&i.next(t);var a=e.destination;e.destination=o.Subscriber.create(function(e){return 1===n.readyState&&n.send(e)},function(t){var i=e.closingObserver;i&&i.next(void 0),t&&t.code?n.close(t.code,t.reason):r.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),e.destination=new c.ReplaySubject,e.socket=null},function(){var t=e.closingObserver;t&&t.next(void 0),n.close(),e.destination=new c.ReplaySubject,e.socket=null}),a&&a instanceof c.ReplaySubject&&s.add(a.subscribe(e.destination))},n.onerror=function(e){return r.error(e)},n.onclose=function(t){var n=e.closeObserver;n&&n.next(t),t.wasClean?r.complete():r.error(t)},n.onmessage=function(t){var n=l.tryCatch(e.resultSelector)(t);n===p.errorObject?r.error(p.errorObject.e):r.next(n)}},WebSocketSubject.prototype._subscribe=function(e){var t=this,r=this.source;if(r)return r.subscribe(e);this.socket||this._connectSocket();var n=new a.Subscription;return n.add(this._output.subscribe(e)),n.add(function(){var e=t.socket;0===t._output.observers.length&&e&&1===e.readyState&&(e.close(),t.socket=null)}),n},WebSocketSubject.prototype.unsubscribe=function(){var t=this,r=t.source,n=t.socket;n&&1===n.readyState&&(n.close(),this.socket=null),e.prototype.unsubscribe.call(this),r||(this.destination=new c.ReplaySubject)},WebSocketSubject}(i.AnonymousSubject);t.WebSocketSubject=f},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(4),o=r(528),s=r(68),a=function(e){function ReplaySubject(t,r,n){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===r&&(r=Number.POSITIVE_INFINITY),e.call(this),this.scheduler=n,this._events=[],this._bufferSize=t<1?1:t,this._windowTime=r<1?1:r}return n(ReplaySubject,e),ReplaySubject.prototype.next=function(t){var r=this._getNow();this._events.push(new u(r,t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},ReplaySubject.prototype._subscribe=function(t){var r=this._trimBufferThenGetEvents(),n=this.scheduler;n&&t.add(t=new s.ObserveOnSubscriber(t,n));for(var i=r.length,o=0;o<i&&!t.closed;o++)t.next(r[o].value);return e.prototype._subscribe.call(this,t)},ReplaySubject.prototype._getNow=function(){return(this.scheduler||o.queue).now()},ReplaySubject.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,r=this._windowTime,n=this._events,i=n.length,o=0;o<i&&!(e-n[o].time<r);)o++;return i>t&&(o=Math.max(o,i-t)),o>0&&n.splice(0,o),n},ReplaySubject}(i.Subject);t.ReplaySubject=a;var u=function(){function ReplayEvent(e,t){this.time=e,this.value=t}return ReplayEvent}()},function(e,t,r){"use strict";var n=r(529),i=r(530);t.queue=new i.QueueScheduler(n.QueueAction)},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(487),o=function(e){function QueueAction(t,r){e.call(this,t,r),this.scheduler=t,this.work=r}return n(QueueAction,e),QueueAction.prototype.schedule=function(t,r){return void 0===r&&(r=0),r>0?e.prototype.schedule.call(this,t,r):(this.delay=r,this.state=t,this.scheduler.flush(this),this)},QueueAction.prototype.execute=function(t,r){return r>0||this.closed?e.prototype.execute.call(this,t,r):this._execute(t,r)},QueueAction.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):t.flush(this)},QueueAction}(i.AsyncAction);t.QueueAction=o},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(489),o=function(e){function QueueScheduler(){e.apply(this,arguments)}return n(QueueScheduler,e),QueueScheduler}(i.AsyncScheduler);t.QueueScheduler=o},function(e,t,r){"use strict";var n=r(6),i=n.root.Object;"function"!=typeof i.assign&&!function(){i.assign=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(void 0===e||null===e)throw new TypeError("cannot convert undefined or null to object");for(var n=i(e),o=t.length,s=0;s<o;s++){var a=t[s];if(void 0!==a&&null!==a)for(var u in a)a.hasOwnProperty(u)&&(n[u]=a[u])}return n}}(),t.assign=i.assign},function(e,t,r){"use strict";var n=r(5),i=r(533);n.Observable.prototype.buffer=i.buffer},function(e,t,r){"use strict";function buffer(e){return this.lift(new s(e))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(38),o=r(34);t.buffer=buffer;var s=function(){function BufferOperator(e){this.closingNotifier=e}return BufferOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.closingNotifier))},BufferOperator}(),a=function(e){function BufferSubscriber(t,r){e.call(this,t),this.buffer=[],this.add(o.subscribeToResult(this,r))}return n(BufferSubscriber,e),BufferSubscriber.prototype._next=function(e){this.buffer.push(e)},BufferSubscriber.prototype.notifyNext=function(e,t,r,n,i){var o=this.buffer;this.buffer=[],this.destination.next(o)},BufferSubscriber}(i.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(535);n.Observable.prototype.bufferCount=i.bufferCount},function(e,t,r){"use strict";function bufferCount(e,t){return void 0===t&&(t=null),this.lift(new o(e,t))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8);t.bufferCount=bufferCount;var o=function(){function BufferCountOperator(e,t){this.bufferSize=e,this.startBufferEvery=t}return BufferCountOperator.prototype.call=function(e,t){return t._subscribe(new s(e,this.bufferSize,this.startBufferEvery))},BufferCountOperator}(),s=function(e){function BufferCountSubscriber(t,r,n){e.call(this,t),this.bufferSize=r,this.startBufferEvery=n,this.buffers=[[]],this.count=0}return n(BufferCountSubscriber,e),BufferCountSubscriber.prototype._next=function(e){var t=this.count+=1,r=this.destination,n=this.bufferSize,i=null==this.startBufferEvery?n:this.startBufferEvery,o=this.buffers,s=o.length,a=-1;t%i===0&&o.push([]);for(var u=0;u<s;u++){var c=o[u];c.push(e),c.length===n&&(a=u,r.next(c))}a!==-1&&o.splice(a,1)},BufferCountSubscriber.prototype._complete=function(){for(var t=this.destination,r=this.buffers;r.length>0;){var n=r.shift();n.length>0&&t.next(n)}e.prototype._complete.call(this)},BufferCountSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(537);n.Observable.prototype.bufferTime=i.bufferTime},function(e,t,r){"use strict";function bufferTime(e){var t=arguments.length,r=i.async;s.isScheduler(arguments[arguments.length-1])&&(r=arguments[arguments.length-1],t--);var n=null;t>=2&&(n=arguments[1]);var o=Number.POSITIVE_INFINITY;return t>=3&&(o=arguments[2]),this.lift(new a(e,n,o,r))}function dispatchBufferTimeSpanOnly(e){var t=e.subscriber,r=e.context;r&&t.closeContext(r),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function dispatchBufferCreation(e){var t=e.bufferCreationInterval,r=e.bufferTimeSpan,n=e.subscriber,i=e.scheduler,o=n.openContext(),s=this;n.closed||(n.add(o.closeAction=i.schedule(dispatchBufferClose,r,{subscriber:n,context:o})),s.schedule(e,t))}function dispatchBufferClose(e){var t=e.subscriber,r=e.context;t.closeContext(r)}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(486),o=r(8),s=r(43);t.bufferTime=bufferTime;var a=function(){function BufferTimeOperator(e,t,r,n){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=r,this.scheduler=n}return BufferTimeOperator.prototype.call=function(e,t){return t._subscribe(new c(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},BufferTimeOperator}(),u=function(){function Context(){this.buffer=[]}return Context}(),c=function(e){function BufferTimeSubscriber(t,r,n,i,o){e.call(this,t),this.bufferTimeSpan=r,this.bufferCreationInterval=n,this.maxBufferSize=i,this.scheduler=o,this.contexts=[];var s=this.openContext();if(this.timespanOnly=null==n||n<0,this.timespanOnly){var a={subscriber:this,context:s,bufferTimeSpan:r};this.add(s.closeAction=o.schedule(dispatchBufferTimeSpanOnly,r,a))}else{var u={subscriber:this,context:s},c={bufferTimeSpan:r,bufferCreationInterval:n,subscriber:this,scheduler:o};this.add(s.closeAction=o.schedule(dispatchBufferClose,r,u)),this.add(o.schedule(dispatchBufferCreation,n,c))}}return n(BufferTimeSubscriber,e),BufferTimeSubscriber.prototype._next=function(e){for(var t,r=this.contexts,n=r.length,i=0;i<n;i++){var o=r[i],s=o.buffer;s.push(e),s.length==this.maxBufferSize&&(t=o)}t&&this.onBufferFull(t)},BufferTimeSubscriber.prototype._error=function(t){this.contexts.length=0,e.prototype._error.call(this,t)},BufferTimeSubscriber.prototype._complete=function(){for(var t=this,r=t.contexts,n=t.destination;r.length>0;){var i=r.shift();n.next(i.buffer)}e.prototype._complete.call(this)},BufferTimeSubscriber.prototype._unsubscribe=function(){this.contexts=null},BufferTimeSubscriber.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),this.timespanOnly){e=this.openContext();var r=this.bufferTimeSpan,n={subscriber:this,context:e,bufferTimeSpan:r};this.add(e.closeAction=this.scheduler.schedule(dispatchBufferTimeSpanOnly,r,n))}},BufferTimeSubscriber.prototype.openContext=function(){var e=new u;return this.contexts.push(e),e},BufferTimeSubscriber.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts,r=t?t.indexOf(e):-1;r>=0&&t.splice(t.indexOf(e),1)},BufferTimeSubscriber}(o.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(539);n.Observable.prototype.bufferToggle=i.bufferToggle},function(e,t,r){"use strict";function bufferToggle(e,t){return this.lift(new a(e,t))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(10),o=r(34),s=r(38);t.bufferToggle=bufferToggle;var a=function(){function BufferToggleOperator(e,t){this.openings=e,this.closingSelector=t}return BufferToggleOperator.prototype.call=function(e,t){return t._subscribe(new u(e,this.openings,this.closingSelector))},BufferToggleOperator}(),u=function(e){function BufferToggleSubscriber(t,r,n){e.call(this,t),this.openings=r,this.closingSelector=n,this.contexts=[],this.add(o.subscribeToResult(this,r))}return n(BufferToggleSubscriber,e),BufferToggleSubscriber.prototype._next=function(e){for(var t=this.contexts,r=t.length,n=0;n<r;n++)t[n].buffer.push(e)},BufferToggleSubscriber.prototype._error=function(t){for(var r=this.contexts;r.length>0;){var n=r.shift();n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,e.prototype._error.call(this,t)},BufferToggleSubscriber.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var r=t.shift();this.destination.next(r.buffer),r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,e.prototype._complete.call(this)},BufferToggleSubscriber.prototype.notifyNext=function(e,t,r,n,i){e?this.closeBuffer(e):this.openBuffer(t)},BufferToggleSubscriber.prototype.notifyComplete=function(e){this.closeBuffer(e.context)},BufferToggleSubscriber.prototype.openBuffer=function(e){try{var t=this.closingSelector,r=t.call(this,e);r&&this.trySubscribe(r)}catch(n){this._error(n)}},BufferToggleSubscriber.prototype.closeBuffer=function(e){var t=this.contexts;if(t&&e){var r=e.buffer,n=e.subscription;this.destination.next(r),t.splice(t.indexOf(e),1),this.remove(n),n.unsubscribe()}},BufferToggleSubscriber.prototype.trySubscribe=function(e){var t=this.contexts,r=[],n=new i.Subscription,s={buffer:r,subscription:n};t.push(s);var a=o.subscribeToResult(this,e,s);!a||a.closed?this.closeBuffer(s):(a.context=s,this.add(a),n.add(a))},BufferToggleSubscriber}(s.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(541);n.Observable.prototype.bufferWhen=i.bufferWhen},function(e,t,r){"use strict";function bufferWhen(e){return this.lift(new c(e))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(10),o=r(13),s=r(14),a=r(38),u=r(34);t.bufferWhen=bufferWhen;var c=function(){function BufferWhenOperator(e){this.closingSelector=e}return BufferWhenOperator.prototype.call=function(e,t){return t._subscribe(new l(e,this.closingSelector))},BufferWhenOperator}(),l=function(e){function BufferWhenSubscriber(t,r){e.call(this,t),this.closingSelector=r,this.subscribing=!1,this.openBuffer()}return n(BufferWhenSubscriber,e),BufferWhenSubscriber.prototype._next=function(e){this.buffer.push(e)},BufferWhenSubscriber.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),e.prototype._complete.call(this)},BufferWhenSubscriber.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},BufferWhenSubscriber.prototype.notifyNext=function(e,t,r,n,i){this.openBuffer()},BufferWhenSubscriber.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},BufferWhenSubscriber.prototype.openBuffer=function(){var e=this.closingSubscription;e&&(this.remove(e),e.unsubscribe());var t=this.buffer;this.buffer&&this.destination.next(t),this.buffer=[];var r=o.tryCatch(this.closingSelector)();r===s.errorObject?this.error(s.errorObject.e):(e=new i.Subscription,this.closingSubscription=e,this.add(e),this.subscribing=!0,e.add(u.subscribeToResult(this,r)),this.subscribing=!1)},BufferWhenSubscriber}(a.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(543);n.Observable.prototype.cache=i.cache},function(e,t,r){"use strict";function cache(e,t,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===t&&(t=Number.POSITIVE_INFINITY);var o,s,a=this,u=0,c=function(){return o=new i.ReplaySubject(e,t,r)};return new n.Observable(function(e){o||(o=c(),s=a.subscribe(function(e){return o.next(e)},function(e){var t=o;o=null,t.error(e)},function(){return o.complete()})),u++,o||(o=c());var t=o.subscribe(e);return function(){u--,t&&t.unsubscribe(),0===u&&s.unsubscribe()}})}var n=r(5),i=r(527);t.cache=cache},function(e,t,r){"use strict";var n=r(5),i=r(545);n.Observable.prototype.combineAll=i.combineAll},function(e,t,r){"use strict";function combineAll(e){return this.lift(new n.CombineLatestOperator(e))}var n=r(460);t.combineAll=combineAll},function(e,t,r){"use strict";var n=r(5),i=r(460);n.Observable.prototype.combineLatest=i.combineLatest},function(e,t,r){"use strict";var n=r(5),i=r(463);n.Observable.prototype.concat=i.concat},function(e,t,r){"use strict";var n=r(5),i=r(74);n.Observable.prototype.concatAll=i.concatAll},function(e,t,r){"use strict";var n=r(5),i=r(550);n.Observable.prototype.concatMap=i.concatMap},function(e,t,r){"use strict";function concatMap(e,t){return this.lift(new n.MergeMapOperator(e,t,1))}var n=r(72);t.concatMap=concatMap},function(e,t,r){"use strict";var n=r(5),i=r(552);n.Observable.prototype.concatMapTo=i.concatMapTo},function(e,t,r){"use strict";function concatMapTo(e,t){return this.lift(new n.MergeMapToOperator(e,t,1))}var n=r(553);t.concatMapTo=concatMapTo},function(e,t,r){"use strict";function mergeMapTo(e,t,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"number"==typeof t&&(r=t,t=null),this.lift(new s(e,t,r))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(38),o=r(34);t.mergeMapTo=mergeMapTo;var s=function(){function MergeMapToOperator(e,t,r){void 0===r&&(r=Number.POSITIVE_INFINITY),this.ish=e,this.resultSelector=t,this.concurrent=r}return MergeMapToOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.ish,this.resultSelector,this.concurrent))},MergeMapToOperator}();t.MergeMapToOperator=s;var a=function(e){function MergeMapToSubscriber(t,r,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY),e.call(this,t),this.ish=r,this.resultSelector=n,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return n(MergeMapToSubscriber,e),MergeMapToSubscriber.prototype._next=function(e){if(this.active<this.concurrent){var t=this.resultSelector,r=this.index++,n=this.ish,i=this.destination;this.active++,this._innerSub(n,i,t,e,r)}else this.buffer.push(e)},MergeMapToSubscriber.prototype._innerSub=function(e,t,r,n,i){this.add(o.subscribeToResult(this,e,n,i))},MergeMapToSubscriber.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},MergeMapToSubscriber.prototype.notifyNext=function(e,t,r,n,i){var o=this,s=o.resultSelector,a=o.destination;s?this.trySelectResult(e,t,r,n):a.next(t)},MergeMapToSubscriber.prototype.trySelectResult=function(e,t,r,n){var i,o=this,s=o.resultSelector,a=o.destination;try{i=s(e,t,r,n)}catch(u){return void a.error(u)}a.next(i)},MergeMapToSubscriber.prototype.notifyError=function(e){this.destination.error(e)},MergeMapToSubscriber.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},MergeMapToSubscriber}(i.OuterSubscriber);t.MergeMapToSubscriber=a},function(e,t,r){"use strict";var n=r(5),i=r(555);n.Observable.prototype.count=i.count},function(e,t,r){"use strict";function count(e){return this.lift(new o(e,this))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8);t.count=count;var o=function(){function CountOperator(e,t){this.predicate=e,this.source=t}return CountOperator.prototype.call=function(e,t){return t._subscribe(new s(e,this.predicate,this.source))},CountOperator}(),s=function(e){function CountSubscriber(t,r,n){e.call(this,t),this.predicate=r,this.source=n,this.count=0,this.index=0}return n(CountSubscriber,e),CountSubscriber.prototype._next=function(e){this.predicate?this._tryPredicate(e):this.count++},CountSubscriber.prototype._tryPredicate=function(e){var t;try{t=this.predicate(e,this.index++,this.source)}catch(r){return void this.destination.error(r)}t&&this.count++},CountSubscriber.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},CountSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(557);n.Observable.prototype.dematerialize=i.dematerialize},function(e,t,r){"use strict";function dematerialize(){return this.lift(new o)}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8);t.dematerialize=dematerialize;var o=function(){function DeMaterializeOperator(){}return DeMaterializeOperator.prototype.call=function(e,t){return t._subscribe(new s(e))},DeMaterializeOperator}(),s=function(e){function DeMaterializeSubscriber(t){e.call(this,t)}return n(DeMaterializeSubscriber,e),DeMaterializeSubscriber.prototype._next=function(e){e.observe(this.destination)},DeMaterializeSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(559);n.Observable.prototype.debounce=i.debounce},function(e,t,r){"use strict";function debounce(e){return this.lift(new s(e))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(38),o=r(34);t.debounce=debounce;var s=function(){function DebounceOperator(e){this.durationSelector=e}return DebounceOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.durationSelector))},DebounceOperator}(),a=function(e){function DebounceSubscriber(t,r){e.call(this,t),this.durationSelector=r,this.hasValue=!1,this.durationSubscription=null}return n(DebounceSubscriber,e),DebounceSubscriber.prototype._next=function(e){try{var t=this.durationSelector.call(this,e);t&&this._tryNext(e,t)}catch(r){this.destination.error(r)}},DebounceSubscriber.prototype._complete=function(){this.emitValue(),this.destination.complete()},DebounceSubscriber.prototype._tryNext=function(e,t){var r=this.durationSubscription;this.value=e,this.hasValue=!0,r&&(r.unsubscribe(),this.remove(r)),r=o.subscribeToResult(this,t),r.closed||this.add(this.durationSubscription=r)},DebounceSubscriber.prototype.notifyNext=function(e,t,r,n,i){this.emitValue()},DebounceSubscriber.prototype.notifyComplete=function(){this.emitValue()},DebounceSubscriber.prototype.emitValue=function(){if(this.hasValue){var t=this.value,r=this.durationSubscription;r&&(this.durationSubscription=null,r.unsubscribe(),this.remove(r)),this.value=null,this.hasValue=!1,e.prototype._next.call(this,t)}},DebounceSubscriber}(i.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(561);n.Observable.prototype.debounceTime=i.debounceTime},function(e,t,r){"use strict";function debounceTime(e,t){return void 0===t&&(t=o.async),this.lift(new s(e,t))}function dispatchNext(e){e.debouncedNext()}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8),o=r(486);t.debounceTime=debounceTime;var s=function(){function DebounceTimeOperator(e,t){this.dueTime=e,this.scheduler=t}return DebounceTimeOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.dueTime,this.scheduler))},DebounceTimeOperator}(),a=function(e){function DebounceTimeSubscriber(t,r,n){e.call(this,t),this.dueTime=r,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return n(DebounceTimeSubscriber,e),DebounceTimeSubscriber.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(dispatchNext,this.dueTime,this))},DebounceTimeSubscriber.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},DebounceTimeSubscriber.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},DebounceTimeSubscriber.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},DebounceTimeSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(563);n.Observable.prototype.defaultIfEmpty=i.defaultIfEmpty},function(e,t,r){"use strict";function defaultIfEmpty(e){return void 0===e&&(e=null),this.lift(new o(e))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8);t.defaultIfEmpty=defaultIfEmpty;var o=function(){function DefaultIfEmptyOperator(e){this.defaultValue=e}return DefaultIfEmptyOperator.prototype.call=function(e,t){return t._subscribe(new s(e,this.defaultValue))},DefaultIfEmptyOperator}(),s=function(e){function DefaultIfEmptySubscriber(t,r){e.call(this,t),this.defaultValue=r,this.isEmpty=!0}return n(DefaultIfEmptySubscriber,e),DefaultIfEmptySubscriber.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},DefaultIfEmptySubscriber.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},DefaultIfEmptySubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(565);n.Observable.prototype.delay=i.delay},function(e,t,r){"use strict";function delay(e,t){void 0===t&&(t=i.async);var r=o.isDate(e),n=r?+e-t.now():Math.abs(e);return this.lift(new u(n,t))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(486),o=r(517),s=r(8),a=r(69);t.delay=delay;var u=function(){function DelayOperator(e,t){this.delay=e,this.scheduler=t}return DelayOperator.prototype.call=function(e,t){return t._subscribe(new c(e,this.delay,this.scheduler))},DelayOperator}(),c=function(e){function DelaySubscriber(t,r,n){e.call(this,t),this.delay=r,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}return n(DelaySubscriber,e),DelaySubscriber.dispatch=function(e){for(var t=e.source,r=t.queue,n=e.scheduler,i=e.destination;r.length>0&&r[0].time-n.now()<=0;)r.shift().notification.observe(i);if(r.length>0){var o=Math.max(0,r[0].time-n.now());this.schedule(e,o)}else t.active=!1},DelaySubscriber.prototype._schedule=function(e){this.active=!0,this.add(e.schedule(DelaySubscriber.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},DelaySubscriber.prototype.scheduleNotification=function(e){if(this.errored!==!0){var t=this.scheduler,r=new l(t.now()+this.delay,e);this.queue.push(r),this.active===!1&&this._schedule(t)}},DelaySubscriber.prototype._next=function(e){this.scheduleNotification(a.Notification.createNext(e))},DelaySubscriber.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e)},DelaySubscriber.prototype._complete=function(){this.scheduleNotification(a.Notification.createComplete())},DelaySubscriber}(s.Subscriber),l=function(){function DelayMessage(e,t){this.time=e,this.notification=t}return DelayMessage}()},function(e,t,r){"use strict";var n=r(5),i=r(567);n.Observable.prototype.delayWhen=i.delayWhen},function(e,t,r){"use strict";function delayWhen(e,t){return t?new l(this,t).lift(new u(e)):this.lift(new u(e))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8),o=r(5),s=r(38),a=r(34);t.delayWhen=delayWhen;var u=function(){function DelayWhenOperator(e){this.delayDurationSelector=e}return DelayWhenOperator.prototype.call=function(e,t){return t._subscribe(new c(e,this.delayDurationSelector))},DelayWhenOperator}(),c=function(e){function DelayWhenSubscriber(t,r){e.call(this,t),this.delayDurationSelector=r,this.completed=!1,this.delayNotifierSubscriptions=[],this.values=[]}return n(DelayWhenSubscriber,e),DelayWhenSubscriber.prototype.notifyNext=function(e,t,r,n,i){this.destination.next(e),this.removeSubscription(i),this.tryComplete()},DelayWhenSubscriber.prototype.notifyError=function(e,t){this._error(e)},DelayWhenSubscriber.prototype.notifyComplete=function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()},DelayWhenSubscriber.prototype._next=function(e){try{var t=this.delayDurationSelector(e);t&&this.tryDelay(t,e)}catch(r){this.destination.error(r)}},DelayWhenSubscriber.prototype._complete=function(){this.completed=!0,this.tryComplete()},DelayWhenSubscriber.prototype.removeSubscription=function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e),r=null;return t!==-1&&(r=this.values[t],this.delayNotifierSubscriptions.splice(t,1),this.values.splice(t,1)),r},DelayWhenSubscriber.prototype.tryDelay=function(e,t){var r=a.subscribeToResult(this,e,t);this.add(r),this.delayNotifierSubscriptions.push(r),this.values.push(t)},DelayWhenSubscriber.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},DelayWhenSubscriber}(s.OuterSubscriber),l=function(e){function SubscriptionDelayObservable(t,r){e.call(this),this.source=t,this.subscriptionDelay=r}return n(SubscriptionDelayObservable,e),SubscriptionDelayObservable.prototype._subscribe=function(e){
this.subscriptionDelay.subscribe(new p(e,this.source))},SubscriptionDelayObservable}(o.Observable),p=function(e){function SubscriptionDelaySubscriber(t,r){e.call(this),this.parent=t,this.source=r,this.sourceSubscribed=!1}return n(SubscriptionDelaySubscriber,e),SubscriptionDelaySubscriber.prototype._next=function(e){this.subscribeToSource()},SubscriptionDelaySubscriber.prototype._error=function(e){this.unsubscribe(),this.parent.error(e)},SubscriptionDelaySubscriber.prototype._complete=function(){this.subscribeToSource()},SubscriptionDelaySubscriber.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},SubscriptionDelaySubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(569);n.Observable.prototype.distinct=i.distinct},function(e,t,r){"use strict";function distinct(e,t){return this.lift(new s(e,t))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(38),o=r(34);t.distinct=distinct;var s=function(){function DistinctOperator(e,t){this.compare=e,this.flushes=t}return DistinctOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.compare,this.flushes))},DistinctOperator}(),a=function(e){function DistinctSubscriber(t,r,n){e.call(this,t),this.values=[],"function"==typeof r&&(this.compare=r),n&&this.add(o.subscribeToResult(this,n))}return n(DistinctSubscriber,e),DistinctSubscriber.prototype.notifyNext=function(e,t,r,n,i){this.values.length=0},DistinctSubscriber.prototype.notifyError=function(e,t){this._error(e)},DistinctSubscriber.prototype._next=function(e){var t=!1,r=this.values,n=r.length;try{for(var i=0;i<n;i++)if(this.compare(r[i],e))return void(t=!0)}catch(o){return void this.destination.error(o)}this.values.push(e),this.destination.next(e)},DistinctSubscriber.prototype.compare=function(e,t){return e===t},DistinctSubscriber}(i.OuterSubscriber);t.DistinctSubscriber=a},function(e,t,r){"use strict";var n=r(5),i=r(571);n.Observable.prototype.distinctKey=i.distinctKey},function(e,t,r){"use strict";function distinctKey(e,t,r){return n.distinct.call(this,function(r,n){return t?t(r[e],n[e]):r[e]===n[e]},r)}var n=r(569);t.distinctKey=distinctKey},function(e,t,r){"use strict";var n=r(5),i=r(573);n.Observable.prototype.distinctUntilChanged=i.distinctUntilChanged},function(e,t,r){"use strict";function distinctUntilChanged(e,t){return this.lift(new a(e,t))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8),o=r(13),s=r(14);t.distinctUntilChanged=distinctUntilChanged;var a=function(){function DistinctUntilChangedOperator(e,t){this.compare=e,this.keySelector=t}return DistinctUntilChangedOperator.prototype.call=function(e,t){return t._subscribe(new u(e,this.compare,this.keySelector))},DistinctUntilChangedOperator}(),u=function(e){function DistinctUntilChangedSubscriber(t,r,n){e.call(this,t),this.keySelector=n,this.hasKey=!1,"function"==typeof r&&(this.compare=r)}return n(DistinctUntilChangedSubscriber,e),DistinctUntilChangedSubscriber.prototype.compare=function(e,t){return e===t},DistinctUntilChangedSubscriber.prototype._next=function(e){var t=this.keySelector,r=e;if(t&&(r=o.tryCatch(this.keySelector)(e),r===s.errorObject))return this.destination.error(s.errorObject.e);var n=!1;if(this.hasKey){if(n=o.tryCatch(this.compare)(this.key,r),n===s.errorObject)return this.destination.error(s.errorObject.e)}else this.hasKey=!0;Boolean(n)===!1&&(this.key=r,this.destination.next(e))},DistinctUntilChangedSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(575);n.Observable.prototype.distinctUntilKeyChanged=i.distinctUntilKeyChanged},function(e,t,r){"use strict";function distinctUntilKeyChanged(e,t){return n.distinctUntilChanged.call(this,function(r,n){return t?t(r[e],n[e]):r[e]===n[e]})}var n=r(573);t.distinctUntilKeyChanged=distinctUntilKeyChanged},function(e,t,r){"use strict";var n=r(5),i=r(577);n.Observable.prototype.exhaust=i.exhaust},function(e,t,r){"use strict";function exhaust(){return this.lift(new s)}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(38),o=r(34);t.exhaust=exhaust;var s=function(){function SwitchFirstOperator(){}return SwitchFirstOperator.prototype.call=function(e,t){return t._subscribe(new a(e))},SwitchFirstOperator}(),a=function(e){function SwitchFirstSubscriber(t){e.call(this,t),this.hasCompleted=!1,this.hasSubscription=!1}return n(SwitchFirstSubscriber,e),SwitchFirstSubscriber.prototype._next=function(e){this.hasSubscription||(this.hasSubscription=!0,this.add(o.subscribeToResult(this,e)))},SwitchFirstSubscriber.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},SwitchFirstSubscriber.prototype.notifyComplete=function(e){this.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},SwitchFirstSubscriber}(i.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(579);n.Observable.prototype.exhaustMap=i.exhaustMap},function(e,t,r){"use strict";function exhaustMap(e,t){return this.lift(new s(e,t))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(38),o=r(34);t.exhaustMap=exhaustMap;var s=function(){function SwitchFirstMapOperator(e,t){this.project=e,this.resultSelector=t}return SwitchFirstMapOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.project,this.resultSelector))},SwitchFirstMapOperator}(),a=function(e){function SwitchFirstMapSubscriber(t,r,n){e.call(this,t),this.project=r,this.resultSelector=n,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}return n(SwitchFirstMapSubscriber,e),SwitchFirstMapSubscriber.prototype._next=function(e){this.hasSubscription||this.tryNext(e)},SwitchFirstMapSubscriber.prototype.tryNext=function(e){var t=this.index++,r=this.destination;try{var n=this.project(e,t);this.hasSubscription=!0,this.add(o.subscribeToResult(this,n,e,t))}catch(i){r.error(i)}},SwitchFirstMapSubscriber.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},SwitchFirstMapSubscriber.prototype.notifyNext=function(e,t,r,n,i){var o=this,s=o.resultSelector,a=o.destination;s?this.trySelectResult(e,t,r,n):a.next(t)},SwitchFirstMapSubscriber.prototype.trySelectResult=function(e,t,r,n){var i=this,o=i.resultSelector,s=i.destination;try{var a=o(e,t,r,n);s.next(a)}catch(u){s.error(u)}},SwitchFirstMapSubscriber.prototype.notifyError=function(e){this.destination.error(e)},SwitchFirstMapSubscriber.prototype.notifyComplete=function(e){this.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},SwitchFirstMapSubscriber}(i.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(581);n.Observable.prototype.expand=i.expand},function(e,t,r){"use strict";function expand(e,t,r){return void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===r&&(r=void 0),t=(t||0)<1?Number.POSITIVE_INFINITY:t,this.lift(new u(e,t,r))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(13),o=r(14),s=r(38),a=r(34);t.expand=expand;var u=function(){function ExpandOperator(e,t,r){this.project=e,this.concurrent=t,this.scheduler=r}return ExpandOperator.prototype.call=function(e,t){return t._subscribe(new c(e,this.project,this.concurrent,this.scheduler))},ExpandOperator}();t.ExpandOperator=u;var c=function(e){function ExpandSubscriber(t,r,n,i){e.call(this,t),this.project=r,this.concurrent=n,this.scheduler=i,this.index=0,this.active=0,this.hasCompleted=!1,n<Number.POSITIVE_INFINITY&&(this.buffer=[])}return n(ExpandSubscriber,e),ExpandSubscriber.dispatch=function(e){var t=e.subscriber,r=e.result,n=e.value,i=e.index;t.subscribeToProjection(r,n,i)},ExpandSubscriber.prototype._next=function(e){var t=this.destination;if(t.closed)return void this._complete();var r=this.index++;if(this.active<this.concurrent){t.next(e);var n=i.tryCatch(this.project)(e,r);if(n===o.errorObject)t.error(o.errorObject.e);else if(this.scheduler){var s={subscriber:this,result:n,value:e,index:r};this.add(this.scheduler.schedule(ExpandSubscriber.dispatch,0,s))}else this.subscribeToProjection(n,e,r)}else this.buffer.push(e)},ExpandSubscriber.prototype.subscribeToProjection=function(e,t,r){this.active++,this.add(a.subscribeToResult(this,e,t,r))},ExpandSubscriber.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete()},ExpandSubscriber.prototype.notifyNext=function(e,t,r,n,i){this._next(t)},ExpandSubscriber.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t&&t.length>0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},ExpandSubscriber}(s.OuterSubscriber);t.ExpandSubscriber=c},function(e,t,r){"use strict";var n=r(5),i=r(583);n.Observable.prototype.elementAt=i.elementAt},function(e,t,r){"use strict";function elementAt(e,t){return this.lift(new s(e,t))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8),o=r(584);t.elementAt=elementAt;var s=function(){function ElementAtOperator(e,t){if(this.index=e,this.defaultValue=t,e<0)throw new o.ArgumentOutOfRangeError}return ElementAtOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.index,this.defaultValue))},ElementAtOperator}(),a=function(e){function ElementAtSubscriber(t,r,n){e.call(this,t),this.index=r,this.defaultValue=n}return n(ElementAtSubscriber,e),ElementAtSubscriber.prototype._next=function(e){0===this.index--&&(this.destination.next(e),this.destination.complete())},ElementAtSubscriber.prototype._complete=function(){var e=this.destination;this.index>=0&&("undefined"!=typeof this.defaultValue?e.next(this.defaultValue):e.error(new o.ArgumentOutOfRangeError)),e.complete()},ElementAtSubscriber}(i.Subscriber)},function(e,t){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},n=function(e){function ArgumentOutOfRangeError(){var t=e.call(this,"argument out of range");this.name=t.name="ArgumentOutOfRangeError",this.stack=t.stack,this.message=t.message}return r(ArgumentOutOfRangeError,e),ArgumentOutOfRangeError}(Error);t.ArgumentOutOfRangeError=n},function(e,t,r){"use strict";var n=r(5),i=r(586);n.Observable.prototype.find=i.find},function(e,t,r){"use strict";function find(e,t){if("function"!=typeof e)throw new TypeError("predicate is not a function");return this.lift(new o(e,this,(!1),t))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8);t.find=find;var o=function(){function FindValueOperator(e,t,r,n){this.predicate=e,this.source=t,this.yieldIndex=r,this.thisArg=n}return FindValueOperator.prototype.call=function(e,t){return t._subscribe(new s(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},FindValueOperator}();t.FindValueOperator=o;var s=function(e){function FindValueSubscriber(t,r,n,i,o){e.call(this,t),this.predicate=r,this.source=n,this.yieldIndex=i,this.thisArg=o,this.index=0}return n(FindValueSubscriber,e),FindValueSubscriber.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},FindValueSubscriber.prototype._next=function(e){var t=this,r=t.predicate,n=t.thisArg,i=this.index++;try{var o=r.call(n||this,e,i,this.source);o&&this.notifyComplete(this.yieldIndex?i:e)}catch(s){this.destination.error(s)}},FindValueSubscriber.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},FindValueSubscriber}(i.Subscriber);t.FindValueSubscriber=s},function(e,t,r){"use strict";var n=r(5),i=r(588);n.Observable.prototype.findIndex=i.findIndex},function(e,t,r){"use strict";function findIndex(e,t){return this.lift(new n.FindValueOperator(e,this,(!0),t))}var n=r(586);t.findIndex=findIndex},function(e,t,r){"use strict";var n=r(5),i=r(590);n.Observable.prototype.groupBy=i.groupBy},function(e,t,r){"use strict";function groupBy(e,t,r){return this.lift(new l(this,e,t,r))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8),o=r(10),s=r(5),a=r(4),u=r(591),c=r(593);t.groupBy=groupBy;var l=function(){function GroupByOperator(e,t,r,n){this.source=e,this.keySelector=t,this.elementSelector=r,this.durationSelector=n}return GroupByOperator.prototype.call=function(e,t){return t._subscribe(new p(e,this.keySelector,this.elementSelector,this.durationSelector))},GroupByOperator}(),p=function(e){function GroupBySubscriber(t,r,n,i){e.call(this,t),this.keySelector=r,this.elementSelector=n,this.durationSelector=i,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}return n(GroupBySubscriber,e),GroupBySubscriber.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(r){return void this.error(r)}this._group(e,t)},GroupBySubscriber.prototype._group=function(e,t){var r=this.groups;r||(r=this.groups="string"==typeof t?new c.FastMap:new u.Map);var n,i=r.get(t);if(this.elementSelector)try{n=this.elementSelector(e)}catch(o){this.error(o)}else n=e;if(!i){r.set(t,i=new a.Subject);var s=new f(t,i,this);if(this.destination.next(s),this.durationSelector){var l=void 0;try{l=this.durationSelector(new f(t,i))}catch(o){return void this.error(o)}this.add(l.subscribe(new h(t,i,this)))}}i.closed||i.next(n)},GroupBySubscriber.prototype._error=function(e){var t=this.groups;t&&(t.forEach(function(t,r){t.error(e)}),t.clear()),this.destination.error(e)},GroupBySubscriber.prototype._complete=function(){var e=this.groups;e&&(e.forEach(function(e,t){e.complete()}),e.clear()),this.destination.complete()},GroupBySubscriber.prototype.removeGroup=function(e){this.groups["delete"](e)},GroupBySubscriber.prototype.unsubscribe=function(){this.closed||this.attemptedToUnsubscribe||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},GroupBySubscriber}(i.Subscriber),h=function(e){function GroupDurationSubscriber(t,r,n){e.call(this),this.key=t,this.group=r,this.parent=n}return n(GroupDurationSubscriber,e),GroupDurationSubscriber.prototype._next=function(e){this._complete()},GroupDurationSubscriber.prototype._error=function(e){var t=this.group;t.closed||t.error(e),this.parent.removeGroup(this.key)},GroupDurationSubscriber.prototype._complete=function(){var e=this.group;e.closed||e.complete(),this.parent.removeGroup(this.key)},GroupDurationSubscriber}(i.Subscriber),f=function(e){function GroupedObservable(t,r,n){e.call(this),this.key=t,this.groupSubject=r,this.refCountSubscription=n}return n(GroupedObservable,e),GroupedObservable.prototype._subscribe=function(e){var t=new o.Subscription,r=this,n=r.refCountSubscription,i=r.groupSubject;return n&&!n.closed&&t.add(new d(n)),t.add(i.subscribe(e)),t},GroupedObservable}(s.Observable);t.GroupedObservable=f;var d=function(e){function InnerRefCountSubscription(t){e.call(this),this.parent=t,t.count++}return n(InnerRefCountSubscription,e),InnerRefCountSubscription.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},InnerRefCountSubscription}(o.Subscription)},function(e,t,r){"use strict";var n=r(6),i=r(592);t.Map=n.root.Map||function(){return i.MapPolyfill}()},function(e,t){"use strict";var r=function(){function MapPolyfill(){this.size=0,this._values=[],this._keys=[]}return MapPolyfill.prototype.get=function(e){var t=this._keys.indexOf(e);return t===-1?void 0:this._values[t]},MapPolyfill.prototype.set=function(e,t){var r=this._keys.indexOf(e);return r===-1?(this._keys.push(e),this._values.push(t),this.size++):this._values[r]=t,this},MapPolyfill.prototype["delete"]=function(e){var t=this._keys.indexOf(e);return t!==-1&&(this._values.splice(t,1),this._keys.splice(t,1),this.size--,!0)},MapPolyfill.prototype.clear=function(){this._keys.length=0,this._values.length=0,this.size=0},MapPolyfill.prototype.forEach=function(e,t){for(var r=0;r<this.size;r++)e.call(t,this._values[r],this._keys[r])},MapPolyfill}();t.MapPolyfill=r},function(e,t){"use strict";var r=function(){function FastMap(){this.values={}}return FastMap.prototype["delete"]=function(e){return this.values[e]=null,!0},FastMap.prototype.set=function(e,t){return this.values[e]=t,this},FastMap.prototype.get=function(e){return this.values[e]},FastMap.prototype.forEach=function(e,t){var r=this.values;for(var n in r)r.hasOwnProperty(n)&&null!==r[n]&&e.call(t,r[n],n)},FastMap.prototype.clear=function(){this.values={}},FastMap}();t.FastMap=r},function(e,t,r){"use strict";var n=r(5),i=r(595);n.Observable.prototype.ignoreElements=i.ignoreElements},function(e,t,r){"use strict";function ignoreElements(){return this.lift(new s)}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8),o=r(499);t.ignoreElements=ignoreElements;var s=function(){function IgnoreElementsOperator(){}return IgnoreElementsOperator.prototype.call=function(e,t){return t._subscribe(new a(e))},IgnoreElementsOperator}(),a=function(e){function IgnoreElementsSubscriber(){e.apply(this,arguments)}return n(IgnoreElementsSubscriber,e),IgnoreElementsSubscriber.prototype._next=function(e){o.noop()},IgnoreElementsSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(597);n.Observable.prototype.isEmpty=i.isEmpty},function(e,t,r){"use strict";function isEmpty(){return this.lift(new o)}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8);t.isEmpty=isEmpty;var o=function(){function IsEmptyOperator(){}return IsEmptyOperator.prototype.call=function(e,t){return t._subscribe(new s(e))},IsEmptyOperator}(),s=function(e){function IsEmptySubscriber(t){e.call(this,t)}return n(IsEmptySubscriber,e),IsEmptySubscriber.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},IsEmptySubscriber.prototype._next=function(e){this.notifyComplete(!1)},IsEmptySubscriber.prototype._complete=function(){this.notifyComplete(!0)},IsEmptySubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(599);n.Observable.prototype.audit=i.audit},function(e,t,r){"use strict";function audit(e){return this.lift(new u(e))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(13),o=r(14),s=r(38),a=r(34);t.audit=audit;var u=function(){function AuditOperator(e){this.durationSelector=e}return AuditOperator.prototype.call=function(e,t){return t._subscribe(new c(e,this.durationSelector))},AuditOperator}(),c=function(e){function AuditSubscriber(t,r){e.call(this,t),this.durationSelector=r,this.hasValue=!1}return n(AuditSubscriber,e),AuditSubscriber.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=i.tryCatch(this.durationSelector)(e);t===o.errorObject?this.destination.error(o.errorObject.e):this.add(this.throttled=a.subscribeToResult(this,t))}},AuditSubscriber.prototype.clearThrottle=function(){var e=this,t=e.value,r=e.hasValue,n=e.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),r&&(this.value=null,this.hasValue=!1,this.destination.next(t))},AuditSubscriber.prototype.notifyNext=function(e,t,r,n){this.clearThrottle()},AuditSubscriber.prototype.notifyComplete=function(){this.clearThrottle()},AuditSubscriber}(s.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(601);n.Observable.prototype.auditTime=i.auditTime},function(e,t,r){"use strict";function auditTime(e,t){return void 0===t&&(t=i.async),this.lift(new s(e,t))}function dispatchNext(e){e.clearThrottle()}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(486),o=r(8);t.auditTime=auditTime;var s=function(){function AuditTimeOperator(e,t){this.duration=e,this.scheduler=t}return AuditTimeOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.duration,this.scheduler))},AuditTimeOperator}(),a=function(e){function AuditTimeSubscriber(t,r,n){e.call(this,t),this.duration=r,this.scheduler=n,this.hasValue=!1}return n(AuditTimeSubscriber,e),AuditTimeSubscriber.prototype._next=function(e){this.value=e,this.hasValue=!0,this.throttled||this.add(this.throttled=this.scheduler.schedule(dispatchNext,this.duration,this))},AuditTimeSubscriber.prototype.clearThrottle=function(){var e=this,t=e.value,r=e.hasValue,n=e.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),r&&(this.value=null,this.hasValue=!1,this.destination.next(t))},AuditTimeSubscriber}(o.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(75);n.Observable.prototype.last=i.last},function(e,t,r){"use strict";var n=r(5),i=r(604);n.Observable.prototype["let"]=i.letProto,n.Observable.prototype.letBind=i.letProto},function(e,t){"use strict";function letProto(e){return e(this)}t.letProto=letProto},function(e,t,r){"use strict";var n=r(5),i=r(70);n.Observable.prototype.every=i.every},function(e,t,r){"use strict";var n=r(5),i=r(607);n.Observable.prototype.mapTo=i.mapTo},function(e,t,r){"use strict";function mapTo(e){return this.lift(new o(e))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8);t.mapTo=mapTo;var o=function(){function MapToOperator(e){this.value=e}return MapToOperator.prototype.call=function(e,t){return t._subscribe(new s(e,this.value))},MapToOperator}(),s=function(e){function MapToSubscriber(t,r){e.call(this,t),this.value=r}return n(MapToSubscriber,e),MapToSubscriber.prototype._next=function(e){this.destination.next(this.value)},MapToSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(609);n.Observable.prototype.materialize=i.materialize},function(e,t,r){"use strict";function materialize(){return this.lift(new s)}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8),o=r(69);t.materialize=materialize;var s=function(){function MaterializeOperator(){}return MaterializeOperator.prototype.call=function(e,t){return t._subscribe(new a(e))},MaterializeOperator}(),a=function(e){function MaterializeSubscriber(t){e.call(this,t)}return n(MaterializeSubscriber,e),MaterializeSubscriber.prototype._next=function(e){this.destination.next(o.Notification.createNext(e))},MaterializeSubscriber.prototype._error=function(e){var t=this.destination;t.next(o.Notification.createError(e)),t.complete()},MaterializeSubscriber.prototype._complete=function(){var e=this.destination;e.next(o.Notification.createComplete()),e.complete()},MaterializeSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(611);n.Observable.prototype.max=i.max},function(e,t,r){"use strict";function max(e){var t="function"==typeof e?function(t,r){return e(t,r)>0?t:r}:function(e,t){return e>t?e:t};return this.lift(new n.ReduceOperator(t))}var n=r(73);t.max=max},function(e,t,r){"use strict";var n=r(5),i=r(493);n.Observable.prototype.merge=i.merge},function(e,t,r){"use strict";var n=r(5),i=r(71);n.Observable.prototype.mergeAll=i.mergeAll},function(e,t,r){"use strict";var n=r(5),i=r(72);n.Observable.prototype.mergeMap=i.mergeMap,n.Observable.prototype.flatMap=i.mergeMap},function(e,t,r){"use strict";var n=r(5),i=r(553);n.Observable.prototype.flatMapTo=i.mergeMapTo,n.Observable.prototype.mergeMapTo=i.mergeMapTo},function(e,t,r){"use strict";var n=r(5),i=r(617);n.Observable.prototype.mergeScan=i.mergeScan},function(e,t,r){"use strict";function mergeScan(e,t,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),this.lift(new u(e,t,r))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(13),o=r(14),s=r(34),a=r(38);t.mergeScan=mergeScan;var u=function(){function MergeScanOperator(e,t,r){this.project=e,this.seed=t,this.concurrent=r}return MergeScanOperator.prototype.call=function(e,t){return t._subscribe(new c(e,this.project,this.seed,this.concurrent))},MergeScanOperator}();t.MergeScanOperator=u;var c=function(e){function MergeScanSubscriber(t,r,n,i){e.call(this,t),this.project=r,this.acc=n,this.concurrent=i,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return n(MergeScanSubscriber,e),MergeScanSubscriber.prototype._next=function(e){if(this.active<this.concurrent){var t=this.index++,r=i.tryCatch(this.project)(this.acc,e),n=this.destination;r===o.errorObject?n.error(o.errorObject.e):(this.active++,this._innerSub(r,e,t))}else this.buffer.push(e)},MergeScanSubscriber.prototype._innerSub=function(e,t,r){this.add(s.subscribeToResult(this,e,t,r))},MergeScanSubscriber.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(this.hasValue===!1&&this.destination.next(this.acc),this.destination.complete())},MergeScanSubscriber.prototype.notifyNext=function(e,t,r,n,i){var o=this.destination;this.acc=t,this.hasValue=!0,o.next(t)},MergeScanSubscriber.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(this.hasValue===!1&&this.destination.next(this.acc),this.destination.complete())},MergeScanSubscriber}(a.OuterSubscriber);t.MergeScanSubscriber=c},function(e,t,r){"use strict";var n=r(5),i=r(619);n.Observable.prototype.min=i.min},function(e,t,r){"use strict";function min(e){var t="function"==typeof e?function(t,r){return e(t,r)<0?t:r}:function(e,t){return e<t?e:t};return this.lift(new n.ReduceOperator(t))}var n=r(73);t.min=min},function(e,t,r){"use strict";var n=r(5),i=r(52);n.Observable.prototype.multicast=i.multicast},function(e,t,r){"use strict";var n=r(5),i=r(68);n.Observable.prototype.observeOn=i.observeOn},function(e,t,r){"use strict";var n=r(5),i=r(501);n.Observable.prototype.onErrorResumeNext=i.onErrorResumeNext},function(e,t,r){"use strict";var n=r(5),i=r(624);n.Observable.prototype.pairwise=i.pairwise},function(e,t,r){"use strict";function pairwise(){return this.lift(new o)}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8);t.pairwise=pairwise;var o=function(){function PairwiseOperator(){}return PairwiseOperator.prototype.call=function(e,t){return t._subscribe(new s(e))},PairwiseOperator}(),s=function(e){function PairwiseSubscriber(t){e.call(this,t),this.hasPrev=!1}return n(PairwiseSubscriber,e),PairwiseSubscriber.prototype._next=function(e){this.hasPrev?this.destination.next([this.prev,e]):this.hasPrev=!0,this.prev=e},PairwiseSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(626);n.Observable.prototype.partition=i.partition},function(e,t,r){"use strict";function partition(e,t){return[i.filter.call(this,e),i.filter.call(this,n.not(e,t))]}var n=r(627),i=r(47);t.partition=partition},function(e,t){"use strict";function not(e,t){function notPred(){return!notPred.pred.apply(notPred.thisArg,arguments)}return notPred.pred=e,notPred.thisArg=t,notPred}t.not=not},function(e,t,r){"use strict";var n=r(5),i=r(629);n.Observable.prototype.pluck=i.pluck},function(e,t,r){"use strict";function pluck(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var r=e.length;if(0===r)throw new Error("list of properties cannot be empty.");return n.map.call(this,plucker(e,r))}function plucker(e,t){var r=function(r){for(var n=r,i=0;i<t;i++){var o=n[e[i]];if("undefined"==typeof o)return;n=o}return n};return r}var n=r(45);t.pluck=pluck},function(e,t,r){"use strict";var n=r(5),i=r(631);n.Observable.prototype.publish=i.publish},function(e,t,r){"use strict";function publish(e){return e?i.multicast.call(this,function(){return new n.Subject},e):i.multicast.call(this,new n.Subject)}var n=r(4),i=r(52);t.publish=publish},function(e,t,r){"use strict";var n=r(5),i=r(633);n.Observable.prototype.publishBehavior=i.publishBehavior},function(e,t,r){"use strict";function publishBehavior(e){return i.multicast.call(this,new n.BehaviorSubject(e))}var n=r(76),i=r(52);t.publishBehavior=publishBehavior},function(e,t,r){"use strict";var n=r(5),i=r(635);n.Observable.prototype.publishReplay=i.publishReplay},function(e,t,r){"use strict";function publishReplay(e,t,r){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===t&&(t=Number.POSITIVE_INFINITY),i.multicast.call(this,new n.ReplaySubject(e,t,r))}var n=r(527),i=r(52);t.publishReplay=publishReplay},function(e,t,r){"use strict";var n=r(5),i=r(637);n.Observable.prototype.publishLast=i.publishLast},function(e,t,r){"use strict";function publishLast(){return i.multicast.call(this,new n.AsyncSubject)}var n=r(454),i=r(52);t.publishLast=publishLast},function(e,t,r){"use strict";var n=r(5),i=r(495);n.Observable.prototype.race=i.race},function(e,t,r){"use strict";var n=r(5),i=r(73);n.Observable.prototype.reduce=i.reduce},function(e,t,r){"use strict";var n=r(5),i=r(641);n.Observable.prototype.repeat=i.repeat},function(e,t,r){"use strict";function repeat(e){return void 0===e&&(e=-1),0===e?new o.EmptyObservable:e<0?this.lift(new s((-1),this)):this.lift(new s(e-1,this))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8),o=r(33);t.repeat=repeat;var s=function(){function RepeatOperator(e,t){this.count=e,this.source=t}return RepeatOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.count,this.source))},RepeatOperator}(),a=function(e){function RepeatSubscriber(t,r,n){e.call(this,t),this.count=r,this.source=n}return n(RepeatSubscriber,e),RepeatSubscriber.prototype.complete=function(){if(!this.isStopped){var t=this,r=t.source,n=t.count;if(0===n)return e.prototype.complete.call(this);n>-1&&(this.count=n-1),this.unsubscribe(),this.isStopped=!1,this.closed=!1,r.subscribe(this)}},RepeatSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(643);n.Observable.prototype.repeatWhen=i.repeatWhen},function(e,t,r){"use strict";function repeatWhen(e){return this.lift(new c(e,this))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(4),o=r(13),s=r(14),a=r(38),u=r(34);t.repeatWhen=repeatWhen;var c=function(){function RepeatWhenOperator(e,t){this.notifier=e,this.source=t}return RepeatWhenOperator.prototype.call=function(e,t){
return t._subscribe(new l(e,this.notifier,this.source))},RepeatWhenOperator}(),l=function(e){function RepeatWhenSubscriber(t,r,n){e.call(this,t),this.notifier=r,this.source=n}return n(RepeatWhenSubscriber,e),RepeatWhenSubscriber.prototype.complete=function(){if(!this.isStopped){var t=this.notifications,r=this.retries,n=this.retriesSubscription;if(r)this.notifications=null,this.retriesSubscription=null;else{if(t=new i.Subject,r=o.tryCatch(this.notifier)(t),r===s.errorObject)return e.prototype.complete.call(this);n=u.subscribeToResult(this,r)}this.unsubscribe(),this.closed=!1,this.notifications=t,this.retries=r,this.retriesSubscription=n,t.next()}},RepeatWhenSubscriber.prototype._unsubscribe=function(){var e=this,t=e.notifications,r=e.retriesSubscription;t&&(t.unsubscribe(),this.notifications=null),r&&(r.unsubscribe(),this.retriesSubscription=null),this.retries=null},RepeatWhenSubscriber.prototype.notifyNext=function(e,t,r,n,i){var o=this,s=o.notifications,a=o.retries,u=o.retriesSubscription;this.notifications=null,this.retries=null,this.retriesSubscription=null,this.unsubscribe(),this.isStopped=!1,this.closed=!1,this.notifications=s,this.retries=a,this.retriesSubscription=u,this.source.subscribe(this)},RepeatWhenSubscriber}(a.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(645);n.Observable.prototype.retry=i.retry},function(e,t,r){"use strict";function retry(e){return void 0===e&&(e=-1),this.lift(new o(e,this))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8);t.retry=retry;var o=function(){function RetryOperator(e,t){this.count=e,this.source=t}return RetryOperator.prototype.call=function(e,t){return t._subscribe(new s(e,this.count,this.source))},RetryOperator}(),s=function(e){function RetrySubscriber(t,r,n){e.call(this,t),this.count=r,this.source=n}return n(RetrySubscriber,e),RetrySubscriber.prototype.error=function(t){if(!this.isStopped){var r=this,n=r.source,i=r.count;if(0===i)return e.prototype.error.call(this,t);i>-1&&(this.count=i-1),this.unsubscribe(),this.isStopped=!1,this.closed=!1,n.subscribe(this)}},RetrySubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(647);n.Observable.prototype.retryWhen=i.retryWhen},function(e,t,r){"use strict";function retryWhen(e){return this.lift(new c(e,this))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(4),o=r(13),s=r(14),a=r(38),u=r(34);t.retryWhen=retryWhen;var c=function(){function RetryWhenOperator(e,t){this.notifier=e,this.source=t}return RetryWhenOperator.prototype.call=function(e,t){return t._subscribe(new l(e,this.notifier,this.source))},RetryWhenOperator}(),l=function(e){function RetryWhenSubscriber(t,r,n){e.call(this,t),this.notifier=r,this.source=n}return n(RetryWhenSubscriber,e),RetryWhenSubscriber.prototype.error=function(t){if(!this.isStopped){var r=this.errors,n=this.retries,a=this.retriesSubscription;if(n)this.errors=null,this.retriesSubscription=null;else{if(r=new i.Subject,n=o.tryCatch(this.notifier)(r),n===s.errorObject)return e.prototype.error.call(this,s.errorObject.e);a=u.subscribeToResult(this,n)}this.unsubscribe(),this.closed=!1,this.errors=r,this.retries=n,this.retriesSubscription=a,r.next(t)}},RetryWhenSubscriber.prototype._unsubscribe=function(){var e=this,t=e.errors,r=e.retriesSubscription;t&&(t.unsubscribe(),this.errors=null),r&&(r.unsubscribe(),this.retriesSubscription=null),this.retries=null},RetryWhenSubscriber.prototype.notifyNext=function(e,t,r,n,i){var o=this,s=o.errors,a=o.retries,u=o.retriesSubscription;this.errors=null,this.retries=null,this.retriesSubscription=null,this.unsubscribe(),this.isStopped=!1,this.closed=!1,this.errors=s,this.retries=a,this.retriesSubscription=u,this.source.subscribe(this)},RetryWhenSubscriber}(a.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(649);n.Observable.prototype.sample=i.sample},function(e,t,r){"use strict";function sample(e){return this.lift(new s(e))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(38),o=r(34);t.sample=sample;var s=function(){function SampleOperator(e){this.notifier=e}return SampleOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.notifier))},SampleOperator}(),a=function(e){function SampleSubscriber(t,r){e.call(this,t),this.hasValue=!1,this.add(o.subscribeToResult(this,r))}return n(SampleSubscriber,e),SampleSubscriber.prototype._next=function(e){this.value=e,this.hasValue=!0},SampleSubscriber.prototype.notifyNext=function(e,t,r,n,i){this.emitValue()},SampleSubscriber.prototype.notifyComplete=function(){this.emitValue()},SampleSubscriber.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},SampleSubscriber}(i.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(651);n.Observable.prototype.sampleTime=i.sampleTime},function(e,t,r){"use strict";function sampleTime(e,t){return void 0===t&&(t=o.async),this.lift(new s(e,t))}function dispatchNotification(e){var t=e.subscriber,r=e.period;t.notifyNext(),this.schedule(e,r)}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8),o=r(486);t.sampleTime=sampleTime;var s=function(){function SampleTimeOperator(e,t){this.period=e,this.scheduler=t}return SampleTimeOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.period,this.scheduler))},SampleTimeOperator}(),a=function(e){function SampleTimeSubscriber(t,r,n){e.call(this,t),this.period=r,this.scheduler=n,this.hasValue=!1,this.add(n.schedule(dispatchNotification,r,{subscriber:this,period:r}))}return n(SampleTimeSubscriber,e),SampleTimeSubscriber.prototype._next=function(e){this.lastValue=e,this.hasValue=!0},SampleTimeSubscriber.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},SampleTimeSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(653);n.Observable.prototype.scan=i.scan},function(e,t,r){"use strict";function scan(e,t){return this.lift(new o(e,t))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8);t.scan=scan;var o=function(){function ScanOperator(e,t){this.accumulator=e,this.seed=t}return ScanOperator.prototype.call=function(e,t){return t._subscribe(new s(e,this.accumulator,this.seed))},ScanOperator}(),s=function(e){function ScanSubscriber(t,r,n){e.call(this,t),this.accumulator=r,this.index=0,this.accumulatorSet=!1,this.seed=n,this.accumulatorSet="undefined"!=typeof n}return n(ScanSubscriber,e),Object.defineProperty(ScanSubscriber.prototype,"seed",{get:function(){return this._seed},set:function(e){this.accumulatorSet=!0,this._seed=e},enumerable:!0,configurable:!0}),ScanSubscriber.prototype._next=function(e){return this.accumulatorSet?this._tryNext(e):(this.seed=e,void this.destination.next(e))},ScanSubscriber.prototype._tryNext=function(e){var t,r=this.index++;try{t=this.accumulator(this.seed,e,r)}catch(n){this.destination.error(n)}this.seed=t,this.destination.next(t)},ScanSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(655);n.Observable.prototype.sequenceEqual=i.sequenceEqual},function(e,t,r){"use strict";function sequenceEqual(e,t){return this.lift(new a(e,t))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8),o=r(13),s=r(14);t.sequenceEqual=sequenceEqual;var a=function(){function SequenceEqualOperator(e,t){this.compareTo=e,this.comparor=t}return SequenceEqualOperator.prototype.call=function(e,t){return t._subscribe(new u(e,this.compareTo,this.comparor))},SequenceEqualOperator}();t.SequenceEqualOperator=a;var u=function(e){function SequenceEqualSubscriber(t,r,n){e.call(this,t),this.compareTo=r,this.comparor=n,this._a=[],this._b=[],this._oneComplete=!1,this.add(r.subscribe(new c(t,this)))}return n(SequenceEqualSubscriber,e),SequenceEqualSubscriber.prototype._next=function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())},SequenceEqualSubscriber.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},SequenceEqualSubscriber.prototype.checkValues=function(){for(var e=this,t=e._a,r=e._b,n=e.comparor;t.length>0&&r.length>0;){var i=t.shift(),a=r.shift(),u=!1;n?(u=o.tryCatch(n)(i,a),u===s.errorObject&&this.destination.error(s.errorObject.e)):u=i===a,u||this.emit(!1)}},SequenceEqualSubscriber.prototype.emit=function(e){var t=this.destination;t.next(e),t.complete()},SequenceEqualSubscriber.prototype.nextB=function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())},SequenceEqualSubscriber}(i.Subscriber);t.SequenceEqualSubscriber=u;var c=function(e){function SequenceEqualCompareToSubscriber(t,r){e.call(this,t),this.parent=r}return n(SequenceEqualCompareToSubscriber,e),SequenceEqualCompareToSubscriber.prototype._next=function(e){this.parent.nextB(e)},SequenceEqualCompareToSubscriber.prototype._error=function(e){this.parent.error(e)},SequenceEqualCompareToSubscriber.prototype._complete=function(){this.parent._complete()},SequenceEqualCompareToSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(657);n.Observable.prototype.single=i.single},function(e,t,r){"use strict";function single(e){return this.lift(new s(e,this))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8),o=r(61);t.single=single;var s=function(){function SingleOperator(e,t){this.predicate=e,this.source=t}return SingleOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.predicate,this.source))},SingleOperator}(),a=function(e){function SingleSubscriber(t,r,n){e.call(this,t),this.predicate=r,this.source=n,this.seenValue=!1,this.index=0}return n(SingleSubscriber,e),SingleSubscriber.prototype.applySingleValue=function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)},SingleSubscriber.prototype._next=function(e){var t=this.predicate;this.index++,t?this.tryNext(e):this.applySingleValue(e)},SingleSubscriber.prototype.tryNext=function(e){try{var t=this.predicate(e,this.index,this.source);t&&this.applySingleValue(e)}catch(r){this.destination.error(r)}},SingleSubscriber.prototype._complete=function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new o.EmptyError)},SingleSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(659);n.Observable.prototype.skip=i.skip},function(e,t,r){"use strict";function skip(e){return this.lift(new o(e))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8);t.skip=skip;var o=function(){function SkipOperator(e){this.total=e}return SkipOperator.prototype.call=function(e,t){return t._subscribe(new s(e,this.total))},SkipOperator}(),s=function(e){function SkipSubscriber(t,r){e.call(this,t),this.total=r,this.count=0}return n(SkipSubscriber,e),SkipSubscriber.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},SkipSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(661);n.Observable.prototype.skipUntil=i.skipUntil},function(e,t,r){"use strict";function skipUntil(e){return this.lift(new s(e))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(38),o=r(34);t.skipUntil=skipUntil;var s=function(){function SkipUntilOperator(e){this.notifier=e}return SkipUntilOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.notifier))},SkipUntilOperator}(),a=function(e){function SkipUntilSubscriber(t,r){e.call(this,t),this.hasValue=!1,this.isInnerStopped=!1,this.add(o.subscribeToResult(this,r))}return n(SkipUntilSubscriber,e),SkipUntilSubscriber.prototype._next=function(t){this.hasValue&&e.prototype._next.call(this,t)},SkipUntilSubscriber.prototype._complete=function(){this.isInnerStopped?e.prototype._complete.call(this):this.unsubscribe()},SkipUntilSubscriber.prototype.notifyNext=function(e,t,r,n,i){this.hasValue=!0},SkipUntilSubscriber.prototype.notifyComplete=function(){this.isInnerStopped=!0,this.isStopped&&e.prototype._complete.call(this)},SkipUntilSubscriber}(i.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(663);n.Observable.prototype.skipWhile=i.skipWhile},function(e,t,r){"use strict";function skipWhile(e){return this.lift(new o(e))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8);t.skipWhile=skipWhile;var o=function(){function SkipWhileOperator(e){this.predicate=e}return SkipWhileOperator.prototype.call=function(e,t){return t._subscribe(new s(e,this.predicate))},SkipWhileOperator}(),s=function(e){function SkipWhileSubscriber(t,r){e.call(this,t),this.predicate=r,this.skipping=!0,this.index=0}return n(SkipWhileSubscriber,e),SkipWhileSubscriber.prototype._next=function(e){var t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)},SkipWhileSubscriber.prototype.tryCallPredicate=function(e){try{var t=this.predicate(e,this.index++);this.skipping=Boolean(t)}catch(r){this.destination.error(r)}},SkipWhileSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(665);n.Observable.prototype.startWith=i.startWith},function(e,t,r){"use strict";function startWith(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var r=e[e.length-1];a.isScheduler(r)?e.pop():r=null;var u=e.length;return 1===u?s.concatStatic(new i.ScalarObservable(e[0],r),this):u>1?s.concatStatic(new n.ArrayObservable(e,r),this):s.concatStatic(new o.EmptyObservable(r),this)}var n=r(41),i=r(42),o=r(33),s=r(463),a=r(43);t.startWith=startWith},function(e,t,r){"use strict";var n=r(5),i=r(667);n.Observable.prototype.subscribeOn=i.subscribeOn},function(e,t,r){"use strict";function subscribeOn(e,t){return void 0===t&&(t=0),new n.SubscribeOnObservable(this,t,e)}var n=r(668);t.subscribeOn=subscribeOn},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(5),o=r(669),s=r(485),a=function(e){function SubscribeOnObservable(t,r,n){void 0===r&&(r=0),void 0===n&&(n=o.asap),e.call(this),this.source=t,this.delayTime=r,this.scheduler=n,(!s.isNumeric(r)||r<0)&&(this.delayTime=0),n&&"function"==typeof n.schedule||(this.scheduler=o.asap)}return n(SubscribeOnObservable,e),SubscribeOnObservable.create=function(e,t,r){return void 0===t&&(t=0),void 0===r&&(r=o.asap),new SubscribeOnObservable(e,t,r)},SubscribeOnObservable.dispatch=function(e){var t=e.source,r=e.subscriber;return t.subscribe(r)},SubscribeOnObservable.prototype._subscribe=function(e){var t=this.delayTime,r=this.source,n=this.scheduler;return n.schedule(SubscribeOnObservable.dispatch,t,{source:r,subscriber:e})},SubscribeOnObservable}(i.Observable);t.SubscribeOnObservable=a},function(e,t,r){"use strict";var n=r(670),i=r(673);t.asap=new i.AsapScheduler(n.AsapAction)},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(671),o=r(487),s=function(e){function AsapAction(t,r){e.call(this,t,r),this.scheduler=t,this.work=r}return n(AsapAction,e),AsapAction.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t.scheduled||(t.scheduled=i.Immediate.setImmediate(t.flush.bind(t,null))))},AsapAction.prototype.recycleAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.recycleAsyncId.call(this,t,r,n):void(0===t.actions.length&&(i.Immediate.clearImmediate(r),t.scheduled=void 0))},AsapAction}(o.AsyncAction);t.AsapAction=s},function(e,t,r){(function(e,n){"use strict";var i=r(6),o=function(){function ImmediateDefinition(e){if(this.root=e,e.setImmediate&&"function"==typeof e.setImmediate)this.setImmediate=e.setImmediate.bind(e),this.clearImmediate=e.clearImmediate.bind(e);else{this.nextHandle=1,this.tasksByHandle={},this.currentlyRunningATask=!1,this.canUseProcessNextTick()?this.setImmediate=this.createProcessNextTickSetImmediate():this.canUsePostMessage()?this.setImmediate=this.createPostMessageSetImmediate():this.canUseMessageChannel()?this.setImmediate=this.createMessageChannelSetImmediate():this.canUseReadyStateChange()?this.setImmediate=this.createReadyStateChangeSetImmediate():this.setImmediate=this.createSetTimeoutSetImmediate();var t=function clearImmediate(e){delete clearImmediate.instance.tasksByHandle[e]};t.instance=this,this.clearImmediate=t}}return ImmediateDefinition.prototype.identify=function(e){return this.root.Object.prototype.toString.call(e)},ImmediateDefinition.prototype.canUseProcessNextTick=function(){return"[object process]"===this.identify(this.root.process)},ImmediateDefinition.prototype.canUseMessageChannel=function(){return Boolean(this.root.MessageChannel)},ImmediateDefinition.prototype.canUseReadyStateChange=function(){var e=this.root.document;return Boolean(e&&"onreadystatechange"in e.createElement("script"))},ImmediateDefinition.prototype.canUsePostMessage=function(){var e=this.root;if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}return!1},ImmediateDefinition.prototype.partiallyApplied=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=function result(){var e=result,t=e.handler,r=e.args;"function"==typeof t?t.apply(void 0,r):new Function(""+t)()};return n.handler=e,n.args=t,n},ImmediateDefinition.prototype.addFromSetImmediateArguments=function(e){return this.tasksByHandle[this.nextHandle]=this.partiallyApplied.apply(void 0,e),this.nextHandle++},ImmediateDefinition.prototype.createProcessNextTickSetImmediate=function(){var e=function setImmediate(){var e=setImmediate.instance,t=e.addFromSetImmediateArguments(arguments);return e.root.process.nextTick(e.partiallyApplied(e.runIfPresent,t)),t};return e.instance=this,e},ImmediateDefinition.prototype.createPostMessageSetImmediate=function(){var e=this.root,t="setImmediate$"+e.Math.random()+"$",r=function globalMessageHandler(r){var n=globalMessageHandler.instance;r.source===e&&"string"==typeof r.data&&0===r.data.indexOf(t)&&n.runIfPresent(+r.data.slice(t.length))};r.instance=this,e.addEventListener("message",r,!1);var n=function setImmediate(){var e=setImmediate,t=e.messagePrefix,r=e.instance,n=r.addFromSetImmediateArguments(arguments);return r.root.postMessage(t+n,"*"),n};return n.instance=this,n.messagePrefix=t,n},ImmediateDefinition.prototype.runIfPresent=function(e){if(this.currentlyRunningATask)this.root.setTimeout(this.partiallyApplied(this.runIfPresent,e),0);else{var t=this.tasksByHandle[e];if(t){this.currentlyRunningATask=!0;try{t()}finally{this.clearImmediate(e),this.currentlyRunningATask=!1}}}},ImmediateDefinition.prototype.createMessageChannelSetImmediate=function(){var e=this,t=new this.root.MessageChannel;t.port1.onmessage=function(t){var r=t.data;e.runIfPresent(r)};var r=function setImmediate(){var e=setImmediate,t=e.channel,r=e.instance,n=r.addFromSetImmediateArguments(arguments);return t.port2.postMessage(n),n};return r.channel=t,r.instance=this,r},ImmediateDefinition.prototype.createReadyStateChangeSetImmediate=function(){var e=function setImmediate(){var e=setImmediate.instance,t=e.root,r=t.document,n=r.documentElement,i=e.addFromSetImmediateArguments(arguments),o=r.createElement("script");return o.onreadystatechange=function(){e.runIfPresent(i),o.onreadystatechange=null,n.removeChild(o),o=null},n.appendChild(o),i};return e.instance=this,e},ImmediateDefinition.prototype.createSetTimeoutSetImmediate=function(){var e=function setImmediate(){var e=setImmediate.instance,t=e.addFromSetImmediateArguments(arguments);return e.root.setTimeout(e.partiallyApplied(e.runIfPresent,t),0),t};return e.instance=this,e},ImmediateDefinition}();t.ImmediateDefinition=o,t.Immediate=new o(i.root)}).call(t,r(672).clearImmediate,r(672).setImmediate)},function(e,t,r){(function(e,n){function Timeout(e,t){this._id=e,this._clearFn=t}var i=r(449).nextTick,o=Function.prototype.apply,s=Array.prototype.slice,a={},u=0;t.setTimeout=function(){return new Timeout(o.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new Timeout(o.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e.close()},Timeout.prototype.unref=Timeout.prototype.ref=function(){},Timeout.prototype.close=function(){this._clearFn.call(window,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout(function(){e._onTimeout&&e._onTimeout()},t))},t.setImmediate="function"==typeof e?e:function(e){var r=u++,n=!(arguments.length<2)&&s.call(arguments,1);return a[r]=!0,i(function(){a[r]&&(n?e.apply(null,n):e.call(null),t.clearImmediate(r))}),r},t.clearImmediate="function"==typeof n?n:function(e){delete a[e]}}).call(t,r(672).setImmediate,r(672).clearImmediate)},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(489),o=function(e){function AsapScheduler(){e.apply(this,arguments)}return n(AsapScheduler,e),AsapScheduler.prototype.flush=function(){this.active=!0,this.scheduled=void 0;var e,t=this.actions,r=-1,n=t.length,i=t.shift();do if(e=i.execute(i.state,i.delay))break;while(++r<n&&(i=t.shift()));if(this.active=!1,e){for(;++r<n&&(i=t.shift());)i.unsubscribe();throw e}},AsapScheduler}(i.AsyncScheduler);t.AsapScheduler=o},function(e,t,r){"use strict";var n=r(5),i=r(675);n.Observable.prototype["switch"]=i._switch,n.Observable.prototype._switch=i._switch},function(e,t,r){"use strict";function _switch(){return this.lift(new s)}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(38),o=r(34);t._switch=_switch;var s=function(){function SwitchOperator(){}return SwitchOperator.prototype.call=function(e,t){return t._subscribe(new a(e))},SwitchOperator}(),a=function(e){function SwitchSubscriber(t){e.call(this,t),this.active=0,this.hasCompleted=!1}return n(SwitchSubscriber,e),SwitchSubscriber.prototype._next=function(e){this.unsubscribeInner(),this.active++,this.add(this.innerSubscription=o.subscribeToResult(this,e))},SwitchSubscriber.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&this.destination.complete()},SwitchSubscriber.prototype.unsubscribeInner=function(){this.active=this.active>0?this.active-1:0;var e=this.innerSubscription;e&&(e.unsubscribe(),this.remove(e))},SwitchSubscriber.prototype.notifyNext=function(e,t,r,n,i){this.destination.next(t)},SwitchSubscriber.prototype.notifyError=function(e){this.destination.error(e)},SwitchSubscriber.prototype.notifyComplete=function(){this.unsubscribeInner(),this.hasCompleted&&0===this.active&&this.destination.complete()},SwitchSubscriber}(i.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(677);n.Observable.prototype.switchMap=i.switchMap},function(e,t,r){"use strict";function switchMap(e,t){return this.lift(new s(e,t))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(38),o=r(34);t.switchMap=switchMap;var s=function(){function SwitchMapOperator(e,t){this.project=e,this.resultSelector=t}return SwitchMapOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.project,this.resultSelector))},SwitchMapOperator}(),a=function(e){function SwitchMapSubscriber(t,r,n){e.call(this,t),this.project=r,this.resultSelector=n,this.index=0}return n(SwitchMapSubscriber,e),SwitchMapSubscriber.prototype._next=function(e){var t,r=this.index++;try{t=this.project(e,r)}catch(n){return void this.destination.error(n)}this._innerSub(t,e,r)},SwitchMapSubscriber.prototype._innerSub=function(e,t,r){var n=this.innerSubscription;n&&n.unsubscribe(),this.add(this.innerSubscription=o.subscribeToResult(this,e,t,r))},SwitchMapSubscriber.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this)},SwitchMapSubscriber.prototype._unsubscribe=function(){this.innerSubscription=null},SwitchMapSubscriber.prototype.notifyComplete=function(t){this.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},SwitchMapSubscriber.prototype.notifyNext=function(e,t,r,n,i){this.resultSelector?this._tryNotifyNext(e,t,r,n):this.destination.next(t)},SwitchMapSubscriber.prototype._tryNotifyNext=function(e,t,r,n){var i;try{i=this.resultSelector(e,t,r,n)}catch(o){return void this.destination.error(o)}this.destination.next(i)},SwitchMapSubscriber}(i.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(679);n.Observable.prototype.switchMapTo=i.switchMapTo},function(e,t,r){"use strict";function switchMapTo(e,t){return this.lift(new s(e,t))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(38),o=r(34);t.switchMapTo=switchMapTo;var s=function(){function SwitchMapToOperator(e,t){this.observable=e,this.resultSelector=t}return SwitchMapToOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.observable,this.resultSelector))},SwitchMapToOperator}(),a=function(e){function SwitchMapToSubscriber(t,r,n){e.call(this,t),this.inner=r,this.resultSelector=n,this.index=0}return n(SwitchMapToSubscriber,e),SwitchMapToSubscriber.prototype._next=function(e){var t=this.innerSubscription;t&&t.unsubscribe(),this.add(this.innerSubscription=o.subscribeToResult(this,this.inner,e,this.index++))},SwitchMapToSubscriber.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this)},SwitchMapToSubscriber.prototype._unsubscribe=function(){this.innerSubscription=null},SwitchMapToSubscriber.prototype.notifyComplete=function(t){this.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},SwitchMapToSubscriber.prototype.notifyNext=function(e,t,r,n,i){var o=this,s=o.resultSelector,a=o.destination;s?this.tryResultSelector(e,t,r,n):a.next(t)},SwitchMapToSubscriber.prototype.tryResultSelector=function(e,t,r,n){var i,o=this,s=o.resultSelector,a=o.destination;try{i=s(e,t,r,n)}catch(u){return void a.error(u)}a.next(i)},SwitchMapToSubscriber}(i.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(681);n.Observable.prototype.take=i.take},function(e,t,r){"use strict";function take(e){return 0===e?new s.EmptyObservable:this.lift(new a(e))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8),o=r(584),s=r(33);t.take=take;var a=function(){function TakeOperator(e){if(this.total=e,this.total<0)throw new o.ArgumentOutOfRangeError}return TakeOperator.prototype.call=function(e,t){return t._subscribe(new u(e,this.total))},TakeOperator}(),u=function(e){function TakeSubscriber(t,r){e.call(this,t),this.total=r,this.count=0}return n(TakeSubscriber,e),TakeSubscriber.prototype._next=function(e){var t=this.total;++this.count<=t&&(this.destination.next(e),this.count===t&&(this.destination.complete(),this.unsubscribe()))},TakeSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(683);n.Observable.prototype.takeLast=i.takeLast},function(e,t,r){"use strict";function takeLast(e){return 0===e?new s.EmptyObservable:this.lift(new a(e))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8),o=r(584),s=r(33);t.takeLast=takeLast;var a=function(){function TakeLastOperator(e){if(this.total=e,this.total<0)throw new o.ArgumentOutOfRangeError}return TakeLastOperator.prototype.call=function(e,t){return t._subscribe(new u(e,this.total))},TakeLastOperator}(),u=function(e){function TakeLastSubscriber(t,r){e.call(this,t),this.total=r,this.ring=new Array,this.count=0}return n(TakeLastSubscriber,e),TakeLastSubscriber.prototype._next=function(e){var t=this.ring,r=this.total,n=this.count++;if(t.length<r)t.push(e);else{var i=n%r;t[i]=e}},TakeLastSubscriber.prototype._complete=function(){var e=this.destination,t=this.count;if(t>0)for(var r=this.count>=this.total?this.total:this.count,n=this.ring,i=0;i<r;i++){var o=t++%r;e.next(n[o])}e.complete()},TakeLastSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(685);n.Observable.prototype.takeUntil=i.takeUntil},function(e,t,r){"use strict";function takeUntil(e){return this.lift(new s(e))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(38),o=r(34);t.takeUntil=takeUntil;var s=function(){function TakeUntilOperator(e){this.notifier=e}return TakeUntilOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.notifier))},TakeUntilOperator}(),a=function(e){function TakeUntilSubscriber(t,r){e.call(this,t),this.notifier=r,this.add(o.subscribeToResult(this,r))}return n(TakeUntilSubscriber,e),TakeUntilSubscriber.prototype.notifyNext=function(e,t,r,n,i){this.complete()},TakeUntilSubscriber.prototype.notifyComplete=function(){},TakeUntilSubscriber}(i.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(687);n.Observable.prototype.takeWhile=i.takeWhile},function(e,t,r){"use strict";function takeWhile(e){return this.lift(new o(e))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8);t.takeWhile=takeWhile;var o=function(){function TakeWhileOperator(e){this.predicate=e}return TakeWhileOperator.prototype.call=function(e,t){return t._subscribe(new s(e,this.predicate))},TakeWhileOperator}(),s=function(e){function TakeWhileSubscriber(t,r){e.call(this,t),this.predicate=r,this.index=0}return n(TakeWhileSubscriber,e),TakeWhileSubscriber.prototype._next=function(e){var t,r=this.destination;try{t=this.predicate(e,this.index++);
}catch(n){return void r.error(n)}this.nextOrComplete(e,t)},TakeWhileSubscriber.prototype.nextOrComplete=function(e,t){var r=this.destination;Boolean(t)?r.next(e):r.complete()},TakeWhileSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(689);n.Observable.prototype.throttle=i.throttle},function(e,t,r){"use strict";function throttle(e){return this.lift(new s(e))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(38),o=r(34);t.throttle=throttle;var s=function(){function ThrottleOperator(e){this.durationSelector=e}return ThrottleOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.durationSelector))},ThrottleOperator}(),a=function(e){function ThrottleSubscriber(t,r){e.call(this,t),this.destination=t,this.durationSelector=r}return n(ThrottleSubscriber,e),ThrottleSubscriber.prototype._next=function(e){this.throttled||this.tryDurationSelector(e)},ThrottleSubscriber.prototype.tryDurationSelector=function(e){var t=null;try{t=this.durationSelector(e)}catch(r){return void this.destination.error(r)}this.emitAndThrottle(e,t)},ThrottleSubscriber.prototype.emitAndThrottle=function(e,t){this.add(this.throttled=o.subscribeToResult(this,t)),this.destination.next(e)},ThrottleSubscriber.prototype._unsubscribe=function(){var e=this.throttled;e&&(this.remove(e),this.throttled=null,e.unsubscribe())},ThrottleSubscriber.prototype.notifyNext=function(e,t,r,n,i){this._unsubscribe()},ThrottleSubscriber.prototype.notifyComplete=function(){this._unsubscribe()},ThrottleSubscriber}(i.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(691);n.Observable.prototype.throttleTime=i.throttleTime},function(e,t,r){"use strict";function throttleTime(e,t){return void 0===t&&(t=o.async),this.lift(new s(e,t))}function dispatchNext(e){var t=e.subscriber;t.clearThrottle()}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8),o=r(486);t.throttleTime=throttleTime;var s=function(){function ThrottleTimeOperator(e,t){this.duration=e,this.scheduler=t}return ThrottleTimeOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.duration,this.scheduler))},ThrottleTimeOperator}(),a=function(e){function ThrottleTimeSubscriber(t,r,n){e.call(this,t),this.duration=r,this.scheduler=n}return n(ThrottleTimeSubscriber,e),ThrottleTimeSubscriber.prototype._next=function(e){this.throttled||(this.add(this.throttled=this.scheduler.schedule(dispatchNext,this.duration,{subscriber:this})),this.destination.next(e))},ThrottleTimeSubscriber.prototype.clearThrottle=function(){var e=this.throttled;e&&(e.unsubscribe(),this.remove(e),this.throttled=null)},ThrottleTimeSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(693);n.Observable.prototype.timeInterval=i.timeInterval},function(e,t,r){"use strict";function timeInterval(e){return void 0===e&&(e=o.async),this.lift(new a(e))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8),o=r(486);t.timeInterval=timeInterval;var s=function(){function TimeInterval(e,t){this.value=e,this.interval=t}return TimeInterval}();t.TimeInterval=s;var a=function(){function TimeIntervalOperator(e){this.scheduler=e}return TimeIntervalOperator.prototype.call=function(e,t){return t._subscribe(new u(e,this.scheduler))},TimeIntervalOperator}(),u=function(e){function TimeIntervalSubscriber(t,r){e.call(this,t),this.scheduler=r,this.lastTime=0,this.lastTime=r.now()}return n(TimeIntervalSubscriber,e),TimeIntervalSubscriber.prototype._next=function(e){var t=this.scheduler.now(),r=t-this.lastTime;this.lastTime=t,this.destination.next(new s(e,r))},TimeIntervalSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(695);n.Observable.prototype.timeout=i.timeout},function(e,t,r){"use strict";function timeout(e,t,r){void 0===t&&(t=null),void 0===r&&(r=i.async);var n=o.isDate(e),s=n?+e-r.now():Math.abs(e);return this.lift(new a(s,n,t,r))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(486),o=r(517),s=r(8);t.timeout=timeout;var a=function(){function TimeoutOperator(e,t,r,n){this.waitFor=e,this.absoluteTimeout=t,this.errorToSend=r,this.scheduler=n}return TimeoutOperator.prototype.call=function(e,t){return t._subscribe(new u(e,this.absoluteTimeout,this.waitFor,this.errorToSend,this.scheduler))},TimeoutOperator}(),u=function(e){function TimeoutSubscriber(t,r,n,i,o){e.call(this,t),this.absoluteTimeout=r,this.waitFor=n,this.errorToSend=i,this.scheduler=o,this.index=0,this._previousIndex=0,this._hasCompleted=!1,this.scheduleTimeout()}return n(TimeoutSubscriber,e),Object.defineProperty(TimeoutSubscriber.prototype,"previousIndex",{get:function(){return this._previousIndex},enumerable:!0,configurable:!0}),Object.defineProperty(TimeoutSubscriber.prototype,"hasCompleted",{get:function(){return this._hasCompleted},enumerable:!0,configurable:!0}),TimeoutSubscriber.dispatchTimeout=function(e){var t=e.subscriber,r=e.index;t.hasCompleted||t.previousIndex!==r||t.notifyTimeout()},TimeoutSubscriber.prototype.scheduleTimeout=function(){var e=this.index;this.scheduler.schedule(TimeoutSubscriber.dispatchTimeout,this.waitFor,{subscriber:this,index:e}),this.index++,this._previousIndex=e},TimeoutSubscriber.prototype._next=function(e){this.destination.next(e),this.absoluteTimeout||this.scheduleTimeout()},TimeoutSubscriber.prototype._error=function(e){this.destination.error(e),this._hasCompleted=!0},TimeoutSubscriber.prototype._complete=function(){this.destination.complete(),this._hasCompleted=!0},TimeoutSubscriber.prototype.notifyTimeout=function(){this.error(this.errorToSend||new Error("timeout"))},TimeoutSubscriber}(s.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(697);n.Observable.prototype.timeoutWith=i.timeoutWith},function(e,t,r){"use strict";function timeoutWith(e,t,r){void 0===r&&(r=i.async);var n=o.isDate(e),s=n?+e-r.now():Math.abs(e);return this.lift(new u(s,n,t,r))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(486),o=r(517),s=r(38),a=r(34);t.timeoutWith=timeoutWith;var u=function(){function TimeoutWithOperator(e,t,r,n){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=r,this.scheduler=n}return TimeoutWithOperator.prototype.call=function(e,t){return t._subscribe(new c(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},TimeoutWithOperator}(),c=function(e){function TimeoutWithSubscriber(t,r,n,i,o){e.call(this),this.destination=t,this.absoluteTimeout=r,this.waitFor=n,this.withObservable=i,this.scheduler=o,this.timeoutSubscription=void 0,this.index=0,this._previousIndex=0,this._hasCompleted=!1,t.add(this),this.scheduleTimeout()}return n(TimeoutWithSubscriber,e),Object.defineProperty(TimeoutWithSubscriber.prototype,"previousIndex",{get:function(){return this._previousIndex},enumerable:!0,configurable:!0}),Object.defineProperty(TimeoutWithSubscriber.prototype,"hasCompleted",{get:function(){return this._hasCompleted},enumerable:!0,configurable:!0}),TimeoutWithSubscriber.dispatchTimeout=function(e){var t=e.subscriber,r=e.index;t.hasCompleted||t.previousIndex!==r||t.handleTimeout()},TimeoutWithSubscriber.prototype.scheduleTimeout=function(){var e=this.index,t={subscriber:this,index:e};this.scheduler.schedule(TimeoutWithSubscriber.dispatchTimeout,this.waitFor,t),this.index++,this._previousIndex=e},TimeoutWithSubscriber.prototype._next=function(e){this.destination.next(e),this.absoluteTimeout||this.scheduleTimeout()},TimeoutWithSubscriber.prototype._error=function(e){this.destination.error(e),this._hasCompleted=!0},TimeoutWithSubscriber.prototype._complete=function(){this.destination.complete(),this._hasCompleted=!0},TimeoutWithSubscriber.prototype.handleTimeout=function(){if(!this.closed){var e=this.withObservable;this.unsubscribe(),this.destination.add(this.timeoutSubscription=a.subscribeToResult(this,e))}},TimeoutWithSubscriber}(s.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(699);n.Observable.prototype.timestamp=i.timestamp},function(e,t,r){"use strict";function timestamp(e){return void 0===e&&(e=o.async),this.lift(new a(e))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8),o=r(486);t.timestamp=timestamp;var s=function(){function Timestamp(e,t){this.value=e,this.timestamp=t}return Timestamp}();t.Timestamp=s;var a=function(){function TimestampOperator(e){this.scheduler=e}return TimestampOperator.prototype.call=function(e,t){return t._subscribe(new u(e,this.scheduler))},TimestampOperator}(),u=function(e){function TimestampSubscriber(t,r){e.call(this,t),this.scheduler=r}return n(TimestampSubscriber,e),TimestampSubscriber.prototype._next=function(e){var t=this.scheduler.now();this.destination.next(new s(e,t))},TimestampSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(701);n.Observable.prototype.toArray=i.toArray},function(e,t,r){"use strict";function toArray(){return this.lift(new o)}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8);t.toArray=toArray;var o=function(){function ToArrayOperator(){}return ToArrayOperator.prototype.call=function(e,t){return t._subscribe(new s(e))},ToArrayOperator}(),s=function(e){function ToArraySubscriber(t){e.call(this,t),this.array=[]}return n(ToArraySubscriber,e),ToArraySubscriber.prototype._next=function(e){this.array.push(e)},ToArraySubscriber.prototype._complete=function(){this.destination.next(this.array),this.destination.complete()},ToArraySubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(27);n.Observable.prototype.toPromise=i.toPromise},function(e,t,r){"use strict";var n=r(5),i=r(704);n.Observable.prototype.window=i.window},function(e,t,r){"use strict";function window(e){return this.lift(new a(e))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(4),o=r(38),s=r(34);t.window=window;var a=function(){function WindowOperator(e){this.windowBoundaries=e}return WindowOperator.prototype.call=function(e,t){var r=new u(e),n=t._subscribe(r);return n.closed||r.add(s.subscribeToResult(r,this.windowBoundaries)),n},WindowOperator}(),u=function(e){function WindowSubscriber(t){e.call(this,t),this.window=new i.Subject,t.next(this.window)}return n(WindowSubscriber,e),WindowSubscriber.prototype.notifyNext=function(e,t,r,n,i){this.openWindow()},WindowSubscriber.prototype.notifyError=function(e,t){this._error(e)},WindowSubscriber.prototype.notifyComplete=function(e){this._complete()},WindowSubscriber.prototype._next=function(e){this.window.next(e)},WindowSubscriber.prototype._error=function(e){this.window.error(e),this.destination.error(e)},WindowSubscriber.prototype._complete=function(){this.window.complete(),this.destination.complete()},WindowSubscriber.prototype._unsubscribe=function(){this.window=null},WindowSubscriber.prototype.openWindow=function(){var e=this.window;e&&e.complete();var t=this.destination,r=this.window=new i.Subject;t.next(r)},WindowSubscriber}(o.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(706);n.Observable.prototype.windowCount=i.windowCount},function(e,t,r){"use strict";function windowCount(e,t){return void 0===t&&(t=0),this.lift(new s(e,t))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(8),o=r(4);t.windowCount=windowCount;var s=function(){function WindowCountOperator(e,t){this.windowSize=e,this.startWindowEvery=t}return WindowCountOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.windowSize,this.startWindowEvery))},WindowCountOperator}(),a=function(e){function WindowCountSubscriber(t,r,n){e.call(this,t),this.destination=t,this.windowSize=r,this.startWindowEvery=n,this.windows=[new o.Subject],this.count=0,t.next(this.windows[0])}return n(WindowCountSubscriber,e),WindowCountSubscriber.prototype._next=function(e){for(var t=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,r=this.destination,n=this.windowSize,i=this.windows,s=i.length,a=0;a<s&&!this.closed;a++)i[a].next(e);var u=this.count-n+1;if(u>=0&&u%t===0&&!this.closed&&i.shift().complete(),++this.count%t===0&&!this.closed){var c=new o.Subject;i.push(c),r.next(c)}},WindowCountSubscriber.prototype._error=function(e){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)},WindowCountSubscriber.prototype._complete=function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()},WindowCountSubscriber.prototype._unsubscribe=function(){this.count=0,this.windows=null},WindowCountSubscriber}(i.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(708);n.Observable.prototype.windowTime=i.windowTime},function(e,t,r){"use strict";function windowTime(e,t,r){return void 0===t&&(t=null),void 0===r&&(r=o.async),this.lift(new a(e,t,r))}function dispatchWindowTimeSpanOnly(e){var t=e.subscriber,r=e.windowTimeSpan,n=e.window;n&&n.complete(),e.window=t.openWindow(),this.schedule(e,r)}function dispatchWindowCreation(e){var t=e.windowTimeSpan,r=e.subscriber,n=e.scheduler,i=e.windowCreationInterval,o=r.openWindow(),s=this,a={action:s,subscription:null},u={subscriber:r,window:o,context:a};a.subscription=n.schedule(dispatchWindowClose,t,u),s.add(a.subscription),s.schedule(e,i)}function dispatchWindowClose(e){var t=e.subscriber,r=e.window,n=e.context;n&&n.action&&n.subscription&&n.action.remove(n.subscription),t.closeWindow(r)}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(4),o=r(486),s=r(8);t.windowTime=windowTime;var a=function(){function WindowTimeOperator(e,t,r){this.windowTimeSpan=e,this.windowCreationInterval=t,this.scheduler=r}return WindowTimeOperator.prototype.call=function(e,t){return t._subscribe(new u(e,this.windowTimeSpan,this.windowCreationInterval,this.scheduler))},WindowTimeOperator}(),u=function(e){function WindowTimeSubscriber(t,r,n,i){if(e.call(this,t),this.destination=t,this.windowTimeSpan=r,this.windowCreationInterval=n,this.scheduler=i,this.windows=[],null!==n&&n>=0){var o=this.openWindow(),s={subscriber:this,window:o,context:null},a={windowTimeSpan:r,windowCreationInterval:n,subscriber:this,scheduler:i};this.add(i.schedule(dispatchWindowClose,r,s)),this.add(i.schedule(dispatchWindowCreation,n,a))}else{var u=this.openWindow(),c={subscriber:this,window:u,windowTimeSpan:r};this.add(i.schedule(dispatchWindowTimeSpanOnly,r,c))}}return n(WindowTimeSubscriber,e),WindowTimeSubscriber.prototype._next=function(e){for(var t=this.windows,r=t.length,n=0;n<r;n++){var i=t[n];i.closed||i.next(e)}},WindowTimeSubscriber.prototype._error=function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)},WindowTimeSubscriber.prototype._complete=function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()},WindowTimeSubscriber.prototype.openWindow=function(){var e=new i.Subject;this.windows.push(e);var t=this.destination;return t.next(e),e},WindowTimeSubscriber.prototype.closeWindow=function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)},WindowTimeSubscriber}(s.Subscriber)},function(e,t,r){"use strict";var n=r(5),i=r(710);n.Observable.prototype.windowToggle=i.windowToggle},function(e,t,r){"use strict";function windowToggle(e,t){return this.lift(new l(e,t))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(4),o=r(10),s=r(13),a=r(14),u=r(38),c=r(34);t.windowToggle=windowToggle;var l=function(){function WindowToggleOperator(e,t){this.openings=e,this.closingSelector=t}return WindowToggleOperator.prototype.call=function(e,t){return t._subscribe(new p(e,this.openings,this.closingSelector))},WindowToggleOperator}(),p=function(e){function WindowToggleSubscriber(t,r,n){e.call(this,t),this.openings=r,this.closingSelector=n,this.contexts=[],this.add(this.openSubscription=c.subscribeToResult(this,r,r))}return n(WindowToggleSubscriber,e),WindowToggleSubscriber.prototype._next=function(e){var t=this.contexts;if(t)for(var r=t.length,n=0;n<r;n++)t[n].window.next(e)},WindowToggleSubscriber.prototype._error=function(t){var r=this.contexts;if(this.contexts=null,r)for(var n=r.length,i=-1;++i<n;){var o=r[i];o.window.error(t),o.subscription.unsubscribe()}e.prototype._error.call(this,t)},WindowToggleSubscriber.prototype._complete=function(){var t=this.contexts;if(this.contexts=null,t)for(var r=t.length,n=-1;++n<r;){var i=t[n];i.window.complete(),i.subscription.unsubscribe()}e.prototype._complete.call(this)},WindowToggleSubscriber.prototype._unsubscribe=function(){var e=this.contexts;if(this.contexts=null,e)for(var t=e.length,r=-1;++r<t;){var n=e[r];n.window.unsubscribe(),n.subscription.unsubscribe()}},WindowToggleSubscriber.prototype.notifyNext=function(e,t,r,n,u){if(e===this.openings){var l=this.closingSelector,p=s.tryCatch(l)(t);if(p===a.errorObject)return this.error(a.errorObject.e);var h=new i.Subject,f=new o.Subscription,d={window:h,subscription:f};this.contexts.push(d);var m=c.subscribeToResult(this,p,d);m.closed?this.closeWindow(this.contexts.length-1):(m.context=d,f.add(m)),this.destination.next(h)}else this.closeWindow(this.contexts.indexOf(e))},WindowToggleSubscriber.prototype.notifyError=function(e){this.error(e)},WindowToggleSubscriber.prototype.notifyComplete=function(e){e!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(e.context))},WindowToggleSubscriber.prototype.closeWindow=function(e){if(e!==-1){var t=this.contexts,r=t[e],n=r.window,i=r.subscription;t.splice(e,1),n.complete(),i.unsubscribe()}},WindowToggleSubscriber}(u.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(712);n.Observable.prototype.windowWhen=i.windowWhen},function(e,t,r){"use strict";function windowWhen(e){return this.lift(new c(e))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(4),o=r(13),s=r(14),a=r(38),u=r(34);t.windowWhen=windowWhen;var c=function(){function WindowOperator(e){this.closingSelector=e}return WindowOperator.prototype.call=function(e,t){return t._subscribe(new l(e,this.closingSelector))},WindowOperator}(),l=function(e){function WindowSubscriber(t,r){e.call(this,t),this.destination=t,this.closingSelector=r,this.openWindow()}return n(WindowSubscriber,e),WindowSubscriber.prototype.notifyNext=function(e,t,r,n,i){this.openWindow(i)},WindowSubscriber.prototype.notifyError=function(e,t){this._error(e)},WindowSubscriber.prototype.notifyComplete=function(e){this.openWindow(e)},WindowSubscriber.prototype._next=function(e){this.window.next(e)},WindowSubscriber.prototype._error=function(e){this.window.error(e),this.destination.error(e),this.unsubscribeClosingNotification()},WindowSubscriber.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},WindowSubscriber.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},WindowSubscriber.prototype.openWindow=function(e){void 0===e&&(e=null),e&&(this.remove(e),e.unsubscribe());var t=this.window;t&&t.complete();var r=this.window=new i.Subject;this.destination.next(r);var n=o.tryCatch(this.closingSelector)();if(n===s.errorObject){var a=s.errorObject.e;this.destination.error(a),this.window.error(a)}else this.add(this.closingNotification=u.subscribeToResult(this,n))},WindowSubscriber}(a.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(714);n.Observable.prototype.withLatestFrom=i.withLatestFrom},function(e,t,r){"use strict";function withLatestFrom(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var r;"function"==typeof e[e.length-1]&&(r=e.pop());var n=e;return this.lift(new s(n,r))}var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(38),o=r(34);t.withLatestFrom=withLatestFrom;var s=function(){function WithLatestFromOperator(e,t){this.observables=e,this.project=t}return WithLatestFromOperator.prototype.call=function(e,t){return t._subscribe(new a(e,this.observables,this.project))},WithLatestFromOperator}(),a=function(e){function WithLatestFromSubscriber(t,r,n){e.call(this,t),this.observables=r,this.project=n,this.toRespond=[];var i=r.length;this.values=new Array(i);for(var s=0;s<i;s++)this.toRespond.push(s);for(var s=0;s<i;s++){var a=r[s];this.add(o.subscribeToResult(this,a,a,s))}}return n(WithLatestFromSubscriber,e),WithLatestFromSubscriber.prototype.notifyNext=function(e,t,r,n,i){this.values[r]=t;var o=this.toRespond;if(o.length>0){var s=o.indexOf(r);s!==-1&&o.splice(s,1)}},WithLatestFromSubscriber.prototype.notifyComplete=function(){},WithLatestFromSubscriber.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},WithLatestFromSubscriber.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(r){return void this.destination.error(r)}this.destination.next(t)},WithLatestFromSubscriber}(i.OuterSubscriber)},function(e,t,r){"use strict";var n=r(5),i=r(520);n.Observable.prototype.zip=i.zipProto},function(e,t,r){"use strict";var n=r(5),i=r(717);n.Observable.prototype.zipAll=i.zipAll},function(e,t,r){"use strict";function zipAll(e){return this.lift(new n.ZipOperator(e))}var n=r(520);t.zipAll=zipAll},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(5),o=r(69),s=r(719),a=r(723),u=r(721),c=r(724),l=750,p=function(e){function TestScheduler(t){e.call(this,c.VirtualAction,l),this.assertDeepEqual=t,this.hotObservables=[],this.coldObservables=[],this.flushTests=[]}return n(TestScheduler,e),TestScheduler.prototype.createTime=function(e){var t=e.indexOf("|");if(t===-1)throw new Error('marble diagram for time should have a completion marker "|"');return t*TestScheduler.frameTimeFactor},TestScheduler.prototype.createColdObservable=function(e,t,r){if(e.indexOf("^")!==-1)throw new Error('cold observable cannot have subscription offset "^"');if(e.indexOf("!")!==-1)throw new Error('cold observable cannot have unsubscription marker "!"');var n=TestScheduler.parseMarbles(e,t,r),i=new s.ColdObservable(n,this);return this.coldObservables.push(i),i},TestScheduler.prototype.createHotObservable=function(e,t,r){if(e.indexOf("!")!==-1)throw new Error('hot observable cannot have unsubscription marker "!"');var n=TestScheduler.parseMarbles(e,t,r),i=new a.HotObservable(n,this);return this.hotObservables.push(i),i},TestScheduler.prototype.materializeInnerObservable=function(e,t){var r=this,n=[];return e.subscribe(function(e){n.push({frame:r.frame-t,notification:o.Notification.createNext(e)})},function(e){n.push({frame:r.frame-t,notification:o.Notification.createError(e)})},function(){n.push({frame:r.frame-t,notification:o.Notification.createComplete()})}),n},TestScheduler.prototype.expectObservable=function(e,t){var r=this;void 0===t&&(t=null);var n,s=[],a={actual:s,ready:!1},u=TestScheduler.parseMarblesAsSubscriptions(t).unsubscribedFrame;return this.schedule(function(){n=e.subscribe(function(e){var t=e;e instanceof i.Observable&&(t=r.materializeInnerObservable(t,r.frame)),s.push({frame:r.frame,notification:o.Notification.createNext(t)})},function(e){s.push({frame:r.frame,notification:o.Notification.createError(e)})},function(){s.push({frame:r.frame,notification:o.Notification.createComplete()})})},0),u!==Number.POSITIVE_INFINITY&&this.schedule(function(){return n.unsubscribe()},u),this.flushTests.push(a),{toBe:function(e,t,r){a.ready=!0,a.expected=TestScheduler.parseMarbles(e,t,r,!0)}}},TestScheduler.prototype.expectSubscriptions=function(e){var t={actual:e,ready:!1};return this.flushTests.push(t),{toBe:function(e){var r="string"==typeof e?[e]:e;t.ready=!0,t.expected=r.map(function(e){return TestScheduler.parseMarblesAsSubscriptions(e)})}}},TestScheduler.prototype.flush=function(){for(var t=this.hotObservables;t.length>0;)t.shift().setup();e.prototype.flush.call(this);for(var r=this.flushTests.filter(function(e){return e.ready});r.length>0;){var n=r.shift();this.assertDeepEqual(n.actual,n.expected)}},TestScheduler.parseMarblesAsSubscriptions=function(e){if("string"!=typeof e)return new u.SubscriptionLog(Number.POSITIVE_INFINITY);for(var t=e.length,r=-1,n=Number.POSITIVE_INFINITY,i=Number.POSITIVE_INFINITY,o=0;o<t;o++){var s=o*this.frameTimeFactor,a=e[o];switch(a){case"-":case" ":break;case"(":r=s;break;case")":r=-1;break;case"^":if(n!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");n=r>-1?r:s;break;case"!":if(i!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");i=r>-1?r:s;break;default:throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+a+"'.")}}return i<0?new u.SubscriptionLog(n):new u.SubscriptionLog(n,i)},TestScheduler.parseMarbles=function(e,t,r,n){if(void 0===n&&(n=!1),e.indexOf("!")!==-1)throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var i=e.length,a=[],u=e.indexOf("^"),c=u===-1?0:u*-this.frameTimeFactor,l="object"!=typeof t?function(e){return e}:function(e){return n&&t[e]instanceof s.ColdObservable?t[e].messages:t[e]},p=-1,h=0;h<i;h++){var f=h*this.frameTimeFactor+c,d=void 0,m=e[h];switch(m){case"-":case" ":break;case"(":p=f;break;case")":p=-1;break;case"|":d=o.Notification.createComplete();break;case"^":break;case"#":d=o.Notification.createError(r||"error");break;default:d=o.Notification.createNext(l(m))}d&&a.push({frame:p>-1?p:f,notification:d})}return a},TestScheduler}(c.VirtualTimeScheduler);t.TestScheduler=p},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(5),o=r(10),s=r(720),a=r(722),u=function(e){function ColdObservable(t,r){e.call(this,function(e){var t=this,r=t.logSubscribedFrame();return e.add(new o.Subscription(function(){t.logUnsubscribedFrame(r)})),t.scheduleMessages(e),e}),this.messages=t,this.subscriptions=[],this.scheduler=r}return n(ColdObservable,e),ColdObservable.prototype.scheduleMessages=function(e){for(var t=this.messages.length,r=0;r<t;r++){var n=this.messages[r];e.add(this.scheduler.schedule(function(e){var t=e.message,r=e.subscriber;t.notification.observe(r)},n.frame,{message:n,subscriber:e}))}},ColdObservable}(i.Observable);t.ColdObservable=u,a.applyMixins(u,[s.SubscriptionLoggable])},function(e,t,r){"use strict";var n=r(721),i=function(){function SubscriptionLoggable(){this.subscriptions=[]}return SubscriptionLoggable.prototype.logSubscribedFrame=function(){return this.subscriptions.push(new n.SubscriptionLog(this.scheduler.now())),this.subscriptions.length-1},SubscriptionLoggable.prototype.logUnsubscribedFrame=function(e){var t=this.subscriptions,r=t[e];t[e]=new n.SubscriptionLog(r.subscribedFrame,this.scheduler.now())},SubscriptionLoggable}();t.SubscriptionLoggable=i},function(e,t){"use strict";var r=function(){function SubscriptionLog(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.subscribedFrame=e,this.unsubscribedFrame=t}return SubscriptionLog}();t.SubscriptionLog=r},function(e,t){"use strict";function applyMixins(e,t){for(var r=0,n=t.length;r<n;r++)for(var i=t[r],o=Object.getOwnPropertyNames(i.prototype),s=0,a=o.length;s<a;s++){var u=o[s];e.prototype[u]=i.prototype[u]}}t.applyMixins=applyMixins},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(4),o=r(10),s=r(720),a=r(722),u=function(e){function HotObservable(t,r){e.call(this),this.messages=t,this.subscriptions=[],this.scheduler=r}return n(HotObservable,e),HotObservable.prototype._subscribe=function(t){var r=this,n=r.logSubscribedFrame();return t.add(new o.Subscription(function(){r.logUnsubscribedFrame(n)})),e.prototype._subscribe.call(this,t)},HotObservable.prototype.setup=function(){for(var e=this,t=e.messages.length,r=0;r<t;r++)!function(){var t=e.messages[r];e.scheduler.schedule(function(){t.notification.observe(e)},t.frame)}()},HotObservable}(i.Subject);t.HotObservable=u,a.applyMixins(u,[s.SubscriptionLoggable])},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(487),o=r(489),s=function(e){function VirtualTimeScheduler(t,r){var n=this;void 0===t&&(t=a),void 0===r&&(r=Number.POSITIVE_INFINITY),e.call(this,t,function(){return n.frame}),this.maxFrames=r,this.frame=0,this.index=-1}return n(VirtualTimeScheduler,e),VirtualTimeScheduler.prototype.flush=function(){for(var e,t,r=this,n=r.actions,i=r.maxFrames;(t=n.shift())&&(this.frame=t.delay)<=i&&!(e=t.execute(t.state,t.delay)););if(e){for(;t=n.shift();)t.unsubscribe();throw e}},VirtualTimeScheduler.frameTimeFactor=10,VirtualTimeScheduler}(o.AsyncScheduler);t.VirtualTimeScheduler=s;var a=function(e){function VirtualAction(t,r,n){void 0===n&&(n=t.index+=1),e.call(this,t,r),this.scheduler=t,this.work=r,this.index=n,this.index=t.index=n}return n(VirtualAction,e),VirtualAction.prototype.schedule=function(t,r){return void 0===r&&(r=0),this.id?this.add(new VirtualAction(this.scheduler,this.work)).schedule(t,r):e.prototype.schedule.call(this,t,r)},VirtualAction.prototype.requestAsyncId=function(e,t,r){void 0===r&&(r=0),this.delay=e.frame+r;var n=e.actions;return n.push(this),n.sort(VirtualAction.sortActions),!0},VirtualAction.prototype.recycleAsyncId=function(e,t,r){void 0===r&&(r=0)},VirtualAction.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},VirtualAction}(i.AsyncAction);t.VirtualAction=a},function(e,t,r){"use strict";var n=r(726),i=r(728);t.animationFrame=new i.AnimationFrameScheduler(n.AnimationFrameAction)},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(487),o=r(727),s=function(e){function AnimationFrameAction(t,r){e.call(this,t,r),
this.scheduler=t,this.work=r}return n(AnimationFrameAction,e),AnimationFrameAction.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t.scheduled||(t.scheduled=o.AnimationFrame.requestAnimationFrame(t.flush.bind(t,null))))},AnimationFrameAction.prototype.recycleAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.recycleAsyncId.call(this,t,r,n):void(0===t.actions.length&&(o.AnimationFrame.cancelAnimationFrame(r),t.scheduled=void 0))},AnimationFrameAction}(i.AsyncAction);t.AnimationFrameAction=s},function(e,t,r){"use strict";var n=r(6),i=function(){function RequestAnimationFrameDefinition(e){e.requestAnimationFrame?(this.cancelAnimationFrame=e.cancelAnimationFrame.bind(e),this.requestAnimationFrame=e.requestAnimationFrame.bind(e)):e.mozRequestAnimationFrame?(this.cancelAnimationFrame=e.mozCancelAnimationFrame.bind(e),this.requestAnimationFrame=e.mozRequestAnimationFrame.bind(e)):e.webkitRequestAnimationFrame?(this.cancelAnimationFrame=e.webkitCancelAnimationFrame.bind(e),this.requestAnimationFrame=e.webkitRequestAnimationFrame.bind(e)):e.msRequestAnimationFrame?(this.cancelAnimationFrame=e.msCancelAnimationFrame.bind(e),this.requestAnimationFrame=e.msRequestAnimationFrame.bind(e)):e.oRequestAnimationFrame?(this.cancelAnimationFrame=e.oCancelAnimationFrame.bind(e),this.requestAnimationFrame=e.oRequestAnimationFrame.bind(e)):(this.cancelAnimationFrame=e.clearTimeout.bind(e),this.requestAnimationFrame=function(t){return e.setTimeout(t,1e3/60)})}return RequestAnimationFrameDefinition}();t.RequestAnimationFrameDefinition=i,t.AnimationFrame=new i(n.root)},function(e,t,r){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=r(489),o=function(e){function AnimationFrameScheduler(){e.apply(this,arguments)}return n(AnimationFrameScheduler,e),AnimationFrameScheduler.prototype.flush=function(){this.active=!0,this.scheduled=void 0;var e,t=this.actions,r=-1,n=t.length,i=t.shift();do if(e=i.execute(i.state,i.delay))break;while(++r<n&&(i=t.shift()));if(this.active=!1,e){for(;++r<n&&(i=t.shift());)i.unsubscribe();throw e}},AnimationFrameScheduler}(i.AsyncScheduler);t.AnimationFrameScheduler=o},function(e,t,r){var n;/*! Hammer.JS - v2.0.7 - 2016-04-22
	 * http://hammerjs.github.io/
	 *
	 * Copyright (c) 2016 Jorik Tangelder;
	 * Licensed under the MIT license */
!function(i,o,s,a){"use strict";function setTimeoutContext(e,t,r){return setTimeout(bindFn(e,r),t)}function invokeArrayArg(e,t,r){return!!Array.isArray(e)&&(each(e,r[t],r),!0)}function each(e,t,r){var n;if(e)if(e.forEach)e.forEach(t,r);else if(e.length!==a)for(n=0;n<e.length;)t.call(r,e[n],n,e),n++;else for(n in e)e.hasOwnProperty(n)&&t.call(r,e[n],n,e)}function deprecate(e,t,r){var n="DEPRECATED METHOD: "+t+"\n"+r+" AT \n";return function(){var t=new Error("get-stack-trace"),r=t&&t.stack?t.stack.replace(/^[^\(]+?[\n$]/gm,"").replace(/^\s+at\s+/gm,"").replace(/^Object.<anonymous>\s*\(/gm,"{anonymous}()@"):"Unknown Stack Trace",o=i.console&&(i.console.warn||i.console.log);return o&&o.call(i.console,n,r),e.apply(this,arguments)}}function inherit(e,t,r){var n,i=t.prototype;n=e.prototype=Object.create(i),n.constructor=e,n._super=i,r&&u(n,r)}function bindFn(e,t){return function(){return e.apply(t,arguments)}}function boolOrFn(e,t){return typeof e==p?e.apply(t?t[0]||a:a,t):e}function ifUndefined(e,t){return e===a?t:e}function addEventListeners(e,t,r){each(splitStr(t),function(t){e.addEventListener(t,r,!1)})}function removeEventListeners(e,t,r){each(splitStr(t),function(t){e.removeEventListener(t,r,!1)})}function hasParent(e,t){for(;e;){if(e==t)return!0;e=e.parentNode}return!1}function inStr(e,t){return e.indexOf(t)>-1}function splitStr(e){return e.trim().split(/\s+/g)}function inArray(e,t,r){if(e.indexOf&&!r)return e.indexOf(t);for(var n=0;n<e.length;){if(r&&e[n][r]==t||!r&&e[n]===t)return n;n++}return-1}function toArray(e){return Array.prototype.slice.call(e,0)}function uniqueArray(e,t,r){for(var n=[],i=[],o=0;o<e.length;){var s=t?e[o][t]:e[o];inArray(i,s)<0&&n.push(e[o]),i[o]=s,o++}return r&&(n=t?n.sort(function(e,r){return e[t]>r[t]}):n.sort()),n}function prefixed(e,t){for(var r,n,i=t[0].toUpperCase()+t.slice(1),o=0;o<c.length;){if(r=c[o],n=r?r+i:t,n in e)return n;o++}return a}function uniqueId(){return y++}function getWindowForElement(e){var t=e.ownerDocument||e;return t.defaultView||t.parentWindow||i}function Input(e,t){var r=this;this.manager=e,this.callback=t,this.element=e.element,this.target=e.options.inputTarget,this.domHandler=function(t){boolOrFn(e.options.enable,[e])&&r.handler(t)},this.init()}function createInputInstance(e){var t,r=e.options.inputClass;return new(t=r?r:_?PointerEventInput:S?TouchInput:g?TouchMouseInput:MouseInput)(e,inputHandler)}function inputHandler(e,t,r){var n=r.pointers.length,i=r.changedPointers.length,o=t&x&&n-i===0,s=t&(O|I)&&n-i===0;r.isFirst=!!o,r.isFinal=!!s,o&&(e.session={}),r.eventType=t,computeInputData(e,r),e.emit("hammer.input",r),e.recognize(r),e.session.prevInput=r}function computeInputData(e,t){var r=e.session,n=t.pointers,i=n.length;r.firstInput||(r.firstInput=simpleCloneInputData(t)),i>1&&!r.firstMultiple?r.firstMultiple=simpleCloneInputData(t):1===i&&(r.firstMultiple=!1);var o=r.firstInput,s=r.firstMultiple,a=s?s.center:o.center,u=t.center=getCenter(n);t.timeStamp=d(),t.deltaTime=t.timeStamp-o.timeStamp,t.angle=getAngle(a,u),t.distance=getDistance(a,u),computeDeltaXY(r,t),t.offsetDirection=getDirection(t.deltaX,t.deltaY);var c=getVelocity(t.deltaTime,t.deltaX,t.deltaY);t.overallVelocityX=c.x,t.overallVelocityY=c.y,t.overallVelocity=f(c.x)>f(c.y)?c.x:c.y,t.scale=s?getScale(s.pointers,n):1,t.rotation=s?getRotation(s.pointers,n):0,t.maxPointers=r.prevInput?t.pointers.length>r.prevInput.maxPointers?t.pointers.length:r.prevInput.maxPointers:t.pointers.length,computeIntervalInputData(r,t);var l=e.element;hasParent(t.srcEvent.target,l)&&(l=t.srcEvent.target),t.target=l}function computeDeltaXY(e,t){var r=t.center,n=e.offsetDelta||{},i=e.prevDelta||{},o=e.prevInput||{};t.eventType!==x&&o.eventType!==O||(i=e.prevDelta={x:o.deltaX||0,y:o.deltaY||0},n=e.offsetDelta={x:r.x,y:r.y}),t.deltaX=i.x+(r.x-n.x),t.deltaY=i.y+(r.y-n.y)}function computeIntervalInputData(e,t){var r,n,i,o,s=e.lastInterval||t,u=t.timeStamp-s.timeStamp;if(t.eventType!=I&&(u>T||s.velocity===a)){var c=t.deltaX-s.deltaX,l=t.deltaY-s.deltaY,p=getVelocity(u,c,l);n=p.x,i=p.y,r=f(p.x)>f(p.y)?p.x:p.y,o=getDirection(c,l),e.lastInterval=t}else r=s.velocity,n=s.velocityX,i=s.velocityY,o=s.direction;t.velocity=r,t.velocityX=n,t.velocityY=i,t.direction=o}function simpleCloneInputData(e){for(var t=[],r=0;r<e.pointers.length;)t[r]={clientX:h(e.pointers[r].clientX),clientY:h(e.pointers[r].clientY)},r++;return{timeStamp:d(),pointers:t,center:getCenter(t),deltaX:e.deltaX,deltaY:e.deltaY}}function getCenter(e){var t=e.length;if(1===t)return{x:h(e[0].clientX),y:h(e[0].clientY)};for(var r=0,n=0,i=0;i<t;)r+=e[i].clientX,n+=e[i].clientY,i++;return{x:h(r/t),y:h(n/t)}}function getVelocity(e,t,r){return{x:t/e||0,y:r/e||0}}function getDirection(e,t){return e===t?R:f(e)>=f(t)?e<0?M:k:t<0?N:D}function getDistance(e,t,r){r||(r=F);var n=t[r[0]]-e[r[0]],i=t[r[1]]-e[r[1]];return Math.sqrt(n*n+i*i)}function getAngle(e,t,r){r||(r=F);var n=t[r[0]]-e[r[0]],i=t[r[1]]-e[r[1]];return 180*Math.atan2(i,n)/Math.PI}function getRotation(e,t){return getAngle(t[1],t[0],B)+getAngle(e[1],e[0],B)}function getScale(e,t){return getDistance(t[0],t[1],B)/getDistance(e[0],e[1],B)}function MouseInput(){this.evEl=U,this.evWin=z,this.pressed=!1,Input.apply(this,arguments)}function PointerEventInput(){this.evEl=G,this.evWin=K,Input.apply(this,arguments),this.store=this.manager.session.pointerEvents=[]}function SingleTouchInput(){this.evTarget=X,this.evWin=J,this.started=!1,Input.apply(this,arguments)}function normalizeSingleTouches(e,t){var r=toArray(e.touches),n=toArray(e.changedTouches);return t&(O|I)&&(r=uniqueArray(r.concat(n),"identifier",!0)),[r,n]}function TouchInput(){this.evTarget=$,this.targetIds={},Input.apply(this,arguments)}function getTouches(e,t){var r=toArray(e.touches),n=this.targetIds;if(t&(x|A)&&1===r.length)return n[r[0].identifier]=!0,[r,r];var i,o,s=toArray(e.changedTouches),a=[],u=this.target;if(o=r.filter(function(e){return hasParent(e.target,u)}),t===x)for(i=0;i<o.length;)n[o[i].identifier]=!0,i++;for(i=0;i<s.length;)n[s[i].identifier]&&a.push(s[i]),t&(O|I)&&delete n[s[i].identifier],i++;return a.length?[uniqueArray(o.concat(a),"identifier",!0),a]:void 0}function TouchMouseInput(){Input.apply(this,arguments);var e=bindFn(this.handler,this);this.touch=new TouchInput(this.manager,e),this.mouse=new MouseInput(this.manager,e),this.primaryTouch=null,this.lastTouches=[]}function recordTouches(e,t){e&x?(this.primaryTouch=t.changedPointers[0].identifier,setLastTouch.call(this,t)):e&(O|I)&&setLastTouch.call(this,t)}function setLastTouch(e){var t=e.changedPointers[0];if(t.identifier===this.primaryTouch){var r={x:t.clientX,y:t.clientY};this.lastTouches.push(r);var n=this.lastTouches,i=function(){var e=n.indexOf(r);e>-1&&n.splice(e,1)};setTimeout(i,Y)}}function isSyntheticEvent(e){for(var t=e.srcEvent.clientX,r=e.srcEvent.clientY,n=0;n<this.lastTouches.length;n++){var i=this.lastTouches[n],o=Math.abs(t-i.x),s=Math.abs(r-i.y);if(o<=ee&&s<=ee)return!0}return!1}function TouchAction(e,t){this.manager=e,this.set(t)}function cleanTouchActions(e){if(inStr(e,se))return se;var t=inStr(e,ae),r=inStr(e,ue);return t&&r?se:t||r?t?ae:ue:inStr(e,oe)?oe:ie}function getTouchActionProps(){if(!re)return!1;var e={},t=i.CSS&&i.CSS.supports;return["auto","manipulation","pan-y","pan-x","pan-x pan-y","none"].forEach(function(r){e[r]=!t||i.CSS.supports("touch-action",r)}),e}function Recognizer(e){this.options=u({},this.defaults,e||{}),this.id=uniqueId(),this.manager=null,this.options.enable=ifUndefined(this.options.enable,!0),this.state=le,this.simultaneous={},this.requireFail=[]}function stateStr(e){return e&me?"cancel":e&fe?"end":e&he?"move":e&pe?"start":""}function directionStr(e){return e==D?"down":e==N?"up":e==M?"left":e==k?"right":""}function getRecognizerByNameIfManager(e,t){var r=t.manager;return r?r.get(e):e}function AttrRecognizer(){Recognizer.apply(this,arguments)}function PanRecognizer(){AttrRecognizer.apply(this,arguments),this.pX=null,this.pY=null}function PinchRecognizer(){AttrRecognizer.apply(this,arguments)}function PressRecognizer(){Recognizer.apply(this,arguments),this._timer=null,this._input=null}function RotateRecognizer(){AttrRecognizer.apply(this,arguments)}function SwipeRecognizer(){AttrRecognizer.apply(this,arguments)}function TapRecognizer(){Recognizer.apply(this,arguments),this.pTime=!1,this.pCenter=!1,this._timer=null,this._input=null,this.count=0}function Hammer(e,t){return t=t||{},t.recognizers=ifUndefined(t.recognizers,Hammer.defaults.preset),new Manager(e,t)}function Manager(e,t){this.options=u({},Hammer.defaults,t||{}),this.options.inputTarget=this.options.inputTarget||e,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=e,this.input=createInputInstance(this),this.touchAction=new TouchAction(this,this.options.touchAction),toggleCssProps(this,!0),each(this.options.recognizers,function(e){var t=this.add(new e[0](e[1]));e[2]&&t.recognizeWith(e[2]),e[3]&&t.requireFailure(e[3])},this)}function toggleCssProps(e,t){var r=e.element;if(r.style){var n;each(e.options.cssProps,function(i,o){n=prefixed(r.style,o),t?(e.oldCssProps[n]=r.style[n],r.style[n]=i):r.style[n]=e.oldCssProps[n]||""}),t||(e.oldCssProps={})}}function triggerDomEvent(e,t){var r=o.createEvent("Event");r.initEvent(e,!0,!0),r.gesture=t,t.target.dispatchEvent(r)}var u,c=["","webkit","Moz","MS","ms","o"],l=o.createElement("div"),p="function",h=Math.round,f=Math.abs,d=Date.now;u="function"!=typeof Object.assign?function(e){if(e===a||null===e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),r=1;r<arguments.length;r++){var n=arguments[r];if(n!==a&&null!==n)for(var i in n)n.hasOwnProperty(i)&&(t[i]=n[i])}return t}:Object.assign;var m=deprecate(function(e,t,r){for(var n=Object.keys(t),i=0;i<n.length;)(!r||r&&e[n[i]]===a)&&(e[n[i]]=t[n[i]]),i++;return e},"extend","Use `assign`."),v=deprecate(function(e,t){return m(e,t,!0)},"merge","Use `assign`."),y=1,b=/mobile|tablet|ip(ad|hone|od)|android/i,g="ontouchstart"in i,_=prefixed(i,"PointerEvent")!==a,S=g&&b.test(navigator.userAgent),w="touch",E="pen",C="mouse",P="kinect",T=25,x=1,A=2,O=4,I=8,R=1,M=2,k=4,N=8,D=16,V=M|k,j=N|D,L=V|j,F=["x","y"],B=["clientX","clientY"];Input.prototype={handler:function(){},init:function(){this.evEl&&addEventListeners(this.element,this.evEl,this.domHandler),this.evTarget&&addEventListeners(this.target,this.evTarget,this.domHandler),this.evWin&&addEventListeners(getWindowForElement(this.element),this.evWin,this.domHandler)},destroy:function(){this.evEl&&removeEventListeners(this.element,this.evEl,this.domHandler),this.evTarget&&removeEventListeners(this.target,this.evTarget,this.domHandler),this.evWin&&removeEventListeners(getWindowForElement(this.element),this.evWin,this.domHandler)}};var W={mousedown:x,mousemove:A,mouseup:O},U="mousedown",z="mousemove mouseup";inherit(MouseInput,Input,{handler:function(e){var t=W[e.type];t&x&&0===e.button&&(this.pressed=!0),t&A&&1!==e.which&&(t=O),this.pressed&&(t&O&&(this.pressed=!1),this.callback(this.manager,t,{pointers:[e],changedPointers:[e],pointerType:C,srcEvent:e}))}});var H={pointerdown:x,pointermove:A,pointerup:O,pointercancel:I,pointerout:I},q={2:w,3:E,4:C,5:P},G="pointerdown",K="pointermove pointerup pointercancel";i.MSPointerEvent&&!i.PointerEvent&&(G="MSPointerDown",K="MSPointerMove MSPointerUp MSPointerCancel"),inherit(PointerEventInput,Input,{handler:function(e){var t=this.store,r=!1,n=e.type.toLowerCase().replace("ms",""),i=H[n],o=q[e.pointerType]||e.pointerType,s=o==w,a=inArray(t,e.pointerId,"pointerId");i&x&&(0===e.button||s)?a<0&&(t.push(e),a=t.length-1):i&(O|I)&&(r=!0),a<0||(t[a]=e,this.callback(this.manager,i,{pointers:t,changedPointers:[e],pointerType:o,srcEvent:e}),r&&t.splice(a,1))}});var Q={touchstart:x,touchmove:A,touchend:O,touchcancel:I},X="touchstart",J="touchstart touchmove touchend touchcancel";inherit(SingleTouchInput,Input,{handler:function(e){var t=Q[e.type];if(t===x&&(this.started=!0),this.started){var r=normalizeSingleTouches.call(this,e,t);t&(O|I)&&r[0].length-r[1].length===0&&(this.started=!1),this.callback(this.manager,t,{pointers:r[0],changedPointers:r[1],pointerType:w,srcEvent:e})}}});var Z={touchstart:x,touchmove:A,touchend:O,touchcancel:I},$="touchstart touchmove touchend touchcancel";inherit(TouchInput,Input,{handler:function(e){var t=Z[e.type],r=getTouches.call(this,e,t);r&&this.callback(this.manager,t,{pointers:r[0],changedPointers:r[1],pointerType:w,srcEvent:e})}});var Y=2500,ee=25;inherit(TouchMouseInput,Input,{handler:function(e,t,r){var n=r.pointerType==w,i=r.pointerType==C;if(!(i&&r.sourceCapabilities&&r.sourceCapabilities.firesTouchEvents)){if(n)recordTouches.call(this,t,r);else if(i&&isSyntheticEvent.call(this,r))return;this.callback(e,t,r)}},destroy:function(){this.touch.destroy(),this.mouse.destroy()}});var te=prefixed(l.style,"touchAction"),re=te!==a,ne="compute",ie="auto",oe="manipulation",se="none",ae="pan-x",ue="pan-y",ce=getTouchActionProps();TouchAction.prototype={set:function(e){e==ne&&(e=this.compute()),re&&this.manager.element.style&&ce[e]&&(this.manager.element.style[te]=e),this.actions=e.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var e=[];return each(this.manager.recognizers,function(t){boolOrFn(t.options.enable,[t])&&(e=e.concat(t.getTouchAction()))}),cleanTouchActions(e.join(" "))},preventDefaults:function(e){var t=e.srcEvent,r=e.offsetDirection;if(this.manager.session.prevented)return void t.preventDefault();var n=this.actions,i=inStr(n,se)&&!ce[se],o=inStr(n,ue)&&!ce[ue],s=inStr(n,ae)&&!ce[ae];if(i){var a=1===e.pointers.length,u=e.distance<2,c=e.deltaTime<250;if(a&&u&&c)return}return s&&o?void 0:i||o&&r&V||s&&r&j?this.preventSrc(t):void 0},preventSrc:function(e){this.manager.session.prevented=!0,e.preventDefault()}};var le=1,pe=2,he=4,fe=8,de=fe,me=16,ve=32;Recognizer.prototype={defaults:{},set:function(e){return u(this.options,e),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(e){if(invokeArrayArg(e,"recognizeWith",this))return this;var t=this.simultaneous;return e=getRecognizerByNameIfManager(e,this),t[e.id]||(t[e.id]=e,e.recognizeWith(this)),this},dropRecognizeWith:function(e){return invokeArrayArg(e,"dropRecognizeWith",this)?this:(e=getRecognizerByNameIfManager(e,this),delete this.simultaneous[e.id],this)},requireFailure:function(e){if(invokeArrayArg(e,"requireFailure",this))return this;var t=this.requireFail;return e=getRecognizerByNameIfManager(e,this),inArray(t,e)===-1&&(t.push(e),e.requireFailure(this)),this},dropRequireFailure:function(e){if(invokeArrayArg(e,"dropRequireFailure",this))return this;e=getRecognizerByNameIfManager(e,this);var t=inArray(this.requireFail,e);return t>-1&&this.requireFail.splice(t,1),this},hasRequireFailures:function(){return this.requireFail.length>0},canRecognizeWith:function(e){return!!this.simultaneous[e.id]},emit:function(e){function emit(r){t.manager.emit(r,e)}var t=this,r=this.state;r<fe&&emit(t.options.event+stateStr(r)),emit(t.options.event),e.additionalEvent&&emit(e.additionalEvent),r>=fe&&emit(t.options.event+stateStr(r))},tryEmit:function(e){return this.canEmit()?this.emit(e):void(this.state=ve)},canEmit:function(){for(var e=0;e<this.requireFail.length;){if(!(this.requireFail[e].state&(ve|le)))return!1;e++}return!0},recognize:function(e){var t=u({},e);return boolOrFn(this.options.enable,[this,t])?(this.state&(de|me|ve)&&(this.state=le),this.state=this.process(t),void(this.state&(pe|he|fe|me)&&this.tryEmit(t))):(this.reset(),void(this.state=ve))},process:function(e){},getTouchAction:function(){},reset:function(){}},inherit(AttrRecognizer,Recognizer,{defaults:{pointers:1},attrTest:function(e){var t=this.options.pointers;return 0===t||e.pointers.length===t},process:function(e){var t=this.state,r=e.eventType,n=t&(pe|he),i=this.attrTest(e);return n&&(r&I||!i)?t|me:n||i?r&O?t|fe:t&pe?t|he:pe:ve}}),inherit(PanRecognizer,AttrRecognizer,{defaults:{event:"pan",threshold:10,pointers:1,direction:L},getTouchAction:function(){var e=this.options.direction,t=[];return e&V&&t.push(ue),e&j&&t.push(ae),t},directionTest:function(e){var t=this.options,r=!0,n=e.distance,i=e.direction,o=e.deltaX,s=e.deltaY;return i&t.direction||(t.direction&V?(i=0===o?R:o<0?M:k,r=o!=this.pX,n=Math.abs(e.deltaX)):(i=0===s?R:s<0?N:D,r=s!=this.pY,n=Math.abs(e.deltaY))),e.direction=i,r&&n>t.threshold&&i&t.direction},attrTest:function(e){return AttrRecognizer.prototype.attrTest.call(this,e)&&(this.state&pe||!(this.state&pe)&&this.directionTest(e))},emit:function(e){this.pX=e.deltaX,this.pY=e.deltaY;var t=directionStr(e.direction);t&&(e.additionalEvent=this.options.event+t),this._super.emit.call(this,e)}}),inherit(PinchRecognizer,AttrRecognizer,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[se]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.scale-1)>this.options.threshold||this.state&pe)},emit:function(e){if(1!==e.scale){var t=e.scale<1?"in":"out";e.additionalEvent=this.options.event+t}this._super.emit.call(this,e)}}),inherit(PressRecognizer,Recognizer,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[ie]},process:function(e){var t=this.options,r=e.pointers.length===t.pointers,n=e.distance<t.threshold,i=e.deltaTime>t.time;if(this._input=e,!n||!r||e.eventType&(O|I)&&!i)this.reset();else if(e.eventType&x)this.reset(),this._timer=setTimeoutContext(function(){this.state=de,this.tryEmit()},t.time,this);else if(e.eventType&O)return de;return ve},reset:function(){clearTimeout(this._timer)},emit:function(e){this.state===de&&(e&&e.eventType&O?this.manager.emit(this.options.event+"up",e):(this._input.timeStamp=d(),this.manager.emit(this.options.event,this._input)))}}),inherit(RotateRecognizer,AttrRecognizer,{defaults:{event:"rotate",threshold:0,pointers:2},getTouchAction:function(){return[se]},attrTest:function(e){return this._super.attrTest.call(this,e)&&(Math.abs(e.rotation)>this.options.threshold||this.state&pe)}}),inherit(SwipeRecognizer,AttrRecognizer,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:V|j,pointers:1},getTouchAction:function(){return PanRecognizer.prototype.getTouchAction.call(this)},attrTest:function(e){var t,r=this.options.direction;return r&(V|j)?t=e.overallVelocity:r&V?t=e.overallVelocityX:r&j&&(t=e.overallVelocityY),this._super.attrTest.call(this,e)&&r&e.offsetDirection&&e.distance>this.options.threshold&&e.maxPointers==this.options.pointers&&f(t)>this.options.velocity&&e.eventType&O},emit:function(e){var t=directionStr(e.offsetDirection);t&&this.manager.emit(this.options.event+t,e),this.manager.emit(this.options.event,e)}}),inherit(TapRecognizer,Recognizer,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[oe]},process:function(e){var t=this.options,r=e.pointers.length===t.pointers,n=e.distance<t.threshold,i=e.deltaTime<t.time;if(this.reset(),e.eventType&x&&0===this.count)return this.failTimeout();if(n&&i&&r){if(e.eventType!=O)return this.failTimeout();var o=!this.pTime||e.timeStamp-this.pTime<t.interval,s=!this.pCenter||getDistance(this.pCenter,e.center)<t.posThreshold;this.pTime=e.timeStamp,this.pCenter=e.center,s&&o?this.count+=1:this.count=1,this._input=e;var a=this.count%t.taps;if(0===a)return this.hasRequireFailures()?(this._timer=setTimeoutContext(function(){this.state=de,this.tryEmit()},t.interval,this),pe):de}return ve},failTimeout:function(){return this._timer=setTimeoutContext(function(){this.state=ve},this.options.interval,this),ve},reset:function(){clearTimeout(this._timer)},emit:function(){this.state==de&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))}}),Hammer.VERSION="2.0.7",Hammer.defaults={domEvents:!1,touchAction:ne,enable:!0,inputTarget:null,inputClass:null,preset:[[RotateRecognizer,{enable:!1}],[PinchRecognizer,{enable:!1},["rotate"]],[SwipeRecognizer,{direction:V}],[PanRecognizer,{direction:V},["swipe"]],[TapRecognizer],[TapRecognizer,{event:"doubletap",taps:2},["tap"]],[PressRecognizer]],cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}};var ye=1,be=2;Manager.prototype={set:function(e){return u(this.options,e),e.touchAction&&this.touchAction.update(),e.inputTarget&&(this.input.destroy(),this.input.target=e.inputTarget,this.input.init()),this},stop:function(e){this.session.stopped=e?be:ye},recognize:function(e){var t=this.session;if(!t.stopped){this.touchAction.preventDefaults(e);var r,n=this.recognizers,i=t.curRecognizer;(!i||i&&i.state&de)&&(i=t.curRecognizer=null);for(var o=0;o<n.length;)r=n[o],t.stopped===be||i&&r!=i&&!r.canRecognizeWith(i)?r.reset():r.recognize(e),!i&&r.state&(pe|he|fe)&&(i=t.curRecognizer=r),o++}},get:function(e){if(e instanceof Recognizer)return e;for(var t=this.recognizers,r=0;r<t.length;r++)if(t[r].options.event==e)return t[r];return null},add:function(e){if(invokeArrayArg(e,"add",this))return this;var t=this.get(e.options.event);return t&&this.remove(t),this.recognizers.push(e),e.manager=this,this.touchAction.update(),e},remove:function(e){if(invokeArrayArg(e,"remove",this))return this;if(e=this.get(e)){var t=this.recognizers,r=inArray(t,e);r!==-1&&(t.splice(r,1),this.touchAction.update())}return this},on:function(e,t){if(e!==a&&t!==a){var r=this.handlers;return each(splitStr(e),function(e){r[e]=r[e]||[],r[e].push(t)}),this}},off:function(e,t){if(e!==a){var r=this.handlers;return each(splitStr(e),function(e){t?r[e]&&r[e].splice(inArray(r[e],t),1):delete r[e]}),this}},emit:function(e,t){this.options.domEvents&&triggerDomEvent(e,t);var r=this.handlers[e]&&this.handlers[e].slice();if(r&&r.length){t.type=e,t.preventDefault=function(){t.srcEvent.preventDefault()};for(var n=0;n<r.length;)r[n](t),n++}},destroy:function(){this.element&&toggleCssProps(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null}},u(Hammer,{INPUT_START:x,INPUT_MOVE:A,INPUT_END:O,INPUT_CANCEL:I,STATE_POSSIBLE:le,STATE_BEGAN:pe,STATE_CHANGED:he,STATE_ENDED:fe,STATE_RECOGNIZED:de,STATE_CANCELLED:me,STATE_FAILED:ve,DIRECTION_NONE:R,DIRECTION_LEFT:M,DIRECTION_RIGHT:k,DIRECTION_UP:N,DIRECTION_DOWN:D,DIRECTION_HORIZONTAL:V,DIRECTION_VERTICAL:j,DIRECTION_ALL:L,Manager:Manager,Input:Input,TouchAction:TouchAction,TouchInput:TouchInput,MouseInput:MouseInput,PointerEventInput:PointerEventInput,TouchMouseInput:TouchMouseInput,SingleTouchInput:SingleTouchInput,Recognizer:Recognizer,AttrRecognizer:AttrRecognizer,Tap:TapRecognizer,Pan:PanRecognizer,Swipe:SwipeRecognizer,Pinch:PinchRecognizer,Rotate:RotateRecognizer,Press:PressRecognizer,on:addEventListeners,off:removeEventListeners,each:each,merge:v,extend:m,assign:u,inherit:inherit,bindFn:bindFn,prefixed:prefixed});var ge="undefined"!=typeof i?i:"undefined"!=typeof self?self:{};ge.Hammer=Hammer,n=function(){return Hammer}.call(t,r,t,e),!(n!==a&&(e.exports=n))}(window,document,"Hammer")}]);
//# sourceMappingURL=vendor.38a1ea9d732a1ab0ecfa.js.map