diff --git a/web/vtctld2/app/index.html b/web/vtctld2/app/index.html index a238afc4783..7feafddf965 100644 --- a/web/vtctld2/app/index.html +++ b/web/vtctld2/app/index.html @@ -27,5 +27,5 @@ Loading... - + diff --git a/web/vtctld2/app/inline.js b/web/vtctld2/app/inline.js index be2264c84f3..a69247097c5 100644 --- a/web/vtctld2/app/inline.js +++ b/web/vtctld2/app/inline.js @@ -1 +1 @@ -!function(e){function __webpack_require__(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,__webpack_require__),n.l=!0,n.exports}var r=window.webpackJsonp;window.webpackJsonp=function(t,o,c){for(var _,a,i,u=0,p=[];u0?r:"package:"+r+b.MODULE_SUFFIX}return e.importUri(t)}function convertToCompileValue(e,t){return b.visitValue(e,new S,t)}var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(0),o=n(27),s=n(10),a=n(347),l=n(31),c=n(101),u=n(235),p=n(18),d=n(5),h=n(28),f=n(544),m=n(239),y=n(241),v=n(113),g=n(103),b=n(36),_=function(){function CompileMetadataResolver(e,t,n,r,i,s,a){void 0===a&&(a=o.reflector),this._ngModuleResolver=e,this._directiveResolver=t,this._pipeResolver=n,this._config=r,this._console=i,this._schemaRegistry=s,this._reflector=a,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=d.stringify(e);if(t.indexOf("(")>=0){var n=this._anonymousTypes.get(e);d.isBlank(n)&&(this._anonymousTypes.set(e,this._anonymousTypeIndex++),n=this._anonymousTypes.get(e)),t="anonymous_token_"+n+"_"}return b.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,n=e.definitions.map(function(e){return t.getAnimationStateMetadata(e)});return new l.CompileAnimationEntryMetadata(e.name,n)},CompileMetadataResolver.prototype.getAnimationStateMetadata=function(e){if(e instanceof i.AnimationStateDeclarationMetadata){var t=this.getAnimationStyleMetadata(e.styles);return new l.CompileAnimationStateDeclarationMetadata(e.stateNameExpr,t)}return e instanceof i.AnimationStateTransitionMetadata?new l.CompileAnimationStateTransitionMetadata(e.stateChangeExpr,this.getAnimationMetadata(e.steps)):null},CompileMetadataResolver.prototype.getAnimationStyleMetadata=function(e){return new l.CompileAnimationStyleMetadata(e.offset,e.styles)},CompileMetadataResolver.prototype.getAnimationMetadata=function(e){var t=this;if(e instanceof i.AnimationStyleMetadata)return this.getAnimationStyleMetadata(e);if(e instanceof i.AnimationKeyframesSequenceMetadata)return new l.CompileAnimationKeyframesSequenceMetadata(e.steps.map(function(e){return t.getAnimationStyleMetadata(e)}));if(e instanceof i.AnimationAnimateMetadata){var n=this.getAnimationMetadata(e.styles);return new l.CompileAnimationAnimateMetadata(e.timings,n)}if(e instanceof i.AnimationWithStepsMetadata){var r=e.steps.map(function(e){return t.getAnimationMetadata(e)});return e instanceof i.AnimationGroupMetadata?new l.CompileAnimationGroupMetadata(r):new l.CompileAnimationSequenceMetadata(r)}return null},CompileMetadataResolver.prototype.getDirectiveMetadata=function(e,t){var n=this;void 0===t&&(t=!0),e=i.resolveForwardRef(e);var r=this._directiveCache.get(e);if(d.isBlank(r)){var o=this._directiveResolver.resolve(e,t);if(!o)return null;var s=null,c=null,u=[],h=staticTypeModuleUrl(e),f=[],m=[],y=[],v=o.selector;if(o instanceof i.ComponentMetadata){var g=o;a.assertArrayOfStrings("styles",g.styles),a.assertInterpolationSymbols("interpolation",g.interpolation);var b=d.isPresent(g.animations)?g.animations.map(function(e){return n.getAnimationEntryMetadata(e)}):null;a.assertArrayOfStrings("styles",g.styles),a.assertArrayOfStrings("styleUrls",g.styleUrls),s=new l.CompileTemplateMetadata({encapsulation:g.encapsulation,template:g.template,templateUrl:g.templateUrl,styles:g.styles,styleUrls:g.styleUrls,animations:b,interpolation:g.interpolation}),c=g.changeDetection,d.isPresent(o.viewProviders)&&(u=this.getProvidersMetadata(verifyNonBlankProviders(e,o.viewProviders,"viewProviders"),[])),h=componentModuleUrl(this._reflector,e,g),g.entryComponents&&(y=flattenArray(g.entryComponents).map(function(e){return n.getTypeMetadata(e,staticTypeModuleUrl(e))})),g.directives&&(f=flattenArray(g.directives).map(function(t){if(!t)throw new p.BaseException("Unexpected directive value '"+t+"' on the View of component '"+d.stringify(e)+"'");return n.getTypeMetadata(t,staticTypeModuleUrl(t))})),g.pipes&&(m=flattenArray(g.pipes).map(function(t){if(!t)throw new p.BaseException("Unexpected pipe value '"+t+"' on the View of component '"+d.stringify(e)+"'");return n.getTypeMetadata(t,staticTypeModuleUrl(t))})),v||(v=this._schemaRegistry.getDefaultComponentElementName())}else if(!v)throw new p.BaseException("Directive "+d.stringify(e)+" has no selector, please add it!");var _=[];d.isPresent(o.providers)&&(_=this.getProvidersMetadata(verifyNonBlankProviders(e,o.providers,"providers"),y));var S=[],w=[];d.isPresent(o.queries)&&(S=this.getQueriesMetadata(o.queries,!1,e),w=this.getQueriesMetadata(o.queries,!0,e)),r=l.CompileDirectiveMetadata.create({selector:v,exportAs:o.exportAs,isComponent:d.isPresent(s),type:this.getTypeMetadata(e,h),template:s,changeDetection:c,inputs:o.inputs,outputs:o.outputs,host:o.host,providers:_,viewProviders:u,queries:S,viewQueries:w,viewDirectives:f,viewPipes:m,entryComponents:y}),this._directiveCache.set(e,r)}return r},CompileMetadataResolver.prototype.getNgModuleMetadata=function(e,t){var n=this;void 0===t&&(t=!0),e=i.resolveForwardRef(e);var r=this._ngModuleCache.get(e);if(!r){var o=this._ngModuleResolver.resolve(e,t);if(!o)return null;var s=[],a=[],c=[],u=[],h=[],f=[],m=[],y=[],v=[],g=[];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&&m.push.apply(m,n.getProvidersMetadata(i.providers,y))}if(!r)throw new p.BaseException("Unexpected value '"+d.stringify(t)+"' imported by the module '"+d.stringify(e)+"'");h.push(n.getNgModuleMetadata(r,!1))}),o.exports&&flattenArray(o.exports).forEach(function(t){if(!isValidType(t))throw new p.BaseException("Unexpected value '"+d.stringify(t)+"' exported by the module '"+d.stringify(e)+"'");var r,i,o;if(r=n.getDirectiveMetadata(t,!1))a.push(r);else if(i=n.getPipeMetadata(t,!1))u.push(i);else{if(!(o=n.getNgModuleMetadata(t,!1)))throw new p.BaseException("Unexpected value '"+d.stringify(t)+"' exported by the module '"+d.stringify(e)+"'");f.push(o)}});var b=this._getTransitiveNgModuleMetadata(h,f);o.declarations&&flattenArray(o.declarations).forEach(function(t){if(!isValidType(t))throw new p.BaseException("Unexpected value '"+d.stringify(t)+"' declared by the module '"+d.stringify(e)+"'");var r,i;if(r=n.getDirectiveMetadata(t,!1))n._addDirectiveToModule(r,e,b,s,!0);else{if(!(i=n.getPipeMetadata(t,!1)))throw new p.BaseException("Unexpected value '"+d.stringify(t)+"' declared by the module '"+d.stringify(e)+"'");n._addPipeToModule(i,e,b,c,!0)}}),o.providers&&m.push.apply(m,this.getProvidersMetadata(o.providers,y)),o.entryComponents&&y.push.apply(y,flattenArray(o.entryComponents).map(function(e){return n.getTypeMetadata(e,staticTypeModuleUrl(e))})),o.bootstrap&&v.push.apply(v,flattenArray(o.bootstrap).map(function(e){return n.getTypeMetadata(e,staticTypeModuleUrl(e))})),y.push.apply(y,v),o.schemas&&g.push.apply(g,flattenArray(o.schemas)),(_=b.entryComponents).push.apply(_,y),(S=b.providers).push.apply(S,m),r=new l.CompileNgModuleMetadata({type:this.getTypeMetadata(e,staticTypeModuleUrl(e)),providers:m,entryComponents:y,bootstrapComponents:v,schemas:g,declaredDirectives:s,exportedDirectives:a,declaredPipes:c,exportedPipes:u,importedModules:h,exportedModules:f,transitiveModule:b}),b.modules.push(r),this._verifyModule(r),this._ngModuleCache.set(e,r)}return r;var _,S},CompileMetadataResolver.prototype.addComponentToModule=function(e,t){var n=this.getNgModuleMetadata(e),r=this.getDirectiveMetadata(t,!1);this._addDirectiveToModule(r,n.type.runtime,n.transitiveModule,n.declaredDirectives),n.transitiveModule.entryComponents.push(r.type),n.entryComponents.push(r.type),this._verifyModule(n)},CompileMetadataResolver.prototype._verifyModule=function(e){var t=this;e.exportedDirectives.forEach(function(t){if(!e.transitiveModule.directivesSet.has(t.type.runtime))throw new p.BaseException("Can't export directive "+d.stringify(t.type.runtime)+" from "+d.stringify(e.type.runtime)+" as it was neither declared nor imported!")}),e.exportedPipes.forEach(function(t){if(!e.transitiveModule.pipesSet.has(t.type.runtime))throw new p.BaseException("Can't export pipe "+d.stringify(t.type.runtime)+" from "+d.stringify(e.type.runtime)+" as it was neither declared nor imported!")}),e.entryComponents.forEach(function(n){e.transitiveModule.directivesSet.has(n.runtime)||(t._addDirectiveToModule(t.getDirectiveMetadata(n.runtime),e.type.runtime,e.transitiveModule,e.declaredDirectives),t._console.warn("NgModule "+d.stringify(e.type.runtime)+" uses "+d.stringify(n.runtime)+' via "entryComponents" but it was neither declared nor imported! This warning will become an error after final.'))}),e.declaredDirectives.forEach(function(n){t._getTransitiveViewDirectivesAndPipes(n,e)})},CompileMetadataResolver.prototype._addTypeToModule=function(e,t){var n=this._ngModuleOfTypes.get(e);if(n&&n!==t)throw new p.BaseException("Type "+d.stringify(e)+" is part of the declarations of 2 modules: "+d.stringify(n)+" and "+d.stringify(t)+"!");this._ngModuleOfTypes.set(e,t)},CompileMetadataResolver.prototype._getTransitiveViewDirectivesAndPipes=function(e,t){var n=this;if(e.isComponent){var r=function(e){var r=n.getPipeMetadata(e);n._addPipeToModule(r,t.type.runtime,t.transitiveModule,t.declaredPipes)},i=function(e){var r=n.getDirectiveMetadata(e);n._addDirectiveToModule(r,t.type.runtime,t.transitiveModule,t.declaredDirectives)&&n._getTransitiveViewDirectivesAndPipes(r,t)};e.viewPipes&&e.viewPipes.forEach(function(e){return r(e.runtime)}),e.viewDirectives&&e.viewDirectives.forEach(function(e){return i(e.runtime)}),e.entryComponents.forEach(function(r){t.transitiveModule.directivesSet.has(r.runtime)||(n._console.warn("Component "+d.stringify(e.type.runtime)+" in NgModule "+d.stringify(t.type.runtime)+" uses "+d.stringify(r.runtime)+' via "entryComponents" but it was neither declared nor imported into the module! This warning will become an error after final.'),i(r.runtime))})}},CompileMetadataResolver.prototype._getTransitiveNgModuleMetadata=function(e,t){var n=getTransitiveModules(e.concat(t),!0),r=flattenArray(n.map(function(e){return e.providers})),i=flattenArray(n.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 l.TransitiveCompileNgModuleMetadata(n,r,i,s,a)},CompileMetadataResolver.prototype._addDirectiveToModule=function(e,t,n,r,i){return void 0===i&&(i=!1),!(!i&&n.directivesSet.has(e.type.runtime))&&(n.directivesSet.add(e.type.runtime),n.directives.push(e),r.push(e),this._addTypeToModule(e.type.runtime,t),!0)},CompileMetadataResolver.prototype._addPipeToModule=function(e,t,n,r,i){return void 0===i&&(i=!1),!(!i&&n.pipesSet.has(e.type.runtime))&&(n.pipesSet.add(e.type.runtime),n.pipes.push(e),r.push(e),this._addTypeToModule(e.type.runtime,t),!0)},CompileMetadataResolver.prototype.getTypeMetadata=function(e,t,n){return void 0===n&&(n=null),e=i.resolveForwardRef(e),new l.CompileTypeMetadata({name:this.sanitizeTokenName(e),moduleUrl:t,runtime:e,diDeps:this.getDependenciesMetadata(e,n),lifecycleHooks:o.LIFECYCLE_HOOKS_VALUES.filter(function(t){return f.hasLifecycleHook(t,e)})})},CompileMetadataResolver.prototype.getFactoryMetadata=function(e,t,n){return void 0===n&&(n=null),e=i.resolveForwardRef(e),new l.CompileFactoryMetadata({name:this.sanitizeTokenName(e),moduleUrl:t,runtime:e,diDeps:this.getDependenciesMetadata(e,n)})},CompileMetadataResolver.prototype.getPipeMetadata=function(e,t){void 0===t&&(t=!0),e=i.resolveForwardRef(e);var n=this._pipeCache.get(e);if(d.isBlank(n)){var r=this._pipeResolver.resolve(e,t);if(!r)return null;n=new l.CompilePipeMetadata({type:this.getTypeMetadata(e,staticTypeModuleUrl(e)),name:r.name,pure:r.pure}),this._pipeCache.set(e,n)}return n},CompileMetadataResolver.prototype.getDependenciesMetadata=function(e,t){var n=this,r=!1,o=d.isPresent(t)?t:this._reflector.parameters(e);d.isBlank(o)&&(o=[]);var s=o.map(function(t){var o=!1,s=!1,a=!1,c=!1,u=!1,p=null,h=null,f=null;return d.isArray(t)?t.forEach(function(e){e instanceof i.HostMetadata?s=!0:e instanceof i.SelfMetadata?a=!0:e instanceof i.SkipSelfMetadata?c=!0:e instanceof i.OptionalMetadata?u=!0:e instanceof i.AttributeMetadata?(o=!0,f=e.attributeName):e instanceof i.QueryMetadata?e.isViewQuery?h=e:p=e:e instanceof i.InjectMetadata?f=e.token:isValidType(e)&&d.isBlank(f)&&(f=e)}):f=t,d.isBlank(f)?(r=!0,null):new l.CompileDiDependencyMetadata({isAttribute:o,isHost:s,isSelf:a,isSkipSelf:c,isOptional:u,query:d.isPresent(p)?n.getQueryMetadata(p,null,e):null,viewQuery:d.isPresent(h)?n.getQueryMetadata(h,null,e):null,token:n.getTokenMetadata(f)})});if(r){var a=s.map(function(e){return e?d.stringify(e.token):"?"}).join(", ");throw new p.BaseException("Can't resolve all parameters for "+d.stringify(e)+": ("+a+").")}return s},CompileMetadataResolver.prototype.getTokenMetadata=function(e){e=i.resolveForwardRef(e);var t;return t=d.isString(e)?new l.CompileTokenMetadata({value:e}):new l.CompileTokenMetadata({identifier:new l.CompileIdentifierMetadata({runtime:e,name:this.sanitizeTokenName(e),moduleUrl:staticTypeModuleUrl(e)})})},CompileMetadataResolver.prototype.getProvidersMetadata=function(e,t){var n=this,r=[];return e.forEach(function(e){e=i.resolveForwardRef(e),o.isProviderLiteral(e)&&(e=o.createProvider(e));var s;if(d.isArray(e))s=n.getProvidersMetadata(e,t);else if(e instanceof i.Provider){var a=n.getTokenMetadata(e.token);a.equalsTo(h.identifierToken(h.Identifiers.ANALYZE_FOR_ENTRY_COMPONENTS))?t.push.apply(t,n._getEntryComponentsFromProvider(e)):s=n.getProviderMetadata(e)}else{if(!isValidType(e))throw new p.BaseException("Invalid provider - only instances of Provider and Type are allowed, got: "+d.stringify(e));s=n.getTypeMetadata(e,staticTypeModuleUrl(e))}s&&r.push(s)}),r},CompileMetadataResolver.prototype._getEntryComponentsFromProvider=function(e){var t=this,n=[],r=[];if(e.useFactory||e.useExisting||e.useClass)throw new p.BaseException("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!");if(!e.multi)throw new p.BaseException("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!");return convertToCompileValue(e.useValue,r),r.forEach(function(e){var r=t.getDirectiveMetadata(e.runtime,!1);r&&n.push(r.type)}),n},CompileMetadataResolver.prototype.getProviderMetadata=function(e){var t,n=null,r=null;return d.isPresent(e.useClass)?(n=this.getTypeMetadata(e.useClass,staticTypeModuleUrl(e.useClass),e.dependencies),t=n.diDeps):d.isPresent(e.useFactory)&&(r=this.getFactoryMetadata(e.useFactory,staticTypeModuleUrl(e.useFactory),e.dependencies),t=r.diDeps),new l.CompileProviderMetadata({token:this.getTokenMetadata(e.token),useClass:n,useValue:convertToCompileValue(e.useValue,[]),useFactory:r,useExisting:d.isPresent(e.useExisting)?this.getTokenMetadata(e.useExisting):null,deps:t,multi:e.multi})},CompileMetadataResolver.prototype.getQueriesMetadata=function(e,t,n){var r=this,i=[];return s.StringMapWrapper.forEach(e,function(e,o){e.isViewQuery===t&&i.push(r.getQueryMetadata(e,o,n))}),i},CompileMetadataResolver.prototype.getQueryMetadata=function(e,t,n){var r,i=this;if(e.isVarBindingQuery)r=e.varBindings.map(function(e){return i.getTokenMetadata(e)});else{if(!d.isPresent(e.selector))throw new p.BaseException("Can't construct a query for the property \""+t+'" of "'+d.stringify(n)+"\" since the query selector wasn't defined.");r=[this.getTokenMetadata(e.selector)]}return new l.CompileQueryMetadata({selectors:r,first:e.first,descendants:e.descendants,propertyName:t,read:d.isPresent(e.read)?this.getTokenMetadata(e.read):null})},CompileMetadataResolver.decorators=[{type:i.Injectable}],CompileMetadataResolver.ctorParameters=[{type:m.NgModuleResolver},{type:u.DirectiveResolver},{type:y.PipeResolver},{type:c.CompilerConfig},{type:o.Console},{type:v.ElementSchemaRegistry},{type:o.ReflectorReader}],CompileMetadataResolver}();t.CompileMetadataResolver=_;var S=function(e){function _CompileValueConverter(){e.apply(this,arguments)}return r(_CompileValueConverter,e),_CompileValueConverter.prototype.visitOther=function(e,t){var n;return n=l.isStaticSymbol(e)?new l.CompileIdentifierMetadata({name:e.name,moduleUrl:e.filePath,runtime:e}):new l.CompileIdentifierMetadata({runtime:e}),t.push(n),n},_CompileValueConverter}(b.ValueTransformer)},function(e,t,n){"use strict";var r=n(0),i=n(27),o=n(31),s=n(5),a=n(28),l=n(17),c=n(355),u=n(60),p=n(356),d=n(36),h=function(){function ComponentFactoryDependency(e,t){this.comp=e,this.placeholder=t}return ComponentFactoryDependency}();t.ComponentFactoryDependency=h;var f=function(){function NgModuleCompileResult(e,t,n){this.statements=e,this.ngModuleFactoryVar=t,this.dependencies=n}return NgModuleCompileResult}();t.NgModuleCompileResult=f;var m=function(){function NgModuleCompiler(){}return NgModuleCompiler.prototype.compile=function(e,t){var n=s.isPresent(e.type.moduleUrl)?"in NgModule "+e.type.name+" in "+e.type.moduleUrl:"in NgModule "+e.type.name,r=new u.ParseSourceFile("",n),i=new u.ParseSourceSpan(new u.ParseLocation(r,null,null,null),new u.ParseLocation(r,null,null,null)),c=[],d=[],m=e.transitiveModule.entryComponents.map(function(t){var n=new o.CompileIdentifierMetadata({name:t.name});return e.bootstrapComponents.indexOf(t)>-1&&d.push(n),c.push(new h(t,n)),n}),v=new y(e,m,d,i),g=new p.NgModuleProviderAnalyzer(e,t,i);g.parse().forEach(function(e){return v.addProvider(e)});var b=v.build(),_=e.type.name+"NgFactory",S=l.variable(_).set(l.importExpr(a.Identifiers.NgModuleFactory).instantiate([l.variable(b.name),l.importExpr(e.type)],l.importType(a.Identifiers.NgModuleFactory,[l.importType(e.type)],[l.TypeModifier.Const]))).toDeclStmt(null,[l.StmtModifier.Final]);return new f([b,S],_,c)},NgModuleCompiler.decorators=[{type:r.Injectable}],NgModuleCompiler}();t.NgModuleCompiler=m;var y=function(){function _InjectorBuilder(e,t,n,r){this._ngModuleMeta=e,this._entryComponentFactories=t,this._bootstrapComponentFactories=n,this._sourceSpan=r,this._instances=new o.CompileIdentifierMap,this._fields=[],this._createStmts=[],this._destroyStmts=[],this._getters=[]}return _InjectorBuilder.prototype.addProvider=function(e){var t=this,n=e.providers.map(function(e){return t._getProviderValue(e)}),r="_"+e.token.name+"_"+this._instances.size,o=this._createProviderProperty(r,e,n,e.multiProvider,e.eager);e.lifecycleHooks.indexOf(i.LifecycleHooks.OnDestroy)!==-1&&this._destroyStmts.push(o.callMethod("ngOnDestroy",[]).toStmt()),this._instances.add(e.token,o)},_InjectorBuilder.prototype.build=function(){var e=this,t=this._instances.keys().map(function(t){var n=e._instances.get(t);return new l.IfStmt(g.token.identical(d.createDiTokenExpression(t)),[new l.ReturnStatement(n)])}),n=[new l.ClassMethod("createInternal",[],this._createStmts.concat(new l.ReturnStatement(this._instances.get(a.identifierToken(this._ngModuleMeta.type)))),l.importType(this._ngModuleMeta.type)),new l.ClassMethod("getInternal",[new l.FnParam(g.token.name,l.DYNAMIC_TYPE),new l.FnParam(g.notFoundResult.name,l.DYNAMIC_TYPE)],t.concat([new l.ReturnStatement(g.notFoundResult)]),l.DYNAMIC_TYPE),new l.ClassMethod("destroyInternal",[],this._destroyStmts)],r=new l.ClassMethod(null,[new l.FnParam(v.parent.name,l.importType(a.Identifiers.Injector))],[l.SUPER_EXPR.callFn([l.variable(v.parent.name),l.literalArr(this._entryComponentFactories.map(function(e){return l.importExpr(e)})),l.literalArr(this._bootstrapComponentFactories.map(function(e){return l.importExpr(e)}))]).toStmt()]),i=this._ngModuleMeta.type.name+"Injector";return new l.ClassStmt(i,l.importExpr(a.Identifiers.NgModuleInjector,[l.importType(this._ngModuleMeta.type)]),this._fields,this._getters,r,n)},_InjectorBuilder.prototype._getProviderValue=function(e){var t,n=this;if(s.isPresent(e.useExisting))t=this._getDependency(new o.CompileDiDependencyMetadata({token:e.useExisting}));else if(s.isPresent(e.useFactory)){var r=s.isPresent(e.deps)?e.deps:e.useFactory.diDeps,i=r.map(function(e){return n._getDependency(e)});t=l.importExpr(e.useFactory).callFn(i)}else if(s.isPresent(e.useClass)){var r=s.isPresent(e.deps)?e.deps:e.useClass.diDeps,i=r.map(function(e){return n._getDependency(e)});t=l.importExpr(e.useClass).instantiate(i,l.importType(e.useClass))}else t=c.convertValueToOutputAst(e.useValue);return t},_InjectorBuilder.prototype._createProviderProperty=function(e,t,n,r,i){var o,a;if(r?(o=l.literalArr(n),a=new l.ArrayType(l.DYNAMIC_TYPE)):(o=n[0],a=n[0].type),s.isBlank(a)&&(a=l.DYNAMIC_TYPE),i)this._fields.push(new l.ClassField(e,a)),this._createStmts.push(l.THIS_EXPR.prop(e).set(o).toStmt());else{var c="_"+e;this._fields.push(new l.ClassField(c,a));var u=[new l.IfStmt(l.THIS_EXPR.prop(c).isBlank(),[l.THIS_EXPR.prop(c).set(o).toStmt()]),new l.ReturnStatement(l.THIS_EXPR.prop(c))];this._getters.push(new l.ClassGetter(e,u,a))}return l.THIS_EXPR.prop(e)},_InjectorBuilder.prototype._getDependency=function(e){var t=null;if(e.isValue&&(t=l.literal(e.value)),e.isSkipSelf||(e.token&&(e.token.equalsTo(a.identifierToken(a.Identifiers.Injector))||e.token.equalsTo(a.identifierToken(a.Identifiers.ComponentFactoryResolver)))&&(t=l.THIS_EXPR),s.isBlank(t)&&(t=this._instances.get(e.token))),s.isBlank(t)){var n=[d.createDiTokenExpression(e.token)];e.isOptional&&n.push(l.NULL_EXPR),t=v.parent.callMethod("get",n)}return t},_InjectorBuilder}(),v=function(){function InjectorProps(){}return InjectorProps.parent=l.THIS_EXPR.prop("parent"),InjectorProps}(),g=function(){function InjectMethodVars(){}return InjectMethodVars.token=l.variable("token"),InjectMethodVars.notFoundResult=l.variable("notFoundResult"),InjectMethodVars}()},function(e,t,n){"use strict";function _isNgModuleMetadata(e){return e instanceof r.NgModuleMetadata}var r=n(0),i=n(27),o=n(18),s=n(5),a=function(){function NgModuleResolver(e){void 0===e&&(e=i.reflector),this._reflector=e}return NgModuleResolver.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=this._reflector.annotations(e).find(_isNgModuleMetadata);if(s.isPresent(n))return n;if(t)throw new o.BaseException("No NgModule metadata found for '"+s.stringify(e)+"'.");return null},NgModuleResolver.decorators=[{type:r.Injectable}],NgModuleResolver.ctorParameters=[{type:i.ReflectorReader}],NgModuleResolver}();t.NgModuleResolver=a},function(e,t,n){"use strict";function escapeSingleQuoteString(e,t){if(i.isBlank(e))return null;var n=i.StringWrapper.replaceAllMapped(e,s,function(e){return"$"==e[0]?t?"\\$":"$":"\n"==e[0]?"\\n":"\r"==e[0]?"\\r":"\\"+e[0]});return"'"+n+"'"}function _createIndent(e){for(var t="",n=0;n0&&this._currentLine.parts.push(e),t&&this._lines.push(new l(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}();t.EmitterVisitorContext=c;var u=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 n=i.isPresent(e.falseCase)&&e.falseCase.length>0;return e.trueCase.length<=1&&!n?(t.print(" "),this.visitAllStatements(e.trueCase,t),t.removeEmptyLastLine(),t.print(" ")):(t.println(),t.incIndent(),this.visitAllStatements(e.trueCase,t),t.decIndent(),n&&(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 n=e.comment.split("\n");return n.forEach(function(e){t.println("// "+e)}),null},AbstractEmitterVisitor.prototype.visitWriteVarExpr=function(e,t){var n=t.lineIsEmpty();return n||t.print("("),t.print(e.name+" = "),e.value.visitExpression(this,t),n||t.print(")"),null},AbstractEmitterVisitor.prototype.visitWriteKeyExpr=function(e,t){var n=t.lineIsEmpty();return n||t.print("("),e.receiver.visitExpression(this,t),t.print("["),e.index.visitExpression(this,t),t.print("] = "),e.value.visitExpression(this,t),n||t.print(")"),null},AbstractEmitterVisitor.prototype.visitWritePropExpr=function(e,t){var n=t.lineIsEmpty();return n||t.print("("),e.receiver.visitExpression(this,t),t.print("."+e.name+" = "),e.value.visitExpression(this,t),n||t.print(")"),null},AbstractEmitterVisitor.prototype.visitInvokeMethodExpr=function(e,t){e.receiver.visitExpression(this,t);var n=e.name;return i.isPresent(e.builtin)&&(n=this.getBuiltinMethodName(e.builtin),i.isBlank(n))?null:(t.print("."+n+"("),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,n){var s=e.name;if(i.isPresent(e.builtin))switch(e.builtin){case o.BuiltinVar.Super:s="super";break;case o.BuiltinVar.This:s="this";break;case o.BuiltinVar.CatchError:s=t.CATCH_ERROR_VAR.name;break;case o.BuiltinVar.CatchStack:s=t.CATCH_STACK_VAR.name;break;default:throw new r.BaseException("Unknown builtin variable "+e.builtin)}return n.print(s),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){var n=e.value;return i.isString(n)?t.print(escapeSingleQuoteString(n,this._escapeDollarInStrings)):i.isBlank(n)?t.print("null"):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 n;switch(e.operator){case o.BinaryOperator.Equals:n="==";break;case o.BinaryOperator.Identical:n="===";break;case o.BinaryOperator.NotEquals:n="!=";break;case o.BinaryOperator.NotIdentical:n="!==";break;case o.BinaryOperator.And:n="&&";break;case o.BinaryOperator.Or:n="||";break;case o.BinaryOperator.Plus:n="+";break;case o.BinaryOperator.Minus:n="-";break;case o.BinaryOperator.Divide:n="/";break;case o.BinaryOperator.Multiply:n="*";break;case o.BinaryOperator.Modulo:n="%";break;case o.BinaryOperator.Lower:n="<";break;case o.BinaryOperator.LowerEquals:n="<=";break;case o.BinaryOperator.Bigger:n=">";break;case o.BinaryOperator.BiggerEquals:n=">=";break;default:throw new r.BaseException("Unknown operator "+e.operator)}return t.print("("),e.lhs.visitExpression(this,t),t.print(" "+n+" "),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 n=e.entries.length>1;return t.print("[",n),t.incIndent(),this.visitAllExpressions(e.entries,t,",",n),t.decIndent(),t.print("]",n),null},AbstractEmitterVisitor.prototype.visitLiteralMapExpr=function(e,t){var n=this,r=e.entries.length>1;return t.print("{",r),t.incIndent(),this.visitAllObjects(function(e){t.print(escapeSingleQuoteString(e[0],n._escapeDollarInStrings)+": "),e[1].visitExpression(n,t)},e.entries,t,",",r),t.decIndent(),t.print("}",r),null},AbstractEmitterVisitor.prototype.visitAllExpressions=function(e,t,n,r){var i=this;void 0===r&&(r=!1),this.visitAllObjects(function(e){return e.visitExpression(i,t)},e,t,n,r)},AbstractEmitterVisitor.prototype.visitAllObjects=function(e,t,n,r,i){void 0===i&&(i=!1);for(var o=0;o0&&n.print(r,i),e(t[o]);i&&n.println()},AbstractEmitterVisitor.prototype.visitAllStatements=function(e,t){var n=this;e.forEach(function(e){return e.visitStatement(n,t)})},AbstractEmitterVisitor}();t.AbstractEmitterVisitor=u,t.escapeSingleQuoteString=escapeSingleQuoteString},function(e,t,n){"use strict";function _isPipeMetadata(e){return e instanceof r.PipeMetadata}var r=n(0),i=n(27),o=n(18),s=n(5),a=function(){function PipeResolver(e){void 0===e&&(e=i.reflector),this._reflector=e}return PipeResolver.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=this._reflector.annotations(r.resolveForwardRef(e)); if(s.isPresent(n)){var i=n.find(_isPipeMetadata);if(s.isPresent(i))return i}if(t)throw new o.BaseException("No Pipe decorator found on "+s.stringify(e));return null},PipeResolver.decorators=[{type:r.Injectable}],PipeResolver.ctorParameters=[{type:i.ReflectorReader}],PipeResolver}();t.PipeResolver=a},function(e,t,n){"use strict";var r=n(10),i=n(18),o=n(5),s="",a=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-\\w*]+)(?:=([^\\]]*))?\\])|(\\))|(\\s*,\\s*)","g"),l=function(){function CssSelector(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return CssSelector.parse=function(e){var t,n=[],s=function(e,t){t.notSelectors.length>0&&o.isBlank(t.element)&&r.ListWrapper.isEmpty(t.classNames)&&r.ListWrapper.isEmpty(t.attrs)&&(t.element="*"),e.push(t)},l=new CssSelector,c=l,u=!1;for(a.lastIndex=0;o.isPresent(t=a.exec(e));){if(o.isPresent(t[1])){if(u)throw new i.BaseException("Nesting :not is not allowed in a selector");u=!0,c=new CssSelector,l.notSelectors.push(c)}if(o.isPresent(t[2])&&c.setElement(t[2]),o.isPresent(t[3])&&c.addClassName(t[3]),o.isPresent(t[4])&&c.addAttribute(t[4],t[5]),o.isPresent(t[6])&&(u=!1,c=l),o.isPresent(t[7])){if(u)throw new i.BaseException("Multiple selectors in :not are not supported");s(n,l),l=c=new CssSelector}}return s(n,l),n},CssSelector.prototype.isElementSelector=function(){return o.isPresent(this.element)&&r.ListWrapper.isEmpty(this.classNames)&&r.ListWrapper.isEmpty(this.attrs)&&0===this.notSelectors.length},CssSelector.prototype.setElement=function(e){void 0===e&&(e=null),this.element=e},CssSelector.prototype.getMatchingElementTemplate=function(){for(var e=o.isPresent(this.element)?this.element:"div",t=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",r=0;r"},CssSelector.prototype.addAttribute=function(e,t){void 0===t&&(t=s),this.attrs.push(e),t=o.isPresent(t)?t.toLowerCase():s,this.attrs.push(t)},CssSelector.prototype.addClassName=function(e){this.classNames.push(e.toLowerCase())},CssSelector.prototype.toString=function(){var e="";if(o.isPresent(this.element)&&(e+=this.element),o.isPresent(this.classNames))for(var t=0;t0&&(e+="="+r),e+="]"}return this.notSelectors.forEach(function(t){return e+=":not("+t+")"}),e},CssSelector}();t.CssSelector=l;var c=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 n=null;e.length>1&&(n=new u(e),this._listContexts.push(n));for(var r=0;r0&&(o.isBlank(this.listContext)||!this.listContext.alreadyMatched)){var r=c.createNotMatcher(this.notSelectors);n=!r.match(e,null)}return n&&o.isPresent(t)&&(o.isBlank(this.listContext)||!this.listContext.alreadyMatched)&&(o.isPresent(this.listContext)&&(this.listContext.alreadyMatched=!0),t(this.selector,this.cbContext)),n},SelectorContext}();t.SelectorContext=p},function(e,t,n){"use strict";function getStylesVarName(e){var t="styles";return e&&(t+="_"+e.type.name),t}var r=n(0),i=n(31),o=n(17),s=n(555),a=n(103),l="%COMP%",c="_nghost-"+l,u="_ngcontent-"+l,p=function(){function StylesCompileDependency(e,t,n){this.moduleUrl=e,this.isShimmed=t,this.valuePlaceholder=n}return StylesCompileDependency}();t.StylesCompileDependency=p;var d=function(){function StylesCompileResult(e,t){this.componentStylesheet=e,this.externalStylesheets=t}return StylesCompileResult}();t.StylesCompileResult=d;var h=function(){function CompiledStylesheet(e,t,n,r,i){this.statements=e,this.stylesVar=t,this.dependencies=n,this.isShimmed=r,this.meta=i}return CompiledStylesheet}();t.CompiledStylesheet=h;var f=function(){function StyleCompiler(e){this._urlResolver=e,this._shadowCss=new s.ShadowCss}return StyleCompiler.prototype.compileComponent=function(e){var t=this,n=[],r=this._compileStyles(e,new i.CompileStylesheetMetadata({styles:e.template.styles,styleUrls:e.template.styleUrls,moduleUrl:e.type.moduleUrl}),!0);return e.template.externalStylesheets.forEach(function(r){var i=t._compileStyles(e,r,!1);n.push(i)}),new d(r,n)},StyleCompiler.prototype._compileStyles=function(e,t,n){for(var s=this,a=e.template.encapsulation===r.ViewEncapsulation.Emulated,l=t.styles.map(function(e){return o.literal(s._shimIfNeeded(e,a))}),c=[],u=0;u0)e.bootstrapFactories.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new s.BaseException("The module "+a.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:p.Injectable}],PlatformRef_.ctorParameters=[{type:p.Injector}],PlatformRef_}(_);t.PlatformRef_=S;var w=function(){function ApplicationRef(){}return Object.defineProperty(ApplicationRef.prototype,"injector",{get:function(){return s.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(ApplicationRef.prototype,"zone",{get:function(){return s.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(ApplicationRef.prototype,"componentTypes",{get:function(){return s.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(ApplicationRef.prototype,"components",{get:function(){return s.unimplemented()},enumerable:!0,configurable:!0}),ApplicationRef}();t.ApplicationRef=w;var C=function(e){function ApplicationRef_(t,n,r,i,o,s,a,l){var c=this;e.call(this),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=s,this._testabilityRegistry=a,this._testability=l,this._bootstrapListeners=[],this._disposeListeners=[],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 i(ApplicationRef_,e),ApplicationRef_.prototype.registerBootstrapListener=function(e){this._bootstrapListeners.push(e)},ApplicationRef_.prototype.registerDisposeListener=function(e){this._disposeListeners.push(e)},ApplicationRef_.prototype.registerChangeDetector=function(e){this._changeDetectorRefs.push(e)},ApplicationRef_.prototype.unregisterChangeDetector=function(e){o.ListWrapper.remove(this._changeDetectorRefs,e)},ApplicationRef_.prototype.waitForAsyncInitializers=function(){return this._initStatus.donePromise},ApplicationRef_.prototype.run=function(e){var t=this;return this._zone.run(function(){return _callAndReportToExceptionHandler(t._exceptionHandler,e)})},ApplicationRef_.prototype.bootstrap=function(e){var t=this;if(!this._initStatus.done)throw new s.BaseException("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");var n;n=e instanceof h.ComponentFactory?e:this._componentFactoryResolver.resolveComponentFactory(e),this._rootComponentTypes.push(n.componentType);var r=n.create(this._injector,[],n.selector);r.onDestroy(function(){t._unloadComponent(r)});var i=r.injector.get(y.Testability,null);return a.isPresent(i)&&r.injector.get(y.TestabilityRegistry).registerApplication(r.location.nativeElement,i),this._loadComponent(r),isDevMode()&&this._console.log("Angular 2 is running in the development mode. Call enableProdMode() to enable the production mode."),r},ApplicationRef_.prototype._loadComponent=function(e){this._changeDetectorRefs.push(e.changeDetectorRef),this.tick(),this._rootComponents.push(e);var t=this._injector.get(c.APP_BOOTSTRAP_LISTENER,[]).concat(this._bootstrapListeners);t.forEach(function(t){return t(e)})},ApplicationRef_.prototype._unloadComponent=function(e){o.ListWrapper.contains(this._rootComponents,e)&&(this.unregisterChangeDetector(e.changeDetectorRef),o.ListWrapper.remove(this._rootComponents,e))},Object.defineProperty(ApplicationRef_.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(ApplicationRef_.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),ApplicationRef_.prototype.tick=function(){if(this._runningTick)throw new s.BaseException("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,m.wtfLeave(e)}},ApplicationRef_.prototype.ngOnDestroy=function(){o.ListWrapper.clone(this._rootComponents).forEach(function(e){return e.destroy()}),this._disposeListeners.forEach(function(e){return e()})},ApplicationRef_.prototype.dispose=function(){this.ngOnDestroy()},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=m.wtfCreateScope("ApplicationRef#tick()"),ApplicationRef_.decorators=[{type:p.Injectable}],ApplicationRef_.ctorParameters=[{type:v.NgZone},{type:u.Console},{type:p.Injector},{type:s.ExceptionHandler},{type:f.ComponentFactoryResolver},{type:l.ApplicationInitStatus},{type:y.TestabilityRegistry,decorators:[{type:p.Optional}]},{type:y.Testability,decorators:[{type:p.Optional}]}],ApplicationRef_}(w);t.ApplicationRef_=C},function(e,t,n){"use strict";function getPreviousIndex(e,t,n){var r=e.previousIndex;if(null===r)return r;var i=0;return n&&r"+o.stringify(this.currentIndex)+"]"},CollectionChangeRecord}();t.CollectionChangeRecord=c;var u=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 n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t1){var t=findFirstClosedCycle(i.ListWrapper.reversed(e)),n=t.map(function(e){return s.stringify(e.token)});return" ("+n.join(" -> ")+")"}return""}var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(21),o=n(14),s=n(4),a=function(e){function AbstractProviderError(t,n,r){e.call(this,"DI Exception"),this.keys=[n],this.injectors=[t],this.constructResolvingMessage=r,this.message=this.constructResolvingMessage(this.keys)}return r(AbstractProviderError,e),AbstractProviderError.prototype.addKey=function(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)},Object.defineProperty(AbstractProviderError.prototype,"context",{get:function(){return this.injectors[this.injectors.length-1].debugContext()},enumerable:!0,configurable:!0}),AbstractProviderError}(o.BaseException);t.AbstractProviderError=a;var l=function(e){function NoProviderError(t,n){e.call(this,t,n,function(e){var t=s.stringify(i.ListWrapper.first(e).token);return"No provider for "+t+"!"+constructResolvingPath(e)})}return r(NoProviderError,e),NoProviderError}(a);t.NoProviderError=l;var c=function(e){function CyclicDependencyError(t,n){e.call(this,t,n,function(e){return"Cannot instantiate cyclic dependency!"+constructResolvingPath(e)})}return r(CyclicDependencyError,e),CyclicDependencyError}(a);t.CyclicDependencyError=c;var u=function(e){function InstantiationError(t,n,r,i){e.call(this,"DI Exception",n,r,null),this.keys=[i],this.injectors=[t]}return r(InstantiationError,e),InstantiationError.prototype.addKey=function(e,t){this.injectors.push(e),this.keys.push(t)},Object.defineProperty(InstantiationError.prototype,"wrapperMessage",{get:function(){var e=s.stringify(i.ListWrapper.first(this.keys).token);return"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}),Object.defineProperty(InstantiationError.prototype,"context",{get:function(){return this.injectors[this.injectors.length-1].debugContext()},enumerable:!0,configurable:!0}),InstantiationError}(o.WrappedException);t.InstantiationError=u;var p=function(e){function InvalidProviderError(t){e.call(this,"Invalid provider - only instances of Provider and Type are allowed, got: "+t)}return r(InvalidProviderError,e),InvalidProviderError}(o.BaseException);t.InvalidProviderError=p;var d=function(e){function NoAnnotationError(t,n){e.call(this,NoAnnotationError._genMessage(t,n))}return r(NoAnnotationError,e),NoAnnotationError._genMessage=function(e,t){for(var n=[],r=0,i=t.length;r0){var c=s[t-1];a=c.lastRootNode}else a=this.nativeElement;o.isPresent(a)&&e.renderer.attachViewAfter(a,e.flatRootNodes),e.markContentChildAsMoved(this)},AppElement.prototype.attachView=function(e,t){if(e.type===l.ViewType.COMPONENT)throw new i.BaseException("Component views can't be moved!");var n=this.nestedViews;null==n&&(n=[],this.nestedViews=n),r.ListWrapper.insert(n,t,e);var s;if(t>0){var a=n[t-1];s=a.lastRootNode}else s=this.nativeElement;o.isPresent(s)&&e.renderer.attachViewAfter(s,e.flatRootNodes),e.addToContentChildren(this)},AppElement.prototype.detachView=function(e){var t=r.ListWrapper.removeAt(this.nestedViews,e);if(t.type===l.ViewType.COMPONENT)throw new i.BaseException("Component views can't be moved!");return t.detach(),t.removeFromContentChildren(this),t},AppElement}();t.AppElement=c},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(159),o=n(14),s=function(e){function ExpressionChangedAfterItHasBeenCheckedException(t,n,r){var o="Expression has changed after it was checked. Previous value: '"+t+"'. Current value: '"+n+"'.";t===i.UNINITIALIZED&&(o+=" 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,o)}return r(ExpressionChangedAfterItHasBeenCheckedException,e),ExpressionChangedAfterItHasBeenCheckedException}(o.BaseException);t.ExpressionChangedAfterItHasBeenCheckedException=s;var a=function(e){function ViewWrappedException(t,n,r){e.call(this,"Error in "+r.source,t,n,r)}return r(ViewWrappedException,e),ViewWrappedException}(o.WrappedException);t.ViewWrappedException=a;var l=function(e){function ViewDestroyedException(t){e.call(this,"Attempt to use a destroyed view: "+t)}return r(ViewDestroyedException,e),ViewDestroyedException}(o.BaseException);t.ViewDestroyedException=l},function(e,t,n){"use strict";var r=n(392),i=n(393),o=n(393);t.ReflectionInfo=o.ReflectionInfo,t.Reflector=o.Reflector,t.reflector=new i.Reflector(new r.ReflectionCapabilities)},function(e,t){"use strict";var n=function(){function ReflectorReader(){}return ReflectorReader}();t.ReflectorReader=n},function(e,t,n){"use strict";var r=n(14),i=function(){function RenderComponentType(e,t,n,r,i,o){this.id=e,this.templateUrl=t,this.slotCount=n,this.encapsulation=r,this.styles=i,this.animations=o}return RenderComponentType}();t.RenderComponentType=i;var o=function(){function RenderDebugInfo(){}return Object.defineProperty(RenderDebugInfo.prototype,"injector",{get:function(){return r.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(RenderDebugInfo.prototype,"component",{get:function(){return r.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(RenderDebugInfo.prototype,"providerTokens",{get:function(){return r.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(RenderDebugInfo.prototype,"references",{get:function(){return r.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(RenderDebugInfo.prototype,"context",{get:function(){return r.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(RenderDebugInfo.prototype,"source",{get:function(){return r.unimplemented()},enumerable:!0,configurable:!0}),RenderDebugInfo}();t.RenderDebugInfo=o;var s=function(){function Renderer(){}return Renderer}();t.Renderer=s;var a=function(){function RootRenderer(){}return RootRenderer}();t.RootRenderer=a},function(e,t,n){"use strict";function setTestabilityGetter(e){p=e}var r=n(115),i=n(21),o=n(14),s=n(4),a=n(262),l=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(){a.NgZone.assertNotInAngularZone(),s.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 o.BaseException("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()?s.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,n){return[]},Testability.prototype.findProviders=function(e,t,n){return[]},Testability.decorators=[{type:r.Injectable}],Testability.ctorParameters=[{type:a.NgZone}],Testability}();t.Testability=l;var c=function(){function TestabilityRegistry(){this._applications=new i.Map,p.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 i.MapWrapper.values(this._applications)},TestabilityRegistry.prototype.getAllRootElements=function(){return i.MapWrapper.keys(this._applications)},TestabilityRegistry.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),p.findTestabilityInTree(this,e,t)},TestabilityRegistry.decorators=[{type:r.Injectable}],TestabilityRegistry.ctorParameters=[],TestabilityRegistry}();t.TestabilityRegistry=c;var u=function(){function _NoopGetTestability(){}return _NoopGetTestability.prototype.addToWindow=function(e){},_NoopGetTestability.prototype.findTestabilityInTree=function(e,t,n){return null},_NoopGetTestability}();t.setTestabilityGetter=setTestabilityGetter;var p=new u},function(e,t,n){"use strict";var r=n(254),i=n(14),o=n(395),s=n(395);t.NgZoneError=s.NgZoneError;var a=function(){function NgZone(e){var t=this,n=e.enableLongStackTrace,i=void 0!==n&&n;this._hasPendingMicrotasks=!1,this._hasPendingMacrotasks=!1,this._isStable=!0,this._nesting=0,this._onUnstable=new r.EventEmitter((!1)),this._onMicrotaskEmpty=new r.EventEmitter((!1)),this._onStable=new r.EventEmitter((!1)),this._onErrorEvents=new r.EventEmitter((!1)),this._zoneImpl=new o.NgZoneImpl({trace:i,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 o.NgZoneImpl.isInAngularZone()},NgZone.assertInAngularZone=function(){if(!o.NgZoneImpl.isInAngularZone())throw new i.BaseException("Expected to be in Angular Zone, but it is not!")},NgZone.assertNotInAngularZone=function(){if(o.NgZoneImpl.isInAngularZone())throw new i.BaseException("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}();t.NgZone=a},function(e,t,n){"use strict";var r=n(88),i=n(32),o=function(){function AbstractControlDirective(){}return Object.defineProperty(AbstractControlDirective.prototype,"control",{get:function(){return r.unimplemented()},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"value",{get:function(){return i.isPresent(this.control)?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"valid",{get:function(){return i.isPresent(this.control)?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"invalid",{get:function(){return i.isPresent(this.control)?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"pending",{get:function(){return i.isPresent(this.control)?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"errors",{get:function(){return i.isPresent(this.control)?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"pristine",{get:function(){return i.isPresent(this.control)?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"dirty",{get:function(){return i.isPresent(this.control)?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"touched",{get:function(){return i.isPresent(this.control)?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"untouched",{get:function(){return i.isPresent(this.control)?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"statusChanges",{get:function(){return i.isPresent(this.control)?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"valueChanges",{get:function(){return i.isPresent(this.control)?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(AbstractControlDirective.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),AbstractControlDirective.prototype.reset=function(e){void 0===e&&(e=void 0),i.isPresent(this.control)&&this.control.reset(e)},AbstractControlDirective}();t.AbstractControlDirective=o},function(e,t,n){"use strict";var r=n(0),i=n(32),o=n(87),s=function(){function NgControlStatus(e){this._cd=e}return Object.defineProperty(NgControlStatus.prototype,"ngClassUntouched",{get:function(){return!!i.isPresent(this._cd.control)&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(NgControlStatus.prototype,"ngClassTouched",{get:function(){return!!i.isPresent(this._cd.control)&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(NgControlStatus.prototype,"ngClassPristine",{get:function(){return!!i.isPresent(this._cd.control)&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(NgControlStatus.prototype,"ngClassDirty",{get:function(){return!!i.isPresent(this._cd.control)&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(NgControlStatus.prototype,"ngClassValid",{get:function(){return!!i.isPresent(this._cd.control)&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(NgControlStatus.prototype,"ngClassInvalid",{get:function(){return!!i.isPresent(this._cd.control)&&!this._cd.control.valid},enumerable:!0,configurable:!0}),NgControlStatus.decorators=[{type:r.Directive,args:[{selector:"[formControlName],[ngModel],[formControl]",host:{"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid"}}]}],NgControlStatus.ctorParameters=[{type:o.NgControl,decorators:[{type:r.Self}]}],NgControlStatus}();t.NgControlStatus=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(0),o=n(105),s=n(175),a=n(54),l=n(117),c=n(69),u=n(53),p=n(87),d=n(118),h=n(171),f=n(70),m=n(398);t.formControlBinding={provide:p.NgControl,useExisting:i.forwardRef(function(){return v})};var y=Promise.resolve(null),v=function(e){function NgModel(t,n,r,i){e.call(this),this._parent=t,this._validators=n,this._asyncValidators=r,this._control=new s.FormControl,this._registered=!1,this.update=new o.EventEmitter,this.valueAccessor=f.selectValueAccessor(this,i)}return r(NgModel,e),NgModel.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),f.isPropertyUpdated(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},NgModel.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(NgModel.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(NgModel.prototype,"path",{get:function(){return this._parent?f.controlPath(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(NgModel.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(NgModel.prototype,"validator",{get:function(){return f.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(NgModel.prototype,"asyncValidator",{get:function(){return f.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),NgModel.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},NgModel.prototype._setUpControl=function(){this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},NgModel.prototype._isStandalone=function(){return!this._parent||this.options&&this.options.standalone},NgModel.prototype._setUpStandalone=function(){f.setUpControl(this._control,this),this._control.updateValueAndValidity({emitEvent:!1})},NgModel.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},NgModel.prototype._checkParentType=function(){!(this._parent instanceof h.NgModelGroup)&&this._parent instanceof l.AbstractFormGroupDirective?m.TemplateDrivenErrors.formGroupNameException():this._parent instanceof h.NgModelGroup||this._parent instanceof d.NgForm||m.TemplateDrivenErrors.modelParentException()},NgModel.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||m.TemplateDrivenErrors.missingNameException()},NgModel.prototype._updateValue=function(e){var t=this;y.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})},NgModel.decorators=[{type:i.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[t.formControlBinding],exportAs:"ngModel"}]}],NgModel.ctorParameters=[{type:c.ControlContainer,decorators:[{type:i.Optional},{type:i.Host}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[a.NG_VALIDATORS]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[a.NG_ASYNC_VALIDATORS]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[u.NG_VALUE_ACCESSOR]}]}],NgModel.propDecorators={model:[{type:i.Input,args:["ngModel"]}],name:[{type:i.Input}],options:[{type:i.Input,args:["ngModelOptions"]}],update:[{type:i.Output,args:["ngModelChange"]}]},NgModel}(p.NgControl);t.NgModel=v},function(e,t,n){"use strict";var r=n(0),i=n(32),o=n(53);t.NUMBER_VALUE_ACCESSOR={provide:o.NG_VALUE_ACCESSOR,useExisting:r.forwardRef(function(){return s}),multi:!0};var s=function(){function NumberValueAccessor(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return NumberValueAccessor.prototype.writeValue=function(e){var t=i.isBlank(e)?"":e;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",t)},NumberValueAccessor.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:i.NumberWrapper.parseFloat(t))}},NumberValueAccessor.prototype.registerOnTouched=function(e){this.onTouched=e},NumberValueAccessor.decorators=[{type:r.Directive,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[t.NUMBER_VALUE_ACCESSOR]}]}],NumberValueAccessor.ctorParameters=[{ -type:r.Renderer},{type:r.ElementRef}],NumberValueAccessor}();t.NumberValueAccessor=s},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(0),o=n(105),s=n(47),a=n(54),l=n(53),c=n(87),u=n(70);t.formControlBinding={provide:c.NgControl,useExisting:i.forwardRef(function(){return p})};var p=function(e){function FormControlDirective(t,n,r){e.call(this),this._validators=t,this._asyncValidators=n,this.update=new o.EventEmitter,this.valueAccessor=u.selectValueAccessor(this,r)}return r(FormControlDirective,e),FormControlDirective.prototype.ngOnChanges=function(e){this._isControlChanged(e)&&(u.setUpControl(this.form,this),this.form.updateValueAndValidity({emitEvent:!1})),u.isPropertyUpdated(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(FormControlDirective.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(FormControlDirective.prototype,"validator",{get:function(){return u.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(FormControlDirective.prototype,"asyncValidator",{get:function(){return u.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(FormControlDirective.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),FormControlDirective.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},FormControlDirective.prototype._isControlChanged=function(e){return s.StringMapWrapper.contains(e,"form")},FormControlDirective.decorators=[{type:i.Directive,args:[{selector:"[formControl]",providers:[t.formControlBinding],exportAs:"ngForm"}]}],FormControlDirective.ctorParameters=[{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[a.NG_VALIDATORS]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[a.NG_ASYNC_VALIDATORS]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[l.NG_VALUE_ACCESSOR]}]}],FormControlDirective.propDecorators={form:[{type:i.Input,args:["formControl"]}],model:[{type:i.Input,args:["ngModel"]}],update:[{type:i.Output,args:["ngModelChange"]}]},FormControlDirective}(c.NgControl);t.FormControlDirective=p},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(0),o=n(105),s=n(54),a=n(117),l=n(69),c=n(53),u=n(87),p=n(269),d=n(70),h=n(119),f=n(120);t.controlNameBinding={provide:u.NgControl,useExisting:i.forwardRef(function(){return m})};var m=function(e){function FormControlName(t,n,r,i){e.call(this),this._parent=t,this._validators=n,this._asyncValidators=r,this._added=!1,this.update=new o.EventEmitter,this.valueAccessor=d.selectValueAccessor(this,i)}return r(FormControlName,e),FormControlName.prototype.ngOnChanges=function(e){this._added||(this._checkParentType(),this.formDirective.addControl(this),this._added=!0),d.isPropertyUpdated(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},FormControlName.prototype.ngOnDestroy=function(){this.formDirective.removeControl(this)},FormControlName.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},Object.defineProperty(FormControlName.prototype,"path",{get:function(){return d.controlPath(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(FormControlName.prototype,"formDirective",{get:function(){return this._parent.formDirective},enumerable:!0,configurable:!0}),Object.defineProperty(FormControlName.prototype,"validator",{get:function(){return d.composeValidators(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(FormControlName.prototype,"asyncValidator",{get:function(){return d.composeAsyncValidators(this._asyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(FormControlName.prototype,"control",{get:function(){return this.formDirective.getControl(this)},enumerable:!0,configurable:!0}),FormControlName.prototype._checkParentType=function(){!(this._parent instanceof f.FormGroupName)&&this._parent instanceof a.AbstractFormGroupDirective?p.ReactiveErrors.ngModelGroupException():this._parent instanceof f.FormGroupName||this._parent instanceof h.FormGroupDirective||this._parent instanceof f.FormArrayName||p.ReactiveErrors.controlParentException()},FormControlName.decorators=[{type:i.Directive,args:[{selector:"[formControlName]",providers:[t.controlNameBinding]}]}],FormControlName.ctorParameters=[{type:l.ControlContainer,decorators:[{type:i.Optional},{type:i.Host},{type:i.SkipSelf}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[s.NG_VALIDATORS]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[s.NG_ASYNC_VALIDATORS]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[c.NG_VALUE_ACCESSOR]}]}],FormControlName.propDecorators={name:[{type:i.Input,args:["formControlName"]}],model:[{type:i.Input,args:["ngModel"]}],update:[{type:i.Output,args:["ngModelChange"]}]},FormControlName}(u.NgControl);t.FormControlName=m},function(e,t,n){"use strict";var r=n(88),i=n(397),o=function(){function ReactiveErrors(){}return ReactiveErrors.controlParentException=function(){throw new r.BaseException("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+i.FormErrorExamples.formControlName)},ReactiveErrors.ngModelGroupException=function(){throw new r.BaseException('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+i.FormErrorExamples.formGroupName+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+i.FormErrorExamples.ngModelGroup)},ReactiveErrors.missingFormException=function(){throw new r.BaseException("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+i.FormErrorExamples.formControlName)},ReactiveErrors.groupParentException=function(){throw new r.BaseException("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+i.FormErrorExamples.formGroupName)},ReactiveErrors.arrayParentException=function(){throw new r.BaseException("formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+i.FormErrorExamples.formArrayName)},ReactiveErrors}();t.ReactiveErrors=o},function(e,t,n){"use strict";var r=n(0),i=n(32),o=n(54);t.REQUIRED=o.Validators.required,t.REQUIRED_VALIDATOR={provide:o.NG_VALIDATORS,useValue:t.REQUIRED,multi:!0};var s=function(){function RequiredValidator(){}return RequiredValidator.decorators=[{type:r.Directive,args:[{selector:"[required][formControlName],[required][formControl],[required][ngModel]",providers:[t.REQUIRED_VALIDATOR]}]}],RequiredValidator}();t.RequiredValidator=s,t.MIN_LENGTH_VALIDATOR={provide:o.NG_VALIDATORS,useExisting:r.forwardRef(function(){return a}),multi:!0};var a=function(){function MinLengthValidator(e){this._validator=o.Validators.minLength(i.NumberWrapper.parseInt(e,10))}return MinLengthValidator.prototype.validate=function(e){return this._validator(e)},MinLengthValidator.decorators=[{type:r.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[t.MIN_LENGTH_VALIDATOR]}]}],MinLengthValidator.ctorParameters=[{type:void 0,decorators:[{type:r.Attribute,args:["minlength"]}]}],MinLengthValidator}();t.MinLengthValidator=a,t.MAX_LENGTH_VALIDATOR={provide:o.NG_VALIDATORS,useExisting:r.forwardRef(function(){return l}),multi:!0};var l=function(){function MaxLengthValidator(e){this._validator=o.Validators.maxLength(i.NumberWrapper.parseInt(e,10))}return MaxLengthValidator.prototype.validate=function(e){return this._validator(e)},MaxLengthValidator.decorators=[{type:r.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[t.MAX_LENGTH_VALIDATOR]}]}],MaxLengthValidator.ctorParameters=[{type:void 0,decorators:[{type:r.Attribute,args:["maxlength"]}]}],MaxLengthValidator}();t.MaxLengthValidator=l,t.PATTERN_VALIDATOR={provide:o.NG_VALIDATORS,useExisting:r.forwardRef(function(){return c}),multi:!0};var c=function(){function PatternValidator(e){this._validator=o.Validators.pattern(e)}return PatternValidator.prototype.validate=function(e){return this._validator(e)},PatternValidator.decorators=[{type:r.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[t.PATTERN_VALIDATOR]}]}],PatternValidator.ctorParameters=[{type:void 0,decorators:[{type:r.Attribute,args:["pattern"]}]}],PatternValidator}();t.PatternValidator=c},function(e,t,n){"use strict";var r=n(0),i=function(){function BrowserXhr(){}return BrowserXhr.prototype.build=function(){return new XMLHttpRequest},BrowserXhr.decorators=[{type:r.Injectable}],BrowserXhr.ctorParameters=[],BrowserXhr}();t.BrowserXhr=i},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(0),o=n(37),s=n(71),a=n(121),l=n(178),c=n(179),u=function(){function RequestOptions(e){var t=void 0===e?{}:e,n=t.method,r=t.headers,i=t.body,s=t.url,a=t.search,u=t.withCredentials,p=t.responseType;this.method=o.isPresent(n)?l.normalizeMethodName(n):null,this.headers=o.isPresent(r)?r:null,this.body=o.isPresent(i)?i:null,this.url=o.isPresent(s)?s:null,this.search=o.isPresent(a)?o.isString(a)?new c.URLSearchParams(a):a:null,this.withCredentials=o.isPresent(u)?u:null,this.responseType=o.isPresent(p)?p:null}return RequestOptions.prototype.merge=function(e){return new RequestOptions({method:o.isPresent(e)&&o.isPresent(e.method)?e.method:this.method,headers:o.isPresent(e)&&o.isPresent(e.headers)?e.headers:this.headers,body:o.isPresent(e)&&o.isPresent(e.body)?e.body:this.body,url:o.isPresent(e)&&o.isPresent(e.url)?e.url:this.url,search:o.isPresent(e)&&o.isPresent(e.search)?o.isString(e.search)?new c.URLSearchParams(e.search):e.search.clone():this.search,withCredentials:o.isPresent(e)&&o.isPresent(e.withCredentials)?e.withCredentials:this.withCredentials,responseType:o.isPresent(e)&&o.isPresent(e.responseType)?e.responseType:this.responseType})},RequestOptions}();t.RequestOptions=u;var p=function(e){function BaseRequestOptions(){e.call(this,{method:s.RequestMethod.Get,headers:new a.Headers})}return r(BaseRequestOptions,e),BaseRequestOptions.decorators=[{type:i.Injectable}],BaseRequestOptions.ctorParameters=[],BaseRequestOptions}(u);t.BaseRequestOptions=p},[1104,37],function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(405),o=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 r(Response,e),Response.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},Response}(i.Body);t.Response=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(0),o=n(23),s=n(90),a=function(e){function DomEventsPlugin(){e.apply(this,arguments)}return r(DomEventsPlugin,e),DomEventsPlugin.prototype.supports=function(e){return!0},DomEventsPlugin.prototype.addEventListener=function(e,t,n){var r=this.manager.getZone(),i=function(e){return r.runGuarded(function(){return n(e)})};return this.manager.getZone().runOutsideAngular(function(){return o.getDOM().onAndCancel(e,t,i)})},DomEventsPlugin.prototype.addGlobalEventListener=function(e,t,n){var r=o.getDOM().getGlobalEventTarget(e),i=this.manager.getZone(),s=function(e){return i.runGuarded(function(){return n(e)})};return this.manager.getZone().runOutsideAngular(function(){return o.getDOM().onAndCancel(r,t,s)})},DomEventsPlugin.decorators=[{type:i.Injectable}],DomEventsPlugin}(s.EventManagerPlugin);t.DomEventsPlugin=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(0),o=n(72),s=n(16),a=n(605);t.HAMMER_GESTURE_CONFIG=new i.OpaqueToken("HammerGestureConfig");var l=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 n in this.overrides)t.get(n).set(this.overrides[n]);return t},HammerGestureConfig.decorators=[{type:i.Injectable}],HammerGestureConfig}();t.HammerGestureConfig=l;var c=function(e){function HammerGesturesPlugin(t){e.call(this),this._config=t}return r(HammerGesturesPlugin,e),HammerGesturesPlugin.prototype.supports=function(t){if(!e.prototype.supports.call(this,t)&&!this.isCustomEvent(t))return!1;if(!s.isPresent(window.Hammer))throw new o.BaseException("Hammer.js is not loaded, can not bind "+t+" event");return!0},HammerGesturesPlugin.prototype.addEventListener=function(e,t,n){var r=this,i=this.manager.getZone();return t=t.toLowerCase(),i.runOutsideAngular(function(){var o=r._config.buildHammer(e),s=function(e){i.runGuarded(function(){n(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:i.Injectable}],HammerGesturesPlugin.ctorParameters=[{type:l,decorators:[{type:i.Inject,args:[t.HAMMER_GESTURE_CONFIG]}]}],HammerGesturesPlugin}(a.HammerGesturesPluginCommon);t.HammerGesturesPlugin=c},function(e,t,n){"use strict";function sanitizeUrl(e){return e=String(e),e.match(o)||e.match(s)?e:(r.isDevMode()&&i.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(", ")}var r=n(0),i=n(23),o=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,s=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;t.sanitizeUrl=sanitizeUrl,t.sanitizeSrcset=sanitizeSrcset},function(e,t){"use strict";var n=function(){function LocationType(e,t,n,r,i,o,s,a,l){this.href=e,this.protocol=t,this.host=n,this.hostname=r,this.port=i,this.pathname=o,this.search=s,this.hash=a,this.origin=l}return LocationType}();t.LocationType=n},function(e,t,n){"use strict";function setupRouter(e,t,n,r,i,s,a,l,c){if(void 0===c&&(c={}),0==e.componentTypes.length)throw new Error("Bootstrap at least one component before injecting Router.");var p=e.componentTypes[0],d=new o.Router(p,t,n,r,i,s,a,u.flatten(l));return c.enableTracing&&d.events.subscribe(function(e){console.group("Router Event: "+e.constructor.name),console.log(e.toString()),console.log(e),console.groupEnd()}),d}function rootRoute(e){return e.routerState.root}function initialRouterNavigation(e){return function(){e.initialNavigation()}}function provideRouter(e,n){return void 0===n&&(n={}),[provideRoutes(e),{provide:t.ROUTER_CONFIGURATION,useValue:n},r.Location,{provide:r.LocationStrategy,useClass:r.PathLocationStrategy},{provide:c.UrlSerializer,useClass:c.DefaultUrlSerializer},{provide:o.Router,useFactory:setupRouter,deps:[i.ApplicationRef,i.ComponentResolver,c.UrlSerializer,a.RouterOutletMap,r.Location,i.Injector,i.NgModuleFactoryLoader,s.ROUTES,t.ROUTER_CONFIGURATION]},a.RouterOutletMap,{provide:l.ActivatedRoute,useFactory:rootRoute,deps:[o.Router]},provideRouterInitializer(),{provide:i.NgModuleFactoryLoader,useClass:i.SystemJsNgModuleLoader}]}function provideRouterInitializer(){return{provide:i.APP_BOOTSTRAP_LISTENER,multi:!0,useFactory:initialRouterNavigation,deps:[o.Router]}}function provideRoutes(e){return[{provide:i.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:e},{provide:s.ROUTES,multi:!0,useValue:e}]}function provideRouterConfig(e){return{provide:t.ROUTER_CONFIGURATION,useValue:e}}var r=n(3),i=n(0),o=n(128),s=n(187),a=n(129),l=n(91),c=n(73),u=n(74);t.ROUTER_CONFIGURATION=new i.OpaqueToken("ROUTER_CONFIGURATION"),t.setupRouter=setupRouter,t.rootRoute=rootRoute,t.initialRouterNavigation=initialRouterNavigation,t.provideRouter=provideRouter,t.provideRouterInitializer=provideRouterInitializer,t.provideRoutes=provideRoutes,t.provideRouterConfig=provideRouterConfig},function(e,t,n){"use strict";function toBool(e){return""===e||!!e}var r=n(3),i=n(0),o=n(128),s=n(91),a=function(){function RouterLink(e,t,n){this.router=e,this.route=t,this.locationStrategy=n,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,n){return!(0===e&&!t&&!n)||(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:i.Directive,args:[{selector:":not(a)[routerLink]"}]}],RouterLink.ctorParameters=[{type:o.Router},{type:s.ActivatedRoute},{type:r.LocationStrategy}],RouterLink.propDecorators={queryParams:[{type:i.Input}],fragment:[{type:i.Input}],preserveQueryParams:[{type:i.Input}],preserveFragment:[{type:i.Input}],routerLink:[{type:i.Input}],onClick:[{type:i.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey"]]}]},RouterLink}();t.RouterLink=a;var l=function(){function RouterLinkWithHref(e,t,n){var r=this;this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.subscription=e.events.subscribe(function(e){e instanceof o.NavigationEnd&&r.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,n){return!(0===e&&!t&&!n)||("string"==typeof this.target&&"_self"!=this.target||(this.router.navigateByUrl(this.urlTree),!1))},RouterLinkWithHref.prototype.updateTargetUrlAndHref=function(){this.urlTree=this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:toBool(this.preserveQueryParams),preserveFragment:toBool(this.preserveFragment)}),this.urlTree&&(this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)))},RouterLinkWithHref.decorators=[{type:i.Directive,args:[{selector:"a[routerLink]"}]}],RouterLinkWithHref.ctorParameters=[{type:o.Router},{type:s.ActivatedRoute},{type:r.LocationStrategy}],RouterLinkWithHref.propDecorators={target:[{type:i.Input}],queryParams:[{type:i.Input}],fragment:[{type:i.Input}],routerLinkOptions:[{type:i.Input}],preserveQueryParams:[{type:i.Input}],preserveFragment:[{type:i.Input}],href:[{type:i.HostBinding}],routerLink:[{type:i.Input}],onClick:[{type:i.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey"]]}]},RouterLinkWithHref}();t.RouterLinkWithHref=l},function(e,t){"use strict";function findNode(e,t){if(e===t.value)return t;for(var n=0,r=t.children;n0)return a}return[]}var n=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 n=t[t.length-2].children.map(function(e){return e.value});return n.filter(function(t){return t!==e})},Tree.prototype.pathFromRoot=function(e){return findPath(e,this._root,[]).map(function(e){return e.value})},Tree}();t.Tree=n;var r=function(){function TreeNode(e,t){this.value=e,this.children=t}return TreeNode.prototype.toString=function(){return"TreeNode("+this.value+")"},TreeNode}();t.TreeNode=r},function(e,t){"use strict";function booleanFieldValueFactory(){return function(e,t){var n=e[t],r="__md_private_symbol_"+t;e[r]=n,Object.defineProperty(e,t,{get:function(){return this[r]},set:function(e){this[r]=null!=e&&""+e!="false"}})}}t.BooleanFieldValue=booleanFieldValueFactory},function(e,t,n){"use strict";var r=n(43),i=(n.n(r),n(0));n.n(i);n.d(t,"a",function(){return a});var o=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function ShardService(e){this.http=e,this.shardsUrl="../api/shards/"}return ShardService.prototype.getShards=function(e){return this.http.get(this.shardsUrl+e+"/").map(function(e){return e.json()})},ShardService=o([n.i(i.Injectable)(),s("design:paramtypes",["function"==typeof(e="undefined"!=typeof r.Http&&r.Http)&&e||Object])],ShardService);var e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function Proto(){}return Object.defineProperty(Proto,"VT_TABLET_TYPES",{get:function(){return["unknown","master","replica","rdonly","spare","experimental","backup","restore","drained"]},enumerable:!0,configurable:!0}),Object.defineProperty(Proto,"SHARDING_COLUMN_TYPES",{get:function(){return["UNSET","UINT64","BYTES"]},enumerable:!0,configurable:!0}),Object.defineProperty(Proto,"SHARDING_COLUMN_NAME_TO_TYPE",{get:function(){return{"":"UNSET","unsigned bigint":"UINT64",varbinary:"BYTES"}},enumerable:!0,configurable:!0}),Object.defineProperty(Proto,"SHARDING_COLUMN_NAMES",{get:function(){return["","unsigned bigint","varbinary"]},enumerable:!0,configurable:!0}),Proto}()},function(e,t,n){"use strict";var r=n(0),i=(n.n(r),n(443)),o=n(654),s=n(303),a=(n.n(s),n(130)),l=n(645),c=n(93),u=n(94),p=n(192),d=n(439);n.d(t,"a",function(){return m});var h=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},f=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},m=function(){function WorkflowListComponent(e,t){this.featuresService=e,this.workflowService=t,this.title="Workflows",this.redirect="",this.workflows=[]}return WorkflowListComponent.prototype.ngOnInit=function(){var e=this;this.workflowService.updates().subscribe(function(t){e.processUpdateJson(t)}),this.dialogContent=new c.a,this.dialogSettings=new u.a},WorkflowListComponent.prototype.ngOnDestroy=function(){this.workflowService.stop()},WorkflowListComponent.prototype.processUpdateJson=function(e){if("fullUpdate"in e&&e.fullUpdate&&(this.redirect="",this.workflows=[]),"nodes"in e&&null!==e.nodes&&this.processWorkflowJson(e.nodes),"deletes"in e&&null!==e.deletes)for(var t=0,n=e.deletes;t0&&"/"===e.charAt(0)},WorkflowListComponent.prototype.cleanPath=function(e){return e.length>0&&"/"===e.charAt(e.length-1)?e.substring(0,e.length-1):e},WorkflowListComponent.prototype.getChild=function(e,t){for(var n=0,r=t;n22025.465794806718||n(10)<22025.465794806718||n(-2e-17)!=-2e-17?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,n){var r=n(39);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){var r=n(15),i=n(8),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(106)(Function.call,n(77).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(i){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){"use strict";var r=n(26),i=n(30),o=n(35),s=n(25)("species");e.exports=function(e){var t=r[e];o&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(199)("keys"),i=n(137);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(293),i=n(75);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},function(e,t){e.exports="\t\n\x0B\f\r   ᠎              \u2028\u2029\ufeff"},function(e,t,n){"use strict";function __export(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}__export(n(19)),__export(n(814)),__export(n(815)),__export(n(816)),__export(n(139)),__export(n(817)),__export(n(818)),__export(n(821)),__export(n(822)),__export(n(819)),__export(n(820)),__export(n(823)),__export(n(824)),__export(n(825)),__export(n(826)),__export(n(827)),__export(n(828)),__export(n(829)),__export(n(830)),__export(n(831)),__export(n(832)),__export(n(833)),__export(n(834)),__export(n(835)),__export(n(836)),__export(n(204)),__export(n(837)),__export(n(838)),__export(n(839)),__export(n(840)),__export(n(841)),__export(n(842)),__export(n(843)),__export(n(844)),__export(n(845)),__export(n(846)),__export(n(205)),__export(n(847)),__export(n(848)),__export(n(849)),__export(n(850)),__export(n(851)),__export(n(852)),__export(n(853)),__export(n(854)),__export(n(855)),__export(n(856)),__export(n(857)),__export(n(858)),__export(n(859)),__export(n(861)),__export(n(860)),__export(n(862)),__export(n(863)),__export(n(864)),__export(n(865)),__export(n(866)),__export(n(867)),__export(n(868))},function(e,t,n){"use strict";var r=n(1),i=n(1020);r.Observable.prototype.concatAll=i.concatAll},function(e,t,n){"use strict";var r=n(1),i=n(212);r.Observable.prototype.mergeAll=i.mergeAll},function(e,t,n){"use strict";var r=n(1),i=n(1062);r.Observable.prototype.switchMap=i.switchMap},function(e,t,n){"use strict";var r=n(1),i=n(313);r.Observable.prototype.toPromise=i.toPromise},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(1),o=function(e){function ScalarObservable(t,n){e.call(this),this.value=t,this.scheduler=n,this._isScalar=!0}return r(ScalarObservable,e),ScalarObservable.create=function(e,t){return new ScalarObservable(e,t)},ScalarObservable.dispatch=function(e){var t=e.done,n=e.value,r=e.subscriber;return t?void r.complete():(r.next(n),void(r.isUnsubscribed||(e.done=!0,this.schedule(e))))},ScalarObservable.prototype._subscribe=function(e){var t=this.value,n=this.scheduler;return n?n.schedule(ScalarObservable.dispatch,0,{done:!1,value:t,subscriber:e}):(e.next(t),void(e.isUnsubscribed||e.complete()))},ScalarObservable}(i.Observable);t.ScalarObservable=o},function(e,t,n){"use strict";var r=n(989);t.from=r.FromObservable.create},function(e,t,n){"use strict";function combineLatest(){for(var e=[],t=0;t0){var a=s.indexOf(n);a!==-1&&s.splice(a,1)}0===s.length&&(this.project?this._tryProject(o):this.destination.next(o))},CombineLatestSubscriber.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)},CombineLatestSubscriber}(a.OuterSubscriber);t.CombineLatestSubscriber=u},function(e,t,n){"use strict";function concat(){for(var e=[],t=0;tthis.index},StaticArrayIterator.prototype.hasCompleted=function(){return this.array.length===this.index},StaticArrayIterator}(),f=function(e){function ZipBufferIterator(t,n,r,i){e.call(this,t),this.parent=n,this.observable=r,this.index=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}return r(ZipBufferIterator,e),ZipBufferIterator.prototype[c.$$iterator]=function(){return this},ZipBufferIterator.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{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,n,r,i){this.buffer.push(t),this.parent.checkIterators()},ZipBufferIterator.prototype.subscribe=function(e,t){return l.subscribeToResult(this,this.observable,this,t)},ZipBufferIterator}(a.OuterSubscriber)},function(e,t,n){"use strict";var r=n(1083),i=n(213),o=function(){function QueueScheduler(){this.active=!1,this.actions=[],this.scheduledId=null}return QueueScheduler.prototype.now=function(){return Date.now()},QueueScheduler.prototype.flush=function(){if(!this.active&&!this.scheduledId){this.active=!0;for(var e=this.actions,t=null;t=e.shift();)if(t.execute(),t.error)throw this.active=!1,t.error;this.active=!1}},QueueScheduler.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),t<=0?this.scheduleNow(e,n):this.scheduleLater(e,t,n)},QueueScheduler.prototype.scheduleNow=function(e,t){return new r.QueueAction(this,e).schedule(t)},QueueScheduler.prototype.scheduleLater=function(e,t,n){return new i.FutureAction(this,e).schedule(n,t)},QueueScheduler}();t.QueueScheduler=o},function(e,t){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},r=function(e){function ArgumentOutOfRangeError(){e.call(this,"argument out of range"),this.name="ArgumentOutOfRangeError"}return n(ArgumentOutOfRangeError,e),ArgumentOutOfRangeError}(Error);t.ArgumentOutOfRangeError=r},function(e,t){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},r=function(e){function ObjectUnsubscribedError(){e.call(this,"object unsubscribed"),this.name="ObjectUnsubscribedError"}return n(ObjectUnsubscribedError,e),ObjectUnsubscribedError}(Error);t.ObjectUnsubscribedError=r},function(e,t,n){"use strict";function isNumeric(e){return!r.isArray(e)&&e-parseFloat(e)+1>=0}var r=n(81);t.isNumeric=isNumeric},,,function(e,t,n){"use strict";var r=n(322);t.COMMON_DIRECTIVES=[r.CORE_DIRECTIVES]},function(e,t,n){"use strict";var r=n(524);t.CORE_DIRECTIVES=r.CORE_DIRECTIVES;var i=n(323);t.NgClass=i.NgClass;var o=n(324);t.NgFor=o.NgFor;var s=n(325);t.NgIf=s.NgIf;var a=n(326);t.NgPlural=a.NgPlural,t.NgPluralCase=a.NgPluralCase;var l=n(327);t.NgStyle=l.NgStyle;var c=n(218);t.NgSwitch=c.NgSwitch,t.NgSwitchCase=c.NgSwitchCase,t.NgSwitchDefault=c.NgSwitchDefault;var u=n(328);t.NgTemplateOutlet=u.NgTemplateOutlet},function(e,t,n){"use strict";var r=n(0),i=n(34),o=n(7),s=function(){function NgClass(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(NgClass.prototype,"initialClasses",{set:function(e){this._applyInitialClasses(!0),this._initialClasses=o.isPresent(e)&&o.isString(e)?e.split(" "):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(NgClass.prototype,"ngClass",{set:function(e){this._cleanupClasses(this._rawClass),o.isString(e)&&(e=e.split(" ")),this._rawClass=e,this._iterableDiffer=null,this._keyValueDiffer=null,o.isPresent(e)&&(i.isListLikeIterable(e)?this._iterableDiffer=this._iterableDiffers.find(e).create(null):this._keyValueDiffer=this._keyValueDiffers.find(e).create(null))},enumerable:!0,configurable:!0}),NgClass.prototype.ngDoCheck=function(){if(o.isPresent(this._iterableDiffer)){var e=this._iterableDiffer.diff(this._rawClass);o.isPresent(e)&&this._applyIterableChanges(e)}if(o.isPresent(this._keyValueDiffer)){var e=this._keyValueDiffer.diff(this._rawClass);o.isPresent(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){t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){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){t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){t._toggleClass(e.item,!1)})},NgClass.prototype._applyInitialClasses=function(e){var t=this;this._initialClasses.forEach(function(n){return t._toggleClass(n,!e)})},NgClass.prototype._applyClasses=function(e,t){var n=this;o.isPresent(e)&&(o.isArray(e)?e.forEach(function(e){return n._toggleClass(e,!t)}):e instanceof Set?e.forEach(function(e){return n._toggleClass(e,!t)}):i.StringMapWrapper.forEach(e,function(e,r){o.isPresent(e)&&n._toggleClass(r,!t)}))},NgClass.prototype._toggleClass=function(e,t){if(e=e.trim(),e.length>0)if(e.indexOf(" ")>-1)for(var n=e.split(/\s+/g),r=0,i=n.length;r=200&&this.status<=299,this.statusText=t.statusText,this.headers=t.headers,this.type=t.type,this.url=t.url}return r(Response,e),Response.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},Response}(i.Body);t.Response=o},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(0),o=n(23),s=n(90),a=function(e){function DomEventsPlugin(){e.apply(this,arguments)}return r(DomEventsPlugin,e),DomEventsPlugin.prototype.supports=function(e){return!0},DomEventsPlugin.prototype.addEventListener=function(e,t,n){var r=this.manager.getZone(),i=function(e){return r.runGuarded(function(){return n(e)})};return this.manager.getZone().runOutsideAngular(function(){return o.getDOM().onAndCancel(e,t,i)})},DomEventsPlugin.prototype.addGlobalEventListener=function(e,t,n){var r=o.getDOM().getGlobalEventTarget(e),i=this.manager.getZone(),s=function(e){return i.runGuarded(function(){return n(e)})};return this.manager.getZone().runOutsideAngular(function(){return o.getDOM().onAndCancel(r,t,s)})},DomEventsPlugin.decorators=[{type:i.Injectable}],DomEventsPlugin}(s.EventManagerPlugin);t.DomEventsPlugin=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(0),o=n(72),s=n(16),a=n(605);t.HAMMER_GESTURE_CONFIG=new i.OpaqueToken("HammerGestureConfig");var l=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 n in this.overrides)t.get(n).set(this.overrides[n]);return t},HammerGestureConfig.decorators=[{type:i.Injectable}],HammerGestureConfig}();t.HammerGestureConfig=l;var c=function(e){function HammerGesturesPlugin(t){e.call(this),this._config=t}return r(HammerGesturesPlugin,e),HammerGesturesPlugin.prototype.supports=function(t){if(!e.prototype.supports.call(this,t)&&!this.isCustomEvent(t))return!1;if(!s.isPresent(window.Hammer))throw new o.BaseException("Hammer.js is not loaded, can not bind "+t+" event");return!0},HammerGesturesPlugin.prototype.addEventListener=function(e,t,n){var r=this,i=this.manager.getZone();return t=t.toLowerCase(),i.runOutsideAngular(function(){var o=r._config.buildHammer(e),s=function(e){i.runGuarded(function(){n(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:i.Injectable}],HammerGesturesPlugin.ctorParameters=[{type:l,decorators:[{type:i.Inject,args:[t.HAMMER_GESTURE_CONFIG]}]}],HammerGesturesPlugin}(a.HammerGesturesPluginCommon);t.HammerGesturesPlugin=c},function(e,t,n){"use strict";function sanitizeUrl(e){return e=String(e),e.match(o)||e.match(s)?e:(r.isDevMode()&&i.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(", ")}var r=n(0),i=n(23),o=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,s=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;t.sanitizeUrl=sanitizeUrl,t.sanitizeSrcset=sanitizeSrcset},function(e,t){"use strict";var n=function(){function LocationType(e,t,n,r,i,o,s,a,l){this.href=e,this.protocol=t,this.host=n,this.hostname=r,this.port=i,this.pathname=o,this.search=s,this.hash=a,this.origin=l}return LocationType}();t.LocationType=n},function(e,t,n){"use strict";function setupRouter(e,t,n,r,i,s,a,l,c){if(void 0===c&&(c={}),0==e.componentTypes.length)throw new Error("Bootstrap at least one component before injecting Router.");var p=e.componentTypes[0],d=new o.Router(p,t,n,r,i,s,a,u.flatten(l));return c.enableTracing&&d.events.subscribe(function(e){console.group("Router Event: "+e.constructor.name),console.log(e.toString()),console.log(e),console.groupEnd()}),d}function rootRoute(e){return e.routerState.root}function initialRouterNavigation(e){return function(){e.initialNavigation()}}function provideRouter(e,n){return void 0===n&&(n={}),[provideRoutes(e),{provide:t.ROUTER_CONFIGURATION,useValue:n},r.Location,{provide:r.LocationStrategy,useClass:r.PathLocationStrategy},{provide:c.UrlSerializer,useClass:c.DefaultUrlSerializer},{provide:o.Router,useFactory:setupRouter,deps:[i.ApplicationRef,i.ComponentResolver,c.UrlSerializer,a.RouterOutletMap,r.Location,i.Injector,i.NgModuleFactoryLoader,s.ROUTES,t.ROUTER_CONFIGURATION]},a.RouterOutletMap,{provide:l.ActivatedRoute,useFactory:rootRoute,deps:[o.Router]},provideRouterInitializer(),{provide:i.NgModuleFactoryLoader,useClass:i.SystemJsNgModuleLoader}]}function provideRouterInitializer(){return{provide:i.APP_BOOTSTRAP_LISTENER,multi:!0,useFactory:initialRouterNavigation,deps:[o.Router]}}function provideRoutes(e){return[{provide:i.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:e},{provide:s.ROUTES,multi:!0,useValue:e}]}function provideRouterConfig(e){return{provide:t.ROUTER_CONFIGURATION,useValue:e}}var r=n(3),i=n(0),o=n(128),s=n(187),a=n(129),l=n(91),c=n(73),u=n(74);t.ROUTER_CONFIGURATION=new i.OpaqueToken("ROUTER_CONFIGURATION"),t.setupRouter=setupRouter,t.rootRoute=rootRoute,t.initialRouterNavigation=initialRouterNavigation,t.provideRouter=provideRouter,t.provideRouterInitializer=provideRouterInitializer,t.provideRoutes=provideRoutes,t.provideRouterConfig=provideRouterConfig},function(e,t,n){"use strict";function toBool(e){return""===e||!!e}var r=n(3),i=n(0),o=n(128),s=n(91),a=function(){function RouterLink(e,t,n){this.router=e,this.route=t,this.locationStrategy=n,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,n){return!(0===e&&!t&&!n)||(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:i.Directive,args:[{selector:":not(a)[routerLink]"}]}],RouterLink.ctorParameters=[{type:o.Router},{type:s.ActivatedRoute},{type:r.LocationStrategy}],RouterLink.propDecorators={queryParams:[{type:i.Input}],fragment:[{type:i.Input}],preserveQueryParams:[{type:i.Input}],preserveFragment:[{type:i.Input}],routerLink:[{type:i.Input}],onClick:[{type:i.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey"]]}]},RouterLink}();t.RouterLink=a;var l=function(){function RouterLinkWithHref(e,t,n){var r=this;this.router=e,this.route=t,this.locationStrategy=n,this.commands=[],this.subscription=e.events.subscribe(function(e){e instanceof o.NavigationEnd&&r.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,n){return!(0===e&&!t&&!n)||("string"==typeof this.target&&"_self"!=this.target||(this.router.navigateByUrl(this.urlTree),!1))},RouterLinkWithHref.prototype.updateTargetUrlAndHref=function(){this.urlTree=this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:toBool(this.preserveQueryParams),preserveFragment:toBool(this.preserveFragment)}),this.urlTree&&(this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)))},RouterLinkWithHref.decorators=[{type:i.Directive,args:[{selector:"a[routerLink]"}]}],RouterLinkWithHref.ctorParameters=[{type:o.Router},{type:s.ActivatedRoute},{type:r.LocationStrategy}],RouterLinkWithHref.propDecorators={target:[{type:i.Input}],queryParams:[{type:i.Input}],fragment:[{type:i.Input}],routerLinkOptions:[{type:i.Input}],preserveQueryParams:[{type:i.Input}],preserveFragment:[{type:i.Input}],href:[{type:i.HostBinding}],routerLink:[{type:i.Input}],onClick:[{type:i.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey"]]}]},RouterLinkWithHref}();t.RouterLinkWithHref=l},function(e,t){"use strict";function findNode(e,t){if(e===t.value)return t;for(var n=0,r=t.children;n0)return a}return[]}var n=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 n=t[t.length-2].children.map(function(e){return e.value});return n.filter(function(t){return t!==e})},Tree.prototype.pathFromRoot=function(e){return findPath(e,this._root,[]).map(function(e){return e.value})},Tree}();t.Tree=n;var r=function(){function TreeNode(e,t){this.value=e,this.children=t}return TreeNode.prototype.toString=function(){return"TreeNode("+this.value+")"},TreeNode}();t.TreeNode=r},function(e,t){"use strict";function booleanFieldValueFactory(){return function(e,t){var n=e[t],r="__md_private_symbol_"+t;e[r]=n,Object.defineProperty(e,t,{get:function(){return this[r]},set:function(e){this[r]=null!=e&&""+e!="false"}})}}t.BooleanFieldValue=booleanFieldValueFactory},function(e,t,n){"use strict";var r=n(43),i=(n.n(r),n(0));n.n(i);n.d(t,"a",function(){return a});var o=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function ShardService(e){this.http=e,this.shardsUrl="../api/shards/"}return ShardService.prototype.getShards=function(e){return this.http.get(this.shardsUrl+e+"/").map(function(e){return e.json()})},ShardService=o([n.i(i.Injectable)(),s("design:paramtypes",["function"==typeof(e="undefined"!=typeof r.Http&&r.Http)&&e||Object])],ShardService);var e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(){function Proto(){}return Object.defineProperty(Proto,"VT_TABLET_TYPES",{get:function(){return["unknown","master","replica","rdonly","spare","experimental","backup","restore","drained"]},enumerable:!0,configurable:!0}),Object.defineProperty(Proto,"SHARDING_COLUMN_TYPES",{get:function(){return["UNSET","UINT64","BYTES"]},enumerable:!0,configurable:!0}),Object.defineProperty(Proto,"SHARDING_COLUMN_NAME_TO_TYPE",{get:function(){return{"":"UNSET","unsigned bigint":"UINT64",varbinary:"BYTES"}},enumerable:!0,configurable:!0}),Object.defineProperty(Proto,"SHARDING_COLUMN_NAMES",{get:function(){return["","unsigned bigint","varbinary"]},enumerable:!0,configurable:!0}),Proto}()},function(e,t,n){"use strict";var r=n(0),i=(n.n(r),n(443)),o=n(654),s=n(303),a=(n.n(s),n(130)),l=n(645),c=n(93),u=n(94),p=n(192),d=n(439);n.d(t,"a",function(){return m});var h=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},f=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},m=function(){function WorkflowListComponent(e,t){this.featuresService=e,this.workflowService=t,this.title="Workflows",this.redirect="",this.workflows=[]}return WorkflowListComponent.prototype.ngOnInit=function(){var e=this;this.workflowService.updates().subscribe(function(t){e.processUpdateJson(t)}),this.dialogContent=new c.a,this.dialogSettings=new u.a},WorkflowListComponent.prototype.ngOnDestroy=function(){this.workflowService.stop()},WorkflowListComponent.prototype.processUpdateJson=function(e){if("fullUpdate"in e&&e.fullUpdate&&(this.redirect="",this.workflows=[]),"nodes"in e&&null!==e.nodes&&this.processWorkflowJson(e.nodes),"deletes"in e&&null!==e.deletes)for(var t=0,n=e.deletes;t0&&"/"===e.charAt(0)},WorkflowListComponent.prototype.cleanPath=function(e){return e.length>0&&"/"===e.charAt(e.length-1)?e.substring(0,e.length-1):e},WorkflowListComponent.prototype.getChild=function(e,t){for(var n=0,r=t;n22025.465794806718||n(10)<22025.465794806718||n(-2e-17)!=-2e-17?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t,n){var r=n(39);e.exports=function(e,t,n){for(var i in t)r(e,i,t[i],n);return e}},function(e,t,n){var r=n(15),i=n(8),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n(106)(Function.call,n(77).f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(i){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},function(e,t,n){"use strict";var r=n(26),i=n(30),o=n(35),s=n(25)("species");e.exports=function(e){var t=r[e];o&&t&&!t[s]&&i.f(t,s,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(199)("keys"),i=n(137);e.exports=function(e){return r[e]||(r[e]=i(e))}},function(e,t,n){var r=n(293),i=n(75);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(i(e))}},function(e,t){e.exports="\t\n\x0B\f\r   ᠎              \u2028\u2029\ufeff"},function(e,t,n){"use strict";function __export(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}__export(n(19)),__export(n(814)),__export(n(815)),__export(n(816)),__export(n(139)),__export(n(817)),__export(n(818)),__export(n(821)),__export(n(822)),__export(n(819)),__export(n(820)),__export(n(823)),__export(n(824)),__export(n(825)),__export(n(826)),__export(n(827)),__export(n(828)),__export(n(829)),__export(n(830)),__export(n(831)),__export(n(832)),__export(n(833)),__export(n(834)),__export(n(835)),__export(n(836)),__export(n(204)),__export(n(837)),__export(n(838)),__export(n(839)),__export(n(840)),__export(n(841)),__export(n(842)),__export(n(843)),__export(n(844)),__export(n(845)),__export(n(846)),__export(n(205)),__export(n(847)),__export(n(848)),__export(n(849)),__export(n(850)),__export(n(851)),__export(n(852)),__export(n(853)),__export(n(854)),__export(n(855)),__export(n(856)),__export(n(857)),__export(n(858)),__export(n(859)),__export(n(861)),__export(n(860)),__export(n(862)),__export(n(863)),__export(n(864)),__export(n(865)),__export(n(866)),__export(n(867)),__export(n(868))},function(e,t,n){"use strict";var r=n(1),i=n(1020);r.Observable.prototype.concatAll=i.concatAll},function(e,t,n){"use strict";var r=n(1),i=n(212);r.Observable.prototype.mergeAll=i.mergeAll},function(e,t,n){"use strict";var r=n(1),i=n(1062);r.Observable.prototype.switchMap=i.switchMap},function(e,t,n){"use strict";var r=n(1),i=n(313);r.Observable.prototype.toPromise=i.toPromise},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(1),o=function(e){function ScalarObservable(t,n){e.call(this),this.value=t,this.scheduler=n,this._isScalar=!0}return r(ScalarObservable,e),ScalarObservable.create=function(e,t){return new ScalarObservable(e,t)},ScalarObservable.dispatch=function(e){var t=e.done,n=e.value,r=e.subscriber;return t?void r.complete():(r.next(n),void(r.isUnsubscribed||(e.done=!0,this.schedule(e))))},ScalarObservable.prototype._subscribe=function(e){var t=this.value,n=this.scheduler;return n?n.schedule(ScalarObservable.dispatch,0,{done:!1,value:t,subscriber:e}):(e.next(t),void(e.isUnsubscribed||e.complete()))},ScalarObservable}(i.Observable);t.ScalarObservable=o},function(e,t,n){"use strict";var r=n(989);t.from=r.FromObservable.create},function(e,t,n){"use strict";function combineLatest(){for(var e=[],t=0;t0){var a=s.indexOf(n);a!==-1&&s.splice(a,1)}0===s.length&&(this.project?this._tryProject(o):this.destination.next(o))},CombineLatestSubscriber.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(n){return void this.destination.error(n)}this.destination.next(t)},CombineLatestSubscriber}(a.OuterSubscriber);t.CombineLatestSubscriber=u},function(e,t,n){"use strict";function concat(){for(var e=[],t=0;tthis.index},StaticArrayIterator.prototype.hasCompleted=function(){return this.array.length===this.index},StaticArrayIterator}(),f=function(e){function ZipBufferIterator(t,n,r,i){e.call(this,t),this.parent=n,this.observable=r,this.index=i,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}return r(ZipBufferIterator,e),ZipBufferIterator.prototype[c.$$iterator]=function(){return this},ZipBufferIterator.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{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,n,r,i){this.buffer.push(t),this.parent.checkIterators()},ZipBufferIterator.prototype.subscribe=function(e,t){return l.subscribeToResult(this,this.observable,this,t)},ZipBufferIterator}(a.OuterSubscriber)},function(e,t,n){"use strict";var r=n(1083),i=n(213),o=function(){function QueueScheduler(){this.active=!1,this.actions=[],this.scheduledId=null}return QueueScheduler.prototype.now=function(){return Date.now()},QueueScheduler.prototype.flush=function(){if(!this.active&&!this.scheduledId){this.active=!0;for(var e=this.actions,t=null;t=e.shift();)if(t.execute(),t.error)throw this.active=!1,t.error;this.active=!1}},QueueScheduler.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),t<=0?this.scheduleNow(e,n):this.scheduleLater(e,t,n)},QueueScheduler.prototype.scheduleNow=function(e,t){return new r.QueueAction(this,e).schedule(t)},QueueScheduler.prototype.scheduleLater=function(e,t,n){return new i.FutureAction(this,e).schedule(n,t)},QueueScheduler}();t.QueueScheduler=o},function(e,t){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},r=function(e){function ArgumentOutOfRangeError(){e.call(this,"argument out of range"),this.name="ArgumentOutOfRangeError"}return n(ArgumentOutOfRangeError,e),ArgumentOutOfRangeError}(Error);t.ArgumentOutOfRangeError=r},function(e,t){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},r=function(e){function ObjectUnsubscribedError(){e.call(this,"object unsubscribed"),this.name="ObjectUnsubscribedError"}return n(ObjectUnsubscribedError,e),ObjectUnsubscribedError}(Error);t.ObjectUnsubscribedError=r},function(e,t,n){"use strict";function isNumeric(e){return!r.isArray(e)&&e-parseFloat(e)+1>=0}var r=n(81);t.isNumeric=isNumeric},,,function(e,t,n){"use strict";var r=n(322);t.COMMON_DIRECTIVES=[r.CORE_DIRECTIVES]},function(e,t,n){"use strict";var r=n(524);t.CORE_DIRECTIVES=r.CORE_DIRECTIVES;var i=n(323);t.NgClass=i.NgClass;var o=n(324);t.NgFor=o.NgFor;var s=n(325);t.NgIf=s.NgIf;var a=n(326);t.NgPlural=a.NgPlural,t.NgPluralCase=a.NgPluralCase;var l=n(327);t.NgStyle=l.NgStyle;var c=n(218);t.NgSwitch=c.NgSwitch,t.NgSwitchCase=c.NgSwitchCase,t.NgSwitchDefault=c.NgSwitchDefault;var u=n(328);t.NgTemplateOutlet=u.NgTemplateOutlet},function(e,t,n){"use strict";var r=n(0),i=n(34),o=n(7),s=function(){function NgClass(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(NgClass.prototype,"initialClasses",{set:function(e){this._applyInitialClasses(!0),this._initialClasses=o.isPresent(e)&&o.isString(e)?e.split(" "):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(NgClass.prototype,"ngClass",{set:function(e){this._cleanupClasses(this._rawClass),o.isString(e)&&(e=e.split(" ")),this._rawClass=e,this._iterableDiffer=null,this._keyValueDiffer=null,o.isPresent(e)&&(i.isListLikeIterable(e)?this._iterableDiffer=this._iterableDiffers.find(e).create(null):this._keyValueDiffer=this._keyValueDiffers.find(e).create(null))},enumerable:!0,configurable:!0}),NgClass.prototype.ngDoCheck=function(){if(o.isPresent(this._iterableDiffer)){var e=this._iterableDiffer.diff(this._rawClass);o.isPresent(e)&&this._applyIterableChanges(e)}if(o.isPresent(this._keyValueDiffer)){var e=this._keyValueDiffer.diff(this._rawClass);o.isPresent(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){t._toggleClass(e.key,e.currentValue)}),e.forEachChangedItem(function(e){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){t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){t._toggleClass(e.item,!1)})},NgClass.prototype._applyInitialClasses=function(e){var t=this;this._initialClasses.forEach(function(n){return t._toggleClass(n,!e)})},NgClass.prototype._applyClasses=function(e,t){var n=this;o.isPresent(e)&&(o.isArray(e)?e.forEach(function(e){return n._toggleClass(e,!t)}):e instanceof Set?e.forEach(function(e){return n._toggleClass(e,!t)}):i.StringMapWrapper.forEach(e,function(e,r){o.isPresent(e)&&n._toggleClass(r,!t)}))},NgClass.prototype._toggleClass=function(e,t){if(e=e.trim(),e.length>0)if(e.indexOf(" ")>-1)for(var n=e.split(/\s+/g),r=0,i=n.length;r1?e[1]:null,r=e.length>2?e[2]:null;return this.control(t,n,r)}return this.control(e)},FormBuilder.decorators=[{type:r.Injectable}],FormBuilder}();t.FormBuilder=a},function(e,t,n){"use strict";var r=n(335);t.AsyncPipe=r.AsyncPipe;var i=n(530);t.COMMON_PIPES=i.COMMON_PIPES;var o=n(336);t.DatePipe=o.DatePipe;var s=n(337);t.I18nPluralPipe=s.I18nPluralPipe;var a=n(338);t.I18nSelectPipe=a.I18nSelectPipe;var l=n(339);t.JsonPipe=l.JsonPipe;var c=n(340);t.LowerCasePipe=c.LowerCasePipe;var u=n(341);t.CurrencyPipe=u.CurrencyPipe,t.DecimalPipe=u.DecimalPipe,t.PercentPipe=u.PercentPipe;var p=n(342);t.ReplacePipe=p.ReplacePipe;var d=n(343);t.SlicePipe=d.SlicePipe;var h=n(344);t.UpperCasePipe=h.UpperCasePipe},function(e,t,n){"use strict";var r=n(0),i=n(7),o=n(59),s=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}(),a=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}(),l=new a,c=new s,u=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(){i.isPresent(this._subscription)&&this._dispose()},AsyncPipe.prototype.transform=function(e){return i.isBlank(this._obj)?(i.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(n){return t._updateLatestValue(e,n)})},AsyncPipe.prototype._selectStrategy=function(e){if(i.isPromise(e))return l;if(e.subscribe)return c;throw new o.InvalidPipeArgumentException(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}();t.AsyncPipe=u},function(e,t,n){"use strict";var r=n(0),i=n(34),o=n(331),s=n(7),a=n(59),l="en-US",c=function(){function DatePipe(){}return DatePipe.prototype.transform=function(e,t){if(void 0===t&&(t="mediumDate"),s.isBlank(e))return null;if(!this.supports(e))throw new a.InvalidPipeArgumentException(DatePipe,e);return s.NumberWrapper.isNumeric(e)?e=s.DateWrapper.fromMillis(s.NumberWrapper.parseInt(e,10)):s.isString(e)&&(e=s.DateWrapper.fromISOString(e)),i.StringMapWrapper.contains(DatePipe._ALIASES,t)&&(t=i.StringMapWrapper.get(DatePipe._ALIASES,t)),o.DateFormatter.format(e,l,t)},DatePipe.prototype.supports=function(e){return!(!s.isDate(e)&&!s.NumberWrapper.isNumeric(e))||!(!s.isString(e)||!s.isDate(s.DateWrapper.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}();t.DatePipe=c},function(e,t,n){"use strict";var r=n(0),i=n(7),o=n(230),s=n(59),a=/#/g,l=function(){function I18nPluralPipe(e){this._localization=e}return I18nPluralPipe.prototype.transform=function(e,t){if(i.isBlank(e))return"";if(!i.isStringMap(t))throw new s.InvalidPipeArgumentException(I18nPluralPipe,t);var n=o.getPluralCategory(e,Object.keys(t),this._localization);return i.StringWrapper.replaceAll(t[n],a,e.toString())},I18nPluralPipe.decorators=[{type:r.Pipe,args:[{name:"i18nPlural",pure:!0}]}],I18nPluralPipe.ctorParameters=[{type:o.NgLocalization}],I18nPluralPipe}();t.I18nPluralPipe=l},function(e,t,n){"use strict";var r=n(0),i=n(7),o=n(59),s=function(){function I18nSelectPipe(){}return I18nSelectPipe.prototype.transform=function(e,t){if(i.isBlank(e))return"";if(!i.isStringMap(t))throw new o.InvalidPipeArgumentException(I18nSelectPipe,t);return t.hasOwnProperty(e)?t[e]:""},I18nSelectPipe.decorators=[{type:r.Pipe,args:[{name:"i18nSelect",pure:!0}]}],I18nSelectPipe}();t.I18nSelectPipe=s},function(e,t,n){"use strict";var r=n(0),i=n(7),o=function(){function JsonPipe(){}return JsonPipe.prototype.transform=function(e){return i.Json.stringify(e)},JsonPipe.decorators=[{type:r.Pipe,args:[{name:"json",pure:!1}]}],JsonPipe}();t.JsonPipe=o},function(e,t,n){"use strict";var r=n(0),i=n(7),o=n(59),s=function(){function LowerCasePipe(){}return LowerCasePipe.prototype.transform=function(e){if(i.isBlank(e))return e;if(!i.isString(e))throw new o.InvalidPipeArgumentException(LowerCasePipe,e);return e.toLowerCase()},LowerCasePipe.decorators=[{type:r.Pipe,args:[{name:"lowercase"}]}],LowerCasePipe}();t.LowerCasePipe=s},function(e,t,n){"use strict";function formatNumber(e,t,n,r,c,u){if(void 0===c&&(c=null),void 0===u&&(u=!1),o.isBlank(t))return null;if(t=o.isString(t)&&o.NumberWrapper.isNumeric(t)?+t:t,!o.isNumber(t))throw new s.InvalidPipeArgumentException(e,t);var p,d,h;if(n!==i.NumberFormatStyle.Currency&&(p=1,d=0,h=3),o.isPresent(r)){var f=r.match(l);if(null===f)throw new Error(r+" is not a valid digit info for number pipes");o.isPresent(f[1])&&(p=o.NumberWrapper.parseIntAutoRadix(f[1])),o.isPresent(f[3])&&(d=o.NumberWrapper.parseIntAutoRadix(f[3])),o.isPresent(f[5])&&(h=o.NumberWrapper.parseIntAutoRadix(f[5]))}return i.NumberFormatter.format(t,a,n,{minimumIntegerDigits:p,minimumFractionDigits:d,maximumFractionDigits:h,currency:c,currencyAsSymbol:u})}var r=n(0),i=n(331),o=n(7),s=n(59),a="en-US",l=/^(\d+)?\.((\d+)(\-(\d+))?)?$/,c=function(){function DecimalPipe(){}return DecimalPipe.prototype.transform=function(e,t){return void 0===t&&(t=null),formatNumber(DecimalPipe,e,i.NumberFormatStyle.Decimal,t)},DecimalPipe.decorators=[{type:r.Pipe,args:[{name:"number"}]}],DecimalPipe}();t.DecimalPipe=c;var u=function(){function PercentPipe(){}return PercentPipe.prototype.transform=function(e,t){return void 0===t&&(t=null),formatNumber(PercentPipe,e,i.NumberFormatStyle.Percent,t)},PercentPipe.decorators=[{type:r.Pipe,args:[{name:"percent"}]}],PercentPipe}();t.PercentPipe=u;var p=function(){function CurrencyPipe(){}return CurrencyPipe.prototype.transform=function(e,t,n,r){return void 0===t&&(t="USD"),void 0===n&&(n=!1),void 0===r&&(r=null),formatNumber(CurrencyPipe,e,i.NumberFormatStyle.Currency,r,t,n)},CurrencyPipe.decorators=[{type:r.Pipe,args:[{name:"currency"}]}],CurrencyPipe}();t.CurrencyPipe=p},function(e,t,n){"use strict";var r=n(0),i=n(7),o=n(59),s=function(){function ReplacePipe(){}return ReplacePipe.prototype.transform=function(e,t,n){if(i.isBlank(e))return e;if(!this._supportedInput(e))throw new o.InvalidPipeArgumentException(ReplacePipe,e);var r=e.toString();if(!this._supportedPattern(t))throw new o.InvalidPipeArgumentException(ReplacePipe,t);if(!this._supportedReplacement(n))throw new o.InvalidPipeArgumentException(ReplacePipe,n);if(i.isFunction(n)){var s=i.isString(t)?new RegExp(t,"g"):t;return i.StringWrapper.replaceAllMapped(r,s,n)}return t instanceof RegExp?i.StringWrapper.replaceAll(r,t,n):i.StringWrapper.replace(r,t,n)},ReplacePipe.prototype._supportedInput=function(e){return i.isString(e)||i.isNumber(e)},ReplacePipe.prototype._supportedPattern=function(e){return i.isString(e)||e instanceof RegExp},ReplacePipe.prototype._supportedReplacement=function(e){return i.isString(e)||i.isFunction(e)},ReplacePipe.decorators=[{type:r.Pipe,args:[{name:"replace"}]}],ReplacePipe}();t.ReplacePipe=s},function(e,t,n){"use strict";var r=n(0),i=n(34),o=n(7),s=n(59),a=function(){function SlicePipe(){}return SlicePipe.prototype.transform=function(e,t,n){if(void 0===n&&(n=null),o.isBlank(e))return e;if(!this.supports(e))throw new s.InvalidPipeArgumentException(SlicePipe,e);return o.isString(e)?o.StringWrapper.slice(e,t,n):i.ListWrapper.slice(e,t,n)},SlicePipe.prototype.supports=function(e){return o.isString(e)||o.isArray(e)},SlicePipe.decorators=[{type:r.Pipe,args:[{name:"slice",pure:!1}]}],SlicePipe}();t.SlicePipe=a},function(e,t,n){"use strict";var r=n(0),i=n(7),o=n(59),s=function(){function UpperCasePipe(){}return UpperCasePipe.prototype.transform=function(e){if(i.isBlank(e))return e;if(!i.isString(e))throw new o.InvalidPipeArgumentException(UpperCasePipe,e);return e.toUpperCase()},UpperCasePipe.decorators=[{type:r.Pipe,args:[{name:"uppercase"}]}],UpperCasePipe}();t.UpperCasePipe=s},function(e,t){"use strict";var n=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},r=function(){function AnimationAst(){this.startTime=0,this.playTime=0}return AnimationAst}();t.AnimationAst=r;var i=function(e){function AnimationStateAst(){e.apply(this,arguments)}return n(AnimationStateAst,e),AnimationStateAst}(r);t.AnimationStateAst=i;var o=function(e){function AnimationEntryAst(t,n,r){e.call(this),this.name=t,this.stateDeclarations=n,this.stateTransitions=r}return n(AnimationEntryAst,e),AnimationEntryAst.prototype.visit=function(e,t){return e.visitAnimationEntry(this,t)},AnimationEntryAst}(r);t.AnimationEntryAst=o;var s=function(e){function AnimationStateDeclarationAst(t,n){e.call(this),this.stateName=t,this.styles=n}return n(AnimationStateDeclarationAst,e),AnimationStateDeclarationAst.prototype.visit=function(e,t){return e.visitAnimationStateDeclaration(this,t)},AnimationStateDeclarationAst}(i);t.AnimationStateDeclarationAst=s;var a=function(){function AnimationStateTransitionExpression(e,t){this.fromState=e,this.toState=t}return AnimationStateTransitionExpression}();t.AnimationStateTransitionExpression=a;var l=function(e){function AnimationStateTransitionAst(t,n){e.call(this),this.stateChanges=t,this.animation=n}return n(AnimationStateTransitionAst,e),AnimationStateTransitionAst.prototype.visit=function(e,t){return e.visitAnimationStateTransition(this,t)},AnimationStateTransitionAst}(i);t.AnimationStateTransitionAst=l;var c=function(e){function AnimationStepAst(t,n,r,i,o){e.call(this),this.startingStyles=t,this.keyframes=n,this.duration=r,this.delay=i,this.easing=o}return n(AnimationStepAst,e),AnimationStepAst.prototype.visit=function(e,t){return e.visitAnimationStep(this,t)},AnimationStepAst}(r);t.AnimationStepAst=c;var u=function(e){function AnimationStylesAst(t){e.call(this),this.styles=t}return n(AnimationStylesAst,e),AnimationStylesAst.prototype.visit=function(e,t){return e.visitAnimationStyles(this,t)},AnimationStylesAst}(r);t.AnimationStylesAst=u;var p=function(e){function AnimationKeyframeAst(t,n){e.call(this),this.offset=t,this.styles=n}return n(AnimationKeyframeAst,e),AnimationKeyframeAst.prototype.visit=function(e,t){return e.visitAnimationKeyframe(this,t)},AnimationKeyframeAst}(r);t.AnimationKeyframeAst=p;var d=function(e){function AnimationWithStepsAst(t){e.call(this),this.steps=t}return n(AnimationWithStepsAst,e),AnimationWithStepsAst}(r);t.AnimationWithStepsAst=d;var h=function(e){function AnimationGroupAst(t){e.call(this,t)}return n(AnimationGroupAst,e),AnimationGroupAst.prototype.visit=function(e,t){return e.visitAnimationGroup(this,t)},AnimationGroupAst}(d);t.AnimationGroupAst=h;var f=function(e){function AnimationSequenceAst(t){e.call(this,t)}return n(AnimationSequenceAst,e),AnimationSequenceAst.prototype.visit=function(e,t){return e.visitAnimationSequence(this,t)},AnimationSequenceAst}(d);t.AnimationSequenceAst=f},function(e,t,n){"use strict";function _compareToAnimationStateExpr(e,t){var n=l.literal(r.EMPTY_STATE);switch(t){case r.EMPTY_STATE:return e.equals(n);case r.ANY_STATE:return l.literal(!0);default:return e.equals(l.literal(t))}}function _isEndStateAnimateStep(e){if(e instanceof u.AnimationStepAst&&e.duration>0&&2==e.keyframes.length){var t=_getStylesArray(e.keyframes[0])[0],n=_getStylesArray(e.keyframes[1])[0];return i.StringMapWrapper.isEmpty(t)&&i.StringMapWrapper.isEmpty(n)}return!1}function _getStylesArray(e){return e.styles.styles}function _validateAnimationProperties(e,t){var n=new x(e);return c.templateVisitAll(n,t),n.errors}var r=n(27),i=n(10),o=n(18),s=n(5),a=n(28),l=n(17),c=n(61),u=n(345),p=n(532),d=function(){function CompiledAnimation(e,t,n,r,i){this.name=e,this.statesMapStatement=t,this.statesVariableName=n,this.fnStatement=r,this.fnVariable=i}return CompiledAnimation}();t.CompiledAnimation=d;var h=function(){function AnimationCompiler(){}return AnimationCompiler.prototype.compileComponent=function(e,t){var n=[],r=[],i={},s=e.type.name;if(e.template.animations.forEach(function(e){var t=p.parseAnimationEntry(e),o=e.name;if(t.errors.length>0){var a='Unable to parse the animation sequence for "'+o+'" due to the following errors:';t.errors.forEach(function(e){a+="\n-- "+e.msg}),r.push(a)}if(i[o])r.push('The animation trigger "'+o+'" has already been registered on "'+s+'"');else{var l=s+"_"+e.name,c=new T(o,l),u=c.build(t.ast);n.push(u),i[e.name]=u}}),_validateAnimationProperties(n,t).forEach(function(e){r.push(e.msg)}),r.length>0){var a="Animation parsing for "+e.type.name+" has failed due to the following errors:";throw r.forEach(function(e){return a+="\n- "+e}),new o.BaseException(a)}return n},AnimationCompiler}();t.AnimationCompiler=h;var f=l.variable("element"),m=l.variable("defaultStateStyles"),y=l.variable("view"),v=y.prop("renderer"),g=l.variable("currentState"),b=l.variable("nextState"),_=l.variable("player"),S=l.variable("startStateStyles"),w=l.variable("endStateStyles"),C=l.variable("collectedStyles"),E=l.literalMap([]),T=function(){function _AnimationBuilder(e,t){this.animationName=e,this._fnVarName=t+"_factory",this._statesMapVarName=t+"_states",this._statesMapVar=l.variable(this._statesMapVarName)}return _AnimationBuilder.prototype.visitAnimationStyles=function(e,t){var n=[];return t.isExpectingFirstStyleStep&&(n.push(S),t.isExpectingFirstStyleStep=!1),e.styles.forEach(function(e){n.push(l.literalMap(i.StringMapWrapper.keys(e).map(function(t){return[t,l.literal(e[t])]})))}),l.importExpr(a.Identifiers.AnimationStyles).instantiate([l.importExpr(a.Identifiers.collectAndResolveStyles).callFn([C,l.literalArr(n)])])},_AnimationBuilder.prototype.visitAnimationKeyframe=function(e,t){return l.importExpr(a.Identifiers.AnimationKeyframe).instantiate([l.literal(e.offset),e.styles.visit(this,t)])},_AnimationBuilder.prototype.visitAnimationStep=function(e,t){var n=this;if(t.endStateAnimateStep===e)return this._visitEndStateAnimation(e,t);var r=e.startingStyles.visit(this,t),i=e.keyframes.map(function(e){return e.visit(n,t)});return this._callAnimateMethod(e,r,l.literalArr(i))},_AnimationBuilder.prototype._visitEndStateAnimation=function(e,t){var n=this,r=e.startingStyles.visit(this,t),i=e.keyframes.map(function(e){return e.visit(n,t)}),o=l.importExpr(a.Identifiers.balanceAnimationKeyframes).callFn([C,w,l.literalArr(i)]);return this._callAnimateMethod(e,r,o)},_AnimationBuilder.prototype._callAnimateMethod=function(e,t,n){return v.callMethod("animate",[f,t,n,l.literal(e.duration),l.literal(e.delay),l.literal(e.easing)])},_AnimationBuilder.prototype.visitAnimationSequence=function(e,t){var n=this,r=e.steps.map(function(e){return e.visit(n,t)});return l.importExpr(a.Identifiers.AnimationSequencePlayer).instantiate([l.literalArr(r)])},_AnimationBuilder.prototype.visitAnimationGroup=function(e,t){var n=this,r=e.steps.map(function(e){return e.visit(n,t)});return l.importExpr(a.Identifiers.AnimationGroupPlayer).instantiate([l.literalArr(r)])},_AnimationBuilder.prototype.visitAnimationStateDeclaration=function(e,t){var n={};_getStylesArray(e).forEach(function(e){i.StringMapWrapper.forEach(e,function(e,t){n[t]=e})}),t.stateMap.registerState(e.stateName,n)},_AnimationBuilder.prototype.visitAnimationStateTransition=function(e,t){var n=e.animation.steps,i=n[n.length-1];_isEndStateAnimateStep(i)&&(t.endStateAnimateStep=i),t.isExpectingFirstStyleStep=!0;var o=[];e.stateChanges.forEach(function(e){o.push(_compareToAnimationStateExpr(g,e.fromState).and(_compareToAnimationStateExpr(b,e.toState))),e.fromState!=r.ANY_STATE&&t.stateMap.registerState(e.fromState),e.toState!=r.ANY_STATE&&t.stateMap.registerState(e.toState)});var s=e.animation.visit(this,t),a=o.reduce(function(e,t){return e.or(t)}),c=_.equals(l.NULL_EXPR).and(a);return new l.IfStmt(c,[_.set(s).toStmt()])},_AnimationBuilder.prototype.visitAnimationEntry=function(e,t){var n=this;e.stateDeclarations.forEach(function(e){return e.visit(n,t)}),t.stateMap.registerState(r.DEFAULT_STATE,{});var i=[];i.push(y.callMethod("cancelActiveAnimation",[f,l.literal(this.animationName),b.equals(l.literal(r.EMPTY_STATE))]).toStmt()),i.push(C.set(E).toDeclStmt()),i.push(_.set(l.NULL_EXPR).toDeclStmt()),i.push(m.set(this._statesMapVar.key(l.literal(r.DEFAULT_STATE))).toDeclStmt()),i.push(S.set(this._statesMapVar.key(g)).toDeclStmt()),i.push(new l.IfStmt(S.equals(l.NULL_EXPR),[S.set(m).toStmt()])),i.push(w.set(this._statesMapVar.key(b)).toDeclStmt()),i.push(new l.IfStmt(w.equals(l.NULL_EXPR),[w.set(m).toStmt()]));var o=l.importExpr(a.Identifiers.renderStyles);return i.push(o.callFn([f,v,l.importExpr(a.Identifiers.clearStyles).callFn([S])]).toStmt()),e.stateTransitions.forEach(function(e){return i.push(e.visit(n,t))}),i.push(new l.IfStmt(_.equals(l.NULL_EXPR),[_.set(l.importExpr(a.Identifiers.NoOpAnimationPlayer).instantiate([])).toStmt()])),i.push(_.callMethod("onDone",[l.fn([],[o.callFn([f,v,l.importExpr(a.Identifiers.prepareFinalAnimationStyles).callFn([S,w])]).toStmt()])]).toStmt()),i.push(y.callMethod("queueAnimation",[f,l.literal(this.animationName),_]).toStmt()),l.fn([new l.FnParam(y.name,l.importType(a.Identifiers.AppView,[l.DYNAMIC_TYPE])),new l.FnParam(f.name,l.DYNAMIC_TYPE),new l.FnParam(g.name,l.DYNAMIC_TYPE),new l.FnParam(b.name,l.DYNAMIC_TYPE)],i)},_AnimationBuilder.prototype.build=function(e){var t=new R,n=e.visit(this,t).toDeclStmt(this._fnVarName),r=l.variable(this._fnVarName),o=[];i.StringMapWrapper.forEach(t.stateMap.states,function(e,t){var n=E;if(s.isPresent(e)){var r=[];i.StringMapWrapper.forEach(e,function(e,t){r.push([t,l.literal(e)])}),n=l.literalMap(r)}o.push([t,n])});var a=this._statesMapVar.set(l.literalMap(o)).toDeclStmt();return new d(this.animationName,a,this._statesMapVarName,n,r)},_AnimationBuilder}(),R=function(){function _AnimationBuilderContext(){this.stateMap=new P,this.endStateAnimateStep=null,this.isExpectingFirstStyleStep=!1}return _AnimationBuilderContext}(),P=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 n=this._states[e];s.isBlank(n)&&(this._states[e]=t)},_AnimationBuilderStateMap}(),x=function(){function _AnimationTemplatePropertyVisitor(e){var t=this;this._animationRegistry={},this.errors=[],e.forEach(function(e){t._animationRegistry[e.name]=!0})}return _AnimationTemplatePropertyVisitor.prototype.visitElement=function(e,t){var n=this;e.inputs.forEach(function(e){if(e.type==c.PropertyBindingType.Animation){var t=e.name;s.isPresent(n._animationRegistry[t])||n.errors.push(new p.AnimationParseError("couldn't find an animation entry for "+t))}}),c.templateVisitAll(this,e.children)},_AnimationTemplatePropertyVisitor.prototype.visitBoundText=function(e,t){},_AnimationTemplatePropertyVisitor.prototype.visitText=function(e,t){},_AnimationTemplatePropertyVisitor.prototype.visitEmbeddedTemplate=function(e,t){},_AnimationTemplatePropertyVisitor.prototype.visitNgContent=function(e,t){},_AnimationTemplatePropertyVisitor.prototype.visitAttr=function(e,t){},_AnimationTemplatePropertyVisitor.prototype.visitDirective=function(e,t){},_AnimationTemplatePropertyVisitor.prototype.visitEvent=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}()},function(e,t,n){"use strict";function assertArrayOfStrings(e,t){if(r.isDevMode()&&!i.isBlank(t)){if(!i.isArray(t))throw new Error("Expected '"+e+"' to be an array of strings.");for(var n=0;n]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];t.assertInterpolationSymbols=assertInterpolationSymbols},329,[1105,348,10,5],function(e,t){"use strict";function digestMessage(e){return strHash(serializeNodes(e.nodes).join("")+("["+e.meaning+"]"))}function strHash(e){for(var t=0,n=0;n>>0;return t.toString(16)}function serializeNodes(e){return e.map(function(e){return e.visit(r,null)})}t.digestMessage=digestMessage,t.strHash=strHash;var n=function(){function _SerializerVisitor(){}return _SerializerVisitor.prototype.visitText=function(e,t){return e.value},_SerializerVisitor.prototype.visitContainer=function(e,t){var n=this;return"["+e.children.map(function(e){return e.visit(n)}).join(", ")+"]"},_SerializerVisitor.prototype.visitIcu=function(e,t){var n=this,r=Object.keys(e.cases).map(function(t){return t+" {"+e.cases[t].visit(n)+"}"});return"{"+e.expression+", "+e.type+", "+r.join(", ")+"}"},_SerializerVisitor.prototype.visitTagPlaceholder=function(e,t){var n=this;return e.isVoid?'':''+e.children.map(function(e){return e.visit(n)}).join(", ")+''},_SerializerVisitor.prototype.visitPlaceholder=function(e,t){return''+e.value+""},_SerializerVisitor.prototype.visitIcuPlaceholder=function(e,t){return''+e.value.visit(this)+""},_SerializerVisitor}(),r=new n;t.serializeNodes=serializeNodes},function(e,t){"use strict";var n=function(){function Message(e,t,n,r){this.nodes=e,this.placeholders=t,this.meaning=n,this.description=r}return Message}();t.Message=n;var r=function(){function Text(e,t){this.value=e,this.sourceSpan=t}return Text.prototype.visit=function(e,t){return e.visitText(this,t)},Text}();t.Text=r;var i=function(){function Container(e,t){this.children=e,this.sourceSpan=t}return Container.prototype.visit=function(e,t){return e.visitContainer(this,t)},Container}();t.Container=i;var o=function(){function Icu(e,t,n,r){this.expression=e,this.type=t,this.cases=n,this.sourceSpan=r}return Icu.prototype.visit=function(e,t){return e.visitIcu(this,t)},Icu}();t.Icu=o;var s=function(){function TagPlaceholder(e,t,n,r,i,o,s){this.tag=e,this.attrs=t,this.startName=n,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=s}return TagPlaceholder.prototype.visit=function(e,t){return e.visitTagPlaceholder(this,t)},TagPlaceholder}();t.TagPlaceholder=s;var a=function(){function Placeholder(e,t,n){void 0===t&&(t=""),this.value=e,this.name=t,this.sourceSpan=n}return Placeholder.prototype.visit=function(e,t){return e.visitPlaceholder(this,t)},Placeholder}();t.Placeholder=a;var l=function(){function IcuPlaceholder(e,t,n){void 0===t&&(t=""),this.value=e,this.name=t,this.sourceSpan=n}return IcuPlaceholder.prototype.visit=function(e,t){return e.visitIcuPlaceholder(this,t)},IcuPlaceholder}();t.IcuPlaceholder=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(60),o=function(e){function I18nError(t,n){e.call(this,t,n)}return r(I18nError,e),I18nError}(i.ParseError);t.I18nError=o},function(e,t,n){"use strict";function getHtmlTagDefinition(e){return o[e.toLowerCase()]||s}var r=n(102),i=function(){function HtmlTagDefinition(e){var t=this,n=void 0===e?{}:e,i=n.closedByChildren,o=n.requiredParents,s=n.implicitNamespacePrefix,a=n.contentType,l=void 0===a?r.TagContentType.PARSABLE_DATA:a,c=n.closedByParent,u=void 0!==c&&c,p=n.isVoid,d=void 0!==p&&p,h=n.ignoreFirstLf,f=void 0!==h&&h;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,i&&i.length>0&&i.forEach(function(e){return t.closedByChildren[e]=!0}),this.isVoid=d,this.closedByParent=u||d,o&&o.length>0&&(this.requiredParents={},this.parentToAdd=o[0],o.forEach(function(e){return t.requiredParents[e]=!0})),this.implicitNamespacePrefix=s,this.contentType=l,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}();t.HtmlTagDefinition=i;var o={base:new i({isVoid:!0}),meta:new i({isVoid:!0}),area:new i({isVoid:!0}),embed:new i({isVoid:!0}),link:new i({isVoid:!0}),img:new i({isVoid:!0}),input:new i({isVoid:!0}),param:new i({isVoid:!0}),hr:new i({isVoid:!0}),br:new i({isVoid:!0}),source:new i({isVoid:!0}),track:new i({isVoid:!0}),wbr:new i({isVoid:!0}),p:new i({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 i({closedByChildren:["tbody","tfoot"]}),tbody:new i({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new i({closedByChildren:["tbody"],closedByParent:!0}),tr:new i({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new i({closedByChildren:["td","th"],closedByParent:!0}),th:new i({closedByChildren:["td","th"],closedByParent:!0}),col:new i({requiredParents:["colgroup"],isVoid:!0}),svg:new i({implicitNamespacePrefix:"svg"}),math:new i({implicitNamespacePrefix:"math"}),li:new i({closedByChildren:["li"],closedByParent:!0}),dt:new i({closedByChildren:["dt","dd"]}),dd:new i({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new i({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new i({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new i({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new i({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new i({closedByChildren:["optgroup"],closedByParent:!0}),option:new i({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new i({ignoreFirstLf:!0}),listing:new i({ignoreFirstLf:!0}),style:new i({contentType:r.TagContentType.RAW_TEXT}),script:new i({contentType:r.TagContentType.RAW_TEXT}),title:new i({contentType:r.TagContentType.ESCAPABLE_RAW_TEXT}),textarea:new i({contentType:r.TagContentType.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},s=new i;t.getHtmlTagDefinition=getHtmlTagDefinition},function(e,t,n){"use strict";function debugOutputAstAsTypeScript(e){var t,n=new u(l),r=s.EmitterVisitorContext.createRoot([]);return t=o.isArray(e)?e:[e],t.forEach(function(e){if(e instanceof a.Statement)e.visitStatement(n,r);else if(e instanceof a.Expression)e.visitExpression(n,r);else{if(!(e instanceof a.Type))throw new i.BaseException("Don't know how to print debug info for "+e);e.visitType(n,r)}}),r.toSource()}var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(18),o=n(5),s=n(240),a=n(17),l="asset://debug/lib";t.debugOutputAstAsTypeScript=debugOutputAstAsTypeScript;var c=function(){function TypeScriptEmitter(e){this._importGenerator=e}return TypeScriptEmitter.prototype.emitStatements=function(e,t,n){var r=this,i=new u(e),o=s.EmitterVisitorContext.createRoot(n);i.visitAllStatements(t,o);var a=[];return i.importsWithPrefixes.forEach(function(t,n){a.push("imp"+("ort * as "+t+" from '"+r._importGenerator.getImportPath(e,n)+"';"))}),a.push(o.toSource()),a.join("\n")},TypeScriptEmitter}();t.TypeScriptEmitter=c;var u=function(e){function _TsEmitterVisitor(t){e.call(this,!1),this._moduleUrl=t,this.importsWithPrefixes=new Map}return r(_TsEmitterVisitor,e),_TsEmitterVisitor.prototype.visitType=function(e,t,n){void 0===n&&(n="any"),o.isPresent(e)?e.visitType(this,t):t.print(n)},_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(a.StmtModifier.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 n=this;return t.pushClass(e),t.isExportedVar(e.name)&&t.print("export "),t.print("class "+e.name),o.isPresent(e.parent)&&(t.print(" extends "),e.parent.visitExpression(this,t)),t.println(" {"),t.incIndent(),e.fields.forEach(function(e){return n._visitClassField(e,t)}),o.isPresent(e.constructorMethod)&&this._visitClassConstructor(e,t),e.getters.forEach(function(e){return n._visitClassGetter(e,t)}),e.methods.forEach(function(e){return n._visitClassMethod(e,t)}),t.decIndent(),t.println("}"),t.popClass(),null},_TsEmitterVisitor.prototype._visitClassField=function(e,t){e.hasModifier(a.StmtModifier.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(a.StmtModifier.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(a.StmtModifier.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 ("+s.CATCH_ERROR_VAR.name+") {"),t.incIndent();var n=[s.CATCH_STACK_VAR.set(s.CATCH_ERROR_VAR.prop("stack")).toDeclStmt(null,[a.StmtModifier.Final])].concat(e.catchStmts);return this.visitAllStatements(n,t),t.decIndent(),t.println("}"),null},_TsEmitterVisitor.prototype.visitBuiltintType=function(e,t){var n;switch(e.name){case a.BuiltinTypeName.Bool:n="boolean";break;case a.BuiltinTypeName.Dynamic:n="any";break;case a.BuiltinTypeName.Function:n="Function";break;case a.BuiltinTypeName.Number:n="number";break;case a.BuiltinTypeName.Int:n="number";break;case a.BuiltinTypeName.String:n="string";break;default:throw new i.BaseException("Unsupported builtin type "+e.name)}return t.print(n),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 a.BuiltinMethod.ConcatArray:t="concat";break;case a.BuiltinMethod.SubscribeObservable:t="subscribe";break;case a.BuiltinMethod.bind:t="bind";break;default:throw new i.BaseException("Unknown builtin method: "+e)}return t},_TsEmitterVisitor.prototype._visitParams=function(e,t){var n=this;this.visitAllObjects(function(e){t.print(e.name),t.print(":"),n.visitType(e.type,t)},e,t,",")},_TsEmitterVisitor.prototype._visitIdentifier=function(e,t,n){var r=this;if(o.isBlank(e.name))throw new i.BaseException("Internal error: unknown identifier "+e);if(o.isPresent(e.moduleUrl)&&e.moduleUrl!=this._moduleUrl){var s=this.importsWithPrefixes.get(e.moduleUrl);o.isBlank(s)&&(s="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(e.moduleUrl,s)),n.print(s+".")}n.print(e.name),o.isPresent(t)&&t.length>0&&(n.print("<"),this.visitAllObjects(function(e){return e.visitType(r,n)},t,n,","),n.print(">"))},_TsEmitterVisitor}(s.AbstractEmitterVisitor)},function(e,t,n){"use strict";function convertValueToOutputAst(e,t){return void 0===t&&(t=null),s.visitValue(e,new l,t)}var r=n(31),i=n(10),o=n(18),s=n(36),a=n(17);t.convertValueToOutputAst=convertValueToOutputAst;var l=function(){function _ValueOutputAstTransformer(){}return _ValueOutputAstTransformer.prototype.visitArray=function(e,t){var n=this;return a.literalArr(e.map(function(e){return s.visitValue(e,n,null)}),t)},_ValueOutputAstTransformer.prototype.visitStringMap=function(e,t){var n=this,r=[];return i.StringMapWrapper.forEach(e,function(e,t){r.push([t,s.visitValue(e,n,null)])}),a.literalMap(r,t)},_ValueOutputAstTransformer.prototype.visitPrimitive=function(e,t){return a.literal(e,t)},_ValueOutputAstTransformer.prototype.visitOther=function(e,t){if(e instanceof r.CompileIdentifierMetadata)return a.importExpr(e);if(e instanceof a.Expression)return e;throw new o.BaseException("Illegal state: Don't now how to compile value "+e)},_ValueOutputAstTransformer}()},function(e,t,n){"use strict";function _transformProvider(e,t){var n=t.useExisting,r=t.useValue,o=t.deps;return new i.CompileProviderMetadata({token:e.token,useClass:e.useClass,useExisting:n,useFactory:e.useFactory,useValue:r,deps:o,multi:e.multi})}function _transformProviderAst(e,t){var n=t.eager,r=t.providers;return new u.ProviderAst(e.token,e.multiProvider,e.eager||n,r,e.providerType,e.lifecycleHooks,e.sourceSpan)}function _normalizeProviders(e,t,n,r){return void 0===r&&(r=null),a.isBlank(r)&&(r=[]),a.isPresent(e)&&e.forEach(function(e){if(a.isArray(e))_normalizeProviders(e,t,n,r);else{var o=void 0;e instanceof i.CompileProviderMetadata?o=e:e instanceof i.CompileTypeMetadata?o=new i.CompileProviderMetadata({token:new i.CompileTokenMetadata({identifier:e}),useClass:e}):n.push(new p("Unknown provider type "+e,t)),a.isPresent(o)&&r.push(o)}}),r}function _resolveProvidersFromDirectives(e,t,n){var r=new i.CompileIdentifierMap;e.forEach(function(e){var o=new i.CompileProviderMetadata({token:new i.CompileTokenMetadata({identifier:e.type}),useClass:e.type});_resolveProviders([o],e.isComponent?u.ProviderAstType.Component:u.ProviderAstType.Directive,!0,t,n,r)});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,t,n),u.ProviderAstType.PublicService,!1,t,n,r),_resolveProviders(_normalizeProviders(e.viewProviders,t,n),u.ProviderAstType.PrivateService,!1,t,n,r)}),r}function _resolveProviders(e,t,n,r,s,l){e.forEach(function(e){var c=l.get(e.token);if(a.isPresent(c)&&c.multiProvider!==e.multi&&s.push(new p("Mixing multi and non multi provider is not possible for token "+c.token.name,r)),a.isBlank(c)){var d=e.token.identifier&&e.token.identifier instanceof i.CompileTypeMetadata?e.token.identifier.lifecycleHooks:[];c=new u.ProviderAst(e.token,e.multi,n||d.length>0,[e],t,d,r),l.add(e.token,c)}else e.multi||o.ListWrapper.clear(c.providers),c.providers.push(e)})}function _getViewQueries(e){var t=new i.CompileIdentifierMap;return a.isPresent(e.viewQueries)&&e.viewQueries.forEach(function(e){return _addQueryToTokenMap(t,e)}),e.type.diDeps.forEach(function(e){a.isPresent(e.viewQuery)&&_addQueryToTokenMap(t,e.viewQuery)}),t}function _getContentQueries(e){var t=new i.CompileIdentifierMap;return e.forEach(function(e){a.isPresent(e.queries)&&e.queries.forEach(function(e){return _addQueryToTokenMap(t,e)}),e.type.diDeps.forEach(function(e){a.isPresent(e.query)&&_addQueryToTokenMap(t,e.query)})}),t}function _addQueryToTokenMap(e,t){t.selectors.forEach(function(n){var r=e.get(n);a.isBlank(r)&&(r=[],e.add(n,r)),r.push(t)})}var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(31),o=n(10),s=n(18),a=n(5),l=n(28),c=n(60),u=n(61),p=function(e){function ProviderError(t,n){e.call(this,n,t)}return r(ProviderError,e),ProviderError}(c.ParseError);t.ProviderError=p;var d=function(){function ProviderViewContext(e,t){var n=this;this.component=e,this.sourceSpan=t,this.errors=[],this.viewQueries=_getViewQueries(e),this.viewProviders=new i.CompileIdentifierMap,_normalizeProviders(e.viewProviders,t,this.errors).forEach(function(e){a.isBlank(n.viewProviders.get(e.token))&&n.viewProviders.add(e.token,!0)})}return ProviderViewContext}();t.ProviderViewContext=d;var h=function(){function ProviderElementContext(e,t,n,r,o,s,c){var u=this;this._viewContext=e,this._parent=t,this._isViewRoot=n,this._directiveAsts=r,this._sourceSpan=c,this._transformedProviders=new i.CompileIdentifierMap,this._seenProviders=new i.CompileIdentifierMap,this._hasViewContainer=!1,this._attrs={},o.forEach(function(e){return u._attrs[e.name]=e.value});var p=r.map(function(e){return e.directive});this._allProviders=_resolveProvidersFromDirectives(p,c,e.errors),this._contentQueries=_getContentQueries(p);var d=new i.CompileIdentifierMap;this._allProviders.values().forEach(function(e){u._addQueryReadsTo(e.token,d)}),s.forEach(function(e){u._addQueryReadsTo(new i.CompileTokenMetadata({value:e.name}),d)}),a.isPresent(d.get(l.identifierToken(l.Identifiers.ViewContainerRef)))&&(this._hasViewContainer=!0),this._allProviders.values().forEach(function(e){var t=e.eager||a.isPresent(d.get(e.token));t&&u._getOrCreateLocalProvider(e.providerType,e.token,!0)})}return ProviderElementContext.prototype.afterElement=function(){var e=this;this._allProviders.values().forEach(function(t){e._getOrCreateLocalProvider(t.providerType,t.token,!1)})},Object.defineProperty(ProviderElementContext.prototype,"transformProviders",{get:function(){return this._transformedProviders.values()},enumerable:!0,configurable:!0}),Object.defineProperty(ProviderElementContext.prototype,"transformedDirectiveAsts",{get:function(){var e=this._transformedProviders.values().map(function(e){return e.token.identifier}),t=o.ListWrapper.clone(this._directiveAsts);return o.ListWrapper.sort(t,function(t,n){return e.indexOf(t.directive.type)-e.indexOf(n.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(n){var r=a.isPresent(n.read)?n.read:e;a.isBlank(t.get(r))&&t.add(r,!0)})},ProviderElementContext.prototype._getQueriesFor=function(e){for(var t,n=[],r=this,i=0;null!==r;)t=r._contentQueries.get(e),a.isPresent(t)&&o.ListWrapper.addAll(n,t.filter(function(e){return e.descendants||i<=1})),r._directiveAsts.length>0&&i++,r=r._parent;return t=this._viewContext.viewQueries.get(e),a.isPresent(t)&&o.ListWrapper.addAll(n,t),n},ProviderElementContext.prototype._getOrCreateLocalProvider=function(e,t,n){var r=this,o=this._allProviders.get(t);if(a.isBlank(o)||(e===u.ProviderAstType.Directive||e===u.ProviderAstType.PublicService)&&o.providerType===u.ProviderAstType.PrivateService||(e===u.ProviderAstType.PrivateService||e===u.ProviderAstType.PublicService)&&o.providerType===u.ProviderAstType.Builtin)return null;var s=this._transformedProviders.get(t);if(a.isPresent(s))return s;if(a.isPresent(this._seenProviders.get(t)))return this._viewContext.errors.push(new p("Cannot instantiate cyclic dependency! "+t.name,this._sourceSpan)),null;this._seenProviders.add(t,!0);var l=o.providers.map(function(e){var t,s=e.useValue,l=e.useExisting;if(a.isPresent(e.useExisting)){var c=r._getDependency(o.providerType,new i.CompileDiDependencyMetadata({token:e.useExisting}),n);a.isPresent(c.token)?l=c.token:(l=null,s=c.value)}else if(a.isPresent(e.useFactory)){var u=a.isPresent(e.deps)?e.deps:e.useFactory.diDeps;t=u.map(function(e){return r._getDependency(o.providerType,e,n)})}else if(a.isPresent(e.useClass)){var u=a.isPresent(e.deps)?e.deps:e.useClass.diDeps;t=u.map(function(e){return r._getDependency(o.providerType,e,n)})}return _transformProvider(e,{useExisting:l,useValue:s,deps:t})});return s=_transformProviderAst(o,{eager:n,providers:l}),this._transformedProviders.add(t,s),s},ProviderElementContext.prototype._getLocalDependency=function(e,t,n){if(void 0===n&&(n=null),t.isAttribute){var r=this._attrs[t.token.value];return new i.CompileDiDependencyMetadata({isValue:!0,value:a.normalizeBlank(r)})}if(a.isPresent(t.query)||a.isPresent(t.viewQuery))return t;if(a.isPresent(t.token)){if(e===u.ProviderAstType.Directive||e===u.ProviderAstType.Component){if(t.token.equalsTo(l.identifierToken(l.Identifiers.Renderer))||t.token.equalsTo(l.identifierToken(l.Identifiers.ElementRef))||t.token.equalsTo(l.identifierToken(l.Identifiers.ChangeDetectorRef))||t.token.equalsTo(l.identifierToken(l.Identifiers.TemplateRef)))return t;t.token.equalsTo(l.identifierToken(l.Identifiers.ViewContainerRef))&&(this._hasViewContainer=!0)}if(t.token.equalsTo(l.identifierToken(l.Identifiers.Injector)))return t;if(a.isPresent(this._getOrCreateLocalProvider(e,t.token,n)))return t}return null},ProviderElementContext.prototype._getDependency=function(e,t,n){void 0===n&&(n=null);var r=this,o=n,s=null;if(t.isSkipSelf||(s=this._getLocalDependency(e,t,n)),t.isSelf)a.isBlank(s)&&t.isOptional&&(s=new i.CompileDiDependencyMetadata({isValue:!0,value:null}));else{for(;a.isBlank(s)&&a.isPresent(r._parent);){var c=r;r=r._parent,c._isViewRoot&&(o=!1),s=r._getLocalDependency(u.ProviderAstType.PublicService,t,o)}a.isBlank(s)&&(s=!t.isHost||this._viewContext.component.type.isHost||l.identifierToken(this._viewContext.component.type).equalsTo(t.token)||a.isPresent(this._viewContext.viewProviders.get(t.token))?t:t.isOptional?s=new i.CompileDiDependencyMetadata({isValue:!0,value:null}):null)}return a.isBlank(s)&&this._viewContext.errors.push(new p("No provider for "+t.token.name,this._sourceSpan)),s},ProviderElementContext}();t.ProviderElementContext=h;var f=function(){function NgModuleProviderAnalyzer(e,t,n){var r=this;this._transformedProviders=new i.CompileIdentifierMap,this._seenProviders=new i.CompileIdentifierMap,this._unparsedProviders=[],this._errors=[],this._allProviders=new i.CompileIdentifierMap;var o=e.transitiveModule.modules.map(function(e){return e.type});o.forEach(function(e){var t=new i.CompileProviderMetadata({token:new i.CompileTokenMetadata({identifier:e}),useClass:e});_resolveProviders([t],u.ProviderAstType.PublicService,!0,n,r._errors,r._allProviders)}),_resolveProviders(_normalizeProviders(e.transitiveModule.providers.concat(t),n,this._errors),u.ProviderAstType.PublicService,!1,n,this._errors,this._allProviders)}return NgModuleProviderAnalyzer.prototype.parse=function(){var e=this;if(this._allProviders.values().forEach(function(t){e._getOrCreateLocalProvider(t.token,t.eager)}),this._errors.length>0){var t=this._errors.join("\n");throw new s.BaseException("Provider parse errors:\n"+t)}return this._transformedProviders.values()},NgModuleProviderAnalyzer.prototype._getOrCreateLocalProvider=function(e,t){var n=this,r=this._allProviders.get(e);if(a.isBlank(r))return null;var o=this._transformedProviders.get(e);if(a.isPresent(o))return o;if(a.isPresent(this._seenProviders.get(e)))return this._errors.push(new p("Cannot instantiate cyclic dependency! "+e.name,r.sourceSpan)),null;this._seenProviders.add(e,!0);var s=r.providers.map(function(e){var o,s=e.useValue,l=e.useExisting;if(a.isPresent(e.useExisting)){var c=n._getDependency(new i.CompileDiDependencyMetadata({token:e.useExisting}),t,r.sourceSpan);a.isPresent(c.token)?l=c.token:(l=null,s=c.value)}else if(a.isPresent(e.useFactory)){var u=a.isPresent(e.deps)?e.deps:e.useFactory.diDeps;o=u.map(function(e){return n._getDependency(e,t,r.sourceSpan)})}else if(a.isPresent(e.useClass)){var u=a.isPresent(e.deps)?e.deps:e.useClass.diDeps;o=u.map(function(e){return n._getDependency(e,t,r.sourceSpan)})}return _transformProvider(e,{useExisting:l,useValue:s,deps:o})});return o=_transformProviderAst(r,{eager:t,providers:s}),this._transformedProviders.add(e,o),o},NgModuleProviderAnalyzer.prototype._getDependency=function(e,t,n){void 0===t&&(t=null);var r=!1;!e.isSkipSelf&&a.isPresent(e.token)&&(e.token.equalsTo(l.identifierToken(l.Identifiers.Injector))||e.token.equalsTo(l.identifierToken(l.Identifiers.ComponentFactoryResolver))?r=!0:a.isPresent(this._getOrCreateLocalProvider(e.token,t))&&(r=!0));var o=e;return e.isSelf&&!r&&(e.isOptional?o=new i.CompileDiDependencyMetadata({isValue:!0,value:null}):this._errors.push(new p("No provider for "+e.token.name,n))),o},NgModuleProviderAnalyzer}();t.NgModuleProviderAnalyzer=f},function(e,t,n){"use strict";function assertComponent(e){if(!e.isComponent)throw new l.BaseException("Could not compile '"+e.type.name+"' because it is not a component.")}var r=n(0),i=n(27),o=n(31),s=n(101),a=n(234),l=n(18),c=n(5),u=n(237),p=n(238),d=n(17),h=n(551),f=n(552),m=n(243),y=n(155),v=n(36),g=n(156),b=function(){function RuntimeCompiler(e,t,n,r,i,o,s,a,l){this._injector=e,this._metadataResolver=t,this._templateNormalizer=n,this._templateParser=r,this._styleCompiler=i,this._viewCompiler=o,this._ngModuleCompiler=s,this._compilerConfig=a,this._console=l,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.compileComponentAsync=function(e,t){if(void 0===t&&(t=null),!t)throw new l.BaseException("Calling compileComponentAsync on the root compiler without a module is not allowed! (Compiling component "+c.stringify(e)+")");return this._compileComponentInModule(e,!1,t).asyncResult},RuntimeCompiler.prototype.compileComponentSync=function(e,t){if(void 0===t&&(t=null),!t)throw new l.BaseException("Calling compileComponentSync on the root compiler without a module is not allowed! (Compiling component "+c.stringify(e)+")");return this._compileComponentInModule(e,!0,t).syncResult},RuntimeCompiler.prototype._compileModuleAndComponents=function(e,t){var n=this._compileComponents(e,t),r=this._compileModule(e);return new v.SyncAsyncResult(r,n.then(function(){return r}))},RuntimeCompiler.prototype._compileModuleAndAllComponents=function(e,t){var n=this,i=this._compileComponents(e,t),o=this._compileModule(e),s=this._metadataResolver.getNgModuleMetadata(e),a=[],l=new Set;s.transitiveModule.modules.forEach(function(e){e.declaredDirectives.forEach(function(e){if(e.isComponent){var t=n._createCompiledHostTemplate(e.type.runtime);l.add(t),a.push(t.proxyComponentFactory)}})});var c=new r.ModuleWithComponentFactories(o,a),u=function(){return l.forEach(function(e){n._compileTemplate(e)}),c},p=t?Promise.resolve(u()):i.then(u);return new v.SyncAsyncResult(c,p)},RuntimeCompiler.prototype._compileModule=function(e){var t=this,n=this._compiledNgModuleCache.get(e);if(!n){var i=this._metadataResolver.getNgModuleMetadata(e),o=(i.transitiveModule,function(e){return new S(t,i.type.runtime,e,t._console)}),s=[this._metadataResolver.getProviderMetadata(new r.Provider(r.Compiler,{useFactory:o,deps:[[new r.OptionalMetadata,new r.SkipSelfMetadata,r.ComponentResolver]]})),this._metadataResolver.getProviderMetadata(new r.Provider(r.ComponentResolver,{useExisting:r.Compiler}))],a=this._ngModuleCompiler.compile(i,s);a.dependencies.forEach(function(e){e.placeholder.runtime=t._assertComponentKnown(e.comp.runtime,!0).proxyComponentFactory,e.placeholder.name="compFactory_"+e.comp.name}),n=this._compilerConfig.useJit?f.jitStatements(i.type.name+".ngfactory.js",a.statements,a.ngModuleFactoryVar):h.interpretStatements(a.statements,a.ngModuleFactoryVar),this._compiledNgModuleCache.set(i.type.runtime,n)}return n},RuntimeCompiler.prototype._compileComponentInModule=function(e,t,n){this._metadataResolver.addComponentToModule(n,e);var r=this._compileComponents(n,t),i=this._assertComponentKnown(e,!0).proxyComponentFactory;return new v.SyncAsyncResult(i,r.then(function(){return i}))},RuntimeCompiler.prototype._compileComponents=function(e,t){var n=this,i=new Set,o=[],s=this._metadataResolver.getNgModuleMetadata(e);s.transitiveModule.modules.forEach(function(e){e.declaredDirectives.forEach(function(t){t.isComponent&&(i.add(n._createCompiledTemplate(t,e)),t.entryComponents.forEach(function(e){i.add(n._createCompiledHostTemplate(e.runtime))}))}),e.entryComponents.forEach(function(e){i.add(n._createCompiledHostTemplate(e.runtime))})}),i.forEach(function(e){if(e.loading){if(t)throw new r.ComponentStillLoadingError(e.compType.runtime);o.push(e.loading)}});var a=function(){i.forEach(function(e){n._compileTemplate(e)})};return t?(a(),Promise.resolve(null)):Promise.all(o).then(a)},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(c.isBlank(t)){var n=this._metadataResolver.getDirectiveMetadata(e);assertComponent(n);var r=o.createHostComponentMeta(n);t=new _((!0),n.selector,n.type,[n],[],[],this._templateNormalizer.normalizeDirective(r)),this._compiledHostTemplateCache.set(e,t)}return t},RuntimeCompiler.prototype._createCompiledTemplate=function(e,t){var n=this._compiledTemplateCache.get(e.type.runtime);return c.isBlank(n)&&(assertComponent(e),n=new _((!1),e.selector,e.type,t.transitiveModule.directives,t.transitiveModule.pipes,t.schemas,this._templateNormalizer.normalizeDirective(e)),this._compiledTemplateCache.set(e.type.runtime,n)),n},RuntimeCompiler.prototype._assertComponentKnown=function(e,t){var n=t?this._compiledHostTemplateCache.get(e):this._compiledTemplateCache.get(e);if(!n)throw new l.BaseException("Illegal state: CompiledTemplate for "+c.stringify(e)+" (isHost: "+t+") does not exist!");return n},RuntimeCompiler.prototype._assertComponentLoaded=function(e,t){var n=this._assertComponentKnown(e,t);if(n.loading)throw new l.BaseException("Illegal state: CompiledTemplate for "+c.stringify(e)+" (isHost: "+t+") is still loading!");return n},RuntimeCompiler.prototype._compileTemplate=function(e){var t=this;if(!e.isCompiled){var n=e.normalizedCompMeta,r=new Map,i=this._styleCompiler.compileComponent(n);i.externalStylesheets.forEach(function(e){r.set(e.meta.moduleUrl,e)}),this._resolveStylesCompileResult(i.componentStylesheet,r);var o=e.viewComponentTypes.map(function(e){return t._assertComponentLoaded(e,!1).normalizedCompMeta}),s=this._templateParser.parse(n,n.template.template,e.viewDirectives.concat(o),e.viewPipes,e.schemas,n.type.name),a=this._viewCompiler.compileComponent(n,s,d.variable(i.componentStylesheet.stylesVar),e.viewPipes);a.dependencies.forEach(function(e){var n;if(e instanceof g.ViewFactoryDependency){var r=e;n=t._assertComponentLoaded(r.comp.runtime,!1),r.placeholder.runtime=n.proxyViewFactory,r.placeholder.name="viewFactory_"+r.comp.name}else if(e instanceof g.ComponentFactoryDependency){var i=e;n=t._assertComponentLoaded(i.comp.runtime,!0),i.placeholder.runtime=n.proxyComponentFactory,i.placeholder.name="compFactory_"+i.comp.name}});var l,c=i.componentStylesheet.statements.concat(a.statements);l=this._compilerConfig.useJit?f.jitStatements(e.compType.name+".ngfactory.js",c,a.viewFactoryVar):h.interpretStatements(c,a.viewFactoryVar),e.compiled(l)}},RuntimeCompiler.prototype._resolveStylesCompileResult=function(e,t){var n=this;e.dependencies.forEach(function(e,r){var i=t.get(e.moduleUrl),o=n._resolveAndEvalStylesCompileResult(i,t);e.valuePlaceholder.runtime=o,e.valuePlaceholder.name="importedStyles"+r})},RuntimeCompiler.prototype._resolveAndEvalStylesCompileResult=function(e,t){return this._resolveStylesCompileResult(e,t),this._compilerConfig.useJit?f.jitStatements(e.meta.moduleUrl+".css.js",e.statements,e.stylesVar):h.interpretStatements(e.statements,e.stylesVar)},RuntimeCompiler.decorators=[{type:r.Injectable}],RuntimeCompiler.ctorParameters=[{type:r.Injector},{type:u.CompileMetadataResolver},{type:a.DirectiveNormalizer},{type:y.TemplateParser},{type:m.StyleCompiler},{type:g.ViewCompiler},{type:p.NgModuleCompiler},{type:s.CompilerConfig},{type:i.Console}],RuntimeCompiler}();t.RuntimeCompiler=b;var _=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.runtime):u.viewDirectives.push(e)}),this.proxyViewFactory=function(){for(var e=[],t=0;t0&&(g=e.value)}),t=normalizeNgContentSelect(t);var b=e.name.toLowerCase(),_=f.OTHER;return r.splitNsName(b)[1]==o?_=f.NG_CONTENT:b==u?_=f.STYLE:b==p?_=f.SCRIPT:b==s&&y==c&&(_=f.STYLESHEET),new m(_,t,n,v,g)}function normalizeNgContentSelect(e){return null===e||0===e.length?"*":e}var r=n(102),i="select",o="ng-content",s="link",a="rel",l="href",c="stylesheet",u="style",p="script",d="ngNonBindable",h="ngProjectAs";t.preparseElement=preparseElement,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"}(t.PreparsedElementType||(t.PreparsedElementType={}));var f=t.PreparsedElementType,m=function(){function PreparsedElement(e,t,n,r,i){this.type=e,this.selectAttr=t,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i}return PreparsedElement}();t.PreparsedElement=m},function(e,t){"use strict";var n=function(){function CompileBinding(e,t){this.node=e,this.sourceAst=t}return CompileBinding}();t.CompileBinding=n},function(e,t,n){"use strict";function createInjectInternalCondition(e,t,n,r){var i;return i=t>0?l.literal(e).lowerEquals(f.InjectMethodVars.requestNodeIndex).and(f.InjectMethodVars.requestNodeIndex.lowerEquals(l.literal(e+t))):l.literal(e).identical(f.InjectMethodVars.requestNodeIndex),new l.IfStmt(f.InjectMethodVars.token.identical(p.createDiTokenExpression(n.token)).and(i),[new l.ReturnStatement(r)])}function createProviderProperty(e,t,n,r,i,o){var a,c,u=o.view;if(r?(a=l.literalArr(n),c=new l.ArrayType(l.DYNAMIC_TYPE)):(a=n[0],c=n[0].type),s.isBlank(c)&&(c=l.DYNAMIC_TYPE),i)u.fields.push(new l.ClassField(e,c)),u.createMethod.addStmt(l.THIS_EXPR.prop(e).set(a).toStmt());else{var p="_"+e;u.fields.push(new l.ClassField(p,c));var h=new d.CompileMethod(u);h.resetDebugInfo(o.nodeIndex,o.sourceAst),h.addStmt(new l.IfStmt(l.THIS_EXPR.prop(p).isBlank(),[l.THIS_EXPR.prop(p).set(a).toStmt()])),h.addStmt(new l.ReturnStatement(l.THIS_EXPR.prop(p))),u.getters.push(new l.ClassGetter(e,h.finish(),c))}return l.THIS_EXPR.prop(e)}var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(31),o=n(10),s=n(5),a=n(28),l=n(17),c=n(355),u=n(61),p=n(36),d=n(244),h=n(363),f=n(104),m=n(114),y=function(){function CompileNode(e,t,n,r,i){this.parent=e,this.view=t,this.nodeIndex=n,this.renderNode=r,this.sourceAst=i}return CompileNode.prototype.isNull=function(){return s.isBlank(this.renderNode)},CompileNode.prototype.isRootElement=function(){return this.view!=this.parent.view},CompileNode}();t.CompileNode=y;var v=function(e){function CompileElement(t,n,r,o,c,u,p,d,h,f,m){var y=this;e.call(this,t,n,r,o,c),this.component=u,this._directives=p,this._resolvedProvidersArray=d,this.hasViewContainer=h,this.hasEmbeddedView=f,this._compViewExpr=null,this.instances=new i.CompileIdentifierMap,this._queryCount=0,this._queries=new i.CompileIdentifierMap,this._componentConstructorViewQueryLists=[],this.contentNodesByNgContentIndex=null,this.referenceTokens={},m.forEach(function(e){return y.referenceTokens[e.name]=e.value}),this.elementRef=l.importExpr(a.Identifiers.ElementRef).instantiate([this.renderNode]),this.instances.add(a.identifierToken(a.Identifiers.ElementRef),this.elementRef),this.injector=l.THIS_EXPR.callMethod("injector",[l.literal(this.nodeIndex)]),this.instances.add(a.identifierToken(a.Identifiers.Injector),this.injector),this.instances.add(a.identifierToken(a.Identifiers.Renderer),l.THIS_EXPR.prop("renderer")),(this.hasViewContainer||this.hasEmbeddedView||s.isPresent(this.component))&&this._createAppElement()}return r(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 l.ClassField(e,l.importType(a.Identifiers.AppElement),[l.StmtModifier.Private]));var n=l.THIS_EXPR.prop(e).set(l.importExpr(a.Identifiers.AppElement).instantiate([l.literal(this.nodeIndex),l.literal(t),l.THIS_EXPR,this.renderNode])).toStmt();this.view.createMethod.addStmt(n),this.appElement=l.THIS_EXPR.prop(e),this.instances.add(a.identifierToken(a.Identifiers.AppElement),this.appElement)},CompileElement.prototype.createComponentFactoryResolver=function(e){if(e&&0!==e.length){var t=l.importExpr(a.Identifiers.CodegenComponentFactoryResolver).instantiate([l.literalArr(e.map(function(e){return l.importExpr(e)})),m.injectFromViewParentInjector(a.identifierToken(a.Identifiers.ComponentFactoryResolver),!1)]),n=new i.CompileProviderMetadata({token:a.identifierToken(a.Identifiers.ComponentFactoryResolver),useValue:t});this._resolvedProvidersArray.unshift(new u.ProviderAst(n.token,(!1),(!0),[n],u.ProviderAstType.PrivateService,[],this.sourceAst.sourceSpan))}},CompileElement.prototype.setComponentView=function(e){this._compViewExpr=e,this.contentNodesByNgContentIndex=o.ListWrapper.createFixedSize(this.component.template.ngContentSelectors.length);for(var t=0;t0&&i++,r=r.parent;return t=this.view.componentView.viewQueries.get(e),s.isPresent(t)&&o.ListWrapper.addAll(n,t),n},CompileElement.prototype._addQuery=function(e,t){var n="_query_"+e.selectors[0].name+"_"+this.nodeIndex+"_"+this._queryCount++,r=h.createQueryList(e,t,n,this.view),i=new h.CompileQuery(e,r,t,this.view);return h.addQueryToTokenMap(this._queries,i),i},CompileElement.prototype._getLocalDependency=function(e,t){var n=null;if(s.isBlank(n)&&s.isPresent(t.query)&&(n=this._addQuery(t.query,null).queryList),s.isBlank(n)&&s.isPresent(t.viewQuery)&&(n=h.createQueryList(t.viewQuery,null,"_viewQuery_"+t.viewQuery.selectors[0].name+"_"+this.nodeIndex+"_"+this._componentConstructorViewQueryLists.length,this.view),this._componentConstructorViewQueryLists.push(n)),s.isPresent(t.token)){if(s.isBlank(n)&&t.token.equalsTo(a.identifierToken(a.Identifiers.ChangeDetectorRef)))return e===u.ProviderAstType.Component?this._compViewExpr.prop("ref"):m.getPropertyInView(l.THIS_EXPR.prop("ref"),this.view,this.view.componentView);if(s.isBlank(n)){var r=this._resolvedProviders.get(t.token);if(r&&(e===u.ProviderAstType.Directive||e===u.ProviderAstType.PublicService)&&r.providerType===u.ProviderAstType.PrivateService)return null;n=this.instances.get(t.token)}}return n},CompileElement.prototype._getDependency=function(e,t){var n=this,r=null;for(t.isValue&&(r=l.literal(t.value)),s.isBlank(r)&&!t.isSkipSelf&&(r=this._getLocalDependency(e,t));s.isBlank(r)&&!n.parent.isNull();)n=n.parent,r=n._getLocalDependency(u.ProviderAstType.PublicService,new i.CompileDiDependencyMetadata({token:t.token}));return s.isBlank(r)&&(r=m.injectFromViewParentInjector(t.token,t.isOptional)),s.isBlank(r)&&(r=l.NULL_EXPR),m.getPropertyInView(r,this.view,n.view)},CompileElement}(y);t.CompileElement=v;var g=function(){function _QueryWithRead(e,t){this.query=e,this.read=s.isPresent(e.meta.read)?e.meta.read:t}return _QueryWithRead}()},function(e,t,n){"use strict";function createQueryValues(e){return r.ListWrapper.flatten(e.values.map(function(e){return e instanceof l?mapNestedViews(e.view.declarationElement.appElement,e.view,createQueryValues(e)):e}))}function mapNestedViews(e,t,n){var r=n.map(function(e){return s.replaceVarInExpression(s.THIS_EXPR.name,s.variable("nestedView"),e)});return e.callMethod("mapNestedViews",[s.variable(t.className),s.fn([new s.FnParam("nestedView",t.classType)],[new s.ReturnStatement(s.literalArr(r))],s.DYNAMIC_TYPE)])}function createQueryList(e,t,n,r){r.fields.push(new s.ClassField(n,s.importType(o.Identifiers.QueryList,[s.DYNAMIC_TYPE])));var i=s.THIS_EXPR.prop(n);return r.createMethod.addStmt(s.THIS_EXPR.prop(n).set(s.importExpr(o.Identifiers.QueryList,[s.DYNAMIC_TYPE]).instantiate([])).toStmt()),i}function addQueryToTokenMap(e,t){t.meta.selectors.forEach(function(n){var r=e.get(n);i.isBlank(r)&&(r=[],e.add(n,r)),r.push(t)})}var r=n(10),i=n(5),o=n(28),s=n(17),a=n(114),l=function(){function ViewQueryValues(e,t){this.view=e,this.values=t}return ViewQueryValues}(),c=function(){function CompileQuery(e,t,n,r){this.meta=e,this.queryList=t,this.ownerDirectiveExpression=n,this.view=r,this._values=new l(r,[])}return CompileQuery.prototype.addValue=function(e,t){for(var n=t,r=[];i.isPresent(n)&&n!==this.view;){var o=n.declarationElement;r.unshift(o),n=o.view}var s=a.getPropertyInView(this.queryList,t,this.view),c=this._values;r.forEach(function(e){var t=c.values.length>0?c.values[c.values.length-1]:null;if(t instanceof l&&t.view===e.embeddedView)c=t;else{var n=new l(e.embeddedView,[]);c.values.push(n),c=n}}),c.values.push(e),r.length>0&&t.dirtyParentQueriesMethod.addStmt(s.callMethod("setDirty",[]).toStmt())},CompileQuery.prototype._isStatic=function(){return!this._values.values.some(function(e){return e instanceof l})},CompileQuery.prototype.afterChildren=function(e,t){var n=createQueryValues(this._values),r=[this.queryList.callMethod("reset",[s.literalArr(n)]).toStmt()];if(i.isPresent(this.ownerDirectiveExpression)){var o=this.meta.first?this.queryList.prop("first"):this.queryList;r.push(this.ownerDirectiveExpression.prop(this.meta.propertyName).set(o).toStmt())}this.meta.first||r.push(this.queryList.callMethod("notifyOnChanges",[]).toStmt()),this.meta.first&&this._isStatic()?e.addStmts(r):t.addStmt(new s.IfStmt(this.queryList.prop("dirty"),r))},CompileQuery}();t.CompileQuery=c,t.createQueryList=createQueryList,t.addQueryToTokenMap=addQueryToTokenMap},function(e,t,n){"use strict";function getViewType(e,t){return t>0?r.ViewType.EMBEDDED:e.type.isHost?r.ViewType.HOST:r.ViewType.COMPONENT}var r=n(27),i=n(31),o=n(10),s=n(5),a=n(28),l=n(17),c=n(244),u=n(556),p=n(363),d=n(104),h=n(114),f=function(){function CompileView(e,t,n,a,u,d,f,m){var y=this;this.component=e,this.genConfig=t,this.pipeMetas=n,this.styles=a,this.animations=u,this.viewIndex=d,this.declarationElement=f,this.templateVariableBindings=m,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 c.CompileMethod(this),this.injectorGetMethod=new c.CompileMethod(this),this.updateContentQueriesMethod=new c.CompileMethod(this),this.dirtyParentQueriesMethod=new c.CompileMethod(this),this.updateViewQueriesMethod=new c.CompileMethod(this),this.detectChangesInInputsMethod=new c.CompileMethod(this),this.detectChangesRenderPropertiesMethod=new c.CompileMethod(this),this.afterContentLifecycleCallbacksMethod=new c.CompileMethod(this),this.afterViewLifecycleCallbacksMethod=new c.CompileMethod(this),this.destroyMethod=new c.CompileMethod(this),this.detachMethod=new c.CompileMethod(this),this.viewType=getViewType(e,d),this.className="_View_"+e.type.name+d,this.classType=l.importType(new i.CompileIdentifierMetadata({name:this.className})),this.viewFactory=l.variable(h.getViewFactoryName(e,d)),this.viewType===r.ViewType.COMPONENT||this.viewType===r.ViewType.HOST?this.componentView=this:this.componentView=this.declarationElement.view.componentView,this.componentContext=h.getPropertyInView(l.THIS_EXPR.prop("context"),this,this.componentView);var v=new i.CompileIdentifierMap;if(this.viewType===r.ViewType.COMPONENT){var g=l.THIS_EXPR.prop("context");o.ListWrapper.forEachWithIndex(this.component.viewQueries,function(e,t){var n="_viewQuery_"+e.selectors[0].name+"_"+t,r=p.createQueryList(e,g,n,y),i=new p.CompileQuery(e,r,g,y);p.addQueryToTokenMap(v,i)});var b=0;this.component.type.diDeps.forEach(function(e){if(s.isPresent(e.viewQuery)){var t=l.THIS_EXPR.prop("declarationAppElement").prop("componentConstructorViewQueries").key(l.literal(b++)),n=new p.CompileQuery(e.viewQuery,t,null,y);p.addQueryToTokenMap(v,n)}})}this.viewQueries=v,m.forEach(function(e){y.locals.set(e[1],l.THIS_EXPR.prop("context").prop(e[0]))}),this.declarationElement.isNull()||this.declarationElement.setEmbeddedView(this)}return CompileView.prototype.callPipe=function(e,t,n){return u.CompilePipe.call(this,e,[t].concat(n))},CompileView.prototype.getLocal=function(e){if(e==d.EventHandlerVars.event.name)return d.EventHandlerVars.event;for(var t=this,n=t.locals.get(e);s.isBlank(n)&&s.isPresent(t.declarationElement.view);)t=t.declarationElement.view,n=t.locals.get(e);return s.isPresent(n)?h.getPropertyInView(n,this,t):null},CompileView.prototype.createLiteralArray=function(e){if(0===e.length)return l.importExpr(a.Identifiers.EMPTY_ARRAY);for(var t=l.THIS_EXPR.prop("_arr_"+this.literalArrayCount++),n=[],r=[],i=0;i":n=a.BinaryOperator.Bigger;break;case"<=":n=a.BinaryOperator.LowerEquals;break;case">=":n=a.BinaryOperator.BiggerEquals;break;default:throw new i.BaseException("Unsupported operation "+e.operation)}return convertToStatementIfNeeded(t,new a.BinaryOperatorExpr(n,this.visit(e.left,c.Expression),this.visit(e.right,c.Expression)))},_AstToIrVisitor.prototype.visitChain=function(e,t){return ensureStatementMode(t,e),this.visitAll(e.expressions,t)},_AstToIrVisitor.prototype.visitConditional=function(e,t){var n=this.visit(e.condition,c.Expression);return convertToStatementIfNeeded(t,n.conditional(this.visit(e.trueExp,c.Expression),this.visit(e.falseExp,c.Expression)))},_AstToIrVisitor.prototype.visitPipe=function(e,t){var n=this.visit(e.exp,c.Expression),r=this.visitAll(e.args,c.Expression),i=this._nameResolver.callPipe(e.name,n,r);return this.needsValueUnwrapper=!0,convertToStatementIfNeeded(t,this._valueUnwrapper.callMethod("unwrap",[i]))},_AstToIrVisitor.prototype.visitFunctionCall=function(e,t){return convertToStatementIfNeeded(t,this.visit(e.target,c.Expression).callFn(this.visitAll(e.args,c.Expression)))},_AstToIrVisitor.prototype.visitImplicitReceiver=function(e,t){return ensureExpressionMode(t,e),this._implicitReceiver},_AstToIrVisitor.prototype.visitInterpolation=function(e,t){ensureExpressionMode(t,e);for(var n=[a.literal(e.expressions.length)],r=0;r0}));return l}function createViewFactory(e,t,n){var r,i=[new u.FnParam(m.ViewConstructorVars.viewUtils.name,u.importType(c.Identifiers.ViewUtils)),new u.FnParam(m.ViewConstructorVars.parentInjector.name,u.importType(c.Identifiers.Injector)),new u.FnParam(m.ViewConstructorVars.declarationEl.name,u.importType(c.Identifiers.AppElement))],o=[]; @@ -30,16 +30,16 @@ var e=this,t={},n=this._staticNodeInfo;if(i.isPresent(n)){var o=n.refTokens;r.St t.FormGroupDirective=I.FormGroupDirective;var A=n(120);t.FormArrayName=A.FormArrayName,t.FormGroupName=A.FormGroupName;var k=n(173);t.NgSelectOption=k.NgSelectOption,t.SelectControlValueAccessor=k.SelectControlValueAccessor;var O=n(174);t.NgSelectMultipleOption=O.NgSelectMultipleOption,t.SelectMultipleControlValueAccessor=O.SelectMultipleControlValueAccessor;var D=n(270);t.MaxLengthValidator=D.MaxLengthValidator,t.MinLengthValidator=D.MinLengthValidator,t.PatternValidator=D.PatternValidator,t.RequiredValidator=D.RequiredValidator,t.SHARED_FORM_DIRECTIVES=[y.NgSelectOption,v.NgSelectMultipleOption,o.DefaultValueAccessor,u.NumberValueAccessor,i.CheckboxControlValueAccessor,y.SelectControlValueAccessor,v.SelectMultipleControlValueAccessor,p.RadioControlValueAccessor,s.NgControlStatus,g.RequiredValidator,g.MinLengthValidator,g.MaxLengthValidator,g.PatternValidator],t.TEMPLATE_DRIVEN_DIRECTIVES=[l.NgModel,c.NgModelGroup,a.NgForm],t.REACTIVE_DRIVEN_DIRECTIVES=[d.FormControlDirective,f.FormGroupDirective,h.FormControlName,m.FormGroupName,m.FormArrayName],t.FORM_DIRECTIVES=[t.TEMPLATE_DRIVEN_DIRECTIVES,t.SHARED_FORM_DIRECTIVES],t.REACTIVE_FORM_DIRECTIVES=[t.REACTIVE_DRIVEN_DIRECTIVES,t.SHARED_FORM_DIRECTIVES];var N=function(){function InternalFormsSharedModule(){}return InternalFormsSharedModule.decorators=[{type:r.NgModule,args:[{declarations:t.SHARED_FORM_DIRECTIVES,exports:t.SHARED_FORM_DIRECTIVES}]}],InternalFormsSharedModule}();t.InternalFormsSharedModule=N},function(e,t){"use strict";t.FormErrorExamples={formControlName:'\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',formGroupName:'\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',formArrayName:'\n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',ngModelGroup:'\n
\n
\n \n
\n
',ngModelWithFormGroup:'\n
\n \n \n
\n '}},function(e,t,n){"use strict";var r=n(88),i=n(397),o=function(){function TemplateDrivenErrors(){}return TemplateDrivenErrors.modelParentException=function(){throw new r.BaseException('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+i.FormErrorExamples.formControlName+"\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n "+i.FormErrorExamples.ngModelWithFormGroup)},TemplateDrivenErrors.formGroupNameException=function(){throw new r.BaseException("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+i.FormErrorExamples.formGroupName+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+i.FormErrorExamples.ngModelGroup)},TemplateDrivenErrors.missingNameException=function(){throw new r.BaseException('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},TemplateDrivenErrors.modelGroupParentException=function(){throw new r.BaseException("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+i.FormErrorExamples.formGroupName+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+i.FormErrorExamples.ngModelGroup)},TemplateDrivenErrors}();t.TemplateDrivenErrors=o},329,[1105,399,47,32],function(e,t,n){"use strict";var r=n(0),i=n(47),o=n(32),s=n(175),a=function(){function FormBuilder(){}return FormBuilder.prototype.group=function(e,t){void 0===t&&(t=null);var n=this._reduceControls(e),r=o.isPresent(t)?i.StringMapWrapper.get(t,"optionals"):null,a=o.isPresent(t)?i.StringMapWrapper.get(t,"validator"):null,l=o.isPresent(t)?i.StringMapWrapper.get(t,"asyncValidator"):null;return new s.FormGroup(n,r,a,l)},FormBuilder.prototype.control=function(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),new s.FormControl(e,t,n)},FormBuilder.prototype.array=function(e,t,n){var r=this;void 0===t&&(t=null),void 0===n&&(n=null);var i=e.map(function(e){return r._createControl(e)});return new s.FormArray(i,t,n)},FormBuilder.prototype._reduceControls=function(e){var t=this,n={};return i.StringMapWrapper.forEach(e,function(e,r){n[r]=t._createControl(e)}),n},FormBuilder.prototype._createControl=function(e){if(e instanceof s.FormControl||e instanceof s.FormGroup||e instanceof s.FormArray)return e;if(o.isArray(e)){var t=e[0],n=e.length>1?e[1]:null,r=e.length>2?e[2]:null;return this.control(t,n,r)}return this.control(e)},FormBuilder.decorators=[{type:r.Injectable}],FormBuilder}();t.FormBuilder=a},function(e,t,n){"use strict";function _getJsonpConnections(){return null===s&&(s=i.global[t.JSONP_HOME]={}),s}var r=n(0),i=n(37),o=0;t.JSONP_HOME="__ng_jsonp__";var s=null,a=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"+o++},BrowserJsonp.prototype.requestCallback=function(e){return t.JSONP_HOME+"."+e+".finished"},BrowserJsonp.prototype.exposeConnection=function(e,t){var n=_getJsonpConnections();n[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}();t.BrowserJsonp=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(0),o=n(1),s=n(176),a=n(71),l=n(177),c=n(37),u=n(122),p=n(274),d=n(402),h="JSONP injected script did not invoke callback.",f="JSONP requests must use GET request method.",m=function(){function JSONPConnection(){}return JSONPConnection}();t.JSONPConnection=m;var y=function(e){function JSONPConnection_(t,n,r){var i=this;if(e.call(this),this._dom=n,this.baseResponseOptions=r,this._finished=!1,t.method!==a.RequestMethod.Get)throw l.makeTypeError(f);this.request=t,this.response=new o.Observable(function(e){i.readyState=a.ReadyState.Loading;var o=i._id=n.nextRequestID();n.exposeConnection(o,i);var l=n.requestCallback(i._id),u=t.url;u.indexOf("=JSONP_CALLBACK&")>-1?u=c.StringWrapper.replace(u,"=JSONP_CALLBACK&","="+l+"&"):u.lastIndexOf("=JSONP_CALLBACK")===u.length-"=JSONP_CALLBACK".length&&(u=u.substring(0,u.length-"=JSONP_CALLBACK".length)+("="+l));var d=i._script=n.build(u),f=function(t){if(i.readyState!==a.ReadyState.Cancelled){if(i.readyState=a.ReadyState.Done,n.cleanup(d),!i._finished){var o=new s.ResponseOptions({body:h,type:a.ResponseType.Error,url:u});return c.isPresent(r)&&(o=r.merge(o)),void e.error(new p.Response(o))}var l=new s.ResponseOptions({body:i._responseData,url:u});c.isPresent(i.baseResponseOptions)&&(l=i.baseResponseOptions.merge(l)),e.next(new p.Response(l)),e.complete()}},m=function(t){if(i.readyState!==a.ReadyState.Cancelled){i.readyState=a.ReadyState.Done,n.cleanup(d);var o=new s.ResponseOptions({body:t.message,type:a.ResponseType.Error});c.isPresent(r)&&(o=r.merge(o)),e.error(new p.Response(o))}};return d.addEventListener("load",f),d.addEventListener("error",m),n.send(d),function(){i.readyState=a.ReadyState.Cancelled,d.removeEventListener("load",f),d.removeEventListener("error",m),c.isPresent(d)&&i._dom.cleanup(d)}})}return r(JSONPConnection_,e),JSONPConnection_.prototype.finished=function(e){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==a.ReadyState.Cancelled&&(this._responseData=e)},JSONPConnection_}(m);t.JSONPConnection_=y;var v=function(e){function JSONPBackend(){e.apply(this,arguments)}return r(JSONPBackend,e),JSONPBackend}(u.ConnectionBackend);t.JSONPBackend=v;var g=function(e){function JSONPBackend_(t,n){e.call(this),this._browserJSONP=t,this._baseResponseOptions=n}return r(JSONPBackend_,e),JSONPBackend_.prototype.createConnection=function(e){return new y(e,this._browserJSONP,this._baseResponseOptions)},JSONPBackend_.decorators=[{type:i.Injectable}],JSONPBackend_.ctorParameters=[{type:d.BrowserJsonp},{type:s.ResponseOptions}],JSONPBackend_}(v);t.JSONPBackend_=g},function(e,t,n){"use strict";var r=n(0),i=n(89),o=n(1),s=n(176),a=n(71),l=n(37),c=n(121),u=n(178),p=n(122),d=n(274),h=n(271),f=/^\)\]\}',?\n/,m=function(){function XHRConnection(e,t,n){var r=this;this.request=e,this.response=new o.Observable(function(i){var o=t.build();o.open(a.RequestMethod[e.method].toUpperCase(),e.url),l.isPresent(e.withCredentials)&&(o.withCredentials=e.withCredentials);var p=function(){var e=l.isPresent(o.response)?o.response:o.responseText;l.isString(e)&&(e=e.replace(f,""));var t=c.Headers.fromResponseHeaderString(o.getAllResponseHeaders()),r=u.getResponseURL(o),a=1223===o.status?204:o.status;0===a&&(a=e?200:0);var p=o.statusText||"OK",h=new s.ResponseOptions({body:e,status:a,headers:t,statusText:p,url:r});l.isPresent(n)&&(h=n.merge(h));var m=new d.Response(h);return m.ok=u.isSuccess(a),m.ok?(i.next(m),void i.complete()):void i.error(m)},h=function(e){var t=new s.ResponseOptions({body:e,type:a.ResponseType.Error,status:o.status,statusText:o.statusText});l.isPresent(n)&&(t=n.merge(t)),i.error(new d.Response(t))};if(r.setDetectedContentType(e,o),l.isPresent(e.headers)&&e.headers.forEach(function(e,t){return o.setRequestHeader(t,e.join(","))}),l.isPresent(e.responseType)&&l.isPresent(o.responseType))switch(e.responseType){case a.ResponseContentType.ArrayBuffer:o.responseType="arraybuffer";break;case a.ResponseContentType.Json:o.responseType="json";break;case a.ResponseContentType.Text:o.responseType="text";break;case a.ResponseContentType.Blob:o.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return o.addEventListener("load",p),o.addEventListener("error",h),o.send(r.request.getBody()),function(){o.removeEventListener("load",p),o.removeEventListener("error",h),o.abort()}})}return XHRConnection.prototype.setDetectedContentType=function(e,t){if(!l.isPresent(e.headers)||!l.isPresent(e.headers.get("Content-Type")))switch(e.contentType){case a.ContentType.NONE:break;case a.ContentType.JSON:t.setRequestHeader("content-type","application/json");break;case a.ContentType.FORM:t.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case a.ContentType.TEXT:t.setRequestHeader("content-type","text/plain");break;case a.ContentType.BLOB:var n=e.blob();n.type&&t.setRequestHeader("content-type",n.type)}},XHRConnection}();t.XHRConnection=m;var y=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}();t.CookieXSRFStrategy=y;var v=function(){function XHRBackend(e,t,n){this._browserXHR=e,this._baseResponseOptions=t,this._xsrfStrategy=n}return XHRBackend.prototype.createConnection=function(e){return this._xsrfStrategy.configureRequest(e),new m(e,this._browserXHR,this._baseResponseOptions)},XHRBackend.decorators=[{type:r.Injectable}],XHRBackend.ctorParameters=[{type:h.BrowserXhr},{type:s.ResponseOptions},{type:p.XSRFStrategy}],XHRBackend}();t.XHRBackend=v},function(e,t,n){"use strict";var r=n(37),i=n(178),o=n(179),s=function(){function Body(){}return Body.prototype.json=function(){return r.isString(this._body)?r.Json.parse(this._body):this._body instanceof ArrayBuffer?r.Json.parse(this.text()):this._body},Body.prototype.text=function(){return this._body instanceof o.URLSearchParams?this._body.toString():this._body instanceof ArrayBuffer?String.fromCharCode.apply(null,new Uint16Array(this._body)):i.isJsObject(this._body)?r.Json.stringify(this._body):this._body.toString()},Body.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:i.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}();t.Body=s},329,[1105,406,273,37],function(e,t,n){"use strict";function httpRequest(e,t){return e.createConnection(t).response}function mergeOptions(e,t,n,r){var i=e;return s.isPresent(t)?i.merge(new a.RequestOptions({method:t.method||n,url:t.url||r,search:t.search,headers:t.headers,body:t.body,withCredentials:t.withCredentials,responseType:t.responseType})):s.isPresent(n)?i.merge(new a.RequestOptions({method:n,url:r})):i.merge(new a.RequestOptions({url:r}))}var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(0),o=n(177),s=n(37),a=n(272),l=n(71),c=n(122),u=n(409),p=function(){function Http(e,t){this._backend=e,this._defaultOptions=t}return Http.prototype.request=function(e,t){var n;if(s.isString(e))n=httpRequest(this._backend,new u.Request(mergeOptions(this._defaultOptions,t,l.RequestMethod.Get,e)));else{if(!(e instanceof u.Request))throw o.makeTypeError("First argument must be a url string or Request instance.");n=httpRequest(this._backend,e)}return n},Http.prototype.get=function(e,t){return httpRequest(this._backend,new u.Request(mergeOptions(this._defaultOptions,t,l.RequestMethod.Get,e)))},Http.prototype.post=function(e,t,n){return httpRequest(this._backend,new u.Request(mergeOptions(this._defaultOptions.merge(new a.RequestOptions({body:t})),n,l.RequestMethod.Post,e)))},Http.prototype.put=function(e,t,n){return httpRequest(this._backend,new u.Request(mergeOptions(this._defaultOptions.merge(new a.RequestOptions({body:t})),n,l.RequestMethod.Put,e)))},Http.prototype.delete=function(e,t){return httpRequest(this._backend,new u.Request(mergeOptions(this._defaultOptions,t,l.RequestMethod.Delete,e)))},Http.prototype.patch=function(e,t,n){return httpRequest(this._backend,new u.Request(mergeOptions(this._defaultOptions.merge(new a.RequestOptions({body:t})),n,l.RequestMethod.Patch,e)))},Http.prototype.head=function(e,t){return httpRequest(this._backend,new u.Request(mergeOptions(this._defaultOptions,t,l.RequestMethod.Head,e)))},Http.prototype.options=function(e,t){return httpRequest(this._backend,new u.Request(mergeOptions(this._defaultOptions,t,l.RequestMethod.Options,e)))},Http.decorators=[{type:i.Injectable}],Http.ctorParameters=[{type:c.ConnectionBackend},{type:a.RequestOptions}],Http}();t.Http=p;var d=function(e){function Jsonp(t,n){e.call(this,t,n)}return r(Jsonp,e),Jsonp.prototype.request=function(e,t){var n;if(s.isString(e)&&(e=new u.Request(mergeOptions(this._defaultOptions,t,l.RequestMethod.Get,e))),!(e instanceof u.Request))throw o.makeTypeError("First argument must be a url string or Request instance.");return e.method!==l.RequestMethod.Get&&o.makeTypeError("JSONP requests must use GET request method."),n=httpRequest(this._backend,e)},Jsonp.decorators=[{type:i.Injectable}],Jsonp.ctorParameters=[{type:c.ConnectionBackend},{type:a.RequestOptions}],Jsonp}(p);t.Jsonp=d},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(37),o=n(405),s=n(71),a=n(121),l=n(178),c=n(179),u=function(e){function Request(t){e.call(this);var n=t.url;if(this.url=t.url,i.isPresent(t.search)){var r=t.search.toString();if(r.length>0){var o="?";i.StringWrapper.contains(this.url,"?")&&(o="&"==this.url[this.url.length-1]?"":"&"),this.url=n+o+r}}this._body=t.body,this.method=l.normalizeMethodName(t.method),this.headers=new a.Headers(t.headers),this.contentType=this.detectContentType(),this.withCredentials=t.withCredentials,this.responseType=t.responseType}return r(Request,e),Request.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return s.ContentType.JSON;case"application/x-www-form-urlencoded":return s.ContentType.FORM;case"multipart/form-data":return s.ContentType.FORM_DATA;case"text/plain":case"text/html":return s.ContentType.TEXT;case"application/octet-stream":return s.ContentType.BLOB;default:return this.detectContentTypeFromBody()}},Request.prototype.detectContentTypeFromBody=function(){return null==this._body?s.ContentType.NONE:this._body instanceof c.URLSearchParams?s.ContentType.FORM:this._body instanceof h?s.ContentType.FORM_DATA:this._body instanceof f?s.ContentType.BLOB:this._body instanceof m?s.ContentType.ARRAY_BUFFER:this._body&&"object"==typeof this._body?s.ContentType.JSON:s.ContentType.TEXT},Request.prototype.getBody=function(){switch(this.contentType){case s.ContentType.JSON:return this.text();case s.ContentType.FORM:return this.text();case s.ContentType.FORM_DATA:return this._body;case s.ContentType.TEXT:return this.text();case s.ContentType.BLOB:return this.blob();case s.ContentType.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},Request}(o.Body);t.Request=u;var p=function(){},d="object"==typeof window?window:p,h=d.FormData||p,f=d.Blob||p,m=d.ArrayBuffer||p},329,[1105,410,594,180],function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(150),o=n(0),s=n(180),a=function(e){function XHRImpl(){e.apply(this,arguments)}return r(XHRImpl,e),XHRImpl.prototype.get=function(e){var t,n,r=new Promise(function(e,r){t=e,n=r}),i=new XMLHttpRequest;return i.open("GET",e,!0),i.responseType="text",i.onload=function(){var r=s.isPresent(i.response)?i.response:i.responseText,o=1223===i.status?204:i.status;0===o&&(o=r?200:0),200<=o&&o<=300?t(r):n("Failed to load "+e)},i.onerror=function(){n("Failed to load "+e)},i.send(),r},XHRImpl.decorators=[{type:o.Injectable}],XHRImpl}(i.XHR);t.XHRImpl=a},function(e,t,n){"use strict";function getBaseElementHref(){return s.isBlank(h)&&(h=document.querySelector("base"),s.isBlank(h))?null:h.getAttribute("href")}function relativePath(e){return s.isBlank(f)&&(f=document.createElement("a")),f.setAttribute("href",e),"/"===f.pathname.charAt(0)?f.pathname:"/"+f.pathname}function parseCookieValue(e,t){t=encodeURIComponent(t);for(var n=0,r=e.split(";");n0},BrowserDomAdapter.prototype.tagName=function(e){return e.tagName},BrowserDomAdapter.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r0&&(this._sendMessages(this._messageBuffer),this._messageBuffer=[])},PostMessageBusSink.prototype._sendMessages=function(e){this._postMessageTarget.postMessage(e)},PostMessageBusSink}();t.PostMessageBusSink=a;var l=function(){function PostMessageBusSource(e){var t=this;if(this._channels=o.StringMapWrapper.create(),e)e.addEventListener("message",function(e){return t._handleMessages(e)});else{var n=self;n.addEventListener("message",function(e){return t._handleMessages(e)})}}return PostMessageBusSource.prototype.attachToZone=function(e){this._zone=e},PostMessageBusSource.prototype.initChannel=function(e,t){if(void 0===t&&(t=!0),o.StringMapWrapper.contains(this._channels,e))throw new s.BaseException(e+" has already been initialized");var n=new i.EventEmitter((!1)),r=new u(n,t);this._channels[e]=r},PostMessageBusSource.prototype.from=function(e){if(o.StringMapWrapper.contains(this._channels,e))return this._channels[e].emitter;throw new s.BaseException(e+" is not set up. Did you forget to call initChannel?")},PostMessageBusSource.prototype._handleMessages=function(e){for(var t=e.data,n=0;n=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=n(0),s=n(636),a=function(){function MdRipple(e){var t=this;this.maxRadius=0,this.speedFactor=1;var n=new Map;n.set("mousedown",function(e){return t._mouseDown(e)}),n.set("click",function(e){return t._click(e)}),n.set("mouseleave",function(e){return t._mouseLeave(e)}),this._rippleRenderer=new s.RippleRenderer(e,n)}return MdRipple.prototype.ngOnInit=function(){this.trigger||this._rippleRenderer.setTriggerElementToHost()},MdRipple.prototype.ngOnDestroy=function(){this._rippleRenderer.clearTriggerElement()},MdRipple.prototype.ngOnChanges=function(e){var t=Object.keys(e);t.indexOf("trigger")!==-1&&this._rippleRenderer.setTriggerElement(this.trigger)},MdRipple.prototype.start=function(){this._rippleRenderer.fadeInRippleBackground(this.backgroundColor)},MdRipple.prototype.end=function(e,t,n){var r=this;void 0===n&&(n=!0),this._rippleRenderer.createForegroundRipple(e,t,this.color,this.centered||n,this.maxRadius,this.speedFactor,function(e,t){return r._rippleTransitionEnded(e,t)}),this._rippleRenderer.fadeOutRippleBackground()},MdRipple.prototype._rippleTransitionEnded=function(e,t){if("opacity"===t.propertyName)switch(e.state){case s.ForegroundRippleState.EXPANDING:this._rippleRenderer.fadeOutForegroundRipple(e.rippleElement),e.state=s.ForegroundRippleState.FADING_OUT;break;case s.ForegroundRippleState.FADING_OUT:this._rippleRenderer.removeRippleFromDom(e.rippleElement)}},MdRipple.prototype._mouseDown=function(e){this.disabled||0!==e.button||this.start()},MdRipple.prototype._click=function(e){if(!this.disabled&&0===e.button){var t=0===e.screenX&&0===e.screenY&&0===e.pageX&&0===e.pageY;this.end(e.pageX,e.pageY,t)}},MdRipple.prototype._mouseLeave=function(e){this._rippleRenderer.fadeOutRippleBackground()},r([o.Input("md-ripple-trigger"),i("design:type",HTMLElement)],MdRipple.prototype,"trigger",void 0),r([o.Input("md-ripple-centered"),i("design:type",Boolean)],MdRipple.prototype,"centered",void 0),r([o.Input("md-ripple-disabled"),i("design:type",Boolean)],MdRipple.prototype,"disabled",void 0),r([o.Input("md-ripple-max-radius"),i("design:type",Number)],MdRipple.prototype,"maxRadius",void 0),r([o.Input("md-ripple-speed-factor"),i("design:type",Number)],MdRipple.prototype,"speedFactor",void 0),r([o.Input("md-ripple-color"),i("design:type",String)],MdRipple.prototype,"color",void 0),r([o.Input("md-ripple-background-color"),i("design:type",String)],MdRipple.prototype,"backgroundColor",void 0),r([o.HostBinding("class.md-ripple-focused"),o.Input("md-ripple-focused"),i("design:type",Boolean)],MdRipple.prototype,"focused",void 0),r([o.HostBinding("class.md-ripple-unbounded"),o.Input("md-ripple-unbounded"),i("design:type",Boolean)],MdRipple.prototype,"unbounded",void 0),MdRipple=r([o.Directive({selector:"[md-ripple]"}),i("design:paramtypes",[o.ElementRef])],MdRipple)}();t.MdRipple=a,t.MD_RIPPLE_DIRECTIVES=[a];var l=function(){function MdRippleModule(){}return MdRippleModule=r([o.NgModule({exports:t.MD_RIPPLE_DIRECTIVES,declarations:t.MD_RIPPLE_DIRECTIVES}),i("design:paramtypes",[])],MdRippleModule)}();t.MdRippleModule=l},function(e,t,n){"use strict";function cloneSvg(e){return e.cloneNode(!0)}var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=n(0),a=n(43),l=n(188),c=n(1);n(485),n(487),n(140),n(494),n(492),n(501),n(495),n(209);var u=function(e){function MdIconNameNotFoundError(t){e.call(this,'Unable to find icon with the name "'+t+'"')}return r(MdIconNameNotFoundError,e),MdIconNameNotFoundError}(l.MdError);t.MdIconNameNotFoundError=u;var p=function(e){function MdIconSvgTagNotFoundError(){e.call(this," tag not found")}return r(MdIconSvgTagNotFoundError,e),MdIconSvgTagNotFoundError}(l.MdError);t.MdIconSvgTagNotFoundError=p;var d=function(){function SvgIconConfig(e){this.url=e,this.svgElement=null}return SvgIconConfig}(),h=function(e,t){return e+":"+t},f=function(){function MdIconRegistry(e){this._http=e,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons"}return MdIconRegistry.prototype.addSvgIcon=function(e,t){return this.addSvgIconInNamespace("",e,t)},MdIconRegistry.prototype.addSvgIconInNamespace=function(e,t,n){var r=h(e,t);return this._svgIconConfigs.set(r,new d(n)),this},MdIconRegistry.prototype.addSvgIconSet=function(e){return this.addSvgIconSetInNamespace("",e)},MdIconRegistry.prototype.addSvgIconSetInNamespace=function(e,t){var n=new d(t);return this._iconSetConfigs.has(e)?this._iconSetConfigs.get(e).push(n):this._iconSetConfigs.set(e,[n]),this},MdIconRegistry.prototype.registerFontClassAlias=function(e,t){return void 0===t&&(t=e),this._fontCssClassesByAlias.set(e,t),this},MdIconRegistry.prototype.classNameForFontAlias=function(e){return this._fontCssClassesByAlias.get(e)||e},MdIconRegistry.prototype.setDefaultFontSetClass=function(e){return this._defaultFontSetClass=e,this},MdIconRegistry.prototype.getDefaultFontSetClass=function(){return this._defaultFontSetClass},MdIconRegistry.prototype.getSvgIconFromUrl=function(e){var t=this;return this._cachedIconsByUrl.has(e)?c.Observable.of(cloneSvg(this._cachedIconsByUrl.get(e))):this._loadSvgIconFromConfig(new d(e)).do(function(n){return t._cachedIconsByUrl.set(e,n)}).map(function(e){return cloneSvg(e)})},MdIconRegistry.prototype.getNamedSvgIcon=function(e,t){void 0===t&&(t="");var n=h(t,e);if(this._svgIconConfigs.has(n))return this._getSvgFromConfig(this._svgIconConfigs.get(n));var r=this._iconSetConfigs.get(t);return r?this._getSvgFromIconSetConfigs(e,r):c.Observable.throw(new u(n))},MdIconRegistry.prototype._getSvgFromConfig=function(e){return e.svgElement?c.Observable.of(cloneSvg(e.svgElement)):this._loadSvgIconFromConfig(e).do(function(t){return e.svgElement=t}).map(function(e){return cloneSvg(e)})},MdIconRegistry.prototype._getSvgFromIconSetConfigs=function(e,t){var n=this,r=this._extractIconWithNameFromAnySet(e,t);if(r)return c.Observable.of(r);var i=t.filter(function(e){return!e.svgElement}).map(function(e){return n._loadSvgIconSetFromConfig(e).catch(function(t,n){return console.log("Loading icon set URL: "+e.url+" failed: "+t),c.Observable.of(null)}).do(function(t){t&&(e.svgElement=t)})});return c.Observable.forkJoin(i).map(function(r){var i=n._extractIconWithNameFromAnySet(e,t);if(!i)throw new u(e);return i})},MdIconRegistry.prototype._extractIconWithNameFromAnySet=function(e,t){for(var n=t.length-1;n>=0;n--){var r=t[n];if(r.svgElement){var i=this._extractSvgIconFromSet(r.svgElement,e,r);if(i)return i}}return null},MdIconRegistry.prototype._loadSvgIconFromConfig=function(e){var t=this;return this._fetchUrl(e.url).map(function(n){return t._createSvgElementForSingleIcon(n,e)})},MdIconRegistry.prototype._loadSvgIconSetFromConfig=function(e){var t=this;return this._fetchUrl(e.url).map(function(e){return t._svgElementFromString(e)})},MdIconRegistry.prototype._createSvgElementForSingleIcon=function(e,t){var n=this._svgElementFromString(e);return this._setSvgAttributes(n,t),n},MdIconRegistry.prototype._extractSvgIconFromSet=function(e,t,n){var r=e.querySelector("#"+t);if(!r)return null;if("svg"==r.tagName.toLowerCase())return this._setSvgAttributes(r.cloneNode(!0),n);var i=this._svgElementFromString("");return i.appendChild(r.cloneNode(!0)),this._setSvgAttributes(i,n)},MdIconRegistry.prototype._svgElementFromString=function(e){var t=document.createElement("DIV");t.innerHTML=e;var n=t.querySelector("svg");if(!n)throw new p;return n},MdIconRegistry.prototype._setSvgAttributes=function(e,t){return e.getAttribute("xmlns")||e.setAttribute("xmlns","http://www.w3.org/2000/svg"),e.setAttribute("fit",""),e.setAttribute("height","100%"),e.setAttribute("width","100%"),e.setAttribute("preserveAspectRatio","xMidYMid meet"),e.setAttribute("focusable","false"),e},MdIconRegistry.prototype._fetchUrl=function(e){var t=this;if(this._inProgressUrlFetches.has(e))return this._inProgressUrlFetches.get(e);var n=this._http.get(e).map(function(e){return e.text()}).finally(function(){t._inProgressUrlFetches.delete(e)}).share();return this._inProgressUrlFetches.set(e,n),n},MdIconRegistry=i([s.Injectable(),o("design:paramtypes",[a.Http])],MdIconRegistry)}();t.MdIconRegistry=f},function(e,t,n){"use strict";var r=n(43),i=(n.n(r),n(0)),o=(n.n(i),n(1));n.n(o);n.d(t,"a",function(){return l});var s=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function TopoDataService(e){this.http=e,this.apiUrl="../api/topodata"}return TopoDataService.prototype.getNode=function(e){return e.startsWith("/")||(e="/"+e),this.http.get(this.apiUrl+e).map(function(e){return e.json()}).catch(this.handleError)},TopoDataService.prototype.handleError=function(e){var t=e.message?e.message:e.status?e.status+" - "+e.statusText:"Server error";return console.error(t),o.Observable.throw(t)},TopoDataService=s([n.i(i.Injectable)(),a("design:paramtypes",["function"==typeof(e="undefined"!=typeof r.Http&&r.Http)&&e||Object])],TopoDataService);var e}()},function(e,t,n){"use strict";var r=n(43),i=(n.n(r),n(0));n.n(i);n.d(t,"a",function(){return a});var o=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function TopologyInfoService(e){this.http=e}return TopologyInfoService.prototype.getCombinedTopologyInfo=function(e,t){var n=new r.URLSearchParams;return n.set("keyspace",e),n.set("cell",t),this.http.get("../api/topology_info/",{search:n}).map(function(e){return e.json()})},TopologyInfoService.prototype.getMetrics=function(){var e=["lag","qps","health"];return e},TopologyInfoService=o([n.i(i.Injectable)(),s("design:paramtypes",["function"==typeof(e="undefined"!=typeof r.Http&&r.Http)&&e||Object])],TopologyInfoService);var e}()},function(e,t,n){"use strict";var r=n(0),i=(n.n(r),n(130)),o=n(649);n.n(o);n.d(t,"a",function(){return l});var s=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function AppComponent(e){this.featuresService=e,this.title="Vitess Control Panel"}return AppComponent=s([n.i(r.Component)({selector:"vt-app-root",template:n(882),styles:[n(870)],providers:[i.a]}),a("design:paramtypes",["function"==typeof(e="undefined"!=typeof i.a&&i.a)&&e||Object])],AppComponent);var e}()},function(e,t,n){"use strict";var r=n(0),i=(n.n(r),n(29)),o=(n.n(i),n(436)),s=n(93),a=n(94),l=n(130),c=n(131),u=n(92),p=n(192);n.d(t,"a",function(){return f});var d=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},h=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(){function DashboardComponent(e,t,n,r){this.featuresService=e,this.keyspaceService=t,this.router=n,this.vtctlService=r,this.keyspaces=[],this.inFlightQueries=0}return DashboardComponent.prototype.ngOnInit=function(){var e=this;this.getKeyspaces(),this.dialogContent=new s.a,this.dialogSettings=new a.a,this.actions=[{label:"Validate",command:function(t){e.openValidateDialog()}}],this.actionsCrud=[{label:"Status",items:[{label:"Validate",command:function(t){e.openValidateDialog()}}]},{label:"Change",items:[{label:"New",command:function(t){e.openNewDialog()}}]}],this.keyspaceActions=[{label:"Change",items:[{label:"Edit",command:function(t){e.openEditDialog()}},{label:"Delete",command:function(t){e.openDeleteDialog()}}]}]},DashboardComponent.prototype.getKeyspaces=function(){var e=this;this.inFlightQueries>0||(this.keyspaces=[],this.inFlightQueries++,this.keyspaceService.getKeyspaces().subscribe(function(t){e.inFlightQueries++,t.subscribe(function(t){e.keyspaces.push(t),e.keyspaces.sort(e.cmp)},function(){console.log("Error getting keyspace"),e.inFlightQueries--},function(){e.inFlightQueries--})},function(){console.log("Error getting keyspaces"),e.inFlightQueries--},function(){e.inFlightQueries--}))},DashboardComponent.prototype.cmp=function(e,t){var n=e.name.toLowerCase(),r=t.name.toLowerCase();return n>r?1:r>n?-1:0},DashboardComponent.prototype.setSelectedKeyspace=function(e){this.selectedKeyspace=e},DashboardComponent.prototype.openEditDialog=function(e){void 0===e&&(e=this.selectedKeyspace),this.dialogSettings=new a.a("Edit","Edit "+e.name,"","There was a problem editing {{keyspace_name}}:"),this.dialogSettings.setMessage("Edited {{keyspace_name}}"),this.dialogSettings.onCloseFunction=this.getKeyspaces.bind(this);var t=new o.a(e).flags;this.dialogContent=new s.a("keyspace_name",t,{},this.prepareEdit.bind(this),"SetKeyspaceShardingInfo"),this.dialogSettings.toggleModal()},DashboardComponent.prototype.openNewDialog=function(){this.dialogSettings=new a.a("Create","Create a new Keyspace","","There was a problem creating {{keyspace_name}}:"),this.dialogSettings.setMessage("Created {{keyspace_name}}"),this.dialogSettings.onCloseFunction=this.getKeyspaces.bind(this);var e=(new o.b).flags;this.dialogContent=new s.a("keyspace_name",e,{keyspace_name:!0},this.prepareNew.bind(this),"CreateKeyspace"),this.dialogSettings.toggleModal()},DashboardComponent.prototype.openDeleteDialog=function(e){void 0===e&&(e=this.selectedKeyspace),this.dialogSettings=new a.a("Delete","Delete "+e.name,"Are you sure you want to delete "+e.name+"?","There was a problem deleting {{keyspace_name}}:"),this.dialogSettings.setMessage("Deleted {{keyspace_name}}"),this.dialogSettings.onCloseFunction=this.getKeyspaces.bind(this); var t=new o.c(e.name).flags;this.dialogContent=new s.a("keyspace_name",t,{},(void 0),"DeleteKeyspace"),this.dialogSettings.toggleModal()},DashboardComponent.prototype.openValidateDialog=function(){this.dialogSettings=new a.a("Validate","Validate all nodes","","There was a problem validating all nodes:"),this.dialogSettings.setMessage("Validated"),this.dialogSettings.onCloseFunction=this.getKeyspaces.bind(this);var e=(new o.d).flags;this.dialogContent=new s.a("",e,{},(void 0),"Validate"),this.dialogSettings.toggleModal()},DashboardComponent.prototype.prepareNew=function(e){for(var t=(new o.b).flags,n=0,r=Object.keys(e);n=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},h=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},f=function(){function KeyspaceComponent(e,t,n){this.route=e,this.keyspaceService=t,this.vtctlService=n,this.inFlightQueries=0,this.keyspace={}}return KeyspaceComponent.prototype.ngOnInit=function(){var e=this;this.dialogContent=new o.a,this.dialogSettings=new s.a,this.actions=[{label:"Status",items:[{label:"Validate",command:function(t){e.openValidateKeyspaceDialog()}},{label:"Validate Schema",command:function(t){e.openValidateSchemaDialog()}},{label:"Validate Version",command:function(t){e.openValidateVersionDialog()}}]},{label:"Rebuild / Reload",items:[{label:"Rebuild Keyspace Graph",command:function(t){e.openRebuildKeyspaceGraphDialog()}},{label:"Reload Schema in Keyspace",command:function(t){e.openReloadSchemaKeyspaceDialog()}}]},{label:"Change",items:[{label:"Remove Keyspace Cell",command:function(t){e.openRemoveKeyspaceCellDialog()}},{label:"New Shard",command:function(t){e.openNewShardDialog()}}]}],this.routeSub=this.route.queryParams.subscribe(function(t){var n=t.keyspace;n&&(e.keyspaceName=n,e.getKeyspace(e.keyspaceName))})},KeyspaceComponent.prototype.ngOnDestroy=function(){this.routeSub.unsubscribe()},KeyspaceComponent.prototype.getKeyspace=function(e){var t=this;this.inFlightQueries>0||(this.inFlightQueries++,this.keyspaceService.getKeyspace(e).subscribe(function(e){t.inFlightQueries++,e.subscribe(function(e){t.keyspace=e},function(){console.log("Error getting keyspace"),t.inFlightQueries--},function(){t.inFlightQueries--})},function(){console.log("Error getting keyspaces"),t.inFlightQueries--},function(){t.inFlightQueries--}))},KeyspaceComponent.prototype.openNewShardDialog=function(){this.dialogSettings=new s.a("Create","Create a new Shard","","There was a problem creating {{shard_ref}}:"),this.dialogSettings.setMessage("Created {{shard_ref}}"),this.dialogSettings.onCloseFunction=this.refreshKeyspaceView.bind(this);var e=new a.a(this.keyspaceName).flags;this.dialogContent=new o.a("shard_ref",e,{},this.prepareShard.bind(this)),this.dialogContent=new o.a("shard_ref",e,{},this.prepareShard.bind(this),"CreateShard"),this.dialogSettings.toggleModal()},KeyspaceComponent.prototype.openValidateKeyspaceDialog=function(){this.dialogSettings=new s.a("Validate","Validate "+this.keyspaceName,"","There was a problem validating {{keyspace_name}}:"),this.dialogSettings.setMessage("Validated {{keyspace_name}}"),this.dialogSettings.onCloseFunction=this.refreshKeyspaceView.bind(this);var e=new u.e(this.keyspaceName).flags;this.dialogContent=new o.a("keyspace_name",e,{},(void 0),"ValidateKeyspace"),this.dialogSettings.toggleModal()},KeyspaceComponent.prototype.openValidateSchemaDialog=function(){this.dialogSettings=new s.a("Validate","Validate "+this.keyspaceName+"'s Schema","","There was a problem validating {{keyspace_name}}'s Schema:"),this.dialogSettings.setMessage("Validated {{keyspace_name}}'s Schema"),this.dialogSettings.onCloseFunction=this.refreshKeyspaceView.bind(this);var e=new u.f(this.keyspaceName).flags;this.dialogContent=new o.a("keyspace_name",e,{},(void 0),"ValidateSchemaKeyspace"),this.dialogSettings.toggleModal()},KeyspaceComponent.prototype.openValidateVersionDialog=function(){this.dialogSettings=new s.a("Validate","Validate "+this.keyspaceName+"'s Version","","There was a problem validating {{keyspace_name}}'s Version:"),this.dialogSettings.setMessage("Validated {{keyspace_name}}'s Version"),this.dialogSettings.onCloseFunction=this.refreshKeyspaceView.bind(this);var e=new u.g(this.keyspaceName).flags;this.dialogContent=new o.a("keyspace_name",e,{},(void 0),"ValidateVersionKeyspace"),this.dialogSettings.toggleModal()},KeyspaceComponent.prototype.openRebuildKeyspaceGraphDialog=function(){this.dialogSettings=new s.a("Rebuild","Rebuild "+this.keyspaceName,"","There was a problem rebuilding {{keyspace_name}}:"),this.dialogSettings.setMessage("Rebuilt {{keyspace_name}}"),this.dialogSettings.onCloseFunction=this.refreshKeyspaceView.bind(this);var e=new u.h(this.keyspaceName).flags;this.dialogContent=new o.a("keyspace_name",e,{},(void 0),"RebuildKeyspaceGraph"),this.dialogSettings.toggleModal()},KeyspaceComponent.prototype.openReloadSchemaKeyspaceDialog=function(){this.dialogSettings=new s.a("Reload Schema","Reload Schema in "+this.keyspaceName,"","There was a problem reloading schema in {{keyspace_name}}:"),this.dialogSettings.setMessage("Reloaded {{keyspace_name}} Schema");var e=new u.i(this.keyspaceName).flags;this.dialogContent=new o.a("keyspace_name",e,{},(void 0),"ReloadSchemaKeyspace"),this.dialogSettings.toggleModal()},KeyspaceComponent.prototype.openRemoveKeyspaceCellDialog=function(){this.dialogSettings=new s.a("Remove","Remove a cell from "+this.keyspaceName,"","There was a problem removing {{cell_name}}:"),this.dialogSettings.setMessage("Removed {{cell_name}}"),this.dialogSettings.onCloseFunction=this.refreshKeyspaceView.bind(this);var e=new u.j(this.keyspaceName).flags;this.dialogContent=new o.a("cell_name",e,{},(void 0),"RemoveKeyspaceCell"),this.dialogSettings.toggleModal()},KeyspaceComponent.prototype.refreshKeyspaceView=function(){this.getKeyspace(this.keyspaceName)},KeyspaceComponent.prototype.prepareShard=function(e){var t={};t.shard_ref=e.shard_ref;var n=this.getName(e.lower_bound.getStrValue(),e.upper_bound.getStrValue());return t.shard_ref.setValue(e.keyspace_name.getStrValue()+"/"+n),new c.a((!0),t)},KeyspaceComponent.prototype.getName=function(e,t){return this.dialogContent.setName(e+"-"+t),this.dialogContent.getName()},KeyspaceComponent.prototype.canDeactivate=function(){return!this.dialogSettings.pending},KeyspaceComponent.prototype.noShards=function(){return void 0!==this.keyspace&&(void 0!==this.keyspace.servingShards&&void 0!==this.keyspace.nonservingShards&&(0===this.keyspace.servingShards.length&&0===this.keyspace.nonservingShards.length))},KeyspaceComponent=d([n.i(i.Component)({selector:"vt-keyspace-view",template:n(884),styles:[n(78)]}),h("design:paramtypes",["function"==typeof(e="undefined"!=typeof r.ActivatedRoute&&r.ActivatedRoute)&&e||Object,"function"==typeof(t="undefined"!=typeof l.a&&l.a)&&t||Object,"function"==typeof(f="undefined"!=typeof p.a&&p.a)&&f||Object])],KeyspaceComponent);var e,t,f}()},function(e,t,n){"use strict";var r=n(29),i=(n.n(r),n(0)),o=(n.n(i),n(93)),s=n(94),a=n(437),l=n(438),c=n(130),u=n(131),p=n(190),d=n(92);n.d(t,"a",function(){return m});var h=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},f=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},m=function(){function ShardComponent(e,t,n,r,i,o){this.route=e,this.router=t,this.featuresService=n,this.keyspaceService=r,this.tabletService=i,this.vtctlService=o,this.keyspace={},this.tablets=[],this.inFlightQueries=0,this.noTablets=!1,this.selectedTablet=void 0}return ShardComponent.prototype.ngOnInit=function(){var e=this;this.dialogContent=new o.a,this.dialogSettings=new s.a,this.refreshMenus(),this.routeSub=this.route.queryParams.subscribe(function(t){var n=t.keyspace,r=t.shard;n&&r&&(e.keyspaceName=n,e.shardName=r,e.getKeyspace(e.keyspaceName))})},ShardComponent.prototype.refreshMenus=function(){this.actions=this.getActions(),this.tabletActionsMaster=this.getTabletActions(!0),this.tabletActionsSlave=this.getTabletActions(!1)},ShardComponent.prototype.getActions=function(){var e=this,t=[{label:"Status",items:[{label:"Validate Shard",command:function(t){e.openValidateShardDialog()}},{label:"Validate Versions",command:function(t){e.openValidateVerShardDialog()}},{label:"Shard Replication Positions",command:function(t){e.openShardReplicationPosDialog()}}]},{label:"Reload",items:[{label:"Reload Schema in Shard",command:function(t){e.openReloadSchemaShardDialog()}}]},{label:"Change",items:[{label:"Externally Reparent",command:function(t){e.openTabExtRepDialog()}}]}];return this.featuresService.showTopologyCRUD&&t[2].items.push({label:"Delete Shard",command:function(t){e.openDeleteShardDialog()}}),this.featuresService.activeReparents&&t.push({label:"Reparent",items:[{label:"Initialize Shard Master",command:function(t){e.openInitShardMasterDialog()}},{label:"Planned Reparent",command:function(t){e.openPlanRepShardDialog()}},{label:"Emergency Reparent",command:function(t){e.openEmergencyRepShardDialog()}}]}),t},ShardComponent.prototype.getTabletActions=function(e){var t=this,n=[{label:"Status",items:[{label:"Ping",command:function(e){t.openPingTabletDialog()}},{label:"Refresh State",command:function(e){t.openRefreshTabletDialog()}},{label:"Run Health Check",command:function(e){t.openRunHealthCheckDialog()}}]},{label:"Change",items:[{label:"Ignore Health Error",command:function(e){t.openIgnoreHealthErrorDialog()}},{label:"Delete Tablet",command:function(e){t.openDeleteTabletDialog()}}]}];return e||n[1].items.push({label:"Start Slave",command:function(e){t.openStartSlaveDialog()}},{label:"Stop Slave",command:function(e){t.openStopSlaveDialog()}}),this.featuresService.activeReparents&&(e&&n[1].items.push({label:"Set ReadOnly",command:function(e){t.openSetReadOnlyDialog()}},{label:"Set ReadWrite",command:function(e){t.openSetReadWriteDialog()}}),e||n.push({label:"Reparent",items:[{label:"Reparent Tablet",command:function(e){t.openReparentTabletDialog()}}]})),n},ShardComponent.prototype.portNames=function(e){return Object.keys(e.port_map)},ShardComponent.prototype.getUrl=function(e){return"http://"+e.hostname+":"+e.port_map.vt},ShardComponent.prototype.typeIndex=function(e){return"master"===e?"0master":"replica"===e?"1replica":"rdonly"===e?"2rdonly":e},ShardComponent.prototype.sortByType=function(e){var t=this;this.tablets.sort(function(n,r){var i=t.typeIndex(n.type),o=t.typeIndex(r.type);return io?1*e.order:n.cellr.cell?1*e.order:n.uidr.uid?1*e.order:0})},ShardComponent.prototype.sortByCell=function(e){var t=this;this.tablets.sort(function(n,r){if(n.cellr.cell)return 1*e.order;var i=t.typeIndex(n.type),o=t.typeIndex(r.type);return io?1:n.uidr.uid?1:0})},ShardComponent.prototype.ngOnDestroy=function(){this.routeSub.unsubscribe()},ShardComponent.prototype.getKeyspace=function(e){var t=this;this.inFlightQueries>0||(this.inFlightQueries++,this.keyspaceService.getKeyspace(e).subscribe(function(e){t.inFlightQueries++,e.subscribe(function(e){t.refreshMenus(),t.keyspace=e;for(var n=0,r=t.keyspace.servingShards.concat(t.keyspace.nonservingShards);n=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},d=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},h=function(){function TabletComponent(e,t,n,r,i){this.route=e,this.router=t,this.tabletService=n,this.vtctlService=r,this.sanitizer=i,this.tabletReady=!1}return TabletComponent.prototype.ngOnInit=function(){var e=this;this.dialogContent=new s.a,this.dialogSettings=new a.a,this.routeSub=this.route.queryParams.subscribe(function(t){var n=t.keyspace,r=t.shard,i=t.tablet;n&&r&&i&&(e.keyspaceName=n,e.shardName=r,e.tabletRef=i,e.getTablet(i))})},TabletComponent.prototype.ngOnDestroy=function(){this.routeSub.unsubscribe()},TabletComponent.prototype.getTablet=function(e){var t=this;this.tabletService.getTablet(e).subscribe(function(e){t.tablet=e,t.tabletUrl=t.sanitizer.bypassSecurityTrustResourceUrl("http://"+e.hostname+":"+e.port_map.vt),t.tabletReady=!0})},TabletComponent.prototype.openDeleteTabletDialog=function(){this.dialogSettings=new a.a("Delete","Delete "+this.tablet.label,"Are you sure you want to delete "+this.tablet.label+"?","There was a problem deleting "+this.tablet.label+":"),this.dialogSettings.setMessage("Deleted "+this.tablet.label),this.dialogSettings.onCloseFunction=this.navigateToShard.bind(this);var e=new l.a(this.tablet.ref).flags;this.dialogContent=new s.a("tablet_alias",e,{},(void 0),"DeleteTablet"),this.dialogSettings.toggleModal()},TabletComponent.prototype.openRefreshTabletDialog=function(){this.dialogSettings=new a.a("Refresh","Refresh "+this.tablet.label,"","There was a problem refreshing "+this.tablet.label+":"),this.dialogSettings.setMessage("Refreshed "+this.tablet.label),this.dialogSettings.onCloseFunction=this.refreshTabletView.bind(this);var e=new l.b(this.tablet.ref).flags;this.dialogContent=new s.a("tablet_alias",e,{},(void 0),"RefreshState"),this.dialogSettings.toggleModal()},TabletComponent.prototype.openPingTabletDialog=function(){this.dialogSettings=new a.a("Ping","Ping "+this.tablet.label,"","There was a problem pinging "+this.tablet.label+":"),this.dialogSettings.setMessage("Pinged "+this.tablet.label),this.dialogSettings.onCloseFunction=this.refreshTabletView.bind(this);var e=new l.c(this.tablet.ref).flags;this.dialogContent=new s.a("tablet_alias",e,{},(void 0),"Ping"),this.dialogSettings.toggleModal()},TabletComponent.prototype.openSetReadOnlyDialog=function(){this.dialogSettings=new a.a("Set","Set "+this.tablet.label+" to Read Only","","There was a problem setting "+this.tablet.label+" to Read Only:"),this.dialogSettings.setMessage("Set "+this.tablet.label+" to Read Only"),this.dialogSettings.onCloseFunction=this.refreshTabletView.bind(this);var e=new l.c(this.tablet.ref).flags;this.dialogContent=new s.a("tablet_alias",e,{},(void 0),"SetReadOnly"),this.dialogSettings.toggleModal()},TabletComponent.prototype.openSetReadWriteDialog=function(){this.dialogSettings=new a.a("Set","Set "+this.tablet.label+" to Read/Write","","There was a problem setting "+this.tablet.label+" to Read/Write:"),this.dialogSettings.setMessage("Set "+this.tablet.label+" to Read/Write"),this.dialogSettings.onCloseFunction=this.refreshTabletView.bind(this);var e=new l.c(this.tablet.ref).flags;this.dialogContent=new s.a("tablet_alias",e,{},(void 0),"SetReadWrite"),this.dialogSettings.toggleModal()},TabletComponent.prototype.openStartSlaveDialog=function(){this.dialogSettings=new a.a("Start","Start Slave, "+this.tablet.label,"","There was a problem starting slave, "+this.tablet.label+":"),this.dialogSettings.setMessage("Started Slave, "+this.tablet.label),this.dialogSettings.onCloseFunction=this.refreshTabletView.bind(this);var e=new l.c(this.tablet.ref).flags;this.dialogContent=new s.a("tablet_alias",e,{},(void 0),"StartSlave"),this.dialogSettings.toggleModal()},TabletComponent.prototype.openStopSlaveDialog=function(){this.dialogSettings=new a.a("Stop","Stop Slave, "+this.tablet.label,"","There was a problem stopping slave, "+this.tablet.label+":"),this.dialogSettings.setMessage("Stopped Slave, "+this.tablet.label),this.dialogSettings.onCloseFunction=this.refreshTabletView.bind(this);var e=new l.c(this.tablet.ref).flags;this.dialogContent=new s.a("tablet_alias",e,{},(void 0),"StopSlave"),this.dialogSettings.toggleModal()},TabletComponent.prototype.openRunHealthCheckDialog=function(){this.dialogSettings=new a.a("Run","Run Health Check on "+this.tablet.label,"","There was a problem running Health Check on "+this.tablet.label+":"),this.dialogSettings.setMessage("Ran Health Check on "+this.tablet.label),this.dialogSettings.onCloseFunction=this.refreshTabletView.bind(this);var e=new l.c(this.tablet.ref).flags;this.dialogContent=new s.a("tablet_alias",e,{},(void 0),"RunHealthCheck"),this.dialogSettings.toggleModal()},TabletComponent.prototype.openIgnoreHealthErrorDialog=function(){this.dialogSettings=new a.a("Ignore","Ignore Health Check for "+this.tablet.label,"","There was a problem ignoring the Health Check for "+this.tablet.label+":"),this.dialogSettings.setMessage("Ignored "+this.tablet.label),this.dialogSettings.onCloseFunction=this.refreshTabletView.bind(this);var e=new l.c(this.tablet.ref).flags;this.dialogContent=new s.a("tablet_alias",e,{},(void 0),"IgnoreHealthError"),this.dialogSettings.toggleModal()},TabletComponent.prototype.openReparentTabletDialog=function(){this.dialogSettings=new a.a("Reparent","Reparent "+this.tablet.label,"","There was a problem reparenting "+this.tablet.label+":"), -this.dialogSettings.setMessage("Reparented "+this.tablet.label),this.dialogSettings.onCloseFunction=this.refreshTabletView.bind(this);var e=new l.c(this.tablet.ref).flags;this.dialogContent=new s.a("tablet_alias",e,{},(void 0),"ReparentTablet"),this.dialogSettings.toggleModal()},TabletComponent.prototype.refreshTabletView=function(){this.getTablet(this.tabletRef),this.tabletUrl=this.tabletUrl},TabletComponent.prototype.navigateToShard=function(e){this.router.navigate(["/shard"],{queryParams:{keyspace:this.keyspaceName,shard:this.shardName}})},TabletComponent.prototype.canDeactivate=function(){return!this.dialogSettings.pending},TabletComponent=p([n.i(i.Component)({selector:"vt-tablet-view",template:n(886),styles:[n(873),n(78)]}),d("design:paramtypes",["function"==typeof(e="undefined"!=typeof r.ActivatedRoute&&r.ActivatedRoute)&&e||Object,"function"==typeof(t="undefined"!=typeof r.Router&&r.Router)&&t||Object,"function"==typeof(h="undefined"!=typeof c.a&&c.a)&&h||Object,"function"==typeof(f="undefined"!=typeof u.a&&u.a)&&f||Object,"function"==typeof(m="undefined"!=typeof o.DomSanitizationService&&o.DomSanitizationService)&&m||Object])],TabletComponent);var e,t,h,f,m}()},function(e,t,n){"use strict";var r=n(0),i=(n.n(r),n(131)),o=n(283),s=n(190),a=n(92);n.d(t,"a",function(){return u});var l=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(){function SchemaComponent(e,t,n,r){this.keyspaceService=e,this.shardService=t,this.tabletService=n,this.vtctlService=r,this.dialog=!1,this.keyspaces=[],this.shards=[],this.tablets=[],this.schemas=[],this.vSchemas=[]}return SchemaComponent.prototype.ngOnInit=function(){this.getKeyspaceNames()},SchemaComponent.prototype.getKeyspaceNames=function(){var e=this;this.resetSchemas(),this.resetVSchemas(),this.keyspaceService.getKeyspaceNames().subscribe(function(t){e.keyspaces=t.map(function(e){return{label:e,value:e}}),e.keyspaces.sort(e.cmp),e.keyspaces.length>0&&(e.selectedKeyspace=e.keyspaces[0].value,e.getShards(e.selectedKeyspace))})},SchemaComponent.prototype.cmp=function(e,t){var n=e.label.toLowerCase(),r=t.label.toLowerCase();return n>r?1:r>n?-1:0},SchemaComponent.prototype.getShards=function(e){var t=this;return this.resetSchemas(),e&&this.shardService.getShards(e).subscribe(function(e){t.shards=e.map(function(e){return{label:e,value:e}}),t.shards.length>0&&(t.selectedShard=t.shards[0].value,t.getTablets(t.selectedKeyspace,t.selectedShard))}),[]},SchemaComponent.prototype.getTablets=function(e,t){var n=this;this.resetSchemas(),this.tabletService.getTabletList(e+"/"+t).subscribe(function(e){n.tablets=e.map(function(e){var t=e.cell+"-"+e.uid;return{label:t,value:t}}),n.tablets.length>0&&(n.selectedTablet=n.tablets[0].value,n.fetchSchema(n.selectedKeyspace,n.selectedTablet))})},SchemaComponent.prototype.fetchSchema=function(e,t){var n=this;this.resetSchemas(),this.resetVSchemas();var r=this.vtctlService.runCommand(["GetSchema",t]),i=this.vtctlService.runCommand(["GetVSchema",e]),o=r.combineLatest(i);o.subscribe(function(e){var t=e[0],r=e[1];if(!r.Error)if(r=JSON.parse(r.Output),"vindexes"in r){var i=Object.keys(r.vindexes).map(function(e){var t=r.vindexes[e].type,n=r.vindexes[e].params?r.vindexes[e].params:"",i=r.vindexes[e].owner?r.vindexes[e].owner:"";return{name:e,type:t,params:n,owner:i}});n.vSchemas=i}else n.vSchemas=[];if(!t.Error)if(t=JSON.parse(t.Output),"table_definitions"in t)if(!r.Error&&"tables"in r){var o=n.createVindexMap(r.tables);n.schemas=t.table_definitions.map(function(e){return n.parseColumns(e,o)})}else n.schemas=t.table_definitions.map(function(e){return n.parseColumns(e)});else n.schemas=[];n.selectedSchema=void 0,n.selectedVSchema=void 0})},SchemaComponent.prototype.resetSchemas=function(){this.schemas=[],this.selectedSchema=void 0},SchemaComponent.prototype.resetVSchemas=function(){this.vSchemas=[],this.selectedVSchema=void 0},SchemaComponent.prototype.createVindexMap=function(e){for(var t={},n=0,r=Object.keys(e);n=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function HeatmapComponent(e,t){this.zone=e,this.tabletService=t,this.heatmapHeight=0,this.heatmapWidth=0,this.dataMin=0,this.dataMax=0,this.showPopup=!0,this.clicked=!1}return HeatmapComponent.prototype.getRowHeight=function(){return 20},HeatmapComponent.prototype.getXLabelsRowHeight=function(){return 50},HeatmapComponent.prototype.getTotalRows=function(){return this.heatmap.KeyspaceLabel.Rowspan},HeatmapComponent.prototype.getRemainingRows=function(e){for(var t=[],n=1;n=0;n--)if(t+=this.yLabels[n].CellLabel.Rowspan,e=0;n--){if(null==this.yLabels[n].TypeLabels)return"all";for(var r=this.yLabels[n].TypeLabels.length-1;r>=0;r--)if(t+=this.yLabels[n].TypeLabels[r].Rowspan,et?e:t}),n=0===t?1:1/(1+t);this.colorscaleValue=[[0,"#000000"],[n,"#FFFFFF"],[1,"#A22417"]],this.dataMin=-1,this.dataMax=t}},HeatmapComponent.prototype.drawHeatmap=function(e){this.setupColorscale(e);var t=[{z:this.data,zmin:this.dataMin,zmax:this.dataMax,x:this.xLabels,colorscale:this.colorscaleValue,type:"heatmap",showscale:!1,hoverinfo:"none"}],n={type:"category",showgrid:!1,zeroline:!1,rangemode:"nonnegative",side:"top",ticks:""},r={showticklabels:!1,tickmode:"array",ticks:"inside",ticklen:this.heatmapWidth,tickcolor:"#000",tickvals:this.yGrid,fixedrange:!0},i={xaxis:n,yaxis:r,width:this.heatmapWidth,height:this.heatmapHeight,margin:{t:this.getXLabelsRowHeight(),b:0,r:0,l:0},showlegend:!1};Plotly.newPlot(this.name,t,i,{scrollZoom:!0,displayModeBar:!1})},o([n.i(r.Input)(),s("design:type",Object)],HeatmapComponent.prototype,"heatmap",void 0),o([n.i(r.Input)(),s("design:type",String)],HeatmapComponent.prototype,"metric",void 0),o([n.i(r.Input)(),s("design:type",String)],HeatmapComponent.prototype,"name",void 0),HeatmapComponent=o([n.i(r.Component)({selector:"vt-heatmap",template:n(890),styles:[n(877)]}),s("design:paramtypes",["function"==typeof(e="undefined"!=typeof r.NgZone&&r.NgZone)&&e||Object,"function"==typeof(t="undefined"!=typeof i.a&&i.a)&&t||Object])],HeatmapComponent);var e,t}()},function(e,t,n){"use strict";var r=n(0),i=(n.n(r),n(29)),o=(n.n(i),n(440)),s=n(189),a=n(429);n.d(t,"a",function(){return u});var l=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(){function StatusComponent(e,t,n,r,i,o){this.componentResolver=e,this.tabletService=t,this.router=n,this.route=r,this.zone=i,this.topoInfoService=o,this.heatmapDataReady=!1,this.listOfKeyspaces=[],this.mapOfKeyspaces={},this.keyspaces=[],this.cells=[],this.tabletTypes=[],this.metrics=[]}return StatusComponent.prototype.ngOnInit=function(){this.getBasicInfo()},StatusComponent.prototype.ngOnDestroy=function(){this.sub.unsubscribe()},StatusComponent.prototype.getTopologyInfo=function(e,t){var n=this;this.topoInfoService.getCombinedTopologyInfo(e,t).subscribe(function(e){var t=e.Keyspaces;n.keyspaces=[],n.keyspaces.push({label:"all",value:"all"});for(var r=0;r=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function TopoBrowserComponent(e,t){this.topoData=e,this.route=t,this.title="Topology Browser",this.node={},this.path="",this.breadcrumbs=[]}return TopoBrowserComponent.prototype.ngOnInit=function(){var e=this;this.routeSub=this.route.queryParams.subscribe(function(t){return e.getNode(t.path)})},TopoBrowserComponent.prototype.ngOnDestroy=function(){this.routeSub.unsubscribe(),this.nodeSub&&this.nodeSub.unsubscribe()},TopoBrowserComponent.prototype.childLink=function(e){return{path:this.path+"/"+e}},TopoBrowserComponent.prototype.getNode=function(e){var t=this;if(this.path="",this.breadcrumbs=[],e){this.path=e;for(var n=e.split("/"),r="",i=1;i0&&"/"===this.path.charAt(this.path.length-1)&&(e=this.path.substring(0,this.path.length-1));var t=e.split("/");return t[t.length-1]},Node}()},function(e,t,n){var r=n(96);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){var r=n(57),i=n(44),o=n(136);e.exports=function(e){return function(t,n,s){var a,l=r(t),c=i(l.length),u=o(s,c);if(e&&n!=n){for(;c>u;)if(a=l[u++],a!=a)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var r=n(95),i=n(50),o=n(133),s=n(44);e.exports=function(e,t,n,a,l){r(t);var c=i(e),u=o(c),p=s(c.length),d=l?p-1:0,h=l?-1:1;if(n<2)for(;;){if(d in u){a=u[d],d+=h;break}if(d+=h,l?d<0:p<=d)throw TypeError("Reduce of empty array with no initial value")}for(;l?d>=0:p>d;d+=h)d in u&&(a=t(a,u[d],d,c));return a}},function(e,t,n){"use strict";var r=n(95),i=n(15),o=n(681),s=[].slice,a={},l=function(e,t,n){if(!(t in a)){for(var r=[],i=0;i1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!y(f(this,t),e)}}),d&&r(u.prototype,"size",{get:function(){return f(this,t)[m]}}),u},def:function(e,t,n){var r,i,o=y(e,t);return o?o.v=n:(e._l=o={i:i=h(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[m]++,"F"!==i&&(e._i[i]=o)),e},getEntry:y,setStrong:function(e,t,n){c(e,t,function(e,n){this._t=f(e,t),this._k=n,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?u(0,n.k):"values"==t?u(0,n.v):u(0,[n.k,n.v]):(e._t=void 0,u(1))},n?"entries":"values",!n,!0),p(t)}}},function(e,t,n){"use strict";var r=n(30),i=n(109);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){var r=n(15),i=n(26).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var r=n(26).document;e.exports=r&&r.documentElement},function(e,t,n){e.exports=!n(35)&&!n(13)(function(){return 7!=Object.defineProperty(n(451)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(134),i=n(25)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},function(e,t,n){var r=n(15),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){var r=n(8);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(o){var s=e.return;throw void 0!==s&&r(s.call(e)),o}}},function(e,t,n){"use strict";var r=n(107),i=n(109),o=n(198),s={};n(65)(s,n(25)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(s,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(25)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(s){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},e(o)}catch(a){}return n}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){"use strict";var r=n(108),i=n(196),o=n(197),s=n(50),a=n(133),l=Object.assign;e.exports=!l||n(13)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r})?function(e,t){for(var n=s(e),l=arguments.length,c=1,u=i.f,p=o.f;l>c;)for(var d,h=a(arguments[c++]),f=u?r(h).concat(u(h)):r(h),m=f.length,y=0;m>y;)p.call(h,d=f[y++])&&(n[d]=h[d]);return n}:l},function(e,t,n){var r=n(30),i=n(8),o=n(108);e.exports=n(35)?Object.defineProperties:function(e,t){i(e);for(var n,s=o(t),a=s.length,l=0;a>l;)r.f(e,n=s[l++],t[n]);return e}},function(e,t,n){var r=n(57),i=n(135).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return i(e)}catch(t){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==o.call(e)?a(e):i(r(e))}},function(e,t,n){var r=n(48),i=n(57),o=n(445)(!1),s=n(300)("IE_PROTO");e.exports=function(e,t){var n,a=i(e),l=0,c=[];for(n in a)n!=s&&r(a,n)&&c.push(n);for(;t.length>l;)r(a,n=t[l++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var r=n(26).parseFloat,i=n(200).trim;e.exports=1/r(n(302)+"-0")!==-(1/0)?function(e){var t=i(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){var r=n(26).parseInt,i=n(200).trim,o=n(302),s=/^[-+]?0[xX]/;e.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(e,t){var n=i(String(e),3);return r(n,t>>>0||(s.test(n)?16:10))}:r},function(e,t,n){var r=n(110),i=n(75);e.exports=function(e){return function(t,n){var o,s,a=String(i(t)),l=r(n),c=a.length;return l<0||l>=c?e?"":void 0:(o=a.charCodeAt(l),o<55296||o>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?e?a.charAt(l):o:e?a.slice(l,l+2):(o-55296<<10)+(s-56320)+65536)}}},function(e,t,n){"use strict";var r=n(110),i=n(75);e.exports=function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},function(e,t,n){t.f=n(25)},function(e,t,n){var r=n(448),i=n(25)("iterator"),o=n(134);e.exports=n(24).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){"use strict";var r=n(132),i=n(459),o=n(134),s=n(57);e.exports=n(294)(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):"keys"==t?i(0,n):"values"==t?i(0,e[n]):i(0,[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";var r=n(449),i=n(138),o="Map";e.exports=n(287)(o,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(i(this,o),e);return t&&t.v},set:function(e,t){return r.def(i(this,o),0===e?0:e,t)}},r,!0)},function(e,t,n){n(35)&&"g"!=/./g.flags&&n(30).f(RegExp.prototype,"flags",{configurable:!0,get:n(290)})},function(e,t,n){n(193)("match",1,function(e,t,n){return[function(n){"use strict";var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},n]})},function(e,t,n){n(193)("replace",2,function(e,t,n){return[function(r,i){"use strict";var o=e(this),s=void 0==r?void 0:r[t];return void 0!==s?s.call(r,o,i):n.call(String(o),r,i)},n]})},function(e,t,n){n(193)("search",1,function(e,t,n){return[function(n){"use strict";var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},n]})},function(e,t,n){n(193)("split",2,function(e,t,r){"use strict";var i=n(293),o=r,s=[].push,a="split",l="length",c="lastIndex";if("c"=="abbc"[a](/(b)*/)[1]||4!="test"[a](/(?:)/,-1)[l]||2!="ab"[a](/(?:ab)*/)[l]||4!="."[a](/(.?)(.?)/)[l]||"."[a](/()()/)[l]>1||""[a](/.?/)[l]){var u=void 0===/()??/.exec("")[1];r=function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!i(e))return o.call(n,e,t);var r,a,p,d,h,f=[],m=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),y=0,v=void 0===t?4294967295:t>>>0,g=new RegExp(e.source,m+"g");for(u||(r=new RegExp("^"+g.source+"$(?!\\s)",m));(a=g.exec(n))&&(p=a.index+a[0][l],!(p>y&&(f.push(n.slice(y,a.index)),!u&&a[l]>1&&a[0].replace(r,function(){for(h=1;h1&&a.index=v)));)g[c]===a.index&&g[c]++;return y===n[l]?!d&&g.test("")||f.push(""):f.push(n.slice(y)),f[l]>v?f.slice(0,v):f}}else"0"[a](void 0,0)[l]&&(r=function(e,t){return void 0===e&&0===t?[]:o.call(this,e,t)});return[function(n,i){var o=e(this),s=void 0==n?void 0:n[t];return void 0!==s?s.call(n,o,i):r.call(String(o),n,i)},r]})},function(e,t,n){"use strict";var r=n(449),i=n(138),o="Set";e.exports=n(287)(o,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(i(this,o),e=0===e?0:e,e)}},r)},function(e,t,n){"use strict";var r=n(26),i=n(48),o=n(35),s=n(2),a=n(39),l=n(76).KEY,c=n(13),u=n(199),p=n(198),d=n(137),h=n(25),f=n(469),m=n(685),y=n(680),v=n(292),g=n(8),b=n(15),_=n(57),S=n(97),w=n(109),C=n(107),E=n(463),T=n(77),R=n(30),P=n(108),x=T.f,M=R.f,I=E.f,A=r.Symbol,k=r.JSON,O=k&&k.stringify,D="prototype",N=h("_hidden"),V=h("toPrimitive"),L={}.propertyIsEnumerable,F=u("symbol-registry"),j=u("symbols"),B=u("op-symbols"),W=Object[D],H="function"==typeof A,U=r.QObject,z=!U||!U[D]||!U[D].findChild,G=o&&c(function(){return 7!=C(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=x(W,t);r&&delete W[t],M(e,t,n),r&&e!==W&&M(W,t,r)}:M,q=function(e){var t=j[e]=C(A[D]);return t._k=e,t},K=H&&"symbol"==typeof A.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof A},$=function(e,t,n){return e===W&&$(B,t,n),g(e),t=S(t,!0),g(n),i(j,t)?(n.enumerable?(i(e,N)&&e[N][t]&&(e[N][t]=!1),n=C(n,{enumerable:w(0,!1)})):(i(e,N)||M(e,N,w(1,{})),e[N][t]=!0),G(e,t,n)):M(e,t,n)},X=function(e,t){g(e);for(var n,r=y(t=_(t)),i=0,o=r.length;o>i;)$(e,n=r[i++],t[n]);return e},Q=function(e,t){return void 0===t?C(e):X(C(e),t)},Y=function(e){var t=L.call(this,e=S(e,!0));return!(this===W&&i(j,e)&&!i(B,e))&&(!(t||!i(this,e)||!i(j,e)||i(this,N)&&this[N][e])||t)},Z=function(e,t){if(e=_(e),t=S(t,!0),e!==W||!i(j,t)||i(B,t)){var n=x(e,t);return!n||!i(j,t)||i(e,N)&&e[N][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=I(_(e)),r=[],o=0;n.length>o;)i(j,t=n[o++])||t==N||t==l||r.push(t);return r},ee=function(e){for(var t,n=e===W,r=I(n?B:_(e)),o=[],s=0;r.length>s;)!i(j,t=r[s++])||n&&!i(W,t)||o.push(j[t]);return o};H||(A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===W&&t.call(B,n),i(this,N)&&i(this[N],e)&&(this[N][e]=!1),G(this,e,w(1,n))};return o&&z&&G(W,e,{configurable:!0,set:t}),q(e)},a(A[D],"toString",function(){return this._k}),T.f=Z,R.f=$,n(135).f=E.f=J,n(197).f=Y,n(196).f=ee,o&&!n(195)&&a(W,"propertyIsEnumerable",Y,!0),f.f=function(e){return q(h(e))}),s(s.G+s.W+s.F*!H,{Symbol:A});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)h(te[ne++]);for(var re=P(h.store),ie=0;re.length>ie;)m(re[ie++]);s(s.S+s.F*!H,"Symbol",{"for":function(e){return i(F,e+="")?F[e]:F[e]=A(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){z=!0},useSimple:function(){z=!1}}),s(s.S+s.F*!H,"Object",{create:Q,defineProperty:$,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),k&&s(s.S+s.F*(!H||c(function(){var e=A();return"[null]"!=O([e])||"{}"!=O({a:e})||"{}"!=O(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!K(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,O.apply(k,r)}}),A[D][V]||n(65)(A[D],V,A[D].valueOf),p(A,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},function(e,t,n){for(var r=n(471),i=n(108),o=n(39),s=n(26),a=n(65),l=n(134),c=n(25),u=c("iterator"),p=c("toStringTag"),d=l.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=i(h),m=0;mt&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r},ReplaySubject}(i.Subject);t.ReplaySubject=a;var l=function(){function ReplayEvent(e,t){this.time=e,this.value=t}return ReplayEvent}()},function(e,t,n){"use strict";var r=n(20);t.Subject=r.Subject;var i=n(1);t.Observable=i.Observable,n(900),n(901),n(902),n(903),n(904),n(905),n(485),n(906),n(907),n(908),n(909),n(486),n(910),n(912),n(911),n(487),n(913),n(488),n(914),n(915),n(918),n(919),n(920),n(921),n(922),n(923),n(209),n(924),n(489),n(925),n(304),n(926),n(927),n(928),n(933),n(929),n(490),n(930),n(931),n(932),n(491),n(492),n(934),n(494),n(495),n(496),n(935),n(936),n(916),n(917),n(497),n(937),n(493),n(140),n(938),n(939),n(498),n(305),n(499),n(940),n(941),n(942),n(943),n(944),n(945),n(946),n(948),n(947),n(949),n(500),n(950),n(951),n(952),n(953),n(954),n(955),n(501),n(956),n(957),n(958),n(959),n(960),n(961),n(962),n(306),n(963),n(964),n(965),n(966),n(967),n(968),n(969),n(970),n(971),n(972),n(307),n(973),n(974),n(975),n(976),n(977),n(978),n(979),n(980);var o=n(898);t.Operator=o.Operator;var s=n(41);t.Subscription=s.Subscription;var a=n(6);t.Subscriber=a.Subscriber;var l=n(206);t.AsyncSubject=l.AsyncSubject;var c=n(483);t.ReplaySubject=c.ReplaySubject;var u=n(207);t.BehaviorSubject=u.BehaviorSubject;var p=n(502);t.ConnectableObservable=p.ConnectableObservable;var d=n(208);t.Notification=d.Notification;var h=n(143);t.EmptyError=h.EmptyError;var f=n(316);t.ArgumentOutOfRangeError=f.ArgumentOutOfRangeError;var m=n(317);t.ObjectUnsubscribedError=m.ObjectUnsubscribedError;var y=n(513);t.UnsubscriptionError=y.UnsubscriptionError;var v=n(511),g=n(45),b=n(512),_=n(215),S=n(214),w=n(142),C={asap:v.asap,async:g.async,queue:b.queue};t.Scheduler=C;var E={rxSubscriber:_.$$rxSubscriber,observable:S.$$observable,iterator:w.$$iterator};t.Symbol=E},function(e,t,n){"use strict";var r=n(1),i=n(503);r.Observable.forkJoin=i.forkJoin},function(e,t,n){"use strict";var r=n(1),i=n(1003);r.Observable.interval=i.interval},function(e,t,n){"use strict";var r=n(1),i=n(141);r.Observable.of=i.of},function(e,t,n){"use strict";var r=n(1),i=n(1007);r.Observable.throw=i._throw},function(e,t,n){"use strict";var r=n(1),i=n(310);r.Observable.prototype.combineLatest=i.combineLatest},function(e,t,n){"use strict";var r=n(1),i=n(1025);r.Observable.prototype.debounceTime=i.debounceTime},function(e,t,n){"use strict";var r=n(1),i=n(1030);r.Observable.prototype.distinctUntilChanged=i.distinctUntilChanged},function(e,t,n){"use strict";var r=n(1),i=n(1031);r.Observable.prototype.do=i._do},function(e,t,n){"use strict";var r=n(1),i=n(1032);r.Observable.prototype.every=i.every},function(e,t,n){"use strict";var r=n(1),i=n(504);r.Observable.prototype.filter=i.filter},function(e,t,n){"use strict";var r=n(1),i=n(1034);r.Observable.prototype.finally=i._finally},function(e,t,n){"use strict";var r=n(1),i=n(1035);r.Observable.prototype.first=i.first},function(e,t,n){"use strict";var r=n(1),i=n(1038);r.Observable.prototype.last=i.last},function(e,t,n){"use strict";var r=n(1),i=n(506);r.Observable.prototype.merge=i.merge},function(e,t,n){"use strict";var r=n(1),i=n(507);r.Observable.prototype.mergeMap=i.mergeMap,r.Observable.prototype.flatMap=i.mergeMap},function(e,t,n){"use strict";var r=n(1),i=n(1047);r.Observable.prototype.reduce=i.reduce},function(e,t,n){"use strict";var r=n(1),i=n(1054);r.Observable.prototype.share=i.share},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(1),o=n(6),s=n(41),a=function(e){function ConnectableObservable(t,n){e.call(this),this.source=t,this.subjectFactory=n}return r(ConnectableObservable,e),ConnectableObservable.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},ConnectableObservable.prototype.getSubject=function(){var e=this.subject;return e&&!e.isUnsubscribed?e:this.subject=this.subjectFactory()},ConnectableObservable.prototype.connect=function(){var e=this.source,t=this.subscription;return t&&!t.isUnsubscribed?t:(t=e.subscribe(this.getSubject()),t.add(new l(this)),this.subscription=t)},ConnectableObservable.prototype.refCount=function(){return new c(this)},ConnectableObservable.prototype._closeSubscription=function(){this.subject=null,this.subscription=null},ConnectableObservable}(i.Observable);t.ConnectableObservable=a;var l=function(e){function ConnectableSubscription(t){e.call(this),this.connectable=t}return r(ConnectableSubscription,e),ConnectableSubscription.prototype._unsubscribe=function(){var e=this.connectable;e._closeSubscription(),this.connectable=null},ConnectableSubscription}(s.Subscription),c=function(e){function RefCountObservable(t,n){void 0===n&&(n=0),e.call(this),this.connectable=t,this.refCount=n}return r(RefCountObservable,e),RefCountObservable.prototype._subscribe=function(e){var t=this.connectable,n=new u(e,this),r=t.subscribe(n);return r.isUnsubscribed||1!==++this.refCount||(n.connection=this.connection=t.connect()),r},RefCountObservable}(i.Observable),u=function(e){function RefCountSubscriber(t,n){e.call(this,null),this.destination=t,this.refCountObservable=n,this.connection=n.connection,t.add(this)}return r(RefCountSubscriber,e),RefCountSubscriber.prototype._next=function(e){this.destination.next(e)},RefCountSubscriber.prototype._error=function(e){this._resetConnectable(),this.destination.error(e)},RefCountSubscriber.prototype._complete=function(){this._resetConnectable(),this.destination.complete()},RefCountSubscriber.prototype._resetConnectable=function(){var e=this.refCountObservable,t=e.connection,n=this.connection;n&&n===t&&(e.refCount=0,t.unsubscribe(),e.connection=null,this.unsubscribe())},RefCountSubscriber.prototype._unsubscribe=function(){var e=this.refCountObservable;if(0!==e.refCount&&0===--e.refCount){var t=e.connection,n=this.connection;n&&n===t&&(t.unsubscribe(),e.connection=null)}},RefCountSubscriber}(o.Subscriber)},function(e,t,n){"use strict";var r=n(986);t.forkJoin=r.ForkJoinObservable.create},function(e,t,n){"use strict";function filter(e,t){return this.lift(new o(e,t))}var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(6);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,n,r){e.call(this,t),this.predicate=n,this.thisArg=r,this.count=0,this.predicate=n}return r(FilterSubscriber,e),FilterSubscriber.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)},FilterSubscriber}(i.Subscriber)},function(e,t,n){"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 r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(6);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}(),s=function(e){function MapSubscriber(t,n,r){e.call(this,t),this.project=n,this.count=0,this.thisArg=r||this}return r(MapSubscriber,e),MapSubscriber.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)},MapSubscriber}(i.Subscriber)},function(e,t,n){"use strict";function merge(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof a&&(n=e.pop()),1===e.length?e[0]:new r.ArrayObservable(e,s).lift(new i.MergeAllOperator(n))}var r=n(79),i=n(212),o=n(98);t.merge=merge,t.mergeStatic=mergeStatic},function(e,t,n){"use strict";function mergeMap(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof t&&(n=t,t=null),this.lift(new s(e,t,n))}var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(12),o=n(11);t.mergeMap=mergeMap;var s=function(){function MergeMapOperator(e,t,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=e,this.resultSelector=t,this.concurrent=n}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,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),e.call(this,t),this.project=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return r(MergeMapSubscriber,e),MergeMapSubscriber.prototype._next=function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},MergeMapSubscriber}(o.OuterSubscriber);t.MergeMapSubscriber=a},function(e,t,n){"use strict";function mergeMapTo(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof t&&(n=t,t=null),this.lift(new s(e,t,n))}var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(11),o=n(12);t.mergeMapTo=mergeMapTo;var s=function(){function MergeMapToOperator(e,t,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.ish=e,this.resultSelector=t,this.concurrent=n}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,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),e.call(this,t),this.ish=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return r(MergeMapToSubscriber,e),MergeMapToSubscriber.prototype._next=function(e){if(this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},MergeMapToSubscriber}(i.OuterSubscriber);t.MergeMapToSubscriber=a},function(e,t,n){"use strict";function publishReplay(e,t,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===t&&(t=Number.POSITIVE_INFINITY),i.multicast.call(this,new r.ReplaySubject(e,t,n))}var r=n(483),i=n(111);t.publishReplay=publishReplay},function(e,t,n){"use strict";function race(){for(var e=[],t=0;t0?t.substring(1):t},HashLocationStrategy.prototype.prepareExternalUrl=function(e){var t=s.Location.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t},HashLocationStrategy.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+s.Location.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)},HashLocationStrategy.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+s.Location.normalizeQueryParams(r));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:i.Injectable}],HashLocationStrategy.ctorParameters=[{type:l.PlatformLocation},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[a.APP_BASE_HREF]}]}],HashLocationStrategy}(a.LocationStrategy);t.HashLocationStrategy=c},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(0),o=n(83),s=n(7),a=n(231),l=n(149),c=n(232),u=function(e){function PathLocationStrategy(t,n){if(e.call(this),this._platformLocation=t,s.isBlank(n)&&(n=this._platformLocation.getBaseHrefFromDOM()),s.isBlank(n))throw new o.BaseException("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=n}return r(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 a.Location.joinWithSlash(this._baseHref,e)},PathLocationStrategy.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.pathname+a.Location.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?""+t+n:t},PathLocationStrategy.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+a.Location.normalizeQueryParams(r));this._platformLocation.pushState(e,t,i)},PathLocationStrategy.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+a.Location.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,i)},PathLocationStrategy.prototype.forward=function(){this._platformLocation.forward()},PathLocationStrategy.prototype.back=function(){this._platformLocation.back()},PathLocationStrategy.decorators=[{type:i.Injectable}],PathLocationStrategy.ctorParameters=[{type:c.PlatformLocation},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[l.APP_BASE_HREF]}]}],PathLocationStrategy}(l.LocationStrategy);t.PathLocationStrategy=u},function(e,t,n){"use strict";var r=n(335),i=n(336),o=n(337),s=n(338),a=n(339),l=n(340),c=n(341),u=n(342),p=n(343),d=n(344);t.COMMON_PIPES=[r.AsyncPipe,d.UpperCasePipe,l.LowerCasePipe,a.JsonPipe,p.SlicePipe,c.DecimalPipe,c.PercentPipe,c.CurrencyPipe,i.DatePipe,u.ReplacePipe,o.I18nPluralPipe,s.I18nSelectPipe]},function(e,t,n){"use strict";var r,i=n(234),o=n(151),s=n(152),a=n(237),l=n(153),c=n(68),u=n(238),p=n(553),d=n(354),h=n(60),f=n(358),m=n(242),y=n(243),v=n(155),g=n(156);!function(e){e.SelectorMatcher=m.SelectorMatcher,e.CssSelector=m.CssSelector,e.AssetUrl=p.AssetUrl,e.ImportGenerator=p.ImportGenerator,e.CompileMetadataResolver=a.CompileMetadataResolver,e.HtmlParser=l.HtmlParser,e.InterpolationConfig=c.InterpolationConfig,e.DirectiveNormalizer=i.DirectiveNormalizer,e.Lexer=o.Lexer,e.Parser=s.Parser,e.ParseLocation=h.ParseLocation,e.ParseError=h.ParseError,e.ParseErrorLevel=h.ParseErrorLevel,e.ParseSourceFile=h.ParseSourceFile,e.ParseSourceSpan=h.ParseSourceSpan,e.TemplateParser=v.TemplateParser,e.DomElementSchemaRegistry=f.DomElementSchemaRegistry,e.StyleCompiler=y.StyleCompiler,e.ViewCompiler=g.ViewCompiler,e.NgModuleCompiler=u.NgModuleCompiler,e.TypeScriptEmitter=d.TypeScriptEmitter}(r=t.__compiler_private__||(t.__compiler_private__={}))},function(e,t,n){"use strict";function parseAnimationEntry(e){var t=[],n={},r=[],i=[];e.definitions.forEach(function(e){e instanceof o.CompileAnimationStateDeclarationMetadata?_parseAnimationDeclarationStates(e,t).forEach(function(e){i.push(e),n[e.stateName]=e.styles}):r.push(e)});var s=r.map(function(e){return _parseAnimationStateTransition(e,n,t)}),a=new u.AnimationEntryAst(e.name,i,s);return new y(a,t)}function _parseAnimationDeclarationStates(e,t){var n=[];e.styles.styles.forEach(function(e){a.isStringMap(e)?n.push(e):t.push(new m("State based animations cannot contain references to other states"))});var r=new u.AnimationStylesAst(n),i=e.stateNameExpr.split(/\s*,\s*/);return i.map(function(e){return new u.AnimationStateDeclarationAst(e,r)})}function _parseAnimationStateTransition(e,t,n){var r=new p.StylesCollection,i=[],o=e.stateChangeExpr.split(/\s*,\s*/);o.forEach(function(e){_parseAnimationTransitionExpr(e,n).forEach(function(e){i.push(e)})});var s=_normalizeAnimationEntry(e.steps),a=_normalizeStyleSteps(s,t,n),l=_parseTransitionAnimation(a,0,r,t,n);0==n.length&&_fillAnimationAstStartingKeyframes(l,r,n);var c=l instanceof u.AnimationSequenceAst?l:new u.AnimationSequenceAst([l]);return new u.AnimationStateTransitionAst(i,c)}function _parseAnimationTransitionExpr(e,t){var n=[],r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(!a.isPresent(r)||r.length<4)return t.push(new m("the provided "+e+" is not of a supported format")),n;var o=r[1],s=r[2],l=r[3];n.push(new u.AnimationStateTransitionExpression(o,l));var c=o==i.ANY_STATE&&l==i.ANY_STATE;return"<"!=s[0]||c||n.push(new u.AnimationStateTransitionExpression(l,o)),n}function _normalizeAnimationEntry(e){return a.isArray(e)?new o.CompileAnimationSequenceMetadata(e):e}function _normalizeStyleMetadata(e,t,n){var r=[];return e.styles.forEach(function(e){a.isString(e)?s.ListWrapper.addAll(r,_resolveStylesFromState(e,t,n)):r.push(e)}),r}function _normalizeStyleSteps(e,t,n){var r=_normalizeStyleStepEntry(e,t,n);return new o.CompileAnimationSequenceMetadata(r)}function _mergeAnimationStyles(e,t){if(a.isStringMap(t)&&e.length>0){var n=e.length-1,r=e[n];if(a.isStringMap(r))return void(e[n]=s.StringMapWrapper.merge(r,t))}e.push(t)}function _normalizeStyleStepEntry(e,t,n){var r;if(!(e instanceof o.CompileAnimationWithStepsMetadata))return[e];r=e.steps;var i,s=[];return r.forEach(function(e){if(e instanceof o.CompileAnimationStyleMetadata)a.isPresent(i)||(i=[]),_normalizeStyleMetadata(e,t,n).forEach(function(e){_mergeAnimationStyles(i,e)});else{if(a.isPresent(i)&&(s.push(new o.CompileAnimationStyleMetadata(0,i)),i=null),e instanceof o.CompileAnimationAnimateMetadata){var r=e.styles;r instanceof o.CompileAnimationStyleMetadata?r.styles=_normalizeStyleMetadata(r,t,n):r instanceof o.CompileAnimationKeyframesSequenceMetadata&&r.steps.forEach(function(e){e.styles=_normalizeStyleMetadata(e,t,n)})}else if(e instanceof o.CompileAnimationWithStepsMetadata){var l=_normalizeStyleStepEntry(e,t,n);e=e instanceof o.CompileAnimationGroupMetadata?new o.CompileAnimationGroupMetadata(l):new o.CompileAnimationSequenceMetadata(l)}s.push(e)}}),a.isPresent(i)&&s.push(new o.CompileAnimationStyleMetadata(0,i)),s}function _resolveStylesFromState(e,t,n){var r=[];if(":"!=e[0])n.push(new m('Animation states via styles must be prefixed with a ":"'));else{var i=e.substring(1),o=t[i];a.isPresent(o)?o.styles.forEach(function(e){a.isStringMap(e)&&r.push(e)}):n.push(new m('Unable to apply styles due to missing a state: "'+i+'"'))}return r}function _parseAnimationKeyframes(e,t,n,r,o){var l=e.steps.length,c=0;e.steps.forEach(function(e){return c+=a.isPresent(e.offset)?1:0}),c>0&&c=0;_--){var T=y[_],R=T[1];s.StringMapWrapper.forEach(R,function(e,t){a.isPresent(E[t])||(E[t]=e)})}return y.map(function(e){return new u.AnimationKeyframeAst(e[0],new u.AnimationStylesAst([e[1]]))})}function _parseTransitionAnimation(e,t,n,r,i){var c,p=0,d=t;if(e instanceof o.CompileAnimationWithStepsMetadata){var f,m=0,y=[],v=e instanceof o.CompileAnimationGroupMetadata;if(e.steps.forEach(function(e){var c=v?d:t;if(e instanceof o.CompileAnimationStyleMetadata)return e.styles.forEach(function(e){var t=e;s.StringMapWrapper.forEach(t,function(e,t){n.insertAtTime(t,c,e)})}),void(f=e.styles);var h=_parseTransitionAnimation(e,c,n,r,i);if(a.isPresent(f)){if(e instanceof o.CompileAnimationWithStepsMetadata){var g=new u.AnimationStylesAst(f);y.push(new u.AnimationStepAst(g,[],0,0,""))}else{var b=h;s.ListWrapper.addAll(b.startingStyles.styles,f)}f=null}var _=h.playTime;t+=_,p+=_,m=l.Math.max(_,m),y.push(h)}),a.isPresent(f)){var g=new u.AnimationStylesAst(f);y.push(new u.AnimationStepAst(g,[],0,0,""))}v?(c=new u.AnimationGroupAst(y),p=m,t=d+p):c=new u.AnimationSequenceAst(y)}else if(e instanceof o.CompileAnimationAnimateMetadata){var b,_=_parseTimeExpression(e.timings,i),S=e.styles;if(S instanceof o.CompileAnimationKeyframesSequenceMetadata)b=_parseAnimationKeyframes(S,t,n,r,i);else{var w=S,C=h,E=new u.AnimationStylesAst(w.styles),T=new u.AnimationKeyframeAst(C,E);b=[T]}c=new u.AnimationStepAst(new u.AnimationStylesAst([]),b,_.duration,_.delay,_.easing),p=_.duration+_.delay,t+=p,b.forEach(function(e){return e.styles.styles.forEach(function(e){return s.StringMapWrapper.forEach(e,function(e,r){return n.insertAtTime(r,t,e)})})})}else c=new u.AnimationStepAst(null,[],0,0,"");return c.playTime=p,c.startTime=d,c}function _fillAnimationAstStartingKeyframes(e,t,n){if(e instanceof u.AnimationStepAst&&e.keyframes.length>0){var r=e.keyframes;if(1==r.length){var i=r[0],o=_createStartKeyframeFromEndKeyframe(i,e.startTime,e.playTime,t,n);e.keyframes=[o,i]}}else e instanceof u.AnimationWithStepsAst&&e.steps.forEach(function(e){return _fillAnimationAstStartingKeyframes(e,t,n)})}function _parseTimeExpression(e,t){var n,r=/^([\.\d]+)(m?s)(?:\s+([\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?/i,i=0,o=null;if(a.isString(e)){var s=e.match(r);if(null===s)return t.push(new m('The provided timing value "'+e+'" is invalid.')),new v(0,0,null);var c=a.NumberWrapper.parseFloat(s[1]),u=s[2];"s"==u&&(c*=f),n=l.Math.floor(c);var p=s[3],d=s[4];if(a.isPresent(p)){var h=a.NumberWrapper.parseFloat(p);a.isPresent(d)&&"s"==d&&(h*=f),i=l.Math.floor(h)}var y=s[5];a.isBlank(y)||(o=y)}else n=e;return new v(n,i,o)}function _createStartKeyframeFromEndKeyframe(e,t,n,r,o){var l={},c=t+n;return e.styles.styles.forEach(function(e){s.StringMapWrapper.forEach(e,function(e,n){if("offset"!=n){var s,u,p,d=r.indexOfAtOrBeforeTime(n,t);a.isPresent(d)?(s=r.getByIndex(n,d),p=s.value,u=r.getByIndex(n,d+1)):p=i.FILL_STYLE_FLAG,a.isPresent(u)&&!u.matches(c,e)&&o.push(new m('The animated CSS property "'+n+'" unexpectedly changes between steps "'+s.time+'ms" and "'+c+'ms" at "'+u.time+'ms"')),l[n]=p}})}),new u.AnimationKeyframeAst(d,new u.AnimationStylesAst([l]))}var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(27),o=n(31),s=n(10),a=n(5),l=n(535),c=n(60),u=n(345),p=n(533),d=0,h=1,f=1e3,m=function(e){function AnimationParseError(t){e.call(this,null,t)}return r(AnimationParseError,e),AnimationParseError.prototype.toString=function(){return""+this.msg},AnimationParseError}(c.ParseError);t.AnimationParseError=m;var y=function(){function ParsedAnimationResult(e,t){this.ast=e,this.errors=t}return ParsedAnimationResult}();t.ParsedAnimationResult=y,t.parseAnimationEntry=parseAnimationEntry;var v=function(){function _AnimationTimings(e,t,n){this.duration=e,this.delay=t,this.easing=n}return _AnimationTimings}()},function(e,t,n){"use strict";var r=n(10),i=n(5),o=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}();t.StylesCollectionEntry=o;var s=function(){function StylesCollection(){this.styles={}}return StylesCollection.prototype.insertAtTime=function(e,t,n){var s=new o(t,n),a=this.styles[e];i.isPresent(a)||(a=this.styles[e]=[]);for(var l=0,c=a.length-1;c>=0;c--)if(a[c].time<=t){l=c+1;break}r.ListWrapper.insert(a,l,s)},StylesCollection.prototype.getByIndex=function(e,t){var n=this.styles[e];return i.isPresent(n)?t>=n.length?null:n[t]:null},StylesCollection.prototype.indexOfAtOrBeforeTime=function(e,t){var n=this.styles[e];if(i.isPresent(n))for(var r=n.length-1;r>=0;r--)if(n[r].time<=t)return r;return null},StylesCollection}();t.StylesCollection=s},function(e,t,n){"use strict";function __export(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function analyzeAppProvidersForDeprecatedConfiguration(e){void 0===e&&(e=[]);var t,n,i,o=[],s=[],a=[],l=[],c=r.ReflectiveInjector.resolveAndCreate(e),d=c.get(b.CompilerConfig,null);d?(o=d.platformDirectives,s=d.platformPipes,n=d.useJit,t=d.genDebugInfo,i=d.defaultEncapsulation,l.push('Passing CompilerConfig as a regular provider is deprecated. Use the "compilerOptions" parameter of "bootstrap()" or use a custom "CompilerFactory" platform provider instead.')):(o=c.get(r.PLATFORM_DIRECTIVES,[]),s=c.get(r.PLATFORM_PIPES,[])),o=p.ListWrapper.flatten(o),s=p.ListWrapper.flatten(s);var h=c.get(I.XHR,null);h&&(a.push([{provide:I.XHR,useValue:h}]),l.push('Passing XHR as regular provider is deprecated. Pass the provider via "compilerOptions" instead.')),o.length>0&&l.push("The PLATFORM_DIRECTIVES provider and CompilerConfig.platformDirectives is deprecated. Add the directives to an NgModule instead! "+("(Directives: "+o.map(function(e){return u.stringify(e)})+")")),s.length>0&&l.push("The PLATFORM_PIPES provider and CompilerConfig.platformPipes is deprecated. Add the pipes to an NgModule instead! "+("(Pipes: "+s.map(function(e){return u.stringify(e)})+")"));var f={useJit:n,useDebug:t,defaultEncapsulation:i,providers:a},m=function(){function DynamicComponent(){}return DynamicComponent.decorators=[{type:r.Component,args:[{directives:o,pipes:s,template:""}]}],DynamicComponent}();return{compilerOptions:f,moduleDeclarations:[m],deprecationMessages:l}}function _initReflector(){M.reflector.reflectionCapabilities=new M.ReflectionCapabilities}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}var r=n(0);__export(n(61));var i=n(155);t.TEMPLATE_TRANSFORMS=i.TEMPLATE_TRANSFORMS;var o=n(101);t.CompilerConfig=o.CompilerConfig,t.RenderTypes=o.RenderTypes,__export(n(31)),__export(n(549));var s=n(357);t.RuntimeCompiler=s.RuntimeCompiler,__export(n(103)),__export(n(245));var a=n(235);t.DirectiveResolver=a.DirectiveResolver;var l=n(241);t.PipeResolver=l.PipeResolver;var c=n(239);t.NgModuleResolver=c.NgModuleResolver;var u=n(5),p=n(10),d=n(155),h=n(153),f=n(234),m=n(237),y=n(243),v=n(156),g=n(238),b=n(101),_=n(357),S=n(113),w=n(358),C=n(103),E=n(152),T=n(151),R=n(235),P=n(241),x=n(239),M=n(27),I=n(245),A={get:function(e){throw new Error("No XHR implementation has been provided. Can't read the url \""+e+'"')}};t.COMPILER_PROVIDERS=[{provide:M.Reflector,useValue:M.reflector},{provide:M.ReflectorReader,useExisting:M.Reflector},{provide:I.XHR,useValue:A},M.Console,T.Lexer,E.Parser,h.HtmlParser,d.TemplateParser,f.DirectiveNormalizer,m.CompileMetadataResolver,C.DEFAULT_PACKAGE_URL_PROVIDER,y.StyleCompiler,v.ViewCompiler,g.NgModuleCompiler,{provide:b.CompilerConfig,useValue:new b.CompilerConfig},_.RuntimeCompiler,{provide:r.Compiler,useExisting:_.RuntimeCompiler},w.DomElementSchemaRegistry,{provide:S.ElementSchemaRegistry,useExisting:w.DomElementSchemaRegistry},C.UrlResolver,R.DirectiveResolver,P.PipeResolver,x.NgModuleResolver],t.analyzeAppProvidersForDeprecatedConfiguration=analyzeAppProvidersForDeprecatedConfiguration;var k=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 n=_mergeOptions(this._defaultOptions.concat(e)),i=r.ReflectiveInjector.resolveAndCreate([t.COMPILER_PROVIDERS,{provide:b.CompilerConfig,useFactory:function(){return new b.CompilerConfig({genDebugInfo:n.useDebug,useJit:n.useJit,defaultEncapsulation:n.defaultEncapsulation,logBindingUpdate:n.useDebug})},deps:[]},n.providers]);return i.get(r.Compiler)},RuntimeCompilerFactory.decorators=[{type:r.Injectable}],RuntimeCompilerFactory.ctorParameters=[{type:Array,decorators:[{type:r.Inject,args:[r.COMPILER_OPTIONS]}]}],RuntimeCompilerFactory}();t.RuntimeCompilerFactory=k,t.platformCoreDynamic=r.createPlatformFactory(r.platformCore,"coreDynamic",[{provide:r.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:r.CompilerFactory,useClass:k},{provide:r.PLATFORM_INITIALIZER,useValue:_initReflector,multi:!0}])},[1108,5],function(e,t,n){"use strict";function extractMessages(e,t,n,r){var i=new h(n,r);return i.extract(e,t)}function mergeTranslations(e,t,n,r,i){var o=new h(r,i);return o.merge(e,t,n)}function _isOpeningComment(e){return e instanceof r.Comment&&e.value&&e.value.startsWith("i18n")}function _isClosingComment(e){return e instanceof r.Comment&&e.value&&"/i18n"===e.value}function _getI18nAttr(e){return e.attrs.find(function(e){return e.name===l})||null}function _splitMeaningAndDesc(e){if(!e)return["",""];var t=e.indexOf("|");return t==-1?["",e]:[e.slice(0,t),e.slice(t+1)]}var r=n(85),i=n(350),o=n(351),s=n(537),a=n(352),l="i18n",c="i18n-",u=/^i18n:?/;t.extractMessages=extractMessages,t.mergeTranslations=mergeTranslations;var p=function(){function ExtractionResult(e,t){this.messages=e,this.errors=t}return ExtractionResult}();t.ExtractionResult=p;var d;!function(e){e[e.Extract=0]="Extract",e[e.Merge=1]="Merge"}(d||(d={}));var h=function(){function _Visitor(e,t){this._implicitTags=e,this._implicitAttrs=t,this._inI18nNode=!1,this._depth=0,this._inIcu=!1}return _Visitor.prototype.extract=function(e,t){var n=this;return this._init(d.Extract,t),e.forEach(function(e){return e.visit(n,null)}),this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new p(this._messages,this._errors)},_Visitor.prototype.merge=function(e,t,n){this._init(d.Merge,n),this._translations=t;var i=new r.Element("wrapper",[],e,null,null,null),o=i.visit(this,null);return this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),o.children},_Visitor.prototype.visitExpansionCase=function(e,t){var n=r.visitAll(this,e.expression,t);if(this._mode===d.Merge)return new r.ExpansionCase(e.value,n,e.sourceSpan,e.valueSourceSpan,e.expSourceSpan)},_Visitor.prototype.visitExpansion=function(e,t){this._mayBeAddBlockChildren(e);var n=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([e]),this._inIcu=!0);var i=r.visitAll(this,e.cases,t);return this._mode===d.Merge&&(e=new r.Expansion(e.switchValue,e.type,i,e.sourceSpan,e.switchValueSourceSpan)),this._inIcu=n,e},_Visitor.prototype.visitComment=function(e,t){var n=_isOpeningComment(e);if(n&&this._isInTranslatableSection)return void this._reportError(e,"Could not start a block inside a translatable section");var r=_isClosingComment(e);if(r&&!this._inI18nBlock)return void this._reportError(e,"Trying to close an unopened block");if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(r){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(e,this._blockChildren),this._inI18nBlock=!1;var i=this._addMessage(this._blockChildren,this._blockMeaningAndDesc);return this._translateMessage(e,i)}return void this._reportError(e,"I18N blocks should not cross element boundaries")}}else n&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=e.value.replace(u,"").trim(),this._openTranslatableSection(e))},_Visitor.prototype.visitText=function(e,t){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(e),e},_Visitor.prototype.visitElement=function(e,t){var n=this;this._mayBeAddBlockChildren(e),this._depth++;var i,o=this._inI18nNode,s=_getI18nAttr(e),a=this._implicitTags.some(function(t){ -return e.name===t});if(this._isInTranslatableSection||this._inIcu)(s||a)&&this._reportError(e,"Could not mark an element as translatable inside a translatable section"),this._mode==d.Extract&&r.visitAll(this,e.children),this._mode==d.Merge&&(i=[],e.children.forEach(function(e){var r=e.visit(n,t);r&&!n._isInTranslatableSection&&(i=i.concat(r))}));else{if(s){this._inI18nNode=!0;var l=this._addMessage(e.children,s.value);i=this._translateMessage(e,l)}else if(a){this._inI18nNode=!0;var l=this._addMessage(e.children);i=this._translateMessage(e,l)}if(this._mode==d.Extract){var c=s||a;c&&this._openTranslatableSection(e),r.visitAll(this,e.children),c&&this._closeTranslatableSection(e,e.children)}this._mode!==d.Merge||s||a||(i=[],e.children.forEach(function(e){var r=e.visit(n,t);r&&!n._isInTranslatableSection&&(i=i.concat(r))}))}if(this._visitAttributesOf(e),this._depth--,this._inI18nNode=o,this._mode===d.Merge){var u=this._translateAttributes(e);return new r.Element(e.name,u,i,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._createI18nMessage=s.createI18nMessageFactory(t)},_Visitor.prototype._visitAttributesOf=function(e){var t=this,n={},r=this._implicitAttrs[e.name]||[];e.attrs.filter(function(e){return e.name.startsWith(c)}).forEach(function(e){return n[e.name.slice(c.length)]=e.value}),e.attrs.forEach(function(e){e.name in n?t._addMessage([e],n[e.name]):r.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 r.Attribute&&!e[0].value)){var n=_splitMeaningAndDesc(t),i=n[0],o=n[1],s=this._createI18nMessage(e,i,o);return this._messages.push(s),s}},_Visitor.prototype._translateMessage=function(e,t){if(t&&this._mode===d.Merge){var n=i.digestMessage(t),r=this._translations.get(n);if(r)return r;this._reportError(e,'Translation unavailable for message id="'+n+'"')}return[]},_Visitor.prototype._translateAttributes=function(e){var t=this,n=e.attrs,o={};n.forEach(function(e){e.name.startsWith(c)&&(o[e.name.slice(c.length)]=_splitMeaningAndDesc(e.value)[0])});var s=[];return n.forEach(function(n){if(n.name!==l&&!n.name.startsWith(c))if(o.hasOwnProperty(n.name)){var a=o[n.name],u=t._createI18nMessage([n],a,""),p=i.digestMessage(u),d=t._translations.get(p);if(d)if(d[0]instanceof r.Text){var h=d[0].value;s.push(new r.Attribute(n.name,h,n.sourceSpan))}else t._reportError(e,'Unexpected translation for attribute "'+n.name+'" (id="'+p+'")');else t._reportError(e,'Translation unavailable for attribute "'+n.name+'" (id="'+p+'")')}else s.push(n)}),s},_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 n=this._msgCountAtSectionStart,i=t.reduce(function(e,t){return e+(t instanceof r.Comment?0:1)},0);if(1==i)for(var s=this._messages.length-1;s>=n;s--){var a=this._messages[s].nodes;if(!(1==a.length&&a[0]instanceof o.Text)){this._messages.splice(s,1);break}}this._msgCountAtSectionStart=void 0},_Visitor.prototype._reportError=function(e,t){this._errors.push(new a.I18nError(e.sourceSpan,t))},_Visitor}()},function(e,t,n){"use strict";function createI18nMessageFactory(e){var t=new u(c,e);return function(e,n,r){return t.toI18nMessage(e,n,r)}}function _extractPlaceholderName(e){return e.split(p)[1]}var r=n(151),i=n(152),o=n(85),s=n(353),a=n(351),l=n(540),c=new i.Parser(new r.Lexer);t.createI18nMessageFactory=createI18nMessageFactory;var u=function(){function _I18nVisitor(e,t){this._expressionParser=e,this._interpolationConfig=t}return _I18nVisitor.prototype.toI18nMessage=function(e,t,n){this._isIcu=1==e.length&&e[0]instanceof o.Expansion,this._icuDepth=0,this._placeholderRegistry=new l.PlaceholderRegistry,this._placeholderToContent={};var r=o.visitAll(this,e,{});return new a.Message(r,this._placeholderToContent,t,n)},_I18nVisitor.prototype.visitElement=function(e,t){var n=o.visitAll(this,e.children),r={};e.attrs.forEach(function(e){r[e.name]=e.value});var i=s.getHtmlTagDefinition(e.name).isVoid,l=this._placeholderRegistry.getStartTagPlaceholderName(e.name,r,i);this._placeholderToContent[l]=e.sourceSpan.toString();var c="";return i||(c=this._placeholderRegistry.getCloseTagPlaceholderName(e.name),this._placeholderToContent[c]=""),new a.TagPlaceholder(e.name,r,l,c,n,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 n=this;this._icuDepth++;var r={},i=new a.Icu(e.switchValue,e.type,r,e.sourceSpan);if(e.cases.forEach(function(e){r[e.value]=new a.Container(e.expression.map(function(e){return e.visit(n,{})}),e.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0)return i;var o=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());return this._placeholderToContent[o]=e.sourceSpan.toString(),new a.IcuPlaceholder(i,o,e.sourceSpan)},_I18nVisitor.prototype.visitExpansionCase=function(e,t){throw new Error("Unreachable code")},_I18nVisitor.prototype._visitTextWithInterpolation=function(e,t){var n=this._expressionParser.splitInterpolation(e,t.start.toString(),this._interpolationConfig);if(!n)return new a.Text(e,t);for(var r=[],i=new a.Container(r,t),o=this._interpolationConfig,s=o.start,l=o.end,c=0;c":">";return r+i+o},PlaceholderRegistry.prototype._hashClosingTag=function(e){return this._hashTag("/"+e,{},!1)},PlaceholderRegistry.prototype._generateUniqueName=function(e){var t=e,n=this._placeHolderNameCounts[t];return n?(t+="_"+n,n++):n=1,this._placeHolderNameCounts[e]=n,t},PlaceholderRegistry}();t.PlaceholderRegistry=r},function(e,t,n){"use strict";var r=n(10),i=n(542),o="messagebundle",s="msg",a="ph",l="ex",c='\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n',u=function(){function Xmb(){}return Xmb.prototype.write=function(e){var t=new p,n=new i.Tag(o);return n.children.push(new i.Text("\n")),Object.keys(e).forEach(function(r){var o=e[r],a={id:r};o.description&&(a.desc=o.description),o.meaning&&(a.meaning=o.meaning),n.children.push(new i.Text(" "),new i.Tag(s,a,t.serialize(o.nodes)),new i.Text("\n"))}),i.serialize([new i.Declaration({version:"1.0",encoding:"UTF-8"}),new i.Text("\n"),new i.Doctype(o,c),new i.Text("\n"),n])},Xmb.prototype.load=function(e,t,n){throw new Error("Unsupported")},Xmb}();t.Xmb=u;var p=function(){function _Visitor(){}return _Visitor.prototype.visitText=function(e,t){return[new i.Text(e.value)]},_Visitor.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,e.visit(n))}),r},_Visitor.prototype.visitIcu=function(e,t){var n=this,r=[new i.Text("{"+e.expression+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(t){r.push.apply(r,[new i.Text(t+" {")].concat(e.cases[t].visit(n),[new i.Text("}")]))}),r.push(new i.Text("}")),r},_Visitor.prototype.visitTagPlaceholder=function(e,t){var n=new i.Tag(l,{},[new i.Text("<"+e.tag+">")]),r=new i.Tag(a,{name:e.startName},[n]);if(e.isVoid)return[r];var o=new i.Tag(l,{},[new i.Text("")]),s=new i.Tag(a,{name:e.closeName},[o]);return[r].concat(this.serialize(e.children),[s])},_Visitor.prototype.visitPlaceholder=function(e,t){return[new i.Tag(a,{name:e.name})]},_Visitor.prototype.visitIcuPlaceholder=function(e,t){return[new i.Tag(a,{name:e.name})]},_Visitor.prototype.serialize=function(e){var t=this;return r.ListWrapper.flatten(e.map(function(e){return e.visit(t)}))},_Visitor}()},function(e,t){"use strict";function serialize(e){return e.map(function(e){return e.visit(r)}).join("")}function _escapeXml(e){return l.reduce(function(e,t){return e.replace(t[0],t[1])},e)}var n=function(){function _Visitor(){}return _Visitor.prototype.visitTag=function(e){var t=this,n=this._serializeAttributes(e.attrs);if(0==e.children.length)return"<"+e.name+n+"/>";var r=e.children.map(function(e){return e.visit(t)});return"<"+e.name+n+">"+r.join("")+""},_Visitor.prototype.visitText=function(e){return e.value},_Visitor.prototype.visitDeclaration=function(e){return""},_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""},_Visitor}(),r=new n;t.serialize=serialize;var i=function(){function Declaration(e){var t=this;this.attrs={},Object.keys(e).forEach(function(n){t.attrs[n]=_escapeXml(e[n])})}return Declaration.prototype.visit=function(e){return e.visitDeclaration(this)},Declaration}();t.Declaration=i;var o=function(){function Doctype(e,t){this.rootTag=e,this.dtd=t}return Doctype.prototype.visit=function(e){return e.visitDoctype(this)},Doctype}();t.Doctype=o;var s=function(){function Tag(e,t,n){var r=this;void 0===t&&(t={}),void 0===n&&(n=[]),this.name=e,this.children=n,this.attrs={},Object.keys(t).forEach(function(e){r.attrs[e]=_escapeXml(t[e])})}return Tag.prototype.visit=function(e){return e.visitTag(this)},Tag}();t.Tag=s;var a=function(){function Text(e){this.value=_escapeXml(e)}return Text.prototype.visit=function(e){return e.visitText(this)},Text}();t.Text=a;var l=[[/&/g,"&"],[/"/g,"""],[/'/g,"'"],[//g,">"]]},function(e,t,n){"use strict";var r=n(85),i=n(547),o=n(352),s="translationbundle",a="translation",l="ph",c=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,n){var r=this,o=(new i.XmlParser).parse(e,t);if(o.errors.length)throw new Error("xtb parse errors:\n"+o.errors.join("\n"));var s=(new u).parse(o.rootNodes,n),a=s.messages,l=s.errors;if(l.length)throw new Error("xtb parse errors:\n"+l.join("\n"));var c={},p=[];if(Object.keys(a).forEach(function(e){var n=r._htmlParser.parse(a[e],t,!0,r._interpolationConfig);p.push.apply(p,n.errors),c[e]=n.rootNodes}),p.length)throw new Error("xtb parse errors:\n"+p.join("\n"));return c},Xtb}();t.Xtb=c;var u=function(){function _Serializer(){}return _Serializer.prototype.parse=function(e,t){return this._messages={},this._bundleDepth=0,this._translationDepth=0,this._errors=[],this._placeholders=t,r.visitAll(this,e,null),{messages:this._messages,errors:this._errors}},_Serializer.prototype.visitElement=function(e,t){switch(e.name){case s:this._bundleDepth++,this._bundleDepth>1&&this._addError(e,"<"+s+"> elements can not be nested"),r.visitAll(this,e.children,null),this._bundleDepth--;break;case a:this._translationDepth++,this._translationDepth>1&&this._addError(e,"<"+a+"> elements can not be nested");var n=e.attrs.find(function(e){return"id"===e.name});n?(this._currentPlaceholders=this._placeholders[n.value]||{},this._messages[n.value]=r.visitAll(this,e.children).join("")):this._addError(e,"<"+a+'> misses the "id" attribute'),this._translationDepth--;break;case l:var i=e.attrs.find(function(e){return"name"===e.name});if(i){if(this._currentPlaceholders.hasOwnProperty(i.value))return this._currentPlaceholders[i.value];this._addError(e,'The placeholder "'+i.value+'" does not exists in the source message')}else this._addError(e,"<"+l+'> misses the "name" attribute');break;default:this._addError(e,"Unexpected tag")}},_Serializer.prototype.visitAttribute=function(e,t){throw new Error("unreachable code")},_Serializer.prototype.visitText=function(e,t){return e.value},_Serializer.prototype.visitComment=function(e,t){return""},_Serializer.prototype.visitExpansion=function(e,t){var n=this;e.cases.map(function(e){return e.visit(n,null)});return"{"+e.switchValue+", "+e.type+", strCases.join(' ')}"},_Serializer.prototype.visitExpansionCase=function(e,t){return e.value+" {"+r.visitAll(this,e.expression,null)+"}"},_Serializer.prototype._addError=function(e,t){this._errors.push(new o.I18nError(e.sourceSpan,t))},_Serializer}()},function(e,t,n){"use strict";function hasLifecycleHook(e,t){var n=s.get(e),r=a.get(e);return i.reflector.hasLifecycleHook(t,n,r)}var r=n(0),i=n(27),o=n(10),s=o.MapWrapper.createFromPairs([[i.LifecycleHooks.OnInit,r.OnInit],[i.LifecycleHooks.OnDestroy,r.OnDestroy],[i.LifecycleHooks.DoCheck,r.DoCheck],[i.LifecycleHooks.OnChanges,r.OnChanges],[i.LifecycleHooks.AfterContentInit,r.AfterContentInit],[i.LifecycleHooks.AfterContentChecked,r.AfterContentChecked],[i.LifecycleHooks.AfterViewInit,r.AfterViewInit],[i.LifecycleHooks.AfterViewChecked,r.AfterViewChecked]]),a=o.MapWrapper.createFromPairs([[i.LifecycleHooks.OnInit,"ngOnInit"],[i.LifecycleHooks.OnDestroy,"ngOnDestroy"],[i.LifecycleHooks.DoCheck,"ngDoCheck"],[i.LifecycleHooks.OnChanges,"ngOnChanges"],[i.LifecycleHooks.AfterContentInit,"ngAfterContentInit"],[i.LifecycleHooks.AfterContentChecked,"ngAfterContentChecked"],[i.LifecycleHooks.AfterViewInit,"ngAfterViewInit"],[i.LifecycleHooks.AfterViewChecked,"ngAfterViewChecked"]]);t.hasLifecycleHook=hasLifecycleHook},function(e,t,n){"use strict";function expandNodes(e){var t=new c;return new a(o.visitAll(t,e),t.isExpanded,t.errors)}function _expandPluralForm(e,t){var n=e.cases.map(function(e){s.indexOf(e.value)!=-1||e.value.match(/^=\d+$/)||t.push(new l(e.valueSourceSpan,'Plural cases should be "=" or one of '+s.join(", ")));var n=expandNodes(e.expression);return t.push.apply(t,n.errors),new o.Element("template",[new o.Attribute("ngPluralCase",""+e.value,e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)}),r=new o.Attribute("[ngPlural]",e.switchValue,e.switchValueSourceSpan);return new o.Element("ng-container",[r],n,e.sourceSpan,e.sourceSpan,e.sourceSpan)}function _expandDefaultForm(e,t){var n=e.cases.map(function(e){var n=expandNodes(e.expression);return t.push.apply(t,n.errors),new o.Element("template",[new o.Attribute("ngSwitchCase",""+e.value,e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)}),r=new o.Attribute("[ngSwitch]",e.switchValue,e.switchValueSourceSpan);return new o.Element("ng-container",[r],n,e.sourceSpan,e.sourceSpan,e.sourceSpan)}var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(60),o=n(85),s=["zero","one","two","few","many","other"];t.expandNodes=expandNodes;var a=function(){function ExpansionResult(e,t,n){this.nodes=e,this.expanded=t,this.errors=n}return ExpansionResult}();t.ExpansionResult=a;var l=function(e){function ExpansionError(t,n){e.call(this,t,n)}return r(ExpansionError,e),ExpansionError}(i.ParseError);t.ExpansionError=l;var c=function(){function _Expander(){this.isExpanded=!1,this.errors=[]}return _Expander.prototype.visitElement=function(e,t){return new o.Element(e.name,e.attrs,o.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}()},function(e,t,n){"use strict";function tokenize(e,t,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=s.DEFAULT_INTERPOLATION_CONFIG),new f(new o.ParseSourceFile(e,t),n,r,i).tokenize()}function _unexpectedCharacterErrorMsg(e){var t=e===i.$EOF?"EOF":String.fromCharCode(e);return'Unexpected character "'+t+'"'}function _unknownEntityErrorMsg(e){return'Unknown entity "'+e+'" - use the "&#;" or "&#x;" syntax'}function isNotWhitespace(e){return!i.isWhitespace(e)||e===i.$EOF}function isNameEnd(e){return i.isWhitespace(e)||e===i.$GT||e===i.$SLASH||e===i.$SQ||e===i.$DQ||e===i.$EQ}function isPrefixEnd(e){return(ei.$9)}function isDigitEntityEnd(e){return e==i.$SEMICOLON||e==i.$EOF||!i.isAsciiHexDigit(e)}function isNamedEntityEnd(e){return e==i.$SEMICOLON||e==i.$EOF||!i.isAsciiLetter(e)}function isExpansionFormStart(e,t,n){var r=!!n&&e.indexOf(n.start,t)==t;return e.charCodeAt(t)==i.$LBRACE&&!r}function isExpansionCaseStart(e){return e===i.$EQ||i.isAsciiLetter(e)}function compareCharCodeCaseInsensitive(e,t){return toUpperCaseCharCode(e)==toUpperCaseCharCode(t)}function toUpperCaseCharCode(e){return e>=i.$a&&e<=i.$z?e-i.$a+i.$A:e}function mergeTextTokens(e){for(var t,n=[],r=0;r=this._length)throw this._createError(_unexpectedCharacterErrorMsg(i.$EOF),this._getSpan());this._peek===i.$LF?(this._line++,this._column=0):this._peek!==i.$LF&&this._peek!==i.$CR&&this._column++,this._index++,this._peek=this._index>=this._length?i.$EOF:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?i.$EOF: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 n=this._savePosition(),r=0;rr.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==t;)o.push(this._readChar(e))}return this._endToken([this._processCarriageReturns(o.join(""))],r)},_Tokenizer.prototype._consumeComment=function(e){var t=this;this._beginToken(l.COMMENT_START,e),this._requireCharCode(i.$MINUS),this._endToken([]);var n=this._consumeRawText(!1,i.$MINUS,function(){return t._attemptStr("->")});this._beginToken(l.COMMENT_END,n.sourceSpan.end),this._endToken([])},_Tokenizer.prototype._consumeCdata=function(e){var t=this;this._beginToken(l.CDATA_START,e),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,i.$RBRACKET,function(){return t._attemptStr("]>")});this._beginToken(l.CDATA_END,n.sourceSpan.end),this._endToken([])},_Tokenizer.prototype._consumeDocType=function(e){this._beginToken(l.DOC_TYPE,e),this._attemptUntilChar(i.$GT),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!==i.$COLON&&!isPrefixEnd(this._peek);)this._advance();var n;this._peek===i.$COLON?(this._advance(),t=this._input.substring(e,this._index-1),n=this._index):n=e,this._requireCharCodeUntilFn(isNameEnd,this._index===n?1:0);var r=this._input.substring(n,this._index);return[t,r]},_Tokenizer.prototype._consumeTagOpen=function(e){var t,n,r=this._savePosition();try{if(!i.isAsciiLetter(this._peek))throw this._createError(_unexpectedCharacterErrorMsg(this._peek),this._getSpan());var o=this._index;for(this._consumeTagOpenStart(e),t=this._input.substring(o,this._index),n=t.toLowerCase(),this._attemptCharCodeUntilFn(isNotWhitespace);this._peek!==i.$SLASH&&this._peek!==i.$GT;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(isNotWhitespace),this._attemptCharCode(i.$EQ)&&(this._attemptCharCodeUntilFn(isNotWhitespace),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(isNotWhitespace);this._consumeTagOpenEnd()}catch(s){if(s instanceof h)return this._restorePosition(r),this._beginToken(l.TEXT,e),void this._endToken(["<"]);throw s}var c=this._getTagDefinition(t).contentType;c===a.TagContentType.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):c===a.TagContentType.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},_Tokenizer.prototype._consumeRawTextWithTagClose=function(e,t){var n=this,r=this._consumeRawText(t,i.$LT,function(){return!!n._attemptCharCode(i.$SLASH)&&(n._attemptCharCodeUntilFn(isNotWhitespace),!!n._attemptStrCaseInsensitive(e)&&(n._attemptCharCodeUntilFn(isNotWhitespace),n._attemptCharCode(i.$GT)))});this._beginToken(l.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,e])},_Tokenizer.prototype._consumeTagOpenStart=function(e){this._beginToken(l.TAG_OPEN_START,e);var t=this._consumePrefixAndName();this._endToken(t)},_Tokenizer.prototype._consumeAttributeName=function(){this._beginToken(l.ATTR_NAME);var e=this._consumePrefixAndName();this._endToken(e)},_Tokenizer.prototype._consumeAttributeValue=function(){this._beginToken(l.ATTR_VALUE);var e;if(this._peek===i.$SQ||this._peek===i.$DQ){var t=this._peek;this._advance();for(var n=[];this._peek!==t;)n.push(this._readChar(!0));e=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn(isNameEnd,1),e=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(e)])},_Tokenizer.prototype._consumeTagOpenEnd=function(){var e=this._attemptCharCode(i.$SLASH)?l.TAG_OPEN_END_VOID:l.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(i.$GT),this._endToken([])},_Tokenizer.prototype._consumeTagClose=function(e){this._beginToken(l.TAG_CLOSE,e),this._attemptCharCodeUntilFn(isNotWhitespace);var t=this._consumePrefixAndName();this._attemptCharCodeUntilFn(isNotWhitespace),this._requireCharCode(i.$GT),this._endToken(t)},_Tokenizer.prototype._consumeExpansionFormStart=function(){ -this._beginToken(l.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(i.$LBRACE),this._endToken([]),this._expansionCaseStack.push(l.EXPANSION_FORM_START),this._beginToken(l.RAW_TEXT,this._getLocation());var e=this._readUntil(i.$COMMA);this._endToken([e],this._getLocation()),this._requireCharCode(i.$COMMA),this._attemptCharCodeUntilFn(isNotWhitespace),this._beginToken(l.RAW_TEXT,this._getLocation());var t=this._readUntil(i.$COMMA);this._endToken([t],this._getLocation()),this._requireCharCode(i.$COMMA),this._attemptCharCodeUntilFn(isNotWhitespace)},_Tokenizer.prototype._consumeExpansionCaseStart=function(){this._beginToken(l.EXPANSION_CASE_VALUE,this._getLocation());var e=this._readUntil(i.$LBRACE).trim();this._endToken([e],this._getLocation()),this._attemptCharCodeUntilFn(isNotWhitespace),this._beginToken(l.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(i.$LBRACE),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(isNotWhitespace),this._expansionCaseStack.push(l.EXPANSION_CASE_EXP_START)},_Tokenizer.prototype._consumeExpansionCaseEnd=function(){this._beginToken(l.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(i.$RBRACE),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(isNotWhitespace),this._expansionCaseStack.pop()},_Tokenizer.prototype._consumeExpansionFormEnd=function(){this._beginToken(l.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(i.$RBRACE),this._endToken([]),this._expansionCaseStack.pop()},_Tokenizer.prototype._consumeText=function(){var e=this._getLocation();this._beginToken(l.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===i.$LT||this._peek===i.$EOF)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(isExpansionFormStart(this._input,this._index,this._interpolationConfig))return!0;if(this._peek===i.$RBRACE&&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];t0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===l.EXPANSION_CASE_EXP_START},_Tokenizer.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===l.EXPANSION_FORM_START},_Tokenizer}()},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(154),o=n(548),s=n(154);t.ParseTreeResult=s.ParseTreeResult,t.TreeError=s.TreeError;var a=function(e){function XmlParser(){e.call(this,o.getXmlTagDefinition)}return r(XmlParser,e),XmlParser.prototype.parse=function(t,n,r){return void 0===r&&(r=!1),e.prototype.parse.call(this,t,n,r,null)},XmlParser}(i.Parser);t.XmlParser=a},function(e,t,n){"use strict";function getXmlTagDefinition(e){return o}var r=n(102),i=function(){function XmlTagDefinition(){this.closedByParent=!1,this.contentType=r.TagContentType.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}();t.XmlTagDefinition=i;var o=new i;t.getXmlTagDefinition=getXmlTagDefinition},function(e,t,n){"use strict";function _resolveViewStatements(e){return e.dependencies.forEach(function(e){if(e instanceof l.ViewFactoryDependency){var t=e;t.placeholder.moduleUrl=_ngfactoryModuleUrl(t.comp.moduleUrl)}else if(e instanceof l.ComponentFactoryDependency){var n=e;n.placeholder.name=_componentFactoryName(n.comp),n.placeholder.moduleUrl=_ngfactoryModuleUrl(n.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=_splitLastSuffix(e);return t[0]+".ngfactory"+t[1]}function _componentFactoryName(e){return e.name+"NgFactory"}function _stylesModuleUrl(e,t,n){return t?e+".shim"+n:""+e+n}function _assertComponent(e){if(!e.isComponent)throw new o.BaseException("Could not compile '"+e.type.name+"' because it is not a component.")}function _splitLastSuffix(e){var t=e.lastIndexOf(".");return t!==-1?[e.substring(0,t),e.substring(t)]:[e,""]}var r=n(31),i=n(10),o=n(18),s=n(28),a=n(17),l=n(156),c=function(){function SourceModule(e,t){this.moduleUrl=e,this.source=t}return SourceModule}();t.SourceModule=c;var u=function(){function NgModulesSummary(e){this.ngModuleByComponent=e}return NgModulesSummary}();t.NgModulesSummary=u;var p=function(){function OfflineCompiler(e,t,n,r,i,o,s){this._metadataResolver=e,this._directiveNormalizer=t,this._templateParser=n,this._styleCompiler=r,this._viewCompiler=i,this._ngModuleCompiler=o,this._outputEmitter=s}return OfflineCompiler.prototype.analyzeModules=function(e){var t=this,n=new Map;return e.forEach(function(e){var r=t._metadataResolver.getNgModuleMetadata(e);r.declaredDirectives.forEach(function(e){e.isComponent&&n.set(e.type.runtime,r)})}),new u(n)},OfflineCompiler.prototype.clearCache=function(){this._directiveNormalizer.clearCache(),this._metadataResolver.clearCache()},OfflineCompiler.prototype.compile=function(e,t,n,r){var i=this,s=_splitLastSuffix(e)[1],a=[],l=[],c=[];return l.push.apply(l,r.map(function(e){return i._compileModule(e,a)})),Promise.all(n.map(function(e){var n=i._metadataResolver.getDirectiveMetadata(e),r=t.ngModuleByComponent.get(e);if(!r)throw new o.BaseException("Cannot determine the module for component "+n.type.name+"!");return Promise.all([n].concat(r.transitiveModule.directives).map(function(e){return i._directiveNormalizer.normalizeDirective(e).asyncResult})).then(function(e){var t=e[0],n=e.slice(1);_assertComponent(t);var o=i._styleCompiler.compileComponent(t);o.externalStylesheets.forEach(function(e){c.push(i._codgenStyles(e,s))}),l.push(i._compileComponentFactory(t,s,a)),l.push(i._compileComponent(t,n,r.transitiveModule.pipes,r.schemas,o.componentStylesheet,s,a))})})).then(function(){return a.length>0&&c.unshift(i._codegenSourceModule(_ngfactoryModuleUrl(e),a,l)),c})},OfflineCompiler.prototype._compileModule=function(e,t){var n=this._metadataResolver.getNgModuleMetadata(e),r=this._ngModuleCompiler.compile(n,[]);return r.dependencies.forEach(function(e){e.placeholder.name=_componentFactoryName(e.comp),e.placeholder.moduleUrl=_ngfactoryModuleUrl(e.comp.moduleUrl)}),t.push.apply(t,r.statements),r.ngModuleFactoryVar},OfflineCompiler.prototype._compileComponentFactory=function(e,t,n){var i=r.createHostComponentMeta(e),o=this._compileComponent(i,[e],[],[],null,t,n),l=_componentFactoryName(e.type);return n.push(a.variable(l).set(a.importExpr(s.Identifiers.ComponentFactory,[a.importType(e.type)]).instantiate([a.literal(e.selector),a.variable(o),a.importExpr(e.type)],a.importType(s.Identifiers.ComponentFactory,[a.importType(e.type)],[a.TypeModifier.Const]))).toDeclStmt(null,[a.StmtModifier.Final])),l},OfflineCompiler.prototype._compileComponent=function(e,t,n,r,o,s,l){var c=this._templateParser.parse(e,e.template.template,t,n,r,e.type.name),u=o?a.variable(o.stylesVar):a.literalArr([]),p=this._viewCompiler.compileComponent(e,c,u,n);return o&&i.ListWrapper.addAll(l,_resolveStyleStatements(o,s)),i.ListWrapper.addAll(l,_resolveViewStatements(p)),p.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,n){return new c(e,this._outputEmitter.emitStatements(e,t,n))},OfflineCompiler}();t.OfflineCompiler=p},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(18),o=n(5),s=n(240),a=n(17),l=function(e){function AbstractJsEmitterVisitor(){e.call(this,!1)}return r(AbstractJsEmitterVisitor,e),AbstractJsEmitterVisitor.prototype.visitDeclareClassStmt=function(e,t){var n=this;return t.pushClass(e),this._visitClassConstructor(e,t),o.isPresent(e.parent)&&(t.print(e.name+".prototype = Object.create("),e.parent.visitExpression(this,t),t.println(".prototype);")),e.getters.forEach(function(r){return n._visitClassGetter(e,r,t)}),e.methods.forEach(function(r){return n._visitClassMethod(e,r,t)}),t.popClass(),null},AbstractJsEmitterVisitor.prototype._visitClassConstructor=function(e,t){t.print("function "+e.name+"("),o.isPresent(e.constructorMethod)&&this._visitParams(e.constructorMethod.params,t),t.println(") {"),t.incIndent(),o.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,n){n.println("Object.defineProperty("+e.name+".prototype, '"+t.name+"', { get: function() {"),n.incIndent(),t.body.length>0&&(n.println("var self = this;"),this.visitAllStatements(t.body,n)),n.decIndent(),n.println("}});")},AbstractJsEmitterVisitor.prototype._visitClassMethod=function(e,t,n){n.print(e.name+".prototype."+t.name+" = function("),this._visitParams(t.params,n),n.println(") {"),n.incIndent(),t.body.length>0&&(n.println("var self = this;"),this.visitAllStatements(t.body,n)),n.decIndent(),n.println("};")},AbstractJsEmitterVisitor.prototype.visitReadVarExpr=function(t,n){if(t.builtin===a.BuiltinVar.This)n.print("self");else{if(t.builtin===a.BuiltinVar.Super)throw new i.BaseException("'super' needs to be handled at a parent ast node, not at the variable level!");e.prototype.visitReadVarExpr.call(this,t,n)}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,n){var r=t.fn;return r instanceof a.ReadVarExpr&&r.builtin===a.BuiltinVar.Super?(n.currentClass.parent.visitExpression(this,n),n.print(".call(this"),t.args.length>0&&(n.print(", "),this.visitAllExpressions(t.args,n,",")),n.print(")")):e.prototype.visitInvokeFunctionExpr.call(this,t,n),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 ("+s.CATCH_ERROR_VAR.name+") {"),t.incIndent();var n=[s.CATCH_STACK_VAR.set(s.CATCH_ERROR_VAR.prop("stack")).toDeclStmt(null,[a.StmtModifier.Final])].concat(e.catchStmts);return this.visitAllStatements(n,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 a.BuiltinMethod.ConcatArray:t="concat";break;case a.BuiltinMethod.SubscribeObservable:t="subscribe";break;case a.BuiltinMethod.bind:t="bind";break;default:throw new i.BaseException("Unknown builtin method: "+e)}return t},AbstractJsEmitterVisitor}(s.AbstractEmitterVisitor);t.AbstractJsEmitterVisitor=l},function(e,t,n){"use strict";function interpretStatements(e,t){var n=e.concat([new s.ReturnStatement(s.variable(t))]),r=new l(null,null,null,new Map),i=new u,a=i.visitAllStatements(n,r);return o.isPresent(a)?a.value:null}function _executeFunctionStatements(e,t,n,r,i){for(var s=r.createChildWihtLocalVars(),a=0;ao();case s.BinaryOperator.BiggerEquals:return r()>=o();default:throw new i.BaseException("Unknown operator "+e.operator)}},StatementInterpreter.prototype.visitReadPropExpr=function(e,t){var n,r=e.receiver.visitExpression(this,t);return n=r[e.name]},StatementInterpreter.prototype.visitReadKeyExpr=function(e,t){var n=e.receiver.visitExpression(this,t),r=e.index.visitExpression(this,t);return n[r]},StatementInterpreter.prototype.visitLiteralArrayExpr=function(e,t){return this.visitAllExpressions(e.entries,t)},StatementInterpreter.prototype.visitLiteralMapExpr=function(e,t){var n=this,r={};return e.entries.forEach(function(e){return r[e[0]]=e[1].visitExpression(n,t)}),r},StatementInterpreter.prototype.visitAllExpressions=function(e,t){var n=this;return e.map(function(e){return e.visitExpression(n,t)})},StatementInterpreter.prototype.visitAllStatements=function(e,t){for(var n=0;n0?s.push(l):(s.length>0&&(r.push(s.join("")),n.push(R),s=[]),n.push(l)),l==E&&o++}return s.length>0&&(r.push(s.join("")),n.push(R)),new x(n.join(""),r)}var r=n(10),i=n(5),o=function(){function ShadowCss(){this.strictStyling=!0}return ShadowCss.prototype.shimCssText=function(e,t,n){return void 0===n&&(n=""),e=stripComments(e),e=this._insertDirectives(e),this._scopeCssText(e,t,n)},ShadowCss.prototype._insertDirectives=function(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)},ShadowCss.prototype._insertPolyfillDirectivesInCssText=function(e){return i.StringWrapper.replaceAllMapped(e,s,function(e){return e[1]+"{"})},ShadowCss.prototype._insertPolyfillRulesInCssText=function(e){return i.StringWrapper.replaceAllMapped(e,a,function(e){var t=e[0];return t=i.StringWrapper.replace(t,e[1],""),t=i.StringWrapper.replace(t,e[2],""),e[3]+t})},ShadowCss.prototype._scopeCssText=function(e,t,n){var r=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),i.isPresent(t)&&(e=this._scopeSelectors(e,t,n)),e=e+"\n"+r,e.trim()},ShadowCss.prototype._extractUnscopedRulesFromCssText=function(e){var t,n="";for(l.lastIndex=0;null!==(t=l.exec(e));){var r=t[0];r=i.StringWrapper.replace(r,t[2],""),r=i.StringWrapper.replace(r,t[1],t[3]),n+=r+"\n\n"}return n},ShadowCss.prototype._convertColonHost=function(e){return this._convertColonRule(e,d,this._colonHostPartReplacer)},ShadowCss.prototype._convertColonHostContext=function(e){return this._convertColonRule(e,h,this._colonHostContextPartReplacer)},ShadowCss.prototype._convertColonRule=function(e,t,n){return i.StringWrapper.replaceAllMapped(e,t,function(e){if(i.isPresent(e[2])){for(var t=e[2].split(","),r=[],o=0;o","+","~"],s=e,a="["+t+"]",l=0;l0&&!r.ListWrapper.contains(o,t)&&!i.StringWrapper.contains(t,a)){var n=t.match(/([^:]*)(:*)(.*)/);null!==n&&(e=n[1]+a+n[2]+n[3])}return e}).join(c)}return s},ShadowCss.prototype._insertPolyfillHostInCssText=function(e){return e=i.StringWrapper.replaceAll(e,_,u),e=i.StringWrapper.replaceAll(e,b,c)},ShadowCss}();t.ShadowCss=o;var s=/polyfill-next-selector[^}]*content:[\s]*?['"](.*?)['"][;\s]*}([^{]*?){/gim,a=/(polyfill-rule)[^}]*(content:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,l=/(polyfill-unscoped-rule)[^}]*(content:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,c="-shadowcsshost",u="-shadowcsscontext",p=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",d=new RegExp("("+c+p,"gim"),h=new RegExp("("+u+p,"gim"),f=c+"-no-combinator",m=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],y=/(?:>>>)|(?:\/deep\/)/g,v="([>\\s~+[.,{:][\\s\\S]*)?$",g=new RegExp(c,"im"),b=/:host/gim,_=/:host-context/gim,S=/\/\*[\s\S]*?\*\//g,w=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,C=/([{}])/g,E="{",T="}",R="%BLOCK%",P=function(){function CssRule(e,t){this.selector=e,this.content=t}return CssRule}();t.CssRule=P,t.processRules=processRules;var x=function(){function StringWithEscapedBlocks(e,t){this.escapedString=e,this.blocks=t}return StringWithEscapedBlocks}()},function(e,t,n){"use strict";function _findPipeMeta(e,t){for(var n=null,o=e.pipeMetas.length-1;o>=0;o--){var s=e.pipeMetas[o];if(s.name==t){n=s;break}}if(i.isBlank(n))throw new r.BaseException("Illegal state: Could not find pipe "+t+" although the parser should have detected this error!");return n}var r=n(18),i=n(5),o=n(28),s=n(17),a=n(114),l=function(){function CompilePipe(e,t){var n=this;this.view=e,this.meta=t,this._purePipeProxyCount=0,this.instance=s.THIS_EXPR.prop("_pipe_"+t.name+"_"+e.pipeCount++);var r=this.meta.type.diDeps.map(function(e){return e.token.equalsTo(o.identifierToken(o.Identifiers.ChangeDetectorRef))?a.getPropertyInView(s.THIS_EXPR.prop("ref"),n.view,n.view.componentView):a.injectFromViewParentInjector(e.token,!1)});this.view.fields.push(new s.ClassField(this.instance.name,s.importType(this.meta.type))),this.view.createMethod.resetDebugInfo(null,null),this.view.createMethod.addStmt(s.THIS_EXPR.prop(this.instance.name).set(s.importExpr(this.meta.type).instantiate(r)).toStmt())}return CompilePipe.call=function(e,t,n){var r,o=e.componentView,s=_findPipeMeta(o,t);return s.pure?(r=o.purePipes.get(t),i.isBlank(r)&&(r=new CompilePipe(o,s),o.purePipes.set(t,r),o.pipes.push(r))):(r=new CompilePipe(e,s),e.pipes.push(r)),r._call(e,n)},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 n=s.THIS_EXPR.prop(this.instance.name+"_"+this._purePipeProxyCount++),r=a.getPropertyInView(this.instance,e,this.view);return a.createPureProxy(r.prop("transform").callMethod(s.BuiltinMethod.bind,[r]),t.length,n,e),s.importExpr(o.Identifiers.castByValue).callFn([n,r.prop("transform")]).callFn(t)}return a.getPropertyInView(this.instance,e,this.view).callMethod("transform",t)},CompilePipe}();t.CompilePipe=l},function(e,t,n){"use strict";function collectEventListeners(e,t,n){var r=[];return e.forEach(function(e){n.view.bindings.push(new a.CompileBinding(n,e));var t=p.getOrCreate(n,e.target,e.name,r);t.addAction(e,null,null)}),t.forEach(function(e){var t=n.instances.get(o.identifierToken(e.directive.type));e.hostEvents.forEach(function(i){n.view.bindings.push(new a.CompileBinding(n,i));var o=p.getOrCreate(n,i.target,i.name,r);o.addAction(i,e.directive,t)})}),r.forEach(function(e){return e.finishMethod()}),r}function bindDirectiveOutputs(e,t,n){r.StringMapWrapper.forEach(e.directive.outputs,function(e,r){n.filter(function(t){return t.eventName==e}).forEach(function(e){e.listenToDirective(t,r)})})}function bindRenderOutputs(e){e.forEach(function(e){return e.listenToRenderer()})}function convertStmtIntoExpression(e){return e instanceof s.ExpressionStatement?e.expr:e instanceof s.ReturnStatement?e.value:null}function santitizeEventName(e){return i.StringWrapper.replaceAll(e,/[^a-zA-Z_]/g,"_")}var r=n(10),i=n(5),o=n(28),s=n(17),a=n(361),l=n(244),c=n(104),u=n(365),p=function(){function CompileEventListener(e,t,n,r){ -this.compileElement=e,this.eventTarget=t,this.eventName=n,this._hasComponentHostListener=!1,this._actionResultExprs=[],this._method=new l.CompileMethod(e.view),this._methodName="_handle_"+santitizeEventName(n)+"_"+e.nodeIndex+"_"+r,this._eventParam=new s.FnParam(c.EventHandlerVars.event.name,s.importType(this.compileElement.view.genConfig.renderTypes.renderEvent))}return CompileEventListener.getOrCreate=function(e,t,n,r){var o=r.find(function(e){return e.eventTarget==t&&e.eventName==n});return i.isBlank(o)&&(o=new CompileEventListener(e,t,n,r.length),r.push(o)),o},CompileEventListener.prototype.addAction=function(e,t,n){i.isPresent(t)&&t.isComponent&&(this._hasComponentHostListener=!0),this._method.resetDebugInfo(this.compileElement.nodeIndex,e);var r=i.isPresent(n)?n:this.compileElement.view.componentContext,o=u.convertCdStatementToIr(this.compileElement.view,r,e.handler),a=o.length-1;if(a>=0){var l=o[a],c=convertStmtIntoExpression(l),p=s.variable("pd_"+this._actionResultExprs.length);this._actionResultExprs.push(p),i.isPresent(c)&&(o[a]=p.set(c.cast(s.DYNAMIC_TYPE).notIdentical(s.literal(!1))).toDeclStmt(null,[s.StmtModifier.Final]))}this._method.addStmts(o)},CompileEventListener.prototype.finishMethod=function(){var e=this._hasComponentHostListener?this.compileElement.appElement.prop("componentView"):s.THIS_EXPR,t=s.literal(!0);this._actionResultExprs.forEach(function(e){t=t.and(e)});var n=[e.callMethod("markPathToRootAsCheckOnce",[]).toStmt()].concat(this._method.finish()).concat([new s.ReturnStatement(t)]);this.compileElement.view.eventHandlerMethods.push(new s.ClassMethod(this._methodName,[this._eventParam],n,s.BOOL_TYPE,[s.StmtModifier.Private]))},CompileEventListener.prototype.listenToRenderer=function(){var e,t=s.THIS_EXPR.callMethod("eventHandler",[s.THIS_EXPR.prop(this._methodName).callMethod(s.BuiltinMethod.bind,[s.THIS_EXPR])]);e=i.isPresent(this.eventTarget)?c.ViewProperties.renderer.callMethod("listenGlobal",[s.literal(this.eventTarget),s.literal(this.eventName),t]):c.ViewProperties.renderer.callMethod("listen",[this.compileElement.renderNode,s.literal(this.eventName),t]);var n=s.variable("disposable_"+this.compileElement.view.disposables.length);this.compileElement.view.disposables.push(n),this.compileElement.view.createMethod.addStmt(n.set(e).toDeclStmt(s.FUNCTION_TYPE,[s.StmtModifier.Private]))},CompileEventListener.prototype.listenToDirective=function(e,t){var n=s.variable("subscription_"+this.compileElement.view.subscriptions.length);this.compileElement.view.subscriptions.push(n);var r=s.THIS_EXPR.callMethod("eventHandler",[s.THIS_EXPR.prop(this._methodName).callMethod(s.BuiltinMethod.bind,[s.THIS_EXPR])]);this.compileElement.view.createMethod.addStmt(n.set(e.prop(t).callMethod(s.BuiltinMethod.SubscribeObservable,[r])).toDeclStmt(null,[s.StmtModifier.Final]))},CompileEventListener}();t.CompileEventListener=p,t.collectEventListeners=collectEventListeners,t.bindDirectiveOutputs=bindDirectiveOutputs,t.bindRenderOutputs=bindRenderOutputs},function(e,t,n){"use strict";function bindDirectiveDetectChangesLifecycleCallbacks(e,t,n){var l=n.view,c=l.detectChangesInInputsMethod,u=e.directive.type.lifecycleHooks;u.indexOf(r.LifecycleHooks.OnChanges)!==-1&&e.inputs.length>0&&c.addStmt(new i.IfStmt(o.DetectChangesVars.changes.notIdentical(i.NULL_EXPR),[t.callMethod("ngOnChanges",[o.DetectChangesVars.changes]).toStmt()])),u.indexOf(r.LifecycleHooks.OnInit)!==-1&&c.addStmt(new i.IfStmt(s.and(a),[t.callMethod("ngOnInit",[]).toStmt()])),u.indexOf(r.LifecycleHooks.DoCheck)!==-1&&c.addStmt(new i.IfStmt(a,[t.callMethod("ngDoCheck",[]).toStmt()]))}function bindDirectiveAfterContentLifecycleCallbacks(e,t,n){var o=n.view,a=e.type.lifecycleHooks,l=o.afterContentLifecycleCallbacksMethod;l.resetDebugInfo(n.nodeIndex,n.sourceAst),a.indexOf(r.LifecycleHooks.AfterContentInit)!==-1&&l.addStmt(new i.IfStmt(s,[t.callMethod("ngAfterContentInit",[]).toStmt()])),a.indexOf(r.LifecycleHooks.AfterContentChecked)!==-1&&l.addStmt(t.callMethod("ngAfterContentChecked",[]).toStmt())}function bindDirectiveAfterViewLifecycleCallbacks(e,t,n){var o=n.view,a=e.type.lifecycleHooks,l=o.afterViewLifecycleCallbacksMethod;l.resetDebugInfo(n.nodeIndex,n.sourceAst),a.indexOf(r.LifecycleHooks.AfterViewInit)!==-1&&l.addStmt(new i.IfStmt(s,[t.callMethod("ngAfterViewInit",[]).toStmt()])),a.indexOf(r.LifecycleHooks.AfterViewChecked)!==-1&&l.addStmt(t.callMethod("ngAfterViewChecked",[]).toStmt())}function bindInjectableDestroyLifecycleCallbacks(e,t,n){var i=n.view.destroyMethod;i.resetDebugInfo(n.nodeIndex,n.sourceAst),e.lifecycleHooks.indexOf(r.LifecycleHooks.OnDestroy)!==-1&&i.addStmt(t.callMethod("ngOnDestroy",[]).toStmt())}function bindPipeDestroyLifecycleCallbacks(e,t,n){var i=n.destroyMethod;e.type.lifecycleHooks.indexOf(r.LifecycleHooks.OnDestroy)!==-1&&i.addStmt(t.callMethod("ngOnDestroy",[]).toStmt())}var r=n(27),i=n(17),o=n(104),s=i.THIS_EXPR.prop("numberOfChecks").identical(new i.LiteralExpr(0)),a=i.not(o.DetectChangesVars.throwOnChange);t.bindDirectiveDetectChangesLifecycleCallbacks=bindDirectiveDetectChangesLifecycleCallbacks,t.bindDirectiveAfterContentLifecycleCallbacks=bindDirectiveAfterContentLifecycleCallbacks,t.bindDirectiveAfterViewLifecycleCallbacks=bindDirectiveAfterViewLifecycleCallbacks,t.bindInjectableDestroyLifecycleCallbacks=bindInjectableDestroyLifecycleCallbacks,t.bindPipeDestroyLifecycleCallbacks=bindPipeDestroyLifecycleCallbacks},function(e,t,n){"use strict";function createBindFieldExpr(e){return a.THIS_EXPR.prop("_expr_"+e)}function createCurrValueExpr(e){return a.variable("currVal_"+e)}function bind(e,t,n,r,i,l,c){var u=d.convertCdExpressionToIr(e,i,r,p.DetectChangesVars.valUnwrapper);if(!o.isBlank(u.expression)){if(e.fields.push(new a.ClassField(n.name,null,[a.StmtModifier.Private])),e.createMethod.addStmt(a.THIS_EXPR.prop(n.name).set(a.importExpr(s.Identifiers.UNINITIALIZED)).toStmt()),u.needsValueUnwrapper){var h=p.DetectChangesVars.valUnwrapper.callMethod("reset",[]).toStmt();c.addStmt(h)}c.addStmt(t.set(u.expression).toDeclStmt(null,[a.StmtModifier.Final]));var f=a.importExpr(s.Identifiers.checkBinding).callFn([p.DetectChangesVars.throwOnChange,n,t]);u.needsValueUnwrapper&&(f=p.DetectChangesVars.valUnwrapper.prop("hasWrappedValue").or(f)),c.addStmt(new a.IfStmt(f,l.concat([a.THIS_EXPR.prop(n.name).set(t).toStmt()])))}}function bindRenderText(e,t,n){var r=n.bindings.length;n.bindings.push(new u.CompileBinding(t,e));var i=createCurrValueExpr(r),o=createBindFieldExpr(r);n.detectChangesRenderPropertiesMethod.resetDebugInfo(t.nodeIndex,e),bind(n,i,o,e.value,n.componentContext,[a.THIS_EXPR.prop("renderer").callMethod("setText",[t.renderNode,i]).toStmt()],n.detectChangesRenderPropertiesMethod)}function bindAndWriteToRenderer(e,t,n,r){var c=n.view,p=n.renderNode;e.forEach(function(e){var d=c.bindings.length;c.bindings.push(new u.CompileBinding(n,e)),c.detectChangesRenderPropertiesMethod.resetDebugInfo(n.nodeIndex,e);var f=createBindFieldExpr(d),m=createCurrValueExpr(d),y=sanitizedValue(e,f),v=sanitizedValue(e,m),g=[];switch(e.type){case l.PropertyBindingType.Property:c.genConfig.logBindingUpdate&&g.push(logBindingUpdateStmt(p,e.name,v)),g.push(a.THIS_EXPR.prop("renderer").callMethod("setElementProperty",[p,a.literal(e.name),v]).toStmt());break;case l.PropertyBindingType.Attribute:v=v.isBlank().conditional(a.NULL_EXPR,v.callMethod("toString",[])),g.push(a.THIS_EXPR.prop("renderer").callMethod("setElementAttribute",[p,a.literal(e.name),v]).toStmt());break;case l.PropertyBindingType.Class:g.push(a.THIS_EXPR.prop("renderer").callMethod("setElementClass",[p,a.literal(e.name),v]).toStmt());break;case l.PropertyBindingType.Style:var b=v.callMethod("toString",[]);o.isPresent(e.unit)&&(b=b.plus(a.literal(e.unit))),v=v.isBlank().conditional(a.NULL_EXPR,b),g.push(a.THIS_EXPR.prop("renderer").callMethod("setElementStyle",[p,a.literal(e.name),v]).toStmt());break;case l.PropertyBindingType.Animation:var _=e.name,S=a.THIS_EXPR;r&&(S=n.appElement.prop("componentView"));var w=S.prop("componentType").prop("animations").key(a.literal(_)),C=a.literal(i.EMPTY_STATE),E=a.variable("oldRenderVar");g.push(E.set(y).toDeclStmt()),g.push(new a.IfStmt(E.equals(a.importExpr(s.Identifiers.UNINITIALIZED)),[E.set(C).toStmt()]));var T=a.variable("newRenderVar");if(g.push(T.set(v).toDeclStmt()),g.push(new a.IfStmt(T.equals(a.importExpr(s.Identifiers.UNINITIALIZED)),[T.set(C).toStmt()])),g.push(w.callFn([a.THIS_EXPR,p,E,T]).toStmt()),c.detachMethod.addStmt(w.callFn([a.THIS_EXPR,p,y,C]).toStmt()),!h.get(c)){h.set(c,!0);var R=a.THIS_EXPR.callMethod("triggerQueuedAnimations",[]).toStmt();c.afterViewLifecycleCallbacksMethod.addStmt(R),c.detachMethod.addStmt(R)}}bind(c,m,f,e.value,t,g,c.detectChangesRenderPropertiesMethod)})}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=p.ViewProperties.viewUtils.prop("sanitizer"),o=[a.importExpr(s.Identifiers.SecurityContext).prop(n),t];return i.callMethod("sanitize",o)}function bindRenderInputs(e,t){bindAndWriteToRenderer(e,t.view.componentContext,t,!1)}function bindDirectiveHostProps(e,t,n){bindAndWriteToRenderer(e.hostProperties,t,n,!0)}function bindDirectiveInputs(e,t,n){if(0!==e.inputs.length){var r=n.view,o=r.detectChangesInInputsMethod;o.resetDebugInfo(n.nodeIndex,n.sourceAst);var l=e.directive.type.lifecycleHooks,c=l.indexOf(i.LifecycleHooks.OnChanges)!==-1,d=e.directive.isComponent&&!i.isDefaultChangeDetectionStrategy(e.directive.changeDetection);c&&o.addStmt(p.DetectChangesVars.changes.set(a.NULL_EXPR).toStmt()),d&&o.addStmt(p.DetectChangesVars.changed.set(a.literal(!1)).toStmt()),e.inputs.forEach(function(e){var i=r.bindings.length;r.bindings.push(new u.CompileBinding(n,e)),o.resetDebugInfo(n.nodeIndex,e);var l=createBindFieldExpr(i),h=createCurrValueExpr(i),f=[t.prop(e.directiveName).set(h).toStmt()];c&&(f.push(new a.IfStmt(p.DetectChangesVars.changes.identical(a.NULL_EXPR),[p.DetectChangesVars.changes.set(a.literalMap([],new a.MapType(a.importType(s.Identifiers.SimpleChange)))).toStmt()])),f.push(p.DetectChangesVars.changes.key(a.literal(e.directiveName)).set(a.importExpr(s.Identifiers.SimpleChange).instantiate([l,h])).toStmt())),d&&f.push(p.DetectChangesVars.changed.set(a.literal(!0)).toStmt()),r.genConfig.logBindingUpdate&&f.push(logBindingUpdateStmt(n.renderNode,e.directiveName,h)),bind(r,h,l,e.value,r.componentContext,f,o)}),d&&o.addStmt(new a.IfStmt(p.DetectChangesVars.changed,[n.appElement.prop("componentView").callMethod("markAsCheckOnce",[]).toStmt()]))}}function logBindingUpdateStmt(e,t,n){var r=a.THIS_EXPR.prop("renderer").callMethod("setBindingDebugInfo",[e,a.literal("ng-reflect-"+c.camelCaseToDashCase(t)),n.isBlank().conditional(a.NULL_EXPR,n.callMethod("toString",[]))]).toStmt(),i=a.THIS_EXPR.prop("renderer").callMethod("setBindingDebugInfo",[e,a.literal("ng-reflect-"+c.camelCaseToDashCase(t)),a.literal("[ERROR] Exception while trying to serialize the value")]).toStmt();return new a.TryCatchStmt([r],[i])}var r=n(0),i=n(27),o=n(5),s=n(28),a=n(17),l=n(61),c=n(36),u=n(361),p=n(104),d=n(365),h=new Map;t.bindRenderText=bindRenderText,t.bindRenderInputs=bindRenderInputs,t.bindDirectiveHostProps=bindDirectiveHostProps,t.bindDirectiveInputs=bindDirectiveInputs},function(e,t,n){"use strict";function bindView(e,t){var n=new l(e);i.templateVisitAll(n,t),e.pipes.forEach(function(e){s.bindPipeDestroyLifecycleCallbacks(e.meta,e.instance,e.view)})}var r=n(28),i=n(61),o=n(557),s=n(558),a=n(559);t.bindView=bindView;var l=function(){function ViewBinderVisitor(e){this.view=e,this._nodeIndex=0}return ViewBinderVisitor.prototype.visitBoundText=function(e,t){var n=this.view.nodes[this._nodeIndex++];return a.bindRenderText(e,n,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 n=this.view.nodes[this._nodeIndex++],l=o.collectEventListeners(e.outputs,e.directives,n);return a.bindRenderInputs(e.inputs,n),o.bindRenderOutputs(l),e.directives.forEach(function(e){var t=n.instances.get(r.identifierToken(e.directive.type));a.bindDirectiveInputs(e,t,n),s.bindDirectiveDetectChangesLifecycleCallbacks(e,t,n),a.bindDirectiveHostProps(e,t,n),o.bindDirectiveOutputs(e,t,l)}),i.templateVisitAll(this,e.children,n),e.directives.forEach(function(e){var t=n.instances.get(r.identifierToken(e.directive.type));s.bindDirectiveAfterContentLifecycleCallbacks(e.directive,t,n),s.bindDirectiveAfterViewLifecycleCallbacks(e.directive,t,n)}),e.providers.forEach(function(e){var t=n.instances.get(e.token);s.bindInjectableDestroyLifecycleCallbacks(e,t,n)}),null},ViewBinderVisitor.prototype.visitEmbeddedTemplate=function(e,t){var n=this.view.nodes[this._nodeIndex++],i=o.collectEventListeners(e.outputs,e.directives,n);return e.directives.forEach(function(e){var t=n.instances.get(r.identifierToken(e.directive.type));a.bindDirectiveInputs(e,t,n),s.bindDirectiveDetectChangesLifecycleCallbacks(e,t,n),o.bindDirectiveOutputs(e,t,i),s.bindDirectiveAfterContentLifecycleCallbacks(e.directive,t,n),s.bindDirectiveAfterViewLifecycleCallbacks(e.directive,t,n)}),e.providers.forEach(function(e){var t=n.instances.get(e.token);s.bindInjectableDestroyLifecycleCallbacks(e,t,n)}),bindView(n.embeddedView,e.children),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}()},function(e,t,n){"use strict";var r=n(367),i=n(368),o=n(562),s=n(246),a=n(563),l=n(564),c=n(565),u=n(159),p=n(160),d=n(161),h=n(570),f=n(375),m=n(253),y=n(164),v=n(379),g=n(256),b=n(382),_=n(383),S=n(579),w=n(165),C=n(166),E=n(389),T=n(391),R=n(583),P=n(258),x=n(392),M=n(259),I=n(260),A=n(168);t.__core_private__={isDefaultChangeDetectionStrategy:p.isDefaultChangeDetectionStrategy,ChangeDetectorStatus:p.ChangeDetectorStatus,CHANGE_DETECTION_STRATEGY_VALUES:p.CHANGE_DETECTION_STRATEGY_VALUES,constructDependencies:m.constructDependencies,LifecycleHooks:E.LifecycleHooks,LIFECYCLE_HOOKS_VALUES:E.LIFECYCLE_HOOKS_VALUES,ReflectorReader:M.ReflectorReader,CodegenComponentFactoryResolver:y.CodegenComponentFactoryResolver,AppElement:g.AppElement,AppView:S.AppView,DebugAppView:S.DebugAppView,NgModuleInjector:b.NgModuleInjector,ViewType:w.ViewType,MAX_INTERPOLATION_VALUES:C.MAX_INTERPOLATION_VALUES,checkBinding:C.checkBinding,flattenNestedViewRenderNodes:C.flattenNestedViewRenderNodes,interpolate:C.interpolate,ViewUtils:C.ViewUtils,VIEW_ENCAPSULATION_VALUES:T.VIEW_ENCAPSULATION_VALUES,DebugContext:v.DebugContext,StaticNodeDebugInfo:v.StaticNodeDebugInfo,devModeEqual:u.devModeEqual,UNINITIALIZED:u.UNINITIALIZED,ValueUnwrapper:u.ValueUnwrapper,RenderDebugInfo:I.RenderDebugInfo,TemplateRef_:_.TemplateRef_,wtfInit:R.wtfInit,ReflectionCapabilities:x.ReflectionCapabilities,makeDecorator:A.makeDecorator,DebugDomRootRenderer:h.DebugDomRootRenderer,createProvider:f.createProvider,isProviderLiteral:f.isProviderLiteral,EMPTY_ARRAY:C.EMPTY_ARRAY,EMPTY_MAP:C.EMPTY_MAP,pureProxy1:C.pureProxy1,pureProxy2:C.pureProxy2,pureProxy3:C.pureProxy3,pureProxy4:C.pureProxy4,pureProxy5:C.pureProxy5,pureProxy6:C.pureProxy6,pureProxy7:C.pureProxy7,pureProxy8:C.pureProxy8,pureProxy9:C.pureProxy9,pureProxy10:C.pureProxy10,castByValue:C.castByValue,Console:d.Console,reflector:P.reflector,Reflector:P.Reflector,NoOpAnimationPlayer:s.NoOpAnimationPlayer,AnimationPlayer:s.AnimationPlayer,AnimationSequencePlayer:a.AnimationSequencePlayer,AnimationGroupPlayer:i.AnimationGroupPlayer,AnimationKeyframe:o.AnimationKeyframe,prepareFinalAnimationStyles:l.prepareFinalAnimationStyles,balanceAnimationKeyframes:l.balanceAnimationKeyframes,flattenStyles:l.flattenStyles,clearStyles:l.clearStyles,renderStyles:l.renderStyles,collectAndResolveStyles:l.collectAndResolveStyles,AnimationStyles:c.AnimationStyles,ANY_STATE:r.ANY_STATE,DEFAULT_STATE:r.DEFAULT_STATE,EMPTY_STATE:r.EMPTY_STATE,FILL_STYLE_FLAG:r.FILL_STYLE_FLAG}},function(e,t){"use strict";var n=function(){function AnimationKeyframe(e,t){this.offset=e,this.styles=t}return AnimationKeyframe}();t.AnimationKeyframe=n},function(e,t,n){"use strict";var r=n(4),i=n(246),o=function(){function AnimationSequencePlayer(e){var t=this;this._players=e,this._currentIndex=0,this._subscriptions=[],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 i.NoOpAnimationPlayer,r.scheduleMicroTask(function(){return t._onFinish()});else if(this._currentIndex>=this._players.length)this._activePlayer=new i.NoOpAnimationPlayer,this._onFinish();else{var n=this._players[this._currentIndex++];n.onDone(function(){return t._onNext(!0)}),this._activePlayer=n,e&&n.play()}},AnimationSequencePlayer.prototype._onFinish=function(){this._finished||(this._finished=!0,r.isPresent(this.parentPlayer)||this.destroy(),this._subscriptions.forEach(function(e){return e()}),this._subscriptions=[])},AnimationSequencePlayer.prototype.init=function(){this._players.forEach(function(e){return e.init()})},AnimationSequencePlayer.prototype.onDone=function(e){this._subscriptions.push(e)},AnimationSequencePlayer.prototype.hasStarted=function(){return this._started},AnimationSequencePlayer.prototype.play=function(){r.isPresent(this.parentPlayer)||this.init(),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}();t.AnimationSequencePlayer=o},function(e,t,n){"use strict";function prepareFinalAnimationStyles(e,t,n){void 0===n&&(n=null);var o={};return r.StringMapWrapper.forEach(t,function(e,t){o[t]=e==s.AUTO_STYLE?n:e.toString()}),r.StringMapWrapper.forEach(e,function(e,t){i.isPresent(o[t])||(o[t]=n)}),o}function balanceAnimationKeyframes(e,t,n){var o=n.length-1,a=n[0],l=flattenStyles(a.styles.styles),c={},u=!1;r.StringMapWrapper.forEach(e,function(e,t){l[t]||(l[t]=e,c[t]=e,u=!0)});var p=r.StringMapWrapper.merge({},l),d=n[o];r.ListWrapper.insert(d.styles.styles,0,t);var h=flattenStyles(d.styles.styles),f={},m=!1;return r.StringMapWrapper.forEach(p,function(e,t){i.isPresent(h[t])||(f[t]=s.AUTO_STYLE,m=!0)}),m&&d.styles.styles.push(f),r.StringMapWrapper.forEach(h,function(e,t){i.isPresent(l[t])||(c[t]=s.AUTO_STYLE,u=!0)}),u&&a.styles.styles.push(c),n}function clearStyles(e){var t={};return r.StringMapWrapper.keys(e).forEach(function(e){t[e]=null}),t}function collectAndResolveStyles(e,t){return t.map(function(t){var n={};return r.StringMapWrapper.forEach(t,function(t,r){t==o.FILL_STYLE_FLAG&&(t=e[r],i.isPresent(t)||(t=s.AUTO_STYLE)),e[r]=t,n[r]=t}),n})}function renderStyles(e,t,n){r.StringMapWrapper.forEach(n,function(n,r){t.setElementStyle(e,r,n)})}function flattenStyles(e){var t={};return e.forEach(function(e){r.StringMapWrapper.forEach(e,function(e,n){t[n]=e})}),t}var r=n(21),i=n(4),o=n(367),s=n(369);t.prepareFinalAnimationStyles=prepareFinalAnimationStyles,t.balanceAnimationKeyframes=balanceAnimationKeyframes,t.clearStyles=clearStyles,t.collectAndResolveStyles=collectAndResolveStyles,t.renderStyles=renderStyles,t.flattenStyles=flattenStyles},function(e,t){"use strict";var n=function(){function AnimationStyles(e){this.styles=e}return AnimationStyles}();t.AnimationStyles=n},function(e,t,n){"use strict";var r=n(21),i=n(4),o=function(){function ViewAnimationMap(){this._map=new r.Map,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 n=this._map.get(e);if(i.isPresent(n))return n[t]},ViewAnimationMap.prototype.findAllPlayersByElement=function(e){var t=this._map.get(e);return t?r.StringMapWrapper.values(t):[]},ViewAnimationMap.prototype.set=function(e,t,n){var r=this._map.get(e);i.isPresent(r)||(r={});var o=r[t];i.isPresent(o)&&this.remove(e,t),r[t]=n,this._allPlayers.push(n),this._map.set(e,r)},ViewAnimationMap.prototype.getAllPlayers=function(){return this._allPlayers},ViewAnimationMap.prototype.remove=function(e,t){var n=this._map.get(e);if(i.isPresent(n)){var o=n[t];delete n[t];var s=this._allPlayers.indexOf(o);r.ListWrapper.removeAt(this._allPlayers,s),r.StringMapWrapper.isEmpty(n)&&this._map.delete(e)}},ViewAnimationMap}();t.ViewAnimationMap=o},function(e,t,n){"use strict";function _iterableDiffersFactory(){return s.defaultIterableDiffers}function _keyValueDiffersFactory(){return s.defaultKeyValueDiffers}var r=n(247),i=n(248),o=n(157),s=n(158),a=n(116),l=n(255),c=n(380),u=n(166),p=n(386);t._iterableDiffersFactory=_iterableDiffersFactory,t._keyValueDiffersFactory=_keyValueDiffersFactory,t.APPLICATION_COMMON_PROVIDERS=[];var d=function(){function ApplicationModule(){}return ApplicationModule.decorators=[{type:p.NgModule,args:[{providers:[i.ApplicationRef_,{provide:i.ApplicationRef,useExisting:i.ApplicationRef_},r.ApplicationInitStatus,a.Compiler,{provide:l.ComponentResolver,useExisting:a.Compiler},o.APP_ID_RANDOM_PROVIDER,u.ViewUtils,{provide:s.IterableDiffers,useFactory:_iterableDiffersFactory},{provide:s.KeyValueDiffers,useFactory:_keyValueDiffersFactory},{provide:c.DynamicComponentLoader,useClass:c.DynamicComponentLoader_}]}]}],ApplicationModule}();t.ApplicationModule=d},function(e,t,n){"use strict";var r=n(158);t.ChangeDetectionStrategy=r.ChangeDetectionStrategy,t.ChangeDetectorRef=r.ChangeDetectorRef,t.CollectionChangeRecord=r.CollectionChangeRecord,t.DefaultIterableDiffer=r.DefaultIterableDiffer,t.IterableDiffers=r.IterableDiffers,t.KeyValueChangeRecord=r.KeyValueChangeRecord,t.KeyValueDiffers=r.KeyValueDiffers,t.SimpleChange=r.SimpleChange,t.WrappedValue=r.WrappedValue},function(e,t){"use strict";var n=function(){function ChangeDetectorRef(){}return ChangeDetectorRef}();t.ChangeDetectorRef=n},function(e,t,n){"use strict";var r=n(4),i=n(373),o=function(){function DebugDomRootRenderer(e){this._delegate=e}return DebugDomRootRenderer.prototype.renderComponent=function(e){return new s(this._delegate.renderComponent(e))},DebugDomRootRenderer}();t.DebugDomRootRenderer=o;var s=function(){function DebugDomRenderer(e){this._delegate=e}return DebugDomRenderer.prototype.selectRootElement=function(e,t){var n=this._delegate.selectRootElement(e,t),r=new i.DebugElement(n,null,t);return i.indexDebugNode(r),n},DebugDomRenderer.prototype.createElement=function(e,t,n){var r=this._delegate.createElement(e,t,n),o=new i.DebugElement(r,i.getDebugNode(e),n);return o.name=t,i.indexDebugNode(o),r},DebugDomRenderer.prototype.createViewRoot=function(e){return this._delegate.createViewRoot(e)},DebugDomRenderer.prototype.createTemplateAnchor=function(e,t){var n=this._delegate.createTemplateAnchor(e,t),r=new i.DebugNode(n,i.getDebugNode(e),t);return i.indexDebugNode(r),n},DebugDomRenderer.prototype.createText=function(e,t,n){var r=this._delegate.createText(e,t,n),o=new i.DebugNode(r,i.getDebugNode(e),n);return i.indexDebugNode(o),r},DebugDomRenderer.prototype.projectNodes=function(e,t){var n=i.getDebugNode(e);if(r.isPresent(n)&&n instanceof i.DebugElement){var o=n;t.forEach(function(e){o.addChild(i.getDebugNode(e))})}this._delegate.projectNodes(e,t)},DebugDomRenderer.prototype.attachViewAfter=function(e,t){var n=i.getDebugNode(e);if(r.isPresent(n)){var o=n.parent;if(t.length>0&&r.isPresent(o)){var s=[];t.forEach(function(e){return s.push(i.getDebugNode(e))}),o.insertChildrenAfter(n,s)}}this._delegate.attachViewAfter(e,t)},DebugDomRenderer.prototype.detachView=function(e){e.forEach(function(e){var t=i.getDebugNode(e);r.isPresent(t)&&r.isPresent(t.parent)&&t.parent.removeChild(t)}),this._delegate.detachView(e)},DebugDomRenderer.prototype.destroyView=function(e,t){t.forEach(function(e){i.removeDebugNodeFromIndex(i.getDebugNode(e))}),this._delegate.destroyView(e,t)},DebugDomRenderer.prototype.listen=function(e,t,n){var o=i.getDebugNode(e);return r.isPresent(o)&&o.listeners.push(new i.EventListener(t,n)),this._delegate.listen(e,t,n)},DebugDomRenderer.prototype.listenGlobal=function(e,t,n){return this._delegate.listenGlobal(e,t,n)},DebugDomRenderer.prototype.setElementProperty=function(e,t,n){var o=i.getDebugNode(e);r.isPresent(o)&&o instanceof i.DebugElement&&(o.properties[t]=n),this._delegate.setElementProperty(e,t,n)},DebugDomRenderer.prototype.setElementAttribute=function(e,t,n){var o=i.getDebugNode(e);r.isPresent(o)&&o instanceof i.DebugElement&&(o.attributes[t]=n),this._delegate.setElementAttribute(e,t,n)},DebugDomRenderer.prototype.setBindingDebugInfo=function(e,t,n){this._delegate.setBindingDebugInfo(e,t,n)},DebugDomRenderer.prototype.setElementClass=function(e,t,n){var o=i.getDebugNode(e);r.isPresent(o)&&o instanceof i.DebugElement&&(o.classes[t]=n),this._delegate.setElementClass(e,t,n)},DebugDomRenderer.prototype.setElementStyle=function(e,t,n){var o=i.getDebugNode(e);r.isPresent(o)&&o instanceof i.DebugElement&&(o.styles[t]=n),this._delegate.setElementStyle(e,t,n)},DebugDomRenderer.prototype.invokeElementMethod=function(e,t,n){this._delegate.invokeElementMethod(e,t,n)},DebugDomRenderer.prototype.setText=function(e,t){this._delegate.setText(e,t)},DebugDomRenderer.prototype.animate=function(e,t,n,r,i,o){return this._delegate.animate(e,t,n,r,i,o)},DebugDomRenderer}();t.DebugDomRenderer=s},function(e,t,n){"use strict";function _mapProviders(e,t){for(var n=new Array(e._proto.numberOfProviders),r=0;r0&&(this.provider0=t[0],this.keyId0=t[0].key.id),n>1&&(this.provider1=t[1],this.keyId1=t[1].key.id),n>2&&(this.provider2=t[2],this.keyId2=t[2].key.id),n>3&&(this.provider3=t[3],this.keyId3=t[3].key.id),n>4&&(this.provider4=t[4],this.keyId4=t[4].key.id),n>5&&(this.provider5=t[5],this.keyId5=t[5].key.id),n>6&&(this.provider6=t[6],this.keyId6=t[6].key.id),n>7&&(this.provider7=t[7],this.keyId7=t[7].key.id),n>8&&(this.provider8=t[8],this.keyId8=t[8].key.id),n>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 a.OutOfBoundsError(e)},ReflectiveProtoInjectorInlineStrategy.prototype.createInjectorStrategy=function(e){return new m(e,this)},ReflectiveProtoInjectorInlineStrategy}();t.ReflectiveProtoInjectorInlineStrategy=d;var h=function(){function ReflectiveProtoInjectorDynamicStrategy(e,t){this.providers=t;var n=t.length;this.keyIds=r.ListWrapper.createFixedSize(n);for(var i=0;i=this.providers.length)throw new a.OutOfBoundsError(e);return this.providers[e]},ReflectiveProtoInjectorDynamicStrategy.prototype.createInjectorStrategy=function(e){return new y(this,e)},ReflectiveProtoInjectorDynamicStrategy}();t.ReflectiveProtoInjectorDynamicStrategy=h;var f=function(){function ReflectiveProtoInjector(e){this.numberOfProviders=e.length,this._strategy=e.length>u?new h(this,e):new d(this,e)}return ReflectiveProtoInjector.fromResolvedProviders=function(e){return new ReflectiveProtoInjector(e)},ReflectiveProtoInjector.prototype.getProviderAtIndex=function(e){return this._strategy.getProviderAtIndex(e)},ReflectiveProtoInjector}();t.ReflectiveProtoInjector=f;var m=function(){function ReflectiveInjectorInlineStrategy(e,t){this.injector=e,this.protoStrategy=t,this.obj0=p,this.obj1=p,this.obj2=p,this.obj3=p,this.obj4=p,this.obj5=p,this.obj6=p,this.obj7=p,this.obj8=p,this.obj9=p}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,n=this.injector;return t.keyId0===e?(this.obj0===p&&(this.obj0=n._new(t.provider0)),this.obj0):t.keyId1===e?(this.obj1===p&&(this.obj1=n._new(t.provider1)),this.obj1):t.keyId2===e?(this.obj2===p&&(this.obj2=n._new(t.provider2)),this.obj2):t.keyId3===e?(this.obj3===p&&(this.obj3=n._new(t.provider3)),this.obj3):t.keyId4===e?(this.obj4===p&&(this.obj4=n._new(t.provider4)),this.obj4):t.keyId5===e?(this.obj5===p&&(this.obj5=n._new(t.provider5)),this.obj5):t.keyId6===e?(this.obj6===p&&(this.obj6=n._new(t.provider6)),this.obj6):t.keyId7===e?(this.obj7===p&&(this.obj7=n._new(t.provider7)),this.obj7):t.keyId8===e?(this.obj8===p&&(this.obj8=n._new(t.provider8)),this.obj8):t.keyId9===e?(this.obj9===p&&(this.obj9=n._new(t.provider9)),this.obj9):p},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 a.OutOfBoundsError(e)},ReflectiveInjectorInlineStrategy.prototype.getMaxNumberOfObjects=function(){return u},ReflectiveInjectorInlineStrategy}();t.ReflectiveInjectorInlineStrategy=m;var y=function(){function ReflectiveInjectorDynamicStrategy(e,t){this.protoStrategy=e,this.injector=t,this.objs=r.ListWrapper.createFixedSize(e.providers.length),r.ListWrapper.fill(this.objs,p)}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,n=0;n=this.objs.length)throw new a.OutOfBoundsError(e);return this.objs[e]},ReflectiveInjectorDynamicStrategy.prototype.getMaxNumberOfObjects=function(){return this.objs.length},ReflectiveInjectorDynamicStrategy}();t.ReflectiveInjectorDynamicStrategy=y;var v=function(){function ReflectiveInjector(){}return ReflectiveInjector.resolve=function(e){return c.resolveReflectiveProviders(e)},ReflectiveInjector.resolveAndCreate=function(e,t){void 0===t&&(t=null);var n=ReflectiveInjector.resolve(e);return ReflectiveInjector.fromResolvedProviders(n,t)},ReflectiveInjector.fromResolvedProviders=function(e,t){return void 0===t&&(t=null),new g(f.fromResolvedProviders(e),t)},ReflectiveInjector.fromResolvedBindings=function(e){return ReflectiveInjector.fromResolvedProviders(e)},Object.defineProperty(ReflectiveInjector.prototype,"parent",{get:function(){return i.unimplemented()},enumerable:!0,configurable:!0}),ReflectiveInjector.prototype.debugContext=function(){return null},ReflectiveInjector.prototype.resolveAndCreateChild=function(e){return i.unimplemented()},ReflectiveInjector.prototype.createChildFromResolved=function(e){return i.unimplemented()},ReflectiveInjector.prototype.resolveAndInstantiate=function(e){return i.unimplemented()},ReflectiveInjector.prototype.instantiateResolved=function(e){return i.unimplemented()},ReflectiveInjector}();t.ReflectiveInjector=v;var g=function(){function ReflectiveInjector_(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null),this._debugContext=n,this._constructionCounter=0,this._proto=e,this._parent=t,this._strategy=e._strategy.createInjectorStrategy(this)}return ReflectiveInjector_.prototype.debugContext=function(){return this._debugContext()},ReflectiveInjector_.prototype.get=function(e,t){return void 0===t&&(t=o.THROW_IF_NOT_FOUND),this._getByKey(l.ReflectiveKey.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=v.resolve(e);return this.createChildFromResolved(t)},ReflectiveInjector_.prototype.createChildFromResolved=function(e){var t=new f(e),n=new ReflectiveInjector_(t);return n._parent=this,n},ReflectiveInjector_.prototype.resolveAndInstantiate=function(e){return this.instantiateResolved(v.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 a.CyclicDependencyError(this,e.key);return this._instantiateProvider(e)},ReflectiveInjector_.prototype._instantiateProvider=function(e){if(e.multiProvider){for(var t=r.ListWrapper.createFixedSize(e.resolvedFactories.length),n=0;n0?this._getByReflectiveDependency(e,T[0]):null,r=R>1?this._getByReflectiveDependency(e,T[1]):null,o=R>2?this._getByReflectiveDependency(e,T[2]):null,s=R>3?this._getByReflectiveDependency(e,T[3]):null,l=R>4?this._getByReflectiveDependency(e,T[4]):null,c=R>5?this._getByReflectiveDependency(e,T[5]):null,u=R>6?this._getByReflectiveDependency(e,T[6]):null,p=R>7?this._getByReflectiveDependency(e,T[7]):null,d=R>8?this._getByReflectiveDependency(e,T[8]):null,h=R>9?this._getByReflectiveDependency(e,T[9]):null,f=R>10?this._getByReflectiveDependency(e,T[10]):null,m=R>11?this._getByReflectiveDependency(e,T[11]):null,y=R>12?this._getByReflectiveDependency(e,T[12]):null,v=R>13?this._getByReflectiveDependency(e,T[13]):null,g=R>14?this._getByReflectiveDependency(e,T[14]):null,b=R>15?this._getByReflectiveDependency(e,T[15]):null,_=R>16?this._getByReflectiveDependency(e,T[16]):null,S=R>17?this._getByReflectiveDependency(e,T[17]):null,w=R>18?this._getByReflectiveDependency(e,T[18]):null,C=R>19?this._getByReflectiveDependency(e,T[19]):null}catch(P){throw(P instanceof a.AbstractProviderError||P instanceof a.InstantiationError)&&P.addKey(this,e.key),P}var x;try{switch(R){case 0:x=E();break;case 1:x=E(n);break;case 2:x=E(n,r);break;case 3:x=E(n,r,o);break;case 4:x=E(n,r,o,s);break;case 5:x=E(n,r,o,s,l);break;case 6:x=E(n,r,o,s,l,c);break;case 7:x=E(n,r,o,s,l,c,u);break;case 8:x=E(n,r,o,s,l,c,u,p);break;case 9:x=E(n,r,o,s,l,c,u,p,d);break;case 10:x=E(n,r,o,s,l,c,u,p,d,h);break;case 11:x=E(n,r,o,s,l,c,u,p,d,h,f);break;case 12:x=E(n,r,o,s,l,c,u,p,d,h,f,m);break;case 13:x=E(n,r,o,s,l,c,u,p,d,h,f,m,y);break;case 14:x=E(n,r,o,s,l,c,u,p,d,h,f,m,y,v);break;case 15:x=E(n,r,o,s,l,c,u,p,d,h,f,m,y,v,g);break;case 16:x=E(n,r,o,s,l,c,u,p,d,h,f,m,y,v,g,b);break;case 17:x=E(n,r,o,s,l,c,u,p,d,h,f,m,y,v,g,b,_);break;case 18:x=E(n,r,o,s,l,c,u,p,d,h,f,m,y,v,g,b,_,S);break;case 19:x=E(n,r,o,s,l,c,u,p,d,h,f,m,y,v,g,b,_,S,w);break;case 20:x=E(n,r,o,s,l,c,u,p,d,h,f,m,y,v,g,b,_,S,w,C);break;default:throw new i.BaseException("Cannot instantiate '"+e.key.displayName+"' because it has more than 20 dependencies")}}catch(P){throw new a.InstantiationError(this,P,P.stack,e.key)}return x},ReflectiveInjector_.prototype._getByReflectiveDependency=function(e,t){return this._getByKey(t.key,t.lowerBoundVisibility,t.upperBoundVisibility,t.optional?null:o.THROW_IF_NOT_FOUND)},ReflectiveInjector_.prototype._getByKey=function(e,t,n,r){return e===b?this:n instanceof s.SelfMetadata?this._getByKeySelf(e,r):this._getByKeyDefault(e,r,t)},ReflectiveInjector_.prototype._throwOrNull=function(e,t){if(t!==o.THROW_IF_NOT_FOUND)return t;throw new a.NoProviderError(this,e)},ReflectiveInjector_.prototype._getByKeySelf=function(e,t){var n=this._strategy.getObjByKeyId(e.id);return n!==p?n:this._throwOrNull(e,t)},ReflectiveInjector_.prototype._getByKeyDefault=function(e,t,n){var r;for(r=n instanceof s.SkipSelfMetadata?this._parent:this;r instanceof ReflectiveInjector_;){var i=r,o=i._strategy.getObjByKeyId(e.id);if(o!==p)return o;r=i._parent}return null!==r?r.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_}();t.ReflectiveInjector_=g;var b=l.ReflectiveKey.get(o.Injector)},[1108,4],function(e,t,n){"use strict";var r=n(116);t.COMPILER_OPTIONS=r.COMPILER_OPTIONS,t.Compiler=r.Compiler,t.CompilerFactory=r.CompilerFactory,t.ComponentStillLoadingError=r.ComponentStillLoadingError,t.ModuleWithComponentFactories=r.ModuleWithComponentFactories;var i=n(378);t.ComponentFactory=i.ComponentFactory,t.ComponentRef=i.ComponentRef;var o=n(164);t.ComponentFactoryResolver=o.ComponentFactoryResolver,t.NoComponentFactoryError=o.NoComponentFactoryError;var s=n(255);t.ComponentResolver=s.ComponentResolver;var a=n(380);t.DynamicComponentLoader=a.DynamicComponentLoader;var l=n(381);t.ElementRef=l.ElementRef;var c=n(257);t.ExpressionChangedAfterItHasBeenCheckedException=c.ExpressionChangedAfterItHasBeenCheckedException;var u=n(382);t.NgModuleFactory=u.NgModuleFactory,t.NgModuleRef=u.NgModuleRef;var p=n(575);t.NgModuleFactoryLoader=p.NgModuleFactoryLoader;var d=n(576);t.QueryList=d.QueryList;var h=n(577);t.SystemJsNgModuleLoader=h.SystemJsNgModuleLoader;var f=n(578);t.SystemJsCmpFactoryResolver=f.SystemJsCmpFactoryResolver,t.SystemJsComponentResolver=f.SystemJsComponentResolver;var m=n(383);t.TemplateRef=m.TemplateRef;var y=n(384);t.ViewContainerRef=y.ViewContainerRef;var v=n(385);t.EmbeddedViewRef=v.EmbeddedViewRef,t.ViewRef=v.ViewRef},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(163),o=new Object,s=function(e){function ElementInjector(t,n){e.call(this),this._view=t,this._nodeIndex=n}return r(ElementInjector,e),ElementInjector.prototype.get=function(e,t){void 0===t&&(t=i.THROW_IF_NOT_FOUND);var n=o;return n===o&&(n=this._view.injectorGet(e,this._nodeIndex,o)),n===o&&(n=this._view.parentInjector.get(e,t)),n},ElementInjector}(i.Injector);t.ElementInjector=s},function(e,t){"use strict";var n=function(){function NgModuleFactoryLoader(){}return NgModuleFactoryLoader}();t.NgModuleFactoryLoader=n},function(e,t,n){"use strict";var r=n(254),i=n(21),o=n(4),s=function(){function QueryList(){this._dirty=!0,this._results=[],this._emitter=new r.EventEmitter}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[o.getSymbolIterator()]=function(){return this._results[o.getSymbolIterator()]()},QueryList.prototype.toString=function(){return this._results.toString()},QueryList.prototype.reset=function(e){this._results=i.ListWrapper.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}();t.QueryList=s},function(e,t,n){"use strict";function checkNotEmpty(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e}var r=n(46),i=n(4),o=n(116),s="#",a=".ngfactory",l="NgFactory",c=function(){function SystemJsNgModuleLoader(e){this._compiler=e}return SystemJsNgModuleLoader.prototype.load=function(e){var t=this._compiler instanceof o.Compiler;return t?this.loadFactory(e):this.loadAndCompile(e)},SystemJsNgModuleLoader.prototype.loadAndCompile=function(e){var t=this,n=e.split(s),r=n[0],o=n[1];return void 0===o&&(o="default"),i.global.System.import(r).then(function(e){return e[o]}).then(function(e){return checkNotEmpty(e,r,o)}).then(function(e){return t._compiler.compileModuleAsync(e)})},SystemJsNgModuleLoader.prototype.loadFactory=function(e){var t=e.split(s),n=t[0],r=t[1];return void 0===r&&(r="default"),i.global.System.import(n+a).then(function(e){return e[r+l]}).then(function(e){return checkNotEmpty(e,n,r)})},SystemJsNgModuleLoader.decorators=[{type:r.Injectable}],SystemJsNgModuleLoader.ctorParameters=[{type:o.Compiler}],SystemJsNgModuleLoader}();t.SystemJsNgModuleLoader=c},function(e,t,n){"use strict";var r=n(161),i=n(46),o=n(4),s=n(255),a="#",l=function(){function SystemJsComponentResolver(e,t){this._resolver=e,this._console=t}return SystemJsComponentResolver.prototype.resolveComponent=function(e){var t=this;if(o.isString(e)){this._console.warn(s.ComponentResolver.LazyLoadingDeprecationMsg);var n=e.split(a),r=n[0],i=n[1];return void 0===i&&(i="default"),o.global.System.import(r).then(function(e){return t._resolver.resolveComponent(e[i])})}return this._resolver.resolveComponent(e)},SystemJsComponentResolver.prototype.clearCache=function(){},SystemJsComponentResolver.decorators=[{type:i.Injectable}],SystemJsComponentResolver.ctorParameters=[{type:s.ComponentResolver},{type:r.Console}],SystemJsComponentResolver}();t.SystemJsComponentResolver=l;var c=".ngfactory",u="NgFactory",p=function(){function SystemJsCmpFactoryResolver(e){this._console=e}return SystemJsCmpFactoryResolver.prototype.resolveComponent=function(e){if(o.isString(e)){this._console.warn(s.ComponentResolver.LazyLoadingDeprecationMsg);var t=e.split(a),n=t[0],r=t[1];return o.global.System.import(n+c).then(function(e){return e[r+u]})}return Promise.resolve(null)},SystemJsCmpFactoryResolver.prototype.clearCache=function(){},SystemJsCmpFactoryResolver.decorators=[{type:i.Injectable}],SystemJsCmpFactoryResolver.ctorParameters=[{type:r.Console}],SystemJsCmpFactoryResolver}();t.SystemJsCmpFactoryResolver=p},function(e,t,n){"use strict";function _findLastRenderNode(e){var t;if(e instanceof p.AppElement){var n=e;if(t=n.nativeElement,l.isPresent(n.nestedViews))for(var r=n.nestedViews.length-1;r>=0;r--){var i=n.nestedViews[r];i.rootNodesOrAppElements.length>0&&(t=_findLastRenderNode(i.rootNodesOrAppElements[i.rootNodesOrAppElements.length-1]))}}else t=e;return t}var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(368),o=n(566),s=n(158),a=n(21),l=n(4),c=n(167),u=n(379),p=n(256),d=n(574),h=n(257),f=n(385),m=n(165),y=n(166),v=c.wtfCreateScope("AppView#check(ascii id)"),g=function(){function AppView(e,t,n,r,i,s,a){this.clazz=e,this.componentType=t,this.type=n,this.viewUtils=r,this.parentInjector=i,this.declarationAppElement=s,this.cdMode=a,this.contentChildren=[],this.viewChildren=[],this.viewContainerElement=null,this.numberOfChecks=0,this.animationPlayers=new o.ViewAnimationMap,this.ref=new f.ViewRef_(this),n===m.ViewType.COMPONENT||n===m.ViewType.HOST?this.renderer=r.renderComponent(t):this.renderer=s.parentView.renderer}return Object.defineProperty(AppView.prototype,"destroyed",{get:function(){return this.cdMode===s.ChangeDetectorStatus.Destroyed},enumerable:!0,configurable:!0}),AppView.prototype.cancelActiveAnimation=function(e,t,n){if(void 0===n&&(n=!1),n)this.animationPlayers.findAllPlayersByElement(e).forEach(function(e){return e.destroy()});else{var r=this.animationPlayers.find(e,t);l.isPresent(r)&&r.destroy()}},AppView.prototype.queueAnimation=function(e,t,n){var r=this;this.animationPlayers.set(e,t,n),n.onDone(function(){r.animationPlayers.remove(e,t)})},AppView.prototype.triggerQueuedAnimations=function(){this.animationPlayers.getAllPlayers().forEach(function(e){e.hasStarted()||e.play()})},AppView.prototype.create=function(e,t,n){this.context=e;var r;switch(this.type){case m.ViewType.COMPONENT:r=y.ensureSlotCount(t,this.componentType.slotCount);break;case m.ViewType.EMBEDDED:r=this.declarationAppElement.parentView.projectableNodes;break;case m.ViewType.HOST:r=t}return this._hasExternalHostElement=l.isPresent(n),this.projectableNodes=r,this.createInternal(n)},AppView.prototype.createInternal=function(e){return null},AppView.prototype.init=function(e,t,n,r){this.rootNodesOrAppElements=e,this.allNodes=t,this.disposables=n,this.subscriptions=r,this.type===m.ViewType.COMPONENT&&(this.declarationAppElement.parentView.viewChildren.push(this),this.dirtyParentQueriesInternal())},AppView.prototype.selectOrCreateHostElement=function(e,t,n){var r;return r=l.isPresent(t)?this.renderer.selectRootElement(t,n):this.renderer.createElement(null,e,n)},AppView.prototype.injectorGet=function(e,t,n){return this.injectorGetInternal(e,t,n)},AppView.prototype.injectorGetInternal=function(e,t,n){return n},AppView.prototype.injector=function(e){return l.isPresent(e)?new d.ElementInjector(this,e):this.parentInjector},AppView.prototype.destroy=function(){this._hasExternalHostElement?this.renderer.detachView(this.flatRootNodes):l.isPresent(this.viewContainerElement)&&this.viewContainerElement.detachView(this.viewContainerElement.nestedViews.indexOf(this)),this._destroyRecurse()},AppView.prototype._destroyRecurse=function(){if(this.cdMode!==s.ChangeDetectorStatus.Destroyed){for(var e=this.contentChildren,t=0;t0?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=v(this.clazz);this.cdMode!==s.ChangeDetectorStatus.Checked&&this.cdMode!==s.ChangeDetectorStatus.Errored&&(this.cdMode===s.ChangeDetectorStatus.Destroyed&&this.throwDestroyedError("detectChanges"),this.detectChangesInternal(e),this.cdMode===s.ChangeDetectorStatus.CheckOnce&&(this.cdMode=s.ChangeDetectorStatus.Checked),this.numberOfChecks++,c.wtfLeave(t))},AppView.prototype.detectChangesInternal=function(e){this.detectContentChildrenChanges(e),this.detectViewChildrenChanges(e)},AppView.prototype.detectContentChildrenChanges=function(e){for(var t=0;t=c&&n<=u||n==p))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}}var r=n(0),i=n(33),o=n(16),s=n(417),a=n(607),l=function(){function WebAnimationsDriver(){}return WebAnimationsDriver.prototype.animate=function(e,t,n,r,i,s){var l=[],c={};if(o.isPresent(t)&&t.styles.length>0&&(c=_populateStyles(e,t,{}),c.offset=0,l.push(c)),n.forEach(function(t){var n=_populateStyles(e,t.styles,c);n.offset=t.offset,l.push(n)}),1==l.length){var u=l[0];u.offset=null,l=[u,u]}var p={duration:r,delay:i,fill:"both"};return s&&(p.easing=s),new a.WebAnimationsPlayer(e,l,p)},WebAnimationsDriver}();t.WebAnimationsDriver=l;var c=48,u=57,p=46},function(e,t,n){"use strict";function _computeStyle(e,t){return s.getDOM().getComputedStyle(e)[t]}var r=n(0),i=n(33),o=n(16),s=n(23),a=function(){function WebAnimationsPlayer(e,t,n){this.element=e,this.keyframes=t,this.options=n,this._subscriptions=[],this._finished=!1,this._initialized=!1,this._started=!1,this.parentPlayer=null,this._duration=n.duration}return WebAnimationsPlayer.prototype._onFinish=function(){this._finished||(this._finished=!0,o.isPresent(this.parentPlayer)||this.destroy(),this._subscriptions.forEach(function(e){return e()}),this._subscriptions=[])},WebAnimationsPlayer.prototype.init=function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes.map(function(t){var n={};return i.StringMapWrapper.forEach(t,function(t,i){n[i]=t==r.AUTO_STYLE?_computeStyle(e.element,i):t}),n});this._player=this._triggerWebAnimation(this.element,t,this.options),this.reset(),this._player.onfinish=function(){return e._onFinish()}}},WebAnimationsPlayer.prototype._triggerWebAnimation=function(e,t,n){return e.animate(t,n)},WebAnimationsPlayer.prototype.onDone=function(e){this._subscriptions.push(e)},WebAnimationsPlayer.prototype.play=function(){this.init(),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}();t.WebAnimationsPlayer=a},99,function(e,t){"use strict";var n="undefined"!=typeof window&&window||{};t.window=n,t.document=n.document,t.location=n.location,t.gc=n.gc?function(){return n.gc()}:function(){return null},t.performance=n.performance?n.performance:null,t.Event=n.Event,t.MouseEvent=n.MouseEvent,t.KeyboardEvent=n.KeyboardEvent,t.EventTarget=n.EventTarget,t.History=n.History,t.Location=n.Location,t.EventListener=n.EventListener},function(e,t,n){"use strict";function getInertElement(){if(s)return s;a=i.getDOM();var e=a.createElement("template");if("content"in e)return e;var t=a.createHtmlDocument();if(s=a.querySelector(t,"body"),null==s){var n=a.createElement("html",t);s=a.createElement("body",t),a.appendChild(n,s),a.appendChild(t,n)}return s}function tagSet(e){for(var t={},n=0,r=e.split(",");n/g,">")}function stripCustomNsAttrs(e){a.attributeMap(e).forEach(function(t,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||a.removeAttribute(e,n)});for(var t=0,n=a.childNodesAsList(e);t")):void(this.sanitizedSomething=!0)},SanitizingHtmlSerializer.prototype.endElement=function(e){var t=a.nodeName(e).toLowerCase();f.hasOwnProperty(t)&&!l.hasOwnProperty(t)&&(this.buf.push(""))},SanitizingHtmlSerializer.prototype.chars=function(e){this.buf.push(encodeEntities(e))},SanitizingHtmlSerializer}(),_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,S=/([^\#-~ |!])/g;t.sanitizeHtml=sanitizeHtml},function(e,t,n){"use strict";function hasBalancedQuotes(e){for(var t=!0,n=!0,r=0;r0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};for(var i=t.path,o=i.split("/"),s={},a=[],l=0,c=0;c=n.length)return r;var u=n[l],p=o[c],d=p.startsWith(":");if(!d&&p!==u.path)return r;d&&(s[p.substring(1)]=u),a.push(u),l++}return t.terminal&&(e.hasChildren()||l0&&containsEmptyPathRedirectsWithNamedOutlets(e,n,r)){var i=new c.UrlSegmentGroup(t,createChildrenForEmptySegments(r,new c.UrlSegmentGroup(n,e.children)));return{segmentGroup:mergeTrivialChildren(i),slicedSegments:[]}}if(0===n.length&&containsEmptyPathRedirects(e,n,r)){var i=new c.UrlSegmentGroup(e.segments,addEmptySegmentsToChildrenIfNeeded(e,n,r,e.children));return{segmentGroup:mergeTrivialChildren(i),slicedSegments:n}}return{segmentGroup:e,slicedSegments:n}}function mergeTrivialChildren(e){if(1===e.numberOfChildren&&e.children[l.PRIMARY_OUTLET]){var t=e.children[l.PRIMARY_OUTLET];return new c.UrlSegmentGroup(e.segments.concat(t.segments),t.children)}return e}function addEmptySegmentsToChildrenIfNeeded(e,t,n,r){for(var i={},o=0,s=n;o0}function containsEmptyPathRedirects(e,t,n){return n.filter(function(n){return emptyPathRedirect(e,t,n)}).length>0}function emptyPathRedirect(e,t,n){return(!(e.hasChildren()||t.length>0)||!n.terminal&&"full"!==n.pathMatch)&&(""===n.path&&void 0!==n.redirectTo)}function getOutlet(e){return e.outlet?e.outlet:l.PRIMARY_OUTLET}n(496),n(209),n(304);var r=n(1),i=n(309),o=n(141),s=n(143),a=n(187),l=n(63),c=n(73),u=n(74),p=function(){function NoMatch(e){void 0===e&&(e=null),this.segmentGroup=e}return NoMatch}(),d=function(){function AbsoluteRedirect(e){this.segments=e}return AbsoluteRedirect}();t.applyRedirects=applyRedirects;var h=function(){function ApplyRedirects(e,t,n,r){this.injector=e,this.configLoader=t,this.urlTree=n,this.config=r,this.allowRedirects=!0}return ApplyRedirects.prototype.apply=function(){var e=this;return this.expandSegmentGroup(this.injector,this.config,this.urlTree.root,l.PRIMARY_OUTLET).map(function(t){return e.createUrlTree(t)}).catch(function(t){if(t instanceof d){e.allowRedirects=!1;var n=new c.UrlSegmentGroup([],(r={},r[l.PRIMARY_OUTLET]=new c.UrlSegmentGroup(t.segments,{}),r));return e.match(n)}throw t instanceof p?e.noMatchError(t):t;var r})},ApplyRedirects.prototype.match=function(e){var t=this;return this.expandSegmentGroup(this.injector,this.config,e,l.PRIMARY_OUTLET).map(function(e){return t.createUrlTree(e)}).catch(function(e){throw e instanceof p?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 c.UrlSegmentGroup([],(n={},n[l.PRIMARY_OUTLET]=e,n)):e;return new c.UrlTree(t,this.urlTree.queryParams,this.urlTree.fragment);var n},ApplyRedirects.prototype.expandSegmentGroup=function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).map(function(e){return new c.UrlSegmentGroup([],e)}):this.expandSegment(e,n,t,n.segments,r,!0)},ApplyRedirects.prototype.expandChildren=function(e,t,n){var r=this;return u.waitForMap(n.children,function(n,i){return r.expandSegmentGroup(e,t,i,n)})},ApplyRedirects.prototype.expandSegment=function(e,t,n,r,i,a){var l=this,c=o.of.apply(void 0,n).map(function(s){return l.expandSegmentAgainstRoute(e,t,n,s,r,i,a).catch(function(e){if(e instanceof p)return o.of(null);throw e})}).concatAll();return c.first(function(e){return!!e}).catch(function(e,n){throw e instanceof s.EmptyError?new p(t):e})},ApplyRedirects.prototype.expandSegmentAgainstRoute=function(e,t,n,r,i,o,s){return getOutlet(r)!==o?noMatch(t):void 0===r.redirectTo||s&&this.allowRedirects?void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):noMatch(t)},ApplyRedirects.prototype.expandSegmentAgainstRouteUsingRedirect=function(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)},ApplyRedirects.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(e){var t=applyRedirectCommands([],e.redirectTo,{});return e.redirectTo.startsWith("/")?absoluteRedirect(t):o.of(new c.UrlSegmentGroup(t,{}))},ApplyRedirects.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(e,t,n,r,i,o){var s=match(t,r,i),a=s.matched,l=s.consumedSegments,c=s.lastChild,u=s.positionalParamSegments;if(!a)return noMatch(t);var p=applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?absoluteRedirect(p):this.expandSegment(e,t,n,p.concat(i.slice(c)),o,!1)},ApplyRedirects.prototype.matchSegmentAgainstRoute=function(e,t,n,r){var i=this;if("**"===n.path)return o.of(new c.UrlSegmentGroup(r,{}));var s=match(t,n,r),a=s.matched,u=s.consumedSegments,p=s.lastChild;if(!a)return noMatch(t);var d=r.slice(p);return this.getChildConfig(e,n).mergeMap(function(e){var n=e.injector,r=e.routes,s=split(t,u,d,r),a=s.segmentGroup,p=s.slicedSegments;return 0===p.length&&a.hasChildren()?i.expandChildren(n,r,a).map(function(e){return new c.UrlSegmentGroup(u,e)}):0===r.length&&0===p.length?o.of(new c.UrlSegmentGroup(u,{})):i.expandSegment(n,a,r,p,l.PRIMARY_OUTLET,!0).map(function(e){return new c.UrlSegmentGroup(u.concat(e.segments),e.children)})})},ApplyRedirects.prototype.getChildConfig=function(e,t){var n=this;return t.children?o.of(new a.LoadedRouterConfig(t.children,e,null)):t.loadChildren?runGuards(e,t).mergeMap(function(r){return r?n.configLoader.load(e,t.loadChildren).map(function(e){return t._loadedConfig=e,e}):canLoadFails(t)}):o.of(new a.LoadedRouterConfig([],e,null))},ApplyRedirects}()},function(e,t){"use strict";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.terminal&&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'")}t.validateConfig=validateConfig},function(e,t,n){"use strict";function createRouterState(e,t){var n=createNode(e._root,t?t._root:void 0);return new i.RouterState(n,e)}function createNode(e,t){if(t&&equalRouteSnapshots(t.value.snapshot,e.value)){var n=t.value;n._futureSnapshot=e.value;var r=createOrReuseChildren(e,t);return new o.TreeNode(n,r)}var n=createActivatedRoute(e.value),r=e.children.map(function(e){return createNode(e)});return new o.TreeNode(n,r)}function createOrReuseChildren(e,t){return e.children.map(function(e){for(var n=0,r=t.children;n0&&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,n,r,o){return n.root===e?new i.UrlTree(t,stringify(r),o):new i.UrlTree(replaceSegment(n.root,e,t),stringify(r),o)}function replaceSegment(e,t,n){var r={};return o.forEach(e.children,function(e,i){e===t?r[i]=n:r[i]=replaceSegment(e,t,n)}),new i.UrlSegmentGroup(e.segments,r)}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 s((!0),0,e);for(var t=0,n=!1,r=[],i=function(i){var s=e[i];if("object"==typeof s&&void 0!==s.outlets){var a={};return o.forEach(s.outlets,function(e,t){"string"==typeof e?a[t]=e.split("/"):a[t]=e}),r.push({outlets:a}),"continue"}if("object"==typeof s&&void 0!==s.segmentPath)return r.push(s.segmentPath),"continue";if("string"!=typeof s)return r.push(s),"continue";if(0===i)for(var l=s.split("/"),c=0;c=0)return new a(n.snapshot._urlSegment,(!1),n.snapshot._lastPathIndex+1-e.numberOfDoubleDots);throw new Error("Invalid number of '../'")}function getPath(e){return""+e}function getOutlets(e){return"object"!=typeof e[0]?(t={},t[r.PRIMARY_OUTLET]=e, -t):void 0===e[0].outlets?(n={},n[r.PRIMARY_OUTLET]=e,n):e[0].outlets;var t,n}function updateSegmentGroup(e,t,n){if(e||(e=new i.UrlSegmentGroup([],{})),0===e.segments.length&&e.hasChildren())return updateSegmentGroupChildren(e,t,n);var r=prefixedWith(e,t,n),o=n.slice(r.lastIndex);return r.match&&0===o.length?new i.UrlSegmentGroup(e.segments,{}):r.match&&!e.hasChildren()?createNewSegmentGroup(e,t,n):r.match?updateSegmentGroupChildren(e,0,o):createNewSegmentGroup(e,t,n)}function updateSegmentGroupChildren(e,t,n){if(0===n.length)return new i.UrlSegmentGroup(e.segments,{});var r=getOutlets(n),s={};return o.forEach(r,function(n,r){null!==n&&(s[r]=updateSegmentGroup(e.children[r],t,n))}),o.forEach(e.children,function(e,t){void 0===r[t]&&(s[t]=e)}),new i.UrlSegmentGroup(e.segments,s)}function prefixedWith(e,t,n){for(var r=0,i=t,o={match:!1,lastIndex:0};i=n.length)return o;var s=e.segments[i],a=getPath(n[r]),l=r0))throw new u;var i=r?r.params:{};return{consumedSegments:[],lastChild:0,parameters:i}}for(var o=t.path,s=o.split("/"),a={},c=[],p=0,d=0;d=n.length)throw new u;var h=n[p],f=s[d],m=f.startsWith(":");if(!m&&f!==h.path)throw new u;m&&(a[f.substring(1)]=h.path),c.push(h),p++}if((t.terminal||"full"===t.pathMatch)&&(e.hasChildren()||p0&&containsEmptyPathMatchesWithNamedOutlets(e,n,r)){var i=new a.UrlSegmentGroup(t,createChildrenForEmptyPaths(e,t,r,new a.UrlSegmentGroup(n,e.children)));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&containsEmptyPathMatches(e,n,r)){var i=new a.UrlSegmentGroup(e.segments,addEmptyPathsToChildrenIfNeeded(e,n,r,e.children));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}var i=new a.UrlSegmentGroup(e.segments,e.children);return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}function addEmptyPathsToChildrenIfNeeded(e,t,n,r){for(var i={},o=0,s=n;o0}function containsEmptyPathMatches(e,t,n){return n.filter(function(n){return emptyPathMatch(e,t,n)}).length>0}function emptyPathMatch(e,t,n){return(!(e.hasChildren()||t.length>0)||!n.terminal&&"full"!==n.pathMatch)&&(""===n.path&&void 0===n.redirectTo)}function getOutlet(e){return e.outlet?e.outlet:s.PRIMARY_OUTLET}function getData(e){return e.data?e.data:{}}function getResolve(e){return e.resolve?e.resolve:{}}var r=n(1),i=n(141),o=n(91),s=n(63),a=n(73),l=n(74),c=n(281),u=function(){function NoMatch(){}return NoMatch}(),p=function(){function InheritedFromParent(e,t,n,r,i){this.parent=e,this.snapshot=t,this.params=n,this.data=r,this.resolve=i}return Object.defineProperty(InheritedFromParent.prototype,"allParams",{get:function(){return this.parent?l.merge(this.parent.allParams,this.params):this.params},enumerable:!0,configurable:!0}),Object.defineProperty(InheritedFromParent.prototype,"allData",{get:function(){return this.parent?l.merge(this.parent.allData,this.data):this.data},enumerable:!0,configurable:!0}),InheritedFromParent.empty=function(e){return new InheritedFromParent(null,e,{},{},new o.InheritedResolve(null,{}))},InheritedFromParent}();t.recognize=recognize;var d=function(){function Recognizer(e,t,n,r){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r}return Recognizer.prototype.recognize=function(){try{var e=split(this.urlTree.root,[],[],this.config).segmentGroup,t=this.processSegmentGroup(this.config,e,p.empty(null),s.PRIMARY_OUTLET),n=new o.ActivatedRouteSnapshot([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},s.PRIMARY_OUTLET,this.rootComponentType,null,this.urlTree.root,(-1),o.InheritedResolve.empty),a=new c.TreeNode(n,t);return i.of(new o.RouterStateSnapshot(this.url,a))}catch(l){return new r.Observable(function(e){return e.error(l)})}},Recognizer.prototype.processSegmentGroup=function(e,t,n,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t,n):this.processSegment(e,t,0,t.segments,n,r)},Recognizer.prototype.processChildren=function(e,t,n){var r=this,i=a.mapChildrenIntoArray(t,function(t,i){return r.processSegmentGroup(e,t,n,i)});return checkOutletNameUniqueness(i),sortActivatedRouteSnapshots(i),i},Recognizer.prototype.processSegment=function(e,t,n,r,i,o){for(var s=0,a=e;s0?l.last(r).parameters:{},f=new o.ActivatedRouteSnapshot(r,Object.freeze(l.merge(i.allParams,h)),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,l.merge(i.allData,getData(e)),a,e.component,e,getSourceSegmentGroup(t),getPathIndexShift(t)+r.length,d);return[new c.TreeNode(f,[])]}var m=match(t,e,r,i.snapshot),y=m.consumedSegments,v=m.parameters,g=m.lastChild,b=r.slice(g),_=getChildConfig(e),S=split(t,y,b,_),w=S.segmentGroup,C=S.slicedSegments,E=new o.ActivatedRouteSnapshot(y,Object.freeze(l.merge(i.allParams,v)),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,l.merge(i.allData,getData(e)),a,e.component,e,getSourceSegmentGroup(t),getPathIndexShift(t)+y.length,d),T=e.component?p.empty(E):new p(i,E,v,getData(e),d);if(0===C.length&&w.hasChildren()){var R=this.processChildren(_,w,T);return[new c.TreeNode(E,R)]}if(0===_.length&&0===C.length)return[new c.TreeNode(E,[])];var R=this.processSegment(_,w,n+g,C,T,s.PRIMARY_OUTLET);return[new c.TreeNode(E,R)]},Recognizer}()},function(e,t,n){"use strict";function resolve(e,t){return resolveNode(e,t._root).map(function(e){return t})}function resolveNode(e,t){if(0===t.children.length)return i.fromPromise(resolveComponent(e,t.value).then(function(e){return t.value._resolvedComponentFactory=e,t.value}));var n=t.children.map(function(t){return resolveNode(e,t).toPromise()});return r.forkJoin(n).map(function(n){return resolveComponent(e,t.value).then(function(e){return t.value._resolvedComponentFactory=e,t.value})})}function resolveComponent(e,t){return t.component&&t._routeConfig&&"string"==typeof t.component?e.resolveComponent(t.component):Promise.resolve(null)}n(140),n(307);var r=n(503),i=n(211);t.resolve=resolve},function(e,t,n){"use strict";function provideLocationStrategy(e,t,n){return void 0===n&&(n={}),n.useHash?new r.HashLocationStrategy(e,t):new r.PathLocationStrategy(e,t)}var r=n(3),i=n(0),o=n(279),s=n(280),a=n(424),l=n(425),c=n(128),u=n(187),p=n(129),d=n(91),h=n(73);t.ROUTER_DIRECTIVES=[l.RouterOutlet,s.RouterLink,s.RouterLinkWithHref,a.RouterLinkActive];({provide:r.LocationStrategy,useClass:r.PathLocationStrategy}),{provide:r.LocationStrategy,useClass:r.HashLocationStrategy};t.ROUTER_PROVIDERS=[r.Location,{provide:h.UrlSerializer,useClass:h.DefaultUrlSerializer},{provide:c.Router,useFactory:o.setupRouter,deps:[i.ApplicationRef,i.ComponentResolver,h.UrlSerializer,p.RouterOutletMap,r.Location,i.Injector,i.NgModuleFactoryLoader,u.ROUTES,o.ROUTER_CONFIGURATION]},p.RouterOutletMap,{provide:d.ActivatedRoute,useFactory:o.rootRoute,deps:[c.Router]},{provide:i.NgModuleFactoryLoader,useClass:i.SystemJsNgModuleLoader},{provide:o.ROUTER_CONFIGURATION,useValue:{enableTracing:!1}}];var f=function(){function RouterModule(){}return RouterModule.forRoot=function(e,n){return{ngModule:RouterModule,providers:[t.ROUTER_PROVIDERS,o.provideRoutes(e),{provide:o.ROUTER_CONFIGURATION,useValue:n?n:{}},{provide:r.LocationStrategy,useFactory:provideLocationStrategy,deps:[r.PlatformLocation,[new i.Inject(r.APP_BASE_HREF),new i.Optional],o.ROUTER_CONFIGURATION]},o.provideRouterInitializer()]}},RouterModule.forChild=function(e){return{ngModule:RouterModule,providers:[o.provideRoutes(e)]}},RouterModule.decorators=[{type:i.NgModule,args:[{declarations:t.ROUTER_DIRECTIVES,exports:t.ROUTER_DIRECTIVES}]}],RouterModule}();t.RouterModule=f,t.provideLocationStrategy=provideLocationStrategy},function(e,t,n){"use strict";function provideRouter(e,t){return void 0===t&&(t={}),[{provide:r.PlatformLocation,useClass:i.BrowserPlatformLocation}].concat(o.provideRouter(e,t))}var r=n(3),i=n(89),o=n(279);t.provideRouter=provideRouter},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=n(0),a=n(3),l=n(282),c=n(426),u=function(){function MdButton(e,t){this._elementRef=e,this._renderer=t,this._isKeyboardFocused=!1,this._isMouseDown=!1,this.disableRipple=!1}return Object.defineProperty(MdButton.prototype,"color",{get:function(){return this._color},set:function(e){this._updateColor(e)},enumerable:!0,configurable:!0}),MdButton.prototype._setMousedown=function(){var e=this;this._isMouseDown=!0,setTimeout(function(){e._isMouseDown=!1},100)},MdButton.prototype._updateColor=function(e){this._setElementColor(this._color,!1),this._setElementColor(e,!0),this._color=e},MdButton.prototype._setElementColor=function(e,t){null!=e&&""!=e&&this._renderer.setElementClass(this._elementRef.nativeElement,"md-"+e,t)},MdButton.prototype._setKeyboardFocus=function(){this._isKeyboardFocused=!this._isMouseDown},MdButton.prototype._removeKeyboardFocus=function(){this._isKeyboardFocused=!1},MdButton.prototype.focus=function(){this._elementRef.nativeElement.focus()},MdButton.prototype.getHostElement=function(){return this._elementRef.nativeElement},MdButton.prototype.isRoundButton=function(){var e=this._elementRef.nativeElement;return e.hasAttribute("md-icon-button")||e.hasAttribute("md-fab")||e.hasAttribute("md-mini-fab")},MdButton.prototype.isRippleEnabled=function(){return!this.disableRipple},i([s.Input(),l.BooleanFieldValue(),o("design:type",Boolean)],MdButton.prototype,"disableRipple",void 0),MdButton=i([s.Component({selector:"button[md-button], button[md-raised-button], button[md-icon-button], button[md-fab], button[md-mini-fab]",inputs:["color"],host:{"[class.md-button-focus]":"_isKeyboardFocused","(mousedown)":"_setMousedown()","(focus)":"_setKeyboardFocus()","(blur)":"_removeKeyboardFocus()"},template:'
',styles:['/** * A collection of mixins and CSS classes that can be used to apply elevation to a material * element. * See: https://www.google.com/design/spec/what-is-material/elevation-shadows.html * Examples: * * * .md-foo { * @include $md-elevation(2); * * &:active { * @include $md-elevation(8); * } * } * *

Some content

* * For an explanation of the design behind how elevation is implemented, see the design doc at * https://goo.gl/Kq0k9Z. */ /** * The css property used for elevation. In most cases this should not be changed. It is exposed * as a variable for abstraction / easy use when needing to reference the property directly, for * example in a will-change rule. */ /** The default duration value for elevation transitions. */ /** The default easing value for elevation transitions. */ /** * Applies the correct css rules to an element to give it the elevation specified by $zValue. * The $zValue must be between 0 and 24. */ /** * Returns a string that can be used as the value for a transition property for elevation. * Calling this function directly is useful in situations where a component needs to transition * more than one property. * * .foo { * transition: md-elevation-transition-property-value(), opacity 100ms ease; * will-change: $md-elevation-property, opacity; * } */ /** * Applies the correct css rules needed to have an element transition between elevations. * This mixin should be applied to elements whose elevation values will change depending on their * context (e.g. when active or disabled). */ /** * This mixin overrides default button styles like the gray background, * the border, and the outline. */ /** Applies a property to an md-button element for each of the supported palettes. */ /** Applies a focus style to an md-button element for each of the supported palettes. */ [md-raised-button], [md-fab], [md-mini-fab], [md-button], [md-icon-button] { box-sizing: border-box; position: relative; background: transparent; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; outline: none; border: none; display: inline-block; white-space: nowrap; text-decoration: none; vertical-align: baseline; font-size: 14px; font-family: Roboto, "Helvetica Neue", sans-serif; font-weight: 500; color: currentColor; text-align: center; margin: 0; min-width: 88px; line-height: 36px; padding: 0 16px; border-radius: 3px; } .md-primary[md-raised-button], .md-primary[md-fab], .md-primary[md-mini-fab], .md-primary[md-button], .md-primary[md-icon-button] { color: #009688; } .md-accent[md-raised-button], .md-accent[md-fab], .md-accent[md-mini-fab], .md-accent[md-button], .md-accent[md-icon-button] { color: #9c27b0; } .md-warn[md-raised-button], .md-warn[md-fab], .md-warn[md-mini-fab], .md-warn[md-button], .md-warn[md-icon-button] { color: #f44336; } .md-primary[disabled][md-raised-button], .md-primary[disabled][md-fab], .md-primary[disabled][md-mini-fab], .md-primary[disabled][md-button], .md-primary[disabled][md-icon-button], .md-accent[disabled][md-raised-button], .md-accent[disabled][md-fab], .md-accent[disabled][md-mini-fab], .md-accent[disabled][md-button], .md-accent[disabled][md-icon-button], .md-warn[disabled][md-raised-button], .md-warn[disabled][md-fab], .md-warn[disabled][md-mini-fab], .md-warn[disabled][md-button], .md-warn[disabled][md-icon-button], [disabled][disabled][md-raised-button], [disabled][disabled][md-fab], [disabled][disabled][md-mini-fab], [disabled][disabled][md-button], [disabled][disabled][md-icon-button] { color: rgba(0, 0, 0, 0.38); } [disabled][md-raised-button], [disabled][md-fab], [disabled][md-mini-fab], [disabled][md-button], [disabled][md-icon-button] { cursor: default; } .md-button-focus[md-raised-button]::after, .md-button-focus[md-fab]::after, .md-button-focus[md-mini-fab]::after, .md-button-focus[md-button]::after, .md-button-focus[md-icon-button]::after { position: absolute; top: 0; left: 0; bottom: 0; right: 0; content: \'\'; background-color: rgba(0, 0, 0, 0.12); border-radius: inherit; pointer-events: none; } .md-button-focus.md-primary[md-raised-button]::after, .md-button-focus.md-primary[md-fab]::after, .md-button-focus.md-primary[md-mini-fab]::after, .md-button-focus.md-primary[md-button]::after, .md-button-focus.md-primary[md-icon-button]::after { background-color: rgba(0, 150, 136, 0.12); } .md-button-focus.md-accent[md-raised-button]::after, .md-button-focus.md-accent[md-fab]::after, .md-button-focus.md-accent[md-mini-fab]::after, .md-button-focus.md-accent[md-button]::after, .md-button-focus.md-accent[md-icon-button]::after { background-color: rgba(156, 39, 176, 0.12); } .md-button-focus.md-warn[md-raised-button]::after, .md-button-focus.md-warn[md-fab]::after, .md-button-focus.md-warn[md-mini-fab]::after, .md-button-focus.md-warn[md-button]::after, .md-button-focus.md-warn[md-icon-button]::after { background-color: rgba(244, 67, 54, 0.12); } [md-raised-button], [md-fab], [md-mini-fab] { box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); background-color: #fafafa; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); -webkit-transition: background 400ms cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1); transition: background 400ms cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1); } .md-primary[md-raised-button], .md-primary[md-fab], .md-primary[md-mini-fab] { color: white; } .md-accent[md-raised-button], .md-accent[md-fab], .md-accent[md-mini-fab] { color: rgba(255, 255, 255, 0.870588); } .md-warn[md-raised-button], .md-warn[md-fab], .md-warn[md-mini-fab] { color: white; } .md-primary[disabled][md-raised-button], .md-primary[disabled][md-fab], .md-primary[disabled][md-mini-fab], .md-accent[disabled][md-raised-button], .md-accent[disabled][md-fab], .md-accent[disabled][md-mini-fab], .md-warn[disabled][md-raised-button], .md-warn[disabled][md-fab], .md-warn[disabled][md-mini-fab], [disabled][disabled][md-raised-button], [disabled][disabled][md-fab], [disabled][disabled][md-mini-fab] { color: rgba(0, 0, 0, 0.38); } .md-primary[md-raised-button], .md-primary[md-fab], .md-primary[md-mini-fab] { background-color: #009688; } .md-accent[md-raised-button], .md-accent[md-fab], .md-accent[md-mini-fab] { background-color: #9c27b0; } .md-warn[md-raised-button], .md-warn[md-fab], .md-warn[md-mini-fab] { background-color: #f44336; } .md-primary[disabled][md-raised-button], .md-primary[disabled][md-fab], .md-primary[disabled][md-mini-fab], .md-accent[disabled][md-raised-button], .md-accent[disabled][md-fab], .md-accent[disabled][md-mini-fab], .md-warn[disabled][md-raised-button], .md-warn[disabled][md-fab], .md-warn[disabled][md-mini-fab], [disabled][disabled][md-raised-button], [disabled][disabled][md-fab], [disabled][disabled][md-mini-fab] { background-color: rgba(0, 0, 0, 0.12); } [md-raised-button]:active, [md-fab]:active, [md-mini-fab]:active { box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12); } [disabled][md-raised-button], [disabled][md-fab], [disabled][md-mini-fab] { box-shadow: none; } [md-button][disabled]:hover.md-primary, [md-button][disabled]:hover.md-accent, [md-button][disabled]:hover.md-warn, [md-button][disabled]:hover:hover { background-color: transparent; } [md-fab] { min-width: 0; border-radius: 50%; background-color: #9c27b0; color: rgba(255, 255, 255, 0.870588); width: 56px; height: 56px; padding: 0; } [md-fab] i, [md-fab] md-icon { padding: 16px 0; } [md-mini-fab] { min-width: 0; border-radius: 50%; background-color: #9c27b0; color: rgba(255, 255, 255, 0.870588); width: 40px; height: 40px; padding: 0; } [md-mini-fab] i, [md-mini-fab] md-icon { padding: 8px 0; } [md-icon-button] { min-width: 0; padding: 0; width: 40px; height: 40px; line-height: 24px; border-radius: 50%; } [md-icon-button] .md-button-wrapper > * { vertical-align: middle; } .md-button-ripple { position: absolute; top: 0; left: 0; bottom: 0; right: 0; } .md-button-ripple-round { border-radius: 50%; z-index: 1; } [md-button]:hover::after, [md-icon-button]:hover::after { position: absolute; top: 0; left: 0; bottom: 0; right: 0; content: \'\'; background-color: rgba(0, 0, 0, 0.12); border-radius: inherit; pointer-events: none; } [md-button]:hover.md-primary::after, [md-icon-button]:hover.md-primary::after { background-color: rgba(0, 150, 136, 0.12); } [md-button]:hover.md-accent::after, [md-icon-button]:hover.md-accent::after { background-color: rgba(156, 39, 176, 0.12); } [md-button]:hover.md-warn::after, [md-icon-button]:hover.md-warn::after { background-color: rgba(244, 67, 54, 0.12); } @media screen and (-ms-high-contrast: active) { .md-raised-button, .md-fab, .md-mini-fab { border: 1px solid #fff; } } '],encapsulation:s.ViewEncapsulation.None,changeDetection:s.ChangeDetectionStrategy.OnPush}),o("design:paramtypes",[s.ElementRef,s.Renderer])],MdButton)}();t.MdButton=u;var p=function(e){function MdAnchor(t,n){e.call(this,t,n),this._disabled=null}return r(MdAnchor,e),Object.defineProperty(MdAnchor.prototype,"tabIndex",{get:function(){return this.disabled?-1:0},enumerable:!0,configurable:!0}),Object.defineProperty(MdAnchor.prototype,"isAriaDisabled",{get:function(){return this.disabled?"true":"false"},enumerable:!0,configurable:!0}),Object.defineProperty(MdAnchor.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=null!=e&&0!=e||null},enumerable:!0,configurable:!0}),MdAnchor.prototype._haltDisabledEvents=function(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())},i([s.HostBinding("tabIndex"),o("design:type",Number)],MdAnchor.prototype,"tabIndex",null),i([s.HostBinding("attr.aria-disabled"),o("design:type",String)],MdAnchor.prototype,"isAriaDisabled",null),i([s.HostBinding("attr.disabled"),s.Input("disabled"),o("design:type",Object)],MdAnchor.prototype,"disabled",null),MdAnchor=i([s.Component({selector:"a[md-button], a[md-raised-button], a[md-icon-button], a[md-fab], a[md-mini-fab]",inputs:["color"],host:{"[class.md-button-focus]":"_isKeyboardFocused","(mousedown)":"_setMousedown()","(focus)":"_setKeyboardFocus()","(blur)":"_removeKeyboardFocus()","(click)":"_haltDisabledEvents($event)"},template:'
',styles:['/** * A collection of mixins and CSS classes that can be used to apply elevation to a material * element. * See: https://www.google.com/design/spec/what-is-material/elevation-shadows.html * Examples: * * * .md-foo { * @include $md-elevation(2); * * &:active { * @include $md-elevation(8); * } * } * *

Some content

* * For an explanation of the design behind how elevation is implemented, see the design doc at * https://goo.gl/Kq0k9Z. */ /** * The css property used for elevation. In most cases this should not be changed. It is exposed * as a variable for abstraction / easy use when needing to reference the property directly, for * example in a will-change rule. */ /** The default duration value for elevation transitions. */ /** The default easing value for elevation transitions. */ /** * Applies the correct css rules to an element to give it the elevation specified by $zValue. * The $zValue must be between 0 and 24. */ /** * Returns a string that can be used as the value for a transition property for elevation. * Calling this function directly is useful in situations where a component needs to transition * more than one property. * * .foo { * transition: md-elevation-transition-property-value(), opacity 100ms ease; * will-change: $md-elevation-property, opacity; * } */ /** * Applies the correct css rules needed to have an element transition between elevations. * This mixin should be applied to elements whose elevation values will change depending on their * context (e.g. when active or disabled). */ /** * This mixin overrides default button styles like the gray background, * the border, and the outline. */ /** Applies a property to an md-button element for each of the supported palettes. */ /** Applies a focus style to an md-button element for each of the supported palettes. */ [md-raised-button], [md-fab], [md-mini-fab], [md-button], [md-icon-button] { box-sizing: border-box; position: relative; background: transparent; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; outline: none; border: none; display: inline-block; white-space: nowrap; text-decoration: none; vertical-align: baseline; font-size: 14px; font-family: Roboto, "Helvetica Neue", sans-serif; font-weight: 500; color: currentColor; text-align: center; margin: 0; min-width: 88px; line-height: 36px; padding: 0 16px; border-radius: 3px; } .md-primary[md-raised-button], .md-primary[md-fab], .md-primary[md-mini-fab], .md-primary[md-button], .md-primary[md-icon-button] { color: #009688; } .md-accent[md-raised-button], .md-accent[md-fab], .md-accent[md-mini-fab], .md-accent[md-button], .md-accent[md-icon-button] { color: #9c27b0; } .md-warn[md-raised-button], .md-warn[md-fab], .md-warn[md-mini-fab], .md-warn[md-button], .md-warn[md-icon-button] { color: #f44336; } .md-primary[disabled][md-raised-button], .md-primary[disabled][md-fab], .md-primary[disabled][md-mini-fab], .md-primary[disabled][md-button], .md-primary[disabled][md-icon-button], .md-accent[disabled][md-raised-button], .md-accent[disabled][md-fab], .md-accent[disabled][md-mini-fab], .md-accent[disabled][md-button], .md-accent[disabled][md-icon-button], .md-warn[disabled][md-raised-button], .md-warn[disabled][md-fab], .md-warn[disabled][md-mini-fab], .md-warn[disabled][md-button], .md-warn[disabled][md-icon-button], [disabled][disabled][md-raised-button], [disabled][disabled][md-fab], [disabled][disabled][md-mini-fab], [disabled][disabled][md-button], [disabled][disabled][md-icon-button] { color: rgba(0, 0, 0, 0.38); } [disabled][md-raised-button], [disabled][md-fab], [disabled][md-mini-fab], [disabled][md-button], [disabled][md-icon-button] { cursor: default; } .md-button-focus[md-raised-button]::after, .md-button-focus[md-fab]::after, .md-button-focus[md-mini-fab]::after, .md-button-focus[md-button]::after, .md-button-focus[md-icon-button]::after { position: absolute; top: 0; left: 0; bottom: 0; right: 0; content: \'\'; background-color: rgba(0, 0, 0, 0.12); border-radius: inherit; pointer-events: none; } .md-button-focus.md-primary[md-raised-button]::after, .md-button-focus.md-primary[md-fab]::after, .md-button-focus.md-primary[md-mini-fab]::after, .md-button-focus.md-primary[md-button]::after, .md-button-focus.md-primary[md-icon-button]::after { background-color: rgba(0, 150, 136, 0.12); } .md-button-focus.md-accent[md-raised-button]::after, .md-button-focus.md-accent[md-fab]::after, .md-button-focus.md-accent[md-mini-fab]::after, .md-button-focus.md-accent[md-button]::after, .md-button-focus.md-accent[md-icon-button]::after { background-color: rgba(156, 39, 176, 0.12); } .md-button-focus.md-warn[md-raised-button]::after, .md-button-focus.md-warn[md-fab]::after, .md-button-focus.md-warn[md-mini-fab]::after, .md-button-focus.md-warn[md-button]::after, .md-button-focus.md-warn[md-icon-button]::after { background-color: rgba(244, 67, 54, 0.12); } [md-raised-button], [md-fab], [md-mini-fab] { box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); background-color: #fafafa; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); -webkit-transition: background 400ms cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1); transition: background 400ms cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1); } .md-primary[md-raised-button], .md-primary[md-fab], .md-primary[md-mini-fab] { color: white; } .md-accent[md-raised-button], .md-accent[md-fab], .md-accent[md-mini-fab] { color: rgba(255, 255, 255, 0.870588); } .md-warn[md-raised-button], .md-warn[md-fab], .md-warn[md-mini-fab] { color: white; } .md-primary[disabled][md-raised-button], .md-primary[disabled][md-fab], .md-primary[disabled][md-mini-fab], .md-accent[disabled][md-raised-button], .md-accent[disabled][md-fab], .md-accent[disabled][md-mini-fab], .md-warn[disabled][md-raised-button], .md-warn[disabled][md-fab], .md-warn[disabled][md-mini-fab], [disabled][disabled][md-raised-button], [disabled][disabled][md-fab], [disabled][disabled][md-mini-fab] { color: rgba(0, 0, 0, 0.38); } .md-primary[md-raised-button], .md-primary[md-fab], .md-primary[md-mini-fab] { background-color: #009688; } .md-accent[md-raised-button], .md-accent[md-fab], .md-accent[md-mini-fab] { background-color: #9c27b0; } .md-warn[md-raised-button], .md-warn[md-fab], .md-warn[md-mini-fab] { background-color: #f44336; } .md-primary[disabled][md-raised-button], .md-primary[disabled][md-fab], .md-primary[disabled][md-mini-fab], .md-accent[disabled][md-raised-button], .md-accent[disabled][md-fab], .md-accent[disabled][md-mini-fab], .md-warn[disabled][md-raised-button], .md-warn[disabled][md-fab], .md-warn[disabled][md-mini-fab], [disabled][disabled][md-raised-button], [disabled][disabled][md-fab], [disabled][disabled][md-mini-fab] { background-color: rgba(0, 0, 0, 0.12); } [md-raised-button]:active, [md-fab]:active, [md-mini-fab]:active { box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12); } [disabled][md-raised-button], [disabled][md-fab], [disabled][md-mini-fab] { box-shadow: none; } [md-button][disabled]:hover.md-primary, [md-button][disabled]:hover.md-accent, [md-button][disabled]:hover.md-warn, [md-button][disabled]:hover:hover { background-color: transparent; } [md-fab] { min-width: 0; border-radius: 50%; background-color: #9c27b0; color: rgba(255, 255, 255, 0.870588); width: 56px; height: 56px; padding: 0; } [md-fab] i, [md-fab] md-icon { padding: 16px 0; } [md-mini-fab] { min-width: 0; border-radius: 50%; background-color: #9c27b0; color: rgba(255, 255, 255, 0.870588); width: 40px; height: 40px; padding: 0; } [md-mini-fab] i, [md-mini-fab] md-icon { padding: 8px 0; } [md-icon-button] { min-width: 0; padding: 0; width: 40px; height: 40px; line-height: 24px; border-radius: 50%; } [md-icon-button] .md-button-wrapper > * { vertical-align: middle; } .md-button-ripple { position: absolute; top: 0; left: 0; bottom: 0; right: 0; } .md-button-ripple-round { border-radius: 50%; z-index: 1; } [md-button]:hover::after, [md-icon-button]:hover::after { position: absolute; top: 0; left: 0; bottom: 0; right: 0; content: \'\'; background-color: rgba(0, 0, 0, 0.12); border-radius: inherit; pointer-events: none; } [md-button]:hover.md-primary::after, [md-icon-button]:hover.md-primary::after { background-color: rgba(0, 150, 136, 0.12); } [md-button]:hover.md-accent::after, [md-icon-button]:hover.md-accent::after { background-color: rgba(156, 39, 176, 0.12); } [md-button]:hover.md-warn::after, [md-icon-button]:hover.md-warn::after { background-color: rgba(244, 67, 54, 0.12); } @media screen and (-ms-high-contrast: active) { .md-raised-button, .md-fab, .md-mini-fab { border: 1px solid #fff; } } '], +this.dialogSettings.setMessage("Reparented "+this.tablet.label),this.dialogSettings.onCloseFunction=this.refreshTabletView.bind(this);var e=new l.c(this.tablet.ref).flags;this.dialogContent=new s.a("tablet_alias",e,{},(void 0),"ReparentTablet"),this.dialogSettings.toggleModal()},TabletComponent.prototype.refreshTabletView=function(){this.getTablet(this.tabletRef),this.tabletUrl=this.tabletUrl},TabletComponent.prototype.navigateToShard=function(e){this.router.navigate(["/shard"],{queryParams:{keyspace:this.keyspaceName,shard:this.shardName}})},TabletComponent.prototype.canDeactivate=function(){return!this.dialogSettings.pending},TabletComponent=p([n.i(i.Component)({selector:"vt-tablet-view",template:n(886),styles:[n(873),n(78)]}),d("design:paramtypes",["function"==typeof(e="undefined"!=typeof r.ActivatedRoute&&r.ActivatedRoute)&&e||Object,"function"==typeof(t="undefined"!=typeof r.Router&&r.Router)&&t||Object,"function"==typeof(h="undefined"!=typeof c.a&&c.a)&&h||Object,"function"==typeof(f="undefined"!=typeof u.a&&u.a)&&f||Object,"function"==typeof(m="undefined"!=typeof o.DomSanitizationService&&o.DomSanitizationService)&&m||Object])],TabletComponent);var e,t,h,f,m}()},function(e,t,n){"use strict";var r=n(0),i=(n.n(r),n(131)),o=n(283),s=n(190),a=n(92);n.d(t,"a",function(){return u});var l=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(){function SchemaComponent(e,t,n,r){this.keyspaceService=e,this.shardService=t,this.tabletService=n,this.vtctlService=r,this.dialog=!1,this.keyspaces=[],this.shards=[],this.tablets=[],this.schemas=[],this.vSchemas=[]}return SchemaComponent.prototype.ngOnInit=function(){this.getKeyspaceNames()},SchemaComponent.prototype.getKeyspaceNames=function(){var e=this;this.resetSchemas(),this.resetVSchemas(),this.keyspaceService.getKeyspaceNames().subscribe(function(t){e.keyspaces=t.map(function(e){return{label:e,value:e}}),e.keyspaces.sort(e.cmp),e.keyspaces.length>0&&(e.selectedKeyspace=e.keyspaces[0].value,e.getShards(e.selectedKeyspace))})},SchemaComponent.prototype.cmp=function(e,t){var n=e.label.toLowerCase(),r=t.label.toLowerCase();return n>r?1:r>n?-1:0},SchemaComponent.prototype.getShards=function(e){var t=this;return this.resetSchemas(),e&&this.shardService.getShards(e).subscribe(function(e){t.shards=e.map(function(e){return{label:e,value:e}}),t.shards.length>0&&(t.selectedShard=t.shards[0].value,t.getTablets(t.selectedKeyspace,t.selectedShard))}),[]},SchemaComponent.prototype.getTablets=function(e,t){var n=this;this.resetSchemas(),this.tabletService.getTabletList(e+"/"+t).subscribe(function(e){n.tablets=e.map(function(e){var t=e.cell+"-"+e.uid;return{label:t,value:t}}),n.tablets.length>0&&(n.selectedTablet=n.tablets[0].value,n.fetchSchema(n.selectedKeyspace,n.selectedTablet))})},SchemaComponent.prototype.fetchSchema=function(e,t){var n=this;this.resetSchemas(),this.resetVSchemas();var r=this.vtctlService.runCommand(["GetSchema",t]),i=this.vtctlService.runCommand(["GetVSchema",e]),o=r.combineLatest(i);o.subscribe(function(e){var t=e[0],r=e[1];if(!r.Error)if(r=JSON.parse(r.Output),"vindexes"in r){var i=Object.keys(r.vindexes).map(function(e){var t=r.vindexes[e].type,n=r.vindexes[e].params?r.vindexes[e].params:"",i=r.vindexes[e].owner?r.vindexes[e].owner:"";return{name:e,type:t,params:n,owner:i}});n.vSchemas=i}else n.vSchemas=[];if(!t.Error)if(t=JSON.parse(t.Output),"table_definitions"in t)if(!r.Error&&"tables"in r){var o=n.createVindexMap(r.tables);n.schemas=t.table_definitions.map(function(e){return n.parseColumns(e,o)})}else n.schemas=t.table_definitions.map(function(e){return n.parseColumns(e)});else n.schemas=[];n.selectedSchema=void 0,n.selectedVSchema=void 0})},SchemaComponent.prototype.resetSchemas=function(){this.schemas=[],this.selectedSchema=void 0},SchemaComponent.prototype.resetVSchemas=function(){this.vSchemas=[],this.selectedVSchema=void 0},SchemaComponent.prototype.createVindexMap=function(e){for(var t={},n=0,r=Object.keys(e);n=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},s=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=function(){function HeatmapComponent(e,t){this.zone=e,this.tabletService=t,this.heatmapHeight=0,this.heatmapWidth=0,this.dataMin=0,this.dataMax=0,this.showPopup=!0,this.clicked=!1}return HeatmapComponent.prototype.getRowHeight=function(){return 20},HeatmapComponent.prototype.getXLabelsRowHeight=function(){return 50},HeatmapComponent.prototype.getTotalRows=function(){return this.heatmap.KeyspaceLabel.Rowspan},HeatmapComponent.prototype.getRemainingRows=function(e){for(var t=[],n=1;n=0;n--)if(t+=this.yLabels[n].CellLabel.Rowspan,e=0;n--){if(null==this.yLabels[n].TypeLabels)return"all";for(var r=this.yLabels[n].TypeLabels.length-1;r>=0;r--)if(t+=this.yLabels[n].TypeLabels[r].Rowspan,et?e:t}),n=0===t?1:1/(1+t);this.colorscaleValue=[[0,"#000000"],[n,"#FFFFFF"],[1,"#A22417"]],this.dataMin=-1,this.dataMax=t}},HeatmapComponent.prototype.drawHeatmap=function(e){this.setupColorscale(e);var t=[{z:this.data,zmin:this.dataMin,zmax:this.dataMax,x:this.xLabels,colorscale:this.colorscaleValue,type:"heatmap",showscale:!1,hoverinfo:"none"}],n={type:"category",showgrid:!1,zeroline:!1,rangemode:"nonnegative",side:"top",ticks:""},r={showticklabels:!1,tickmode:"array",ticks:"inside",ticklen:this.heatmapWidth,tickcolor:"#000",tickvals:this.yGrid,fixedrange:!0},i={xaxis:n,yaxis:r,width:this.heatmapWidth,height:this.heatmapHeight,margin:{t:this.getXLabelsRowHeight(),b:0,r:0,l:0},showlegend:!1};Plotly.newPlot(this.name,t,i,{scrollZoom:!0,displayModeBar:!1})},o([n.i(r.Input)(),s("design:type",Object)],HeatmapComponent.prototype,"heatmap",void 0),o([n.i(r.Input)(),s("design:type",String)],HeatmapComponent.prototype,"metric",void 0),o([n.i(r.Input)(),s("design:type",String)],HeatmapComponent.prototype,"name",void 0),HeatmapComponent=o([n.i(r.Component)({selector:"vt-heatmap",template:n(890),styles:[n(877)]}),s("design:paramtypes",["function"==typeof(e="undefined"!=typeof r.NgZone&&r.NgZone)&&e||Object,"function"==typeof(t="undefined"!=typeof i.a&&i.a)&&t||Object])],HeatmapComponent);var e,t}()},function(e,t,n){"use strict";var r=n(0),i=(n.n(r),n(29)),o=(n.n(i),n(440)),s=n(189),a=n(429);n.d(t,"a",function(){return u});var l=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},c=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},u=function(){function StatusComponent(e,t,n,r,i,o){ +this.componentResolver=e,this.tabletService=t,this.router=n,this.route=r,this.zone=i,this.topoInfoService=o,this.heatmapDataReady=!1,this.listOfKeyspaces=[],this.mapOfKeyspaces={},this.keyspaces=[],this.cells=[],this.tabletTypes=[],this.metrics=[]}return StatusComponent.prototype.ngOnInit=function(){this.getBasicInfo()},StatusComponent.prototype.ngOnDestroy=function(){this.sub.unsubscribe()},StatusComponent.prototype.getTopologyInfo=function(e,t){var n=this;this.topoInfoService.getCombinedTopologyInfo(e,t).subscribe(function(e){var t=e.Keyspaces;n.keyspaces=[],n.keyspaces.push({label:"all",value:"all"});for(var r=0;r=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},a=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},l=function(){function TopoBrowserComponent(e,t){this.topoData=e,this.route=t,this.title="Topology Browser",this.node={},this.path="",this.breadcrumbs=[]}return TopoBrowserComponent.prototype.ngOnInit=function(){var e=this;this.routeSub=this.route.queryParams.subscribe(function(t){return e.getNode(t.path)})},TopoBrowserComponent.prototype.ngOnDestroy=function(){this.routeSub.unsubscribe(),this.nodeSub&&this.nodeSub.unsubscribe()},TopoBrowserComponent.prototype.childLink=function(e){return{path:this.path+"/"+e}},TopoBrowserComponent.prototype.getNode=function(e){var t=this;if(this.path="",this.breadcrumbs=[],e){this.path=e;for(var n=e.split("/"),r="",i=1;i0&&"/"===this.path.charAt(this.path.length-1)&&(e=this.path.substring(0,this.path.length-1));var t=e.split("/");return t[t.length-1]},Node}()},function(e,t,n){var r=n(96);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=r(e))throw TypeError(t);return+e}},function(e,t,n){var r=n(57),i=n(44),o=n(136);e.exports=function(e){return function(t,n,s){var a,l=r(t),c=i(l.length),u=o(s,c);if(e&&n!=n){for(;c>u;)if(a=l[u++],a!=a)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var r=n(95),i=n(50),o=n(133),s=n(44);e.exports=function(e,t,n,a,l){r(t);var c=i(e),u=o(c),p=s(c.length),d=l?p-1:0,h=l?-1:1;if(n<2)for(;;){if(d in u){a=u[d],d+=h;break}if(d+=h,l?d<0:p<=d)throw TypeError("Reduce of empty array with no initial value")}for(;l?d>=0:p>d;d+=h)d in u&&(a=t(a,u[d],d,c));return a}},function(e,t,n){"use strict";var r=n(95),i=n(15),o=n(681),s=[].slice,a={},l=function(e,t,n){if(!(t in a)){for(var r=[],i=0;i1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!y(f(this,t),e)}}),d&&r(u.prototype,"size",{get:function(){return f(this,t)[m]}}),u},def:function(e,t,n){var r,i,o=y(e,t);return o?o.v=n:(e._l=o={i:i=h(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[m]++,"F"!==i&&(e._i[i]=o)),e},getEntry:y,setStrong:function(e,t,n){c(e,t,function(e,n){this._t=f(e,t),this._k=n,this._l=void 0},function(){for(var e=this,t=e._k,n=e._l;n&&n.r;)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?"keys"==t?u(0,n.k):"values"==t?u(0,n.v):u(0,[n.k,n.v]):(e._t=void 0,u(1))},n?"entries":"values",!n,!0),p(t)}}},function(e,t,n){"use strict";var r=n(30),i=n(109);e.exports=function(e,t,n){t in e?r.f(e,t,i(0,n)):e[t]=n}},function(e,t,n){var r=n(15),i=n(26).document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},function(e,t,n){var r=n(26).document;e.exports=r&&r.documentElement},function(e,t,n){e.exports=!n(35)&&!n(13)(function(){return 7!=Object.defineProperty(n(451)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(134),i=n(25)("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||o[i]===e)}},function(e,t,n){var r=n(15),i=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&i(e)===e}},function(e,t,n){var r=n(8);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(o){var s=e.return;throw void 0!==s&&r(s.call(e)),o}}},function(e,t,n){"use strict";var r=n(107),i=n(109),o=n(198),s={};n(65)(s,n(25)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(s,{next:i(1,n)}),o(e,t+" Iterator")}},function(e,t,n){var r=n(25)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(s){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],s=o[r]();s.next=function(){return{done:n=!0}},o[r]=function(){return s},e(o)}catch(a){}return n}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){"use strict";var r=n(108),i=n(196),o=n(197),s=n(50),a=n(133),l=Object.assign;e.exports=!l||n(13)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=r})?function(e,t){for(var n=s(e),l=arguments.length,c=1,u=i.f,p=o.f;l>c;)for(var d,h=a(arguments[c++]),f=u?r(h).concat(u(h)):r(h),m=f.length,y=0;m>y;)p.call(h,d=f[y++])&&(n[d]=h[d]);return n}:l},function(e,t,n){var r=n(30),i=n(8),o=n(108);e.exports=n(35)?Object.defineProperties:function(e,t){i(e);for(var n,s=o(t),a=s.length,l=0;a>l;)r.f(e,n=s[l++],t[n]);return e}},function(e,t,n){var r=n(57),i=n(135).f,o={}.toString,s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],a=function(e){try{return i(e)}catch(t){return s.slice()}};e.exports.f=function(e){return s&&"[object Window]"==o.call(e)?a(e):i(r(e))}},function(e,t,n){var r=n(48),i=n(57),o=n(445)(!1),s=n(300)("IE_PROTO");e.exports=function(e,t){var n,a=i(e),l=0,c=[];for(n in a)n!=s&&r(a,n)&&c.push(n);for(;t.length>l;)r(a,n=t[l++])&&(~o(c,n)||c.push(n));return c}},function(e,t,n){var r=n(26).parseFloat,i=n(200).trim;e.exports=1/r(n(302)+"-0")!==-(1/0)?function(e){var t=i(String(e),3),n=r(t);return 0===n&&"-"==t.charAt(0)?-0:n}:r},function(e,t,n){var r=n(26).parseInt,i=n(200).trim,o=n(302),s=/^[-+]?0[xX]/;e.exports=8!==r(o+"08")||22!==r(o+"0x16")?function(e,t){var n=i(String(e),3);return r(n,t>>>0||(s.test(n)?16:10))}:r},function(e,t,n){var r=n(110),i=n(75);e.exports=function(e){return function(t,n){var o,s,a=String(i(t)),l=r(n),c=a.length;return l<0||l>=c?e?"":void 0:(o=a.charCodeAt(l),o<55296||o>56319||l+1===c||(s=a.charCodeAt(l+1))<56320||s>57343?e?a.charAt(l):o:e?a.slice(l,l+2):(o-55296<<10)+(s-56320)+65536)}}},function(e,t,n){"use strict";var r=n(110),i=n(75);e.exports=function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},function(e,t,n){t.f=n(25)},function(e,t,n){var r=n(448),i=n(25)("iterator"),o=n(134);e.exports=n(24).getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},function(e,t,n){"use strict";var r=n(132),i=n(459),o=n(134),s=n(57);e.exports=n(294)(Array,"Array",function(e,t){this._t=s(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):"keys"==t?i(0,n):"values"==t?i(0,e[n]):i(0,[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(e,t,n){"use strict";var r=n(449),i=n(138),o="Map";e.exports=n(287)(o,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(i(this,o),e);return t&&t.v},set:function(e,t){return r.def(i(this,o),0===e?0:e,t)}},r,!0)},function(e,t,n){n(35)&&"g"!=/./g.flags&&n(30).f(RegExp.prototype,"flags",{configurable:!0,get:n(290)})},function(e,t,n){n(193)("match",1,function(e,t,n){return[function(n){"use strict";var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},n]})},function(e,t,n){n(193)("replace",2,function(e,t,n){return[function(r,i){"use strict";var o=e(this),s=void 0==r?void 0:r[t];return void 0!==s?s.call(r,o,i):n.call(String(o),r,i)},n]})},function(e,t,n){n(193)("search",1,function(e,t,n){return[function(n){"use strict";var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},n]})},function(e,t,n){n(193)("split",2,function(e,t,r){"use strict";var i=n(293),o=r,s=[].push,a="split",l="length",c="lastIndex";if("c"=="abbc"[a](/(b)*/)[1]||4!="test"[a](/(?:)/,-1)[l]||2!="ab"[a](/(?:ab)*/)[l]||4!="."[a](/(.?)(.?)/)[l]||"."[a](/()()/)[l]>1||""[a](/.?/)[l]){var u=void 0===/()??/.exec("")[1];r=function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!i(e))return o.call(n,e,t);var r,a,p,d,h,f=[],m=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),y=0,v=void 0===t?4294967295:t>>>0,g=new RegExp(e.source,m+"g");for(u||(r=new RegExp("^"+g.source+"$(?!\\s)",m));(a=g.exec(n))&&(p=a.index+a[0][l],!(p>y&&(f.push(n.slice(y,a.index)),!u&&a[l]>1&&a[0].replace(r,function(){for(h=1;h1&&a.index=v)));)g[c]===a.index&&g[c]++;return y===n[l]?!d&&g.test("")||f.push(""):f.push(n.slice(y)),f[l]>v?f.slice(0,v):f}}else"0"[a](void 0,0)[l]&&(r=function(e,t){return void 0===e&&0===t?[]:o.call(this,e,t)});return[function(n,i){var o=e(this),s=void 0==n?void 0:n[t];return void 0!==s?s.call(n,o,i):r.call(String(o),n,i)},r]})},function(e,t,n){"use strict";var r=n(449),i=n(138),o="Set";e.exports=n(287)(o,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(i(this,o),e=0===e?0:e,e)}},r)},function(e,t,n){"use strict";var r=n(26),i=n(48),o=n(35),s=n(2),a=n(39),l=n(76).KEY,c=n(13),u=n(199),p=n(198),d=n(137),h=n(25),f=n(469),m=n(685),y=n(680),v=n(292),g=n(8),b=n(15),_=n(57),S=n(97),w=n(109),C=n(107),E=n(463),T=n(77),R=n(30),P=n(108),x=T.f,M=R.f,I=E.f,A=r.Symbol,k=r.JSON,O=k&&k.stringify,D="prototype",N=h("_hidden"),V=h("toPrimitive"),L={}.propertyIsEnumerable,F=u("symbol-registry"),j=u("symbols"),B=u("op-symbols"),W=Object[D],H="function"==typeof A,U=r.QObject,z=!U||!U[D]||!U[D].findChild,G=o&&c(function(){return 7!=C(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=x(W,t);r&&delete W[t],M(e,t,n),r&&e!==W&&M(W,t,r)}:M,q=function(e){var t=j[e]=C(A[D]);return t._k=e,t},K=H&&"symbol"==typeof A.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof A},$=function(e,t,n){return e===W&&$(B,t,n),g(e),t=S(t,!0),g(n),i(j,t)?(n.enumerable?(i(e,N)&&e[N][t]&&(e[N][t]=!1),n=C(n,{enumerable:w(0,!1)})):(i(e,N)||M(e,N,w(1,{})),e[N][t]=!0),G(e,t,n)):M(e,t,n)},X=function(e,t){g(e);for(var n,r=y(t=_(t)),i=0,o=r.length;o>i;)$(e,n=r[i++],t[n]);return e},Q=function(e,t){return void 0===t?C(e):X(C(e),t)},Y=function(e){var t=L.call(this,e=S(e,!0));return!(this===W&&i(j,e)&&!i(B,e))&&(!(t||!i(this,e)||!i(j,e)||i(this,N)&&this[N][e])||t)},Z=function(e,t){if(e=_(e),t=S(t,!0),e!==W||!i(j,t)||i(B,t)){var n=x(e,t);return!n||!i(j,t)||i(e,N)&&e[N][t]||(n.enumerable=!0),n}},J=function(e){for(var t,n=I(_(e)),r=[],o=0;n.length>o;)i(j,t=n[o++])||t==N||t==l||r.push(t);return r},ee=function(e){for(var t,n=e===W,r=I(n?B:_(e)),o=[],s=0;r.length>s;)!i(j,t=r[s++])||n&&!i(W,t)||o.push(j[t]);return o};H||(A=function(){if(this instanceof A)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===W&&t.call(B,n),i(this,N)&&i(this[N],e)&&(this[N][e]=!1),G(this,e,w(1,n))};return o&&z&&G(W,e,{configurable:!0,set:t}),q(e)},a(A[D],"toString",function(){return this._k}),T.f=Z,R.f=$,n(135).f=E.f=J,n(197).f=Y,n(196).f=ee,o&&!n(195)&&a(W,"propertyIsEnumerable",Y,!0),f.f=function(e){return q(h(e))}),s(s.G+s.W+s.F*!H,{Symbol:A});for(var te="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ne=0;te.length>ne;)h(te[ne++]);for(var re=P(h.store),ie=0;re.length>ie;)m(re[ie++]);s(s.S+s.F*!H,"Symbol",{"for":function(e){return i(F,e+="")?F[e]:F[e]=A(e)},keyFor:function(e){if(!K(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){z=!0},useSimple:function(){z=!1}}),s(s.S+s.F*!H,"Object",{create:Q,defineProperty:$,defineProperties:X,getOwnPropertyDescriptor:Z,getOwnPropertyNames:J,getOwnPropertySymbols:ee}),k&&s(s.S+s.F*(!H||c(function(){var e=A();return"[null]"!=O([e])||"{}"!=O({a:e})||"{}"!=O(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],i=1;arguments.length>i;)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!K(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!K(t))return t}),r[1]=t,O.apply(k,r)}}),A[D][V]||n(65)(A[D],V,A[D].valueOf),p(A,"Symbol"),p(Math,"Math",!0),p(r.JSON,"JSON",!0)},function(e,t,n){for(var r=n(471),i=n(108),o=n(39),s=n(26),a=n(65),l=n(134),c=n(25),u=c("iterator"),p=c("toStringTag"),d=l.Array,h={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=i(h),m=0;mt&&(o=Math.max(o,i-t)),o>0&&r.splice(0,o),r},ReplaySubject}(i.Subject);t.ReplaySubject=a;var l=function(){function ReplayEvent(e,t){this.time=e,this.value=t}return ReplayEvent}()},function(e,t,n){"use strict";var r=n(20);t.Subject=r.Subject;var i=n(1);t.Observable=i.Observable,n(900),n(901),n(902),n(903),n(904),n(905),n(485),n(906),n(907),n(908),n(909),n(486),n(910),n(912),n(911),n(487),n(913),n(488),n(914),n(915),n(918),n(919),n(920),n(921),n(922),n(923),n(209),n(924),n(489),n(925),n(304),n(926),n(927),n(928),n(933),n(929),n(490),n(930),n(931),n(932),n(491),n(492),n(934),n(494),n(495),n(496),n(935),n(936),n(916),n(917),n(497),n(937),n(493),n(140),n(938),n(939),n(498),n(305),n(499),n(940),n(941),n(942),n(943),n(944),n(945),n(946),n(948),n(947),n(949),n(500),n(950),n(951),n(952),n(953),n(954),n(955),n(501),n(956),n(957),n(958),n(959),n(960),n(961),n(962),n(306),n(963),n(964),n(965),n(966),n(967),n(968),n(969),n(970),n(971),n(972),n(307),n(973),n(974),n(975),n(976),n(977),n(978),n(979),n(980);var o=n(898);t.Operator=o.Operator;var s=n(41);t.Subscription=s.Subscription;var a=n(6);t.Subscriber=a.Subscriber;var l=n(206);t.AsyncSubject=l.AsyncSubject;var c=n(483);t.ReplaySubject=c.ReplaySubject;var u=n(207);t.BehaviorSubject=u.BehaviorSubject;var p=n(502);t.ConnectableObservable=p.ConnectableObservable;var d=n(208);t.Notification=d.Notification;var h=n(143);t.EmptyError=h.EmptyError;var f=n(316);t.ArgumentOutOfRangeError=f.ArgumentOutOfRangeError;var m=n(317);t.ObjectUnsubscribedError=m.ObjectUnsubscribedError;var y=n(513);t.UnsubscriptionError=y.UnsubscriptionError;var v=n(511),g=n(45),b=n(512),_=n(215),S=n(214),w=n(142),C={asap:v.asap,async:g.async,queue:b.queue};t.Scheduler=C;var E={rxSubscriber:_.$$rxSubscriber,observable:S.$$observable,iterator:w.$$iterator};t.Symbol=E},function(e,t,n){"use strict";var r=n(1),i=n(503);r.Observable.forkJoin=i.forkJoin},function(e,t,n){"use strict";var r=n(1),i=n(1003);r.Observable.interval=i.interval},function(e,t,n){"use strict";var r=n(1),i=n(141);r.Observable.of=i.of},function(e,t,n){"use strict";var r=n(1),i=n(1007);r.Observable.throw=i._throw},function(e,t,n){"use strict";var r=n(1),i=n(310);r.Observable.prototype.combineLatest=i.combineLatest},function(e,t,n){"use strict";var r=n(1),i=n(1025);r.Observable.prototype.debounceTime=i.debounceTime},function(e,t,n){"use strict";var r=n(1),i=n(1030);r.Observable.prototype.distinctUntilChanged=i.distinctUntilChanged},function(e,t,n){"use strict";var r=n(1),i=n(1031);r.Observable.prototype.do=i._do},function(e,t,n){"use strict";var r=n(1),i=n(1032);r.Observable.prototype.every=i.every},function(e,t,n){"use strict";var r=n(1),i=n(504);r.Observable.prototype.filter=i.filter},function(e,t,n){"use strict";var r=n(1),i=n(1034);r.Observable.prototype.finally=i._finally},function(e,t,n){"use strict";var r=n(1),i=n(1035);r.Observable.prototype.first=i.first},function(e,t,n){"use strict";var r=n(1),i=n(1038);r.Observable.prototype.last=i.last},function(e,t,n){"use strict";var r=n(1),i=n(506);r.Observable.prototype.merge=i.merge},function(e,t,n){"use strict";var r=n(1),i=n(507);r.Observable.prototype.mergeMap=i.mergeMap,r.Observable.prototype.flatMap=i.mergeMap},function(e,t,n){"use strict";var r=n(1),i=n(1047);r.Observable.prototype.reduce=i.reduce},function(e,t,n){"use strict";var r=n(1),i=n(1054);r.Observable.prototype.share=i.share},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(1),o=n(6),s=n(41),a=function(e){function ConnectableObservable(t,n){e.call(this),this.source=t,this.subjectFactory=n}return r(ConnectableObservable,e),ConnectableObservable.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},ConnectableObservable.prototype.getSubject=function(){var e=this.subject;return e&&!e.isUnsubscribed?e:this.subject=this.subjectFactory()},ConnectableObservable.prototype.connect=function(){var e=this.source,t=this.subscription;return t&&!t.isUnsubscribed?t:(t=e.subscribe(this.getSubject()),t.add(new l(this)),this.subscription=t)},ConnectableObservable.prototype.refCount=function(){return new c(this)},ConnectableObservable.prototype._closeSubscription=function(){this.subject=null,this.subscription=null},ConnectableObservable}(i.Observable);t.ConnectableObservable=a;var l=function(e){function ConnectableSubscription(t){e.call(this),this.connectable=t}return r(ConnectableSubscription,e),ConnectableSubscription.prototype._unsubscribe=function(){var e=this.connectable;e._closeSubscription(),this.connectable=null},ConnectableSubscription}(s.Subscription),c=function(e){function RefCountObservable(t,n){void 0===n&&(n=0),e.call(this),this.connectable=t,this.refCount=n}return r(RefCountObservable,e),RefCountObservable.prototype._subscribe=function(e){var t=this.connectable,n=new u(e,this),r=t.subscribe(n);return r.isUnsubscribed||1!==++this.refCount||(n.connection=this.connection=t.connect()),r},RefCountObservable}(i.Observable),u=function(e){function RefCountSubscriber(t,n){e.call(this,null),this.destination=t,this.refCountObservable=n,this.connection=n.connection,t.add(this)}return r(RefCountSubscriber,e),RefCountSubscriber.prototype._next=function(e){this.destination.next(e)},RefCountSubscriber.prototype._error=function(e){this._resetConnectable(),this.destination.error(e)},RefCountSubscriber.prototype._complete=function(){this._resetConnectable(),this.destination.complete()},RefCountSubscriber.prototype._resetConnectable=function(){var e=this.refCountObservable,t=e.connection,n=this.connection;n&&n===t&&(e.refCount=0,t.unsubscribe(),e.connection=null,this.unsubscribe())},RefCountSubscriber.prototype._unsubscribe=function(){var e=this.refCountObservable;if(0!==e.refCount&&0===--e.refCount){var t=e.connection,n=this.connection;n&&n===t&&(t.unsubscribe(),e.connection=null)}},RefCountSubscriber}(o.Subscriber)},function(e,t,n){"use strict";var r=n(986);t.forkJoin=r.ForkJoinObservable.create},function(e,t,n){"use strict";function filter(e,t){return this.lift(new o(e,t))}var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(6);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,n,r){e.call(this,t),this.predicate=n,this.thisArg=r,this.count=0,this.predicate=n}return r(FilterSubscriber,e),FilterSubscriber.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}t&&this.destination.next(e)},FilterSubscriber}(i.Subscriber)},function(e,t,n){ +"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 r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(6);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}(),s=function(e){function MapSubscriber(t,n,r){e.call(this,t),this.project=n,this.count=0,this.thisArg=r||this}return r(MapSubscriber,e),MapSubscriber.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)},MapSubscriber}(i.Subscriber)},function(e,t,n){"use strict";function merge(){for(var e=[],t=0;t1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof a&&(n=e.pop()),1===e.length?e[0]:new r.ArrayObservable(e,s).lift(new i.MergeAllOperator(n))}var r=n(79),i=n(212),o=n(98);t.merge=merge,t.mergeStatic=mergeStatic},function(e,t,n){"use strict";function mergeMap(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof t&&(n=t,t=null),this.lift(new s(e,t,n))}var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(12),o=n(11);t.mergeMap=mergeMap;var s=function(){function MergeMapOperator(e,t,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=e,this.resultSelector=t,this.concurrent=n}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,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),e.call(this,t),this.project=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return r(MergeMapSubscriber,e),MergeMapSubscriber.prototype._next=function(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},MergeMapSubscriber}(o.OuterSubscriber);t.MergeMapSubscriber=a},function(e,t,n){"use strict";function mergeMapTo(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof t&&(n=t,t=null),this.lift(new s(e,t,n))}var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(11),o=n(12);t.mergeMapTo=mergeMapTo;var s=function(){function MergeMapToOperator(e,t,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.ish=e,this.resultSelector=t,this.concurrent=n}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,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),e.call(this,t),this.ish=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return r(MergeMapToSubscriber,e),MergeMapToSubscriber.prototype._next=function(e){if(this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},MergeMapToSubscriber}(i.OuterSubscriber);t.MergeMapToSubscriber=a},function(e,t,n){"use strict";function publishReplay(e,t,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===t&&(t=Number.POSITIVE_INFINITY),i.multicast.call(this,new r.ReplaySubject(e,t,n))}var r=n(483),i=n(111);t.publishReplay=publishReplay},function(e,t,n){"use strict";function race(){for(var e=[],t=0;t0?t.substring(1):t},HashLocationStrategy.prototype.prepareExternalUrl=function(e){var t=s.Location.joinWithSlash(this._baseHref,e);return t.length>0?"#"+t:t},HashLocationStrategy.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+s.Location.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(e,t,i)},HashLocationStrategy.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+s.Location.normalizeQueryParams(r));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:i.Injectable}],HashLocationStrategy.ctorParameters=[{type:l.PlatformLocation},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[a.APP_BASE_HREF]}]}],HashLocationStrategy}(a.LocationStrategy);t.HashLocationStrategy=c},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(0),o=n(83),s=n(7),a=n(231),l=n(149),c=n(232),u=function(e){function PathLocationStrategy(t,n){if(e.call(this),this._platformLocation=t,s.isBlank(n)&&(n=this._platformLocation.getBaseHrefFromDOM()),s.isBlank(n))throw new o.BaseException("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=n}return r(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 a.Location.joinWithSlash(this._baseHref,e)},PathLocationStrategy.prototype.path=function(e){void 0===e&&(e=!1);var t=this._platformLocation.pathname+a.Location.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?""+t+n:t},PathLocationStrategy.prototype.pushState=function(e,t,n,r){var i=this.prepareExternalUrl(n+a.Location.normalizeQueryParams(r));this._platformLocation.pushState(e,t,i)},PathLocationStrategy.prototype.replaceState=function(e,t,n,r){var i=this.prepareExternalUrl(n+a.Location.normalizeQueryParams(r));this._platformLocation.replaceState(e,t,i)},PathLocationStrategy.prototype.forward=function(){this._platformLocation.forward()},PathLocationStrategy.prototype.back=function(){this._platformLocation.back()},PathLocationStrategy.decorators=[{type:i.Injectable}],PathLocationStrategy.ctorParameters=[{type:c.PlatformLocation},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[l.APP_BASE_HREF]}]}],PathLocationStrategy}(l.LocationStrategy);t.PathLocationStrategy=u},function(e,t,n){"use strict";var r=n(335),i=n(336),o=n(337),s=n(338),a=n(339),l=n(340),c=n(341),u=n(342),p=n(343),d=n(344);t.COMMON_PIPES=[r.AsyncPipe,d.UpperCasePipe,l.LowerCasePipe,a.JsonPipe,p.SlicePipe,c.DecimalPipe,c.PercentPipe,c.CurrencyPipe,i.DatePipe,u.ReplacePipe,o.I18nPluralPipe,s.I18nSelectPipe]},function(e,t,n){"use strict";var r,i=n(234),o=n(151),s=n(152),a=n(237),l=n(153),c=n(68),u=n(238),p=n(553),d=n(354),h=n(60),f=n(358),m=n(242),y=n(243),v=n(155),g=n(156);!function(e){e.SelectorMatcher=m.SelectorMatcher,e.CssSelector=m.CssSelector,e.AssetUrl=p.AssetUrl,e.ImportGenerator=p.ImportGenerator,e.CompileMetadataResolver=a.CompileMetadataResolver,e.HtmlParser=l.HtmlParser,e.InterpolationConfig=c.InterpolationConfig,e.DirectiveNormalizer=i.DirectiveNormalizer,e.Lexer=o.Lexer,e.Parser=s.Parser,e.ParseLocation=h.ParseLocation,e.ParseError=h.ParseError,e.ParseErrorLevel=h.ParseErrorLevel,e.ParseSourceFile=h.ParseSourceFile,e.ParseSourceSpan=h.ParseSourceSpan,e.TemplateParser=v.TemplateParser,e.DomElementSchemaRegistry=f.DomElementSchemaRegistry,e.StyleCompiler=y.StyleCompiler,e.ViewCompiler=g.ViewCompiler,e.NgModuleCompiler=u.NgModuleCompiler,e.TypeScriptEmitter=d.TypeScriptEmitter}(r=t.__compiler_private__||(t.__compiler_private__={}))},function(e,t,n){"use strict";function parseAnimationEntry(e){var t=[],n={},r=[],i=[];e.definitions.forEach(function(e){e instanceof o.CompileAnimationStateDeclarationMetadata?_parseAnimationDeclarationStates(e,t).forEach(function(e){i.push(e),n[e.stateName]=e.styles}):r.push(e)});var s=r.map(function(e){return _parseAnimationStateTransition(e,n,t)}),a=new u.AnimationEntryAst(e.name,i,s);return new y(a,t)}function _parseAnimationDeclarationStates(e,t){var n=[];e.styles.styles.forEach(function(e){a.isStringMap(e)?n.push(e):t.push(new m("State based animations cannot contain references to other states"))});var r=new u.AnimationStylesAst(n),i=e.stateNameExpr.split(/\s*,\s*/);return i.map(function(e){return new u.AnimationStateDeclarationAst(e,r)})}function _parseAnimationStateTransition(e,t,n){var r=new p.StylesCollection,i=[],o=e.stateChangeExpr.split(/\s*,\s*/);o.forEach(function(e){_parseAnimationTransitionExpr(e,n).forEach(function(e){i.push(e)})});var s=_normalizeAnimationEntry(e.steps),a=_normalizeStyleSteps(s,t,n),l=_parseTransitionAnimation(a,0,r,t,n);0==n.length&&_fillAnimationAstStartingKeyframes(l,r,n);var c=l instanceof u.AnimationSequenceAst?l:new u.AnimationSequenceAst([l]);return new u.AnimationStateTransitionAst(i,c)}function _parseAnimationTransitionExpr(e,t){var n=[],r=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(!a.isPresent(r)||r.length<4)return t.push(new m("the provided "+e+" is not of a supported format")),n;var o=r[1],s=r[2],l=r[3];n.push(new u.AnimationStateTransitionExpression(o,l));var c=o==i.ANY_STATE&&l==i.ANY_STATE;return"<"!=s[0]||c||n.push(new u.AnimationStateTransitionExpression(l,o)),n}function _normalizeAnimationEntry(e){return a.isArray(e)?new o.CompileAnimationSequenceMetadata(e):e}function _normalizeStyleMetadata(e,t,n){var r=[];return e.styles.forEach(function(e){a.isString(e)?s.ListWrapper.addAll(r,_resolveStylesFromState(e,t,n)):r.push(e)}),r}function _normalizeStyleSteps(e,t,n){var r=_normalizeStyleStepEntry(e,t,n);return new o.CompileAnimationSequenceMetadata(r)}function _mergeAnimationStyles(e,t){if(a.isStringMap(t)&&e.length>0){var n=e.length-1,r=e[n];if(a.isStringMap(r))return void(e[n]=s.StringMapWrapper.merge(r,t))}e.push(t)}function _normalizeStyleStepEntry(e,t,n){var r;if(!(e instanceof o.CompileAnimationWithStepsMetadata))return[e];r=e.steps;var i,s=[];return r.forEach(function(e){if(e instanceof o.CompileAnimationStyleMetadata)a.isPresent(i)||(i=[]),_normalizeStyleMetadata(e,t,n).forEach(function(e){_mergeAnimationStyles(i,e)});else{if(a.isPresent(i)&&(s.push(new o.CompileAnimationStyleMetadata(0,i)),i=null),e instanceof o.CompileAnimationAnimateMetadata){var r=e.styles;r instanceof o.CompileAnimationStyleMetadata?r.styles=_normalizeStyleMetadata(r,t,n):r instanceof o.CompileAnimationKeyframesSequenceMetadata&&r.steps.forEach(function(e){e.styles=_normalizeStyleMetadata(e,t,n)})}else if(e instanceof o.CompileAnimationWithStepsMetadata){var l=_normalizeStyleStepEntry(e,t,n);e=e instanceof o.CompileAnimationGroupMetadata?new o.CompileAnimationGroupMetadata(l):new o.CompileAnimationSequenceMetadata(l)}s.push(e)}}),a.isPresent(i)&&s.push(new o.CompileAnimationStyleMetadata(0,i)),s}function _resolveStylesFromState(e,t,n){var r=[];if(":"!=e[0])n.push(new m('Animation states via styles must be prefixed with a ":"'));else{var i=e.substring(1),o=t[i];a.isPresent(o)?o.styles.forEach(function(e){a.isStringMap(e)&&r.push(e)}):n.push(new m('Unable to apply styles due to missing a state: "'+i+'"'))}return r}function _parseAnimationKeyframes(e,t,n,r,o){var l=e.steps.length,c=0;e.steps.forEach(function(e){return c+=a.isPresent(e.offset)?1:0}),c>0&&c=0;_--){var T=y[_],R=T[1];s.StringMapWrapper.forEach(R,function(e,t){a.isPresent(E[t])||(E[t]=e)})}return y.map(function(e){return new u.AnimationKeyframeAst(e[0],new u.AnimationStylesAst([e[1]]))})}function _parseTransitionAnimation(e,t,n,r,i){var c,p=0,d=t;if(e instanceof o.CompileAnimationWithStepsMetadata){var f,m=0,y=[],v=e instanceof o.CompileAnimationGroupMetadata;if(e.steps.forEach(function(e){var c=v?d:t;if(e instanceof o.CompileAnimationStyleMetadata)return e.styles.forEach(function(e){var t=e;s.StringMapWrapper.forEach(t,function(e,t){n.insertAtTime(t,c,e)})}),void(f=e.styles);var h=_parseTransitionAnimation(e,c,n,r,i);if(a.isPresent(f)){if(e instanceof o.CompileAnimationWithStepsMetadata){var g=new u.AnimationStylesAst(f);y.push(new u.AnimationStepAst(g,[],0,0,""))}else{var b=h;s.ListWrapper.addAll(b.startingStyles.styles,f)}f=null}var _=h.playTime;t+=_,p+=_,m=l.Math.max(_,m),y.push(h)}),a.isPresent(f)){var g=new u.AnimationStylesAst(f);y.push(new u.AnimationStepAst(g,[],0,0,""))}v?(c=new u.AnimationGroupAst(y),p=m,t=d+p):c=new u.AnimationSequenceAst(y)}else if(e instanceof o.CompileAnimationAnimateMetadata){var b,_=_parseTimeExpression(e.timings,i),S=e.styles;if(S instanceof o.CompileAnimationKeyframesSequenceMetadata)b=_parseAnimationKeyframes(S,t,n,r,i);else{var w=S,C=h,E=new u.AnimationStylesAst(w.styles),T=new u.AnimationKeyframeAst(C,E);b=[T]}c=new u.AnimationStepAst(new u.AnimationStylesAst([]),b,_.duration,_.delay,_.easing),p=_.duration+_.delay,t+=p,b.forEach(function(e){return e.styles.styles.forEach(function(e){return s.StringMapWrapper.forEach(e,function(e,r){return n.insertAtTime(r,t,e)})})})}else c=new u.AnimationStepAst(null,[],0,0,"");return c.playTime=p,c.startTime=d,c}function _fillAnimationAstStartingKeyframes(e,t,n){if(e instanceof u.AnimationStepAst&&e.keyframes.length>0){var r=e.keyframes;if(1==r.length){var i=r[0],o=_createStartKeyframeFromEndKeyframe(i,e.startTime,e.playTime,t,n);e.keyframes=[o,i]}}else e instanceof u.AnimationWithStepsAst&&e.steps.forEach(function(e){return _fillAnimationAstStartingKeyframes(e,t,n)})}function _parseTimeExpression(e,t){var n,r=/^([\.\d]+)(m?s)(?:\s+([\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?/i,i=0,o=null;if(a.isString(e)){var s=e.match(r);if(null===s)return t.push(new m('The provided timing value "'+e+'" is invalid.')),new v(0,0,null);var c=a.NumberWrapper.parseFloat(s[1]),u=s[2];"s"==u&&(c*=f),n=l.Math.floor(c);var p=s[3],d=s[4];if(a.isPresent(p)){var h=a.NumberWrapper.parseFloat(p);a.isPresent(d)&&"s"==d&&(h*=f),i=l.Math.floor(h)}var y=s[5];a.isBlank(y)||(o=y)}else n=e;return new v(n,i,o)}function _createStartKeyframeFromEndKeyframe(e,t,n,r,o){var l={},c=t+n;return e.styles.styles.forEach(function(e){s.StringMapWrapper.forEach(e,function(e,n){if("offset"!=n){var s,u,p,d=r.indexOfAtOrBeforeTime(n,t);a.isPresent(d)?(s=r.getByIndex(n,d),p=s.value,u=r.getByIndex(n,d+1)):p=i.FILL_STYLE_FLAG,a.isPresent(u)&&!u.matches(c,e)&&o.push(new m('The animated CSS property "'+n+'" unexpectedly changes between steps "'+s.time+'ms" and "'+c+'ms" at "'+u.time+'ms"')),l[n]=p}})}),new u.AnimationKeyframeAst(d,new u.AnimationStylesAst([l]))}var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(27),o=n(31),s=n(10),a=n(5),l=n(535),c=n(60),u=n(345),p=n(533),d=0,h=1,f=1e3,m=function(e){function AnimationParseError(t){e.call(this,null,t)}return r(AnimationParseError,e),AnimationParseError.prototype.toString=function(){return""+this.msg},AnimationParseError}(c.ParseError);t.AnimationParseError=m;var y=function(){function ParsedAnimationResult(e,t){this.ast=e,this.errors=t}return ParsedAnimationResult}();t.ParsedAnimationResult=y,t.parseAnimationEntry=parseAnimationEntry;var v=function(){function _AnimationTimings(e,t,n){this.duration=e,this.delay=t,this.easing=n}return _AnimationTimings}()},function(e,t,n){"use strict";var r=n(10),i=n(5),o=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}();t.StylesCollectionEntry=o;var s=function(){function StylesCollection(){this.styles={}}return StylesCollection.prototype.insertAtTime=function(e,t,n){var s=new o(t,n),a=this.styles[e];i.isPresent(a)||(a=this.styles[e]=[]);for(var l=0,c=a.length-1;c>=0;c--)if(a[c].time<=t){l=c+1;break}r.ListWrapper.insert(a,l,s)},StylesCollection.prototype.getByIndex=function(e,t){var n=this.styles[e];return i.isPresent(n)?t>=n.length?null:n[t]:null},StylesCollection.prototype.indexOfAtOrBeforeTime=function(e,t){var n=this.styles[e];if(i.isPresent(n))for(var r=n.length-1;r>=0;r--)if(n[r].time<=t)return r;return null},StylesCollection}();t.StylesCollection=s},function(e,t,n){"use strict";function __export(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function analyzeAppProvidersForDeprecatedConfiguration(e){void 0===e&&(e=[]);var t,n,i,o=[],s=[],a=[],l=[],c=r.ReflectiveInjector.resolveAndCreate(e),d=c.get(b.CompilerConfig,null);d?(o=d.platformDirectives,s=d.platformPipes,n=d.useJit,t=d.genDebugInfo,i=d.defaultEncapsulation,l.push('Passing CompilerConfig as a regular provider is deprecated. Use the "compilerOptions" parameter of "bootstrap()" or use a custom "CompilerFactory" platform provider instead.')):(o=c.get(r.PLATFORM_DIRECTIVES,[]),s=c.get(r.PLATFORM_PIPES,[])),o=p.ListWrapper.flatten(o),s=p.ListWrapper.flatten(s);var h=c.get(I.XHR,null);h&&(a.push([{provide:I.XHR,useValue:h}]),l.push('Passing XHR as regular provider is deprecated. Pass the provider via "compilerOptions" instead.')),o.length>0&&l.push("The PLATFORM_DIRECTIVES provider and CompilerConfig.platformDirectives is deprecated. Add the directives to an NgModule instead! "+("(Directives: "+o.map(function(e){return u.stringify(e)})+")")),s.length>0&&l.push("The PLATFORM_PIPES provider and CompilerConfig.platformPipes is deprecated. Add the pipes to an NgModule instead! "+("(Pipes: "+s.map(function(e){return u.stringify(e)})+")"));var f={useJit:n,useDebug:t,defaultEncapsulation:i,providers:a},m=function(){function DynamicComponent(){}return DynamicComponent.decorators=[{type:r.Component,args:[{directives:o,pipes:s,template:""}]}],DynamicComponent}();return{compilerOptions:f,moduleDeclarations:[m],deprecationMessages:l}}function _initReflector(){M.reflector.reflectionCapabilities=new M.ReflectionCapabilities}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}var r=n(0);__export(n(61));var i=n(155);t.TEMPLATE_TRANSFORMS=i.TEMPLATE_TRANSFORMS;var o=n(101);t.CompilerConfig=o.CompilerConfig,t.RenderTypes=o.RenderTypes,__export(n(31)),__export(n(549));var s=n(357);t.RuntimeCompiler=s.RuntimeCompiler,__export(n(103)),__export(n(245));var a=n(235);t.DirectiveResolver=a.DirectiveResolver;var l=n(241);t.PipeResolver=l.PipeResolver;var c=n(239);t.NgModuleResolver=c.NgModuleResolver;var u=n(5),p=n(10),d=n(155),h=n(153),f=n(234),m=n(237),y=n(243),v=n(156),g=n(238),b=n(101),_=n(357),S=n(113),w=n(358),C=n(103),E=n(152),T=n(151),R=n(235),P=n(241),x=n(239),M=n(27),I=n(245),A={get:function(e){throw new Error("No XHR implementation has been provided. Can't read the url \""+e+'"')}};t.COMPILER_PROVIDERS=[{provide:M.Reflector,useValue:M.reflector},{provide:M.ReflectorReader,useExisting:M.Reflector},{provide:I.XHR,useValue:A},M.Console,T.Lexer,E.Parser,h.HtmlParser,d.TemplateParser,f.DirectiveNormalizer,m.CompileMetadataResolver,C.DEFAULT_PACKAGE_URL_PROVIDER,y.StyleCompiler,v.ViewCompiler,g.NgModuleCompiler,{provide:b.CompilerConfig,useValue:new b.CompilerConfig},_.RuntimeCompiler,{provide:r.Compiler,useExisting:_.RuntimeCompiler},w.DomElementSchemaRegistry,{provide:S.ElementSchemaRegistry,useExisting:w.DomElementSchemaRegistry},C.UrlResolver,R.DirectiveResolver,P.PipeResolver,x.NgModuleResolver],t.analyzeAppProvidersForDeprecatedConfiguration=analyzeAppProvidersForDeprecatedConfiguration;var k=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 n=_mergeOptions(this._defaultOptions.concat(e)),i=r.ReflectiveInjector.resolveAndCreate([t.COMPILER_PROVIDERS,{provide:b.CompilerConfig,useFactory:function(){return new b.CompilerConfig({genDebugInfo:n.useDebug,useJit:n.useJit,defaultEncapsulation:n.defaultEncapsulation,logBindingUpdate:n.useDebug})},deps:[]},n.providers]);return i.get(r.Compiler)},RuntimeCompilerFactory.decorators=[{type:r.Injectable}],RuntimeCompilerFactory.ctorParameters=[{type:Array,decorators:[{type:r.Inject,args:[r.COMPILER_OPTIONS]}]}],RuntimeCompilerFactory}();t.RuntimeCompilerFactory=k,t.platformCoreDynamic=r.createPlatformFactory(r.platformCore,"coreDynamic",[{provide:r.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:r.CompilerFactory,useClass:k},{provide:r.PLATFORM_INITIALIZER,useValue:_initReflector,multi:!0}])},[1108,5],function(e,t,n){"use strict";function extractMessages(e,t,n,r){var i=new h(n,r);return i.extract(e,t)}function mergeTranslations(e,t,n,r,i){var o=new h(r,i);return o.merge(e,t,n)}function _isOpeningComment(e){return e instanceof r.Comment&&e.value&&e.value.startsWith("i18n")}function _isClosingComment(e){return e instanceof r.Comment&&e.value&&"/i18n"===e.value}function _getI18nAttr(e){return e.attrs.find(function(e){return e.name===l})||null}function _splitMeaningAndDesc(e){if(!e)return["",""];var t=e.indexOf("|");return t==-1?["",e]:[e.slice(0,t),e.slice(t+1)]}var r=n(85),i=n(350),o=n(351),s=n(537),a=n(352),l="i18n",c="i18n-",u=/^i18n:?/;t.extractMessages=extractMessages,t.mergeTranslations=mergeTranslations;var p=function(){function ExtractionResult(e,t){this.messages=e,this.errors=t}return ExtractionResult}();t.ExtractionResult=p;var d;!function(e){e[e.Extract=0]="Extract",e[e.Merge=1]="Merge"}(d||(d={}));var h=function(){function _Visitor(e,t){this._implicitTags=e,this._implicitAttrs=t,this._inI18nNode=!1,this._depth=0,this._inIcu=!1}return _Visitor.prototype.extract=function(e,t){var n=this;return this._init(d.Extract,t),e.forEach(function(e){return e.visit(n,null)}),this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new p(this._messages,this._errors)},_Visitor.prototype.merge=function(e,t,n){this._init(d.Merge,n),this._translations=t;var i=new r.Element("wrapper",[],e,null,null,null),o=i.visit(this,null);return this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),o.children},_Visitor.prototype.visitExpansionCase=function(e,t){var n=r.visitAll(this,e.expression,t);if(this._mode===d.Merge)return new r.ExpansionCase(e.value,n,e.sourceSpan,e.valueSourceSpan,e.expSourceSpan)},_Visitor.prototype.visitExpansion=function(e,t){this._mayBeAddBlockChildren(e);var n=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([e]),this._inIcu=!0);var i=r.visitAll(this,e.cases,t);return this._mode===d.Merge&&(e=new r.Expansion(e.switchValue,e.type,i,e.sourceSpan,e.switchValueSourceSpan)), +this._inIcu=n,e},_Visitor.prototype.visitComment=function(e,t){var n=_isOpeningComment(e);if(n&&this._isInTranslatableSection)return void this._reportError(e,"Could not start a block inside a translatable section");var r=_isClosingComment(e);if(r&&!this._inI18nBlock)return void this._reportError(e,"Trying to close an unopened block");if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(r){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(e,this._blockChildren),this._inI18nBlock=!1;var i=this._addMessage(this._blockChildren,this._blockMeaningAndDesc);return this._translateMessage(e,i)}return void this._reportError(e,"I18N blocks should not cross element boundaries")}}else n&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=e.value.replace(u,"").trim(),this._openTranslatableSection(e))},_Visitor.prototype.visitText=function(e,t){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(e),e},_Visitor.prototype.visitElement=function(e,t){var n=this;this._mayBeAddBlockChildren(e),this._depth++;var i,o=this._inI18nNode,s=_getI18nAttr(e),a=this._implicitTags.some(function(t){return e.name===t});if(this._isInTranslatableSection||this._inIcu)(s||a)&&this._reportError(e,"Could not mark an element as translatable inside a translatable section"),this._mode==d.Extract&&r.visitAll(this,e.children),this._mode==d.Merge&&(i=[],e.children.forEach(function(e){var r=e.visit(n,t);r&&!n._isInTranslatableSection&&(i=i.concat(r))}));else{if(s){this._inI18nNode=!0;var l=this._addMessage(e.children,s.value);i=this._translateMessage(e,l)}else if(a){this._inI18nNode=!0;var l=this._addMessage(e.children);i=this._translateMessage(e,l)}if(this._mode==d.Extract){var c=s||a;c&&this._openTranslatableSection(e),r.visitAll(this,e.children),c&&this._closeTranslatableSection(e,e.children)}this._mode!==d.Merge||s||a||(i=[],e.children.forEach(function(e){var r=e.visit(n,t);r&&!n._isInTranslatableSection&&(i=i.concat(r))}))}if(this._visitAttributesOf(e),this._depth--,this._inI18nNode=o,this._mode===d.Merge){var u=this._translateAttributes(e);return new r.Element(e.name,u,i,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._createI18nMessage=s.createI18nMessageFactory(t)},_Visitor.prototype._visitAttributesOf=function(e){var t=this,n={},r=this._implicitAttrs[e.name]||[];e.attrs.filter(function(e){return e.name.startsWith(c)}).forEach(function(e){return n[e.name.slice(c.length)]=e.value}),e.attrs.forEach(function(e){e.name in n?t._addMessage([e],n[e.name]):r.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 r.Attribute&&!e[0].value)){var n=_splitMeaningAndDesc(t),i=n[0],o=n[1],s=this._createI18nMessage(e,i,o);return this._messages.push(s),s}},_Visitor.prototype._translateMessage=function(e,t){if(t&&this._mode===d.Merge){var n=i.digestMessage(t),r=this._translations.get(n);if(r)return r;this._reportError(e,'Translation unavailable for message id="'+n+'"')}return[]},_Visitor.prototype._translateAttributes=function(e){var t=this,n=e.attrs,o={};n.forEach(function(e){e.name.startsWith(c)&&(o[e.name.slice(c.length)]=_splitMeaningAndDesc(e.value)[0])});var s=[];return n.forEach(function(n){if(n.name!==l&&!n.name.startsWith(c))if(o.hasOwnProperty(n.name)){var a=o[n.name],u=t._createI18nMessage([n],a,""),p=i.digestMessage(u),d=t._translations.get(p);if(d)if(d[0]instanceof r.Text){var h=d[0].value;s.push(new r.Attribute(n.name,h,n.sourceSpan))}else t._reportError(e,'Unexpected translation for attribute "'+n.name+'" (id="'+p+'")');else t._reportError(e,'Translation unavailable for attribute "'+n.name+'" (id="'+p+'")')}else s.push(n)}),s},_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 n=this._msgCountAtSectionStart,i=t.reduce(function(e,t){return e+(t instanceof r.Comment?0:1)},0);if(1==i)for(var s=this._messages.length-1;s>=n;s--){var a=this._messages[s].nodes;if(!(1==a.length&&a[0]instanceof o.Text)){this._messages.splice(s,1);break}}this._msgCountAtSectionStart=void 0},_Visitor.prototype._reportError=function(e,t){this._errors.push(new a.I18nError(e.sourceSpan,t))},_Visitor}()},function(e,t,n){"use strict";function createI18nMessageFactory(e){var t=new u(c,e);return function(e,n,r){return t.toI18nMessage(e,n,r)}}function _extractPlaceholderName(e){return e.split(p)[1]}var r=n(151),i=n(152),o=n(85),s=n(353),a=n(351),l=n(540),c=new i.Parser(new r.Lexer);t.createI18nMessageFactory=createI18nMessageFactory;var u=function(){function _I18nVisitor(e,t){this._expressionParser=e,this._interpolationConfig=t}return _I18nVisitor.prototype.toI18nMessage=function(e,t,n){this._isIcu=1==e.length&&e[0]instanceof o.Expansion,this._icuDepth=0,this._placeholderRegistry=new l.PlaceholderRegistry,this._placeholderToContent={};var r=o.visitAll(this,e,{});return new a.Message(r,this._placeholderToContent,t,n)},_I18nVisitor.prototype.visitElement=function(e,t){var n=o.visitAll(this,e.children),r={};e.attrs.forEach(function(e){r[e.name]=e.value});var i=s.getHtmlTagDefinition(e.name).isVoid,l=this._placeholderRegistry.getStartTagPlaceholderName(e.name,r,i);this._placeholderToContent[l]=e.sourceSpan.toString();var c="";return i||(c=this._placeholderRegistry.getCloseTagPlaceholderName(e.name),this._placeholderToContent[c]=""),new a.TagPlaceholder(e.name,r,l,c,n,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 n=this;this._icuDepth++;var r={},i=new a.Icu(e.switchValue,e.type,r,e.sourceSpan);if(e.cases.forEach(function(e){r[e.value]=new a.Container(e.expression.map(function(e){return e.visit(n,{})}),e.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0)return i;var o=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());return this._placeholderToContent[o]=e.sourceSpan.toString(),new a.IcuPlaceholder(i,o,e.sourceSpan)},_I18nVisitor.prototype.visitExpansionCase=function(e,t){throw new Error("Unreachable code")},_I18nVisitor.prototype._visitTextWithInterpolation=function(e,t){var n=this._expressionParser.splitInterpolation(e,t.start.toString(),this._interpolationConfig);if(!n)return new a.Text(e,t);for(var r=[],i=new a.Container(r,t),o=this._interpolationConfig,s=o.start,l=o.end,c=0;c":">";return r+i+o},PlaceholderRegistry.prototype._hashClosingTag=function(e){return this._hashTag("/"+e,{},!1)},PlaceholderRegistry.prototype._generateUniqueName=function(e){var t=e,n=this._placeHolderNameCounts[t];return n?(t+="_"+n,n++):n=1,this._placeHolderNameCounts[e]=n,t},PlaceholderRegistry}();t.PlaceholderRegistry=r},function(e,t,n){"use strict";var r=n(10),i=n(542),o="messagebundle",s="msg",a="ph",l="ex",c='\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n',u=function(){function Xmb(){}return Xmb.prototype.write=function(e){var t=new p,n=new i.Tag(o);return n.children.push(new i.Text("\n")),Object.keys(e).forEach(function(r){var o=e[r],a={id:r};o.description&&(a.desc=o.description),o.meaning&&(a.meaning=o.meaning),n.children.push(new i.Text(" "),new i.Tag(s,a,t.serialize(o.nodes)),new i.Text("\n"))}),i.serialize([new i.Declaration({version:"1.0",encoding:"UTF-8"}),new i.Text("\n"),new i.Doctype(o,c),new i.Text("\n"),n])},Xmb.prototype.load=function(e,t,n){throw new Error("Unsupported")},Xmb}();t.Xmb=u;var p=function(){function _Visitor(){}return _Visitor.prototype.visitText=function(e,t){return[new i.Text(e.value)]},_Visitor.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,e.visit(n))}),r},_Visitor.prototype.visitIcu=function(e,t){var n=this,r=[new i.Text("{"+e.expression+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(t){r.push.apply(r,[new i.Text(t+" {")].concat(e.cases[t].visit(n),[new i.Text("}")]))}),r.push(new i.Text("}")),r},_Visitor.prototype.visitTagPlaceholder=function(e,t){var n=new i.Tag(l,{},[new i.Text("<"+e.tag+">")]),r=new i.Tag(a,{name:e.startName},[n]);if(e.isVoid)return[r];var o=new i.Tag(l,{},[new i.Text("")]),s=new i.Tag(a,{name:e.closeName},[o]);return[r].concat(this.serialize(e.children),[s])},_Visitor.prototype.visitPlaceholder=function(e,t){return[new i.Tag(a,{name:e.name})]},_Visitor.prototype.visitIcuPlaceholder=function(e,t){return[new i.Tag(a,{name:e.name})]},_Visitor.prototype.serialize=function(e){var t=this;return r.ListWrapper.flatten(e.map(function(e){return e.visit(t)}))},_Visitor}()},function(e,t){"use strict";function serialize(e){return e.map(function(e){return e.visit(r)}).join("")}function _escapeXml(e){return l.reduce(function(e,t){return e.replace(t[0],t[1])},e)}var n=function(){function _Visitor(){}return _Visitor.prototype.visitTag=function(e){var t=this,n=this._serializeAttributes(e.attrs);if(0==e.children.length)return"<"+e.name+n+"/>";var r=e.children.map(function(e){return e.visit(t)});return"<"+e.name+n+">"+r.join("")+""},_Visitor.prototype.visitText=function(e){return e.value},_Visitor.prototype.visitDeclaration=function(e){return""},_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""},_Visitor}(),r=new n;t.serialize=serialize;var i=function(){function Declaration(e){var t=this;this.attrs={},Object.keys(e).forEach(function(n){t.attrs[n]=_escapeXml(e[n])})}return Declaration.prototype.visit=function(e){return e.visitDeclaration(this)},Declaration}();t.Declaration=i;var o=function(){function Doctype(e,t){this.rootTag=e,this.dtd=t}return Doctype.prototype.visit=function(e){return e.visitDoctype(this)},Doctype}();t.Doctype=o;var s=function(){function Tag(e,t,n){var r=this;void 0===t&&(t={}),void 0===n&&(n=[]),this.name=e,this.children=n,this.attrs={},Object.keys(t).forEach(function(e){r.attrs[e]=_escapeXml(t[e])})}return Tag.prototype.visit=function(e){return e.visitTag(this)},Tag}();t.Tag=s;var a=function(){function Text(e){this.value=_escapeXml(e)}return Text.prototype.visit=function(e){return e.visitText(this)},Text}();t.Text=a;var l=[[/&/g,"&"],[/"/g,"""],[/'/g,"'"],[//g,">"]]},function(e,t,n){"use strict";var r=n(85),i=n(547),o=n(352),s="translationbundle",a="translation",l="ph",c=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,n){var r=this,o=(new i.XmlParser).parse(e,t);if(o.errors.length)throw new Error("xtb parse errors:\n"+o.errors.join("\n"));var s=(new u).parse(o.rootNodes,n),a=s.messages,l=s.errors;if(l.length)throw new Error("xtb parse errors:\n"+l.join("\n"));var c={},p=[];if(Object.keys(a).forEach(function(e){var n=r._htmlParser.parse(a[e],t,!0,r._interpolationConfig);p.push.apply(p,n.errors),c[e]=n.rootNodes}),p.length)throw new Error("xtb parse errors:\n"+p.join("\n"));return c},Xtb}();t.Xtb=c;var u=function(){function _Serializer(){}return _Serializer.prototype.parse=function(e,t){return this._messages={},this._bundleDepth=0,this._translationDepth=0,this._errors=[],this._placeholders=t,r.visitAll(this,e,null),{messages:this._messages,errors:this._errors}},_Serializer.prototype.visitElement=function(e,t){switch(e.name){case s:this._bundleDepth++,this._bundleDepth>1&&this._addError(e,"<"+s+"> elements can not be nested"),r.visitAll(this,e.children,null),this._bundleDepth--;break;case a:this._translationDepth++,this._translationDepth>1&&this._addError(e,"<"+a+"> elements can not be nested");var n=e.attrs.find(function(e){return"id"===e.name});n?(this._currentPlaceholders=this._placeholders[n.value]||{},this._messages[n.value]=r.visitAll(this,e.children).join("")):this._addError(e,"<"+a+'> misses the "id" attribute'),this._translationDepth--;break;case l:var i=e.attrs.find(function(e){return"name"===e.name});if(i){if(this._currentPlaceholders.hasOwnProperty(i.value))return this._currentPlaceholders[i.value];this._addError(e,'The placeholder "'+i.value+'" does not exists in the source message')}else this._addError(e,"<"+l+'> misses the "name" attribute');break;default:this._addError(e,"Unexpected tag")}},_Serializer.prototype.visitAttribute=function(e,t){throw new Error("unreachable code")},_Serializer.prototype.visitText=function(e,t){return e.value},_Serializer.prototype.visitComment=function(e,t){return""},_Serializer.prototype.visitExpansion=function(e,t){var n=this;e.cases.map(function(e){return e.visit(n,null)});return"{"+e.switchValue+", "+e.type+", strCases.join(' ')}"},_Serializer.prototype.visitExpansionCase=function(e,t){return e.value+" {"+r.visitAll(this,e.expression,null)+"}"},_Serializer.prototype._addError=function(e,t){this._errors.push(new o.I18nError(e.sourceSpan,t))},_Serializer}()},function(e,t,n){"use strict";function hasLifecycleHook(e,t){var n=s.get(e),r=a.get(e);return i.reflector.hasLifecycleHook(t,n,r)}var r=n(0),i=n(27),o=n(10),s=o.MapWrapper.createFromPairs([[i.LifecycleHooks.OnInit,r.OnInit],[i.LifecycleHooks.OnDestroy,r.OnDestroy],[i.LifecycleHooks.DoCheck,r.DoCheck],[i.LifecycleHooks.OnChanges,r.OnChanges],[i.LifecycleHooks.AfterContentInit,r.AfterContentInit],[i.LifecycleHooks.AfterContentChecked,r.AfterContentChecked],[i.LifecycleHooks.AfterViewInit,r.AfterViewInit],[i.LifecycleHooks.AfterViewChecked,r.AfterViewChecked]]),a=o.MapWrapper.createFromPairs([[i.LifecycleHooks.OnInit,"ngOnInit"],[i.LifecycleHooks.OnDestroy,"ngOnDestroy"],[i.LifecycleHooks.DoCheck,"ngDoCheck"],[i.LifecycleHooks.OnChanges,"ngOnChanges"],[i.LifecycleHooks.AfterContentInit,"ngAfterContentInit"],[i.LifecycleHooks.AfterContentChecked,"ngAfterContentChecked"],[i.LifecycleHooks.AfterViewInit,"ngAfterViewInit"],[i.LifecycleHooks.AfterViewChecked,"ngAfterViewChecked"]]);t.hasLifecycleHook=hasLifecycleHook},function(e,t,n){"use strict";function expandNodes(e){var t=new c;return new a(o.visitAll(t,e),t.isExpanded,t.errors)}function _expandPluralForm(e,t){var n=e.cases.map(function(e){s.indexOf(e.value)!=-1||e.value.match(/^=\d+$/)||t.push(new l(e.valueSourceSpan,'Plural cases should be "=" or one of '+s.join(", ")));var n=expandNodes(e.expression);return t.push.apply(t,n.errors),new o.Element("template",[new o.Attribute("ngPluralCase",""+e.value,e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)}),r=new o.Attribute("[ngPlural]",e.switchValue,e.switchValueSourceSpan);return new o.Element("ng-container",[r],n,e.sourceSpan,e.sourceSpan,e.sourceSpan)}function _expandDefaultForm(e,t){var n=e.cases.map(function(e){var n=expandNodes(e.expression);return t.push.apply(t,n.errors),new o.Element("template",[new o.Attribute("ngSwitchCase",""+e.value,e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)}),r=new o.Attribute("[ngSwitch]",e.switchValue,e.switchValueSourceSpan);return new o.Element("ng-container",[r],n,e.sourceSpan,e.sourceSpan,e.sourceSpan)}var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(60),o=n(85),s=["zero","one","two","few","many","other"];t.expandNodes=expandNodes;var a=function(){function ExpansionResult(e,t,n){this.nodes=e,this.expanded=t,this.errors=n}return ExpansionResult}();t.ExpansionResult=a;var l=function(e){function ExpansionError(t,n){e.call(this,t,n)}return r(ExpansionError,e),ExpansionError}(i.ParseError);t.ExpansionError=l;var c=function(){function _Expander(){this.isExpanded=!1,this.errors=[]}return _Expander.prototype.visitElement=function(e,t){return new o.Element(e.name,e.attrs,o.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}()},function(e,t,n){"use strict";function tokenize(e,t,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=s.DEFAULT_INTERPOLATION_CONFIG),new f(new o.ParseSourceFile(e,t),n,r,i).tokenize()}function _unexpectedCharacterErrorMsg(e){var t=e===i.$EOF?"EOF":String.fromCharCode(e);return'Unexpected character "'+t+'"'}function _unknownEntityErrorMsg(e){return'Unknown entity "'+e+'" - use the "&#;" or "&#x;" syntax'}function isNotWhitespace(e){return!i.isWhitespace(e)||e===i.$EOF}function isNameEnd(e){return i.isWhitespace(e)||e===i.$GT||e===i.$SLASH||e===i.$SQ||e===i.$DQ||e===i.$EQ}function isPrefixEnd(e){return(ei.$9)}function isDigitEntityEnd(e){return e==i.$SEMICOLON||e==i.$EOF||!i.isAsciiHexDigit(e)}function isNamedEntityEnd(e){return e==i.$SEMICOLON||e==i.$EOF||!i.isAsciiLetter(e)}function isExpansionFormStart(e,t,n){var r=!!n&&e.indexOf(n.start,t)==t;return e.charCodeAt(t)==i.$LBRACE&&!r}function isExpansionCaseStart(e){return e===i.$EQ||i.isAsciiLetter(e)}function compareCharCodeCaseInsensitive(e,t){return toUpperCaseCharCode(e)==toUpperCaseCharCode(t)}function toUpperCaseCharCode(e){return e>=i.$a&&e<=i.$z?e-i.$a+i.$A:e}function mergeTextTokens(e){for(var t,n=[],r=0;r=this._length)throw this._createError(_unexpectedCharacterErrorMsg(i.$EOF),this._getSpan());this._peek===i.$LF?(this._line++,this._column=0):this._peek!==i.$LF&&this._peek!==i.$CR&&this._column++,this._index++,this._peek=this._index>=this._length?i.$EOF:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?i.$EOF: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 n=this._savePosition(),r=0;rr.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==t;)o.push(this._readChar(e))}return this._endToken([this._processCarriageReturns(o.join(""))],r)},_Tokenizer.prototype._consumeComment=function(e){var t=this;this._beginToken(l.COMMENT_START,e),this._requireCharCode(i.$MINUS),this._endToken([]);var n=this._consumeRawText(!1,i.$MINUS,function(){return t._attemptStr("->")});this._beginToken(l.COMMENT_END,n.sourceSpan.end),this._endToken([])},_Tokenizer.prototype._consumeCdata=function(e){var t=this;this._beginToken(l.CDATA_START,e),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,i.$RBRACKET,function(){return t._attemptStr("]>")});this._beginToken(l.CDATA_END,n.sourceSpan.end),this._endToken([])},_Tokenizer.prototype._consumeDocType=function(e){this._beginToken(l.DOC_TYPE,e),this._attemptUntilChar(i.$GT),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!==i.$COLON&&!isPrefixEnd(this._peek);)this._advance();var n;this._peek===i.$COLON?(this._advance(),t=this._input.substring(e,this._index-1),n=this._index):n=e,this._requireCharCodeUntilFn(isNameEnd,this._index===n?1:0);var r=this._input.substring(n,this._index);return[t,r]},_Tokenizer.prototype._consumeTagOpen=function(e){var t,n,r=this._savePosition();try{if(!i.isAsciiLetter(this._peek))throw this._createError(_unexpectedCharacterErrorMsg(this._peek),this._getSpan());var o=this._index;for(this._consumeTagOpenStart(e),t=this._input.substring(o,this._index),n=t.toLowerCase(),this._attemptCharCodeUntilFn(isNotWhitespace);this._peek!==i.$SLASH&&this._peek!==i.$GT;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(isNotWhitespace),this._attemptCharCode(i.$EQ)&&(this._attemptCharCodeUntilFn(isNotWhitespace),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(isNotWhitespace);this._consumeTagOpenEnd()}catch(s){if(s instanceof h)return this._restorePosition(r),this._beginToken(l.TEXT,e),void this._endToken(["<"]);throw s}var c=this._getTagDefinition(t).contentType;c===a.TagContentType.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):c===a.TagContentType.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},_Tokenizer.prototype._consumeRawTextWithTagClose=function(e,t){var n=this,r=this._consumeRawText(t,i.$LT,function(){return!!n._attemptCharCode(i.$SLASH)&&(n._attemptCharCodeUntilFn(isNotWhitespace),!!n._attemptStrCaseInsensitive(e)&&(n._attemptCharCodeUntilFn(isNotWhitespace),n._attemptCharCode(i.$GT)))});this._beginToken(l.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,e]); +},_Tokenizer.prototype._consumeTagOpenStart=function(e){this._beginToken(l.TAG_OPEN_START,e);var t=this._consumePrefixAndName();this._endToken(t)},_Tokenizer.prototype._consumeAttributeName=function(){this._beginToken(l.ATTR_NAME);var e=this._consumePrefixAndName();this._endToken(e)},_Tokenizer.prototype._consumeAttributeValue=function(){this._beginToken(l.ATTR_VALUE);var e;if(this._peek===i.$SQ||this._peek===i.$DQ){var t=this._peek;this._advance();for(var n=[];this._peek!==t;)n.push(this._readChar(!0));e=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn(isNameEnd,1),e=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(e)])},_Tokenizer.prototype._consumeTagOpenEnd=function(){var e=this._attemptCharCode(i.$SLASH)?l.TAG_OPEN_END_VOID:l.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(i.$GT),this._endToken([])},_Tokenizer.prototype._consumeTagClose=function(e){this._beginToken(l.TAG_CLOSE,e),this._attemptCharCodeUntilFn(isNotWhitespace);var t=this._consumePrefixAndName();this._attemptCharCodeUntilFn(isNotWhitespace),this._requireCharCode(i.$GT),this._endToken(t)},_Tokenizer.prototype._consumeExpansionFormStart=function(){this._beginToken(l.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(i.$LBRACE),this._endToken([]),this._expansionCaseStack.push(l.EXPANSION_FORM_START),this._beginToken(l.RAW_TEXT,this._getLocation());var e=this._readUntil(i.$COMMA);this._endToken([e],this._getLocation()),this._requireCharCode(i.$COMMA),this._attemptCharCodeUntilFn(isNotWhitespace),this._beginToken(l.RAW_TEXT,this._getLocation());var t=this._readUntil(i.$COMMA);this._endToken([t],this._getLocation()),this._requireCharCode(i.$COMMA),this._attemptCharCodeUntilFn(isNotWhitespace)},_Tokenizer.prototype._consumeExpansionCaseStart=function(){this._beginToken(l.EXPANSION_CASE_VALUE,this._getLocation());var e=this._readUntil(i.$LBRACE).trim();this._endToken([e],this._getLocation()),this._attemptCharCodeUntilFn(isNotWhitespace),this._beginToken(l.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(i.$LBRACE),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(isNotWhitespace),this._expansionCaseStack.push(l.EXPANSION_CASE_EXP_START)},_Tokenizer.prototype._consumeExpansionCaseEnd=function(){this._beginToken(l.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(i.$RBRACE),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(isNotWhitespace),this._expansionCaseStack.pop()},_Tokenizer.prototype._consumeExpansionFormEnd=function(){this._beginToken(l.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(i.$RBRACE),this._endToken([]),this._expansionCaseStack.pop()},_Tokenizer.prototype._consumeText=function(){var e=this._getLocation();this._beginToken(l.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===i.$LT||this._peek===i.$EOF)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(isExpansionFormStart(this._input,this._index,this._interpolationConfig))return!0;if(this._peek===i.$RBRACE&&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];t0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===l.EXPANSION_CASE_EXP_START},_Tokenizer.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===l.EXPANSION_FORM_START},_Tokenizer}()},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(154),o=n(548),s=n(154);t.ParseTreeResult=s.ParseTreeResult,t.TreeError=s.TreeError;var a=function(e){function XmlParser(){e.call(this,o.getXmlTagDefinition)}return r(XmlParser,e),XmlParser.prototype.parse=function(t,n,r){return void 0===r&&(r=!1),e.prototype.parse.call(this,t,n,r,null)},XmlParser}(i.Parser);t.XmlParser=a},function(e,t,n){"use strict";function getXmlTagDefinition(e){return o}var r=n(102),i=function(){function XmlTagDefinition(){this.closedByParent=!1,this.contentType=r.TagContentType.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}();t.XmlTagDefinition=i;var o=new i;t.getXmlTagDefinition=getXmlTagDefinition},function(e,t,n){"use strict";function _resolveViewStatements(e){return e.dependencies.forEach(function(e){if(e instanceof l.ViewFactoryDependency){var t=e;t.placeholder.moduleUrl=_ngfactoryModuleUrl(t.comp.moduleUrl)}else if(e instanceof l.ComponentFactoryDependency){var n=e;n.placeholder.name=_componentFactoryName(n.comp),n.placeholder.moduleUrl=_ngfactoryModuleUrl(n.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=_splitLastSuffix(e);return t[0]+".ngfactory"+t[1]}function _componentFactoryName(e){return e.name+"NgFactory"}function _stylesModuleUrl(e,t,n){return t?e+".shim"+n:""+e+n}function _assertComponent(e){if(!e.isComponent)throw new o.BaseException("Could not compile '"+e.type.name+"' because it is not a component.")}function _splitLastSuffix(e){var t=e.lastIndexOf(".");return t!==-1?[e.substring(0,t),e.substring(t)]:[e,""]}var r=n(31),i=n(10),o=n(18),s=n(28),a=n(17),l=n(156),c=function(){function SourceModule(e,t){this.moduleUrl=e,this.source=t}return SourceModule}();t.SourceModule=c;var u=function(){function NgModulesSummary(e){this.ngModuleByComponent=e}return NgModulesSummary}();t.NgModulesSummary=u;var p=function(){function OfflineCompiler(e,t,n,r,i,o,s){this._metadataResolver=e,this._directiveNormalizer=t,this._templateParser=n,this._styleCompiler=r,this._viewCompiler=i,this._ngModuleCompiler=o,this._outputEmitter=s}return OfflineCompiler.prototype.analyzeModules=function(e){var t=this,n=new Map;return e.forEach(function(e){var r=t._metadataResolver.getNgModuleMetadata(e);r.declaredDirectives.forEach(function(e){e.isComponent&&n.set(e.type.runtime,r)})}),new u(n)},OfflineCompiler.prototype.clearCache=function(){this._directiveNormalizer.clearCache(),this._metadataResolver.clearCache()},OfflineCompiler.prototype.compile=function(e,t,n,r){var i=this,s=_splitLastSuffix(e)[1],a=[],l=[],c=[];return l.push.apply(l,r.map(function(e){return i._compileModule(e,a)})),Promise.all(n.map(function(e){var n=i._metadataResolver.getDirectiveMetadata(e),r=t.ngModuleByComponent.get(e);if(!r)throw new o.BaseException("Cannot determine the module for component "+n.type.name+"!");return Promise.all([n].concat(r.transitiveModule.directives).map(function(e){return i._directiveNormalizer.normalizeDirective(e).asyncResult})).then(function(e){var t=e[0],n=e.slice(1);_assertComponent(t);var o=i._styleCompiler.compileComponent(t);o.externalStylesheets.forEach(function(e){c.push(i._codgenStyles(e,s))}),l.push(i._compileComponentFactory(t,s,a)),l.push(i._compileComponent(t,n,r.transitiveModule.pipes,r.schemas,o.componentStylesheet,s,a))})})).then(function(){return a.length>0&&c.unshift(i._codegenSourceModule(_ngfactoryModuleUrl(e),a,l)),c})},OfflineCompiler.prototype._compileModule=function(e,t){var n=this._metadataResolver.getNgModuleMetadata(e),r=this._ngModuleCompiler.compile(n,[]);return r.dependencies.forEach(function(e){e.placeholder.name=_componentFactoryName(e.comp),e.placeholder.moduleUrl=_ngfactoryModuleUrl(e.comp.moduleUrl)}),t.push.apply(t,r.statements),r.ngModuleFactoryVar},OfflineCompiler.prototype._compileComponentFactory=function(e,t,n){var i=r.createHostComponentMeta(e),o=this._compileComponent(i,[e],[],[],null,t,n),l=_componentFactoryName(e.type);return n.push(a.variable(l).set(a.importExpr(s.Identifiers.ComponentFactory,[a.importType(e.type)]).instantiate([a.literal(e.selector),a.variable(o),a.importExpr(e.type)],a.importType(s.Identifiers.ComponentFactory,[a.importType(e.type)],[a.TypeModifier.Const]))).toDeclStmt(null,[a.StmtModifier.Final])),l},OfflineCompiler.prototype._compileComponent=function(e,t,n,r,o,s,l){var c=this._templateParser.parse(e,e.template.template,t,n,r,e.type.name),u=o?a.variable(o.stylesVar):a.literalArr([]),p=this._viewCompiler.compileComponent(e,c,u,n);return o&&i.ListWrapper.addAll(l,_resolveStyleStatements(o,s)),i.ListWrapper.addAll(l,_resolveViewStatements(p)),p.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,n){return new c(e,this._outputEmitter.emitStatements(e,t,n))},OfflineCompiler}();t.OfflineCompiler=p},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(18),o=n(5),s=n(240),a=n(17),l=function(e){function AbstractJsEmitterVisitor(){e.call(this,!1)}return r(AbstractJsEmitterVisitor,e),AbstractJsEmitterVisitor.prototype.visitDeclareClassStmt=function(e,t){var n=this;return t.pushClass(e),this._visitClassConstructor(e,t),o.isPresent(e.parent)&&(t.print(e.name+".prototype = Object.create("),e.parent.visitExpression(this,t),t.println(".prototype);")),e.getters.forEach(function(r){return n._visitClassGetter(e,r,t)}),e.methods.forEach(function(r){return n._visitClassMethod(e,r,t)}),t.popClass(),null},AbstractJsEmitterVisitor.prototype._visitClassConstructor=function(e,t){t.print("function "+e.name+"("),o.isPresent(e.constructorMethod)&&this._visitParams(e.constructorMethod.params,t),t.println(") {"),t.incIndent(),o.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,n){n.println("Object.defineProperty("+e.name+".prototype, '"+t.name+"', { get: function() {"),n.incIndent(),t.body.length>0&&(n.println("var self = this;"),this.visitAllStatements(t.body,n)),n.decIndent(),n.println("}});")},AbstractJsEmitterVisitor.prototype._visitClassMethod=function(e,t,n){n.print(e.name+".prototype."+t.name+" = function("),this._visitParams(t.params,n),n.println(") {"),n.incIndent(),t.body.length>0&&(n.println("var self = this;"),this.visitAllStatements(t.body,n)),n.decIndent(),n.println("};")},AbstractJsEmitterVisitor.prototype.visitReadVarExpr=function(t,n){if(t.builtin===a.BuiltinVar.This)n.print("self");else{if(t.builtin===a.BuiltinVar.Super)throw new i.BaseException("'super' needs to be handled at a parent ast node, not at the variable level!");e.prototype.visitReadVarExpr.call(this,t,n)}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,n){var r=t.fn;return r instanceof a.ReadVarExpr&&r.builtin===a.BuiltinVar.Super?(n.currentClass.parent.visitExpression(this,n),n.print(".call(this"),t.args.length>0&&(n.print(", "),this.visitAllExpressions(t.args,n,",")),n.print(")")):e.prototype.visitInvokeFunctionExpr.call(this,t,n),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 ("+s.CATCH_ERROR_VAR.name+") {"),t.incIndent();var n=[s.CATCH_STACK_VAR.set(s.CATCH_ERROR_VAR.prop("stack")).toDeclStmt(null,[a.StmtModifier.Final])].concat(e.catchStmts);return this.visitAllStatements(n,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 a.BuiltinMethod.ConcatArray:t="concat";break;case a.BuiltinMethod.SubscribeObservable:t="subscribe";break;case a.BuiltinMethod.bind:t="bind";break;default:throw new i.BaseException("Unknown builtin method: "+e)}return t},AbstractJsEmitterVisitor}(s.AbstractEmitterVisitor);t.AbstractJsEmitterVisitor=l},function(e,t,n){"use strict";function interpretStatements(e,t){var n=e.concat([new s.ReturnStatement(s.variable(t))]),r=new l(null,null,null,new Map),i=new u,a=i.visitAllStatements(n,r);return o.isPresent(a)?a.value:null}function _executeFunctionStatements(e,t,n,r,i){for(var s=r.createChildWihtLocalVars(),a=0;ao();case s.BinaryOperator.BiggerEquals:return r()>=o();default:throw new i.BaseException("Unknown operator "+e.operator)}},StatementInterpreter.prototype.visitReadPropExpr=function(e,t){var n,r=e.receiver.visitExpression(this,t);return n=r[e.name]},StatementInterpreter.prototype.visitReadKeyExpr=function(e,t){var n=e.receiver.visitExpression(this,t),r=e.index.visitExpression(this,t);return n[r]},StatementInterpreter.prototype.visitLiteralArrayExpr=function(e,t){return this.visitAllExpressions(e.entries,t)},StatementInterpreter.prototype.visitLiteralMapExpr=function(e,t){var n=this,r={};return e.entries.forEach(function(e){return r[e[0]]=e[1].visitExpression(n,t)}),r},StatementInterpreter.prototype.visitAllExpressions=function(e,t){var n=this;return e.map(function(e){return e.visitExpression(n,t)})},StatementInterpreter.prototype.visitAllStatements=function(e,t){for(var n=0;n0?s.push(l):(s.length>0&&(r.push(s.join("")),n.push(R),s=[]),n.push(l)),l==E&&o++}return s.length>0&&(r.push(s.join("")),n.push(R)),new x(n.join(""),r)}var r=n(10),i=n(5),o=function(){function ShadowCss(){this.strictStyling=!0}return ShadowCss.prototype.shimCssText=function(e,t,n){return void 0===n&&(n=""),e=stripComments(e),e=this._insertDirectives(e),this._scopeCssText(e,t,n)},ShadowCss.prototype._insertDirectives=function(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)},ShadowCss.prototype._insertPolyfillDirectivesInCssText=function(e){return i.StringWrapper.replaceAllMapped(e,s,function(e){return e[1]+"{"})},ShadowCss.prototype._insertPolyfillRulesInCssText=function(e){return i.StringWrapper.replaceAllMapped(e,a,function(e){var t=e[0];return t=i.StringWrapper.replace(t,e[1],""),t=i.StringWrapper.replace(t,e[2],""),e[3]+t})},ShadowCss.prototype._scopeCssText=function(e,t,n){var r=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),i.isPresent(t)&&(e=this._scopeSelectors(e,t,n)),e=e+"\n"+r,e.trim()},ShadowCss.prototype._extractUnscopedRulesFromCssText=function(e){var t,n="";for(l.lastIndex=0;null!==(t=l.exec(e));){var r=t[0];r=i.StringWrapper.replace(r,t[2],""),r=i.StringWrapper.replace(r,t[1],t[3]),n+=r+"\n\n"}return n},ShadowCss.prototype._convertColonHost=function(e){return this._convertColonRule(e,d,this._colonHostPartReplacer)},ShadowCss.prototype._convertColonHostContext=function(e){return this._convertColonRule(e,h,this._colonHostContextPartReplacer)},ShadowCss.prototype._convertColonRule=function(e,t,n){return i.StringWrapper.replaceAllMapped(e,t,function(e){if(i.isPresent(e[2])){for(var t=e[2].split(","),r=[],o=0;o","+","~"],s=e,a="["+t+"]",l=0;l0&&!r.ListWrapper.contains(o,t)&&!i.StringWrapper.contains(t,a)){var n=t.match(/([^:]*)(:*)(.*)/);null!==n&&(e=n[1]+a+n[2]+n[3])}return e}).join(c)}return s},ShadowCss.prototype._insertPolyfillHostInCssText=function(e){return e=i.StringWrapper.replaceAll(e,_,u),e=i.StringWrapper.replaceAll(e,b,c)},ShadowCss}();t.ShadowCss=o;var s=/polyfill-next-selector[^}]*content:[\s]*?['"](.*?)['"][;\s]*}([^{]*?){/gim,a=/(polyfill-rule)[^}]*(content:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,l=/(polyfill-unscoped-rule)[^}]*(content:[\s]*['"](.*?)['"])[;\s]*[^}]*}/gim,c="-shadowcsshost",u="-shadowcsscontext",p=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",d=new RegExp("("+c+p,"gim"),h=new RegExp("("+u+p,"gim"),f=c+"-no-combinator",m=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],y=/(?:>>>)|(?:\/deep\/)/g,v="([>\\s~+[.,{:][\\s\\S]*)?$",g=new RegExp(c,"im"),b=/:host/gim,_=/:host-context/gim,S=/\/\*[\s\S]*?\*\//g,w=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,C=/([{}])/g,E="{",T="}",R="%BLOCK%",P=function(){function CssRule(e,t){this.selector=e,this.content=t}return CssRule}();t.CssRule=P,t.processRules=processRules;var x=function(){function StringWithEscapedBlocks(e,t){this.escapedString=e,this.blocks=t}return StringWithEscapedBlocks}()},function(e,t,n){"use strict";function _findPipeMeta(e,t){for(var n=null,o=e.pipeMetas.length-1;o>=0;o--){var s=e.pipeMetas[o];if(s.name==t){n=s;break}}if(i.isBlank(n))throw new r.BaseException("Illegal state: Could not find pipe "+t+" although the parser should have detected this error!");return n}var r=n(18),i=n(5),o=n(28),s=n(17),a=n(114),l=function(){function CompilePipe(e,t){var n=this;this.view=e,this.meta=t,this._purePipeProxyCount=0,this.instance=s.THIS_EXPR.prop("_pipe_"+t.name+"_"+e.pipeCount++);var r=this.meta.type.diDeps.map(function(e){return e.token.equalsTo(o.identifierToken(o.Identifiers.ChangeDetectorRef))?a.getPropertyInView(s.THIS_EXPR.prop("ref"),n.view,n.view.componentView):a.injectFromViewParentInjector(e.token,!1)});this.view.fields.push(new s.ClassField(this.instance.name,s.importType(this.meta.type))),this.view.createMethod.resetDebugInfo(null,null),this.view.createMethod.addStmt(s.THIS_EXPR.prop(this.instance.name).set(s.importExpr(this.meta.type).instantiate(r)).toStmt())}return CompilePipe.call=function(e,t,n){var r,o=e.componentView,s=_findPipeMeta(o,t);return s.pure?(r=o.purePipes.get(t),i.isBlank(r)&&(r=new CompilePipe(o,s),o.purePipes.set(t,r),o.pipes.push(r))):(r=new CompilePipe(e,s),e.pipes.push(r)),r._call(e,n)},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 n=s.THIS_EXPR.prop(this.instance.name+"_"+this._purePipeProxyCount++),r=a.getPropertyInView(this.instance,e,this.view);return a.createPureProxy(r.prop("transform").callMethod(s.BuiltinMethod.bind,[r]),t.length,n,e),s.importExpr(o.Identifiers.castByValue).callFn([n,r.prop("transform")]).callFn(t)}return a.getPropertyInView(this.instance,e,this.view).callMethod("transform",t); +},CompilePipe}();t.CompilePipe=l},function(e,t,n){"use strict";function collectEventListeners(e,t,n){var r=[];return e.forEach(function(e){n.view.bindings.push(new a.CompileBinding(n,e));var t=p.getOrCreate(n,e.target,e.name,r);t.addAction(e,null,null)}),t.forEach(function(e){var t=n.instances.get(o.identifierToken(e.directive.type));e.hostEvents.forEach(function(i){n.view.bindings.push(new a.CompileBinding(n,i));var o=p.getOrCreate(n,i.target,i.name,r);o.addAction(i,e.directive,t)})}),r.forEach(function(e){return e.finishMethod()}),r}function bindDirectiveOutputs(e,t,n){r.StringMapWrapper.forEach(e.directive.outputs,function(e,r){n.filter(function(t){return t.eventName==e}).forEach(function(e){e.listenToDirective(t,r)})})}function bindRenderOutputs(e){e.forEach(function(e){return e.listenToRenderer()})}function convertStmtIntoExpression(e){return e instanceof s.ExpressionStatement?e.expr:e instanceof s.ReturnStatement?e.value:null}function santitizeEventName(e){return i.StringWrapper.replaceAll(e,/[^a-zA-Z_]/g,"_")}var r=n(10),i=n(5),o=n(28),s=n(17),a=n(361),l=n(244),c=n(104),u=n(365),p=function(){function CompileEventListener(e,t,n,r){this.compileElement=e,this.eventTarget=t,this.eventName=n,this._hasComponentHostListener=!1,this._actionResultExprs=[],this._method=new l.CompileMethod(e.view),this._methodName="_handle_"+santitizeEventName(n)+"_"+e.nodeIndex+"_"+r,this._eventParam=new s.FnParam(c.EventHandlerVars.event.name,s.importType(this.compileElement.view.genConfig.renderTypes.renderEvent))}return CompileEventListener.getOrCreate=function(e,t,n,r){var o=r.find(function(e){return e.eventTarget==t&&e.eventName==n});return i.isBlank(o)&&(o=new CompileEventListener(e,t,n,r.length),r.push(o)),o},CompileEventListener.prototype.addAction=function(e,t,n){i.isPresent(t)&&t.isComponent&&(this._hasComponentHostListener=!0),this._method.resetDebugInfo(this.compileElement.nodeIndex,e);var r=i.isPresent(n)?n:this.compileElement.view.componentContext,o=u.convertCdStatementToIr(this.compileElement.view,r,e.handler),a=o.length-1;if(a>=0){var l=o[a],c=convertStmtIntoExpression(l),p=s.variable("pd_"+this._actionResultExprs.length);this._actionResultExprs.push(p),i.isPresent(c)&&(o[a]=p.set(c.cast(s.DYNAMIC_TYPE).notIdentical(s.literal(!1))).toDeclStmt(null,[s.StmtModifier.Final]))}this._method.addStmts(o)},CompileEventListener.prototype.finishMethod=function(){var e=this._hasComponentHostListener?this.compileElement.appElement.prop("componentView"):s.THIS_EXPR,t=s.literal(!0);this._actionResultExprs.forEach(function(e){t=t.and(e)});var n=[e.callMethod("markPathToRootAsCheckOnce",[]).toStmt()].concat(this._method.finish()).concat([new s.ReturnStatement(t)]);this.compileElement.view.eventHandlerMethods.push(new s.ClassMethod(this._methodName,[this._eventParam],n,s.BOOL_TYPE,[s.StmtModifier.Private]))},CompileEventListener.prototype.listenToRenderer=function(){var e,t=s.THIS_EXPR.callMethod("eventHandler",[s.THIS_EXPR.prop(this._methodName).callMethod(s.BuiltinMethod.bind,[s.THIS_EXPR])]);e=i.isPresent(this.eventTarget)?c.ViewProperties.renderer.callMethod("listenGlobal",[s.literal(this.eventTarget),s.literal(this.eventName),t]):c.ViewProperties.renderer.callMethod("listen",[this.compileElement.renderNode,s.literal(this.eventName),t]);var n=s.variable("disposable_"+this.compileElement.view.disposables.length);this.compileElement.view.disposables.push(n),this.compileElement.view.createMethod.addStmt(n.set(e).toDeclStmt(s.FUNCTION_TYPE,[s.StmtModifier.Private]))},CompileEventListener.prototype.listenToDirective=function(e,t){var n=s.variable("subscription_"+this.compileElement.view.subscriptions.length);this.compileElement.view.subscriptions.push(n);var r=s.THIS_EXPR.callMethod("eventHandler",[s.THIS_EXPR.prop(this._methodName).callMethod(s.BuiltinMethod.bind,[s.THIS_EXPR])]);this.compileElement.view.createMethod.addStmt(n.set(e.prop(t).callMethod(s.BuiltinMethod.SubscribeObservable,[r])).toDeclStmt(null,[s.StmtModifier.Final]))},CompileEventListener}();t.CompileEventListener=p,t.collectEventListeners=collectEventListeners,t.bindDirectiveOutputs=bindDirectiveOutputs,t.bindRenderOutputs=bindRenderOutputs},function(e,t,n){"use strict";function bindDirectiveDetectChangesLifecycleCallbacks(e,t,n){var l=n.view,c=l.detectChangesInInputsMethod,u=e.directive.type.lifecycleHooks;u.indexOf(r.LifecycleHooks.OnChanges)!==-1&&e.inputs.length>0&&c.addStmt(new i.IfStmt(o.DetectChangesVars.changes.notIdentical(i.NULL_EXPR),[t.callMethod("ngOnChanges",[o.DetectChangesVars.changes]).toStmt()])),u.indexOf(r.LifecycleHooks.OnInit)!==-1&&c.addStmt(new i.IfStmt(s.and(a),[t.callMethod("ngOnInit",[]).toStmt()])),u.indexOf(r.LifecycleHooks.DoCheck)!==-1&&c.addStmt(new i.IfStmt(a,[t.callMethod("ngDoCheck",[]).toStmt()]))}function bindDirectiveAfterContentLifecycleCallbacks(e,t,n){var o=n.view,a=e.type.lifecycleHooks,l=o.afterContentLifecycleCallbacksMethod;l.resetDebugInfo(n.nodeIndex,n.sourceAst),a.indexOf(r.LifecycleHooks.AfterContentInit)!==-1&&l.addStmt(new i.IfStmt(s,[t.callMethod("ngAfterContentInit",[]).toStmt()])),a.indexOf(r.LifecycleHooks.AfterContentChecked)!==-1&&l.addStmt(t.callMethod("ngAfterContentChecked",[]).toStmt())}function bindDirectiveAfterViewLifecycleCallbacks(e,t,n){var o=n.view,a=e.type.lifecycleHooks,l=o.afterViewLifecycleCallbacksMethod;l.resetDebugInfo(n.nodeIndex,n.sourceAst),a.indexOf(r.LifecycleHooks.AfterViewInit)!==-1&&l.addStmt(new i.IfStmt(s,[t.callMethod("ngAfterViewInit",[]).toStmt()])),a.indexOf(r.LifecycleHooks.AfterViewChecked)!==-1&&l.addStmt(t.callMethod("ngAfterViewChecked",[]).toStmt())}function bindInjectableDestroyLifecycleCallbacks(e,t,n){var i=n.view.destroyMethod;i.resetDebugInfo(n.nodeIndex,n.sourceAst),e.lifecycleHooks.indexOf(r.LifecycleHooks.OnDestroy)!==-1&&i.addStmt(t.callMethod("ngOnDestroy",[]).toStmt())}function bindPipeDestroyLifecycleCallbacks(e,t,n){var i=n.destroyMethod;e.type.lifecycleHooks.indexOf(r.LifecycleHooks.OnDestroy)!==-1&&i.addStmt(t.callMethod("ngOnDestroy",[]).toStmt())}var r=n(27),i=n(17),o=n(104),s=i.THIS_EXPR.prop("numberOfChecks").identical(new i.LiteralExpr(0)),a=i.not(o.DetectChangesVars.throwOnChange);t.bindDirectiveDetectChangesLifecycleCallbacks=bindDirectiveDetectChangesLifecycleCallbacks,t.bindDirectiveAfterContentLifecycleCallbacks=bindDirectiveAfterContentLifecycleCallbacks,t.bindDirectiveAfterViewLifecycleCallbacks=bindDirectiveAfterViewLifecycleCallbacks,t.bindInjectableDestroyLifecycleCallbacks=bindInjectableDestroyLifecycleCallbacks,t.bindPipeDestroyLifecycleCallbacks=bindPipeDestroyLifecycleCallbacks},function(e,t,n){"use strict";function createBindFieldExpr(e){return a.THIS_EXPR.prop("_expr_"+e)}function createCurrValueExpr(e){return a.variable("currVal_"+e)}function bind(e,t,n,r,i,l,c){var u=d.convertCdExpressionToIr(e,i,r,p.DetectChangesVars.valUnwrapper);if(!o.isBlank(u.expression)){if(e.fields.push(new a.ClassField(n.name,null,[a.StmtModifier.Private])),e.createMethod.addStmt(a.THIS_EXPR.prop(n.name).set(a.importExpr(s.Identifiers.UNINITIALIZED)).toStmt()),u.needsValueUnwrapper){var h=p.DetectChangesVars.valUnwrapper.callMethod("reset",[]).toStmt();c.addStmt(h)}c.addStmt(t.set(u.expression).toDeclStmt(null,[a.StmtModifier.Final]));var f=a.importExpr(s.Identifiers.checkBinding).callFn([p.DetectChangesVars.throwOnChange,n,t]);u.needsValueUnwrapper&&(f=p.DetectChangesVars.valUnwrapper.prop("hasWrappedValue").or(f)),c.addStmt(new a.IfStmt(f,l.concat([a.THIS_EXPR.prop(n.name).set(t).toStmt()])))}}function bindRenderText(e,t,n){var r=n.bindings.length;n.bindings.push(new u.CompileBinding(t,e));var i=createCurrValueExpr(r),o=createBindFieldExpr(r);n.detectChangesRenderPropertiesMethod.resetDebugInfo(t.nodeIndex,e),bind(n,i,o,e.value,n.componentContext,[a.THIS_EXPR.prop("renderer").callMethod("setText",[t.renderNode,i]).toStmt()],n.detectChangesRenderPropertiesMethod)}function bindAndWriteToRenderer(e,t,n,r){var c=n.view,p=n.renderNode;e.forEach(function(e){var d=c.bindings.length;c.bindings.push(new u.CompileBinding(n,e)),c.detectChangesRenderPropertiesMethod.resetDebugInfo(n.nodeIndex,e);var f=createBindFieldExpr(d),m=createCurrValueExpr(d),y=sanitizedValue(e,f),v=sanitizedValue(e,m),g=[];switch(e.type){case l.PropertyBindingType.Property:c.genConfig.logBindingUpdate&&g.push(logBindingUpdateStmt(p,e.name,v)),g.push(a.THIS_EXPR.prop("renderer").callMethod("setElementProperty",[p,a.literal(e.name),v]).toStmt());break;case l.PropertyBindingType.Attribute:v=v.isBlank().conditional(a.NULL_EXPR,v.callMethod("toString",[])),g.push(a.THIS_EXPR.prop("renderer").callMethod("setElementAttribute",[p,a.literal(e.name),v]).toStmt());break;case l.PropertyBindingType.Class:g.push(a.THIS_EXPR.prop("renderer").callMethod("setElementClass",[p,a.literal(e.name),v]).toStmt());break;case l.PropertyBindingType.Style:var b=v.callMethod("toString",[]);o.isPresent(e.unit)&&(b=b.plus(a.literal(e.unit))),v=v.isBlank().conditional(a.NULL_EXPR,b),g.push(a.THIS_EXPR.prop("renderer").callMethod("setElementStyle",[p,a.literal(e.name),v]).toStmt());break;case l.PropertyBindingType.Animation:var _=e.name,S=a.THIS_EXPR;r&&(S=n.appElement.prop("componentView"));var w=S.prop("componentType").prop("animations").key(a.literal(_)),C=a.literal(i.EMPTY_STATE),E=a.variable("oldRenderVar");g.push(E.set(y).toDeclStmt()),g.push(new a.IfStmt(E.equals(a.importExpr(s.Identifiers.UNINITIALIZED)),[E.set(C).toStmt()]));var T=a.variable("newRenderVar");if(g.push(T.set(v).toDeclStmt()),g.push(new a.IfStmt(T.equals(a.importExpr(s.Identifiers.UNINITIALIZED)),[T.set(C).toStmt()])),g.push(w.callFn([a.THIS_EXPR,p,E,T]).toStmt()),c.detachMethod.addStmt(w.callFn([a.THIS_EXPR,p,y,C]).toStmt()),!h.get(c)){h.set(c,!0);var R=a.THIS_EXPR.callMethod("triggerQueuedAnimations",[]).toStmt();c.afterViewLifecycleCallbacksMethod.addStmt(R),c.detachMethod.addStmt(R)}}bind(c,m,f,e.value,t,g,c.detectChangesRenderPropertiesMethod)})}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=p.ViewProperties.viewUtils.prop("sanitizer"),o=[a.importExpr(s.Identifiers.SecurityContext).prop(n),t];return i.callMethod("sanitize",o)}function bindRenderInputs(e,t){bindAndWriteToRenderer(e,t.view.componentContext,t,!1)}function bindDirectiveHostProps(e,t,n){bindAndWriteToRenderer(e.hostProperties,t,n,!0)}function bindDirectiveInputs(e,t,n){if(0!==e.inputs.length){var r=n.view,o=r.detectChangesInInputsMethod;o.resetDebugInfo(n.nodeIndex,n.sourceAst);var l=e.directive.type.lifecycleHooks,c=l.indexOf(i.LifecycleHooks.OnChanges)!==-1,d=e.directive.isComponent&&!i.isDefaultChangeDetectionStrategy(e.directive.changeDetection);c&&o.addStmt(p.DetectChangesVars.changes.set(a.NULL_EXPR).toStmt()),d&&o.addStmt(p.DetectChangesVars.changed.set(a.literal(!1)).toStmt()),e.inputs.forEach(function(e){var i=r.bindings.length;r.bindings.push(new u.CompileBinding(n,e)),o.resetDebugInfo(n.nodeIndex,e);var l=createBindFieldExpr(i),h=createCurrValueExpr(i),f=[t.prop(e.directiveName).set(h).toStmt()];c&&(f.push(new a.IfStmt(p.DetectChangesVars.changes.identical(a.NULL_EXPR),[p.DetectChangesVars.changes.set(a.literalMap([],new a.MapType(a.importType(s.Identifiers.SimpleChange)))).toStmt()])),f.push(p.DetectChangesVars.changes.key(a.literal(e.directiveName)).set(a.importExpr(s.Identifiers.SimpleChange).instantiate([l,h])).toStmt())),d&&f.push(p.DetectChangesVars.changed.set(a.literal(!0)).toStmt()),r.genConfig.logBindingUpdate&&f.push(logBindingUpdateStmt(n.renderNode,e.directiveName,h)),bind(r,h,l,e.value,r.componentContext,f,o)}),d&&o.addStmt(new a.IfStmt(p.DetectChangesVars.changed,[n.appElement.prop("componentView").callMethod("markAsCheckOnce",[]).toStmt()]))}}function logBindingUpdateStmt(e,t,n){var r=a.THIS_EXPR.prop("renderer").callMethod("setBindingDebugInfo",[e,a.literal("ng-reflect-"+c.camelCaseToDashCase(t)),n.isBlank().conditional(a.NULL_EXPR,n.callMethod("toString",[]))]).toStmt(),i=a.THIS_EXPR.prop("renderer").callMethod("setBindingDebugInfo",[e,a.literal("ng-reflect-"+c.camelCaseToDashCase(t)),a.literal("[ERROR] Exception while trying to serialize the value")]).toStmt();return new a.TryCatchStmt([r],[i])}var r=n(0),i=n(27),o=n(5),s=n(28),a=n(17),l=n(61),c=n(36),u=n(361),p=n(104),d=n(365),h=new Map;t.bindRenderText=bindRenderText,t.bindRenderInputs=bindRenderInputs,t.bindDirectiveHostProps=bindDirectiveHostProps,t.bindDirectiveInputs=bindDirectiveInputs},function(e,t,n){"use strict";function bindView(e,t){var n=new l(e);i.templateVisitAll(n,t),e.pipes.forEach(function(e){s.bindPipeDestroyLifecycleCallbacks(e.meta,e.instance,e.view)})}var r=n(28),i=n(61),o=n(557),s=n(558),a=n(559);t.bindView=bindView;var l=function(){function ViewBinderVisitor(e){this.view=e,this._nodeIndex=0}return ViewBinderVisitor.prototype.visitBoundText=function(e,t){var n=this.view.nodes[this._nodeIndex++];return a.bindRenderText(e,n,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 n=this.view.nodes[this._nodeIndex++],l=o.collectEventListeners(e.outputs,e.directives,n);return a.bindRenderInputs(e.inputs,n),o.bindRenderOutputs(l),e.directives.forEach(function(e){var t=n.instances.get(r.identifierToken(e.directive.type));a.bindDirectiveInputs(e,t,n),s.bindDirectiveDetectChangesLifecycleCallbacks(e,t,n),a.bindDirectiveHostProps(e,t,n),o.bindDirectiveOutputs(e,t,l)}),i.templateVisitAll(this,e.children,n),e.directives.forEach(function(e){var t=n.instances.get(r.identifierToken(e.directive.type));s.bindDirectiveAfterContentLifecycleCallbacks(e.directive,t,n),s.bindDirectiveAfterViewLifecycleCallbacks(e.directive,t,n)}),e.providers.forEach(function(e){var t=n.instances.get(e.token);s.bindInjectableDestroyLifecycleCallbacks(e,t,n)}),null},ViewBinderVisitor.prototype.visitEmbeddedTemplate=function(e,t){var n=this.view.nodes[this._nodeIndex++],i=o.collectEventListeners(e.outputs,e.directives,n);return e.directives.forEach(function(e){var t=n.instances.get(r.identifierToken(e.directive.type));a.bindDirectiveInputs(e,t,n),s.bindDirectiveDetectChangesLifecycleCallbacks(e,t,n),o.bindDirectiveOutputs(e,t,i),s.bindDirectiveAfterContentLifecycleCallbacks(e.directive,t,n),s.bindDirectiveAfterViewLifecycleCallbacks(e.directive,t,n)}),e.providers.forEach(function(e){var t=n.instances.get(e.token);s.bindInjectableDestroyLifecycleCallbacks(e,t,n)}),bindView(n.embeddedView,e.children),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}()},function(e,t,n){"use strict";var r=n(367),i=n(368),o=n(562),s=n(246),a=n(563),l=n(564),c=n(565),u=n(159),p=n(160),d=n(161),h=n(570),f=n(375),m=n(253),y=n(164),v=n(379),g=n(256),b=n(382),_=n(383),S=n(579),w=n(165),C=n(166),E=n(389),T=n(391),R=n(583),P=n(258),x=n(392),M=n(259),I=n(260),A=n(168);t.__core_private__={isDefaultChangeDetectionStrategy:p.isDefaultChangeDetectionStrategy,ChangeDetectorStatus:p.ChangeDetectorStatus,CHANGE_DETECTION_STRATEGY_VALUES:p.CHANGE_DETECTION_STRATEGY_VALUES,constructDependencies:m.constructDependencies,LifecycleHooks:E.LifecycleHooks,LIFECYCLE_HOOKS_VALUES:E.LIFECYCLE_HOOKS_VALUES,ReflectorReader:M.ReflectorReader,CodegenComponentFactoryResolver:y.CodegenComponentFactoryResolver,AppElement:g.AppElement,AppView:S.AppView,DebugAppView:S.DebugAppView,NgModuleInjector:b.NgModuleInjector,ViewType:w.ViewType,MAX_INTERPOLATION_VALUES:C.MAX_INTERPOLATION_VALUES,checkBinding:C.checkBinding,flattenNestedViewRenderNodes:C.flattenNestedViewRenderNodes,interpolate:C.interpolate,ViewUtils:C.ViewUtils,VIEW_ENCAPSULATION_VALUES:T.VIEW_ENCAPSULATION_VALUES,DebugContext:v.DebugContext,StaticNodeDebugInfo:v.StaticNodeDebugInfo,devModeEqual:u.devModeEqual,UNINITIALIZED:u.UNINITIALIZED,ValueUnwrapper:u.ValueUnwrapper,RenderDebugInfo:I.RenderDebugInfo,TemplateRef_:_.TemplateRef_,wtfInit:R.wtfInit,ReflectionCapabilities:x.ReflectionCapabilities,makeDecorator:A.makeDecorator,DebugDomRootRenderer:h.DebugDomRootRenderer,createProvider:f.createProvider,isProviderLiteral:f.isProviderLiteral,EMPTY_ARRAY:C.EMPTY_ARRAY,EMPTY_MAP:C.EMPTY_MAP,pureProxy1:C.pureProxy1,pureProxy2:C.pureProxy2,pureProxy3:C.pureProxy3,pureProxy4:C.pureProxy4,pureProxy5:C.pureProxy5,pureProxy6:C.pureProxy6,pureProxy7:C.pureProxy7,pureProxy8:C.pureProxy8,pureProxy9:C.pureProxy9,pureProxy10:C.pureProxy10,castByValue:C.castByValue,Console:d.Console,reflector:P.reflector,Reflector:P.Reflector,NoOpAnimationPlayer:s.NoOpAnimationPlayer,AnimationPlayer:s.AnimationPlayer,AnimationSequencePlayer:a.AnimationSequencePlayer,AnimationGroupPlayer:i.AnimationGroupPlayer,AnimationKeyframe:o.AnimationKeyframe,prepareFinalAnimationStyles:l.prepareFinalAnimationStyles,balanceAnimationKeyframes:l.balanceAnimationKeyframes,flattenStyles:l.flattenStyles,clearStyles:l.clearStyles,renderStyles:l.renderStyles,collectAndResolveStyles:l.collectAndResolveStyles,AnimationStyles:c.AnimationStyles,ANY_STATE:r.ANY_STATE,DEFAULT_STATE:r.DEFAULT_STATE,EMPTY_STATE:r.EMPTY_STATE,FILL_STYLE_FLAG:r.FILL_STYLE_FLAG}},function(e,t){"use strict";var n=function(){function AnimationKeyframe(e,t){this.offset=e,this.styles=t}return AnimationKeyframe}();t.AnimationKeyframe=n},function(e,t,n){"use strict";var r=n(4),i=n(246),o=function(){function AnimationSequencePlayer(e){var t=this;this._players=e,this._currentIndex=0,this._subscriptions=[],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 i.NoOpAnimationPlayer,r.scheduleMicroTask(function(){return t._onFinish()});else if(this._currentIndex>=this._players.length)this._activePlayer=new i.NoOpAnimationPlayer,this._onFinish();else{var n=this._players[this._currentIndex++];n.onDone(function(){return t._onNext(!0)}),this._activePlayer=n,e&&n.play()}},AnimationSequencePlayer.prototype._onFinish=function(){this._finished||(this._finished=!0,r.isPresent(this.parentPlayer)||this.destroy(),this._subscriptions.forEach(function(e){return e()}),this._subscriptions=[])},AnimationSequencePlayer.prototype.init=function(){this._players.forEach(function(e){return e.init()})},AnimationSequencePlayer.prototype.onDone=function(e){this._subscriptions.push(e)},AnimationSequencePlayer.prototype.hasStarted=function(){return this._started},AnimationSequencePlayer.prototype.play=function(){r.isPresent(this.parentPlayer)||this.init(),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}();t.AnimationSequencePlayer=o},function(e,t,n){"use strict";function prepareFinalAnimationStyles(e,t,n){void 0===n&&(n=null);var o={};return r.StringMapWrapper.forEach(t,function(e,t){o[t]=e==s.AUTO_STYLE?n:e.toString()}),r.StringMapWrapper.forEach(e,function(e,t){i.isPresent(o[t])||(o[t]=n)}),o}function balanceAnimationKeyframes(e,t,n){var o=n.length-1,a=n[0],l=flattenStyles(a.styles.styles),c={},u=!1;r.StringMapWrapper.forEach(e,function(e,t){l[t]||(l[t]=e,c[t]=e,u=!0)});var p=r.StringMapWrapper.merge({},l),d=n[o];r.ListWrapper.insert(d.styles.styles,0,t);var h=flattenStyles(d.styles.styles),f={},m=!1;return r.StringMapWrapper.forEach(p,function(e,t){i.isPresent(h[t])||(f[t]=s.AUTO_STYLE,m=!0)}),m&&d.styles.styles.push(f),r.StringMapWrapper.forEach(h,function(e,t){i.isPresent(l[t])||(c[t]=s.AUTO_STYLE,u=!0)}),u&&a.styles.styles.push(c),n}function clearStyles(e){var t={};return r.StringMapWrapper.keys(e).forEach(function(e){t[e]=null}),t}function collectAndResolveStyles(e,t){return t.map(function(t){var n={};return r.StringMapWrapper.forEach(t,function(t,r){t==o.FILL_STYLE_FLAG&&(t=e[r],i.isPresent(t)||(t=s.AUTO_STYLE)),e[r]=t,n[r]=t}),n})}function renderStyles(e,t,n){r.StringMapWrapper.forEach(n,function(n,r){t.setElementStyle(e,r,n)})}function flattenStyles(e){var t={};return e.forEach(function(e){r.StringMapWrapper.forEach(e,function(e,n){t[n]=e})}),t}var r=n(21),i=n(4),o=n(367),s=n(369);t.prepareFinalAnimationStyles=prepareFinalAnimationStyles,t.balanceAnimationKeyframes=balanceAnimationKeyframes,t.clearStyles=clearStyles,t.collectAndResolveStyles=collectAndResolveStyles,t.renderStyles=renderStyles,t.flattenStyles=flattenStyles},function(e,t){"use strict";var n=function(){function AnimationStyles(e){this.styles=e}return AnimationStyles}();t.AnimationStyles=n},function(e,t,n){"use strict";var r=n(21),i=n(4),o=function(){function ViewAnimationMap(){this._map=new r.Map,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 n=this._map.get(e);if(i.isPresent(n))return n[t]},ViewAnimationMap.prototype.findAllPlayersByElement=function(e){var t=this._map.get(e);return t?r.StringMapWrapper.values(t):[]},ViewAnimationMap.prototype.set=function(e,t,n){var r=this._map.get(e);i.isPresent(r)||(r={});var o=r[t];i.isPresent(o)&&this.remove(e,t),r[t]=n,this._allPlayers.push(n),this._map.set(e,r)},ViewAnimationMap.prototype.getAllPlayers=function(){return this._allPlayers},ViewAnimationMap.prototype.remove=function(e,t){var n=this._map.get(e);if(i.isPresent(n)){var o=n[t];delete n[t];var s=this._allPlayers.indexOf(o);r.ListWrapper.removeAt(this._allPlayers,s),r.StringMapWrapper.isEmpty(n)&&this._map.delete(e)}},ViewAnimationMap}();t.ViewAnimationMap=o},function(e,t,n){"use strict";function _iterableDiffersFactory(){return s.defaultIterableDiffers}function _keyValueDiffersFactory(){return s.defaultKeyValueDiffers}var r=n(247),i=n(248),o=n(157),s=n(158),a=n(116),l=n(255),c=n(380),u=n(166),p=n(386);t._iterableDiffersFactory=_iterableDiffersFactory,t._keyValueDiffersFactory=_keyValueDiffersFactory,t.APPLICATION_COMMON_PROVIDERS=[];var d=function(){function ApplicationModule(){}return ApplicationModule.decorators=[{type:p.NgModule,args:[{providers:[i.ApplicationRef_,{provide:i.ApplicationRef,useExisting:i.ApplicationRef_},r.ApplicationInitStatus,a.Compiler,{provide:l.ComponentResolver,useExisting:a.Compiler},o.APP_ID_RANDOM_PROVIDER,u.ViewUtils,{provide:s.IterableDiffers,useFactory:_iterableDiffersFactory},{provide:s.KeyValueDiffers,useFactory:_keyValueDiffersFactory},{provide:c.DynamicComponentLoader,useClass:c.DynamicComponentLoader_}]}]}],ApplicationModule}();t.ApplicationModule=d},function(e,t,n){"use strict";var r=n(158);t.ChangeDetectionStrategy=r.ChangeDetectionStrategy,t.ChangeDetectorRef=r.ChangeDetectorRef,t.CollectionChangeRecord=r.CollectionChangeRecord,t.DefaultIterableDiffer=r.DefaultIterableDiffer,t.IterableDiffers=r.IterableDiffers,t.KeyValueChangeRecord=r.KeyValueChangeRecord,t.KeyValueDiffers=r.KeyValueDiffers,t.SimpleChange=r.SimpleChange,t.WrappedValue=r.WrappedValue},function(e,t){"use strict";var n=function(){function ChangeDetectorRef(){}return ChangeDetectorRef}();t.ChangeDetectorRef=n},function(e,t,n){"use strict";var r=n(4),i=n(373),o=function(){function DebugDomRootRenderer(e){this._delegate=e}return DebugDomRootRenderer.prototype.renderComponent=function(e){return new s(this._delegate.renderComponent(e))},DebugDomRootRenderer}();t.DebugDomRootRenderer=o;var s=function(){function DebugDomRenderer(e){this._delegate=e}return DebugDomRenderer.prototype.selectRootElement=function(e,t){var n=this._delegate.selectRootElement(e,t),r=new i.DebugElement(n,null,t);return i.indexDebugNode(r),n},DebugDomRenderer.prototype.createElement=function(e,t,n){var r=this._delegate.createElement(e,t,n),o=new i.DebugElement(r,i.getDebugNode(e),n);return o.name=t,i.indexDebugNode(o),r},DebugDomRenderer.prototype.createViewRoot=function(e){return this._delegate.createViewRoot(e)},DebugDomRenderer.prototype.createTemplateAnchor=function(e,t){var n=this._delegate.createTemplateAnchor(e,t),r=new i.DebugNode(n,i.getDebugNode(e),t);return i.indexDebugNode(r),n},DebugDomRenderer.prototype.createText=function(e,t,n){var r=this._delegate.createText(e,t,n),o=new i.DebugNode(r,i.getDebugNode(e),n);return i.indexDebugNode(o),r},DebugDomRenderer.prototype.projectNodes=function(e,t){var n=i.getDebugNode(e);if(r.isPresent(n)&&n instanceof i.DebugElement){var o=n;t.forEach(function(e){o.addChild(i.getDebugNode(e))})}this._delegate.projectNodes(e,t)},DebugDomRenderer.prototype.attachViewAfter=function(e,t){var n=i.getDebugNode(e);if(r.isPresent(n)){var o=n.parent;if(t.length>0&&r.isPresent(o)){var s=[];t.forEach(function(e){return s.push(i.getDebugNode(e))}),o.insertChildrenAfter(n,s)}}this._delegate.attachViewAfter(e,t)},DebugDomRenderer.prototype.detachView=function(e){e.forEach(function(e){var t=i.getDebugNode(e);r.isPresent(t)&&r.isPresent(t.parent)&&t.parent.removeChild(t)}),this._delegate.detachView(e)},DebugDomRenderer.prototype.destroyView=function(e,t){t.forEach(function(e){i.removeDebugNodeFromIndex(i.getDebugNode(e))}),this._delegate.destroyView(e,t)},DebugDomRenderer.prototype.listen=function(e,t,n){var o=i.getDebugNode(e);return r.isPresent(o)&&o.listeners.push(new i.EventListener(t,n)),this._delegate.listen(e,t,n)},DebugDomRenderer.prototype.listenGlobal=function(e,t,n){return this._delegate.listenGlobal(e,t,n)},DebugDomRenderer.prototype.setElementProperty=function(e,t,n){var o=i.getDebugNode(e);r.isPresent(o)&&o instanceof i.DebugElement&&(o.properties[t]=n),this._delegate.setElementProperty(e,t,n)},DebugDomRenderer.prototype.setElementAttribute=function(e,t,n){var o=i.getDebugNode(e);r.isPresent(o)&&o instanceof i.DebugElement&&(o.attributes[t]=n),this._delegate.setElementAttribute(e,t,n)},DebugDomRenderer.prototype.setBindingDebugInfo=function(e,t,n){this._delegate.setBindingDebugInfo(e,t,n)},DebugDomRenderer.prototype.setElementClass=function(e,t,n){var o=i.getDebugNode(e);r.isPresent(o)&&o instanceof i.DebugElement&&(o.classes[t]=n),this._delegate.setElementClass(e,t,n)},DebugDomRenderer.prototype.setElementStyle=function(e,t,n){var o=i.getDebugNode(e);r.isPresent(o)&&o instanceof i.DebugElement&&(o.styles[t]=n),this._delegate.setElementStyle(e,t,n)},DebugDomRenderer.prototype.invokeElementMethod=function(e,t,n){this._delegate.invokeElementMethod(e,t,n)},DebugDomRenderer.prototype.setText=function(e,t){this._delegate.setText(e,t)},DebugDomRenderer.prototype.animate=function(e,t,n,r,i,o){return this._delegate.animate(e,t,n,r,i,o)},DebugDomRenderer}();t.DebugDomRenderer=s},function(e,t,n){"use strict";function _mapProviders(e,t){for(var n=new Array(e._proto.numberOfProviders),r=0;r0&&(this.provider0=t[0],this.keyId0=t[0].key.id),n>1&&(this.provider1=t[1],this.keyId1=t[1].key.id),n>2&&(this.provider2=t[2],this.keyId2=t[2].key.id),n>3&&(this.provider3=t[3],this.keyId3=t[3].key.id),n>4&&(this.provider4=t[4],this.keyId4=t[4].key.id),n>5&&(this.provider5=t[5],this.keyId5=t[5].key.id),n>6&&(this.provider6=t[6],this.keyId6=t[6].key.id),n>7&&(this.provider7=t[7],this.keyId7=t[7].key.id),n>8&&(this.provider8=t[8],this.keyId8=t[8].key.id),n>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 a.OutOfBoundsError(e)},ReflectiveProtoInjectorInlineStrategy.prototype.createInjectorStrategy=function(e){return new m(e,this)},ReflectiveProtoInjectorInlineStrategy}();t.ReflectiveProtoInjectorInlineStrategy=d;var h=function(){function ReflectiveProtoInjectorDynamicStrategy(e,t){this.providers=t;var n=t.length;this.keyIds=r.ListWrapper.createFixedSize(n);for(var i=0;i=this.providers.length)throw new a.OutOfBoundsError(e);return this.providers[e]},ReflectiveProtoInjectorDynamicStrategy.prototype.createInjectorStrategy=function(e){return new y(this,e)},ReflectiveProtoInjectorDynamicStrategy}();t.ReflectiveProtoInjectorDynamicStrategy=h;var f=function(){function ReflectiveProtoInjector(e){this.numberOfProviders=e.length,this._strategy=e.length>u?new h(this,e):new d(this,e)}return ReflectiveProtoInjector.fromResolvedProviders=function(e){return new ReflectiveProtoInjector(e)},ReflectiveProtoInjector.prototype.getProviderAtIndex=function(e){return this._strategy.getProviderAtIndex(e)},ReflectiveProtoInjector}();t.ReflectiveProtoInjector=f;var m=function(){function ReflectiveInjectorInlineStrategy(e,t){this.injector=e,this.protoStrategy=t,this.obj0=p,this.obj1=p,this.obj2=p,this.obj3=p,this.obj4=p,this.obj5=p,this.obj6=p,this.obj7=p,this.obj8=p,this.obj9=p}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,n=this.injector;return t.keyId0===e?(this.obj0===p&&(this.obj0=n._new(t.provider0)),this.obj0):t.keyId1===e?(this.obj1===p&&(this.obj1=n._new(t.provider1)),this.obj1):t.keyId2===e?(this.obj2===p&&(this.obj2=n._new(t.provider2)),this.obj2):t.keyId3===e?(this.obj3===p&&(this.obj3=n._new(t.provider3)),this.obj3):t.keyId4===e?(this.obj4===p&&(this.obj4=n._new(t.provider4)),this.obj4):t.keyId5===e?(this.obj5===p&&(this.obj5=n._new(t.provider5)),this.obj5):t.keyId6===e?(this.obj6===p&&(this.obj6=n._new(t.provider6)),this.obj6):t.keyId7===e?(this.obj7===p&&(this.obj7=n._new(t.provider7)),this.obj7):t.keyId8===e?(this.obj8===p&&(this.obj8=n._new(t.provider8)),this.obj8):t.keyId9===e?(this.obj9===p&&(this.obj9=n._new(t.provider9)),this.obj9):p},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 a.OutOfBoundsError(e)},ReflectiveInjectorInlineStrategy.prototype.getMaxNumberOfObjects=function(){return u},ReflectiveInjectorInlineStrategy}();t.ReflectiveInjectorInlineStrategy=m;var y=function(){function ReflectiveInjectorDynamicStrategy(e,t){this.protoStrategy=e,this.injector=t,this.objs=r.ListWrapper.createFixedSize(e.providers.length),r.ListWrapper.fill(this.objs,p)}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,n=0;n=this.objs.length)throw new a.OutOfBoundsError(e);return this.objs[e]},ReflectiveInjectorDynamicStrategy.prototype.getMaxNumberOfObjects=function(){return this.objs.length},ReflectiveInjectorDynamicStrategy}();t.ReflectiveInjectorDynamicStrategy=y;var v=function(){function ReflectiveInjector(){}return ReflectiveInjector.resolve=function(e){return c.resolveReflectiveProviders(e)},ReflectiveInjector.resolveAndCreate=function(e,t){void 0===t&&(t=null);var n=ReflectiveInjector.resolve(e);return ReflectiveInjector.fromResolvedProviders(n,t)},ReflectiveInjector.fromResolvedProviders=function(e,t){return void 0===t&&(t=null),new g(f.fromResolvedProviders(e),t)},ReflectiveInjector.fromResolvedBindings=function(e){return ReflectiveInjector.fromResolvedProviders(e)},Object.defineProperty(ReflectiveInjector.prototype,"parent",{get:function(){return i.unimplemented()},enumerable:!0,configurable:!0}),ReflectiveInjector.prototype.debugContext=function(){return null},ReflectiveInjector.prototype.resolveAndCreateChild=function(e){return i.unimplemented()},ReflectiveInjector.prototype.createChildFromResolved=function(e){return i.unimplemented()},ReflectiveInjector.prototype.resolveAndInstantiate=function(e){return i.unimplemented()},ReflectiveInjector.prototype.instantiateResolved=function(e){return i.unimplemented()},ReflectiveInjector}();t.ReflectiveInjector=v;var g=function(){function ReflectiveInjector_(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null),this._debugContext=n,this._constructionCounter=0,this._proto=e,this._parent=t,this._strategy=e._strategy.createInjectorStrategy(this)}return ReflectiveInjector_.prototype.debugContext=function(){return this._debugContext()},ReflectiveInjector_.prototype.get=function(e,t){return void 0===t&&(t=o.THROW_IF_NOT_FOUND),this._getByKey(l.ReflectiveKey.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=v.resolve(e);return this.createChildFromResolved(t)},ReflectiveInjector_.prototype.createChildFromResolved=function(e){var t=new f(e),n=new ReflectiveInjector_(t);return n._parent=this,n},ReflectiveInjector_.prototype.resolveAndInstantiate=function(e){return this.instantiateResolved(v.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 a.CyclicDependencyError(this,e.key);return this._instantiateProvider(e)},ReflectiveInjector_.prototype._instantiateProvider=function(e){if(e.multiProvider){for(var t=r.ListWrapper.createFixedSize(e.resolvedFactories.length),n=0;n0?this._getByReflectiveDependency(e,T[0]):null,r=R>1?this._getByReflectiveDependency(e,T[1]):null,o=R>2?this._getByReflectiveDependency(e,T[2]):null,s=R>3?this._getByReflectiveDependency(e,T[3]):null,l=R>4?this._getByReflectiveDependency(e,T[4]):null,c=R>5?this._getByReflectiveDependency(e,T[5]):null,u=R>6?this._getByReflectiveDependency(e,T[6]):null,p=R>7?this._getByReflectiveDependency(e,T[7]):null,d=R>8?this._getByReflectiveDependency(e,T[8]):null,h=R>9?this._getByReflectiveDependency(e,T[9]):null,f=R>10?this._getByReflectiveDependency(e,T[10]):null,m=R>11?this._getByReflectiveDependency(e,T[11]):null,y=R>12?this._getByReflectiveDependency(e,T[12]):null,v=R>13?this._getByReflectiveDependency(e,T[13]):null,g=R>14?this._getByReflectiveDependency(e,T[14]):null,b=R>15?this._getByReflectiveDependency(e,T[15]):null,_=R>16?this._getByReflectiveDependency(e,T[16]):null,S=R>17?this._getByReflectiveDependency(e,T[17]):null,w=R>18?this._getByReflectiveDependency(e,T[18]):null,C=R>19?this._getByReflectiveDependency(e,T[19]):null}catch(P){throw(P instanceof a.AbstractProviderError||P instanceof a.InstantiationError)&&P.addKey(this,e.key),P}var x;try{switch(R){case 0:x=E();break;case 1:x=E(n);break;case 2:x=E(n,r);break;case 3:x=E(n,r,o);break;case 4:x=E(n,r,o,s);break;case 5:x=E(n,r,o,s,l);break;case 6:x=E(n,r,o,s,l,c);break;case 7:x=E(n,r,o,s,l,c,u);break;case 8:x=E(n,r,o,s,l,c,u,p);break;case 9:x=E(n,r,o,s,l,c,u,p,d);break;case 10:x=E(n,r,o,s,l,c,u,p,d,h);break;case 11:x=E(n,r,o,s,l,c,u,p,d,h,f);break;case 12:x=E(n,r,o,s,l,c,u,p,d,h,f,m);break;case 13:x=E(n,r,o,s,l,c,u,p,d,h,f,m,y);break;case 14:x=E(n,r,o,s,l,c,u,p,d,h,f,m,y,v);break;case 15:x=E(n,r,o,s,l,c,u,p,d,h,f,m,y,v,g);break;case 16:x=E(n,r,o,s,l,c,u,p,d,h,f,m,y,v,g,b);break;case 17:x=E(n,r,o,s,l,c,u,p,d,h,f,m,y,v,g,b,_);break;case 18:x=E(n,r,o,s,l,c,u,p,d,h,f,m,y,v,g,b,_,S);break;case 19:x=E(n,r,o,s,l,c,u,p,d,h,f,m,y,v,g,b,_,S,w);break;case 20:x=E(n,r,o,s,l,c,u,p,d,h,f,m,y,v,g,b,_,S,w,C);break;default:throw new i.BaseException("Cannot instantiate '"+e.key.displayName+"' because it has more than 20 dependencies")}}catch(P){throw new a.InstantiationError(this,P,P.stack,e.key)}return x},ReflectiveInjector_.prototype._getByReflectiveDependency=function(e,t){return this._getByKey(t.key,t.lowerBoundVisibility,t.upperBoundVisibility,t.optional?null:o.THROW_IF_NOT_FOUND)},ReflectiveInjector_.prototype._getByKey=function(e,t,n,r){return e===b?this:n instanceof s.SelfMetadata?this._getByKeySelf(e,r):this._getByKeyDefault(e,r,t)},ReflectiveInjector_.prototype._throwOrNull=function(e,t){if(t!==o.THROW_IF_NOT_FOUND)return t;throw new a.NoProviderError(this,e)},ReflectiveInjector_.prototype._getByKeySelf=function(e,t){var n=this._strategy.getObjByKeyId(e.id);return n!==p?n:this._throwOrNull(e,t)},ReflectiveInjector_.prototype._getByKeyDefault=function(e,t,n){var r;for(r=n instanceof s.SkipSelfMetadata?this._parent:this;r instanceof ReflectiveInjector_;){var i=r,o=i._strategy.getObjByKeyId(e.id);if(o!==p)return o;r=i._parent}return null!==r?r.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_}();t.ReflectiveInjector_=g;var b=l.ReflectiveKey.get(o.Injector)},[1108,4],function(e,t,n){"use strict";var r=n(116);t.COMPILER_OPTIONS=r.COMPILER_OPTIONS,t.Compiler=r.Compiler,t.CompilerFactory=r.CompilerFactory,t.ComponentStillLoadingError=r.ComponentStillLoadingError,t.ModuleWithComponentFactories=r.ModuleWithComponentFactories;var i=n(378);t.ComponentFactory=i.ComponentFactory,t.ComponentRef=i.ComponentRef;var o=n(164);t.ComponentFactoryResolver=o.ComponentFactoryResolver,t.NoComponentFactoryError=o.NoComponentFactoryError;var s=n(255);t.ComponentResolver=s.ComponentResolver;var a=n(380);t.DynamicComponentLoader=a.DynamicComponentLoader;var l=n(381);t.ElementRef=l.ElementRef;var c=n(257);t.ExpressionChangedAfterItHasBeenCheckedException=c.ExpressionChangedAfterItHasBeenCheckedException;var u=n(382);t.NgModuleFactory=u.NgModuleFactory,t.NgModuleRef=u.NgModuleRef;var p=n(575);t.NgModuleFactoryLoader=p.NgModuleFactoryLoader;var d=n(576);t.QueryList=d.QueryList;var h=n(577);t.SystemJsNgModuleLoader=h.SystemJsNgModuleLoader;var f=n(578);t.SystemJsCmpFactoryResolver=f.SystemJsCmpFactoryResolver,t.SystemJsComponentResolver=f.SystemJsComponentResolver;var m=n(383);t.TemplateRef=m.TemplateRef;var y=n(384);t.ViewContainerRef=y.ViewContainerRef;var v=n(385);t.EmbeddedViewRef=v.EmbeddedViewRef,t.ViewRef=v.ViewRef},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(163),o=new Object,s=function(e){function ElementInjector(t,n){e.call(this),this._view=t,this._nodeIndex=n}return r(ElementInjector,e),ElementInjector.prototype.get=function(e,t){void 0===t&&(t=i.THROW_IF_NOT_FOUND);var n=o;return n===o&&(n=this._view.injectorGet(e,this._nodeIndex,o)),n===o&&(n=this._view.parentInjector.get(e,t)),n},ElementInjector}(i.Injector);t.ElementInjector=s},function(e,t){"use strict";var n=function(){function NgModuleFactoryLoader(){}return NgModuleFactoryLoader}();t.NgModuleFactoryLoader=n},function(e,t,n){"use strict";var r=n(254),i=n(21),o=n(4),s=function(){function QueryList(){this._dirty=!0,this._results=[],this._emitter=new r.EventEmitter}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[o.getSymbolIterator()]=function(){return this._results[o.getSymbolIterator()]()},QueryList.prototype.toString=function(){return this._results.toString()},QueryList.prototype.reset=function(e){this._results=i.ListWrapper.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}();t.QueryList=s},function(e,t,n){"use strict";function checkNotEmpty(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e}var r=n(46),i=n(4),o=n(116),s="#",a=".ngfactory",l="NgFactory",c=function(){function SystemJsNgModuleLoader(e){this._compiler=e}return SystemJsNgModuleLoader.prototype.load=function(e){var t=this._compiler instanceof o.Compiler;return t?this.loadFactory(e):this.loadAndCompile(e)},SystemJsNgModuleLoader.prototype.loadAndCompile=function(e){var t=this,n=e.split(s),r=n[0],o=n[1];return void 0===o&&(o="default"),i.global.System.import(r).then(function(e){return e[o]}).then(function(e){return checkNotEmpty(e,r,o)}).then(function(e){return t._compiler.compileModuleAsync(e)})},SystemJsNgModuleLoader.prototype.loadFactory=function(e){var t=e.split(s),n=t[0],r=t[1];return void 0===r&&(r="default"),i.global.System.import(n+a).then(function(e){return e[r+l]}).then(function(e){return checkNotEmpty(e,n,r)})},SystemJsNgModuleLoader.decorators=[{type:r.Injectable}],SystemJsNgModuleLoader.ctorParameters=[{type:o.Compiler}],SystemJsNgModuleLoader}();t.SystemJsNgModuleLoader=c},function(e,t,n){"use strict";var r=n(161),i=n(46),o=n(4),s=n(255),a="#",l=function(){function SystemJsComponentResolver(e,t){this._resolver=e,this._console=t}return SystemJsComponentResolver.prototype.resolveComponent=function(e){var t=this;if(o.isString(e)){this._console.warn(s.ComponentResolver.LazyLoadingDeprecationMsg);var n=e.split(a),r=n[0],i=n[1];return void 0===i&&(i="default"),o.global.System.import(r).then(function(e){return t._resolver.resolveComponent(e[i])})}return this._resolver.resolveComponent(e)},SystemJsComponentResolver.prototype.clearCache=function(){},SystemJsComponentResolver.decorators=[{type:i.Injectable}],SystemJsComponentResolver.ctorParameters=[{type:s.ComponentResolver},{type:r.Console}],SystemJsComponentResolver}();t.SystemJsComponentResolver=l;var c=".ngfactory",u="NgFactory",p=function(){function SystemJsCmpFactoryResolver(e){this._console=e}return SystemJsCmpFactoryResolver.prototype.resolveComponent=function(e){if(o.isString(e)){this._console.warn(s.ComponentResolver.LazyLoadingDeprecationMsg);var t=e.split(a),n=t[0],r=t[1];return o.global.System.import(n+c).then(function(e){return e[r+u]})}return Promise.resolve(null)},SystemJsCmpFactoryResolver.prototype.clearCache=function(){},SystemJsCmpFactoryResolver.decorators=[{type:i.Injectable}],SystemJsCmpFactoryResolver.ctorParameters=[{type:r.Console}],SystemJsCmpFactoryResolver}();t.SystemJsCmpFactoryResolver=p},function(e,t,n){"use strict";function _findLastRenderNode(e){var t;if(e instanceof p.AppElement){var n=e;if(t=n.nativeElement,l.isPresent(n.nestedViews))for(var r=n.nestedViews.length-1;r>=0;r--){var i=n.nestedViews[r];i.rootNodesOrAppElements.length>0&&(t=_findLastRenderNode(i.rootNodesOrAppElements[i.rootNodesOrAppElements.length-1]))}}else t=e;return t}var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=n(368),o=n(566),s=n(158),a=n(21),l=n(4),c=n(167),u=n(379),p=n(256),d=n(574),h=n(257),f=n(385),m=n(165),y=n(166),v=c.wtfCreateScope("AppView#check(ascii id)"),g=function(){function AppView(e,t,n,r,i,s,a){this.clazz=e,this.componentType=t,this.type=n,this.viewUtils=r,this.parentInjector=i,this.declarationAppElement=s,this.cdMode=a,this.contentChildren=[],this.viewChildren=[],this.viewContainerElement=null,this.numberOfChecks=0,this.animationPlayers=new o.ViewAnimationMap,this.ref=new f.ViewRef_(this),n===m.ViewType.COMPONENT||n===m.ViewType.HOST?this.renderer=r.renderComponent(t):this.renderer=s.parentView.renderer}return Object.defineProperty(AppView.prototype,"destroyed",{get:function(){return this.cdMode===s.ChangeDetectorStatus.Destroyed},enumerable:!0,configurable:!0}),AppView.prototype.cancelActiveAnimation=function(e,t,n){if(void 0===n&&(n=!1),n)this.animationPlayers.findAllPlayersByElement(e).forEach(function(e){return e.destroy()});else{var r=this.animationPlayers.find(e,t);l.isPresent(r)&&r.destroy()}},AppView.prototype.queueAnimation=function(e,t,n){var r=this;this.animationPlayers.set(e,t,n),n.onDone(function(){r.animationPlayers.remove(e,t)})},AppView.prototype.triggerQueuedAnimations=function(){this.animationPlayers.getAllPlayers().forEach(function(e){e.hasStarted()||e.play()})},AppView.prototype.create=function(e,t,n){this.context=e;var r;switch(this.type){case m.ViewType.COMPONENT:r=y.ensureSlotCount(t,this.componentType.slotCount);break;case m.ViewType.EMBEDDED:r=this.declarationAppElement.parentView.projectableNodes;break;case m.ViewType.HOST:r=t}return this._hasExternalHostElement=l.isPresent(n),this.projectableNodes=r,this.createInternal(n)},AppView.prototype.createInternal=function(e){return null},AppView.prototype.init=function(e,t,n,r){this.rootNodesOrAppElements=e,this.allNodes=t,this.disposables=n,this.subscriptions=r,this.type===m.ViewType.COMPONENT&&(this.declarationAppElement.parentView.viewChildren.push(this),this.dirtyParentQueriesInternal())},AppView.prototype.selectOrCreateHostElement=function(e,t,n){var r;return r=l.isPresent(t)?this.renderer.selectRootElement(t,n):this.renderer.createElement(null,e,n)},AppView.prototype.injectorGet=function(e,t,n){return this.injectorGetInternal(e,t,n)},AppView.prototype.injectorGetInternal=function(e,t,n){return n},AppView.prototype.injector=function(e){return l.isPresent(e)?new d.ElementInjector(this,e):this.parentInjector},AppView.prototype.destroy=function(){this._hasExternalHostElement?this.renderer.detachView(this.flatRootNodes):l.isPresent(this.viewContainerElement)&&this.viewContainerElement.detachView(this.viewContainerElement.nestedViews.indexOf(this)),this._destroyRecurse()},AppView.prototype._destroyRecurse=function(){if(this.cdMode!==s.ChangeDetectorStatus.Destroyed){for(var e=this.contentChildren,t=0;t0?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=v(this.clazz);this.cdMode!==s.ChangeDetectorStatus.Checked&&this.cdMode!==s.ChangeDetectorStatus.Errored&&(this.cdMode===s.ChangeDetectorStatus.Destroyed&&this.throwDestroyedError("detectChanges"),this.detectChangesInternal(e),this.cdMode===s.ChangeDetectorStatus.CheckOnce&&(this.cdMode=s.ChangeDetectorStatus.Checked),this.numberOfChecks++,c.wtfLeave(t))},AppView.prototype.detectChangesInternal=function(e){this.detectContentChildrenChanges(e),this.detectViewChildrenChanges(e)},AppView.prototype.detectContentChildrenChanges=function(e){for(var t=0;t=c&&n<=u||n==p))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}}var r=n(0),i=n(33),o=n(16),s=n(417),a=n(607),l=function(){function WebAnimationsDriver(){}return WebAnimationsDriver.prototype.animate=function(e,t,n,r,i,s){var l=[],c={};if(o.isPresent(t)&&t.styles.length>0&&(c=_populateStyles(e,t,{}),c.offset=0,l.push(c)),n.forEach(function(t){var n=_populateStyles(e,t.styles,c);n.offset=t.offset,l.push(n)}),1==l.length){var u=l[0];u.offset=null,l=[u,u]}var p={duration:r,delay:i,fill:"both"};return s&&(p.easing=s),new a.WebAnimationsPlayer(e,l,p)},WebAnimationsDriver}();t.WebAnimationsDriver=l;var c=48,u=57,p=46},function(e,t,n){"use strict";function _computeStyle(e,t){return s.getDOM().getComputedStyle(e)[t]}var r=n(0),i=n(33),o=n(16),s=n(23),a=function(){function WebAnimationsPlayer(e,t,n){this.element=e,this.keyframes=t,this.options=n,this._subscriptions=[],this._finished=!1,this._initialized=!1,this._started=!1,this.parentPlayer=null,this._duration=n.duration}return WebAnimationsPlayer.prototype._onFinish=function(){this._finished||(this._finished=!0,o.isPresent(this.parentPlayer)||this.destroy(),this._subscriptions.forEach(function(e){return e()}),this._subscriptions=[])},WebAnimationsPlayer.prototype.init=function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes.map(function(t){var n={};return i.StringMapWrapper.forEach(t,function(t,i){n[i]=t==r.AUTO_STYLE?_computeStyle(e.element,i):t}),n});this._player=this._triggerWebAnimation(this.element,t,this.options),this.reset(),this._player.onfinish=function(){return e._onFinish()}}},WebAnimationsPlayer.prototype._triggerWebAnimation=function(e,t,n){return e.animate(t,n)},WebAnimationsPlayer.prototype.onDone=function(e){this._subscriptions.push(e)},WebAnimationsPlayer.prototype.play=function(){this.init(),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}();t.WebAnimationsPlayer=a},99,function(e,t){"use strict";var n="undefined"!=typeof window&&window||{};t.window=n,t.document=n.document,t.location=n.location,t.gc=n.gc?function(){return n.gc()}:function(){return null},t.performance=n.performance?n.performance:null,t.Event=n.Event,t.MouseEvent=n.MouseEvent,t.KeyboardEvent=n.KeyboardEvent,t.EventTarget=n.EventTarget,t.History=n.History,t.Location=n.Location,t.EventListener=n.EventListener},function(e,t,n){"use strict";function getInertElement(){if(s)return s;a=i.getDOM();var e=a.createElement("template");if("content"in e)return e;var t=a.createHtmlDocument();if(s=a.querySelector(t,"body"),null==s){var n=a.createElement("html",t);s=a.createElement("body",t),a.appendChild(n,s),a.appendChild(t,n)}return s}function tagSet(e){for(var t={},n=0,r=e.split(",");n/g,">")}function stripCustomNsAttrs(e){a.attributeMap(e).forEach(function(t,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||a.removeAttribute(e,n)});for(var t=0,n=a.childNodesAsList(e);t")):void(this.sanitizedSomething=!0)},SanitizingHtmlSerializer.prototype.endElement=function(e){var t=a.nodeName(e).toLowerCase();f.hasOwnProperty(t)&&!l.hasOwnProperty(t)&&(this.buf.push(""))},SanitizingHtmlSerializer.prototype.chars=function(e){this.buf.push(encodeEntities(e))},SanitizingHtmlSerializer}(),_=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,S=/([^\#-~ |!])/g;t.sanitizeHtml=sanitizeHtml},function(e,t,n){"use strict";function hasBalancedQuotes(e){for(var t=!0,n=!0,r=0;r0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};for(var i=t.path,o=i.split("/"),s={},a=[],l=0,c=0;c=n.length)return r;var u=n[l],p=o[c],d=p.startsWith(":");if(!d&&p!==u.path)return r;d&&(s[p.substring(1)]=u),a.push(u),l++}return t.terminal&&(e.hasChildren()||l0&&containsEmptyPathRedirectsWithNamedOutlets(e,n,r)){var i=new c.UrlSegmentGroup(t,createChildrenForEmptySegments(r,new c.UrlSegmentGroup(n,e.children)));return{segmentGroup:mergeTrivialChildren(i),slicedSegments:[]}}if(0===n.length&&containsEmptyPathRedirects(e,n,r)){var i=new c.UrlSegmentGroup(e.segments,addEmptySegmentsToChildrenIfNeeded(e,n,r,e.children));return{segmentGroup:mergeTrivialChildren(i),slicedSegments:n}}return{segmentGroup:e,slicedSegments:n}}function mergeTrivialChildren(e){if(1===e.numberOfChildren&&e.children[l.PRIMARY_OUTLET]){var t=e.children[l.PRIMARY_OUTLET];return new c.UrlSegmentGroup(e.segments.concat(t.segments),t.children)}return e}function addEmptySegmentsToChildrenIfNeeded(e,t,n,r){for(var i={},o=0,s=n;o0}function containsEmptyPathRedirects(e,t,n){return n.filter(function(n){return emptyPathRedirect(e,t,n)}).length>0}function emptyPathRedirect(e,t,n){return(!(e.hasChildren()||t.length>0)||!n.terminal&&"full"!==n.pathMatch)&&(""===n.path&&void 0!==n.redirectTo)}function getOutlet(e){return e.outlet?e.outlet:l.PRIMARY_OUTLET}n(496),n(209),n(304);var r=n(1),i=n(309),o=n(141),s=n(143),a=n(187),l=n(63),c=n(73),u=n(74),p=function(){function NoMatch(e){void 0===e&&(e=null),this.segmentGroup=e}return NoMatch}(),d=function(){function AbsoluteRedirect(e){this.segments=e}return AbsoluteRedirect}();t.applyRedirects=applyRedirects;var h=function(){function ApplyRedirects(e,t,n,r){this.injector=e,this.configLoader=t,this.urlTree=n,this.config=r,this.allowRedirects=!0}return ApplyRedirects.prototype.apply=function(){var e=this;return this.expandSegmentGroup(this.injector,this.config,this.urlTree.root,l.PRIMARY_OUTLET).map(function(t){return e.createUrlTree(t)}).catch(function(t){if(t instanceof d){e.allowRedirects=!1;var n=new c.UrlSegmentGroup([],(r={},r[l.PRIMARY_OUTLET]=new c.UrlSegmentGroup(t.segments,{}),r));return e.match(n)}throw t instanceof p?e.noMatchError(t):t;var r})},ApplyRedirects.prototype.match=function(e){var t=this;return this.expandSegmentGroup(this.injector,this.config,e,l.PRIMARY_OUTLET).map(function(e){return t.createUrlTree(e)}).catch(function(e){throw e instanceof p?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 c.UrlSegmentGroup([],(n={},n[l.PRIMARY_OUTLET]=e,n)):e;return new c.UrlTree(t,this.urlTree.queryParams,this.urlTree.fragment);var n},ApplyRedirects.prototype.expandSegmentGroup=function(e,t,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(e,t,n).map(function(e){return new c.UrlSegmentGroup([],e)}):this.expandSegment(e,n,t,n.segments,r,!0)},ApplyRedirects.prototype.expandChildren=function(e,t,n){var r=this;return u.waitForMap(n.children,function(n,i){return r.expandSegmentGroup(e,t,i,n)})},ApplyRedirects.prototype.expandSegment=function(e,t,n,r,i,a){var l=this,c=o.of.apply(void 0,n).map(function(s){return l.expandSegmentAgainstRoute(e,t,n,s,r,i,a).catch(function(e){if(e instanceof p)return o.of(null);throw e})}).concatAll();return c.first(function(e){return!!e}).catch(function(e,n){throw e instanceof s.EmptyError?new p(t):e})},ApplyRedirects.prototype.expandSegmentAgainstRoute=function(e,t,n,r,i,o,s){return getOutlet(r)!==o?noMatch(t):void 0===r.redirectTo||s&&this.allowRedirects?void 0===r.redirectTo?this.matchSegmentAgainstRoute(e,t,r,i):this.expandSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o):noMatch(t)},ApplyRedirects.prototype.expandSegmentAgainstRouteUsingRedirect=function(e,t,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(r):this.expandRegularSegmentAgainstRouteUsingRedirect(e,t,n,r,i,o)},ApplyRedirects.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(e){var t=applyRedirectCommands([],e.redirectTo,{});return e.redirectTo.startsWith("/")?absoluteRedirect(t):o.of(new c.UrlSegmentGroup(t,{}))},ApplyRedirects.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(e,t,n,r,i,o){var s=match(t,r,i),a=s.matched,l=s.consumedSegments,c=s.lastChild,u=s.positionalParamSegments;if(!a)return noMatch(t);var p=applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?absoluteRedirect(p):this.expandSegment(e,t,n,p.concat(i.slice(c)),o,!1)},ApplyRedirects.prototype.matchSegmentAgainstRoute=function(e,t,n,r){var i=this;if("**"===n.path)return o.of(new c.UrlSegmentGroup(r,{}));var s=match(t,n,r),a=s.matched,u=s.consumedSegments,p=s.lastChild;if(!a)return noMatch(t);var d=r.slice(p);return this.getChildConfig(e,n).mergeMap(function(e){var n=e.injector,r=e.routes,s=split(t,u,d,r),a=s.segmentGroup,p=s.slicedSegments;return 0===p.length&&a.hasChildren()?i.expandChildren(n,r,a).map(function(e){return new c.UrlSegmentGroup(u,e)}):0===r.length&&0===p.length?o.of(new c.UrlSegmentGroup(u,{})):i.expandSegment(n,a,r,p,l.PRIMARY_OUTLET,!0).map(function(e){return new c.UrlSegmentGroup(u.concat(e.segments),e.children)})})},ApplyRedirects.prototype.getChildConfig=function(e,t){var n=this;return t.children?o.of(new a.LoadedRouterConfig(t.children,e,null)):t.loadChildren?runGuards(e,t).mergeMap(function(r){return r?n.configLoader.load(e,t.loadChildren).map(function(e){return t._loadedConfig=e,e}):canLoadFails(t)}):o.of(new a.LoadedRouterConfig([],e,null))},ApplyRedirects}()},function(e,t){"use strict";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.terminal&&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'")}t.validateConfig=validateConfig},function(e,t,n){"use strict";function createRouterState(e,t){var n=createNode(e._root,t?t._root:void 0);return new i.RouterState(n,e)}function createNode(e,t){if(t&&equalRouteSnapshots(t.value.snapshot,e.value)){var n=t.value;n._futureSnapshot=e.value;var r=createOrReuseChildren(e,t);return new o.TreeNode(n,r)}var n=createActivatedRoute(e.value),r=e.children.map(function(e){return createNode(e)});return new o.TreeNode(n,r)}function createOrReuseChildren(e,t){return e.children.map(function(e){for(var n=0,r=t.children;n0&&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,n,r,o){return n.root===e?new i.UrlTree(t,stringify(r),o):new i.UrlTree(replaceSegment(n.root,e,t),stringify(r),o)}function replaceSegment(e,t,n){var r={};return o.forEach(e.children,function(e,i){e===t?r[i]=n:r[i]=replaceSegment(e,t,n)}),new i.UrlSegmentGroup(e.segments,r)}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 s((!0),0,e);for(var t=0,n=!1,r=[],i=function(i){var s=e[i];if("object"==typeof s&&void 0!==s.outlets){var a={};return o.forEach(s.outlets,function(e,t){"string"==typeof e?a[t]=e.split("/"):a[t]=e}),r.push({outlets:a}),"continue"}if("object"==typeof s&&void 0!==s.segmentPath)return r.push(s.segmentPath),"continue";if("string"!=typeof s)return r.push(s),"continue";if(0===i)for(var l=s.split("/"),c=0;c=0)return new a(n.snapshot._urlSegment,(!1),n.snapshot._lastPathIndex+1-e.numberOfDoubleDots);throw new Error("Invalid number of '../'")}function getPath(e){return""+e}function getOutlets(e){return"object"!=typeof e[0]?(t={},t[r.PRIMARY_OUTLET]=e,t):void 0===e[0].outlets?(n={},n[r.PRIMARY_OUTLET]=e,n):e[0].outlets;var t,n}function updateSegmentGroup(e,t,n){if(e||(e=new i.UrlSegmentGroup([],{})),0===e.segments.length&&e.hasChildren())return updateSegmentGroupChildren(e,t,n);var r=prefixedWith(e,t,n),o=n.slice(r.lastIndex);return r.match&&0===o.length?new i.UrlSegmentGroup(e.segments,{}):r.match&&!e.hasChildren()?createNewSegmentGroup(e,t,n):r.match?updateSegmentGroupChildren(e,0,o):createNewSegmentGroup(e,t,n)}function updateSegmentGroupChildren(e,t,n){if(0===n.length)return new i.UrlSegmentGroup(e.segments,{});var r=getOutlets(n),s={};return o.forEach(r,function(n,r){null!==n&&(s[r]=updateSegmentGroup(e.children[r],t,n))}),o.forEach(e.children,function(e,t){void 0===r[t]&&(s[t]=e)}),new i.UrlSegmentGroup(e.segments,s)}function prefixedWith(e,t,n){for(var r=0,i=t,o={match:!1,lastIndex:0};i=n.length)return o;var s=e.segments[i],a=getPath(n[r]),l=r0))throw new u;var i=r?r.params:{};return{consumedSegments:[],lastChild:0,parameters:i}}for(var o=t.path,s=o.split("/"),a={},c=[],p=0,d=0;d=n.length)throw new u;var h=n[p],f=s[d],m=f.startsWith(":");if(!m&&f!==h.path)throw new u;m&&(a[f.substring(1)]=h.path),c.push(h),p++}if((t.terminal||"full"===t.pathMatch)&&(e.hasChildren()||p0&&containsEmptyPathMatchesWithNamedOutlets(e,n,r)){var i=new a.UrlSegmentGroup(t,createChildrenForEmptyPaths(e,t,r,new a.UrlSegmentGroup(n,e.children)));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&containsEmptyPathMatches(e,n,r)){var i=new a.UrlSegmentGroup(e.segments,addEmptyPathsToChildrenIfNeeded(e,n,r,e.children));return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}var i=new a.UrlSegmentGroup(e.segments,e.children);return i._sourceSegment=e,i._segmentIndexShift=t.length,{segmentGroup:i,slicedSegments:n}}function addEmptyPathsToChildrenIfNeeded(e,t,n,r){for(var i={},o=0,s=n;o0}function containsEmptyPathMatches(e,t,n){return n.filter(function(n){return emptyPathMatch(e,t,n)}).length>0}function emptyPathMatch(e,t,n){return(!(e.hasChildren()||t.length>0)||!n.terminal&&"full"!==n.pathMatch)&&(""===n.path&&void 0===n.redirectTo)}function getOutlet(e){return e.outlet?e.outlet:s.PRIMARY_OUTLET}function getData(e){return e.data?e.data:{}}function getResolve(e){return e.resolve?e.resolve:{}}var r=n(1),i=n(141),o=n(91),s=n(63),a=n(73),l=n(74),c=n(281),u=function(){function NoMatch(){}return NoMatch}(),p=function(){function InheritedFromParent(e,t,n,r,i){this.parent=e,this.snapshot=t,this.params=n,this.data=r,this.resolve=i}return Object.defineProperty(InheritedFromParent.prototype,"allParams",{get:function(){return this.parent?l.merge(this.parent.allParams,this.params):this.params},enumerable:!0,configurable:!0}),Object.defineProperty(InheritedFromParent.prototype,"allData",{get:function(){return this.parent?l.merge(this.parent.allData,this.data):this.data},enumerable:!0,configurable:!0}),InheritedFromParent.empty=function(e){return new InheritedFromParent(null,e,{},{},new o.InheritedResolve(null,{}))},InheritedFromParent}();t.recognize=recognize;var d=function(){function Recognizer(e,t,n,r){this.rootComponentType=e,this.config=t,this.urlTree=n,this.url=r}return Recognizer.prototype.recognize=function(){try{var e=split(this.urlTree.root,[],[],this.config).segmentGroup,t=this.processSegmentGroup(this.config,e,p.empty(null),s.PRIMARY_OUTLET),n=new o.ActivatedRouteSnapshot([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},s.PRIMARY_OUTLET,this.rootComponentType,null,this.urlTree.root,(-1),o.InheritedResolve.empty),a=new c.TreeNode(n,t);return i.of(new o.RouterStateSnapshot(this.url,a))}catch(l){return new r.Observable(function(e){return e.error(l)})}},Recognizer.prototype.processSegmentGroup=function(e,t,n,r){return 0===t.segments.length&&t.hasChildren()?this.processChildren(e,t,n):this.processSegment(e,t,0,t.segments,n,r)},Recognizer.prototype.processChildren=function(e,t,n){var r=this,i=a.mapChildrenIntoArray(t,function(t,i){return r.processSegmentGroup(e,t,n,i)});return checkOutletNameUniqueness(i),sortActivatedRouteSnapshots(i),i},Recognizer.prototype.processSegment=function(e,t,n,r,i,o){for(var s=0,a=e;s0?l.last(r).parameters:{},f=new o.ActivatedRouteSnapshot(r,Object.freeze(l.merge(i.allParams,h)),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,l.merge(i.allData,getData(e)),a,e.component,e,getSourceSegmentGroup(t),getPathIndexShift(t)+r.length,d);return[new c.TreeNode(f,[])]}var m=match(t,e,r,i.snapshot),y=m.consumedSegments,v=m.parameters,g=m.lastChild,b=r.slice(g),_=getChildConfig(e),S=split(t,y,b,_),w=S.segmentGroup,C=S.slicedSegments,E=new o.ActivatedRouteSnapshot(y,Object.freeze(l.merge(i.allParams,v)),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,l.merge(i.allData,getData(e)),a,e.component,e,getSourceSegmentGroup(t),getPathIndexShift(t)+y.length,d),T=e.component?p.empty(E):new p(i,E,v,getData(e),d);if(0===C.length&&w.hasChildren()){var R=this.processChildren(_,w,T);return[new c.TreeNode(E,R)]}if(0===_.length&&0===C.length)return[new c.TreeNode(E,[])];var R=this.processSegment(_,w,n+g,C,T,s.PRIMARY_OUTLET);return[new c.TreeNode(E,R)]},Recognizer}()},function(e,t,n){"use strict";function resolve(e,t){return resolveNode(e,t._root).map(function(e){return t})}function resolveNode(e,t){if(0===t.children.length)return i.fromPromise(resolveComponent(e,t.value).then(function(e){return t.value._resolvedComponentFactory=e,t.value}));var n=t.children.map(function(t){return resolveNode(e,t).toPromise()});return r.forkJoin(n).map(function(n){return resolveComponent(e,t.value).then(function(e){return t.value._resolvedComponentFactory=e,t.value})})}function resolveComponent(e,t){return t.component&&t._routeConfig&&"string"==typeof t.component?e.resolveComponent(t.component):Promise.resolve(null)}n(140),n(307);var r=n(503),i=n(211);t.resolve=resolve},function(e,t,n){"use strict";function provideLocationStrategy(e,t,n){return void 0===n&&(n={}),n.useHash?new r.HashLocationStrategy(e,t):new r.PathLocationStrategy(e,t)}var r=n(3),i=n(0),o=n(279),s=n(280),a=n(424),l=n(425),c=n(128),u=n(187),p=n(129),d=n(91),h=n(73);t.ROUTER_DIRECTIVES=[l.RouterOutlet,s.RouterLink,s.RouterLinkWithHref,a.RouterLinkActive];({provide:r.LocationStrategy,useClass:r.PathLocationStrategy}),{provide:r.LocationStrategy,useClass:r.HashLocationStrategy};t.ROUTER_PROVIDERS=[r.Location,{provide:h.UrlSerializer,useClass:h.DefaultUrlSerializer},{provide:c.Router,useFactory:o.setupRouter,deps:[i.ApplicationRef,i.ComponentResolver,h.UrlSerializer,p.RouterOutletMap,r.Location,i.Injector,i.NgModuleFactoryLoader,u.ROUTES,o.ROUTER_CONFIGURATION]},p.RouterOutletMap,{provide:d.ActivatedRoute,useFactory:o.rootRoute,deps:[c.Router]},{provide:i.NgModuleFactoryLoader,useClass:i.SystemJsNgModuleLoader},{provide:o.ROUTER_CONFIGURATION,useValue:{enableTracing:!1}}];var f=function(){function RouterModule(){}return RouterModule.forRoot=function(e,n){return{ngModule:RouterModule,providers:[t.ROUTER_PROVIDERS,o.provideRoutes(e),{provide:o.ROUTER_CONFIGURATION,useValue:n?n:{}},{provide:r.LocationStrategy,useFactory:provideLocationStrategy,deps:[r.PlatformLocation,[new i.Inject(r.APP_BASE_HREF),new i.Optional],o.ROUTER_CONFIGURATION]},o.provideRouterInitializer()]}},RouterModule.forChild=function(e){return{ngModule:RouterModule,providers:[o.provideRoutes(e)]}},RouterModule.decorators=[{type:i.NgModule,args:[{declarations:t.ROUTER_DIRECTIVES,exports:t.ROUTER_DIRECTIVES}]}],RouterModule}();t.RouterModule=f,t.provideLocationStrategy=provideLocationStrategy},function(e,t,n){"use strict";function provideRouter(e,t){return void 0===t&&(t={}),[{provide:r.PlatformLocation,useClass:i.BrowserPlatformLocation}].concat(o.provideRouter(e,t))}var r=n(3),i=n(89),o=n(279);t.provideRouter=provideRouter},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=n(0),a=n(3),l=n(282),c=n(426),u=function(){function MdButton(e,t){this._elementRef=e,this._renderer=t,this._isKeyboardFocused=!1,this._isMouseDown=!1,this.disableRipple=!1}return Object.defineProperty(MdButton.prototype,"color",{get:function(){return this._color},set:function(e){this._updateColor(e)},enumerable:!0,configurable:!0}),MdButton.prototype._setMousedown=function(){var e=this;this._isMouseDown=!0,setTimeout(function(){e._isMouseDown=!1},100)},MdButton.prototype._updateColor=function(e){this._setElementColor(this._color,!1),this._setElementColor(e,!0),this._color=e},MdButton.prototype._setElementColor=function(e,t){null!=e&&""!=e&&this._renderer.setElementClass(this._elementRef.nativeElement,"md-"+e,t)},MdButton.prototype._setKeyboardFocus=function(){this._isKeyboardFocused=!this._isMouseDown},MdButton.prototype._removeKeyboardFocus=function(){this._isKeyboardFocused=!1},MdButton.prototype.focus=function(){this._elementRef.nativeElement.focus()},MdButton.prototype.getHostElement=function(){return this._elementRef.nativeElement},MdButton.prototype.isRoundButton=function(){var e=this._elementRef.nativeElement;return e.hasAttribute("md-icon-button")||e.hasAttribute("md-fab")||e.hasAttribute("md-mini-fab")},MdButton.prototype.isRippleEnabled=function(){return!this.disableRipple},i([s.Input(),l.BooleanFieldValue(),o("design:type",Boolean)],MdButton.prototype,"disableRipple",void 0),MdButton=i([s.Component({selector:"button[md-button], button[md-raised-button], button[md-icon-button], button[md-fab], button[md-mini-fab]",inputs:["color"],host:{"[class.md-button-focus]":"_isKeyboardFocused","(mousedown)":"_setMousedown()","(focus)":"_setKeyboardFocus()","(blur)":"_removeKeyboardFocus()"},template:'
',styles:['/** * A collection of mixins and CSS classes that can be used to apply elevation to a material * element. * See: https://www.google.com/design/spec/what-is-material/elevation-shadows.html * Examples: * * * .md-foo { * @include $md-elevation(2); * * &:active { * @include $md-elevation(8); * } * } * *

Some content

* * For an explanation of the design behind how elevation is implemented, see the design doc at * https://goo.gl/Kq0k9Z. */ /** * The css property used for elevation. In most cases this should not be changed. It is exposed * as a variable for abstraction / easy use when needing to reference the property directly, for * example in a will-change rule. */ /** The default duration value for elevation transitions. */ /** The default easing value for elevation transitions. */ /** * Applies the correct css rules to an element to give it the elevation specified by $zValue. * The $zValue must be between 0 and 24. */ /** * Returns a string that can be used as the value for a transition property for elevation. * Calling this function directly is useful in situations where a component needs to transition * more than one property. * * .foo { * transition: md-elevation-transition-property-value(), opacity 100ms ease; * will-change: $md-elevation-property, opacity; * } */ /** * Applies the correct css rules needed to have an element transition between elevations. * This mixin should be applied to elements whose elevation values will change depending on their * context (e.g. when active or disabled). */ /** * This mixin overrides default button styles like the gray background, * the border, and the outline. */ /** Applies a property to an md-button element for each of the supported palettes. */ /** Applies a focus style to an md-button element for each of the supported palettes. */ [md-raised-button], [md-fab], [md-mini-fab], [md-button], [md-icon-button] { box-sizing: border-box; position: relative; background: transparent; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; outline: none; border: none; display: inline-block; white-space: nowrap; text-decoration: none; vertical-align: baseline; font-size: 14px; font-family: Roboto, "Helvetica Neue", sans-serif; font-weight: 500; color: currentColor; text-align: center; margin: 0; min-width: 88px; line-height: 36px; padding: 0 16px; border-radius: 3px; } .md-primary[md-raised-button], .md-primary[md-fab], .md-primary[md-mini-fab], .md-primary[md-button], .md-primary[md-icon-button] { color: #009688; } .md-accent[md-raised-button], .md-accent[md-fab], .md-accent[md-mini-fab], .md-accent[md-button], .md-accent[md-icon-button] { color: #9c27b0; } .md-warn[md-raised-button], .md-warn[md-fab], .md-warn[md-mini-fab], .md-warn[md-button], .md-warn[md-icon-button] { color: #f44336; } .md-primary[disabled][md-raised-button], .md-primary[disabled][md-fab], .md-primary[disabled][md-mini-fab], .md-primary[disabled][md-button], .md-primary[disabled][md-icon-button], .md-accent[disabled][md-raised-button], .md-accent[disabled][md-fab], .md-accent[disabled][md-mini-fab], .md-accent[disabled][md-button], .md-accent[disabled][md-icon-button], .md-warn[disabled][md-raised-button], .md-warn[disabled][md-fab], .md-warn[disabled][md-mini-fab], .md-warn[disabled][md-button], .md-warn[disabled][md-icon-button], [disabled][disabled][md-raised-button], [disabled][disabled][md-fab], [disabled][disabled][md-mini-fab], [disabled][disabled][md-button], [disabled][disabled][md-icon-button] { color: rgba(0, 0, 0, 0.38); } [disabled][md-raised-button], [disabled][md-fab], [disabled][md-mini-fab], [disabled][md-button], [disabled][md-icon-button] { cursor: default; } .md-button-focus[md-raised-button]::after, .md-button-focus[md-fab]::after, .md-button-focus[md-mini-fab]::after, .md-button-focus[md-button]::after, .md-button-focus[md-icon-button]::after { position: absolute; top: 0; left: 0; bottom: 0; right: 0; content: \'\'; background-color: rgba(0, 0, 0, 0.12); border-radius: inherit; pointer-events: none; } .md-button-focus.md-primary[md-raised-button]::after, .md-button-focus.md-primary[md-fab]::after, .md-button-focus.md-primary[md-mini-fab]::after, .md-button-focus.md-primary[md-button]::after, .md-button-focus.md-primary[md-icon-button]::after { background-color: rgba(0, 150, 136, 0.12); } .md-button-focus.md-accent[md-raised-button]::after, .md-button-focus.md-accent[md-fab]::after, .md-button-focus.md-accent[md-mini-fab]::after, .md-button-focus.md-accent[md-button]::after, .md-button-focus.md-accent[md-icon-button]::after { background-color: rgba(156, 39, 176, 0.12); } .md-button-focus.md-warn[md-raised-button]::after, .md-button-focus.md-warn[md-fab]::after, .md-button-focus.md-warn[md-mini-fab]::after, .md-button-focus.md-warn[md-button]::after, .md-button-focus.md-warn[md-icon-button]::after { background-color: rgba(244, 67, 54, 0.12); } [md-raised-button], [md-fab], [md-mini-fab] { box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); background-color: #fafafa; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); -webkit-transition: background 400ms cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1); transition: background 400ms cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1); } .md-primary[md-raised-button], .md-primary[md-fab], .md-primary[md-mini-fab] { color: white; } .md-accent[md-raised-button], .md-accent[md-fab], .md-accent[md-mini-fab] { color: rgba(255, 255, 255, 0.870588); } .md-warn[md-raised-button], .md-warn[md-fab], .md-warn[md-mini-fab] { color: white; } .md-primary[disabled][md-raised-button], .md-primary[disabled][md-fab], .md-primary[disabled][md-mini-fab], .md-accent[disabled][md-raised-button], .md-accent[disabled][md-fab], .md-accent[disabled][md-mini-fab], .md-warn[disabled][md-raised-button], .md-warn[disabled][md-fab], .md-warn[disabled][md-mini-fab], [disabled][disabled][md-raised-button], [disabled][disabled][md-fab], [disabled][disabled][md-mini-fab] { color: rgba(0, 0, 0, 0.38); } .md-primary[md-raised-button], .md-primary[md-fab], .md-primary[md-mini-fab] { background-color: #009688; } .md-accent[md-raised-button], .md-accent[md-fab], .md-accent[md-mini-fab] { background-color: #9c27b0; } .md-warn[md-raised-button], .md-warn[md-fab], .md-warn[md-mini-fab] { background-color: #f44336; } .md-primary[disabled][md-raised-button], .md-primary[disabled][md-fab], .md-primary[disabled][md-mini-fab], .md-accent[disabled][md-raised-button], .md-accent[disabled][md-fab], .md-accent[disabled][md-mini-fab], .md-warn[disabled][md-raised-button], .md-warn[disabled][md-fab], .md-warn[disabled][md-mini-fab], [disabled][disabled][md-raised-button], [disabled][disabled][md-fab], [disabled][disabled][md-mini-fab] { background-color: rgba(0, 0, 0, 0.12); } [md-raised-button]:active, [md-fab]:active, [md-mini-fab]:active { box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12); } [disabled][md-raised-button], [disabled][md-fab], [disabled][md-mini-fab] { box-shadow: none; } [md-button][disabled]:hover.md-primary, [md-button][disabled]:hover.md-accent, [md-button][disabled]:hover.md-warn, [md-button][disabled]:hover:hover { background-color: transparent; } [md-fab] { min-width: 0; border-radius: 50%; background-color: #9c27b0; color: rgba(255, 255, 255, 0.870588); width: 56px; height: 56px; padding: 0; } [md-fab] i, [md-fab] md-icon { padding: 16px 0; } [md-mini-fab] { min-width: 0; border-radius: 50%; background-color: #9c27b0; color: rgba(255, 255, 255, 0.870588); width: 40px; height: 40px; padding: 0; } [md-mini-fab] i, [md-mini-fab] md-icon { padding: 8px 0; } [md-icon-button] { min-width: 0; padding: 0; width: 40px; height: 40px; line-height: 24px; border-radius: 50%; } [md-icon-button] .md-button-wrapper > * { vertical-align: middle; } .md-button-ripple { position: absolute; top: 0; left: 0; bottom: 0; right: 0; } .md-button-ripple-round { border-radius: 50%; z-index: 1; } [md-button]:hover::after, [md-icon-button]:hover::after { position: absolute; top: 0; left: 0; bottom: 0; right: 0; content: \'\'; background-color: rgba(0, 0, 0, 0.12); border-radius: inherit; pointer-events: none; } [md-button]:hover.md-primary::after, [md-icon-button]:hover.md-primary::after { background-color: rgba(0, 150, 136, 0.12); } [md-button]:hover.md-accent::after, [md-icon-button]:hover.md-accent::after { background-color: rgba(156, 39, 176, 0.12); } [md-button]:hover.md-warn::after, [md-icon-button]:hover.md-warn::after { background-color: rgba(244, 67, 54, 0.12); } @media screen and (-ms-high-contrast: active) { .md-raised-button, .md-fab, .md-mini-fab { border: 1px solid #fff; } } '],encapsulation:s.ViewEncapsulation.None,changeDetection:s.ChangeDetectionStrategy.OnPush}),o("design:paramtypes",[s.ElementRef,s.Renderer])],MdButton)}();t.MdButton=u;var p=function(e){function MdAnchor(t,n){e.call(this,t,n),this._disabled=null}return r(MdAnchor,e),Object.defineProperty(MdAnchor.prototype,"tabIndex",{get:function(){return this.disabled?-1:0},enumerable:!0,configurable:!0}),Object.defineProperty(MdAnchor.prototype,"isAriaDisabled",{get:function(){return this.disabled?"true":"false"},enumerable:!0,configurable:!0}),Object.defineProperty(MdAnchor.prototype,"disabled",{get:function(){return this._disabled},set:function(e){this._disabled=null!=e&&0!=e||null},enumerable:!0,configurable:!0}),MdAnchor.prototype._haltDisabledEvents=function(e){this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())},i([s.HostBinding("tabIndex"),o("design:type",Number)],MdAnchor.prototype,"tabIndex",null),i([s.HostBinding("attr.aria-disabled"),o("design:type",String)],MdAnchor.prototype,"isAriaDisabled",null),i([s.HostBinding("attr.disabled"),s.Input("disabled"),o("design:type",Object)],MdAnchor.prototype,"disabled",null),MdAnchor=i([s.Component({selector:"a[md-button], a[md-raised-button], a[md-icon-button], a[md-fab], a[md-mini-fab]",inputs:["color"],host:{"[class.md-button-focus]":"_isKeyboardFocused","(mousedown)":"_setMousedown()","(focus)":"_setKeyboardFocus()","(blur)":"_removeKeyboardFocus()","(click)":"_haltDisabledEvents($event)"},template:'
',styles:['/** * A collection of mixins and CSS classes that can be used to apply elevation to a material * element. * See: https://www.google.com/design/spec/what-is-material/elevation-shadows.html * Examples: * * * .md-foo { * @include $md-elevation(2); * * &:active { * @include $md-elevation(8); * } * } * *

Some content

* * For an explanation of the design behind how elevation is implemented, see the design doc at * https://goo.gl/Kq0k9Z. */ /** * The css property used for elevation. In most cases this should not be changed. It is exposed * as a variable for abstraction / easy use when needing to reference the property directly, for * example in a will-change rule. */ /** The default duration value for elevation transitions. */ /** The default easing value for elevation transitions. */ /** * Applies the correct css rules to an element to give it the elevation specified by $zValue. * The $zValue must be between 0 and 24. */ /** * Returns a string that can be used as the value for a transition property for elevation. * Calling this function directly is useful in situations where a component needs to transition * more than one property. * * .foo { * transition: md-elevation-transition-property-value(), opacity 100ms ease; * will-change: $md-elevation-property, opacity; * } */ /** * Applies the correct css rules needed to have an element transition between elevations. * This mixin should be applied to elements whose elevation values will change depending on their * context (e.g. when active or disabled). */ /** * This mixin overrides default button styles like the gray background, * the border, and the outline. */ /** Applies a property to an md-button element for each of the supported palettes. */ /** Applies a focus style to an md-button element for each of the supported palettes. */ [md-raised-button], [md-fab], [md-mini-fab], [md-button], [md-icon-button] { box-sizing: border-box; position: relative; background: transparent; cursor: pointer; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; outline: none; border: none; display: inline-block; white-space: nowrap; text-decoration: none; vertical-align: baseline; font-size: 14px; font-family: Roboto, "Helvetica Neue", sans-serif; font-weight: 500; color: currentColor; text-align: center; margin: 0; min-width: 88px; line-height: 36px; padding: 0 16px; border-radius: 3px; } .md-primary[md-raised-button], .md-primary[md-fab], .md-primary[md-mini-fab], .md-primary[md-button], .md-primary[md-icon-button] { color: #009688; } .md-accent[md-raised-button], .md-accent[md-fab], .md-accent[md-mini-fab], .md-accent[md-button], .md-accent[md-icon-button] { color: #9c27b0; } .md-warn[md-raised-button], .md-warn[md-fab], .md-warn[md-mini-fab], .md-warn[md-button], .md-warn[md-icon-button] { color: #f44336; } .md-primary[disabled][md-raised-button], .md-primary[disabled][md-fab], .md-primary[disabled][md-mini-fab], .md-primary[disabled][md-button], .md-primary[disabled][md-icon-button], .md-accent[disabled][md-raised-button], .md-accent[disabled][md-fab], .md-accent[disabled][md-mini-fab], .md-accent[disabled][md-button], .md-accent[disabled][md-icon-button], .md-warn[disabled][md-raised-button], .md-warn[disabled][md-fab], .md-warn[disabled][md-mini-fab], .md-warn[disabled][md-button], .md-warn[disabled][md-icon-button], [disabled][disabled][md-raised-button], [disabled][disabled][md-fab], [disabled][disabled][md-mini-fab], [disabled][disabled][md-button], [disabled][disabled][md-icon-button] { color: rgba(0, 0, 0, 0.38); } [disabled][md-raised-button], [disabled][md-fab], [disabled][md-mini-fab], [disabled][md-button], [disabled][md-icon-button] { cursor: default; } .md-button-focus[md-raised-button]::after, .md-button-focus[md-fab]::after, .md-button-focus[md-mini-fab]::after, .md-button-focus[md-button]::after, .md-button-focus[md-icon-button]::after { position: absolute; top: 0; left: 0; bottom: 0; right: 0; content: \'\'; background-color: rgba(0, 0, 0, 0.12); border-radius: inherit; pointer-events: none; } .md-button-focus.md-primary[md-raised-button]::after, .md-button-focus.md-primary[md-fab]::after, .md-button-focus.md-primary[md-mini-fab]::after, .md-button-focus.md-primary[md-button]::after, .md-button-focus.md-primary[md-icon-button]::after { background-color: rgba(0, 150, 136, 0.12); } .md-button-focus.md-accent[md-raised-button]::after, .md-button-focus.md-accent[md-fab]::after, .md-button-focus.md-accent[md-mini-fab]::after, .md-button-focus.md-accent[md-button]::after, .md-button-focus.md-accent[md-icon-button]::after { background-color: rgba(156, 39, 176, 0.12); } .md-button-focus.md-warn[md-raised-button]::after, .md-button-focus.md-warn[md-fab]::after, .md-button-focus.md-warn[md-mini-fab]::after, .md-button-focus.md-warn[md-button]::after, .md-button-focus.md-warn[md-icon-button]::after { background-color: rgba(244, 67, 54, 0.12); } [md-raised-button], [md-fab], [md-mini-fab] { box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); background-color: #fafafa; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); -webkit-transition: background 400ms cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1); transition: background 400ms cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1); } .md-primary[md-raised-button], .md-primary[md-fab], .md-primary[md-mini-fab] { color: white; } .md-accent[md-raised-button], .md-accent[md-fab], .md-accent[md-mini-fab] { color: rgba(255, 255, 255, 0.870588); } .md-warn[md-raised-button], .md-warn[md-fab], .md-warn[md-mini-fab] { color: white; } .md-primary[disabled][md-raised-button], .md-primary[disabled][md-fab], .md-primary[disabled][md-mini-fab], .md-accent[disabled][md-raised-button], .md-accent[disabled][md-fab], .md-accent[disabled][md-mini-fab], .md-warn[disabled][md-raised-button], .md-warn[disabled][md-fab], .md-warn[disabled][md-mini-fab], [disabled][disabled][md-raised-button], [disabled][disabled][md-fab], [disabled][disabled][md-mini-fab] { color: rgba(0, 0, 0, 0.38); } .md-primary[md-raised-button], .md-primary[md-fab], .md-primary[md-mini-fab] { background-color: #009688; } .md-accent[md-raised-button], .md-accent[md-fab], .md-accent[md-mini-fab] { background-color: #9c27b0; } .md-warn[md-raised-button], .md-warn[md-fab], .md-warn[md-mini-fab] { background-color: #f44336; } .md-primary[disabled][md-raised-button], .md-primary[disabled][md-fab], .md-primary[disabled][md-mini-fab], .md-accent[disabled][md-raised-button], .md-accent[disabled][md-fab], .md-accent[disabled][md-mini-fab], .md-warn[disabled][md-raised-button], .md-warn[disabled][md-fab], .md-warn[disabled][md-mini-fab], [disabled][disabled][md-raised-button], [disabled][disabled][md-fab], [disabled][disabled][md-mini-fab] { background-color: rgba(0, 0, 0, 0.12); } [md-raised-button]:active, [md-fab]:active, [md-mini-fab]:active { box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12); } [disabled][md-raised-button], [disabled][md-fab], [disabled][md-mini-fab] { box-shadow: none; } [md-button][disabled]:hover.md-primary, [md-button][disabled]:hover.md-accent, [md-button][disabled]:hover.md-warn, [md-button][disabled]:hover:hover { background-color: transparent; } [md-fab] { min-width: 0; border-radius: 50%; background-color: #9c27b0; color: rgba(255, 255, 255, 0.870588); width: 56px; height: 56px; padding: 0; } [md-fab] i, [md-fab] md-icon { padding: 16px 0; } [md-mini-fab] { min-width: 0; border-radius: 50%; background-color: #9c27b0; color: rgba(255, 255, 255, 0.870588); width: 40px; height: 40px; padding: 0; } [md-mini-fab] i, [md-mini-fab] md-icon { padding: 8px 0; } [md-icon-button] { min-width: 0; padding: 0; width: 40px; height: 40px; line-height: 24px; border-radius: 50%; } [md-icon-button] .md-button-wrapper > * { vertical-align: middle; } .md-button-ripple { position: absolute; top: 0; left: 0; bottom: 0; right: 0; } .md-button-ripple-round { border-radius: 50%; z-index: 1; } [md-button]:hover::after, [md-icon-button]:hover::after { position: absolute; top: 0; left: 0; bottom: 0; right: 0; content: \'\'; background-color: rgba(0, 0, 0, 0.12); border-radius: inherit; pointer-events: none; } [md-button]:hover.md-primary::after, [md-icon-button]:hover.md-primary::after { background-color: rgba(0, 150, 136, 0.12); } [md-button]:hover.md-accent::after, [md-icon-button]:hover.md-accent::after { background-color: rgba(156, 39, 176, 0.12); } [md-button]:hover.md-warn::after, [md-icon-button]:hover.md-warn::after { background-color: rgba(244, 67, 54, 0.12); } @media screen and (-ms-high-contrast: active) { .md-raised-button, .md-fab, .md-mini-fab { border: 1px solid #fff; } } '], encapsulation:s.ViewEncapsulation.None}),o("design:paramtypes",[s.ElementRef,s.Renderer])],MdAnchor)}(u);t.MdAnchor=p,t.MD_BUTTON_DIRECTIVES=[u,p];var d=function(){function MdButtonModule(){}return MdButtonModule=i([s.NgModule({imports:[a.CommonModule,c.MdRippleModule],exports:t.MD_BUTTON_DIRECTIVES,declarations:t.MD_BUTTON_DIRECTIVES}),o("design:paramtypes",[])],MdButtonModule)}();t.MdButtonModule=d},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=n(0),s=function(){function MdCard(){}return MdCard=r([o.Component({selector:"md-card",template:'
',styles:['/** * A collection of mixins and CSS classes that can be used to apply elevation to a material * element. * See: https://www.google.com/design/spec/what-is-material/elevation-shadows.html * Examples: * * * .md-foo { * @include $md-elevation(2); * * &:active { * @include $md-elevation(8); * } * } * *

Some content

* * For an explanation of the design behind how elevation is implemented, see the design doc at * https://goo.gl/Kq0k9Z. */ /** * The css property used for elevation. In most cases this should not be changed. It is exposed * as a variable for abstraction / easy use when needing to reference the property directly, for * example in a will-change rule. */ /** The default duration value for elevation transitions. */ /** The default easing value for elevation transitions. */ /** * Applies the correct css rules to an element to give it the elevation specified by $zValue. * The $zValue must be between 0 and 24. */ /** * Returns a string that can be used as the value for a transition property for elevation. * Calling this function directly is useful in situations where a component needs to transition * more than one property. * * .foo { * transition: md-elevation-transition-property-value(), opacity 100ms ease; * will-change: $md-elevation-property, opacity; * } */ /** * Applies the correct css rules needed to have an element transition between elevations. * This mixin should be applied to elements whose elevation values will change depending on their * context (e.g. when active or disabled). */ md-card { box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12); -webkit-transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1); transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1); will-change: box-shadow; display: block; position: relative; padding: 24px; border-radius: 2px; font-family: Roboto, "Helvetica Neue", sans-serif; background: white; color: black; } md-card:hover { box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12); } .md-card-flat { box-shadow: none; } md-card-title, md-card-subtitle, md-card-content, md-card-actions { display: block; margin-bottom: 16px; } md-card-title { font-size: 24px; font-weight: 400; } md-card-subtitle { font-size: 14px; color: rgba(0, 0, 0, 0.54); } md-card-content { font-size: 14px; } md-card-actions { margin-left: -16px; margin-right: -16px; padding: 8px 0; } md-card-actions[align=\'end\'] { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end; } [md-card-image] { width: calc(100% + 48px); margin: 0 -24px 16px -24px; } [md-card-xl-image] { width: 240px; height: 240px; margin: -8px; } md-card-footer { position: absolute; bottom: 0; } md-card-actions [md-button], md-card-actions [md-raised-button] { margin: 0 4px; } /* HEADER STYLES */ md-card-header { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; height: 40px; margin: -8px 0 16px 0; } .md-card-header-text { height: 40px; margin: 0 8px; } [md-card-avatar] { height: 40px; width: 40px; border-radius: 50%; } md-card-header md-card-title { font-size: 14px; } /* TITLE-GROUP STYLES */ [md-card-sm-image], [md-card-md-image], [md-card-lg-image] { margin: -8px 0; } md-card-title-group { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-pack: justify; -ms-flex-pack: justify; justify-content: space-between; margin: 0 -8px; } [md-card-sm-image] { width: 80px; height: 80px; } [md-card-md-image] { width: 112px; height: 112px; } [md-card-lg-image] { width: 152px; height: 152px; } /* MEDIA QUERIES */ @media (max-width: 600px) { md-card { padding: 24px 16px; } [md-card-image] { width: calc(100% + 32px); margin: 16px -16px; } md-card-title-group { margin: 0; } [md-card-xl-image] { margin-left: 0; margin-right: 0; } md-card-header { margin: -8px 0 0 0; } } /* FIRST/LAST CHILD ADJUSTMENTS */ .md-card > :first-child, md-card-content > :first-child { margin-top: 0; } .md-card > :last-child, md-card-content > :last-child { margin-bottom: 0; } [md-card-image]:first-child { margin-top: -24px; } .md-card > md-card-actions:last-child { margin-bottom: -16px; padding-bottom: 0; } md-card-actions [md-button]:first-child, md-card-actions [md-raised-button]:first-child { margin-left: 0; margin-right: 0; } md-card-title:not(:first-child), md-card-subtitle:not(:first-child) { margin-top: -4px; } md-card-header md-card-subtitle:not(:first-child) { margin-top: -8px; } .md-card > [md-card-xl-image]:first-child { margin-top: -8px; } .md-card > [md-card-xl-image]:last-child { margin-bottom: -8px; } '],encapsulation:o.ViewEncapsulation.None,changeDetection:o.ChangeDetectionStrategy.OnPush}),i("design:paramtypes",[])],MdCard)}();t.MdCard=s;var a=function(){function MdCardHeader(){}return MdCardHeader=r([o.Component({selector:"md-card-header",template:'
',encapsulation:o.ViewEncapsulation.None,changeDetection:o.ChangeDetectionStrategy.OnPush}),i("design:paramtypes",[])],MdCardHeader)}();t.MdCardHeader=a;var l=function(){function MdCardTitleGroup(){}return MdCardTitleGroup=r([o.Component({selector:"md-card-title-group",template:'
',encapsulation:o.ViewEncapsulation.None,changeDetection:o.ChangeDetectionStrategy.OnPush}),i("design:paramtypes",[])],MdCardTitleGroup)}();t.MdCardTitleGroup=l,t.MD_CARD_DIRECTIVES=[s,a,l];var c=function(){function MdCardModule(){}return MdCardModule=r([o.NgModule({exports:t.MD_CARD_DIRECTIVES,declarations:t.MD_CARD_DIRECTIVES}),i("design:paramtypes",[])],MdCardModule)}();t.MdCardModule=c},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=n(0),s=n(22),a=0;t.MD_CHECKBOX_CONTROL_VALUE_ACCESSOR={provide:s.NG_VALUE_ACCESSOR,useExisting:o.forwardRef(function(){return u}),multi:!0};var l;!function(e){e[e.Init=0]="Init",e[e.Checked=1]="Checked",e[e.Unchecked=2]="Unchecked",e[e.Indeterminate=3]="Indeterminate"}(l||(l={}));var c=function(){function MdCheckboxChange(){}return MdCheckboxChange}();t.MdCheckboxChange=c;var u=function(){function MdCheckbox(e,t){this._renderer=e,this._elementRef=t,this.ariaLabel="",this.ariaLabelledby=null,this.id="md-checkbox-"+ ++a,this.align="start",this.disabled=!1,this.tabindex=0,this.name=null,this.change=new o.EventEmitter,this.onTouched=function(){},this._currentAnimationClass="",this._currentCheckState=l.Init,this._checked=!1,this._indeterminate=!1,this._controlValueAccessorChangeFn=function(e){},this.hasFocus=!1}return Object.defineProperty(MdCheckbox.prototype,"inputId",{get:function(){return"input-"+this.id},enumerable:!0,configurable:!0}),Object.defineProperty(MdCheckbox.prototype,"checked",{get:function(){return this._checked},set:function(e){e!=this.checked&&(this._indeterminate=!1,this._checked=e,this._transitionCheckState(this._checked?l.Checked:l.Unchecked))},enumerable:!0,configurable:!0}),Object.defineProperty(MdCheckbox.prototype,"indeterminate",{get:function(){return this._indeterminate},set:function(e){this._indeterminate=e,this._indeterminate?this._transitionCheckState(l.Indeterminate):this._transitionCheckState(this.checked?l.Checked:l.Unchecked)},enumerable:!0,configurable:!0}),MdCheckbox.prototype.writeValue=function(e){this.checked=!!e},MdCheckbox.prototype.registerOnChange=function(e){this._controlValueAccessorChangeFn=e},MdCheckbox.prototype.registerOnTouched=function(e){this.onTouched=e},MdCheckbox.prototype._transitionCheckState=function(e){var t=this._currentCheckState,n=this._renderer,r=this._elementRef;t!==e&&(this._currentAnimationClass.length>0&&n.setElementClass(r.nativeElement,this._currentAnimationClass,!1),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0&&n.setElementClass(r.nativeElement,this._currentAnimationClass,!0))},MdCheckbox.prototype._emitChangeEvent=function(){var e=new c;e.source=this,e.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(e)},MdCheckbox.prototype._onInputFocus=function(){this.hasFocus=!0},MdCheckbox.prototype._onInputBlur=function(){this.hasFocus=!1,this.onTouched()},MdCheckbox.prototype.toggle=function(){this.checked=!this.checked},MdCheckbox.prototype._onInteractionEvent=function(e){e.stopPropagation(),this.disabled||(this.toggle(),this._emitChangeEvent())},MdCheckbox.prototype._onInputClick=function(e){e.stopPropagation()},MdCheckbox.prototype._getAnimationClassForCheckStateTransition=function(e,t){var n;switch(e){case l.Init:if(t!==l.Checked)return"";n="unchecked-checked";break;case l.Unchecked:n=t===l.Checked?"unchecked-checked":"unchecked-indeterminate";break;case l.Checked:n=t===l.Unchecked?"checked-unchecked":"checked-indeterminate";break;case l.Indeterminate:n=t===l.Checked?"indeterminate-checked":"indeterminate-unchecked"}return"md-checkbox-anim-"+n},r([o.Input("aria-label"),i("design:type",String)],MdCheckbox.prototype,"ariaLabel",void 0),r([o.Input("aria-labelledby"),i("design:type",String)],MdCheckbox.prototype,"ariaLabelledby",void 0),r([o.Input(),i("design:type",String)],MdCheckbox.prototype,"id",void 0),r([o.Input(),i("design:type",Object)],MdCheckbox.prototype,"align",void 0),r([o.Input(),i("design:type",Boolean)],MdCheckbox.prototype,"disabled",void 0),r([o.Input(),i("design:type",Number)],MdCheckbox.prototype,"tabindex",void 0),r([o.Input(),i("design:type",String)],MdCheckbox.prototype,"name",void 0),r([o.Output(),i("design:type",o.EventEmitter)],MdCheckbox.prototype,"change",void 0),r([o.Input(),i("design:type",Object)],MdCheckbox.prototype,"checked",null),r([o.Input(),i("design:type",Object)],MdCheckbox.prototype,"indeterminate",null),MdCheckbox=r([o.Component({selector:"md-checkbox",template:' ',styles:['/** * Mixin that creates a new stacking context. * see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context */ /** * This mixin hides an element visually. * That means it\'s still accessible for screen-readers but not visible in view. */ /** * Forces an element to grow to fit floated contents; used as as an alternative to * `overflow: hidden;` because it doesn\'t cut off contents. */ /** * A mixin, which generates temporary ink ripple on a given component. * When $bindToParent is set to true, it will check for the focused class on the same selector as you included * that mixin. * It is also possible to specify the color palette of the temporary ripple. By default it uses the * accent palette for its background. */ /** The width/height of the checkbox element. */ /** The width of the line used to draw the checkmark / mixedmark. */ /** The width of the checkbox border shown when the checkbox is unchecked. */ /** The color of the checkbox border. */ /** The color of the checkbox\'s checkmark / mixedmark. */ /** The color that is used as the checkbox background when it is checked. */ /** The base duration used for the majority of transitions for the checkbox. */ /** The amount of spacing between the checkbox and its label. */ /** * Fades in the background of the checkbox when it goes from unchecked -> {checked,indeterminate}. */ @-webkit-keyframes md-checkbox-fade-in-background { 0% { opacity: 0; } 50% { opacity: 1; } } @keyframes md-checkbox-fade-in-background { 0% { opacity: 0; } 50% { opacity: 1; } } /** * Fades out the background of the checkbox when it goes from {checked,indeterminate} -> unchecked. */ @-webkit-keyframes md-checkbox-fade-out-background { 0%, 50% { opacity: 1; } 100% { opacity: 0; } } @keyframes md-checkbox-fade-out-background { 0%, 50% { opacity: 1; } 100% { opacity: 0; } } /** * "Draws" in the checkmark when the checkbox goes from unchecked -> checked. */ @-webkit-keyframes md-checkbox-unchecked-checked-checkmark-path { 0%, 50% { stroke-dashoffset: 22.91026; } 50% { -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 0.1); animation-timing-function: cubic-bezier(0, 0, 0.2, 0.1); } 100% { stroke-dashoffset: 0; } } @keyframes md-checkbox-unchecked-checked-checkmark-path { 0%, 50% { stroke-dashoffset: 22.91026; } 50% { -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 0.1); animation-timing-function: cubic-bezier(0, 0, 0.2, 0.1); } 100% { stroke-dashoffset: 0; } } /** * Horizontally expands the mixedmark when the checkbox goes from unchecked -> indeterminate. */ @-webkit-keyframes md-checkbox-unchecked-indeterminate-mixedmark { 0%, 68.2% { -webkit-transform: scaleX(0); transform: scaleX(0); } 68.2% { -webkit-animation-timing-function: cubic-bezier(0, 0, 0, 1); animation-timing-function: cubic-bezier(0, 0, 0, 1); } 100% { -webkit-transform: scaleX(1); transform: scaleX(1); } } @keyframes md-checkbox-unchecked-indeterminate-mixedmark { 0%, 68.2% { -webkit-transform: scaleX(0); transform: scaleX(0); } 68.2% { -webkit-animation-timing-function: cubic-bezier(0, 0, 0, 1); animation-timing-function: cubic-bezier(0, 0, 0, 1); } 100% { -webkit-transform: scaleX(1); transform: scaleX(1); } } /** * "Erases" the checkmark when the checkbox goes from checked -> unchecked. */ @-webkit-keyframes md-checkbox-checked-unchecked-checkmark-path { from { -webkit-animation-timing-function: cubic-bezier(0.4, 0, 1, 1); animation-timing-function: cubic-bezier(0.4, 0, 1, 1); stroke-dashoffset: 0; } to { stroke-dashoffset: -22.91026; } } @keyframes md-checkbox-checked-unchecked-checkmark-path { from { -webkit-animation-timing-function: cubic-bezier(0.4, 0, 1, 1); animation-timing-function: cubic-bezier(0.4, 0, 1, 1); stroke-dashoffset: 0; } to { stroke-dashoffset: -22.91026; } } /** * Rotates and fades out the checkmark when the checkbox goes from checked -> indeterminate. This * animation helps provide the illusion of the checkmark "morphing" into the mixedmark. */ @-webkit-keyframes md-checkbox-checked-indeterminate-checkmark { from { -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 0.1); animation-timing-function: cubic-bezier(0, 0, 0.2, 0.1); opacity: 1; -webkit-transform: rotate(0deg); transform: rotate(0deg); } to { opacity: 0; -webkit-transform: rotate(45deg); transform: rotate(45deg); } } @keyframes md-checkbox-checked-indeterminate-checkmark { from { -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 0.1); animation-timing-function: cubic-bezier(0, 0, 0.2, 0.1); opacity: 1; -webkit-transform: rotate(0deg); transform: rotate(0deg); } to { opacity: 0; -webkit-transform: rotate(45deg); transform: rotate(45deg); } } /** * Rotates and fades the checkmark back into position when the checkbox goes from indeterminate -> * checked. This animation helps provide the illusion that the mixedmark is "morphing" into the * checkmark. */ @-webkit-keyframes md-checkbox-indeterminate-checked-checkmark { from { -webkit-animation-timing-function: cubic-bezier(0.14, 0, 0, 1); animation-timing-function: cubic-bezier(0.14, 0, 0, 1); opacity: 0; -webkit-transform: rotate(45deg); transform: rotate(45deg); } to { opacity: 1; -webkit-transform: rotate(360deg); transform: rotate(360deg); } } @keyframes md-checkbox-indeterminate-checked-checkmark { from { -webkit-animation-timing-function: cubic-bezier(0.14, 0, 0, 1); animation-timing-function: cubic-bezier(0.14, 0, 0, 1); opacity: 0; -webkit-transform: rotate(45deg); transform: rotate(45deg); } to { opacity: 1; -webkit-transform: rotate(360deg); transform: rotate(360deg); } } /** * Rotates and fades in the mixedmark when the checkbox goes from checked -> indeterminate. This * animation, similar to md-checkbox-checked-indeterminate-checkmark, helps provide an illusion * of "morphing" from checkmark -> mixedmark. */ @-webkit-keyframes md-checkbox-checked-indeterminate-mixedmark { from { -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 0.1); animation-timing-function: cubic-bezier(0, 0, 0.2, 0.1); opacity: 0; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); } to { opacity: 1; -webkit-transform: rotate(0deg); transform: rotate(0deg); } } @keyframes md-checkbox-checked-indeterminate-mixedmark { from { -webkit-animation-timing-function: cubic-bezier(0, 0, 0.2, 0.1); animation-timing-function: cubic-bezier(0, 0, 0.2, 0.1); opacity: 0; -webkit-transform: rotate(-45deg); transform: rotate(-45deg); } to { opacity: 1; -webkit-transform: rotate(0deg); transform: rotate(0deg); } } /** * Rotates and fades out the mixedmark when the checkbox goes from indeterminate -> checked. This * animation, similar to md-checkbox-indeterminate-checked-checkmark, helps provide an illusion * of "morphing" from mixedmark -> checkmark. */ @-webkit-keyframes md-checkbox-indeterminate-checked-mixedmark { from { -webkit-animation-timing-function: cubic-bezier(0.14, 0, 0, 1); animation-timing-function: cubic-bezier(0.14, 0, 0, 1); opacity: 1; -webkit-transform: rotate(0deg); transform: rotate(0deg); } to { opacity: 0; -webkit-transform: rotate(315deg); transform: rotate(315deg); } } @keyframes md-checkbox-indeterminate-checked-mixedmark { from { -webkit-animation-timing-function: cubic-bezier(0.14, 0, 0, 1); animation-timing-function: cubic-bezier(0.14, 0, 0, 1); opacity: 1; -webkit-transform: rotate(0deg); transform: rotate(0deg); } to { opacity: 0; -webkit-transform: rotate(315deg); transform: rotate(315deg); } } /** * Horizontally collapses and fades out the mixedmark when the checkbox goes from indeterminate -> * unchecked. */ @-webkit-keyframes md-checkbox-indeterminate-unchecked-mixedmark { 0% { -webkit-animation-timing-function: linear; animation-timing-function: linear; opacity: 1; -webkit-transform: scaleX(1); transform: scaleX(1); } 32.8%, 100% { opacity: 0; -webkit-transform: scaleX(0); transform: scaleX(0); } } @keyframes md-checkbox-indeterminate-unchecked-mixedmark { 0% { -webkit-animation-timing-function: linear; animation-timing-function: linear; opacity: 1; -webkit-transform: scaleX(1); transform: scaleX(1); } 32.8%, 100% { opacity: 0; -webkit-transform: scaleX(0); transform: scaleX(0); } } /** * Applied to elements that cover the checkbox\'s entire inner container. */ .md-checkbox-frame, .md-checkbox-background, .md-checkbox-checkmark { bottom: 0; left: 0; position: absolute; right: 0; top: 0; } /** * Applied to elements that are considered "marks" within the checkbox, e.g. the checkmark and * the mixedmark. */ .md-checkbox-checkmark, .md-checkbox-mixedmark { width: calc(100% - 4px); } /** * Applied to elements that appear to make up the outer box of the checkmark, such as the frame * that contains the border and the actual background element that contains the marks. */ .md-checkbox-frame, .md-checkbox-background { border-radius: 2px; box-sizing: border-box; pointer-events: none; } md-checkbox { cursor: pointer; } .md-checkbox-layout { cursor: inherit; -webkit-box-align: baseline; -ms-flex-align: baseline; align-items: baseline; display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; } .md-checkbox-inner-container { display: inline-block; height: 20px; line-height: 0; margin: auto; margin-right: 8px; -webkit-box-ordinal-group: 1; -ms-flex-order: 0; order: 0; position: relative; vertical-align: middle; white-space: nowrap; width: 20px; } [dir=\'rtl\'] .md-checkbox-inner-container { margin-left: 8px; margin-right: auto; } .md-checkbox-layout .md-checkbox-label { line-height: 24px; } .md-checkbox-frame { background-color: transparent; border: 2px solid rgba(0, 0, 0, 0.54); -webkit-transition: border-color 90ms cubic-bezier(0, 0, 0.2, 0.1); transition: border-color 90ms cubic-bezier(0, 0, 0.2, 0.1); will-change: border-color; } .md-checkbox-background { -webkit-box-align: center; -ms-flex-align: center; align-items: center; display: -webkit-inline-box; display: -ms-inline-flexbox; display: inline-flex; -webkit-box-pack: center; -ms-flex-pack: center; justify-content: center; -webkit-transition: background-color 90ms cubic-bezier(0, 0, 0.2, 0.1), opacity 90ms cubic-bezier(0, 0, 0.2, 0.1); transition: background-color 90ms cubic-bezier(0, 0, 0.2, 0.1), opacity 90ms cubic-bezier(0, 0, 0.2, 0.1); will-change: background-color, opacity; } .md-checkbox-checkmark { fill: #fafafa; width: 100%; } .md-checkbox-checkmark-path { stroke: #fafafa !important; stroke-dashoffset: 22.91026; stroke-dasharray: 22.91026; stroke-width: 2.66667px; } .md-checkbox-mixedmark { background-color: #fafafa; height: 2px; opacity: 0; -webkit-transform: scaleX(0) rotate(0deg); transform: scaleX(0) rotate(0deg); } .md-checkbox-align-end .md-checkbox-inner-container { -webkit-box-ordinal-group: 2; -ms-flex-order: 1; order: 1; margin-left: 8px; margin-right: auto; } [dir=\'rtl\'] .md-checkbox-align-end .md-checkbox-inner-container { margin-left: auto; margin-right: 8px; } .md-checkbox-checked .md-checkbox-checkmark { opacity: 1; } .md-checkbox-checked .md-checkbox-checkmark-path { stroke-dashoffset: 0; } .md-checkbox-checked .md-checkbox-mixedmark { -webkit-transform: scaleX(1) rotate(-45deg); transform: scaleX(1) rotate(-45deg); } .md-checkbox-checked .md-checkbox-background { background-color: #9c27b0; } .md-checkbox-indeterminate .md-checkbox-background { background-color: #9c27b0; } .md-checkbox-indeterminate .md-checkbox-checkmark { opacity: 0; -webkit-transform: rotate(45deg); transform: rotate(45deg); } .md-checkbox-indeterminate .md-checkbox-checkmark-path { stroke-dashoffset: 0; } .md-checkbox-indeterminate .md-checkbox-mixedmark { opacity: 1; -webkit-transform: scaleX(1) rotate(0deg); transform: scaleX(1) rotate(0deg); } .md-checkbox-unchecked .md-checkbox-background { background-color: transparent; } .md-checkbox-disabled { cursor: default; } .md-checkbox-disabled.md-checkbox-checked .md-checkbox-background, .md-checkbox-disabled.md-checkbox-indeterminate .md-checkbox-background { background-color: #b0b0b0; } .md-checkbox-disabled:not(.md-checkbox-checked) .md-checkbox-frame { border-color: #b0b0b0; } .md-checkbox-anim-unchecked-checked .md-checkbox-background { -webkit-animation: 180ms linear 0ms md-checkbox-fade-in-background; animation: 180ms linear 0ms md-checkbox-fade-in-background; } .md-checkbox-anim-unchecked-checked .md-checkbox-checkmark-path { -webkit-animation: 180ms linear 0ms md-checkbox-unchecked-checked-checkmark-path; animation: 180ms linear 0ms md-checkbox-unchecked-checked-checkmark-path; } .md-checkbox-anim-unchecked-indeterminate .md-checkbox-background { -webkit-animation: 180ms linear 0ms md-checkbox-fade-in-background; animation: 180ms linear 0ms md-checkbox-fade-in-background; } .md-checkbox-anim-unchecked-indeterminate .md-checkbox-mixedmark { -webkit-animation: 90ms linear 0ms md-checkbox-unchecked-indeterminate-mixedmark; animation: 90ms linear 0ms md-checkbox-unchecked-indeterminate-mixedmark; } .md-checkbox-anim-checked-unchecked .md-checkbox-background { -webkit-animation: 180ms linear 0ms md-checkbox-fade-out-background; animation: 180ms linear 0ms md-checkbox-fade-out-background; } .md-checkbox-anim-checked-unchecked .md-checkbox-checkmark-path { -webkit-animation: 90ms linear 0ms md-checkbox-checked-unchecked-checkmark-path; animation: 90ms linear 0ms md-checkbox-checked-unchecked-checkmark-path; } .md-checkbox-anim-checked-indeterminate .md-checkbox-checkmark { -webkit-animation: 90ms linear 0ms md-checkbox-checked-indeterminate-checkmark; animation: 90ms linear 0ms md-checkbox-checked-indeterminate-checkmark; } .md-checkbox-anim-checked-indeterminate .md-checkbox-mixedmark { -webkit-animation: 90ms linear 0ms md-checkbox-checked-indeterminate-mixedmark; animation: 90ms linear 0ms md-checkbox-checked-indeterminate-mixedmark; } .md-checkbox-anim-indeterminate-checked .md-checkbox-checkmark { -webkit-animation: 500ms linear 0ms md-checkbox-indeterminate-checked-checkmark; animation: 500ms linear 0ms md-checkbox-indeterminate-checked-checkmark; } .md-checkbox-anim-indeterminate-checked .md-checkbox-mixedmark { -webkit-animation: 500ms linear 0ms md-checkbox-indeterminate-checked-mixedmark; animation: 500ms linear 0ms md-checkbox-indeterminate-checked-mixedmark; } .md-checkbox-anim-indeterminate-unchecked .md-checkbox-background { -webkit-animation: 180ms linear 0ms md-checkbox-fade-out-background; animation: 180ms linear 0ms md-checkbox-fade-out-background; } .md-checkbox-anim-indeterminate-unchecked .md-checkbox-mixedmark { -webkit-animation: 300ms linear 0ms md-checkbox-indeterminate-unchecked-mixedmark; animation: 300ms linear 0ms md-checkbox-indeterminate-unchecked-mixedmark; } .md-checkbox-input { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; text-transform: none; width: 1px; } .md-ink-ripple { border-radius: 50%; opacity: 0; height: 48px; left: 50%; overflow: hidden; pointer-events: none; position: absolute; top: 50%; -webkit-transform: translate(-50%, -50%); transform: translate(-50%, -50%); -webkit-transition: opacity ease 280ms, background-color ease 280ms; transition: opacity ease 280ms, background-color ease 280ms; width: 48px; } .md-checkbox-focused .md-ink-ripple { opacity: 1; background-color: rgba(156, 39, 176, 0.26); } .md-checkbox-disabled .md-ink-ripple { background-color: #000; } '],host:{"[class.md-checkbox-indeterminate]":"indeterminate","[class.md-checkbox-checked]":"checked","[class.md-checkbox-disabled]":"disabled","[class.md-checkbox-align-end]":'align == "end"',"[class.md-checkbox-focused]":"hasFocus"},providers:[t.MD_CHECKBOX_CONTROL_VALUE_ACCESSOR],encapsulation:o.ViewEncapsulation.None,changeDetection:o.ChangeDetectionStrategy.OnPush}),i("design:paramtypes",[o.Renderer,o.ElementRef])],MdCheckbox)}();t.MdCheckbox=u,t.MD_CHECKBOX_DIRECTIVES=[u];var p=function(){function MdCheckboxModule(){}return MdCheckboxModule=r([o.NgModule({exports:t.MD_CHECKBOX_DIRECTIVES,declarations:t.MD_CHECKBOX_DIRECTIVES}),i("design:paramtypes",[])],MdCheckboxModule)}();t.MdCheckboxModule=p},function(e,t){"use strict";var n=function(){function PromiseCompleter(){var e=this;this.promise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return PromiseCompleter}();t.PromiseCompleter=n},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=n(0),s=function(){function MdLine(){}return MdLine=r([o.Directive({selector:"[md-line]"}),i("design:paramtypes",[])],MdLine)}();t.MdLine=s;var a=function(){function MdLineSetter(e,t,n){var r=this;this._lines=e,this._renderer=t,this._element=n,this._setLineClass(this._lines.length),this._lines.changes.subscribe(function(){r._setLineClass(r._lines.length)})}return MdLineSetter.prototype._setLineClass=function(e){this._resetClasses(),2!==e&&3!==e||this._setClass("md-"+e+"-line",!0)},MdLineSetter.prototype._resetClasses=function(){this._setClass("md-2-line",!1),this._setClass("md-3-line",!1)},MdLineSetter.prototype._setClass=function(e,t){this._renderer.setElementClass(this._element.nativeElement,e,t)},MdLineSetter}();t.MdLineSetter=a;var l=function(){function MdLineModule(){}return MdLineModule=r([o.NgModule({exports:[s],declarations:[s]}),i("design:paramtypes",[])],MdLineModule)}();t.MdLineModule=l},function(e,t){"use strict";!function(e){e[e.NEW=0]="NEW",e[e.EXPANDING=1]="EXPANDING",e[e.FADING_OUT=2]="FADING_OUT"}(t.ForegroundRippleState||(t.ForegroundRippleState={}));var n=t.ForegroundRippleState,r=function(){function ForegroundRipple(e){this.rippleElement=e,this.state=n.NEW}return ForegroundRipple}();t.ForegroundRipple=r;var i=1e3,o=.1,s=.3,a=function(e,t,n){var r=Math.max(Math.abs(e-n.left),Math.abs(e-n.right)),i=Math.max(Math.abs(t-n.top),Math.abs(t-n.bottom));return Math.sqrt(r*r+i*i)},l=function(){function RippleRenderer(e,t){this._eventHandlers=t,this._rippleElement=e.nativeElement,this._backgroundDiv=document.createElement("div"),this._backgroundDiv.classList.add("md-ripple-background"),this._rippleElement.appendChild(this._backgroundDiv)}return RippleRenderer.prototype.setTriggerElement=function(e){var t=this;this._triggerElement!==e&&(this._triggerElement&&this._eventHandlers.forEach(function(e,n){t._triggerElement.removeEventListener(n,e)}),this._triggerElement=e,this._triggerElement&&this._eventHandlers.forEach(function(e,n){t._triggerElement.addEventListener(n,e)}))},RippleRenderer.prototype.setTriggerElementToHost=function(){this.setTriggerElement(this._rippleElement)},RippleRenderer.prototype.clearTriggerElement=function(){this.setTriggerElement(null)},RippleRenderer.prototype.createForegroundRipple=function(e,t,l,c,u,p,d){var h=this._rippleElement.getBoundingClientRect(),f=c?h.left+h.width/2:e,m=c?h.top+h.height/2:t,y=f-h.left,v=m-h.top,g=u>0?u:a(f,m,h),b=document.createElement("div");this._rippleElement.appendChild(b),b.classList.add("md-ripple-foreground"), b.style.left=y-g+"px",b.style.top=v-g+"px",b.style.width=2*g+"px",b.style.height=b.style.width,b.style.backgroundColor=l,b.style.transform="scale(0.001)";var _=1/(p||1)*Math.max(o,Math.min(s,g/i));b.style.transitionDuration=_+"s",window.getComputedStyle(b).opacity,b.classList.add("md-ripple-fade-in"),b.style.transform="";var S=new r(b);S.state=n.EXPANDING,b.addEventListener("transitionend",function(e){return d(S,e)})},RippleRenderer.prototype.fadeOutForegroundRipple=function(e){e.classList.remove("md-ripple-fade-in"),e.classList.add("md-ripple-fade-out")},RippleRenderer.prototype.removeRippleFromDom=function(e){e.parentElement.removeChild(e)},RippleRenderer.prototype.fadeInRippleBackground=function(e){this._backgroundDiv.classList.add("md-ripple-active"),this._backgroundDiv.style.backgroundColor=e},RippleRenderer.prototype.fadeOutRippleBackground=function(){this._backgroundDiv&&this._backgroundDiv.classList.remove("md-ripple-active")},RippleRenderer}();t.RippleRenderer=l},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=n(0),s=function(){function Dir(){this._dir="ltr",this.dirChange=new o.EventEmitter}return Object.defineProperty(Dir.prototype,"dir",{get:function(){return this._dir},set:function(e){var t=this._dir;this._dir=e,t!=this._dir&&this.dirChange.emit(null)},enumerable:!0,configurable:!0}),Object.defineProperty(Dir.prototype,"value",{get:function(){return this.dir},set:function(e){this.dir=e},enumerable:!0,configurable:!0}),r([o.Input("dir"),i("design:type",String)],Dir.prototype,"_dir",void 0),r([o.Output(),i("design:type",Object)],Dir.prototype,"dirChange",void 0),r([o.HostBinding("attr.dir"),i("design:type",String)],Dir.prototype,"dir",null),Dir=r([o.Directive({selector:"[dir]",exportAs:"$implicit"}),i("design:paramtypes",[])],Dir)}();t.Dir=s;var a=function(){function RtlModule(){}return RtlModule=r([o.NgModule({exports:[s],declarations:[s]}),i("design:paramtypes",[])],RtlModule)}();t.RtlModule=a},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=n(0),a=n(43),l=n(188),c=n(427),u=n(427);t.MdIconRegistry=u.MdIconRegistry;var p=function(e){function MdIconInvalidNameError(t){e.call(this,'Invalid icon name: "'+t+'"')}return r(MdIconInvalidNameError,e),MdIconInvalidNameError}(l.MdError);t.MdIconInvalidNameError=p;var d=function(){function MdIcon(e,t,n){this._element=e,this._renderer=t,this._mdIconRegistry=n,this.hostAriaLabel=""}return MdIcon.prototype._splitIconName=function(e){if(!e)return["",""];var t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw new p(e)}},MdIcon.prototype.ngOnChanges=function(e){var t=this,n=Object.keys(e);if(n.indexOf("svgIcon")!=-1||n.indexOf("svgSrc")!=-1)if(this.svgIcon){var r=this._splitIconName(this.svgIcon),i=r[0],o=r[1];this._mdIconRegistry.getNamedSvgIcon(o,i).subscribe(function(e){return t._setSvgElement(e)},function(e){return console.log("Error retrieving icon: "+e)})}else this.svgSrc&&this._mdIconRegistry.getSvgIconFromUrl(this.svgSrc).subscribe(function(e){return t._setSvgElement(e)},function(e){return console.log("Error retrieving icon: "+e)});this._usingFontIcon()&&this._updateFontIconClasses(),this._updateAriaLabel()},MdIcon.prototype.ngOnInit=function(){this._usingFontIcon()&&this._updateFontIconClasses()},MdIcon.prototype.ngAfterViewChecked=function(){this._updateAriaLabel()},MdIcon.prototype._updateAriaLabel=function(){var e=this._getAriaLabel();e&&this._renderer.setElementAttribute(this._element.nativeElement,"aria-label",e)},MdIcon.prototype._getAriaLabel=function(){var e=this.hostAriaLabel||this.alt||this.fontIcon||this._splitIconName(this.svgIcon)[1];if(e)return e;if(this._usingFontIcon()){var t=this._element.nativeElement.textContent;if(t)return t}return null},MdIcon.prototype._usingFontIcon=function(){return!(this.svgIcon||this.svgSrc)},MdIcon.prototype._setSvgElement=function(e){var t=this._element.nativeElement;t.innerHTML="",this._renderer.projectNodes(t,[e])},MdIcon.prototype._updateFontIconClasses=function(){if(this._usingFontIcon()){var e=this._element.nativeElement,t=this.fontSet?this._mdIconRegistry.classNameForFontAlias(this.fontSet):this._mdIconRegistry.getDefaultFontSetClass();t!=this._previousFontSetClass&&(this._previousFontSetClass&&this._renderer.setElementClass(e,this._previousFontSetClass,!1),t&&this._renderer.setElementClass(e,t,!0),this._previousFontSetClass=t),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&this._renderer.setElementClass(e,this._previousFontIconClass,!1),this.fontIcon&&this._renderer.setElementClass(e,this.fontIcon,!0),this._previousFontIconClass=this.fontIcon)}},i([s.Input(),o("design:type",String)],MdIcon.prototype,"svgSrc",void 0),i([s.Input(),o("design:type",String)],MdIcon.prototype,"svgIcon",void 0),i([s.Input(),o("design:type",String)],MdIcon.prototype,"fontSet",void 0),i([s.Input(),o("design:type",String)],MdIcon.prototype,"fontIcon",void 0),i([s.Input(),o("design:type",String)],MdIcon.prototype,"alt",void 0),i([s.Input("aria-label"),o("design:type",String)],MdIcon.prototype,"hostAriaLabel",void 0),MdIcon=i([s.Component({template:"",selector:"md-icon",styles:['/** The width/height of the icon element. */ /** This works because we\'re using ViewEncapsulation.None. If we used the default encapsulation, the selector would need to be ":host". */ md-icon { background-repeat: no-repeat; display: inline-block; fill: currentColor; height: 24px; width: 24px; } '],host:{role:"img"},encapsulation:s.ViewEncapsulation.None,changeDetection:s.ChangeDetectionStrategy.OnPush}),o("design:paramtypes",[s.ElementRef,s.Renderer,c.MdIconRegistry])],MdIcon)}();t.MdIcon=d,t.MD_ICON_DIRECTIVES=[d];var h=function(){function MdIconModule(){}return MdIconModule=i([s.NgModule({imports:[a.HttpModule],exports:t.MD_ICON_DIRECTIVES,declarations:t.MD_ICON_DIRECTIVES,providers:[c.MdIconRegistry]}),o("design:paramtypes",[])],MdIconModule)}();t.MdIconModule=h},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=n(0),a=n(22),l=n(3),c=n(282),u=n(188),p=n(1),d=function(){};t.MD_INPUT_CONTROL_VALUE_ACCESSOR={provide:a.NG_VALUE_ACCESSOR,useExisting:s.forwardRef(function(){return _}),multi:!0};var h=["file","radio","checkbox"],f=0,m=function(e){function MdInputPlaceholderConflictError(){e.call(this,"Placeholder attribute and child element were both specified.")}return r(MdInputPlaceholderConflictError,e),MdInputPlaceholderConflictError}(u.MdError);t.MdInputPlaceholderConflictError=m;var y=function(e){function MdInputUnsupportedTypeError(t){e.call(this,'Input type "'+t+"\" isn't supported by md-input.")}return r(MdInputUnsupportedTypeError,e),MdInputUnsupportedTypeError}(u.MdError);t.MdInputUnsupportedTypeError=y;var v=function(e){function MdInputDuplicatedHintError(t){e.call(this,"A hint was already declared for 'align=\""+t+"\"'.")}return r(MdInputDuplicatedHintError,e),MdInputDuplicatedHintError}(u.MdError);t.MdInputDuplicatedHintError=v;var g=function(){function MdPlaceholder(){}return MdPlaceholder=i([s.Directive({selector:"md-placeholder"}),o("design:paramtypes",[])],MdPlaceholder)}();t.MdPlaceholder=g;var b=function(){function MdHint(){this.align="start"}return i([s.Input(),o("design:type",Object)],MdHint.prototype,"align",void 0),MdHint=i([s.Directive({selector:"md-hint",host:{"[class.md-right]":'align == "end"',"[class.md-hint]":"true"}}),o("design:paramtypes",[])],MdHint)}();t.MdHint=b;var _=function(){function MdInput(){this._focused=!1,this._value="",this._onTouchedCallback=d,this._onChangeCallback=d,this.align="start",this.dividerColor="primary",this.floatingPlaceholder=!0,this.hintLabel="",this.autoFocus=!1,this.disabled=!1,this.id="md-input-"+f++,this.list=null,this.max=null,this.maxLength=null,this.min=null,this.minLength=null,this.placeholder=null,this.readOnly=!1,this.required=!1,this.spellCheck=!1,this.step=null,this.tabIndex=null,this.type="text",this.name=null,this._blurEmitter=new s.EventEmitter,this._focusEmitter=new s.EventEmitter}return Object.defineProperty(MdInput.prototype,"focused",{get:function(){return this._focused},enumerable:!0,configurable:!0}),Object.defineProperty(MdInput.prototype,"empty",{get:function(){return null==this._value||""===this._value},enumerable:!0,configurable:!0}),Object.defineProperty(MdInput.prototype,"characterCount",{get:function(){return this.empty?0:(""+this._value).length},enumerable:!0,configurable:!0}),Object.defineProperty(MdInput.prototype,"inputId",{get:function(){return this.id+"-input"},enumerable:!0,configurable:!0}),Object.defineProperty(MdInput.prototype,"onBlur",{get:function(){return this._blurEmitter.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(MdInput.prototype,"onFocus",{get:function(){return this._focusEmitter.asObservable()},enumerable:!0,configurable:!0}),Object.defineProperty(MdInput.prototype,"value",{get:function(){return this._value},set:function(e){e=this._convertValueForInputType(e),e!==this._value&&(this._value=e,this._onChangeCallback(e))},enumerable:!0,configurable:!0}),Object.defineProperty(MdInput.prototype,"_align",{get:function(){return null},enumerable:!0,configurable:!0}),MdInput.prototype.focus=function(){this._inputElement.nativeElement.focus()},MdInput.prototype._handleFocus=function(e){this._focused=!0,this._focusEmitter.emit(e)},MdInput.prototype._handleBlur=function(e){this._focused=!1,this._onTouchedCallback(),this._blurEmitter.emit(e)},MdInput.prototype._handleChange=function(e){this.value=e.target.value,this._onTouchedCallback()},MdInput.prototype._hasPlaceholder=function(){return!!this.placeholder||null!=this._placeholderChild},MdInput.prototype.writeValue=function(e){this._value=e},MdInput.prototype.registerOnChange=function(e){this._onChangeCallback=e},MdInput.prototype.registerOnTouched=function(e){this._onTouchedCallback=e},MdInput.prototype.ngAfterContentInit=function(){var e=this;this._validateConstraints(),this._hintChildren.changes.subscribe(function(){e._validateConstraints()})},MdInput.prototype.ngOnChanges=function(e){this._validateConstraints()},MdInput.prototype._convertValueForInputType=function(e){switch(this.type){case"number":return parseFloat(e);default:return e}},MdInput.prototype._validateConstraints=function(){var e=this;if(""!=this.placeholder&&null!=this.placeholder&&null!=this._placeholderChild)throw new m;if(h.indexOf(this.type)!=-1)throw new y(this.type);if(this._hintChildren){var t=null,n=null;this._hintChildren.forEach(function(r){if("start"==r.align){if(t||e.hintLabel)throw new v("start");t=r}else if("end"==r.align){if(n)throw new v("end");n=r}})}},i([s.Input("aria-label"),o("design:type",String)],MdInput.prototype,"ariaLabel",void 0),i([s.Input("aria-labelledby"),o("design:type",String)],MdInput.prototype,"ariaLabelledBy",void 0),i([s.Input("aria-disabled"),c.BooleanFieldValue(),o("design:type",Boolean)],MdInput.prototype,"ariaDisabled",void 0),i([s.Input("aria-required"),c.BooleanFieldValue(),o("design:type",Boolean)],MdInput.prototype,"ariaRequired",void 0),i([s.Input("aria-invalid"),c.BooleanFieldValue(),o("design:type",Boolean)],MdInput.prototype,"ariaInvalid",void 0),i([s.ContentChild(g),o("design:type",g)],MdInput.prototype,"_placeholderChild",void 0),i([s.ContentChildren(b),o("design:type",s.QueryList)],MdInput.prototype,"_hintChildren",void 0),i([s.Input(),o("design:type",Object)],MdInput.prototype,"align",void 0),i([s.Input(),o("design:type",Object)],MdInput.prototype,"dividerColor",void 0),i([s.Input(),c.BooleanFieldValue(),o("design:type",Boolean)],MdInput.prototype,"floatingPlaceholder",void 0),i([s.Input(),o("design:type",String)],MdInput.prototype,"hintLabel",void 0),i([s.Input(),o("design:type",String)],MdInput.prototype,"autoComplete",void 0),i([s.Input(),o("design:type",String)],MdInput.prototype,"autoCorrect",void 0),i([s.Input(),o("design:type",String)],MdInput.prototype,"autoCapitalize",void 0),i([s.Input(),c.BooleanFieldValue(),o("design:type",Boolean)],MdInput.prototype,"autoFocus",void 0),i([s.Input(),c.BooleanFieldValue(),o("design:type",Boolean)],MdInput.prototype,"disabled",void 0),i([s.Input(),o("design:type",String)],MdInput.prototype,"id",void 0),i([s.Input(),o("design:type",String)],MdInput.prototype,"list",void 0),i([s.Input(),o("design:type",Object)],MdInput.prototype,"max",void 0),i([s.Input(),o("design:type",Number)],MdInput.prototype,"maxLength",void 0),i([s.Input(),o("design:type",Object)],MdInput.prototype,"min",void 0),i([s.Input(),o("design:type",Number)],MdInput.prototype,"minLength",void 0),i([s.Input(),o("design:type",String)],MdInput.prototype,"placeholder",void 0),i([s.Input(),c.BooleanFieldValue(),o("design:type",Boolean)],MdInput.prototype,"readOnly",void 0),i([s.Input(),c.BooleanFieldValue(),o("design:type",Boolean)],MdInput.prototype,"required",void 0),i([s.Input(),c.BooleanFieldValue(),o("design:type",Boolean)],MdInput.prototype,"spellCheck",void 0),i([s.Input(),o("design:type",Number)],MdInput.prototype,"step",void 0),i([s.Input(),o("design:type",Number)],MdInput.prototype,"tabIndex",void 0),i([s.Input(),o("design:type",String)],MdInput.prototype,"type",void 0),i([s.Input(),o("design:type",String)],MdInput.prototype,"name",void 0),i([s.Output("blur"),o("design:type",p.Observable)],MdInput.prototype,"onBlur",null),i([s.Output("focus"),o("design:type",p.Observable)],MdInput.prototype,"onFocus",null),i([s.Input(),o("design:type",Object)],MdInput.prototype,"value",null),i([s.HostBinding("attr.align"),o("design:type",Object)],MdInput.prototype,"_align",null),i([s.ViewChild("input"),o("design:type",s.ElementRef)],MdInput.prototype,"_inputElement",void 0),MdInput=i([s.Component({selector:"md-input",template:'
{{hintLabel}}
',styles:["/** * Mixin that creates a new stacking context. * see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context */ /** * This mixin hides an element visually. * That means it's still accessible for screen-readers but not visible in view. */ /** * Forces an element to grow to fit floated contents; used as as an alternative to * `overflow: hidden;` because it doesn't cut off contents. */ /** * A mixin, which generates temporary ink ripple on a given component. * When $bindToParent is set to true, it will check for the focused class on the same selector as you included * that mixin. * It is also possible to specify the color palette of the temporary ripple. By default it uses the * accent palette for its background. */ /** * Undo the red box-shadow glow added by Firefox on invalid inputs. * See https://developer.mozilla.org/en-US/docs/Web/CSS/:-moz-ui-invalid */ :-moz-ui-invalid { box-shadow: none; } /** * Applies a floating placeholder above the input itself. */ :host { display: inline-block; position: relative; font-family: Roboto, \"Helvetica Neue\", sans-serif; text-align: left; } :host .md-input-wrapper { margin: 16px 0; } :host .md-input-table { display: inline-table; -ms-flex-flow: column; flex-flow: column; vertical-align: bottom; width: 100%; } :host .md-input-table > * { display: table-cell; } :host .md-input-element { font: inherit; background: transparent; border: none; outline: none; padding: 0; width: 100%; } :host .md-input-element.md-end { text-align: right; } :host .md-input-infix { position: relative; } :host .md-input-placeholder { position: absolute; left: 0; top: 0; font-size: 100%; pointer-events: none; color: rgba(0, 0, 0, 0.38); z-index: 1; width: 100%; display: none; white-space: nowrap; text-overflow: ellipsis; overflow-x: hidden; -webkit-transform: translateY(0); transform: translateY(0); -webkit-transform-origin: bottom left; transform-origin: bottom left; -webkit-transition: scale 400ms cubic-bezier(0.25, 0.8, 0.25, 1), color 400ms cubic-bezier(0.25, 0.8, 0.25, 1), width 400ms cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1); transition: scale 400ms cubic-bezier(0.25, 0.8, 0.25, 1), color 400ms cubic-bezier(0.25, 0.8, 0.25, 1), width 400ms cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1); transition: transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1), scale 400ms cubic-bezier(0.25, 0.8, 0.25, 1), color 400ms cubic-bezier(0.25, 0.8, 0.25, 1), width 400ms cubic-bezier(0.25, 0.8, 0.25, 1); transition: transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1), scale 400ms cubic-bezier(0.25, 0.8, 0.25, 1), color 400ms cubic-bezier(0.25, 0.8, 0.25, 1), width 400ms cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1); } :host .md-input-placeholder.md-empty { display: block; cursor: text; } :host .md-input-placeholder.md-float:not(.md-empty), :host .md-input-placeholder.md-float.md-focused { display: block; padding-bottom: 5px; -webkit-transform: translateY(-100%) scale(0.75); transform: translateY(-100%) scale(0.75); width: 133.33333%; } :host .md-input-placeholder.md-float:not(.md-empty) .md-placeholder-required, :host .md-input-placeholder.md-float.md-focused .md-placeholder-required { color: #9c27b0; } :host .md-input-placeholder.md-focused { color: #009688; } :host .md-input-placeholder.md-focused.md-accent { color: #9c27b0; } :host .md-input-placeholder.md-focused.md-warn { color: #f44336; } :host input:-webkit-autofill + .md-input-placeholder { display: block; padding-bottom: 5px; -webkit-transform: translateY(-100%) scale(0.75); transform: translateY(-100%) scale(0.75); width: 133.33333%; } :host input:-webkit-autofill + .md-input-placeholder .md-placeholder-required { color: #9c27b0; } :host .md-input-underline { position: absolute; height: 1px; width: 100%; margin-top: 4px; border-top: 1px solid rgba(0, 0, 0, 0.38); } :host .md-input-underline.md-disabled { border-top: 0; background-image: -webkit-linear-gradient(left, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0.26) 33%, transparent 0%); background-image: linear-gradient(to right, rgba(0, 0, 0, 0.26) 0%, rgba(0, 0, 0, 0.26) 33%, transparent 0%); background-position: 0; background-size: 4px 1px; background-repeat: repeat-x; } :host .md-input-underline .md-input-ripple { position: absolute; height: 2px; z-index: 1; background-color: #009688; top: -1px; width: 100%; -webkit-transform-origin: top; transform-origin: top; opacity: 0; -webkit-transform: scaleY(0); transform: scaleY(0); -webkit-transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1); transition: opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1); transition: transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1), opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1); transition: transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1), opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1); } :host .md-input-underline .md-input-ripple.md-accent { background-color: #9c27b0; } :host .md-input-underline .md-input-ripple.md-warn { background-color: #f44336; } :host .md-input-underline .md-input-ripple.md-focused { opacity: 1; -webkit-transform: scaleY(1); transform: scaleY(1); } :host .md-hint { position: absolute; font-size: 75%; bottom: -0.5em; } :host .md-hint.md-right { right: 0; } :host-context([dir='rtl']) { text-align: right; } :host-context([dir='rtl']) .md-input-placeholder { -webkit-transform-origin: bottom right; transform-origin: bottom right; } :host-context([dir='rtl']) .md-input-element.md-end { text-align: left; } :host-context([dir='rtl']) .md-hint { right: 0; left: auto; } :host-context([dir='rtl']) .md-hint.md-right { right: auto; left: 0; } "],providers:[t.MD_INPUT_CONTROL_VALUE_ACCESSOR],host:{"(click)":"focus()"}}),o("design:paramtypes",[])],MdInput)}();t.MdInput=_,t.MD_INPUT_DIRECTIVES=[g,_,b];var S=function(){function MdInputModule(){}return MdInputModule=i([s.NgModule({declarations:t.MD_INPUT_DIRECTIVES,imports:[l.CommonModule,a.FormsModule],exports:t.MD_INPUT_DIRECTIVES}),o("design:paramtypes",[])],MdInputModule)}();t.MdInputModule=S},function(e,t,n){"use strict";var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=n(0),s=n(635),a=function(){function MdList(){}return MdList=r([o.Component({selector:"md-list, md-nav-list",host:{role:"list"},template:"",styles:['/** * This mixin will ensure that lines that overflow the container will * hide the overflow and truncate neatly with an ellipsis. */ /** * This mixin provides all md-line styles, changing secondary font size * based on whether the list is in dense mode. */ /** * This mixin provides base styles for the wrapper around md-line * elements in a list. */ /** * This mixin normalizes default element styles, e.g. font weight for heading text. */ /* Normal list variables */ /* Dense list variables */ /* This mixin provides all list-item styles, changing font size and height based on whether the list is in dense mode. */ /* This mixin provides all subheader styles, adjusting heights and padding based on whether the list is in dense mode. */ md-list, md-nav-list { padding-top: 8px; display: block; } md-list [md-subheader], md-nav-list [md-subheader] { display: block; box-sizing: border-box; height: 48px; padding: 16px; margin: 0; font-size: 14px; font-weight: 500; color: rgba(0, 0, 0, 0.54); } md-list [md-subheader]:first-child, md-nav-list [md-subheader]:first-child { margin-top: -8px; } md-list md-list-item .md-list-item, md-list a[md-list-item] .md-list-item, md-nav-list md-list-item .md-list-item, md-nav-list a[md-list-item] .md-list-item { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; -webkit-box-align: center; -ms-flex-align: center; align-items: center; font-family: Roboto, "Helvetica Neue", sans-serif; box-sizing: border-box; font-size: 16px; height: 48px; padding: 0 16px; color: black; } md-list md-list-item.md-list-avatar .md-list-item, md-list a[md-list-item].md-list-avatar .md-list-item, md-nav-list md-list-item.md-list-avatar .md-list-item, md-nav-list a[md-list-item].md-list-avatar .md-list-item { height: 56px; } md-list md-list-item.md-2-line .md-list-item, md-list a[md-list-item].md-2-line .md-list-item, md-nav-list md-list-item.md-2-line .md-list-item, md-nav-list a[md-list-item].md-2-line .md-list-item { height: 72px; } md-list md-list-item.md-3-line .md-list-item, md-list a[md-list-item].md-3-line .md-list-item, md-nav-list md-list-item.md-3-line .md-list-item, md-nav-list a[md-list-item].md-3-line .md-list-item { height: 88px; } md-list md-list-item .md-list-text, md-list a[md-list-item] .md-list-text, md-nav-list md-list-item .md-list-text, md-nav-list a[md-list-item] .md-list-text { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; width: 100%; box-sizing: border-box; overflow: hidden; padding: 0 16px; } md-list md-list-item .md-list-text > *, md-list a[md-list-item] .md-list-text > *, md-nav-list md-list-item .md-list-text > *, md-nav-list a[md-list-item] .md-list-text > * { margin: 0; padding: 0; font-weight: normal; font-size: inherit; } md-list md-list-item .md-list-text:empty, md-list a[md-list-item] .md-list-text:empty, md-nav-list md-list-item .md-list-text:empty, md-nav-list a[md-list-item] .md-list-text:empty { display: none; } md-list md-list-item .md-list-text:first-child, md-list a[md-list-item] .md-list-text:first-child, md-nav-list md-list-item .md-list-text:first-child, md-nav-list a[md-list-item] .md-list-text:first-child { padding: 0; } md-list md-list-item [md-list-avatar], md-list a[md-list-item] [md-list-avatar], md-nav-list md-list-item [md-list-avatar], md-nav-list a[md-list-item] [md-list-avatar] { width: 40px; height: 40px; border-radius: 50%; } md-list md-list-item [md-list-icon], md-list a[md-list-item] [md-list-icon], md-nav-list md-list-item [md-list-icon], md-nav-list a[md-list-item] [md-list-icon] { width: 24px; height: 24px; border-radius: 50%; padding: 4px; } md-list md-list-item [md-line], md-list a[md-list-item] [md-line], md-nav-list md-list-item [md-line], md-nav-list a[md-list-item] [md-line] { white-space: nowrap; overflow-x: hidden; text-overflow: ellipsis; display: block; box-sizing: border-box; } md-list md-list-item [md-line]:nth-child(n+2), md-list a[md-list-item] [md-line]:nth-child(n+2), md-nav-list md-list-item [md-line]:nth-child(n+2), md-nav-list a[md-list-item] [md-line]:nth-child(n+2) { font-size: 14px; } md-list[dense], md-nav-list[dense] { padding-top: 4px; display: block; } md-list[dense] [md-subheader], md-nav-list[dense] [md-subheader] { display: block; box-sizing: border-box; height: 40px; padding: 16px; margin: 0; font-size: 13px; font-weight: 500; color: rgba(0, 0, 0, 0.54); } md-list[dense] [md-subheader]:first-child, md-nav-list[dense] [md-subheader]:first-child { margin-top: -4px; } md-list[dense] md-list-item .md-list-item, md-list[dense] a[md-list-item] .md-list-item, md-nav-list[dense] md-list-item .md-list-item, md-nav-list[dense] a[md-list-item] .md-list-item { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; -webkit-box-align: center; -ms-flex-align: center; align-items: center; font-family: Roboto, "Helvetica Neue", sans-serif; box-sizing: border-box; font-size: 13px; height: 40px; padding: 0 16px; color: black; } md-list[dense] md-list-item.md-list-avatar .md-list-item, md-list[dense] a[md-list-item].md-list-avatar .md-list-item, md-nav-list[dense] md-list-item.md-list-avatar .md-list-item, md-nav-list[dense] a[md-list-item].md-list-avatar .md-list-item { height: 48px; } md-list[dense] md-list-item.md-2-line .md-list-item, md-list[dense] a[md-list-item].md-2-line .md-list-item, md-nav-list[dense] md-list-item.md-2-line .md-list-item, md-nav-list[dense] a[md-list-item].md-2-line .md-list-item { height: 60px; } md-list[dense] md-list-item.md-3-line .md-list-item, md-list[dense] a[md-list-item].md-3-line .md-list-item, md-nav-list[dense] md-list-item.md-3-line .md-list-item, md-nav-list[dense] a[md-list-item].md-3-line .md-list-item { height: 76px; } md-list[dense] md-list-item .md-list-text, md-list[dense] a[md-list-item] .md-list-text, md-nav-list[dense] md-list-item .md-list-text, md-nav-list[dense] a[md-list-item] .md-list-text { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: vertical; -webkit-box-direction: normal; -ms-flex-direction: column; flex-direction: column; width: 100%; box-sizing: border-box; overflow: hidden; padding: 0 16px; } md-list[dense] md-list-item .md-list-text > *, md-list[dense] a[md-list-item] .md-list-text > *, md-nav-list[dense] md-list-item .md-list-text > *, md-nav-list[dense] a[md-list-item] .md-list-text > * { margin: 0; padding: 0; font-weight: normal; font-size: inherit; } md-list[dense] md-list-item .md-list-text:empty, md-list[dense] a[md-list-item] .md-list-text:empty, md-nav-list[dense] md-list-item .md-list-text:empty, md-nav-list[dense] a[md-list-item] .md-list-text:empty { display: none; } md-list[dense] md-list-item .md-list-text:first-child, md-list[dense] a[md-list-item] .md-list-text:first-child, md-nav-list[dense] md-list-item .md-list-text:first-child, md-nav-list[dense] a[md-list-item] .md-list-text:first-child { padding: 0; } md-list[dense] md-list-item [md-list-avatar], md-list[dense] a[md-list-item] [md-list-avatar], md-nav-list[dense] md-list-item [md-list-avatar], md-nav-list[dense] a[md-list-item] [md-list-avatar] { width: 40px; height: 40px; border-radius: 50%; } md-list[dense] md-list-item [md-list-icon], md-list[dense] a[md-list-item] [md-list-icon], md-nav-list[dense] md-list-item [md-list-icon], md-nav-list[dense] a[md-list-item] [md-list-icon] { width: 24px; height: 24px; border-radius: 50%; padding: 4px; } md-list[dense] md-list-item [md-line], md-list[dense] a[md-list-item] [md-line], md-nav-list[dense] md-list-item [md-line], md-nav-list[dense] a[md-list-item] [md-line] { white-space: nowrap; overflow-x: hidden; text-overflow: ellipsis; display: block; box-sizing: border-box; } md-list[dense] md-list-item [md-line]:nth-child(n+2), md-list[dense] a[md-list-item] [md-line]:nth-child(n+2), md-nav-list[dense] md-list-item [md-line]:nth-child(n+2), md-nav-list[dense] a[md-list-item] [md-line]:nth-child(n+2) { font-size: 13px; } md-divider { display: block; border-top: 1px solid rgba(0, 0, 0, 0.12); margin: 0; } md-nav-list a { text-decoration: none; color: inherit; } md-nav-list .md-list-item { cursor: pointer; } md-nav-list .md-list-item:hover, md-nav-list .md-list-item.md-list-item-focus { outline: none; background: rgba(0, 0, 0, 0.04); } '], encapsulation:o.ViewEncapsulation.None}),i("design:paramtypes",[])],MdList)}();t.MdList=a;var l=function(){function MdListAvatar(){}return MdListAvatar=r([o.Directive({selector:"[md-list-avatar]"}),i("design:paramtypes",[])],MdListAvatar)}();t.MdListAvatar=l;var c=function(){function MdListItem(e,t){this._renderer=e,this._element=t,this._hasFocus=!1}return Object.defineProperty(MdListItem.prototype,"_hasAvatar",{set:function(e){this._renderer.setElementClass(this._element.nativeElement,"md-list-avatar",null!=e)},enumerable:!0,configurable:!0}),MdListItem.prototype.ngAfterContentInit=function(){this._lineSetter=new s.MdLineSetter(this._lines,this._renderer,this._element)},MdListItem.prototype._handleFocus=function(){this._hasFocus=!0},MdListItem.prototype._handleBlur=function(){this._hasFocus=!1},r([o.ContentChildren(s.MdLine),i("design:type",o.QueryList)],MdListItem.prototype,"_lines",void 0),r([o.ContentChild(l),i("design:type",l),i("design:paramtypes",[l])],MdListItem.prototype,"_hasAvatar",null),MdListItem=r([o.Component({selector:"md-list-item, a[md-list-item]",host:{role:"listitem","(focus)":"_handleFocus()","(blur)":"_handleBlur()"},template:'
',encapsulation:o.ViewEncapsulation.None}),i("design:paramtypes",[o.Renderer,o.ElementRef])],MdListItem)}();t.MdListItem=c,t.MD_LIST_DIRECTIVES=[a,c,l];var u=function(){function MdListModule(){}return MdListModule=r([o.NgModule({imports:[s.MdLineModule],exports:[t.MD_LIST_DIRECTIVES,s.MdLineModule],declarations:t.MD_LIST_DIRECTIVES}),i("design:paramtypes",[])],MdListModule)}();t.MdListModule=u},function(e,t,n){"use strict";function clamp(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=100),Math.max(t,Math.min(n,e))}var r=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},i=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},o=n(0),s=n(3),a=function(){function MdProgressBar(){this._value=0,this._bufferValue=0,this.mode="determinate"}return Object.defineProperty(MdProgressBar.prototype,"value",{get:function(){return this._value},set:function(e){this._value=clamp(e||0)},enumerable:!0,configurable:!0}),Object.defineProperty(MdProgressBar.prototype,"bufferValue",{get:function(){return this._bufferValue},set:function(e){this._bufferValue=clamp(e||0)},enumerable:!0,configurable:!0}),MdProgressBar.prototype._primaryTransform=function(){var e=this.value/100;return{transform:"scaleX("+e+")"}},MdProgressBar.prototype._bufferTransform=function(){if("buffer"==this.mode){var e=this.bufferValue/100;return{transform:"scaleX("+e+")"}}},r([o.Input(),o.HostBinding("attr.aria-valuenow"),i("design:type",Object)],MdProgressBar.prototype,"value",null),r([o.Input(),i("design:type",Object)],MdProgressBar.prototype,"bufferValue",null),r([o.Input(),o.HostBinding("attr.mode"),i("design:type",Object)],MdProgressBar.prototype,"mode",void 0),MdProgressBar=r([o.Component({selector:"md-progress-bar",host:{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100"},template:'
',styles:["/** In buffer mode a repeated SVG object is used as a background. Each of the following defines the SVG object for each of the class defined colors. Each string is a URL encoded version of: */ :host { display: block; height: 5px; overflow: hidden; position: relative; -webkit-transform: translateZ(0); transform: translateZ(0); -webkit-transition: opacity 250ms linear; transition: opacity 250ms linear; width: 100%; /** * The progress bar buffer is the bar indicator showing the buffer value and is only visible beyond the current value * of the primary progress bar. */ /** * The secondary progress bar is only used in the indeterminate animation, because of this it is hidden in other uses. */ /** * The progress bar fill fills the progress bar with the indicator color. */ /** * A pseudo element is created for each progress bar bar that fills with the indicator color. */ } :host .md-progress-bar-background { background: url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20version%3D%271.1%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20xmlns%3Axlink%3D%27http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%27%20x%3D%270px%27%20y%3D%270px%27%20enable-background%3D%27new%200%200%205%202%27%20xml%3Aspace%3D%27preserve%27%20viewBox%3D%270%200%205%202%27%20preserveAspectRatio%3D%27none%20slice%27%3E%3Ccircle%20cx%3D%271%27%20cy%3D%271%27%20r%3D%271%27%20fill%3D%27#b2dfdb%27%2F%3E%3C%2Fsvg%3E\"); background-repeat: repeat-x; background-size: 10px 4px; height: 100%; position: absolute; visibility: hidden; width: 100%; } :host .md-progress-bar-buffer { background-color: #b2dfdb; height: 100%; position: absolute; -webkit-transform-origin: top left; transform-origin: top left; -webkit-transition: -webkit-transform 250ms ease; transition: -webkit-transform 250ms ease; transition: transform 250ms ease; transition: transform 250ms ease, -webkit-transform 250ms ease; width: 100%; } :host .md-progress-bar-secondary { visibility: hidden; } :host .md-progress-bar-fill { -webkit-animation: none; animation: none; height: 100%; position: absolute; -webkit-transform-origin: top left; transform-origin: top left; -webkit-transition: -webkit-transform 250ms ease; transition: -webkit-transform 250ms ease; transition: transform 250ms ease; transition: transform 250ms ease, -webkit-transform 250ms ease; width: 100%; } :host .md-progress-bar-fill::after { -webkit-animation: none; animation: none; background-color: #00897b; content: ''; display: inline-block; height: 100%; position: absolute; width: 100%; } :host[color='accent'] .md-progress-bar-background { background: url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20version%3D%271.1%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20xmlns%3Axlink%3D%27http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%27%20x%3D%270px%27%20y%3D%270px%27%20enable-background%3D%27new%200%200%205%202%27%20xml%3Aspace%3D%27preserve%27%20viewBox%3D%270%200%205%202%27%20preserveAspectRatio%3D%27none%20slice%27%3E%3Ccircle%20cx%3D%271%27%20cy%3D%271%27%20r%3D%271%27%20fill%3D%27#e1bee7%27%2F%3E%3C%2Fsvg%3E\"); background-repeat: repeat-x; background-size: 10px 4px; } :host[color='accent'] .md-progress-bar-buffer { background-color: #e1bee7; } :host[color='accent'] .md-progress-bar-fill::after { background-color: #8e24aa; } :host[color='warn'] .md-progress-bar-background { background: url(\"data:image/svg+xml;charset=UTF-8,%3Csvg%20version%3D%271.1%27%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20xmlns%3Axlink%3D%27http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%27%20x%3D%270px%27%20y%3D%270px%27%20enable-background%3D%27new%200%200%205%202%27%20xml%3Aspace%3D%27preserve%27%20viewBox%3D%270%200%205%202%27%20preserveAspectRatio%3D%27none%20slice%27%3E%3Ccircle%20cx%3D%271%27%20cy%3D%271%27%20r%3D%271%27%20fill%3D%27#ffcdd2%27%2F%3E%3C%2Fsvg%3E\"); background-repeat: repeat-x; background-size: 10px 4px; } :host[color='warn'] .md-progress-bar-buffer { background-color: #ffcdd2; } :host[color='warn'] .md-progress-bar-fill::after { background-color: #e53935; } :host[mode='query'] { -webkit-transform: rotateZ(180deg); transform: rotateZ(180deg); } :host[mode='indeterminate'] .md-progress-bar-fill, :host[mode='query'] .md-progress-bar-fill { -webkit-transition: none; transition: none; } :host[mode='indeterminate'] .md-progress-bar-primary, :host[mode='query'] .md-progress-bar-primary { -webkit-animation: md-progress-bar-primary-indeterminate-translate 2000ms infinite linear; animation: md-progress-bar-primary-indeterminate-translate 2000ms infinite linear; left: -145.166611%; } :host[mode='indeterminate'] .md-progress-bar-primary.md-progress-bar-fill::after, :host[mode='query'] .md-progress-bar-primary.md-progress-bar-fill::after { -webkit-animation: md-progress-bar-primary-indeterminate-scale 2000ms infinite linear; animation: md-progress-bar-primary-indeterminate-scale 2000ms infinite linear; } :host[mode='indeterminate'] .md-progress-bar-secondary, :host[mode='query'] .md-progress-bar-secondary { -webkit-animation: md-progress-bar-secondary-indeterminate-translate 2000ms infinite linear; animation: md-progress-bar-secondary-indeterminate-translate 2000ms infinite linear; left: -54.888891%; visibility: visible; } :host[mode='indeterminate'] .md-progress-bar-secondary.md-progress-bar-fill::after, :host[mode='query'] .md-progress-bar-secondary.md-progress-bar-fill::after { -webkit-animation: md-progress-bar-secondary-indeterminate-scale 2000ms infinite linear; animation: md-progress-bar-secondary-indeterminate-scale 2000ms infinite linear; } :host[mode='buffer'] .md-progress-bar-background { -webkit-animation: md-progress-bar-background-scroll 250ms infinite linear; animation: md-progress-bar-background-scroll 250ms infinite linear; visibility: visible; } :host-context([dir='rtl']) { -webkit-transform: rotateY(180deg); transform: rotateY(180deg); } /** The values used for animations in md-progress-bar, both timing and transformation, can be considered magic values. They are sourced from the Material Design example spec and duplicate the values of the original designers definitions. The indeterminate state is essentially made up of two progress bars, one primary (the one that is shown in both the determinate and indeterminate states) and one secondary, which essentially mirrors the primary progress bar in appearance but is only shown to assist with the indeterminate animations. KEYFRAME BLOCK\t DESCRIPTION primary-indeterminate-translate Translation of the primary progressbar across the screen primary-indeterminate-scale Scaling of the primary progressbar as it's being translated across the screen secondary-indeterminate-translate Translation of the secondary progressbar across the screen secondary-indeterminate-scale Scaling of the secondary progressbar as it's being translated across the screen Because two different transform animations need to be applied at once, the translation is applied to the outer element and the scaling is applied to the inner element, which provides the illusion necessary to make the animation work. */ /** Animations for indeterminate and query mode. */ @-webkit-keyframes md-progress-bar-primary-indeterminate-translate { 0% { -webkit-transform: translateX(0); transform: translateX(0); } 20% { -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.70173, 0.49582); animation-timing-function: cubic-bezier(0.5, 0, 0.70173, 0.49582); -webkit-transform: translateX(0); transform: translateX(0); } 59.15% { -webkit-animation-timing-function: cubic-bezier(0.30244, 0.38135, 0.55, 0.95635); animation-timing-function: cubic-bezier(0.30244, 0.38135, 0.55, 0.95635); -webkit-transform: translateX(83.67142%); transform: translateX(83.67142%); } 100% { -webkit-transform: translateX(200.61106%); transform: translateX(200.61106%); } } @keyframes md-progress-bar-primary-indeterminate-translate { 0% { -webkit-transform: translateX(0); transform: translateX(0); } 20% { -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.70173, 0.49582); animation-timing-function: cubic-bezier(0.5, 0, 0.70173, 0.49582); -webkit-transform: translateX(0); transform: translateX(0); } 59.15% { -webkit-animation-timing-function: cubic-bezier(0.30244, 0.38135, 0.55, 0.95635); animation-timing-function: cubic-bezier(0.30244, 0.38135, 0.55, 0.95635); -webkit-transform: translateX(83.67142%); transform: translateX(83.67142%); } 100% { -webkit-transform: translateX(200.61106%); transform: translateX(200.61106%); } } @-webkit-keyframes md-progress-bar-primary-indeterminate-scale { 0% { -webkit-transform: scaleX(0.08); transform: scaleX(0.08); } 36.65% { -webkit-animation-timing-function: cubic-bezier(0.33473, 0.12482, 0.78584, 1); animation-timing-function: cubic-bezier(0.33473, 0.12482, 0.78584, 1); -webkit-transform: scaleX(0.08); transform: scaleX(0.08); } 69.15% { -webkit-animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1); animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1); -webkit-transform: scaleX(0.66148); transform: scaleX(0.66148); } 100% { -webkit-transform: scaleX(0.08); transform: scaleX(0.08); } } @keyframes md-progress-bar-primary-indeterminate-scale { 0% { -webkit-transform: scaleX(0.08); transform: scaleX(0.08); } 36.65% { -webkit-animation-timing-function: cubic-bezier(0.33473, 0.12482, 0.78584, 1); animation-timing-function: cubic-bezier(0.33473, 0.12482, 0.78584, 1); -webkit-transform: scaleX(0.08); transform: scaleX(0.08); } 69.15% { -webkit-animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1); animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1); -webkit-transform: scaleX(0.66148); transform: scaleX(0.66148); } 100% { -webkit-transform: scaleX(0.08); transform: scaleX(0.08); } } @-webkit-keyframes md-progress-bar-secondary-indeterminate-translate { 0% { -webkit-animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40969); animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40969); -webkit-transform: translateX(0); transform: translateX(0); } 25% { -webkit-animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73371); animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73371); -webkit-transform: translateX(37.65191%); transform: translateX(37.65191%); } 48.35% { -webkit-animation-timing-function: cubic-bezier(0.4, 0.62704, 0.6, 0.90203); animation-timing-function: cubic-bezier(0.4, 0.62704, 0.6, 0.90203); -webkit-transform: translateX(84.38617%); transform: translateX(84.38617%); } 100% { -webkit-transform: translateX(160.27778%); transform: translateX(160.27778%); } } @keyframes md-progress-bar-secondary-indeterminate-translate { 0% { -webkit-animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40969); animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40969); -webkit-transform: translateX(0); transform: translateX(0); } 25% { -webkit-animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73371); animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73371); -webkit-transform: translateX(37.65191%); transform: translateX(37.65191%); } 48.35% { -webkit-animation-timing-function: cubic-bezier(0.4, 0.62704, 0.6, 0.90203); animation-timing-function: cubic-bezier(0.4, 0.62704, 0.6, 0.90203); -webkit-transform: translateX(84.38617%); transform: translateX(84.38617%); } 100% { -webkit-transform: translateX(160.27778%); transform: translateX(160.27778%); } } @-webkit-keyframes md-progress-bar-secondary-indeterminate-scale { 0% { -webkit-animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40969); animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40969); -webkit-transform: scaleX(0.08); transform: scaleX(0.08); } 19.15% { -webkit-animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73371); animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73371); -webkit-transform: scaleX(0.4571); transform: scaleX(0.4571); } 44.15% { -webkit-animation-timing-function: cubic-bezier(0.4, 0.62704, 0.6, 0.90203); animation-timing-function: cubic-bezier(0.4, 0.62704, 0.6, 0.90203); -webkit-transform: scaleX(0.72796); transform: scaleX(0.72796); } 100% { -webkit-transform: scaleX(0.08); transform: scaleX(0.08); } } @keyframes md-progress-bar-secondary-indeterminate-scale { 0% { -webkit-animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40969); animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40969); -webkit-transform: scaleX(0.08); transform: scaleX(0.08); } 19.15% { -webkit-animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73371); animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73371); -webkit-transform: scaleX(0.4571); transform: scaleX(0.4571); } 44.15% { -webkit-animation-timing-function: cubic-bezier(0.4, 0.62704, 0.6, 0.90203); animation-timing-function: cubic-bezier(0.4, 0.62704, 0.6, 0.90203); -webkit-transform: scaleX(0.72796); transform: scaleX(0.72796); } 100% { -webkit-transform: scaleX(0.08); transform: scaleX(0.08); } } /** Animation for buffer mode. */ @-webkit-keyframes md-progress-bar-background-scroll { to { -webkit-transform: translateX(-10px); transform: translateX(-10px); } } @keyframes md-progress-bar-background-scroll { to { -webkit-transform: translateX(-10px); transform: translateX(-10px); } } "],changeDetection:o.ChangeDetectionStrategy.OnPush}),i("design:paramtypes",[])],MdProgressBar)}();t.MdProgressBar=a,t.MD_PROGRESS_BAR_DIRECTIVES=[a];var l=function(){function MdProgressBarModule(){}return MdProgressBarModule=r([o.NgModule({imports:[s.CommonModule],exports:t.MD_PROGRESS_BAR_DIRECTIVES,declarations:t.MD_PROGRESS_BAR_DIRECTIVES}),i("design:paramtypes",[])],MdProgressBarModule)}();t.MdProgressBarModule=l},function(e,t,n){"use strict";var r=this&&this.__extends||function(e,t){function __(){this.constructor=e}for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)},i=this&&this.__decorate||function(e,t,n,r){var i,o=arguments.length,s=o<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(s=(o<3?i(s):o>3?i(t,n,s):i(t,n))||s);return o>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},s=this&&this.__param||function(e,t){return function(n,r){t(n,r,e)}},a=n(0),l=n(3),c=n(637),u=n(634),p=n(188),d=n(282),h=function(e){function MdDuplicatedSidenavError(t){e.call(this,"A sidenav was already declared for 'align=\""+t+"\"'")}return r(MdDuplicatedSidenavError,e),MdDuplicatedSidenavError}(p.MdError);t.MdDuplicatedSidenavError=h;var f=function(){function MdSidenav(e){this._elementRef=e,this.align="start",this.mode="over",this._opened=!1,this.onOpenStart=new a.EventEmitter,this.onOpen=new a.EventEmitter,this.onCloseStart=new a.EventEmitter,this.onClose=new a.EventEmitter,this._transition=!1}return Object.defineProperty(MdSidenav.prototype,"opened",{get:function(){return this._opened},set:function(e){this.toggle(e)},enumerable:!0,configurable:!0}),MdSidenav.prototype.open=function(){return this.toggle(!0)},MdSidenav.prototype.close=function(){return this.toggle(!1)},MdSidenav.prototype.toggle=function(e){if(void 0===e&&(e=!this.opened),e===this.opened)return this._transition?e?this._openPromise:this._closePromise:Promise.resolve(null);if(this._opened=e,this._transition=!0,e?this.onOpenStart.emit(null):this.onCloseStart.emit(null),e){if(null==this._openPromise){var t=new u.PromiseCompleter;this._openPromise=t.promise,this._openPromiseReject=t.reject,this._openPromiseResolve=t.resolve}return this._openPromise}if(null==this._closePromise){var t=new u.PromiseCompleter;this._closePromise=t.promise,this._closePromiseReject=t.reject,this._closePromiseResolve=t.resolve}return this._closePromise},MdSidenav.prototype._onTransitionEnd=function(e){e.target==this._elementRef.nativeElement&&e.propertyName.endsWith("transform")&&(this._transition=!1,this._opened?(null!=this._openPromise&&this._openPromiseResolve(),null!=this._closePromise&&this._closePromiseReject(),this.onOpen.emit(null)):(null!=this._closePromise&&this._closePromiseResolve(),null!=this._openPromise&&this._openPromiseReject(),this.onClose.emit(null)),this._openPromise=null,this._closePromise=null)},Object.defineProperty(MdSidenav.prototype,"_isClosing",{get:function(){return!this._opened&&this._transition},enumerable:!0,configurable:!0}),Object.defineProperty(MdSidenav.prototype,"_isOpening",{get:function(){return this._opened&&this._transition},enumerable:!0,configurable:!0}),Object.defineProperty(MdSidenav.prototype,"_isClosed",{get:function(){return!this._opened&&!this._transition},enumerable:!0,configurable:!0}),Object.defineProperty(MdSidenav.prototype,"_isOpened",{get:function(){return this._opened&&!this._transition},enumerable:!0,configurable:!0}),Object.defineProperty(MdSidenav.prototype,"_isEnd",{get:function(){return"end"==this.align},enumerable:!0,configurable:!0}),Object.defineProperty(MdSidenav.prototype,"_modeSide",{get:function(){return"side"==this.mode},enumerable:!0,configurable:!0}),Object.defineProperty(MdSidenav.prototype,"_modeOver",{get:function(){return"over"==this.mode},enumerable:!0,configurable:!0}),Object.defineProperty(MdSidenav.prototype,"_modePush",{get:function(){return"push"==this.mode},enumerable:!0,configurable:!0}),Object.defineProperty(MdSidenav.prototype,"_width",{get:function(){return this._elementRef.nativeElement?this._elementRef.nativeElement.offsetWidth:0},enumerable:!0,configurable:!0}),i([a.Input(),o("design:type",Object)],MdSidenav.prototype,"align",void 0),i([a.Input(),o("design:type",Object)],MdSidenav.prototype,"mode",void 0),i([a.Input("opened"),d.BooleanFieldValue(),o("design:type",Boolean)],MdSidenav.prototype,"_opened",void 0),i([a.Output("open-start"),o("design:type",Object)],MdSidenav.prototype,"onOpenStart",void 0),i([a.Output("open"),o("design:type",Object)],MdSidenav.prototype,"onOpen",void 0),i([a.Output("close-start"),o("design:type",Object)],MdSidenav.prototype,"onCloseStart",void 0),i([a.Output("close"),o("design:type",Object)],MdSidenav.prototype,"onClose",void 0),i([a.HostBinding("class.md-sidenav-closing"),o("design:type",Object)],MdSidenav.prototype,"_isClosing",null),i([a.HostBinding("class.md-sidenav-opening"),o("design:type",Object)],MdSidenav.prototype,"_isOpening",null),i([a.HostBinding("class.md-sidenav-closed"),o("design:type",Object)],MdSidenav.prototype,"_isClosed",null),i([a.HostBinding("class.md-sidenav-opened"),o("design:type",Object)],MdSidenav.prototype,"_isOpened",null),i([a.HostBinding("class.md-sidenav-end"),o("design:type",Object)],MdSidenav.prototype,"_isEnd",null),i([a.HostBinding("class.md-sidenav-side"),o("design:type",Object)],MdSidenav.prototype,"_modeSide",null),i([a.HostBinding("class.md-sidenav-over"),o("design:type",Object)],MdSidenav.prototype,"_modeOver",null),i([a.HostBinding("class.md-sidenav-push"),o("design:type",Object)],MdSidenav.prototype,"_modePush",null),MdSidenav=i([a.Component({selector:"md-sidenav",template:"",host:{"(transitionend)":"_onTransitionEnd($event)"},changeDetection:a.ChangeDetectionStrategy.OnPush}),o("design:paramtypes",[a.ElementRef])],MdSidenav)}();t.MdSidenav=f;var m=function(){function MdSidenavLayout(e,t,n){var r=this;this._dir=e,this._element=t,this._renderer=n,null!=e&&e.dirChange.subscribe(function(){return r._validateDrawers()})}return Object.defineProperty(MdSidenavLayout.prototype,"start",{get:function(){return this._start},enumerable:!0,configurable:!0}),Object.defineProperty(MdSidenavLayout.prototype,"end",{get:function(){return this._end},enumerable:!0,configurable:!0}),MdSidenavLayout.prototype.ngAfterContentInit=function(){var e=this;this._sidenavs.changes.subscribe(function(){return e._validateDrawers()}),this._sidenavs.forEach(function(t){return e._watchSidenavToggle(t)}),this._validateDrawers()},MdSidenavLayout.prototype._watchSidenavToggle=function(e){var t=this;e&&"side"!==e.mode&&(e.onOpen.subscribe(function(){return t._setLayoutClass(e,!0)}),e.onClose.subscribe(function(){return t._setLayoutClass(e,!1)}))},MdSidenavLayout.prototype._setLayoutClass=function(e,t){this._renderer.setElementClass(this._element.nativeElement,"md-sidenav-opened",t)},MdSidenavLayout.prototype._validateDrawers=function(){var e=this;this._start=this._end=null,this._sidenavs.forEach(function(t){if("end"==t.align){if(null!=e._end)throw new h("end");e._end=t}else{if(null!=e._start)throw new h("start");e._start=t}}),this._right=this._left=null,null==this._dir||"ltr"==this._dir.value?(this._left=this._start,this._right=this._end):(this._left=this._end,this._right=this._start)},MdSidenavLayout.prototype._closeModalSidenav=function(){null!=this._start&&"side"!=this._start.mode&&this._start.close(),null!=this._end&&"side"!=this._end.mode&&this._end.close()},MdSidenavLayout.prototype._isShowingBackdrop=function(){return this._isSidenavOpen(this._start)&&"side"!=this._start.mode||this._isSidenavOpen(this._end)&&"side"!=this._end.mode},MdSidenavLayout.prototype._isSidenavOpen=function(e){return null!=e&&e.opened},MdSidenavLayout.prototype._getSidenavEffectiveWidth=function(e,t){return this._isSidenavOpen(e)&&e.mode==t?e._width:0},MdSidenavLayout.prototype._getMarginLeft=function(){return this._getSidenavEffectiveWidth(this._left,"side")},MdSidenavLayout.prototype._getMarginRight=function(){return this._getSidenavEffectiveWidth(this._right,"side")},MdSidenavLayout.prototype._getPositionLeft=function(){return this._getSidenavEffectiveWidth(this._left,"push")},MdSidenavLayout.prototype._getPositionRight=function(){return this._getSidenavEffectiveWidth(this._right,"push")},MdSidenavLayout.prototype._getPositionOffset=function(){return this._getPositionLeft()-this._getPositionRight()},MdSidenavLayout.prototype._getStyles=function(){return{marginLeft:this._getMarginLeft()+"px",marginRight:this._getMarginRight()+"px",transform:"translate3d("+this._getPositionOffset()+"px, 0, 0)"}},i([a.ContentChildren(f),o("design:type",a.QueryList)],MdSidenavLayout.prototype,"_sidenavs",void 0),MdSidenavLayout=i([a.Component({selector:"md-sidenav-layout",template:'
',styles:["/** * Mixin that creates a new stacking context. * see https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context */ /** * This mixin hides an element visually. * That means it's still accessible for screen-readers but not visible in view. */ /** * Forces an element to grow to fit floated contents; used as as an alternative to * `overflow: hidden;` because it doesn't cut off contents. */ /** * A mixin, which generates temporary ink ripple on a given component. * When $bindToParent is set to true, it will check for the focused class on the same selector as you included * that mixin. * It is also possible to specify the color palette of the temporary ripple. By default it uses the * accent palette for its background. */ /** * A collection of mixins and CSS classes that can be used to apply elevation to a material * element. * See: https://www.google.com/design/spec/what-is-material/elevation-shadows.html * Examples: * * * .md-foo { * @include $md-elevation(2); * * &:active { * @include $md-elevation(8); * } * } * *

Some content

* * For an explanation of the design behind how elevation is implemented, see the design doc at * https://goo.gl/Kq0k9Z. */ /** * The css property used for elevation. In most cases this should not be changed. It is exposed * as a variable for abstraction / easy use when needing to reference the property directly, for * example in a will-change rule. */ /** The default duration value for elevation transitions. */ /** The default easing value for elevation transitions. */ /** * Applies the correct css rules to an element to give it the elevation specified by $zValue. * The $zValue must be between 0 and 24. */ /** * Returns a string that can be used as the value for a transition property for elevation. * Calling this function directly is useful in situations where a component needs to transition * more than one property. * * .foo { * transition: md-elevation-transition-property-value(), opacity 100ms ease; * will-change: $md-elevation-property, opacity; * } */ /** * Applies the correct css rules needed to have an element transition between elevations. * This mixin should be applied to elements whose elevation values will change depending on their * context (e.g. when active or disabled). */ /* This mixin ensures an element spans the whole viewport.*/ /** * Mixin to help with defining LTR/RTL 'transform: translate3d()' values. * @param $open The translation value when the sidenav is opened. * @param $close The translation value when the sidenav is closed. */ :host { position: relative; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); box-sizing: border-box; -webkit-overflow-scrolling: touch; display: block; overflow: hidden; } :host[fullscreen] { position: fixed; top: 0; left: 0; right: 0; bottom: 0; } :host[fullscreen].md-sidenav-opened { overflow: hidden; } :host > .md-sidenav-backdrop { position: fixed; top: 0; left: 0; right: 0; bottom: 0; display: block; z-index: 2; visibility: hidden; } :host > .md-sidenav-backdrop.md-sidenav-shown { visibility: visible; background-color: rgba(0, 0, 0, 0.6); } :host > md-content { position: relative; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); display: block; height: 100%; overflow: auto; } :host > md-sidenav { position: relative; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); display: block; position: absolute; top: 0; bottom: 0; z-index: 3; min-width: 5%; overflow-y: auto; background-color: white; -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } :host > md-sidenav.md-sidenav-closed { visibility: hidden; } :host > md-sidenav.md-sidenav-closing { -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); will-change: transform; } :host > md-sidenav.md-sidenav-opening { box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12); visibility: visible; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); will-change: transform; } :host > md-sidenav.md-sidenav-opened { box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12); -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } :host > md-sidenav.md-sidenav-push { background-color: white; } :host > md-sidenav.md-sidenav-side { z-index: 1; } :host > md-sidenav.md-sidenav-end { right: 0; -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } :host > md-sidenav.md-sidenav-end.md-sidenav-closed { visibility: hidden; } :host > md-sidenav.md-sidenav-end.md-sidenav-closing { -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); will-change: transform; } :host > md-sidenav.md-sidenav-end.md-sidenav-opening { box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12); visibility: visible; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); will-change: transform; } :host > md-sidenav.md-sidenav-end.md-sidenav-opened { box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12); -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } :host-context([dir='rtl']) > md-sidenav { -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); } :host-context([dir='rtl']) > md-sidenav.md-sidenav-closed { visibility: hidden; } :host-context([dir='rtl']) > md-sidenav.md-sidenav-closing { -webkit-transform: translate3d(100%, 0, 0); transform: translate3d(100%, 0, 0); will-change: transform; } :host-context([dir='rtl']) > md-sidenav.md-sidenav-opening { box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12); visibility: visible; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); will-change: transform; } :host-context([dir='rtl']) > md-sidenav.md-sidenav-opened { box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12); -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } :host-context([dir='rtl']) > md-sidenav.md-sidenav-end { left: 0; right: auto; -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); } :host-context([dir='rtl']) > md-sidenav.md-sidenav-end.md-sidenav-closed { visibility: hidden; } :host-context([dir='rtl']) > md-sidenav.md-sidenav-end.md-sidenav-closing { -webkit-transform: translate3d(-100%, 0, 0); transform: translate3d(-100%, 0, 0); will-change: transform; } :host-context([dir='rtl']) > md-sidenav.md-sidenav-end.md-sidenav-opening { box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12); visibility: visible; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); will-change: transform; } :host-context([dir='rtl']) > md-sidenav.md-sidenav-end.md-sidenav-opened { box-shadow: 0px 2px 1px -1px rgba(0, 0, 0, 0.2), 0px 1px 1px 0px rgba(0, 0, 0, 0.14), 0px 1px 3px 0px rgba(0, 0, 0, 0.12); -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); } ","/** * We separate transitions to be able to disable them in unit tests, by simply not loading this file. */ :host > .md-sidenav-backdrop.md-sidenav-shown { -webkit-transition: background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1); transition: background-color 400ms cubic-bezier(0.25, 0.8, 0.25, 1); } :host > md-content { -webkit-transition: -webkit-transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1); transition: -webkit-transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1); transition: transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1); transition: transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1); } :host > md-sidenav { -webkit-transition: -webkit-transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1); transition: -webkit-transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1); transition: transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1); transition: transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1); } "] diff --git a/web/vtctld2/app/main.af70c4da81e16ed02099.bundle.js.gz b/web/vtctld2/app/main.af70c4da81e16ed02099.bundle.js.gz new file mode 100644 index 00000000000..e9fc9298ad6 Binary files /dev/null and b/web/vtctld2/app/main.af70c4da81e16ed02099.bundle.js.gz differ diff --git a/web/vtctld2/src/app/workflows/workflow-list.component.ts b/web/vtctld2/src/app/workflows/workflow-list.component.ts index b6ae97582c9..d861bdaa5e9 100644 --- a/web/vtctld2/src/app/workflows/workflow-list.component.ts +++ b/web/vtctld2/src/app/workflows/workflow-list.component.ts @@ -209,11 +209,24 @@ export class WorkflowListComponent implements OnDestroy, OnInit { prepareNew(flags) { let newFlags = new NewWorkflowFlags(this.featuresService.workflows).flags; + // update flags for (let key of Object.keys(flags)) { newFlags[key].value = flags[key].value; } - this.workflowParametersSanitize(newFlags); - return new PrepareResponse(true, newFlags); + // make sure that we only include flags pertinent to current workflow + let filteredFlags = {}; + let factory_name = newFlags['factory_name'].value; + // all workflows include factory name and skip start + filteredFlags['factory_name'] = newFlags['factory_name']; + filteredFlags['skip_start']= newFlags['skip_start']; + for (let key of Object.keys(newFlags)) { + if (key.startsWith(factory_name)) { + filteredFlags[key]= newFlags[key]; + } + } + + this.workflowParametersSanitize(filteredFlags); + return new PrepareResponse(true, filteredFlags); } workflowParametersSanitize(newFlags) {