/** * @license Angular v8.1.3 * (c) 2010-2019 Google LLC. https://angular.io/ * License: MIT */ var $deferred,$resolved,$provided,$reflect={defineMetadata:function(){},getOwnMetadata:function(){}},Reflect=("undefined"!=typeof global?global:{}).Reflect||{};function $getModule(e){return $provided[e]||require(e)}function define(e,t){$deferred={modules:e,cb:t}}Object.keys($reflect).forEach(function(e){Reflect[e]=Reflect[e]||$reflect[e]}),module.exports=function(e){if($resolved)return $resolved;var t={};return $provided=Object.assign({"reflect-metadata":$reflect},e||{},{exports:t}),$deferred.cb.apply(this,$deferred.modules.map($getModule)),$resolved=t,t},define(["exports","path","typescript","fs"],function(e,t,n,r){"use strict";var i=function(e,t){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s,a=function(){return(a=Object.assign||function e(t){for(var n,r=1,i=arguments.length;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}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=o.next()).done;)s.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return s}function f(){for(var e=[],t=0;t",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",image:"ℑ",infin:"∞",int:"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ï",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"←",lArr:"⇐",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"◊",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Μ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Ν",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Œ",oelig:"œ",Ograve:"Ò",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Π",pi:"π",piv:"ϖ",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"∏",prop:"∝",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"”",real:"ℜ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"ρ",rlm:"‏",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Š",scaron:"š",sdot:"⋅",sect:"§",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sim:"∼",spades:"♠",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"τ",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"˜",times:"×",trade:"™",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",Uuml:"Ü",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"‍",zwnj:"‌"},w="";b.ngsp=w; /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var x,E,S=function(){function e(e){var t=this,n=void 0===e?{}:e,r=n.closedByChildren,i=n.implicitNamespacePrefix,o=n.contentType,a=void 0===o?s.PARSABLE_DATA:o,u=n.closedByParent,l=void 0!==u&&u,c=n.isVoid,p=void 0!==c&&c,h=n.ignoreFirstLf,f=void 0!==h&&h;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,r&&r.length>0&&r.forEach(function(e){return t.closedByChildren[e]=!0}),this.isVoid=p,this.closedByParent=l||p,this.implicitNamespacePrefix=i||null,this.contentType=a,this.ignoreFirstLf=f}return e.prototype.isClosedByChild=function(e){return this.isVoid||e.toLowerCase()in this.closedByChildren},e}();function C(e){return E||(x=new S,E={base:new S({isVoid:!0}),meta:new S({isVoid:!0}),area:new S({isVoid:!0}),embed:new S({isVoid:!0}),link:new S({isVoid:!0}),img:new S({isVoid:!0}),input:new S({isVoid:!0}),param:new S({isVoid:!0}),hr:new S({isVoid:!0}),br:new S({isVoid:!0}),source:new S({isVoid:!0}),track:new S({isVoid:!0}),wbr:new S({isVoid:!0}),p:new S({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 S({closedByChildren:["tbody","tfoot"]}),tbody:new S({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new S({closedByChildren:["tbody"],closedByParent:!0}),tr:new S({closedByChildren:["tr"],closedByParent:!0}),td:new S({closedByChildren:["td","th"],closedByParent:!0}),th:new S({closedByChildren:["td","th"],closedByParent:!0}),col:new S({isVoid:!0}),svg:new S({implicitNamespacePrefix:"svg"}),math:new S({implicitNamespacePrefix:"math"}),li:new S({closedByChildren:["li"],closedByParent:!0}),dt:new S({closedByChildren:["dt","dd"]}),dd:new S({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new S({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new S({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new S({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new S({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new S({closedByChildren:["optgroup"],closedByParent:!0}),option:new S({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new S({ignoreFirstLf:!0}),listing:new S({ignoreFirstLf:!0}),style:new S({contentType:s.RAW_TEXT}),script:new S({contentType:s.RAW_TEXT}),title:new S({contentType:s.ESCAPABLE_RAW_TEXT}),textarea:new S({contentType:s.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),E[e.toLowerCase()]||x} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var T,N,k=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),A=function(){function e(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return e.parse=function(t){var n,r=[],i=function(e,t){t.notSelectors.length>0&&!t.element&&0==t.classNames.length&&0==t.attrs.length&&(t.element="*"),e.push(t)},o=new e,s=o,a=!1;for(k.lastIndex=0;n=k.exec(t);){if(n[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new e,o.notSelectors.push(s)}if(n[2]&&s.setElement(n[2]),n[3]&&s.addClassName(n[3]),n[4]&&s.addAttribute(n[4],n[6]),n[7]&&(a=!1,s=o),n[8]){if(a)throw new Error("Multiple selectors in :not are not supported");i(r,o),o=s=new e}}return i(r,o),r},e.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},e.prototype.hasElementSelector=function(){return!!this.element},e.prototype.setElement=function(e){void 0===e&&(e=null),this.element=e},e.prototype.getMatchingElementTemplate=function(){for(var e=this.element||"div",t=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",r=0;r":"<"+e+t+n+">"},e.prototype.getAttrs=function(){var e=[];return this.classNames.length>0&&e.push("class",this.classNames.join(" ")),e.concat(this.attrs)},e.prototype.addAttribute=function(e,t){void 0===t&&(t=""),this.attrs.push(e,t&&t.toLowerCase()||"")},e.prototype.addClassName=function(e){this.classNames.push(e.toLowerCase())},e.prototype.toString=function(){var e=this.element||"";if(this.classNames&&this.classNames.forEach(function(t){return e+="."+t}),this.attrs)for(var t=0;t1&&(n=new I(e),this._listContexts.push(n));for(var r=0;r0)||this.listContext&&this.listContext.alreadyMatched||(n=!P.createNotMatcher(this.notSelectors).match(e,null)),!n||!t||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),t(this.selector,this.cbContext)),n},e}(),O=re("Inject",function(e){return{token:e}}),R=re("InjectionToken",function(e){return{_desc:e,ngInjectableDef:void 0}}),D=re("Attribute",function(e){return{attributeName:e}}),L=re("ContentChildren",function(e,t){return void 0===t&&(t={}),a({selector:e,first:!1,isViewQuery:!1,descendants:!1},t)}),F=re("ContentChild",function(e,t){return void 0===t&&(t={}),a({selector:e,first:!0,isViewQuery:!1,descendants:!0},t)}),j=re("ViewChildren",function(e,t){return void 0===t&&(t={}),a({selector:e,first:!1,isViewQuery:!0,descendants:!0},t)}),V=re("ViewChild",function(e,t){return a({selector:e,first:!0,isViewQuery:!0,descendants:!0},t)}),B=re("Directive",function(e){return void 0===e&&(e={}),e});!function(e){e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom"}(T||(T={})),function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"}(N||(N={}));var H,U,q,K=re("Component",function(e){return void 0===e&&(e={}),a({changeDetection:N.Default},e)}),z=re("Pipe",function(e){return a({pure:!0},e)}),W=re("Input",function(e){return{bindingPropertyName:e}}),Q=re("Output",function(e){return{bindingPropertyName:e}}),$=re("HostBinding",function(e){return{hostPropertyName:e}}),G=re("HostListener",function(e,t){return{eventName:e,args:t}}),X=re("NgModule",function(e){return e}),Y=re("Injectable",function(e){return void 0===e&&(e={}),e}),Z=re("Optional"),J=re("Self"),ee=re("SkipSelf"),te=re("Host"),ne=Function;function re(e,t){function n(){for(var n=[],r=0;r=55296&&r<=56319&&e.length>n+1){var i=e.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-56320+65536)}r<=127?t+=String.fromCharCode(r):r<=2047?t+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?t+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(t+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return t}function Rt(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(Rt).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;if(!e.toString)return"object";var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Dt(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e}function Lt(e){return!!e&&"function"==typeof e.then}var Ft=function Ft(e){this.full=e;var t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")},jt="undefined"!=typeof window&&window,Vt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Bt="undefined"!=typeof global&&global||jt||Vt,Ht={},Ut=function(e){function t(t){var n=e.call(this,t.type)||this;return n.resolved=t,n.original=t,n}return o(t,e),t.prototype.visitExpression=function(e,t){return t===Ht?this.original.visitExpression(e,t):this.resolved.visitExpression(e,t)},t.prototype.isEquivalent=function(e){return e instanceof t&&this.resolved.isEquivalent(e.resolved)},t.prototype.isConstant=function(){return!0},t.prototype.fixup=function(e){this.resolved=e,this.shared=!0},t}(be),qt=function(){function e(){this.statements=[],this.literals=new Map,this.literalFactories=new Map,this.injectorDefinitions=new Map,this.directiveDefinitions=new Map,this.componentDefinitions=new Map,this.pipeDefinitions=new Map,this.nextNameIndex=0}return e.prototype.getConstLiteral=function(e,t){if(e instanceof Me||e instanceof Ut)return e;var n=this.keyOf(e),r=this.literals.get(n),i=!1;if(r||(r=new Ut(e),this.literals.set(n,r),i=!0),!i&&!r.shared||i&&t){var o=this.freshName();this.statements.push(ct(o).set(e).toDeclStmt(fe,[ke.Final])),r.fixup(ct(o))}return r},e.prototype.getDefinition=function(e,t,n,r){void 0===r&&(r=!1);var i=this.definitionsOf(t),o=i.get(e),s=!1;if(!o){var a=this.propertyNameOf(t);o=new Ut(n.importExpr(e).prop(a)),i.set(e,o),s=!0}if(!s&&!o.shared||s&&r){var u=this.freshName();this.statements.push(ct(u).set(o.resolved).toDeclStmt(fe,[ke.Final])),o.fixup(ct(u))}return o},e.prototype.getLiteralFactory=function(e){if(e instanceof qe){var t=e.entries.map(function(e){return e.isConstant()?e:yt(null)}),n=this.keyOf(ft(t));return this._getLiteralFactory(n,e.entries,function(e){return ft(e)})}var r=dt(e.entries.map(function(e){return{key:e.key,value:e.value.isConstant()?e.value:yt(null),quoted:e.quoted}}));return n=this.keyOf(r),this._getLiteralFactory(n,e.entries.map(function(e){return e.value}),function(t){return dt(t.map(function(t,n){return{key:e.entries[n].key,value:t,quoted:e.entries[n].quoted}}))})},e.prototype._getLiteralFactory=function(e,t,n){var r=this,i=this.literalFactories.get(e),o=t.filter(function(e){return!e.isConstant()});if(!i){var s=t.map(function(e,t){return e.isConstant()?r.getConstLiteral(e,!0):ct("a"+t)}),a=vt(s.filter(Wt).map(function(e){return new je(e.name,he)}),[new Je(n(s))],fe),u=this.freshName();this.statements.push(ct(u).set(a).toDeclStmt(fe,[ke.Final])),i=ct(u),this.literalFactories.set(e,i)}return{literalFactory:i,literalFactoryArguments:o}},e.prototype.uniqueName=function(e){return""+e+this.nextNameIndex++},e.prototype.definitionsOf=function(e){switch(e){case 2:return this.componentDefinitions;case 1:return this.directiveDefinitions;case 0:return this.injectorDefinitions;case 3:return this.pipeDefinitions}return Nt("Unknown definition kind "+e),this.componentDefinitions},e.prototype.propertyNameOf=function(e){switch(e){case 2:return"ngComponentDef";case 1:return"ngDirectiveDef";case 0:return"ngInjectorDef";case 3:return"ngPipeDef"}return Nt("Unknown definition kind "+e),""},e.prototype.freshName=function(){return this.uniqueName("_c")},e.prototype.keyOf=function(e){return e.visitExpression(new Kt,Ht)},e}(),Kt=function(){function e(){this.visitWrappedNodeExpr=zt,this.visitWriteVarExpr=zt,this.visitWriteKeyExpr=zt,this.visitWritePropExpr=zt,this.visitInvokeMethodExpr=zt,this.visitInvokeFunctionExpr=zt,this.visitInstantiateExpr=zt,this.visitConditionalExpr=zt,this.visitNotExpr=zt,this.visitAssertNotNullExpr=zt,this.visitCastExpr=zt,this.visitFunctionExpr=zt,this.visitBinaryOperatorExpr=zt,this.visitReadPropExpr=zt,this.visitReadKeyExpr=zt,this.visitCommaExpr=zt}return e.prototype.visitLiteralExpr=function(e){return""+("string"==typeof e.value?'"'+e.value+'"':e.value)},e.prototype.visitLiteralArrayExpr=function(e,t){var n=this;return"["+e.entries.map(function(e){return e.visitExpression(n,t)}).join(",")+"]"},e.prototype.visitLiteralMapExpr=function(e,t){var n=this;return"{"+e.entries.map(function(e){return function(e){var t=e.quoted?'"':"";return""+t+e.key+t}(e)+":"+e.value.visitExpression(n,t)}).join(",")},e.prototype.visitExternalExpr=function(e){return e.value.moduleName?"EX:"+e.value.moduleName+":"+e.value.name:"EX:"+e.value.runtime.name},e.prototype.visitReadVarExpr=function(e){return"VAR:"+e.name},e.prototype.visitTypeofExpr=function(e,t){return"TYPEOF:"+e.expr.visitExpression(this,t)},e}();function zt(e){throw new Error("Invalid state: Visitor "+this.constructor.name+" doesn't handle "+e.constructor.name)}function Wt(e){return e instanceof xe} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var Qt="@angular/core",$t=function(){function e(){}return e.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleName:Qt},e.ElementRef={name:"ElementRef",moduleName:Qt},e.NgModuleRef={name:"NgModuleRef",moduleName:Qt},e.ViewContainerRef={name:"ViewContainerRef",moduleName:Qt},e.ChangeDetectorRef={name:"ChangeDetectorRef",moduleName:Qt},e.QueryList={name:"QueryList",moduleName:Qt},e.TemplateRef={name:"TemplateRef",moduleName:Qt},e.Renderer2={name:"Renderer2",moduleName:Qt},e.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleName:Qt},e.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleName:Qt},e.ComponentFactory={name:"ComponentFactory",moduleName:Qt},e.ComponentRef={name:"ComponentRef",moduleName:Qt},e.NgModuleFactory={name:"NgModuleFactory",moduleName:Qt},e.createModuleFactory={name:"ɵcmf",moduleName:Qt},e.moduleDef={name:"ɵmod",moduleName:Qt},e.moduleProviderDef={name:"ɵmpd",moduleName:Qt},e.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleName:Qt},e.inject={name:"ɵɵinject",moduleName:Qt},e.INJECTOR={name:"INJECTOR",moduleName:Qt},e.Injector={name:"Injector",moduleName:Qt},e.ɵɵdefineInjectable={name:"ɵɵdefineInjectable",moduleName:Qt},e.InjectableDef={name:"ɵɵInjectableDef",moduleName:Qt},e.ViewEncapsulation={name:"ViewEncapsulation",moduleName:Qt},e.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:Qt},e.SecurityContext={name:"SecurityContext",moduleName:Qt},e.LOCALE_ID={name:"LOCALE_ID",moduleName:Qt},e.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleName:Qt},e.inlineInterpolate={name:"ɵinlineInterpolate",moduleName:Qt},e.interpolate={name:"ɵinterpolate",moduleName:Qt},e.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleName:Qt},e.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleName:Qt},e.Renderer={name:"Renderer",moduleName:Qt},e.viewDef={name:"ɵvid",moduleName:Qt},e.elementDef={name:"ɵeld",moduleName:Qt},e.anchorDef={name:"ɵand",moduleName:Qt},e.textDef={name:"ɵted",moduleName:Qt},e.directiveDef={name:"ɵdid",moduleName:Qt},e.providerDef={name:"ɵprd",moduleName:Qt},e.queryDef={name:"ɵqud",moduleName:Qt},e.pureArrayDef={name:"ɵpad",moduleName:Qt},e.pureObjectDef={name:"ɵpod",moduleName:Qt},e.purePipeDef={name:"ɵppd",moduleName:Qt},e.pipeDef={name:"ɵpid",moduleName:Qt},e.nodeValue={name:"ɵnov",moduleName:Qt},e.ngContentDef={name:"ɵncd",moduleName:Qt},e.unwrapValue={name:"ɵunv",moduleName:Qt},e.createRendererType2={name:"ɵcrt",moduleName:Qt},e.RendererType2={name:"RendererType2",moduleName:Qt},e.ViewDefinition={name:"ɵViewDefinition",moduleName:Qt},e.createComponentFactory={name:"ɵccf",moduleName:Qt},e.setClassMetadata={name:"ɵsetClassMetadata",moduleName:Qt},e}();function Gt(e){return{identifier:{reference:e}}}function Xt(e,t){return Gt(e.resolveExternalReference(t))} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var Yt=function(){function e(e,t,n){this.filePath=e,this.name=t,this.members=n}return e.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},e}(),Zt=function(){function e(){this.cache=new Map}return e.prototype.get=function(e,t,n){var r='"'+e+'".'+t+((n=n||[]).length?"."+n.join("."):""),i=this.cache.get(r);return i||(i=new Yt(e,t,n),this.cache.set(r,i)),i},e}(),Jt=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function en(e){return e.replace(/\W/g,"_")}var tn,nn=0;function rn(e){if(!e||!e.reference)return null;var t=e.reference;if(t instanceof Yt)return t.name;if(t.__anonymousType)return t.__anonymousType;var n=Rt(t);return n.indexOf("(")>=0?(n="anonymous_"+nn++,t.__anonymousType=n):n=en(n),n}function on(e){return null!=e.value?en(e.value):rn(e.identifier)}function sn(e){return null!=e.identifier?e.identifier.reference:e.value}!function(e){e[e.Pipe=0]="Pipe",e[e.Directive=1]="Directive",e[e.NgModule=2]="NgModule",e[e.Injectable=3]="Injectable"}(tn||(tn={}));var an=function an(e){var t=void 0===e?{}:e,n=t.styles,r=t.styleUrls;this.moduleUrl=t.moduleUrl||null,this.styles=fn(n),this.styleUrls=fn(r)},un=function(){function e(e){var t=e.template,n=e.templateUrl,r=e.htmlAst,i=e.styles,o=e.styleUrls,s=e.externalStylesheets,a=e.animations,u=e.ngContentSelectors,l=e.interpolation,c=e.isInline,p=e.preserveWhitespaces;if(this.encapsulation=e.encapsulation,this.template=t,this.templateUrl=n,this.htmlAst=r,this.styles=fn(i),this.styleUrls=fn(o),this.externalStylesheets=fn(s),this.animations=a?vn(a):[],this.ngContentSelectors=u||[],l&&2!=l.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=l,this.isInline=c,this.preserveWhitespaces=p}return e.prototype.toSummary=function(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}},e}(),ln=function(){function e(e){var t=e.type,n=e.isComponent,r=e.selector,i=e.exportAs,o=e.changeDetection,s=e.inputs,a=e.outputs,u=e.hostListeners,l=e.hostProperties,c=e.hostAttributes,p=e.providers,h=e.viewProviders,f=e.queries,d=e.guards,v=e.viewQueries,m=e.entryComponents,y=e.template,g=e.componentViewType,_=e.rendererType,b=e.componentFactory;this.isHost=!!e.isHost,this.type=t,this.isComponent=n,this.selector=r,this.exportAs=i,this.changeDetection=o,this.inputs=s,this.outputs=a,this.hostListeners=u,this.hostProperties=l,this.hostAttributes=c,this.providers=fn(p),this.viewProviders=fn(h),this.queries=fn(f),this.guards=d,this.viewQueries=fn(v),this.entryComponents=fn(m),this.template=y,this.componentViewType=g,this.rendererType=_,this.componentFactory=b}return e.create=function(t){var n=t.isHost,r=t.type,i=t.isComponent,o=t.selector,s=t.exportAs,a=t.changeDetection,u=t.inputs,l=t.outputs,c=t.host,p=t.providers,h=t.viewProviders,f=t.queries,d=t.guards,v=t.viewQueries,m=t.entryComponents,y=t.template,g=t.componentViewType,_=t.rendererType,b=t.componentFactory,w={},x={},E={};null!=c&&Object.keys(c).forEach(function(e){var t=c[e],n=e.match(Jt);null===n?E[e]=t:null!=n[1]?x[n[1]]=t:null!=n[2]&&(w[n[2]]=t)});var S={};null!=u&&u.forEach(function(e){var t=bt(e,[e,e]);S[t[0]]=t[1]});var C={};return null!=l&&l.forEach(function(e){var t=bt(e,[e,e]);C[t[0]]=t[1]}),new e({isHost:n,type:r,isComponent:!!i,selector:o,exportAs:s,changeDetection:a,inputs:S,outputs:C,hostListeners:w,hostProperties:x,hostAttributes:E,providers:p,viewProviders:h,queries:f,guards:d,viewQueries:v,entryComponents:m,template:y,componentViewType:g,rendererType:_,componentFactory:b})},e.prototype.toSummary=function(){return{summaryKind:tn.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}},e}(),cn=function(){function e(e){var t=e.name,n=e.pure;this.type=e.type,this.name=t,this.pure=!!n}return e.prototype.toSummary=function(){return{summaryKind:tn.Pipe,type:this.type,name:this.name,pure:this.pure}},e}(),pn=function(){function e(e){var t=e.providers,n=e.declaredDirectives,r=e.exportedDirectives,i=e.declaredPipes,o=e.exportedPipes,s=e.entryComponents,a=e.bootstrapComponents,u=e.importedModules,l=e.exportedModules,c=e.schemas,p=e.transitiveModule,h=e.id;this.type=e.type||null,this.declaredDirectives=fn(n),this.exportedDirectives=fn(r),this.declaredPipes=fn(i),this.exportedPipes=fn(o),this.providers=fn(t),this.entryComponents=fn(s),this.bootstrapComponents=fn(a),this.importedModules=fn(u),this.exportedModules=fn(l),this.schemas=fn(c),this.id=h||null,this.transitiveModule=p||null}return e.prototype.toSummary=function(){var e=this.transitiveModule;return{summaryKind:tn.NgModule,type:this.type,entryComponents:e.entryComponents,providers:e.providers,modules:e.modules,exportedDirectives:e.exportedDirectives,exportedPipes:e.exportedPipes}},e}(),hn=function(){function e(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return e.prototype.addProvider=function(e,t){this.providers.push({provider:e,module:t})},e.prototype.addDirective=function(e){this.directivesSet.has(e.reference)||(this.directivesSet.add(e.reference),this.directives.push(e))},e.prototype.addExportedDirective=function(e){this.exportedDirectivesSet.has(e.reference)||(this.exportedDirectivesSet.add(e.reference),this.exportedDirectives.push(e))},e.prototype.addPipe=function(e){this.pipesSet.has(e.reference)||(this.pipesSet.add(e.reference),this.pipes.push(e))},e.prototype.addExportedPipe=function(e){this.exportedPipesSet.has(e.reference)||(this.exportedPipesSet.add(e.reference),this.exportedPipes.push(e))},e.prototype.addModule=function(e){this.modulesSet.has(e.reference)||(this.modulesSet.add(e.reference),this.modules.push(e))},e.prototype.addEntryComponent=function(e){this.entryComponentsSet.has(e.componentType)||(this.entryComponentsSet.add(e.componentType),this.entryComponents.push(e))},e}();function fn(e){return e||[]}var dn=function dn(e,t){var n=t.useClass,r=t.useValue,i=t.useExisting,o=t.useFactory,s=t.deps,a=t.multi;this.token=e,this.useClass=n||null,this.useValue=r,this.useExisting=i,this.useFactory=o||null,this.dependencies=s||null,this.multi=!!a};function vn(e){return e.reduce(function(e,t){var n=Array.isArray(t)?vn(t):t;return e.concat(n)},[])} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var mn="@angular/core",yn=function(){function e(){}return e.NEW_METHOD="factory",e.TRANSFORM_METHOD="transform",e.PATCH_DEPS="patchedDeps",e.namespaceHTML={name:"ɵɵnamespaceHTML",moduleName:mn},e.namespaceMathML={name:"ɵɵnamespaceMathML",moduleName:mn},e.namespaceSVG={name:"ɵɵnamespaceSVG",moduleName:mn},e.element={name:"ɵɵelement",moduleName:mn},e.elementStart={name:"ɵɵelementStart",moduleName:mn},e.elementEnd={name:"ɵɵelementEnd",moduleName:mn},e.select={name:"ɵɵselect",moduleName:mn},e.updateSyntheticHostBinding={name:"ɵɵupdateSyntheticHostBinding",moduleName:mn},e.componentHostSyntheticListener={name:"ɵɵcomponentHostSyntheticListener",moduleName:mn},e.attribute={name:"ɵɵattribute",moduleName:mn},e.attributeInterpolate1={name:"ɵɵattributeInterpolate1",moduleName:mn},e.attributeInterpolate2={name:"ɵɵattributeInterpolate2",moduleName:mn},e.attributeInterpolate3={name:"ɵɵattributeInterpolate3",moduleName:mn},e.attributeInterpolate4={name:"ɵɵattributeInterpolate4",moduleName:mn},e.attributeInterpolate5={name:"ɵɵattributeInterpolate5",moduleName:mn},e.attributeInterpolate6={name:"ɵɵattributeInterpolate6",moduleName:mn},e.attributeInterpolate7={name:"ɵɵattributeInterpolate7",moduleName:mn},e.attributeInterpolate8={name:"ɵɵattributeInterpolate8",moduleName:mn},e.attributeInterpolateV={name:"ɵɵattributeInterpolateV",moduleName:mn},e.classProp={name:"ɵɵclassProp",moduleName:mn},e.elementContainerStart={name:"ɵɵelementContainerStart",moduleName:mn},e.elementContainerEnd={name:"ɵɵelementContainerEnd",moduleName:mn},e.styling={name:"ɵɵstyling",moduleName:mn},e.styleMap={name:"ɵɵstyleMap",moduleName:mn},e.classMap={name:"ɵɵclassMap",moduleName:mn},e.styleProp={name:"ɵɵstyleProp",moduleName:mn},e.stylingApply={name:"ɵɵstylingApply",moduleName:mn},e.styleSanitizer={name:"ɵɵstyleSanitizer",moduleName:mn},e.elementHostAttrs={name:"ɵɵelementHostAttrs",moduleName:mn},e.containerCreate={name:"ɵɵcontainer",moduleName:mn},e.nextContext={name:"ɵɵnextContext",moduleName:mn},e.templateCreate={name:"ɵɵtemplate",moduleName:mn},e.text={name:"ɵɵtext",moduleName:mn},e.textBinding={name:"ɵɵtextBinding",moduleName:mn},e.enableBindings={name:"ɵɵenableBindings",moduleName:mn},e.disableBindings={name:"ɵɵdisableBindings",moduleName:mn},e.allocHostVars={name:"ɵɵallocHostVars",moduleName:mn},e.getCurrentView={name:"ɵɵgetCurrentView",moduleName:mn},e.textInterpolate={name:"ɵɵtextInterpolate",moduleName:mn},e.textInterpolate1={name:"ɵɵtextInterpolate1",moduleName:mn},e.textInterpolate2={name:"ɵɵtextInterpolate2",moduleName:mn},e.textInterpolate3={name:"ɵɵtextInterpolate3",moduleName:mn},e.textInterpolate4={name:"ɵɵtextInterpolate4",moduleName:mn},e.textInterpolate5={name:"ɵɵtextInterpolate5",moduleName:mn},e.textInterpolate6={name:"ɵɵtextInterpolate6",moduleName:mn},e.textInterpolate7={name:"ɵɵtextInterpolate7",moduleName:mn},e.textInterpolate8={name:"ɵɵtextInterpolate8",moduleName:mn},e.textInterpolateV={name:"ɵɵtextInterpolateV",moduleName:mn},e.restoreView={name:"ɵɵrestoreView",moduleName:mn},e.interpolation1={name:"ɵɵinterpolation1",moduleName:mn},e.interpolation2={name:"ɵɵinterpolation2",moduleName:mn},e.interpolation3={name:"ɵɵinterpolation3",moduleName:mn},e.interpolation4={name:"ɵɵinterpolation4",moduleName:mn},e.interpolation5={name:"ɵɵinterpolation5",moduleName:mn},e.interpolation6={name:"ɵɵinterpolation6",moduleName:mn},e.interpolation7={name:"ɵɵinterpolation7",moduleName:mn},e.interpolation8={name:"ɵɵinterpolation8",moduleName:mn},e.interpolationV={name:"ɵɵinterpolationV",moduleName:mn},e.pureFunction0={name:"ɵɵpureFunction0",moduleName:mn},e.pureFunction1={name:"ɵɵpureFunction1",moduleName:mn},e.pureFunction2={name:"ɵɵpureFunction2",moduleName:mn},e.pureFunction3={name:"ɵɵpureFunction3",moduleName:mn},e.pureFunction4={name:"ɵɵpureFunction4",moduleName:mn},e.pureFunction5={name:"ɵɵpureFunction5",moduleName:mn},e.pureFunction6={name:"ɵɵpureFunction6",moduleName:mn},e.pureFunction7={name:"ɵɵpureFunction7",moduleName:mn},e.pureFunction8={name:"ɵɵpureFunction8",moduleName:mn},e.pureFunctionV={name:"ɵɵpureFunctionV",moduleName:mn},e.pipeBind1={name:"ɵɵpipeBind1",moduleName:mn},e.pipeBind2={name:"ɵɵpipeBind2",moduleName:mn},e.pipeBind3={name:"ɵɵpipeBind3",moduleName:mn},e.pipeBind4={name:"ɵɵpipeBind4",moduleName:mn},e.pipeBindV={name:"ɵɵpipeBindV",moduleName:mn},e.property={name:"ɵɵproperty",moduleName:mn},e.propertyInterpolate={name:"ɵɵpropertyInterpolate",moduleName:mn},e.propertyInterpolate1={name:"ɵɵpropertyInterpolate1",moduleName:mn},e.propertyInterpolate2={name:"ɵɵpropertyInterpolate2",moduleName:mn},e.propertyInterpolate3={name:"ɵɵpropertyInterpolate3",moduleName:mn},e.propertyInterpolate4={name:"ɵɵpropertyInterpolate4",moduleName:mn},e.propertyInterpolate5={name:"ɵɵpropertyInterpolate5",moduleName:mn},e.propertyInterpolate6={name:"ɵɵpropertyInterpolate6",moduleName:mn},e.propertyInterpolate7={name:"ɵɵpropertyInterpolate7",moduleName:mn},e.propertyInterpolate8={name:"ɵɵpropertyInterpolate8",moduleName:mn},e.propertyInterpolateV={name:"ɵɵpropertyInterpolateV",moduleName:mn},e.i18n={name:"ɵɵi18n",moduleName:mn},e.i18nAttributes={name:"ɵɵi18nAttributes",moduleName:mn},e.i18nExp={name:"ɵɵi18nExp",moduleName:mn},e.i18nStart={name:"ɵɵi18nStart",moduleName:mn},e.i18nEnd={name:"ɵɵi18nEnd",moduleName:mn},e.i18nApply={name:"ɵɵi18nApply",moduleName:mn},e.i18nPostprocess={name:"ɵɵi18nPostprocess",moduleName:mn},e.i18nLocalize={name:"ɵɵi18nLocalize",moduleName:mn},e.load={name:"ɵɵload",moduleName:mn},e.pipe={name:"ɵɵpipe",moduleName:mn},e.projection={name:"ɵɵprojection",moduleName:mn},e.projectionDef={name:"ɵɵprojectionDef",moduleName:mn},e.reference={name:"ɵɵreference",moduleName:mn},e.inject={name:"ɵɵinject",moduleName:mn},e.injectAttribute={name:"ɵɵinjectAttribute",moduleName:mn},e.directiveInject={name:"ɵɵdirectiveInject",moduleName:mn},e.templateRefExtractor={name:"ɵɵtemplateRefExtractor",moduleName:mn},e.resolveWindow={name:"ɵɵresolveWindow",moduleName:mn},e.resolveDocument={name:"ɵɵresolveDocument",moduleName:mn},e.resolveBody={name:"ɵɵresolveBody",moduleName:mn},e.defineBase={name:"ɵɵdefineBase",moduleName:mn},e.BaseDef={name:"ɵɵBaseDef",moduleName:mn},e.defineComponent={name:"ɵɵdefineComponent",moduleName:mn},e.setComponentScope={name:"ɵɵsetComponentScope",moduleName:mn},e.ComponentDefWithMeta={name:"ɵɵComponentDefWithMeta",moduleName:mn},e.defineDirective={name:"ɵɵdefineDirective",moduleName:mn},e.DirectiveDefWithMeta={name:"ɵɵDirectiveDefWithMeta",moduleName:mn},e.InjectorDef={name:"ɵɵInjectorDef",moduleName:mn},e.defineInjector={name:"ɵɵdefineInjector",moduleName:mn},e.NgModuleDefWithMeta={name:"ɵɵNgModuleDefWithMeta",moduleName:mn},e.defineNgModule={name:"ɵɵdefineNgModule",moduleName:mn},e.setNgModuleScope={name:"ɵɵsetNgModuleScope",moduleName:mn},e.PipeDefWithMeta={name:"ɵɵPipeDefWithMeta",moduleName:mn},e.definePipe={name:"ɵɵdefinePipe",moduleName:mn},e.queryRefresh={name:"ɵɵqueryRefresh",moduleName:mn},e.viewQuery={name:"ɵɵviewQuery",moduleName:mn},e.staticViewQuery={name:"ɵɵstaticViewQuery",moduleName:mn},e.staticContentQuery={name:"ɵɵstaticContentQuery",moduleName:mn},e.loadViewQuery={name:"ɵɵloadViewQuery",moduleName:mn},e.contentQuery={name:"ɵɵcontentQuery",moduleName:mn},e.loadContentQuery={name:"ɵɵloadContentQuery",moduleName:mn},e.NgOnChangesFeature={name:"ɵɵNgOnChangesFeature",moduleName:mn},e.InheritDefinitionFeature={name:"ɵɵInheritDefinitionFeature",moduleName:mn},e.ProvidersFeature={name:"ɵɵProvidersFeature",moduleName:mn},e.listener={name:"ɵɵlistener",moduleName:mn},e.getFactoryOf={name:"ɵɵgetFactoryOf",moduleName:mn},e.getInheritedFactory={name:"ɵɵgetInheritedFactory",moduleName:mn},e.sanitizeHtml={name:"ɵɵsanitizeHtml",moduleName:mn},e.sanitizeStyle={name:"ɵɵsanitizeStyle",moduleName:mn},e.defaultStyleSanitizer={name:"ɵɵdefaultStyleSanitizer",moduleName:mn},e.sanitizeResourceUrl={name:"ɵɵsanitizeResourceUrl",moduleName:mn},e.sanitizeScript={name:"ɵɵsanitizeScript",moduleName:mn},e.sanitizeUrl={name:"ɵɵsanitizeUrl",moduleName:mn},e.sanitizeUrlOrResourceUrl={name:"ɵɵsanitizeUrlOrResourceUrl",moduleName:mn},e}(),gn=0,_n=9,bn=10,wn=11,xn=12,En=13,Sn=32,Cn=34,Tn=36,Nn=39,kn=43,An=45,Pn=47,In=59,Mn=61,On=62,Rn=48,Dn=55,Ln=57,Fn=65,jn=70,Vn=90,Bn=95,Hn=97,Un=102,qn=110,Kn=114,zn=116,Wn=118,Qn=122,$n=160;function Gn(e){return e>=_n&&e<=Sn||e==$n}function Xn(e){return Rn<=e&&e<=Ln}function Yn(e){return e>=Hn&&e<=Qn||e>=Fn&&e<=Vn}function Zn(e){return e===bn||e===En}function Jn(e){return Rn<=e&&e<=Dn} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var er,tr=function(){function e(e,t,n,r){this.file=e,this.offset=t,this.line=n,this.col=r}return e.prototype.toString=function(){return null!=this.offset?this.file.url+"@"+this.line+":"+this.col:this.file.url},e.prototype.moveBy=function(t){for(var n=this.file.content,r=n.length,i=this.offset,o=this.line,s=this.col;i>0&&t<0;)if(t++,(u=n.charCodeAt(--i))==bn){o--;var a=n.substr(0,i-1).lastIndexOf(String.fromCharCode(bn));s=a>0?i-a:i}else s--;for(;i0;){var u=n.charCodeAt(i);i++,t--,u==bn?(o++,s=0):s++}return new e(this.file,i,o,s)},e.prototype.getContext=function(e,t){var n=this.file.content,r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);for(var i=r,o=0,s=0;o0&&(o++,"\n"!=n[--r]||++s!=t););for(o=0,s=0;o]"+e.after+'")':this.msg},e.prototype.toString=function(){var e=this.span.details?", "+this.span.details:"";return this.contextualMessage()+": "+this.span.start+e},e}(),or=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e){return e.visitText(this)},e}(),sr=function(){function e(e,t,n){this.value=e,this.sourceSpan=t,this.i18n=n}return e.prototype.visit=function(e){return e.visitBoundText(this)},e}(),ar=function(){function e(e,t,n,r,i){this.name=e,this.value=t,this.sourceSpan=n,this.valueSpan=r,this.i18n=i}return e.prototype.visit=function(e){return e.visitTextAttribute(this)},e}(),ur=function(){function e(e,t,n,r,i,o,s){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o,this.i18n=s}return e.fromBoundElementProperty=function(t,n){return new e(t.name,t.type,t.securityContext,t.value,t.unit,t.sourceSpan,n)},e.prototype.visit=function(e){return e.visitBoundAttribute(this)},e}(),lr=function(){function e(e,t,n,r,i,o,s){this.name=e,this.type=t,this.handler=n,this.target=r,this.phase=i,this.sourceSpan=o,this.handlerSpan=s}return e.fromParsedEvent=function(t){return new e(t.name,t.type,t.handler,0===t.type?t.targetOrPhase:null,1===t.type?t.targetOrPhase:null,t.sourceSpan,t.handlerSpan)},e.prototype.visit=function(e){return e.visitBoundEvent(this)},e}(),cr=function(){function e(e,t,n,r,i,o,s,a,u,l){this.name=e,this.attributes=t,this.inputs=n,this.outputs=r,this.children=i,this.references=o,this.sourceSpan=s,this.startSourceSpan=a,this.endSourceSpan=u,this.i18n=l,0===i.length&&a&&u&&(this.sourceSpan=new rr(s.start,u.end))}return e.prototype.visit=function(e){return e.visitElement(this)},e}(),pr=function(){function e(e,t,n,r,i,o,s,a,u,l,c,p){this.tagName=e,this.attributes=t,this.inputs=n,this.outputs=r,this.templateAttrs=i,this.children=o,this.references=s,this.variables=a,this.sourceSpan=u,this.startSourceSpan=l,this.endSourceSpan=c,this.i18n=p}return e.prototype.visit=function(e){return e.visitTemplate(this)},e}(),hr=function(){function e(e,t,n,r){this.selector=e,this.attributes=t,this.sourceSpan=n,this.i18n=r}return e.prototype.visit=function(e){return e.visitContent(this)},e}(),fr=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.prototype.visit=function(e){return e.visitVariable(this)},e}(),dr=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.prototype.visit=function(e){return e.visitReference(this)},e}(),vr=function(){function e(e,t,n,r){this.vars=e,this.placeholders=t,this.sourceSpan=n,this.i18n=r}return e.prototype.visit=function(e){return e.visitIcu(this)},e}();function mr(e,t){var n,r,i,o,s=[];if(e.visit)try{for(var a=p(t),u=a.next();!u.done;u=a.next())var l=e.visit(f=u.value)||f.visit(e)}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}else try{for(var c=p(t),h=c.next();!h.done;h=c.next()){var f;(l=(f=h.value).visit(e))&&s.push(l)}}catch(e){i={error:e}}finally{try{h&&!h.done&&(o=c.return)&&o.call(c)}finally{if(i)throw i.error}}return s} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var yr=function yr(e,t,n,r,i,o){this.nodes=e,this.placeholders=t,this.placeholderToMessage=n,this.meaning=r,this.description=i,this.id=o,this.sources=e.length?[{filePath:e[0].sourceSpan.start.file.url,startLine:e[0].sourceSpan.start.line+1,startCol:e[0].sourceSpan.start.col+1,endLine:e[e.length-1].sourceSpan.end.line+1,endCol:e[0].sourceSpan.start.col+1}]:[]},gr=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}(),_r=function(){function e(e,t){this.children=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitContainer(this,t)},e}(),br=function(){function e(e,t,n,r){this.expression=e,this.type=t,this.cases=n,this.sourceSpan=r}return e.prototype.visit=function(e,t){return e.visitIcu(this,t)},e}(),wr=function(){function e(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 e.prototype.visit=function(e,t){return e.visitTagPlaceholder(this,t)},e}(),xr=function(){function e(e,t,n){this.value=e,this.name=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitPlaceholder(this,t)},e}(),Er=function(){function e(e,t,n){this.value=e,this.name=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitIcuPlaceholder(this,t)},e}(),Sr=function(){function e(){}return e.prototype.visitText=function(e,t){return new gr(e.value,e.sourceSpan)},e.prototype.visitContainer=function(e,t){var n=this,r=e.children.map(function(e){return e.visit(n,t)});return new _r(r,e.sourceSpan)},e.prototype.visitIcu=function(e,t){var n=this,r={};Object.keys(e.cases).forEach(function(i){return r[i]=e.cases[i].visit(n,t)});var i=new br(e.expression,e.type,r,e.sourceSpan);return i.expressionPlaceholder=e.expressionPlaceholder,i},e.prototype.visitTagPlaceholder=function(e,t){var n=this,r=e.children.map(function(e){return e.visit(n,t)});return new wr(e.tag,e.attrs,e.startName,e.closeName,r,e.isVoid,e.sourceSpan)},e.prototype.visitPlaceholder=function(e,t){return new xr(e.value,e.name,e.sourceSpan)},e.prototype.visitIcuPlaceholder=function(e,t){return new Er(e.value,e.name,e.sourceSpan)},e}(),Cr=function(){function e(){}return e.prototype.visitText=function(e,t){},e.prototype.visitContainer=function(e,t){var n=this;e.children.forEach(function(e){return e.visit(n)})},e.prototype.visitIcu=function(e,t){var n=this;Object.keys(e.cases).forEach(function(t){e.cases[t].visit(n)})},e.prototype.visitTagPlaceholder=function(e,t){var n=this;e.children.forEach(function(e){return e.visit(n)})},e.prototype.visitPlaceholder=function(e,t){},e.prototype.visitIcuPlaceholder=function(e,t){},e}(); /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function Tr(e){return e.id||function n(e){var t,n,r=Ot(e),i=function o(e,t){for(var n=Array(e.length+3>>>2),r=0;r>5]|=128<<24-s%32,i[15+(s+64>>9<<4)]=s;for(var v=0;v>>4).toString(16)+(15&r).toString(16)}return t.toLowerCase()}(Ur([l,c,p,f,d]))}(function t(e){return e.map(function(e){return e.visit(Pr,null)})}(e.nodes).join("")+"["+e.meaning+"]")}function Nr(e){if(e.id)return e.id;var t=new Ir;return function n(e,t){var n,r=h(Or(e),2),i=r[0],o=r[1];if(t){var s=h(Or(t),2),a=s[0],u=s[1];i=(n=h(function c(e,t){var n=h(e,2),r=n[0],i=n[1],o=h(t,2),s=o[0],a=h(Fr(i,o[1]),2),u=a[0],l=a[1];return[Lr(Lr(r,s),u),l]}(function l(e,t){var n=h(e,2),r=n[0],i=n[1];return[r<>>32-t,i<>>32-t]}([i,o],1),[a,u]),2))[0],o=n[1]}return function p(e){for(var t="",n="1",r=e.length-1;r>=0;r--)t=qr(t,Kr(Br(e,r),n)),n=Kr(256,n);return t.split("").reverse().join("")}(Ur([2147483647&i,o]))}(e.nodes.map(function(e){return e.visit(t,null)}).join(""),e.meaning)}var kr,Ar=function(){function e(){}return e.prototype.visitText=function(e,t){return e.value},e.prototype.visitContainer=function(e,t){var n=this;return"["+e.children.map(function(e){return e.visit(n)}).join(", ")+"]"},e.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(", ")+"}"},e.prototype.visitTagPlaceholder=function(e,t){var n=this;return e.isVoid?'':''+e.children.map(function(e){return e.visit(n)}).join(", ")+''},e.prototype.visitPlaceholder=function(e,t){return e.value?''+e.value+"":''},e.prototype.visitIcuPlaceholder=function(e,t){return''+e.value.visit(this)+""},e}(),Pr=new Ar,Ir=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.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.type+", "+r.join(", ")+"}"},t}(Ar);function Mr(e,t,n,r){return e<20?[t&n|~t&r,1518500249]:e<40?[t^n^r,1859775393]:e<60?[t&n|t&r|n&r,2400959708]:[t^n^r,3395469782]}function Or(e){var t=Ot(e),n=h([Rr(t,0),Rr(t,102072)],2),r=n[0],i=n[1];return 0!=r||0!=i&&1!=i||(r^=319790063,i^=-1801410264),[r,i]}function Rr(e,t){var n,r,i=h([2654435769,2654435769],2),o=i[0],s=i[1],a=e.length;for(r=0;r+12<=a;r+=12)o=(n=h(Dr([o=Lr(o,Hr(e,r,kr.Little)),s=Lr(s,Hr(e,r+4,kr.Little)),t=Lr(t,Hr(e,r+8,kr.Little))]),3))[0],s=n[1],t=n[2];return o=Lr(o,Hr(e,r,kr.Little)),s=Lr(s,Hr(e,r+4,kr.Little)),t=Lr(t,a),Dr([o,s,t=Lr(t,Hr(e,r+8,kr.Little)<<8)])[2]}function Dr(e){var t=h(e,3),n=t[0],r=t[1],i=t[2];return n=jr(n,r),n=jr(n,i),n^=i>>>13,r=jr(r,i),r=jr(r,n),r^=n<<8,i=jr(i,n),i=jr(i,r),i^=r>>>13,n=jr(n,r),n=jr(n,i),n^=i>>>12,r=jr(r,i),r=jr(r,n),r^=n<<16,i=jr(i,n),i=jr(i,r),i^=r>>>5,n=jr(n,r),n=jr(n,i),n^=i>>>3,r=jr(r,i),r=jr(r,n),r^=n<<10,i=jr(i,n),i=jr(i,r),[n,r,i^=r>>>15]}function Lr(e,t){return Fr(e,t)[1]}function Fr(e,t){var n=(65535&e)+(65535&t),r=(e>>>16)+(t>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function jr(e,t){var n=(65535&e)-(65535&t);return(e>>16)-(t>>16)+(n>>16)<<16|65535&n}function Vr(e,t){return e<>>32-t}function Br(e,t){return t>=e.length?0:255&e.charCodeAt(t)}function Hr(e,t,n){var r=0;if(n===kr.Big)for(var i=0;i<4;i++)r+=Br(e,t+i)<<24-8*i;else for(i=0;i<4;i++)r+=Br(e,t+i)<<8*i;return r}function Ur(e){return e.reduce(function(e,t){return e+function n(e){for(var t="",n=0;n<4;n++)t+=String.fromCharCode(e>>>8*(3-n)&255);return t}(t)},"")}function qr(e,t){for(var n="",r=Math.max(e.length,t.length),i=0,o=0;i=10?(o=1,n+=s-10):(o=0,n+=s)}return n}function Kr(e,t){for(var n="",r=t;0!==e;e>>>=1)1&e&&(n=qr(n,r)),r=qr(r,r);return n} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */!function(e){e[e.Little=0]="Little",e[e.Big=1]="Big"}(kr||(kr={}));var zr=function(){function e(){}return e.prototype.createNameMapper=function(e){return null},e}(),Wr=function(e){function t(t,n){var r=e.call(this)||this;return r.mapName=n,r.internalToPublic={},r.publicToNextId={},r.publicToInternal={},t.nodes.forEach(function(e){return e.visit(r)}),r}return o(t,e),t.prototype.toPublicName=function(e){return this.internalToPublic.hasOwnProperty(e)?this.internalToPublic[e]:null},t.prototype.toInternalName=function(e){return this.publicToInternal.hasOwnProperty(e)?this.publicToInternal[e]:null},t.prototype.visitText=function(e,t){return null},t.prototype.visitTagPlaceholder=function(t,n){this.visitPlaceholderName(t.startName),e.prototype.visitTagPlaceholder.call(this,t,n),this.visitPlaceholderName(t.closeName)},t.prototype.visitPlaceholder=function(e,t){this.visitPlaceholderName(e.name)},t.prototype.visitIcuPlaceholder=function(e,t){this.visitPlaceholderName(e.name)},t.prototype.visitPlaceholderName=function(e){if(e&&!this.internalToPublic.hasOwnProperty(e)){var t=this.mapName(e);if(this.publicToInternal.hasOwnProperty(t)){var n=this.publicToNextId[t];this.publicToNextId[t]=n+1,t=t+"_"+n}else this.publicToNextId[t]=1;this.internalToPublic[e]=t,this.publicToInternal[t]=e}},t}(Cr),Qr=new(function(){function e(){}return e.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("")+""},e.prototype.visitText=function(e){return e.value},e.prototype.visitDeclaration=function(e){return""},e.prototype._serializeAttributes=function(e){var t=Object.keys(e).map(function(t){return t+'="'+e[t]+'"'}).join(" ");return t.length>0?" "+t:""},e.prototype.visitDoctype=function(e){return""},e}());function $r(e){return e.map(function(e){return e.visit(Qr)}).join("")}var Gr=function(){function e(e){var t=this;this.attrs={},Object.keys(e).forEach(function(n){t.attrs[n]=ti(e[n])})}return e.prototype.visit=function(e){return e.visitDeclaration(this)},e}(),Xr=function(){function e(e,t){this.rootTag=e,this.dtd=t}return e.prototype.visit=function(e){return e.visitDoctype(this)},e}(),Yr=function(){function e(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]=ti(t[e])})}return e.prototype.visit=function(e){return e.visitTag(this)},e}(),Zr=function(){function e(e){this.value=ti(e)}return e.prototype.visit=function(e){return e.visitText(this)},e}(),Jr=function(e){function t(t){return void 0===t&&(t=0),e.call(this,"\n"+new Array(t+1).join(" "))||this}return o(t,e),t}(Zr),ei=[[/&/g,"&"],[/"/g,"""],[/'/g,"'"],[//g,">"]];function ti(e){return ei.reduce(function(e,t){return e.replace(t[0],t[1])},e)} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var ni=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.write=function(e,t){var n=new oi,r=new ri,i=new Yr("messagebundle");return e.forEach(function(e){var t={id:e.id};e.description&&(t.desc=e.description),e.meaning&&(t.meaning=e.meaning);var n=[];e.sources.forEach(function(e){n.push(new Yr("source",{},[new Zr(e.filePath+":"+e.startLine+(e.endLine!==e.startLine?","+e.endLine:""))]))}),i.children.push(new Jr(2),new Yr("msg",t,f(n,r.serialize(e.nodes))))}),i.children.push(new Jr),$r([new Gr({version:"1.0",encoding:"UTF-8"}),new Jr,new Xr("messagebundle",'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'),new Jr,n.addDefaultExamples(i),new Jr])},t.prototype.load=function(e,t){throw new Error("Unsupported")},t.prototype.digest=function(e){return ii(e)},t.prototype.createNameMapper=function(e){return new Wr(e,si)},t}(zr),ri=function(){function e(){}return e.prototype.visitText=function(e,t){return[new Zr(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,f(e.visit(n)))}),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new Zr("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(t){r.push.apply(r,f([new Zr(t+" {")],e.cases[t].visit(n),[new Zr("} ")]))}),r.push(new Zr("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=new Zr("<"+e.tag+">"),r=new Yr("ex",{},[n]),i=new Yr("ph",{name:e.startName},[r,n]);if(e.isVoid)return[i];var o=new Zr(""),s=new Yr("ex",{},[o]),a=new Yr("ph",{name:e.closeName},[s,o]);return f([i],this.serialize(e.children),[a])},e.prototype.visitPlaceholder=function(e,t){var n=new Zr("{{"+e.value+"}}"),r=new Yr("ex",{},[n]);return[new Yr("ph",{name:e.name},[r,n])]},e.prototype.visitIcuPlaceholder=function(e,t){var n=e.value.expression,r=e.value.type,i=Object.keys(e.value.cases).map(function(e){return e+" {...}"}).join(" "),o=new Zr("{"+n+", "+r+", "+i+"}"),s=new Yr("ex",{},[o]);return[new Yr("ph",{name:e.name},[s,o])]},e.prototype.serialize=function(e){var t=this;return[].concat.apply([],f(e.map(function(e){return e.visit(t)})))},e}();function ii(e){return Nr(e)}var oi=function(){function e(){}return e.prototype.addDefaultExamples=function(e){return e.visit(this),e},e.prototype.visitTag=function(e){var t=this;if("ph"===e.name){if(!e.children||0==e.children.length){var n=new Zr(e.attrs.name||"...");e.children=[new Yr("ex",{},[n])]}}else e.children&&e.children.forEach(function(e){return e.visit(t)})},e.prototype.visitText=function(e){},e.prototype.visitDeclaration=function(e){},e.prototype.visitDoctype=function(e){},e}();function si(e){return e.toUpperCase().replace(/[^A-Z0-9_]/g,"_")} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function ai(e,t){return void 0===t&&(t=!1),dt(Object.keys(e).map(function(n){return{key:n,quoted:t,value:e[n]}}))} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var ui="MSG_",li="goog.getMsg",ci="ngI18nClosureMode",pi="i18n",hi="i18n-",fi="�";function di(e,t,n,r,i){var o=[];o.push(new Xe(e.name,void 0,fe,null,e.sourceSpan));var s=[yt(n)];i&&Object.keys(i).length&&s.push(ai(i,!0));var a=function u(e){var t=[];return e.description&&t.push({tagName:"desc",text:e.description}),e.meaning&&t.push({tagName:"meaning",text:e.meaning}),0==t.length?null:new ot(t)}(r),l=a?[a]:[],c=ct(li).callFn(s);l.push(t.set(c).toConstDecl()),l.push(new Ze(e.set(t)));var p=pt(yn.i18nLocalize).callFn(s),h=[new Ze(e.set(p))];return o.push(mt(ct(ci),l,h)),o}function vi(e){return e===pi||e.startsWith(hi)}function mi(e){return e instanceof yr}function yi(e){return mi(e)&&1===e.nodes.length&&e.nodes[0]instanceof br}function gi(e,t){return void 0===t&&(t=null),{id:"string"==typeof t?t:e.id||"",meaning:e.meaning||"",description:e.description||""}}function _i(e){return e.nodes[0]}function bi(e,t){return void 0===t&&(t=0),""+fi+e+(t>0?":"+t:"")+fi}function wi(e){void 0===e&&(e=0);var t=e;return function(){return t++}}function xi(e){var t={};return e.forEach(function(e,n){t[n]=yt(e.length>1?"["+e.join("|")+"]":e[0])}),t}function Ei(e,t){for(var n=[],r=2;r0?function n(e,t){return dt(Object.getOwnPropertyNames(e).map(function(n){var r,i,o,s,a,u=e[n];return Array.isArray(u)?(s=(r=h(u,2))[0],o=r[1]):(o=(i=h(bt(n,[n,u]),2))[0],s=i[1]),{key:a=o,quoted:Ni.test(a),value:t&&s!==o?ft([Ri(s),Ri(o)]):Ri(s)}}))}(e,t):null}function Li(e){for(;(t=e[e.length-1])instanceof Me&&null===t.value;)e.pop();var t;return e}function Fi(e,t){if(Array.isArray(e.predicate)){var n=[];return e.predicate.forEach(function(e){var t=e.split(",").map(function(e){return yt(e.trim())});n.push.apply(n,f(t))}),t.getConstLiteral(ft(n),!0)}return e.predicate}var ji,Vi,Bi=function(){function e(){this.values=[]}return e.prototype.set=function(e,t){t&&this.values.push({key:e,value:t,quoted:!1})},e.prototype.toLiteralMap=function(){return dt(this.values)},e}();function Hi(e){var t=ct("t"),n=[],r=Ki(e)?t:new Be(ue.Or,t,e.type),i=null;if(null!==e.deps)"invalid"!==e.deps&&(i=new Ie(r,Ui(e.deps,e.injectFn)));else{var o=ct("ɵ"+e.name+"_BaseFactory"),s=pt(yn.getInheritedFactory),a=o.set(s.callFn([e.type])).toDeclStmt(fe,[ke.Exported,ke.Final]);n.push(a),i=o.callFn([r])}var u=i,l=[],c=null;function p(n){var r,i=ct("r");return l.push(i.set(Qe).toDeclStmt()),r=null!==u?i.set(u).toStmt():qi(e.name),l.push(mt(t,[r],[i.set(n).toStmt()])),i}if(Ki(e)&&e.delegateType===ji.Factory){var h=ct("ɵ"+e.name+"_BaseFactory"),f=pt(yn.getFactoryOf);if(e.delegate.isEquivalent(e.type))throw new Error("Illegal state: compiling factory that delegates to itself");var d=h.set(f.callFn([e.delegate])).toDeclStmt(fe,[ke.Exported,ke.Final]);n.push(d),c=p(h.callFn([]))}else if(Ki(e)){var v=Ui(e.delegateDeps,e.injectFn);c=p(new(e.delegateType===ji.Class?Ie:Pe)(e.delegate,v))}else c=function m(e){return void 0!==e.expression} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e)?p(e.expression):i;return l.push(null!==c?new Je(c):qi(e.name)),{factory:vt([new je("t",he)],l,fe,void 0,e.name+"_Factory"),statements:n}}function Ui(e,t){return e.map(function(e){return function n(e,t){switch(e.resolved){case Vi.Token:var n=0|(e.self?2:0)|(e.skipSelf?4:0)|(e.host?1:0)|(e.optional?8:0),r=[e.token];return(0!==n||e.optional)&&r.push(yt(n)),pt(t).callFn(r);case Vi.Attribute:return pt(yn.injectAttribute).callFn([e.token]);default:return Mi("Unknown R3ResolvedDependencyType: "+Vi[e.resolved])}}(e,t)})}function qi(e){return new at(new Ie(new xe("Error"),[yt(e+" has a constructor which is not compatible with Dependency Injection. It should probably not be @Injectable().")]))}function Ki(e){return void 0!==e.delegateType}function zi(e){return dt(Object.keys(e).map(function(t){return{key:t,value:e[t],quoted:!1}}))}function Wi(e,t){var n=null;if(t>0){n=[];for(var r=0;r]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function Zi(e,t){if(!(null==t||Array.isArray(t)&&2==t.length))throw new Error("Expected '"+e+"' to be an array, [start, end].");if(null!=t){var n=t[0],r=t[1];Yi.forEach(function(e){if(e.test(n)||e.test(r))throw new Error("['"+n+"', '"+r+"'] contains unusable interpolation symbol.")})}} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var Ji=function(){function e(e,t){this.start=e,this.end=t}return e.fromArray=function(t){return t?(Zi("interpolation",t),new e(t[0],t[1])):eo},e}(),eo=new Ji("{{","}}"),to=function(){function e(e){void 0===e&&(e=null),this.file=e,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return e.prototype.addSource=function(e,t){return void 0===t&&(t=null),this.sourcesContent.has(e)||this.sourcesContent.set(e,t),this},e.prototype.addLine=function(){return this.lines.push([]),this.lastCol0=0,this},e.prototype.addMapping=function(e,t,n,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=t&&!this.sourcesContent.has(t))throw new Error('Unknown source file "'+t+'"');if(null==e)throw new Error("The column in the generated code must be provided");if(e>2),n+=io((3&i)<<4|(isNaN(o)?0:o>>4)),n+=isNaN(o)?"=":io((15&o)<<2|s>>6),n+=isNaN(o)||isNaN(s)?"=":io(63&s)}return n}(JSON.stringify(this,null,0)):""},e}();function no(e){e=e<0?1+(-e<<1):e<<1;var t="";do{var n=31&e;(e>>=5)>0&&(n|=32),t+=io(n)}while(e>0);return t}var ro="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function io(e){if(e<0||e>=64)throw new Error("Can only encode value in the range [0, 63]");return ro[e]} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var oo=/'|\\|\n|\r|\$/g,so=/^[$A-Z_][0-9A-Z_$]*$/i,ao=" ",uo=ct("error",null,null),lo=ct("stack",null,null),co=function co(e){this.indent=e,this.partsLength=0,this.parts=[],this.srcSpans=[]},po=function(){function e(e){this._indent=e,this._classes=[],this._preambleLineCount=0,this._lines=[new co(e)]}return e.createRoot=function(){return new e(0)},Object.defineProperty(e.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),e.prototype.println=function(e,t){void 0===t&&(t=""),this.print(e||null,t,!0)},e.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},e.prototype.lineLength=function(){return this._currentLine.indent*ao.length+this._currentLine.partsLength},e.prototype.print=function(e,t,n){void 0===n&&(n=!1),t.length>0&&(this._currentLine.parts.push(t),this._currentLine.partsLength+=t.length,this._currentLine.srcSpans.push(e&&e.sourceSpan||null)),n&&this._lines.push(new co(this._indent))},e.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},e.prototype.incIndent=function(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},e.prototype.decIndent=function(){this._indent--,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},e.prototype.pushClass=function(e){this._classes.push(e)},e.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(e.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),e.prototype.toSource=function(){return this.sourceLines.map(function(e){return e.parts.length>0?vo(e.indent)+e.parts.join(""):""}).join("\n")},e.prototype.toSourceMapGenerator=function(e,t){void 0===t&&(t=0);for(var n=new to(e),r=!1,i=function(){r||(n.addSource(e," ").addMapping(0,e,0,0),r=!0)},o=0;or)return n.srcSpans[i];r-=o.length}return null},Object.defineProperty(e.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines},enumerable:!0,configurable:!0}),e}(),ho=function(){function e(e){this._escapeDollarInStrings=e}return e.prototype.visitExpressionStmt=function(e,t){return e.expr.visitExpression(this,t),t.println(e,";"),null},e.prototype.visitReturnStmt=function(e,t){return t.print(e,"return "),e.value.visitExpression(this,t),t.println(e,";"),null},e.prototype.visitIfStmt=function(e,t){t.print(e,"if ("),e.condition.visitExpression(this,t),t.print(e,") {");var n=null!=e.falseCase&&e.falseCase.length>0;return e.trueCase.length<=1&&!n?(t.print(e," "),this.visitAllStatements(e.trueCase,t),t.removeEmptyLastLine(),t.print(e," ")):(t.println(),t.incIndent(),this.visitAllStatements(e.trueCase,t),t.decIndent(),n&&(t.println(e,"} else {"),t.incIndent(),this.visitAllStatements(e.falseCase,t),t.decIndent())),t.println(e,"}"),null},e.prototype.visitThrowStmt=function(e,t){return t.print(e,"throw "),e.error.visitExpression(this,t),t.println(e,";"),null},e.prototype.visitCommentStmt=function(e,t){return e.multiline?t.println(e,"/* "+e.comment+" */"):e.comment.split("\n").forEach(function(n){t.println(e,"// "+n)}),null},e.prototype.visitJSDocCommentStmt=function(e,t){return t.println(e,"/*"+e.toString()+"*/"),null},e.prototype.visitWriteVarExpr=function(e,t){var n=t.lineIsEmpty();return n||t.print(e,"("),t.print(e,e.name+" = "),e.value.visitExpression(this,t),n||t.print(e,")"),null},e.prototype.visitWriteKeyExpr=function(e,t){var n=t.lineIsEmpty();return n||t.print(e,"("),e.receiver.visitExpression(this,t),t.print(e,"["),e.index.visitExpression(this,t),t.print(e,"] = "),e.value.visitExpression(this,t),n||t.print(e,")"),null},e.prototype.visitWritePropExpr=function(e,t){var n=t.lineIsEmpty();return n||t.print(e,"("),e.receiver.visitExpression(this,t),t.print(e,"."+e.name+" = "),e.value.visitExpression(this,t),n||t.print(e,")"),null},e.prototype.visitInvokeMethodExpr=function(e,t){e.receiver.visitExpression(this,t);var n=e.name;return null!=e.builtin&&null==(n=this.getBuiltinMethodName(e.builtin))?null:(t.print(e,"."+n+"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null)},e.prototype.visitInvokeFunctionExpr=function(e,t){return e.fn.visitExpression(this,t),t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null},e.prototype.visitWrappedNodeExpr=function(e,t){throw new Error("Abstract emitter cannot visit WrappedNodeExpr.")},e.prototype.visitTypeofExpr=function(e,t){t.print(e,"typeof "),e.expr.visitExpression(this,t)},e.prototype.visitReadVarExpr=function(e,t){var n=e.name;if(null!=e.builtin)switch(e.builtin){case _e.Super:n="super";break;case _e.This:n="this";break;case _e.CatchError:n=uo.name;break;case _e.CatchStack:n=lo.name;break;default:throw new Error("Unknown builtin variable "+e.builtin)}return t.print(e,n),null},e.prototype.visitInstantiateExpr=function(e,t){return t.print(e,"new "),e.classExpr.visitExpression(this,t),t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null},e.prototype.visitLiteralExpr=function(e,t){var n=e.value;return t.print(e,"string"==typeof n?fo(n,this._escapeDollarInStrings):""+n),null},e.prototype.visitConditionalExpr=function(e,t){return t.print(e,"("),e.condition.visitExpression(this,t),t.print(e,"? "),e.trueCase.visitExpression(this,t),t.print(e,": "),e.falseCase.visitExpression(this,t),t.print(e,")"),null},e.prototype.visitNotExpr=function(e,t){return t.print(e,"!"),e.condition.visitExpression(this,t),null},e.prototype.visitAssertNotNullExpr=function(e,t){return e.condition.visitExpression(this,t),null},e.prototype.visitBinaryOperatorExpr=function(e,t){var n;switch(e.operator){case ue.Equals:n="==";break;case ue.Identical:n="===";break;case ue.NotEquals:n="!=";break;case ue.NotIdentical:n="!==";break;case ue.And:n="&&";break;case ue.BitwiseAnd:n="&";break;case ue.Or:n="||";break;case ue.Plus:n="+";break;case ue.Minus:n="-";break;case ue.Divide:n="/";break;case ue.Multiply:n="*";break;case ue.Modulo:n="%";break;case ue.Lower:n="<";break;case ue.LowerEquals:n="<=";break;case ue.Bigger:n=">";break;case ue.BiggerEquals:n=">=";break;default:throw new Error("Unknown operator "+e.operator)}return e.parens&&t.print(e,"("),e.lhs.visitExpression(this,t),t.print(e," "+n+" "),e.rhs.visitExpression(this,t),e.parens&&t.print(e,")"),null},e.prototype.visitReadPropExpr=function(e,t){return e.receiver.visitExpression(this,t),t.print(e,"."),t.print(e,e.name),null},e.prototype.visitReadKeyExpr=function(e,t){return e.receiver.visitExpression(this,t),t.print(e,"["),e.index.visitExpression(this,t),t.print(e,"]"),null},e.prototype.visitLiteralArrayExpr=function(e,t){return t.print(e,"["),this.visitAllExpressions(e.entries,t,","),t.print(e,"]"),null},e.prototype.visitLiteralMapExpr=function(e,t){var n=this;return t.print(e,"{"),this.visitAllObjects(function(r){t.print(e,fo(r.key,n._escapeDollarInStrings,r.quoted)+":"),r.value.visitExpression(n,t)},e.entries,t,","),t.print(e,"}"),null},e.prototype.visitCommaExpr=function(e,t){return t.print(e,"("),this.visitAllExpressions(e.parts,t,","),t.print(e,")"),null},e.prototype.visitAllExpressions=function(e,t,n){var r=this;this.visitAllObjects(function(e){return e.visitExpression(r,t)},e,t,n)},e.prototype.visitAllObjects=function(e,t,n,r){for(var i=!1,o=0;o0&&(n.lineLength()>80?(n.print(null,r,!0),i||(n.incIndent(),n.incIndent(),i=!0)):n.print(null,r,!1)),e(t[o]);i&&(n.decIndent(),n.decIndent())},e.prototype.visitAllStatements=function(e,t){var n=this;e.forEach(function(e){return e.visitStatement(n,t)})},e}();function fo(e,t,n){if(void 0===n&&(n=!0),null==e)return null;var r=e.replace(oo,function(){for(var e=[],n=0;n0&&(t.println(e,"var self = this;"),this.visitAllStatements(e.constructorMethod.body,t)),t.decIndent(),t.println(e,"}")},t.prototype._visitClassGetter=function(e,t,n){n.println(e,"Object.defineProperty("+e.name+".prototype, '"+t.name+"', { get: function() {"),n.incIndent(),t.body.length>0&&(n.println(e,"var self = this;"),this.visitAllStatements(t.body,n)),n.decIndent(),n.println(e,"}});")},t.prototype._visitClassMethod=function(e,t,n){n.print(e,e.name+".prototype."+t.name+" = function("),this._visitParams(t.params,n),n.println(e,") {"),n.incIndent(),t.body.length>0&&(n.println(e,"var self = this;"),this.visitAllStatements(t.body,n)),n.decIndent(),n.println(e,"};")},t.prototype.visitWrappedNodeExpr=function(e,t){throw new Error("Cannot emit a WrappedNodeExpr in Javascript.")},t.prototype.visitReadVarExpr=function(t,n){if(t.builtin===_e.This)n.print(t,"self");else{if(t.builtin===_e.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");e.prototype.visitReadVarExpr.call(this,t,n)}return null},t.prototype.visitDeclareVarStmt=function(e,t){return t.print(e,"var "+e.name),e.value&&(t.print(e," = "),e.value.visitExpression(this,t)),t.println(e,";"),null},t.prototype.visitCastExpr=function(e,t){return e.value.visitExpression(this,t),null},t.prototype.visitInvokeFunctionExpr=function(t,n){var r=t.fn;return r instanceof xe&&r.builtin===_e.Super?(n.currentClass.parent.visitExpression(this,n),n.print(t,".call(this"),t.args.length>0&&(n.print(t,", "),this.visitAllExpressions(t.args,n,",")),n.print(t,")")):e.prototype.visitInvokeFunctionExpr.call(this,t,n),null},t.prototype.visitFunctionExpr=function(e,t){return t.print(e,"function"+(e.name?" "+e.name:"")+"("),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.print(e,"}"),null},t.prototype.visitDeclareFunctionStmt=function(e,t){return t.print(e,"function "+e.name+"("),this._visitParams(e.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.println(e,"}"),null},t.prototype.visitTryCatchStmt=function(e,t){t.println(e,"try {"),t.incIndent(),this.visitAllStatements(e.bodyStmts,t),t.decIndent(),t.println(e,"} catch ("+uo.name+") {"),t.incIndent();var n=[lo.set(uo.prop("stack")).toDeclStmt(null,[ke.Final])].concat(e.catchStmts);return this.visitAllStatements(n,t),t.decIndent(),t.println(e,"}"),null},t.prototype._visitParams=function(e,t){this.visitAllObjects(function(e){return t.print(null,e.name)},e,t,",")},t.prototype.getBuiltinMethodName=function(e){var t;switch(e){case we.ConcatArray:t="concat";break;case we.SubscribeObservable:t="subscribe";break;case we.Bind:t="bind";break;default:throw new Error("Unknown builtin method: "+e)}return t},t}(ho),yo=function(){function e(){}return e.prototype.evaluateStatements=function(e,t,n,r){var i=new go(n),o=po.createRoot();return t.length>0&&!function s(e){return e.isEquivalent(yt("use strict").toStmt())} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(t[0])&&(t=f([yt("use strict").toStmt()],t)),i.visitAllStatements(t,o),i.createReturnStmt(o),this.evaluateCode(e,o,i.getArgs(),r)},e.prototype.evaluateCode=function(e,t,n,r){var i='"use strict";'+t.toSource()+"\n//# sourceURL="+e,o=[],s=[];for(var a in n)s.push(n[a]),o.push(a);if(r){var u=(new(Function.bind.apply(Function,f([void 0],o.concat("return null;"))))).toString(),l=u.slice(0,u.indexOf("return null;")).split("\n").length-1;i+="\n"+t.toSourceMapGenerator(e,l).toJsComment()}var c=new(Function.bind.apply(Function,f([void 0],o.concat(i))));return this.executeFunction(c,s)},e.prototype.executeFunction=function(e,t){return e.apply(void 0,f(t))},e}(),go=function(e){function t(t){var n=e.call(this)||this;return n.reflector=t,n._evalArgNames=[],n._evalArgValues=[],n._evalExportedVars=[],n}return o(t,e),t.prototype.createReturnStmt=function(e){new Je(new ze(this._evalExportedVars.map(function(e){return new Ke(e,ct(e),!1)}))).visitStatement(this,e)},t.prototype.getArgs=function(){for(var e={},t=0;t0?ht(ft(t)):me}function wo(e,t){var n=ft(e.map(function(e){return e.value}));return t?vt([],[new Je(n)]):n} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var xo=function xo(e,t,n,r){this.input=t,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+e+" "+n+" ["+t+"] in "+r},Eo=function Eo(e,t){this.start=e,this.end=t},So=function(){function e(e){this.span=e}return e.prototype.visit=function(e,t){return void 0===t&&(t=null),null},e.prototype.toString=function(){return"AST"},e}(),Co=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.prefix=n,o.uninterpretedExpression=r,o.location=i,o}return o(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitQuote(this,t)},t.prototype.toString=function(){return"Quote"},t}(So),To=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.visit=function(e,t){void 0===t&&(t=null)},t}(So),No=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitImplicitReceiver(this,t)},t}(So),ko=function(e){function t(t,n){var r=e.call(this,t)||this;return r.expressions=n,r}return o(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitChain(this,t)},t}(So),Ao=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.condition=n,o.trueExp=r,o.falseExp=i,o}return o(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitConditional(this,t)},t}(So),Po=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.receiver=n,i.name=r,i}return o(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPropertyRead(this,t)},t}(So),Io=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.receiver=n,o.name=r,o.value=i,o}return o(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPropertyWrite(this,t)},t}(So),Mo=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.receiver=n,i.name=r,i}return o(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitSafePropertyRead(this,t)},t}(So),Oo=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.obj=n,i.key=r,i}return o(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitKeyedRead(this,t)},t}(So),Ro=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.obj=n,o.key=r,o.value=i,o}return o(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitKeyedWrite(this,t)},t}(So),Do=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.exp=n,o.name=r,o.args=i,o}return o(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPipe(this,t)},t}(So),Lo=function(e){function t(t,n){var r=e.call(this,t)||this;return r.value=n,r}return o(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralPrimitive(this,t)},t}(So),Fo=function(e){function t(t,n){var r=e.call(this,t)||this;return r.expressions=n,r}return o(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralArray(this,t)},t}(So),jo=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.keys=n,i.values=r,i}return o(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralMap(this,t)},t}(So),Vo=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.strings=n,i.expressions=r,i}return o(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitInterpolation(this,t)},t}(So),Bo=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.operation=n,o.left=r,o.right=i,o}return o(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitBinary(this,t)},t}(So),Ho=function(e){function t(t,n){var r=e.call(this,t)||this;return r.expression=n,r}return o(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPrefixNot(this,t)},t}(So),Uo=function(e){function t(t,n){var r=e.call(this,t)||this;return r.expression=n,r}return o(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitNonNullAssert(this,t)},t}(So),qo=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.receiver=n,o.name=r,o.args=i,o}return o(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitMethodCall(this,t)},t}(So),Ko=function(e){function t(t,n,r,i){var o=e.call(this,t)||this;return o.receiver=n,o.name=r,o.args=i,o}return o(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitSafeMethodCall(this,t)},t}(So),zo=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.target=n,i.args=r,i}return o(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitFunctionCall(this,t)},t}(So),Wo=function(e){function t(t,n,r,i){var o=e.call(this,new Eo(0,null==n?0:n.length))||this;return o.ast=t,o.source=n,o.location=r,o.errors=i,o}return o(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),this.ast.visit(e,t)},t.prototype.toString=function(){return this.source+" in "+this.location},t}(So),Qo=function Qo(e,t,n,r,i){this.span=e,this.key=t,this.keyIsVar=n,this.name=r,this.expression=i},$o=function(){function e(){}return e.prototype.visitBinary=function(e,t){},e.prototype.visitChain=function(e,t){},e.prototype.visitConditional=function(e,t){},e.prototype.visitFunctionCall=function(e,t){},e.prototype.visitImplicitReceiver=function(e,t){},e.prototype.visitInterpolation=function(e,t){},e.prototype.visitKeyedRead=function(e,t){},e.prototype.visitKeyedWrite=function(e,t){},e.prototype.visitLiteralArray=function(e,t){},e.prototype.visitLiteralMap=function(e,t){},e.prototype.visitLiteralPrimitive=function(e,t){},e.prototype.visitMethodCall=function(e,t){},e.prototype.visitPipe=function(e,t){},e.prototype.visitPrefixNot=function(e,t){},e.prototype.visitNonNullAssert=function(e,t){},e.prototype.visitPropertyRead=function(e,t){},e.prototype.visitPropertyWrite=function(e,t){},e.prototype.visitQuote=function(e,t){},e.prototype.visitSafeMethodCall=function(e,t){},e.prototype.visitSafePropertyRead=function(e,t){},e}(),Go=function(){function e(){}return e.prototype.visitBinary=function(e,t){return e.left.visit(this,t),e.right.visit(this,t),null},e.prototype.visitChain=function(e,t){return this.visitAll(e.expressions,t)},e.prototype.visitConditional=function(e,t){return e.condition.visit(this,t),e.trueExp.visit(this,t),e.falseExp.visit(this,t),null},e.prototype.visitPipe=function(e,t){return e.exp.visit(this,t),this.visitAll(e.args,t),null},e.prototype.visitFunctionCall=function(e,t){return e.target.visit(this,t),this.visitAll(e.args,t),null},e.prototype.visitImplicitReceiver=function(e,t){return null},e.prototype.visitInterpolation=function(e,t){return this.visitAll(e.expressions,t)},e.prototype.visitKeyedRead=function(e,t){return e.obj.visit(this,t),e.key.visit(this,t),null},e.prototype.visitKeyedWrite=function(e,t){return e.obj.visit(this,t),e.key.visit(this,t),e.value.visit(this,t),null},e.prototype.visitLiteralArray=function(e,t){return this.visitAll(e.expressions,t)},e.prototype.visitLiteralMap=function(e,t){return this.visitAll(e.values,t)},e.prototype.visitLiteralPrimitive=function(e,t){return null},e.prototype.visitMethodCall=function(e,t){return e.receiver.visit(this,t),this.visitAll(e.args,t)},e.prototype.visitPrefixNot=function(e,t){return e.expression.visit(this,t),null},e.prototype.visitNonNullAssert=function(e,t){return e.expression.visit(this,t),null},e.prototype.visitPropertyRead=function(e,t){return e.receiver.visit(this,t),null},e.prototype.visitPropertyWrite=function(e,t){return e.receiver.visit(this,t),e.value.visit(this,t),null},e.prototype.visitSafePropertyRead=function(e,t){return e.receiver.visit(this,t),null},e.prototype.visitSafeMethodCall=function(e,t){return e.receiver.visit(this,t),this.visitAll(e.args,t)},e.prototype.visitAll=function(e,t){var n=this;return e.forEach(function(e){return e.visit(n,t)}),null},e.prototype.visitQuote=function(e,t){return null},e}(),Xo=function(){function e(){}return e.prototype.visitImplicitReceiver=function(e,t){return e},e.prototype.visitInterpolation=function(e,t){return new Vo(e.span,e.strings,this.visitAll(e.expressions))},e.prototype.visitLiteralPrimitive=function(e,t){return new Lo(e.span,e.value)},e.prototype.visitPropertyRead=function(e,t){return new Po(e.span,e.receiver.visit(this),e.name)},e.prototype.visitPropertyWrite=function(e,t){return new Io(e.span,e.receiver.visit(this),e.name,e.value.visit(this))},e.prototype.visitSafePropertyRead=function(e,t){return new Mo(e.span,e.receiver.visit(this),e.name)},e.prototype.visitMethodCall=function(e,t){return new qo(e.span,e.receiver.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitSafeMethodCall=function(e,t){return new Ko(e.span,e.receiver.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitFunctionCall=function(e,t){return new zo(e.span,e.target.visit(this),this.visitAll(e.args))},e.prototype.visitLiteralArray=function(e,t){return new Fo(e.span,this.visitAll(e.expressions))},e.prototype.visitLiteralMap=function(e,t){return new jo(e.span,e.keys,this.visitAll(e.values))},e.prototype.visitBinary=function(e,t){return new Bo(e.span,e.operation,e.left.visit(this),e.right.visit(this))},e.prototype.visitPrefixNot=function(e,t){return new Ho(e.span,e.expression.visit(this))},e.prototype.visitNonNullAssert=function(e,t){return new Uo(e.span,e.expression.visit(this))},e.prototype.visitConditional=function(e,t){return new Ao(e.span,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))},e.prototype.visitPipe=function(e,t){return new Do(e.span,e.exp.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitKeyedRead=function(e,t){return new Oo(e.span,e.obj.visit(this),e.key.visit(this))},e.prototype.visitKeyedWrite=function(e,t){return new Ro(e.span,e.obj.visit(this),e.key.visit(this),e.value.visit(this))},e.prototype.visitAll=function(e){for(var t=new Array(e.length),n=0;n":n=ue.Bigger;break;case"<=":n=ue.LowerEquals;break;case">=":n=ue.BiggerEquals;break;default:throw new Error("Unsupported operation "+e.operation)}return ds(t,new Be(n,this._visit(e.left,ns.Expression),this._visit(e.right,ns.Expression),void 0,this.convertSourceSpan(e.span)))},e.prototype.visitChain=function(e,t){return function n(e,t){if(e!==ns.Statement)throw new Error("Expected a statement, but saw "+t)}(t,e),this.visitAll(e.expressions,t)},e.prototype.visitConditional=function(e,t){return ds(t,this._visit(e.condition,ns.Expression).conditional(this._visit(e.trueExp,ns.Expression),this._visit(e.falseExp,ns.Expression),this.convertSourceSpan(e.span)))},e.prototype.visitPipe=function(e,t){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: "+e.name)},e.prototype.visitFunctionCall=function(e,t){var n=this.visitAll(e.args,ns.Expression);return ds(t,e instanceof gs?e.converter(n):this._visit(e.target,ns.Expression).callFn(n,this.convertSourceSpan(e.span)))},e.prototype.visitImplicitReceiver=function(e,t){return fs(t,e),this.usesImplicitReceiver=!0,this._implicitReceiver},e.prototype.visitInterpolation=function(e,t){fs(t,e);for(var n=[yt(e.expressions.length)],r=0;r-1?this._colonHostPartReplacer(e,t,n):e+t+n+", "+t+" "+e+n},e.prototype._colonHostPartReplacer=function(e,t,n){return e+t.replace(Ss,"")+n},e.prototype._convertShadowDOMSelectors=function(e){return Is.reduce(function(e,t){return e.replace(t," ")},e)},e.prototype._scopeSelectors=function(e,t,n){var r=this;return function i(e,t){var n=function r(e){for(var t=e.split(Bs),n=[],r=[],i=0,o=[],s=0;s0?o.push(a):(o.length>0&&(r.push(o.join("")),n.push(qs),o=[]),n.push(a)),a==Hs&&i++}return o.length>0&&(r.push(o.join("")),n.push(qs)),new zs(n.join(""),r)} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e),i=0;return n.escapedString.replace(Vs,function(){for(var e=[],r=0;r-1)r=i._applySimpleSelectorScope(e,t,n);else{var s=e.replace(Rs,"");if(s.length>0){var a=s.match(/([^:]*)(:*)(.*)/);a&&(r=a[1]+o+a[2]+a[3])}}return r},a=new bs(e),u="",l=0,c=/( |>|\+|~(?!=))\s*/g,p=!((e=a.content()).indexOf(As)>-1);null!==(r=c.exec(e));){var h=r[1],f=e.slice(l,r.index).trim();u+=((p=p||f.indexOf(As)>-1)?s(f):f)+" "+h+" ",l=c.lastIndex}var d=e.substring(l);return u+=(p=p||d.indexOf(As)>-1)?s(d):d,a.restore(u)},e.prototype._insertPolyfillHostInCssText=function(e){return e.replace(Ls,Cs).replace(Ds,Ss)},e}(),bs=function(){function e(e){var t=this;this.placeholders=[],this.index=0,e=e.replace(/(\[[^\]]*\])/g,function(e,n){var r="__ph-"+t.index+"__";return t.placeholders.push(n),t.index++,r}),this._content=e.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(e,n,r){var i="__ph-"+t.index+"__";return t.placeholders.push(r),t.index++,n+i})}return e.prototype.restore=function(e){var t=this;return e.replace(/__ph-(\d+)__/g,function(e,n){return t.placeholders[+n]})},e.prototype.content=function(){return this._content},e}(),ws=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,xs=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Es=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Ss="-shadowcsshost",Cs="-shadowcsscontext",Ts=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Ns=new RegExp("("+Ss+Ts,"gim"),ks=new RegExp("("+Cs+Ts,"gim"),As=Ss+"-no-combinator",Ps=/-shadowcsshost-no-combinator([^\s]*)/,Is=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Ms=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,Os="([>\\s~+[.,{:][\\s\\S]*)?$",Rs=/-shadowcsshost/gim,Ds=/:host/gim,Ls=/:host-context/gim,Fs=/\/\*\s*[\s\S]*?\*\//g,js=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g,Vs=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Bs=/([{}])/g,Hs="{",Us="}",qs="%BLOCK%",Ks=function Ks(e,t){this.selector=e,this.content=t},zs=function zs(e,t){this.escapedString=e,this.blocks=t},Ws=function(){function e(e,t){void 0===t&&(t=-1),this.path=e,this.position=t}return Object.defineProperty(e.prototype,"empty",{get:function(){return!this.path||!this.path.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"head",{get:function(){return this.path[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tail",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),e.prototype.parentOf=function(e){return e&&this.path[this.path.indexOf(e)-1]},e.prototype.childOf=function(e){return this.path[this.path.indexOf(e)+1]},e.prototype.first=function(e){for(var t=this.path.length-1;t>=0;t--){var n=this.path[t];if(n instanceof e)return n}},e.prototype.push=function(e){this.path.push(e)},e.prototype.pop=function(){return this.path.pop()},e}(),Qs=function(){function e(e,t,n){this.value=e,this.sourceSpan=t,this.i18n=n}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}(),$s=function(){function e(e,t,n,r,i,o){this.switchValue=e,this.type=t,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=i,this.i18n=o}return e.prototype.visit=function(e,t){return e.visitExpansion(this,t)},e}(),Gs=function(){function e(e,t,n,r,i){this.value=e,this.expression=t,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=i}return e.prototype.visit=function(e,t){return e.visitExpansionCase(this,t)},e}(),Xs=function(){function e(e,t,n,r,i){this.name=e,this.value=t,this.sourceSpan=n,this.valueSpan=r,this.i18n=i}return e.prototype.visit=function(e,t){return e.visitAttribute(this,t)},e}(),Ys=function(){function e(e,t,n,r,i,o,s){void 0===i&&(i=null),void 0===o&&(o=null),this.name=e,this.attrs=t,this.children=n,this.sourceSpan=r,this.startSourceSpan=i,this.endSourceSpan=o,this.i18n=s}return e.prototype.visit=function(e,t){return e.visitElement(this,t)},e}(),Zs=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitComment(this,t)},e}();function Js(e,t,n){void 0===n&&(n=null);var r=[],i=e.visit?function(t){return e.visit(t,n)||t.visit(e,n)}:function(t){return t.visit(e,n)};return t.forEach(function(e){var t=i(e);t&&r.push(t)}),r}var ea,ta=function(){function e(){}return e.prototype.visitElement=function(e,t){this.visitChildren(t,function(t){t(e.attrs),t(e.children)})},e.prototype.visitAttribute=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitComment=function(e,t){},e.prototype.visitExpansion=function(e,t){return this.visitChildren(t,function(t){t(e.cases)})},e.prototype.visitExpansionCase=function(e,t){},e.prototype.visitChildren=function(e,t){var n=[],r=this;return t(function i(t){t&&n.push(Js(r,t,e))}),[].concat.apply([],n)},e}();function na(e,t){var n=[];return Js(new(function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return o(r,e),r.prototype.visit=function(e,r){var i=function e(t){var n=t.sourceSpan.start.offset,r=t.sourceSpan.end.offset;return t instanceof Ys&&(t.endSourceSpan?r=t.endSourceSpan.end.offset:t.children&&t.children.length&&(r=e(t.children[t.children.length-1]).end)),{start:n,end:r}}(e);if(!(i.start<=t&&t;" or "&#x;" syntax'}var la=function la(e){this.error=e},ca=function(){function e(e,t,n){this._getTagDefinition=t,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._interpolationConfig=n.interpolationConfig||eo,this._leadingTriviaCodePoints=n.leadingTriviaChars&&n.leadingTriviaChars.map(function(e){return e.codePointAt(0)||0});var r=n.range||{endPos:e.content.length,startPos:0,startLine:0,startCol:0};this._cursor=n.escapedString?new ya(e,r):new ma(e,r);try{this._cursor.init()}catch(e){this.handleError(e)}}return e.prototype._processCarriageReturns=function(e){return e.replace(sa,"\n")},e.prototype.tokenize=function(){for(;this._cursor.peek()!==gn;){var e=this._cursor.clone();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(e):this._attemptCharCode(An)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(Pn)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){this.handleError(e)}}return this._beginToken(ea.EOF),this._endToken([]),new oa(function t(e){for(var t=[],n=void 0,r=0;r")}),this._beginToken(ea.CDATA_END),this._requireStr("]]>"),this._endToken([])},e.prototype._consumeDocType=function(e){this._beginToken(ea.DOC_TYPE,e);var t=this._cursor.clone();this._attemptUntilChar(On);var n=this._cursor.getChars(t);this._cursor.advance(),this._endToken([n])},e.prototype._consumePrefixAndName=function(){for(var e,t,n=this._cursor.clone(),r="";58!==this._cursor.peek()&&!(((e=this._cursor.peek())Ln));)this._cursor.advance();return 58===this._cursor.peek()?(r=this._cursor.getChars(n),this._cursor.advance(),t=this._cursor.clone()):t=n,this._requireCharCodeUntilFn(ha,""===r?0:1),[r,this._cursor.getChars(t)]},e.prototype._consumeTagOpen=function(e){var t,n,r,i=this.tokens.length,o=this._cursor.clone();try{if(!Yn(this._cursor.peek()))throw this._createError(aa(this._cursor.peek()),this._cursor.getSpan(e));for(n=(r=this._consumeTagOpenStart(e)).parts[0],t=r.parts[1],this._attemptCharCodeUntilFn(pa);this._cursor.peek()!==Pn&&this._cursor.peek()!==On;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(pa),this._attemptCharCode(Mn)&&(this._attemptCharCodeUntilFn(pa),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(pa);this._consumeTagOpenEnd()}catch(t){if(t instanceof la)return this._cursor=o,r&&(this.tokens.length=i),this._beginToken(ea.TEXT,e),void this._endToken(["<"]);throw t}var a=this._getTagDefinition(t).contentType;a===s.RAW_TEXT?this._consumeRawTextWithTagClose(n,t,!1):a===s.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,t,!0)},e.prototype._consumeRawTextWithTagClose=function(e,t,n){var r=this;this._consumeRawText(n,function(){return!!r._attemptCharCode(60)&&!!r._attemptCharCode(Pn)&&(r._attemptCharCodeUntilFn(pa),!!r._attemptStrCaseInsensitive(t)&&(r._attemptCharCodeUntilFn(pa),r._attemptCharCode(On)))}),this._beginToken(ea.TAG_CLOSE),this._requireCharCodeUntilFn(function(e){return e===On},3),this._cursor.advance(),this._endToken([e,t])},e.prototype._consumeTagOpenStart=function(e){this._beginToken(ea.TAG_OPEN_START,e);var t=this._consumePrefixAndName();return this._endToken(t)},e.prototype._consumeAttributeName=function(){var e=this._cursor.peek();if(e===Nn||e===Cn)throw this._createError(aa(e),this._cursor.getSpan());this._beginToken(ea.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},e.prototype._consumeAttributeValue=function(){var e;if(this._cursor.peek()===Nn||this._cursor.peek()===Cn){this._beginToken(ea.ATTR_QUOTE);var t=this._cursor.peek();this._cursor.advance(),this._endToken([String.fromCodePoint(t)]),this._beginToken(ea.ATTR_VALUE);for(var n=[];this._cursor.peek()!==t;)n.push(this._readChar(!0));e=n.join(""),this._endToken([this._processCarriageReturns(e)]),this._beginToken(ea.ATTR_QUOTE),this._cursor.advance(),this._endToken([String.fromCodePoint(t)])}else{this._beginToken(ea.ATTR_VALUE);var r=this._cursor.clone();this._requireCharCodeUntilFn(ha,1),e=this._cursor.getChars(r),this._endToken([this._processCarriageReturns(e)])}},e.prototype._consumeTagOpenEnd=function(){var e=this._attemptCharCode(Pn)?ea.TAG_OPEN_END_VOID:ea.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(On),this._endToken([])},e.prototype._consumeTagClose=function(e){this._beginToken(ea.TAG_CLOSE,e),this._attemptCharCodeUntilFn(pa);var t=this._consumePrefixAndName();this._attemptCharCodeUntilFn(pa),this._requireCharCode(On),this._endToken(t)},e.prototype._consumeExpansionFormStart=function(){this._beginToken(ea.EXPANSION_FORM_START),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(ea.EXPANSION_FORM_START),this._beginToken(ea.RAW_TEXT);var e=this._readUntil(44);this._endToken([e]),this._requireCharCode(44),this._attemptCharCodeUntilFn(pa),this._beginToken(ea.RAW_TEXT);var t=this._readUntil(44);this._endToken([t]),this._requireCharCode(44),this._attemptCharCodeUntilFn(pa)},e.prototype._consumeExpansionCaseStart=function(){this._beginToken(ea.EXPANSION_CASE_VALUE);var e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(pa),this._beginToken(ea.EXPANSION_CASE_EXP_START),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(pa),this._expansionCaseStack.push(ea.EXPANSION_CASE_EXP_START)},e.prototype._consumeExpansionCaseEnd=function(){this._beginToken(ea.EXPANSION_CASE_EXP_END),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(pa),this._expansionCaseStack.pop()},e.prototype._consumeExpansionFormEnd=function(){this._beginToken(ea.EXPANSION_FORM_END),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},e.prototype._consumeText=function(){var e=this._cursor.clone();this._beginToken(ea.TEXT,e);var t=[];do{this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(t.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(t.push(this._interpolationConfig.end),this._inInterpolation=!1):t.push(this._readChar(!0))}while(!this._isTextEnd());this._endToken([this._processCarriageReturns(t.join(""))])},e.prototype._isTextEnd=function(){if(60===this._cursor.peek()||this._cursor.peek()===gn)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(this.isExpansionFormStart())return!0;if(125===this._cursor.peek()&&this._isInExpansionCase())return!0}return!1},e.prototype._readUntil=function(e){var t=this._cursor.clone();return this._attemptUntilChar(e),this._cursor.getChars(t)},e.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===ea.EXPANSION_CASE_EXP_START},e.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===ea.EXPANSION_FORM_START},e.prototype.isExpansionFormStart=function(){if(123!==this._cursor.peek())return!1;if(this._interpolationConfig){var e=this._cursor.clone(),t=this._attemptStr(this._interpolationConfig.start);return this._cursor=e,!t}return!0},e}();function pa(e){return!Gn(e)||e===gn}function ha(e){return Gn(e)||e===On||e===Pn||e===Nn||e===Cn||e===Mn}function fa(e){return e==In||e==gn||!function t(e){return e>=Hn&&e<=Un||e>=Fn&&e<=jn||Xn(e)}(e)}function da(e){return e==In||e==gn||!Yn(e)}function va(e){return e>=Hn&&e<=Qn?e-Hn+Fn:e}var ma=function(){function e(t,n){if(t instanceof e)this.file=t.file,this.input=t.input,this.end=t.end,this.state=a({},t.state);else{if(!n)throw new Error("Programming error: the range argument must be provided with a file argument.");this.file=t,this.input=t.content,this.end=n.endPos,this.state={peek:-1,offset:n.startPos,line:n.startLine,column:n.startCol}}}return e.prototype.clone=function(){return new e(this)},e.prototype.peek=function(){return this.state.peek},e.prototype.charsLeft=function(){return this.end-this.state.offset},e.prototype.diff=function(e){return this.state.offset-e.state.offset},e.prototype.advance=function(){this.advanceState(this.state)},e.prototype.init=function(){this.updatePeek(this.state)},e.prototype.getSpan=function(e,t){if(e=e||this,t)for(e=e.clone();this.diff(e)>0&&-1!==t.indexOf(e.peek());)e.advance();return new rr(new tr(e.file,e.state.offset,e.state.line,e.state.column),new tr(this.file,this.state.offset,this.state.line,this.state.column))},e.prototype.getChars=function(e){return this.input.substring(e.state.offset,this.state.offset)},e.prototype.charAt=function(e){return this.input.charCodeAt(e)},e.prototype.advanceState=function(e){if(e.offset>=this.end)throw this.state=e,new ga('Unexpected character "EOF"',this);var t=this.charAt(e.offset);t===bn?(e.line++,e.column=0):Zn(t)||e.column++,e.offset++,this.updatePeek(e)},e.prototype.updatePeek=function(e){e.peek=e.offset>=this.end?gn:this.charAt(e.offset)},e}(),ya=function(e){function t(n,r){var i=this;return n instanceof t?(i=e.call(this,n)||this).internalState=a({},n.internalState):(i=e.call(this,n,r)||this).internalState=i.state,i}return o(t,e),t.prototype.advance=function(){this.state=this.internalState,e.prototype.advance.call(this),this.processEscapeSequence()},t.prototype.init=function(){e.prototype.init.call(this),this.processEscapeSequence()},t.prototype.clone=function(){return new t(this)},t.prototype.getChars=function(e){for(var t=e.clone(),n="";t.internalState.offset0)return this._errors=this._errors.concat(o.errors),null;var s=new rr(t.sourceSpan.start,i.sourceSpan.end),a=new rr(n.sourceSpan.start,i.sourceSpan.end);return new Gs(t.parts[0],o.rootNodes,s,t.sourceSpan,a)},e.prototype._collectExpansionExpTokens=function(e){for(var t=[],n=[ea.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==ea.EXPANSION_FORM_START&&this._peek.type!==ea.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===ea.EXPANSION_CASE_EXP_END){if(!Ea(n,ea.EXPANSION_CASE_EXP_START))return this._errors.push(_a.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return t}if(this._peek.type===ea.EXPANSION_FORM_END){if(!Ea(n,ea.EXPANSION_FORM_START))return this._errors.push(_a.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===ea.EOF)return this._errors.push(_a.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;t.push(this._advance())}},e.prototype._consumeText=function(e){var t=e.parts[0];if(t.length>0&&"\n"==t[0]){var n=this._getParentElement();null!=n&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(t=t.substring(1))}t.length>0&&this._addToParent(new Qs(t,e.sourceSpan))},e.prototype._closeVoidElement=function(){var e=this._getParentElement();e&&this.getTagDefinition(e.name).isVoid&&this._elementStack.pop()},e.prototype._consumeStartTag=function(e){for(var t=e.parts[0],n=e.parts[1],r=[];this._peek.type===ea.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(t,n,this._getParentElement()),o=!1;if(this._peek.type===ea.TAG_OPEN_END_VOID){this._advance(),o=!0;var s=this.getTagDefinition(i);s.canSelfClose||null!==g(i)||s.isVoid||this._errors.push(_a.create(i,e.sourceSpan,'Only void and foreign elements can be self closed "'+e.parts[1]+'"'))}else this._peek.type===ea.TAG_OPEN_END&&(this._advance(),o=!1);var a=new rr(e.sourceSpan.start,this._peek.sourceSpan.start),u=new Ys(i,r,[],a,a,void 0);this._pushElement(u),o&&(this._popElement(i),u.endSourceSpan=a)},e.prototype._pushElement=function(e){var t=this._getParentElement();t&&this.getTagDefinition(t.name).isClosedByChild(e.name)&&this._elementStack.pop(),this._addToParent(e),this._elementStack.push(e)},e.prototype._consumeEndTag=function(e){var t=this._getElementFullName(e.parts[0],e.parts[1],this._getParentElement());this._getParentElement()&&(this._getParentElement().endSourceSpan=e.sourceSpan),this.getTagDefinition(t).isVoid?this._errors.push(_a.create(t,e.sourceSpan,'Void elements do not have end tags "'+e.parts[1]+'"')):this._popElement(t)||this._errors.push(_a.create(t,e.sourceSpan,'Unexpected closing tag "'+t+'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags'))},e.prototype._popElement=function(e){for(var t=this._elementStack.length-1;t>=0;t--){var n=this._elementStack[t];if(n.name==e)return this._elementStack.splice(t,this._elementStack.length-t),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},e.prototype._consumeAttr=function(e){var t=_(e.parts[0],e.parts[1]),n=e.sourceSpan.end,r="",i=void 0;if(this._peek.type===ea.ATTR_QUOTE&&this._advance(),this._peek.type===ea.ATTR_VALUE){var o=this._advance();r=o.parts[0],n=o.sourceSpan.end,i=o.sourceSpan}return this._peek.type===ea.ATTR_QUOTE&&(n=this._advance().sourceSpan.end),new Xs(t,r,new rr(e.sourceSpan.start,n),i)},e.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},e.prototype._getParentElementSkippingContainers=function(){for(var e=null,t=this._elementStack.length-1;t>=0;t--){if(!v(this._elementStack[t].name))return{parent:this._elementStack[t],container:e};e=this._elementStack[t]}return{parent:null,container:e}},e.prototype._addToParent=function(e){var t=this._getParentElement();null!=t?t.children.push(e):this._rootNodes.push(e)},e.prototype._insertBeforeContainer=function(e,t,n){if(t){if(e){var r=e.children.indexOf(t);e.children[r]=n}else this._rootNodes.push(n);n.children.push(t),this._elementStack.splice(this._elementStack.indexOf(t),0,n)}else this._addToParent(n),this._elementStack.push(n)},e.prototype._getElementFullName=function(e,t,n){return""===e&&""===(e=this.getTagDefinition(t).implicitNamespacePrefix||"")&&null!=n&&(e=g(n.name)),_(e,t)},e}();function Ea(e,t){return e.length>0&&e[e.length-1]===t} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var Sa=function(e){function t(){return e.call(this,C)||this}return o(t,e),t.prototype.parse=function(t,n,r){return e.prototype.parse.call(this,t,n,r)},t}(wa),Ca=new Set(["pre","template","textarea","script","style"]),Ta=" \f\n\r\t\v ᠎ - \u2028\u2029   \ufeff",Na=new RegExp("[^"+Ta+"]"),ka=new RegExp("["+Ta+"]{2,}","g"); /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Aa(e){return e.replace(new RegExp(w,"g")," ")}var Pa=function(){function e(){}return e.prototype.visitElement=function(e,t){return Ca.has(e.name)||function n(e){return e.some(function(e){return"ngPreserveWhitespaces"===e.name})}(e.attrs)?new Ys(e.name,Js(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new Ys(e.name,e.attrs,Js(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)},e.prototype.visitAttribute=function(e,t){return"ngPreserveWhitespaces"!==e.name?e:null},e.prototype.visitText=function(e,t){return e.value.match(Na)?new Qs(Aa(e.value).replace(ka," "),e.sourceSpan,e.i18n):null},e.prototype.visitComment=function(e,t){return e},e.prototype.visitExpansion=function(e,t){return e},e.prototype.visitExpansionCase=function(e,t){return e},e}(),Ia=["zero","one","two","few","many","other"];function Ma(e){var t=new Fa;return new Da(Js(t,e),t.isExpanded,t.errors)}var Oa,Ra,Da=function Da(e,t,n){this.nodes=e,this.expanded=t,this.errors=n},La=function(e){function t(t,n){return e.call(this,t,n)||this}return o(t,e),t}(ir),Fa=function(){function e(){this.isExpanded=!1,this.errors=[]}return e.prototype.visitElement=function(e,t){return new Ys(e.name,e.attrs,Js(this,e.children),e.sourceSpan,e.startSourceSpan,e.endSourceSpan)},e.prototype.visitAttribute=function(e,t){return e},e.prototype.visitText=function(e,t){return e},e.prototype.visitComment=function(e,t){return e},e.prototype.visitExpansion=function(e,t){return this.isExpanded=!0,"plural"==e.type?function n(e,t){var n=e.cases.map(function(e){-1!=Ia.indexOf(e.value)||e.value.match(/^=\d+$/)||t.push(new La(e.valueSourceSpan,'Plural cases should be "=" or one of '+Ia.join(", ")));var n=Ma(e.expression);return t.push.apply(t,f(n.errors)),new Ys("ng-template",[new Xs("ngPluralCase",""+e.value,e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)}),r=new Xs("[ngPlural]",e.switchValue,e.switchValueSourceSpan);return new Ys("ng-container",[r],n,e.sourceSpan,e.sourceSpan,e.sourceSpan)}(e,this.errors):function r(e,t){var n=e.cases.map(function(e){var n=Ma(e.expression);return t.push.apply(t,f(n.errors)),new Ys("ng-template","other"===e.value?[new Xs("ngSwitchDefault","",e.valueSourceSpan)]:[new Xs("ngSwitchCase",""+e.value,e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)}),r=new Xs("[ngSwitch]",e.switchValue,e.switchValueSourceSpan);return new Ys("ng-container",[r],n,e.sourceSpan,e.sourceSpan,e.sourceSpan)} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e,this.errors)},e.prototype.visitExpansionCase=function(e,t){throw new Error("Should not be reached")},e}(),ja=function(){function e(e,t,n){this.value=e,this.ngContentIndex=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}(),Va=function(){function e(e,t,n){this.value=e,this.ngContentIndex=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitBoundText(this,t)},e}(),Ba=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitAttr(this,t)},e}(),Ha=((Oa={})[4]=4,Oa[1]=1,Oa[2]=2,Oa[0]=0,Oa[3]=3,Oa),Ua=function(){function e(e,t,n,r,i,o){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o,this.isAnimation=4===this.type}return e.fromBoundProperty=function(t){return new e(t.name,Ha[t.type],t.securityContext,t.value,t.unit,t.sourceSpan)},e.prototype.visit=function(e,t){return e.visitElementProperty(this,t)},e}(),qa=function(){function e(t,n,r,i,o,s){this.name=t,this.target=n,this.phase=r,this.handler=i,this.sourceSpan=o,this.handlerSpan=s,this.fullName=e.calcFullName(this.name,this.target,this.phase),this.isAnimation=!!this.phase}return e.calcFullName=function(e,t,n){return t?t+":"+e:n?"@"+e+"."+n:e},e.fromParsedEvent=function(t){return new e(t.name,0===t.type?t.targetOrPhase:null,1===t.type?t.targetOrPhase:null,t.handler,t.sourceSpan,t.handlerSpan)},e.prototype.visit=function(e,t){return e.visitEvent(this,t)},e}(),Ka=function(){function e(e,t,n,r){this.name=e,this.value=t,this.originalValue=n,this.sourceSpan=r}return e.prototype.visit=function(e,t){return e.visitReference(this,t)},e}(),za=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.fromParsedVariable=function(t){return new e(t.name,t.value,t.sourceSpan)},e.prototype.visit=function(e,t){return e.visitVariable(this,t)},e}(),Wa=function(){function e(e,t,n,r,i,o,s,a,u,l,c,p,h){this.name=e,this.attrs=t,this.inputs=n,this.outputs=r,this.references=i,this.directives=o,this.providers=s,this.hasViewContainer=a,this.queryMatches=u,this.children=l,this.ngContentIndex=c,this.sourceSpan=p,this.endSourceSpan=h}return e.prototype.visit=function(e,t){return e.visitElement(this,t)},e}(),Qa=function(){function e(e,t,n,r,i,o,s,a,u,l,c){this.attrs=e,this.outputs=t,this.references=n,this.variables=r,this.directives=i,this.providers=o,this.hasViewContainer=s,this.queryMatches=a,this.children=u,this.ngContentIndex=l,this.sourceSpan=c}return e.prototype.visit=function(e,t){return e.visitEmbeddedTemplate(this,t)},e}(),$a=function(){function e(e,t,n,r){this.directiveName=e,this.templateName=t,this.value=n,this.sourceSpan=r}return e.prototype.visit=function(e,t){return e.visitDirectiveProperty(this,t)},e}(),Ga=function(){function e(e,t,n,r,i,o){this.directive=e,this.inputs=t,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=i,this.sourceSpan=o}return e.prototype.visit=function(e,t){return e.visitDirective(this,t)},e}(),Xa=function(){function e(e,t,n,r,i,o,s,a){this.token=e,this.multiProvider=t,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=o,this.sourceSpan=s,this.isModule=a}return e.prototype.visit=function(e,t){return null},e}();!function(e){e[e.PublicService=0]="PublicService",e[e.PrivateService=1]="PrivateService",e[e.Component=2]="Component",e[e.Directive=3]="Directive",e[e.Builtin=4]="Builtin"}(Ra||(Ra={}));var Ya=function(){function e(e,t,n){this.index=e,this.ngContentIndex=t,this.sourceSpan=n}return e.prototype.visit=function(e,t){return e.visitNgContent(this,t)},e}(),Za=function(){function e(){}return e.prototype.visitNgContent=function(e,t){},e.prototype.visitEmbeddedTemplate=function(e,t){},e.prototype.visitElement=function(e,t){},e.prototype.visitReference=function(e,t){},e.prototype.visitVariable=function(e,t){},e.prototype.visitEvent=function(e,t){},e.prototype.visitElementProperty=function(e,t){},e.prototype.visitAttr=function(e,t){},e.prototype.visitBoundText=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitDirective=function(e,t){},e.prototype.visitDirectiveProperty=function(e,t){},e}(),Ja=function(e){function t(){return e.call(this)||this}return o(t,e),t.prototype.visitEmbeddedTemplate=function(e,t){return this.visitChildren(t,function(t){t(e.attrs),t(e.references),t(e.variables),t(e.directives),t(e.providers),t(e.children)})},t.prototype.visitElement=function(e,t){return this.visitChildren(t,function(t){t(e.attrs),t(e.inputs),t(e.outputs),t(e.references),t(e.directives),t(e.providers),t(e.children)})},t.prototype.visitDirective=function(e,t){return this.visitChildren(t,function(t){t(e.inputs),t(e.hostProperties),t(e.hostEvents)})},t.prototype.visitChildren=function(e,t){var n=[],r=this;return t(function i(t){t&&t.length&&n.push(eu(r,t,e))}),[].concat.apply([],n)},t}(Za);function eu(e,t,n){void 0===n&&(n=null);var r=[],i=e.visit?function(t){return e.visit(t,n)||t.visit(e,n)}:function(t){return t.visit(e,n)};return t.forEach(function(e){var t=i(e);t&&r.push(t)}),r} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var tu=function(e){function t(t,n){return e.call(this,n,t)||this}return o(t,e),t}(ir),nu=function nu(e,t){var n=this;this.reflector=e,this.component=t,this.errors=[],this.viewQueries=function r(e){var t=1,n=new Map;return e.viewQueries&&e.viewQueries.forEach(function(e){return ou(n,{meta:e,queryId:t++})}),n}(t),this.viewProviders=new Map,t.viewProviders.forEach(function(e){null==n.viewProviders.get(sn(e.token))&&n.viewProviders.set(sn(e.token),!0)})},ru=function(){function e(e,t,n,r,i,o,s,a,u){var l=this;this.viewContext=e,this._parent=t,this._isViewRoot=n,this._directiveAsts=r,this._sourceSpan=u,this._transformedProviders=new Map,this._seenProviders=new Map,this._queriedTokens=new Map,this.transformedHasViewContainer=!1,this._attrs={},i.forEach(function(e){return l._attrs[e.name]=e.value});var c=r.map(function(e){return e.directive});if(this._allProviders=function p(e,t,n){var r=new Map;return e.forEach(function(e){iu([{token:{identifier:e.type},useClass:e.type}],e.isComponent?Ra.Component:Ra.Directive,!0,t,n,r,!1)}),e.filter(function(e){return e.isComponent}).concat(e.filter(function(e){return!e.isComponent})).forEach(function(e){iu(e.providers,Ra.PublicService,!1,t,n,r,!1),iu(e.viewProviders,Ra.PrivateService,!1,t,n,r,!1)}),r}(c,u,e.errors),this._contentQueries=function h(e,t){var n=e,r=new Map;return t.forEach(function(e,t){e.queries&&e.queries.forEach(function(e){return ou(r,{meta:e,queryId:n++})})}),r}(a,c),Array.from(this._allProviders.values()).forEach(function(e){l._addQueryReadsTo(e.token,e.token,l._queriedTokens)}),s){var f=Xt(this.viewContext.reflector,$t.TemplateRef);this._addQueryReadsTo(f,f,this._queriedTokens)}o.forEach(function(e){var t=e.value||Xt(l.viewContext.reflector,$t.ElementRef);l._addQueryReadsTo({value:e.name},t,l._queriedTokens)}),this._queriedTokens.get(this.viewContext.reflector.resolveExternalReference($t.ViewContainerRef))&&(this.transformedHasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(e){(e.eager||l._queriedTokens.get(sn(e.token)))&&l._getOrCreateLocalProvider(e.providerType,e.token,!0)})}return e.prototype.afterElement=function(){var e=this;Array.from(this._allProviders.values()).forEach(function(t){e._getOrCreateLocalProvider(t.providerType,t.token,!1)})},Object.defineProperty(e.prototype,"transformProviders",{get:function(){var e=[],t=[];return this._transformedProviders.forEach(function(n){n.eager?t.push(n):e.push(n)}),e.concat(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"transformedDirectiveAsts",{get:function(){var e=this.transformProviders.map(function(e){return e.token.identifier}),t=this._directiveAsts.slice();return t.sort(function(t,n){return e.indexOf(t.directive.type)-e.indexOf(n.directive.type)}),t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queryMatches",{get:function(){var e=[];return this._queriedTokens.forEach(function(t){e.push.apply(e,f(t))}),e},enumerable:!0,configurable:!0}),e.prototype._addQueryReadsTo=function(e,t,n){this._getQueriesFor(e).forEach(function(e){var r=e.meta.read||t,i=sn(r),o=n.get(i);o||n.set(i,o=[]),o.push({queryId:e.queryId,value:r})})},e.prototype._getQueriesFor=function(e){for(var t,n=[],r=this,i=0;null!==r;)(t=r._contentQueries.get(sn(e)))&&n.push.apply(n,f(t.filter(function(e){return e.meta.descendants||i<=1}))),r._directiveAsts.length>0&&i++,r=r._parent;return(t=this.viewContext.viewQueries.get(sn(e)))&&n.push.apply(n,f(t)),n},e.prototype._getOrCreateLocalProvider=function(e,t,n){var r=this,i=this._allProviders.get(sn(t));if(!i||(e===Ra.Directive||e===Ra.PublicService)&&i.providerType===Ra.PrivateService||(e===Ra.PrivateService||e===Ra.PublicService)&&i.providerType===Ra.Builtin)return null;var o=this._transformedProviders.get(sn(t));if(o)return o;if(null!=this._seenProviders.get(sn(t)))return this.viewContext.errors.push(new tu("Cannot instantiate cyclic dependency! "+on(t),this._sourceSpan)),null;this._seenProviders.set(sn(t),!0);var s=i.providers.map(function(e){var t=e.useValue,o=e.useExisting,s=void 0;if(null!=e.useExisting){var a=r._getDependency(i.providerType,{token:e.useExisting},n);null!=a.token?o=a.token:(o=null,t=a.value)}else e.useFactory?s=(e.deps||e.useFactory.diDeps).map(function(e){return r._getDependency(i.providerType,e,n)}):e.useClass&&(s=(e.deps||e.useClass.diDeps).map(function(e){return r._getDependency(i.providerType,e,n)}));return function u(e,t){return{token:e.token,useClass:e.useClass,useExisting:t.useExisting,useFactory:e.useFactory,useValue:t.useValue,deps:t.deps,multi:e.multi}}(e,{useExisting:o,useValue:t,deps:s})});return o=function a(e,t){return new Xa(e.token,e.multiProvider,e.eager||t.eager,t.providers,e.providerType,e.lifecycleHooks,e.sourceSpan,e.isModule)}(i,{eager:n,providers:s}),this._transformedProviders.set(sn(t),o),o},e.prototype._getLocalDependency=function(e,t,n){if(void 0===n&&(n=!1),t.isAttribute){var r=this._attrs[t.token.value];return{isValue:!0,value:null==r?null:r}}if(null!=t.token){if(e===Ra.Directive||e===Ra.Component){if(sn(t.token)===this.viewContext.reflector.resolveExternalReference($t.Renderer)||sn(t.token)===this.viewContext.reflector.resolveExternalReference($t.ElementRef)||sn(t.token)===this.viewContext.reflector.resolveExternalReference($t.ChangeDetectorRef)||sn(t.token)===this.viewContext.reflector.resolveExternalReference($t.TemplateRef))return t;sn(t.token)===this.viewContext.reflector.resolveExternalReference($t.ViewContainerRef)&&(this.transformedHasViewContainer=!0)}if(sn(t.token)===this.viewContext.reflector.resolveExternalReference($t.Injector))return t;if(null!=this._getOrCreateLocalProvider(e,t.token,n))return t}return null},e.prototype._getDependency=function(e,t,n){void 0===n&&(n=!1);var r=this,i=n,o=null;if(t.isSkipSelf||(o=this._getLocalDependency(e,t,n)),t.isSelf)!o&&t.isOptional&&(o={isValue:!0,value:null});else{for(;!o&&r._parent;)r._isViewRoot&&(i=!1),o=(r=r._parent)._getLocalDependency(Ra.PublicService,t,i);o||(o=!t.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===sn(t.token)||null!=this.viewContext.viewProviders.get(sn(t.token))?t:t.isOptional?{isValue:!0,value:null}:null)}return o||this.viewContext.errors.push(new tu("No provider for "+on(t.token),this._sourceSpan)),o},e}();function iu(e,t,n,r,i,o,s){e.forEach(function(e){var a=o.get(sn(e.token));null!=a&&!!a.multiProvider!=!!e.multi&&i.push(new tu("Mixing multi and non multi provider is not possible for token "+on(a.token),r)),a?(e.multi||(a.providers.length=0),a.providers.push(e)):(a=new Xa(e.token,!!e.multi,n||!(e.useClass||e.useExisting||e.useFactory),[e],t,e.token.identifier&&e.token.identifier.lifecycleHooks?e.token.identifier.lifecycleHooks:[],r,s),o.set(sn(e.token),a))})}function ou(e,t){t.meta.selectors.forEach(function(n){var r=e.get(sn(n));r||(r=[],e.set(sn(n),r)),r.push(t)})} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var su=function su(e,t){this.style=e,this.styleUrls=t};function au(e){if(null==e||0===e.length||"/"==e[0])return!1;var t=e.match(cu);return null===t||"package"==t[1]||"asset"==t[1]}var uu=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,lu=/\/\*(?!#\s*(?:sourceURL|sourceMappingURL)=)[\s\S]+?\*\//g,cu=/^([^:\/?#]+):/,pu=function(){function e(e,t,n,r,i){if(this._exprParser=e,this._interpolationConfig=t,this._schemaRegistry=n,this.errors=i,this.pipesByName=null,this._usedPipes=new Map,r){var o=new Map;r.forEach(function(e){return o.set(e.name,e)}),this.pipesByName=o}}return Object.defineProperty(e.prototype,"interpolationConfig",{get:function(){return this._interpolationConfig},enumerable:!0,configurable:!0}),e.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},e.prototype.createBoundHostProperties=function(e,t){var n=this;if(e.hostProperties){var r=[];return Object.keys(e.hostProperties).forEach(function(i){var o=e.hostProperties[i];"string"==typeof o?n.parsePropertyBinding(i,o,!0,t,[],r):n._reportError('Value of the host property binding "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",t)}),r}return null},e.prototype.createDirectiveHostPropertyAsts=function(e,t,n){var r=this,i=this.createBoundHostProperties(e,n);return i&&i.map(function(e){return r.createBoundElementProperty(t,e)})},e.prototype.createDirectiveHostEventAsts=function(e,t){var n=this;if(e.hostListeners){var r=[];return Object.keys(e.hostListeners).forEach(function(i){var o=e.hostListeners[i];"string"==typeof o?n.parseEvent(i,o,t,t,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",t)}),r}return null},e.prototype.parseInterpolation=function(e,t){var n=t.start.toString();try{var r=this._exprParser.parseInterpolation(e,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,t),this._checkPipes(r,t),r}catch(e){return this._reportError(""+e,t),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},e.prototype.parseInlineTemplateBinding=function(e,t,n,r,i,o){for(var s=this._parseTemplateBindings(e,t,n),a=0;a1)if("attr"==a[0]){s=a[1],n||this._validatePropertyOrAttributeName(s,t.sourceSpan,!0),u=du(this._schemaRegistry,e,s,!0);var l=s.indexOf(":");if(l>-1){var c=s.substring(0,l),p=s.substring(l+1);s=_(c,p)}o=1}else"class"==a[0]?(s=a[1],o=2,u=[H.NONE]):"style"==a[0]&&(i=a.length>2?a[2]:null,s=a[1],o=3,u=[H.STYLE]);if(null===s){var h=this._schemaRegistry.getMappedPropName(t.name);s=r?h:t.name,u=du(this._schemaRegistry,e,h,!1),o=0,n||this._validatePropertyOrAttributeName(h,t.sourceSpan,!1)}return new os(s,o,u[0],t.expression,i,t.sourceSpan)},e.prototype.parseEvent=function(e,t,n,r,i,o){fu(e)?(e=e.substr(1),this._parseAnimationEvent(e,t,n,r,o)):this._parseRegularEvent(e,t,n,r,i,o)},e.prototype.calcPossibleSecurityContexts=function(e,t,n){var r=this._schemaRegistry.getMappedPropName(t);return du(this._schemaRegistry,e,r,n)},e.prototype._parseAnimationEvent=function(e,t,n,r,i){var o=function s(e,t){return wt(e,".",t)}(e,[e,""]),a=o[0],u=o[1].toLowerCase();if(u)switch(u){case"start":case"done":var l=this._parseAction(t,r);i.push(new rs(a,u,1,l,n,r));break;default:this._reportError('The provided animation output phase value "'+u+'" for "@'+a+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+a+") is missing its phase value name (start or done are currently supported)",n)},e.prototype._parseRegularEvent=function(e,t,n,r,i,o){var s=h(bt(e,[null,e]),2),a=s[0],u=s[1],l=this._parseAction(t,r);i.push([e,l.source]),o.push(new rs(u,a,0,l,n,r))},e.prototype._parseAction=function(e,t){var n=(t&&t.start||"(unknown").toString();try{var r=this._exprParser.parseAction(e,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,t),!r||r.ast instanceof To?(this._reportError("Empty expressions are not allowed",t),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,t),r)}catch(e){return this._reportError(""+e,t),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},e.prototype._reportError=function(e,t,n){void 0===n&&(n=er.ERROR),this.errors.push(new ir(t,e,n))},e.prototype._reportExpressionParserErrors=function(e,t){var n,r;try{for(var i=p(e),o=i.next();!o.done;o=i.next())this._reportError(o.value.message,t)}catch(e){n={error:e}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype._checkPipes=function(e,t){var n=this;if(e&&this.pipesByName){var r=new hu;e.visit(r),r.pipes.forEach(function(e,r){var i=n.pipesByName.get(r);i?n._usedPipes.set(r,i):n._reportError("The pipe '"+r+"' could not be found",new rr(t.start.moveBy(e.span.start),t.start.moveBy(e.span.end)))})}},e.prototype._validatePropertyOrAttributeName=function(e,t,n){var r=n?this._schemaRegistry.validateAttribute(e):this._schemaRegistry.validateProperty(e);r.error&&this._reportError(r.msg,t,er.ERROR)},e}(),hu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.pipes=new Map,t}return o(t,e),t.prototype.visitPipe=function(e,t){return this.pipes.set(e.name,e),e.exp.visit(this),this.visitAll(e.args,t),null},t}(Go);function fu(e){return"@"==e[0]}function du(e,t,n,r){var i=[];return A.parse(t).forEach(function(t){var o=t.element?[t.element]:e.allKnownElementNames(),s=new Set(t.notSelectors.filter(function(e){return e.isElementSelector()}).map(function(e){return e.element})),a=o.filter(function(e){return!s.has(e)});i.push.apply(i,f(a.map(function(t){return e.securityContext(t,n,r)})))}),0===i.length?[H.NONE]:Array.from(new Set(i)).sort()} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var vu,mu="select",yu="link",gu="rel",_u="href",bu="stylesheet",wu="style",xu="script",Eu="ngNonBindable",Su="ngProjectAs";function Cu(e){var t=null,n=null,r=null,i=!1,o="";e.attrs.forEach(function(e){var s=e.name.toLowerCase();s==mu?t=e.value:s==_u?n=e.value:s==gu?r=e.value:e.name==Eu?i=!0:e.name==Su&&e.value.length>0&&(o=e.value)}),t=function s(e){return null===e||0===e.length?"*":e} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(t);var a=e.name.toLowerCase(),u=vu.OTHER;return m(a)?u=vu.NG_CONTENT:a==wu?u=vu.STYLE:a==xu?u=vu.SCRIPT:a==yu&&r==bu&&(u=vu.STYLESHEET),new Nu(u,t,n,i,o)}!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"}(vu||(vu={}));var Tu,Nu=function Nu(e,t,n,r,i){this.type=e,this.selectAttr=t,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i},ku=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,Au="class";function Pu(){return Tu||(Tu=A.parse("*")[0]),Tu}var Iu=function(e){function t(t,n,r){return e.call(this,n,t,r)||this}return o(t,e),t}(ir),Mu=function Mu(e,t,n){this.templateAst=e,this.usedPipes=t,this.errors=n},Ou=function(){function e(e,t,n,r,i,o,s){this._config=e,this._reflector=t,this._exprParser=n,this._schemaRegistry=r,this._htmlParser=i,this._console=o,this.transforms=s}return Object.defineProperty(e.prototype,"expressionParser",{get:function(){return this._exprParser},enumerable:!0,configurable:!0}),e.prototype.parse=function(e,t,n,r,i,o,s){var a=this.tryParse(e,t,n,r,i,o,s),u=a.errors.filter(function(e){return e.level===er.WARNING}),l=a.errors.filter(function(e){return e.level===er.ERROR});if(u.length>0&&this._console.warn("Template parse warnings:\n"+u.join("\n")),l.length>0)throw kt("Template parse errors:\n"+l.join("\n"),l);return{template:a.templateAst,pipes:a.usedPipes}},e.prototype.tryParse=function(e,t,n,r,i,o,s){var a="string"==typeof t?this._htmlParser.parse(t,o,{tokenizeExpansionForms:!0,interpolationConfig:this.getInterpolationConfig(e)}):t;return s||(a=function u(e){return new ba(Js(new Pa,e.rootNodes),e.errors)} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(a)),this.tryParseHtml(this.expandHtml(a),e,n,r,i)},e.prototype.tryParseHtml=function(e,t,n,r,i){var o,s=e.errors,a=[];if(e.rootNodes.length>0){var u=Uu(n),l=Uu(r),c=new nu(this._reflector,t),p=void 0;t.template&&t.template.interpolation&&(p={start:t.template.interpolation[0],end:t.template.interpolation[1]});var h=new pu(this._exprParser,p,this._schemaRegistry,l,s),d=new Ru(this._reflector,this._config,c,u,h,this._schemaRegistry,i,s);o=Js(d,e.rootNodes,Vu),s.push.apply(s,f(c.errors)),a.push.apply(a,f(h.getUsedPipes()))}else o=[];return this._assertNoReferenceDuplicationOnTemplate(o,s),s.length>0?new Mu(o,a,s):(this.transforms&&this.transforms.forEach(function(e){o=eu(e,o)}),new Mu(o,a,s))},e.prototype.expandHtml=function(e,t){void 0===t&&(t=!1);var n=e.errors;if(0==n.length||t){var r=Ma(e.rootNodes);n.push.apply(n,f(r.errors)),e=new ba(r.nodes,n)}return e},e.prototype.getInterpolationConfig=function(e){if(e.template)return Ji.fromArray(e.template.interpolation)},e.prototype._assertNoReferenceDuplicationOnTemplate=function(e,t){var n=[];e.filter(function(e){return!!e.references}).forEach(function(e){return e.references.forEach(function(e){var r=e.name;if(n.indexOf(r)<0)n.push(r);else{var i=new Iu('Reference "#'+r+'" is defined several times',e.sourceSpan,er.ERROR);t.push(i)}})})},e}(),Ru=function(){function e(e,t,n,r,i,o,s,a){var u=this;this.reflector=e,this.config=t,this.providerViewContext=n,this._bindingParser=i,this._schemaRegistry=o,this._schemas=s,this._targetErrors=a,this.selectorMatcher=new P,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,r.forEach(function(e,t){var n=A.parse(e.selector);u.selectorMatcher.addSelectables(n,e),u.directivesIndex.set(e,t)})}return e.prototype.visitExpansion=function(e,t){return null},e.prototype.visitExpansionCase=function(e,t){return null},e.prototype.visitText=function(e,t){var n=t.findNgContentIndex(Pu()),r=Aa(e.value),i=this._bindingParser.parseInterpolation(r,e.sourceSpan);return i?new Va(i,n,e.sourceSpan):new ja(r,n,e.sourceSpan)},e.prototype.visitAttribute=function(e,t){return new Ba(e.name,e.value,e.sourceSpan)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitElement=function(e,t){var n=this,r=this.contentQueryStartId,i=e.name,o=Cu(e);if(o.type===vu.SCRIPT||o.type===vu.STYLE)return null;if(o.type===vu.STYLESHEET&&au(o.hrefAttr))return null;var s=[],a=[],u=[],l=[],c=[],p=[],h=[],d=[],v=!1,m=[],g=y(e.name);e.attrs.forEach(function(e){var t,r,i=n._parseAttr(g,e,s,a,c,u,l);l.push.apply(l,f([].map(function(e){return za.fromParsedVariable(e)})));var o=n._normalizeAttributeName(e.name);o.startsWith("*")&&(t=e.value,r=o.substring("*".length));var y=null!=t;if(y){v&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",e.sourceSpan),v=!0;var _=[];n._bindingParser.parseInlineTemplateBinding(r,t,e.sourceSpan,h,p,_),d.push.apply(d,f(_.map(function(e){return za.fromParsedVariable(e)})))}i||y||(m.push(n.visitAttribute(e,null)),s.push([e.name,e.value]))});var _=ju(i,s),b=this._parseDirectives(this.selectorMatcher,_),w=b.directives,x=b.matchElement,E=[],S=new Set,C=this._createDirectiveAsts(g,e.name,w,a,u,e.sourceSpan,E,S),T=this._createElementPropertyAsts(e.name,a,S),N=new ru(this.providerViewContext,t.providerContext,t.isTemplateElement||v,C,m,E,g,r,e.sourceSpan),k=Js(o.nonBindable?Bu:this,e.children,Fu.create(g,C,g?t.providerContext:N));N.afterElement();var P,I=""!=o.projectAs?A.parse(o.projectAs)[0]:_,M=t.findNgContentIndex(I);if(o.type===vu.NG_CONTENT)e.children&&!e.children.every(Hu)&&this._reportError(" element cannot have content.",e.sourceSpan),P=new Ya(this.ngContentCount++,v?null:M,e.sourceSpan);else if(g)this._assertAllEventsPublishedByDirectives(C,c),this._assertNoComponentsNorElementBindingsOnTemplate(C,T,e.sourceSpan),P=new Qa(m,c,E,l,N.transformedDirectiveAsts,N.transformProviders,N.transformedHasViewContainer,N.queryMatches,k,v?null:M,e.sourceSpan);else{this._assertElementExists(x,e),this._assertOnlyOneComponent(C,e.sourceSpan);var O=v?null:t.findNgContentIndex(I);P=new Wa(i,m,T,c,E,N.transformedDirectiveAsts,N.transformProviders,N.transformedHasViewContainer,N.queryMatches,k,v?null:O,e.sourceSpan,e.endSourceSpan||null)}if(v){var R=this.contentQueryStartId,D=ju("ng-template",h),L=this._parseDirectives(this.selectorMatcher,D).directives,F=new Set,j=this._createDirectiveAsts(!0,i,L,p,[],e.sourceSpan,[],F),V=this._createElementPropertyAsts(i,p,F);this._assertNoComponentsNorElementBindingsOnTemplate(j,V,e.sourceSpan);var B=new ru(this.providerViewContext,t.providerContext,t.isTemplateElement,j,[],[],!0,R,e.sourceSpan);B.afterElement(),P=new Qa([],[],[],d,B.transformedDirectiveAsts,B.transformProviders,B.transformedHasViewContainer,B.queryMatches,[P],M,e.sourceSpan)}return P},e.prototype._parseAttr=function(e,t,n,r,i,o,s){var a=this._normalizeAttributeName(t.name),u=t.value,l=t.sourceSpan,c=[],p=a.match(ku),h=!1;return null!==p?(h=!0,null!=p[1]?this._bindingParser.parsePropertyBinding(p[7],u,!1,l,n,r):p[2]?e?this._parseVariable(p[7],u,l,s):this._reportError('"let-" is only supported on ng-template elements.',l):p[3]?this._parseReference(p[7],u,l,o):p[4]?this._bindingParser.parseEvent(p[7],u,l,t.valueSpan||l,n,c):p[5]?(this._bindingParser.parsePropertyBinding(p[7],u,!1,l,n,r),this._parseAssignmentEvent(p[7],u,l,t.valueSpan||l,n,c)):p[6]?this._bindingParser.parseLiteralAttr(a,u,l,n,r):p[8]?(this._bindingParser.parsePropertyBinding(p[8],u,!1,l,n,r),this._parseAssignmentEvent(p[8],u,l,t.valueSpan||l,n,c)):p[9]?this._bindingParser.parsePropertyBinding(p[9],u,!1,l,n,r):p[10]&&this._bindingParser.parseEvent(p[10],u,l,t.valueSpan||l,n,c)):h=this._bindingParser.parsePropertyInterpolation(a,u,l,n,r),h||this._bindingParser.parseLiteralAttr(a,u,l,n,r),i.push.apply(i,f(c.map(function(e){return qa.fromParsedEvent(e)}))),h},e.prototype._normalizeAttributeName=function(e){return/^data-/i.test(e)?e.substring(5):e},e.prototype._parseVariable=function(e,t,n,r){e.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),r.push(new za(e,t,n))},e.prototype._parseReference=function(e,t,n,r){e.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',n),r.push(new Lu(e,t,n))},e.prototype._parseAssignmentEvent=function(e,t,n,r,i,o){this._bindingParser.parseEvent(e+"Change",t+"=$event",n,r,i,o)},e.prototype._parseDirectives=function(e,t){var n=this,r=new Array(this.directivesIndex.size),i=!1;return e.match(t,function(e,t){r[n.directivesIndex.get(t)]=t,i=i||e.hasElementSelector()}),{directives:r.filter(function(e){return!!e}),matchElement:i}},e.prototype._createDirectiveAsts=function(e,t,n,r,i,o,s,a){var u=this,l=new Set,c=null,p=n.map(function(e){var n=new rr(o.start,o.end,"Directive "+rn(e.type));e.isComponent&&(c=e);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(e,t,n).map(function(e){return Ua.fromBoundProperty(e)});h=u._checkPropertiesInSchema(t,h);var f=u._bindingParser.createDirectiveHostEventAsts(e,n);u._createDirectivePropertyAsts(e.inputs,r,p,a),i.forEach(function(t){(0===t.value.length&&e.isComponent||t.isReferenceToDirective(e))&&(s.push(new Ka(t.name,Gt(e.type.reference),t.value,t.sourceSpan)),l.add(t.name))});var d=f.map(function(e){return qa.fromParsedEvent(e)}),v=u.contentQueryStartId;return u.contentQueryStartId+=e.queries.length,new Ga(e,p,h,d,v,n)});return i.forEach(function(t){if(t.value.length>0)l.has(t.name)||u._reportError('There is no directive with "exportAs" set to "'+t.value+'"',t.sourceSpan);else if(!c){var n=null;e&&(n=Xt(u.reflector,$t.TemplateRef)),s.push(new Ka(t.name,n,t.value,t.sourceSpan))}}),p},e.prototype._createDirectivePropertyAsts=function(e,t,n,r){if(e){var i=new Map;t.forEach(function(e){var t=i.get(e.name);t&&!t.isLiteral||i.set(e.name,e)}),Object.keys(e).forEach(function(t){var o=i.get(e[t]);o&&(r.add(o.name),qu(o.expression)||n.push(new $a(t,o.name,o.expression,o.sourceSpan)))})}},e.prototype._createElementPropertyAsts=function(e,t,n){var r=this,i=[];return t.forEach(function(t){if(!t.isLiteral&&!n.has(t.name)){var o=r._bindingParser.createBoundElementProperty(e,t);i.push(Ua.fromBoundProperty(o))}}),this._checkPropertiesInSchema(e,i)},e.prototype._findComponentDirectives=function(e){return e.filter(function(e){return e.directive.isComponent})},e.prototype._findComponentDirectiveNames=function(e){return this._findComponentDirectives(e).map(function(e){return rn(e.directive.type)})},e.prototype._assertOnlyOneComponent=function(e,t){var n=this._findComponentDirectiveNames(e);n.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+n.join(","),t)},e.prototype._assertElementExists=function(e,t){var n=t.name.replace(/^:xhtml:/,"");if(!e&&!this._schemaRegistry.hasElement(n,this._schemas)){var r="'"+n+"' is not a known element:\n";r+="1. If '"+n+"' is an Angular component, then verify that it is part of this module.\n",n.indexOf("-")>-1?r+="2. If '"+n+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":r+="2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(r,t.sourceSpan)}},e.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(e,t,n){var r=this,i=this._findComponentDirectiveNames(e);i.length>0&&this._reportError("Components on an embedded template: "+i.join(","),n),t.forEach(function(e){r._reportError("Property binding "+e.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',n)})},e.prototype._assertAllEventsPublishedByDirectives=function(e,t){var n=this,r=new Set;e.forEach(function(e){Object.keys(e.directive.outputs).forEach(function(t){r.add(e.directive.outputs[t])})}),t.forEach(function(e){null==e.target&&r.has(e.name)||n._reportError("Event binding "+e.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',e.sourceSpan)})},e.prototype._checkPropertiesInSchema=function(e,t){var n=this;return t.filter(function(t){if(0===t.type&&!n._schemaRegistry.hasProperty(e,t.name,n._schemas)){var r="Can't bind to '"+t.name+"' since it isn't a known property of '"+e+"'.";e.startsWith("ng-")?r+="\n1. If '"+t.name+"' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.":e.indexOf("-")>-1&&(r+="\n1. If '"+e+"' is an Angular component and it has '"+t.name+"' input, then verify that it is part of this module.\n2. If '"+e+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),n._reportError(r,t.sourceSpan)}return!qu(t.value)})},e.prototype._reportError=function(e,t,n){void 0===n&&(n=er.ERROR),this._targetErrors.push(new ir(t,e,n))},e}(),Du=function(){function e(){}return e.prototype.visitElement=function(e,t){var n=Cu(e);if(n.type===vu.SCRIPT||n.type===vu.STYLE||n.type===vu.STYLESHEET)return null;var r=e.attrs.map(function(e){return[e.name,e.value]}),i=ju(e.name,r),o=t.findNgContentIndex(i),s=Js(this,e.children,Vu);return new Wa(e.name,Js(this,e.attrs),[],[],[],[],[],!1,[],s,o,e.sourceSpan,e.endSourceSpan)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitAttribute=function(e,t){return new Ba(e.name,e.value,e.sourceSpan)},e.prototype.visitText=function(e,t){var n=t.findNgContentIndex(Pu());return new ja(e.value,n,e.sourceSpan)},e.prototype.visitExpansion=function(e,t){return e},e.prototype.visitExpansionCase=function(e,t){return e},e}(),Lu=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.prototype.isReferenceToDirective=function(e){return-1!==function t(e){return e?e.split(",").map(function(e){return e.trim()}):[]}(e.exportAs).indexOf(this.value)},e}(),Fu=function(){function e(e,t,n,r){this.isTemplateElement=e,this._ngContentIndexMatcher=t,this._wildcardNgContentIndex=n,this.providerContext=r}return e.create=function(t,n,r){var i=new P,o=null,s=n.find(function(e){return e.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u0?t[0]:null},e}();function ju(e,t){var n=new A,r=d(e)[1];n.setElement(r);for(var i=0;i0}var $u,Gu="!important",Xu=function(){function e(e,t){this._elementIndexExpr=e,this._directiveExpr=t,this._hasInitialValues=!1,this.hasBindings=!1,this._classMapInput=null,this._styleMapInput=null,this._singleStyleInputs=null,this._singleClassInputs=null,this._lastStylingInput=null,this._firstStylingInput=null,this._stylesIndex=new Map,this._classesIndex=new Map,this._initialStyleValues=[],this._initialClassValues=[],this._useDefaultSanitizer=!1}return e.prototype.registerBoundInput=function(e){var t=null,n=e.name;switch(e.type){case 0:t=this.registerInputBasedOnName(n,e.value,e.sourceSpan);break;case 3:t=this.registerStyleInput(n,!1,e.value,e.sourceSpan,e.unit);break;case 2:t=this.registerClassInput(n,!1,e.value,e.sourceSpan)}return!!t},e.prototype.registerInputBasedOnName=function(e,t,n){var r=null,i=e.substring(0,5),o="style"===i;if(o||!o&&"class"===i){var s="."!==e.charAt(5),a=e.substr(s?5:6);r=o?this.registerStyleInput(a,s,t,n):this.registerClassInput(a,s,t,n)}return r},e.prototype.registerStyleInput=function(e,t,n,r,i){if(qu(n))return null;var o=el(e),s=o.property,a={name:s,unit:i||o.unit,value:n,sourceSpan:r,hasOverrideFlag:o.hasOverrideFlag};return t?(this._useDefaultSanitizer=!0,this._styleMapInput=a):((this._singleStyleInputs=this._singleStyleInputs||[]).push(a),this._useDefaultSanitizer=this._useDefaultSanitizer||function u(e){return"background-image"===e||"backgroundImage"===e||"background"===e||"border-image"===e||"borderImage"===e||"filter"===e||"list-style"===e||"listStyle"===e||"list-style-image"===e||"listStyleImage"===e||"clip-path"===e||"clipPath"===e}(e),Yu(this._stylesIndex,s)),this._lastStylingInput=a,this._firstStylingInput=this._firstStylingInput||a,this.hasBindings=!0,a},e.prototype.registerClassInput=function(e,t,n,r){if(qu(n))return null;var i=el(e),o=i.property,s={name:o,value:n,sourceSpan:r,hasOverrideFlag:i.hasOverrideFlag,unit:null};return t?this._classMapInput=s:((this._singleClassInputs=this._singleClassInputs||[]).push(s),Yu(this._classesIndex,o)),this._lastStylingInput=s,this._firstStylingInput=this._firstStylingInput||s,this.hasBindings=!0,s},e.prototype.registerStyleAttr=function(e){this._initialStyleValues=function t(e){for(var t=[],n=0,r=0,i=0,o=0,s=0,a=null,u=!1;n0,0===i?i=39:39===i&&92!==e.charCodeAt(n-1)&&(i=0);break;case 34:u=u||o>0,0===i?i=34:34===i&&92!==e.charCodeAt(n-1)&&(i=0);break;case 58:a||0!==r||0!==i||(a=zu(e.substring(s,n-1).trim()),o=n);break;case 59:if(a&&o>0&&0===r&&0===i){var l=e.substring(o,n-1).trim();t.push(a,u?Ku(l):l),s=n,o=0,a=null,u=!1}}return a&&o&&(l=e.substr(o).trim(),t.push(a,u?Ku(l):l)),t}(e),this._hasInitialValues=!0},e.prototype.registerClassAttr=function(e){this._initialClassValues=e.trim().split(/\s+/g),this._hasInitialValues=!0},e.prototype.populateInitialStylingAttrs=function(e){if(this._initialClassValues.length){e.push(yt(1));for(var t=0;t0,Zu(t,r),1,o),Ju(i,e.length>0,Zu(t,e),2,o),Ju(i,n._useDefaultSanitizer,pt(yn.defaultStyleSanitizer),3,o),i}}:null},e.prototype.buildClassMapInstruction=function(e){return this._classMapInput?this._buildMapBasedInstruction(e,!0,this._classMapInput):null},e.prototype.buildStyleMapInstruction=function(e){return this._styleMapInput?this._buildMapBasedInstruction(e,!1,this._styleMapInput):null},e.prototype._buildMapBasedInstruction=function(e,t,n){var r=0;Qu()&&r++;var i=n.value.visit(e);return i instanceof Vo&&(r+=i.expressions.length),{sourceSpan:n.sourceSpan,reference:t?yn.classMap:yn.styleMap,allocateBindingSlots:r,buildParams:function(e){return[e(i)]}}},e.prototype._buildSingleInputs=function(e,t,n,r,i){var o=0;return t.map(function(t){var s=n.get(t.name),a=t.value.visit(i);return o+=a instanceof Vo?a.expressions.length:0,Qu()&&o++,{sourceSpan:t.sourceSpan,allocateBindingSlots:o,reference:e,buildParams:function(e){var n=[];return n.push(yt(s)),n.push(e(a)),r&&(t.unit?n.push(yt(t.unit)):t.hasOverrideFlag&&n.push(Qe)),t.hasOverrideFlag&&n.push(yt(!0)),n}}})},e.prototype._buildClassInputs=function(e){return this._singleClassInputs?this._buildSingleInputs(yn.classProp,this._singleClassInputs,this._classesIndex,!1,e):[]},e.prototype._buildStyleInputs=function(e){return this._singleStyleInputs?this._buildSingleInputs(yn.styleProp,this._singleStyleInputs,this._stylesIndex,!0,e):[]},e.prototype._buildApplyFn=function(){return{sourceSpan:this._lastStylingInput?this._lastStylingInput.sourceSpan:null,reference:yn.stylingApply,allocateBindingSlots:0,buildParams:function(){return[]}}},e.prototype._buildSanitizerFn=function(){return{sourceSpan:this._firstStylingInput?this._firstStylingInput.sourceSpan:null,reference:yn.styleSanitizer,allocateBindingSlots:0,buildParams:function(){return[pt(yn.defaultStyleSanitizer)]}}},e.prototype.buildUpdateLevelInstructions=function(e){var t=[];if(this.hasBindings){Qu()&&this._useDefaultSanitizer&&t.push(this._buildSanitizerFn());var n=this.buildStyleMapInstruction(e);n&&t.push(n);var r=this.buildClassMapInstruction(e);r&&t.push(r),t.push.apply(t,f(this._buildStyleInputs(e))),t.push.apply(t,f(this._buildClassInputs(e))),t.push(this._buildApplyFn())}return t},e}();function Yu(e,t){e.has(t)||e.set(t,e.size)}function Zu(e,t){return t.length?e.getConstLiteral(ft(t),!0):Qe}function Ju(e,t,n,r,i){t&&n?e.push(n):r0?e.substring(0,n):"",t=!0);var r="",i=e,o=e.lastIndexOf(".");return o>0&&(r=e.substr(o+1),i=e.substring(0,o)),{property:i,unit:r,hasOverrideFlag:t}} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */!function(e){e[e.Character=0]="Character",e[e.Identifier=1]="Identifier",e[e.Keyword=2]="Keyword",e[e.String=3]="String",e[e.Operator=4]="Operator",e[e.Number=5]="Number",e[e.Error=6]="Error"}($u||($u={}));var tl=["var","let","as","null","undefined","true","false","if","else","this"],nl=function(){function e(){}return e.prototype.tokenize=function(e){for(var t=new al(e),n=[],r=t.scanToken();null!=r;)n.push(r),r=t.scanToken();return n},e}(),rl=function(){function e(e,t,n,r){this.index=e,this.type=t,this.numValue=n,this.strValue=r}return e.prototype.isCharacter=function(e){return this.type==$u.Character&&this.numValue==e},e.prototype.isNumber=function(){return this.type==$u.Number},e.prototype.isString=function(){return this.type==$u.String},e.prototype.isOperator=function(e){return this.type==$u.Operator&&this.strValue==e},e.prototype.isIdentifier=function(){return this.type==$u.Identifier},e.prototype.isKeyword=function(){return this.type==$u.Keyword},e.prototype.isKeywordLet=function(){return this.type==$u.Keyword&&"let"==this.strValue},e.prototype.isKeywordAs=function(){return this.type==$u.Keyword&&"as"==this.strValue},e.prototype.isKeywordNull=function(){return this.type==$u.Keyword&&"null"==this.strValue},e.prototype.isKeywordUndefined=function(){return this.type==$u.Keyword&&"undefined"==this.strValue},e.prototype.isKeywordTrue=function(){return this.type==$u.Keyword&&"true"==this.strValue},e.prototype.isKeywordFalse=function(){return this.type==$u.Keyword&&"false"==this.strValue},e.prototype.isKeywordThis=function(){return this.type==$u.Keyword&&"this"==this.strValue},e.prototype.isError=function(){return this.type==$u.Error},e.prototype.toNumber=function(){return this.type==$u.Number?this.numValue:-1},e.prototype.toString=function(){switch(this.type){case $u.Character:case $u.Identifier:case $u.Keyword:case $u.Operator:case $u.String:case $u.Error:return this.strValue;case $u.Number:return this.numValue.toString();default:return null}},e}();function il(e,t){return new rl(e,$u.Character,t,String.fromCharCode(t))}function ol(e,t){return new rl(e,$u.Operator,0,t)}var sl=new rl(-1,$u.Character,0,""),al=function(){function e(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}return e.prototype.advance=function(){this.peek=++this.index>=this.length?gn:this.input.charCodeAt(this.index)},e.prototype.scanToken=function(){for(var e=this.input,t=this.length,n=this.peek,r=this.index;n<=Sn;){if(++r>=t){n=gn;break}n=e.charCodeAt(r)}if(this.peek=n,this.index=r,r>=t)return null;if(ul(n))return this.scanIdentifier();if(Xn(n))return this.scanNumber(r);var i=r;switch(n){case 46:return this.advance(),Xn(this.peek)?this.scanNumber(i):il(i,46);case 40:case 41:case 123:case 125:case 91:case 93:case 44:case 58:case In:return this.scanCharacter(i,n);case Nn:case Cn:return this.scanString();case 35:case kn:case An:case 42:case Pn:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanComplexOperator(i,"?",46,".");case 60:case On:return this.scanComplexOperator(i,String.fromCharCode(n),Mn,"=");case 33:case Mn:return this.scanComplexOperator(i,String.fromCharCode(n),Mn,"=",Mn,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case $n:for(;Gn(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(n)+"]",0)},e.prototype.scanCharacter=function(e,t){return this.advance(),il(e,t)},e.prototype.scanOperator=function(e,t){return this.advance(),ol(e,t)},e.prototype.scanComplexOperator=function(e,t,n,r,i,o){this.advance();var s=t;return this.peek==n&&(this.advance(),s+=r),null!=i&&this.peek==i&&(this.advance(),s+=o),ol(e,s)},e.prototype.scanIdentifier=function(){var e=this.index;for(this.advance();ll(this.peek);)this.advance();var t=this.input.substring(e,this.index);return tl.indexOf(t)>-1?function n(e,t){return new rl(e,$u.Keyword,0,t)}(e,t):function r(e,t){return new rl(e,$u.Identifier,0,t)}(e,t)},e.prototype.scanNumber=function(e){var t,n=this.index===e;for(this.advance();;){if(Xn(this.peek));else if(46==this.peek)n=!1;else{if(101!=(t=this.peek)&&69!=t)break;if(this.advance(),cl(this.peek)&&this.advance(),!Xn(this.peek))return this.error("Invalid exponent",-1);n=!1}this.advance()}var r=this.input.substring(e,this.index);return function o(e,t){return new rl(e,$u.Number,t,"")}(e,n?function i(e){var t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(r):parseFloat(r))},e.prototype.scanString=function(){var e=this.index,t=this.peek;this.advance();for(var n="",r=this.index,i=this.input;this.peek!=t;)if(92==this.peek){n+=i.substring(r,this.index),this.advance();var o=void 0;if(this.peek=this.peek,117==this.peek){var s=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);o=parseInt(s,16);for(var a=0;a<5;a++)this.advance()}else o=pl(this.peek),this.advance();n+=String.fromCharCode(o),r=this.index}else{if(this.peek==gn)return this.error("Unterminated quote",0);this.advance()}var u=i.substring(r,this.index);return this.advance(),function l(e,t){return new rl(e,$u.String,0,t)}(e,n+u)},e.prototype.error=function(e,t){var n=this.index+t;return function r(e,t){return new rl(e,$u.Error,0,t)}(n,"Lexer Error: "+e+" at column "+n+" in expression ["+this.input+"]")},e}();function ul(e){return Hn<=e&&e<=Qn||Fn<=e&&e<=Vn||e==Bn||e==Tn}function ll(e){return Yn(e)||Xn(e)||e==Bn||e==Tn}function cl(e){return e==An||e==kn}function pl(e){switch(e){case qn:return bn;case Un:return xn;case Kn:return En;case zn:return _n;case Wn:return wn;default:return e}}var hl=function hl(e,t,n){this.strings=e,this.expressions=t,this.offsets=n},fl=function fl(e,t,n){this.templateBindings=e,this.warnings=t,this.errors=n};function dl(e){var t=It(e.start)+"([\\s\\S]*?)"+It(e.end);return new RegExp(t,"g")}var vl,ml=function(){function e(e){this._lexer=e,this.errors=[]}return e.prototype.parseAction=function(e,t,n){void 0===n&&(n=eo),this._checkNoInterpolation(e,t,n);var r=this._stripComments(e),i=this._lexer.tokenize(this._stripComments(e)),o=new yl(e,t,i,r.length,!0,this.errors,e.length-r.length).parseChain();return new Wo(o,e,t,this.errors)},e.prototype.parseBinding=function(e,t,n){void 0===n&&(n=eo);var r=this._parseBindingAst(e,t,n);return new Wo(r,e,t,this.errors)},e.prototype.parseSimpleBinding=function(e,t,n){void 0===n&&(n=eo);var r=this._parseBindingAst(e,t,n),i=gl.check(r);return i.length>0&&this._reportError("Host binding expression cannot contain "+i.join(" "),e,t),new Wo(r,e,t,this.errors)},e.prototype._reportError=function(e,t,n,r){this.errors.push(new xo(e,t,n,r))},e.prototype._parseBindingAst=function(e,t,n){var r=this._parseQuote(e,t);if(null!=r)return r;this._checkNoInterpolation(e,t,n);var i=this._stripComments(e),o=this._lexer.tokenize(i);return new yl(e,t,o,i.length,!1,this.errors,e.length-i.length).parseChain()},e.prototype._parseQuote=function(e,t){if(null==e)return null;var n=e.indexOf(":");if(-1==n)return null;var r=e.substring(0,n).trim();if(!function i(e){if(0==e.length)return!1;var t=new al(e);if(!ul(t.peek))return!1;for(t.advance();t.peek!==gn;){if(!ll(t.peek))return!1;t.advance()}return!0}(r))return null;var o=e.substring(n+1);return new Co(new Eo(0,e.length),r,o,t)},e.prototype.parseTemplateBindings=function(e,t,n){var r=this._lexer.tokenize(t);return new yl(t,n,r,t.length,!1,this.errors,0).parseTemplateBindings(e)},e.prototype.parseInterpolation=function(e,t,n){void 0===n&&(n=eo);var r=this.splitInterpolation(e,t,n);if(null==r)return null;for(var i=[],o=0;o0?(u+=n.start.length,s.push(c),a.push(u),u+=c.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",e,"at column "+this._findInterpolationErrorColumn(i,l,n)+" in",t),s.push("$implict"),a.push(u))}return new hl(o,s,a)},e.prototype.wrapLiteralPrimitive=function(e,t){return new Wo(new Lo(new Eo(0,null==e?0:e.length),e),e,t,this.errors)},e.prototype._stripComments=function(e){var t=this._commentStart(e);return null!=t?e.substring(0,t).trim():e},e.prototype._commentStart=function(e){for(var t,n=null,r=0;r1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",e,"at column "+this._findInterpolationErrorColumn(i,1,n)+" in",t)},e.prototype._findInterpolationErrorColumn=function(e,t,n){for(var r="",i=0;i":case"<=":case">=":this.advance();var n=this.parseAdditive();e=new Bo(this.span(e.span.start),t,e,n);continue}break}return e},e.prototype.parseAdditive=function(){for(var e=this.parseMultiplicative();this.next.type==$u.Operator;){var t=this.next.strValue;switch(t){case"+":case"-":this.advance();var n=this.parseMultiplicative();e=new Bo(this.span(e.span.start),t,e,n);continue}break}return e},e.prototype.parseMultiplicative=function(){for(var e=this.parsePrefix();this.next.type==$u.Operator;){var t=this.next.strValue;switch(t){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();e=new Bo(this.span(e.span.start),t,e,n);continue}break}return e},e.prototype.parsePrefix=function(){if(this.next.type==$u.Operator){var e=this.inputIndex,t=this.next.strValue,n=void 0;switch(t){case"+":return this.advance(),n=this.parsePrefix(),new Bo(this.span(e),"-",n,new Lo(new Eo(e,e),0));case"-":return this.advance(),n=this.parsePrefix(),new Bo(this.span(e),t,new Lo(new Eo(e,e),0),n);case"!":return this.advance(),n=this.parsePrefix(),new Ho(this.span(e),n)}}return this.parseCallChain()},e.prototype.parseCallChain=function(){for(var e=this.parsePrimary();;)if(this.optionalCharacter(46))e=this.parseAccessMemberOrMethodCall(e,!1);else if(this.optionalOperator("?."))e=this.parseAccessMemberOrMethodCall(e,!0);else if(this.optionalCharacter(91)){this.rbracketsExpected++;var t=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(93),this.optionalOperator("=")){var n=this.parseConditional();e=new Ro(this.span(e.span.start),e,t,n)}else e=new Oo(this.span(e.span.start),e,t)}else if(this.optionalCharacter(40)){this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),e=new zo(this.span(e.span.start),e,r)}else{if(!this.optionalOperator("!"))return e;e=new Uo(this.span(e.span.start),e)}},e.prototype.parsePrimary=function(){var e=this.inputIndex;if(this.optionalCharacter(40)){this.rparensExpected++;var t=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),t}if(this.next.isKeywordNull())return this.advance(),new Lo(this.span(e),null);if(this.next.isKeywordUndefined())return this.advance(),new Lo(this.span(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new Lo(this.span(e),!0);if(this.next.isKeywordFalse())return this.advance(),new Lo(this.span(e),!1);if(this.next.isKeywordThis())return this.advance(),new No(this.span(e));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new Fo(this.span(e),n)}if(this.next.isCharacter(123))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new No(this.span(e)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new Lo(this.span(e),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new Lo(this.span(e),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new To(this.span(e))):(this.error("Unexpected token "+this.next),new To(this.span(e)))},e.prototype.parseExpressionList=function(e){var t=[];if(!this.next.isCharacter(e))do{t.push(this.parsePipe())}while(this.optionalCharacter(44));return t},e.prototype.parseLiteralMap=function(){var e=[],t=[],n=this.inputIndex;if(this.expectCharacter(123),!this.optionalCharacter(125)){this.rbracesExpected++;do{var r=this.next.isString(),i=this.expectIdentifierOrKeywordOrString();e.push({key:i,quoted:r}),this.expectCharacter(58),t.push(this.parsePipe())}while(this.optionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new jo(this.span(n),e,t)},e.prototype.parseAccessMemberOrMethodCall=function(e,t){void 0===t&&(t=!1);var n=e.span.start,r=this.expectIdentifierOrKeyword();if(this.optionalCharacter(40)){this.rparensExpected++;var i=this.parseCallArguments();this.expectCharacter(41),this.rparensExpected--;var o=this.span(n);return t?new Ko(o,e,r,i):new qo(o,e,r,i)}if(t)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new To(this.span(n))):new Mo(this.span(n),e,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new To(this.span(n));var s=this.parseConditional();return new Io(this.span(n),e,r,s)}return new Po(this.span(n),e,r)},e.prototype.parseCallArguments=function(){if(this.next.isCharacter(41))return[];var e=[];do{e.push(this.parsePipe())}while(this.optionalCharacter(44));return e},e.prototype.expectTemplateBindingKey=function(){var e="",t=!1;do{e+=this.expectIdentifierOrKeywordOrString(),(t=this.optionalOperator("-"))&&(e+="-")}while(t);return e.toString()},e.prototype.parseTemplateBindings=function(e){var t=!0,n=[];do{var r=this.inputIndex,i=void 0,o=void 0,s=!1;t?(i=o=e,t=!1):((s=this.peekKeywordLet())&&this.advance(),i=this.expectTemplateBindingKey(),o=s?i:e+i[0].toUpperCase()+i.substring(1),this.optionalCharacter(58));var a=null,u=null;if(s)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs())this.advance(),a=i,o=this.expectTemplateBindingKey(),s=!0;else if(this.next!==sl&&!this.peekKeywordLet()){var l=this.inputIndex,c=this.parsePipe(),p=this.input.substring(l-this.offset,this.inputIndex-this.offset);u=new Wo(c,p,this.location,this.errors)}if(n.push(new Qo(this.span(r),o,s,a,u)),this.peekKeywordAs()&&!s){var h=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();n.push(new Qo(this.span(h),f,!0,o,null))}this.optionalCharacter(In)||this.optionalCharacter(44)}while(this.index0)switch(e[0]){case"*":break;case"!":n[e.substring(1)]=xl;break;case"#":n[e.substring(1)]=El;break;case"%":n[e.substring(1)]=Cl;break;default:n[e]=Sl}})}),t}return o(t,e),t.prototype.hasProperty=function(e,t,n){if(n.some(function(e){return"no-errors-schema"===e.name}))return!0;if(e.indexOf("-")>-1){if(v(e)||m(e))return!1;if(n.some(function(e){return"custom-elements"===e.name}))return!0}return!!(this._schema[e.toLowerCase()]||this._schema.unknown)[t]},t.prototype.hasElement=function(e,t){if(t.some(function(e){return"no-errors-schema"===e.name}))return!0;if(e.indexOf("-")>-1){if(v(e)||m(e))return!0;if(t.some(function(e){return"custom-elements"===e.name}))return!0}return!!this._schema[e.toLowerCase()]},t.prototype.securityContext=function(e,t,n){n&&(t=this.getMappedPropName(t)),e=e.toLowerCase(),t=t.toLowerCase();var r=_l()[e+"|"+t];return r||(r=_l()["*|"+t])||H.NONE},t.prototype.getMappedPropName=function(e){return Nl[e]||e},t.prototype.getDefaultComponentElementName=function(){return"ng-component"},t.prototype.validateProperty=function(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event property '"+e+"' is disallowed for security reasons, please use ("+e.slice(2)+")=...\nIf '"+e+"' is a directive input, make sure the directive is imported by the current module."}:{error:!1}},t.prototype.validateAttribute=function(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event attribute '"+e+"' is disallowed for security reasons, please use ("+e.slice(2)+")=..."}:{error:!1}},t.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},t.prototype.normalizeAnimationStyleProperty=function(e){return function t(e){return e.replace(_t,function(){for(var e=[],t=0;t element cannot have content.",e.sourceSpan);var I=i.selectAttr,M=e.attrs.map(function(e){return r.visitAttribute(e)});A=new hr(I,M,e.sourceSpan,e.i18n)}else a?(M=this.extractAttributes(e.name,u,v),A=new pr(e.name,d,M.bound,l,[],P,h,c,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)):(M=this.extractAttributes(e.name,u,v),A=new cr(e.name,d,M.bound,l,P,h,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n));if(_){M=this.extractAttributes("ng-template",m,v);var O=[];M.literal.forEach(function(e){return O.push(e)}),M.bound.forEach(function(e){return O.push(e)});var R=A instanceof cr?{attributes:A.attributes,inputs:A.inputs,outputs:A.outputs}:{attributes:[],inputs:[],outputs:[]};A=new pr(A.name,R.attributes,R.inputs,R.outputs,O,[A],[],g,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}return A},e.prototype.visitAttribute=function(e){return new ar(e.name,e.value,e.sourceSpan,e.valueSpan,e.i18n)},e.prototype.visitText=function(e){return this._visitTextWithInterpolation(e.value,e.sourceSpan,e.i18n)},e.prototype.visitExpansion=function(e){var t=this,n=e.i18n;if(!n)return null;var r={},i={};return Object.keys(n.placeholders).forEach(function(o){var s=n.placeholders[o];if(o.startsWith("VAR_")){var a=t.bindingParser.interpolationConfig;r[o]=t._visitTextWithInterpolation(""+a.start+s+a.end,e.sourceSpan)}else i[o]=t._visitTextWithInterpolation(s,e.sourceSpan)}),new vr(r,i,e.sourceSpan,n)},e.prototype.visitExpansionCase=function(e){return null},e.prototype.visitComment=function(e){return null},e.prototype.extractAttributes=function(e,t,n){var r=this,i=[],o=[];return t.forEach(function(t){var s=n[t.name];if(t.isLiteral)o.push(new ar(t.name,t.expression.source||"",t.sourceSpan,void 0,s));else{var a=r.bindingParser.createBoundElementProperty(e,t,!0,!1);i.push(ur.fromBoundElementProperty(a,s))}}),{bound:i,literal:o}},e.prototype.parseAttribute=function(e,t,n,r,i,o,s){var a=Ol(t.name),u=t.value,l=t.sourceSpan,c=a.match(Pl),p=!1;if(c){if(p=!0,null!=c[1])this.bindingParser.parsePropertyBinding(c[7],u,!1,l,n,r);else if(c[2])e?this.parseVariable(c[7],u,l,o):this.reportError('"let-" is only supported on ng-template elements.',l);else if(c[3])this.parseReference(c[7],u,l,s);else if(c[4])this.bindingParser.parseEvent(c[7],u,l,t.valueSpan||l,n,h=[]),Rl(h,i);else if(c[5])this.bindingParser.parsePropertyBinding(c[7],u,!1,l,n,r),this.parseAssignmentEvent(c[7],u,l,t.valueSpan,n,i);else if(c[6])this.bindingParser.parseLiteralAttr(a,u,l,n,r);else if(c[8])this.bindingParser.parsePropertyBinding(c[8],u,!1,l,n,r),this.parseAssignmentEvent(c[8],u,l,t.valueSpan,n,i);else if(c[9])this.bindingParser.parsePropertyBinding(c[9],u,!1,l,n,r);else if(c[10]){var h;this.bindingParser.parseEvent(c[10],u,l,t.valueSpan||l,n,h=[]),Rl(h,i)}}else p=this.bindingParser.parsePropertyInterpolation(a,u,l,n,r);return p},e.prototype._visitTextWithInterpolation=function(e,t,n){var r=Aa(e),i=this.bindingParser.parseInterpolation(r,t);return i?new sr(i,t,n):new or(r,t)},e.prototype.parseVariable=function(e,t,n,r){e.indexOf("-")>-1&&this.reportError('"-" is not allowed in variable names',n),r.push(new fr(e,t,n))},e.prototype.parseReference=function(e,t,n,r){e.indexOf("-")>-1&&this.reportError('"-" is not allowed in reference names',n),r.push(new dr(e,t,n))},e.prototype.parseAssignmentEvent=function(e,t,n,r,i,o){var s=[];this.bindingParser.parseEvent(e+"Change",t+"=$event",n,r||n,i,s),Rl(s,o)},e.prototype.reportError=function(e,t,n){void 0===n&&(n=er.ERROR),this.errors.push(new ir(t,e,n))},e}(),Ml=new(function(){function e(){}return e.prototype.visitElement=function(e){var t=Cu(e);if(t.type===vu.SCRIPT||t.type===vu.STYLE||t.type===vu.STYLESHEET)return null;var n=Js(this,e.children,null);return new cr(e.name,Js(this,e.attrs),[],[],n,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)},e.prototype.visitComment=function(e){return null},e.prototype.visitAttribute=function(e){return new ar(e.name,e.value,e.sourceSpan,void 0,e.i18n)},e.prototype.visitText=function(e){return new or(e.value,e.sourceSpan)},e.prototype.visitExpansion=function(e){return null},e.prototype.visitExpansionCase=function(e){return null},e}()); /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Ol(e){return/^data-/i.test(e)?e.substring(5):e}function Rl(e,t){t.push.apply(t,f(e.map(function(e){return lr.fromParsedEvent(e)})))}!function(e){e[e.ELEMENT=0]="ELEMENT",e[e.TEMPLATE=1]="TEMPLATE",e[e.PROJECTION=2]="PROJECTION"}(wl||(wl={}));var Dl=function(){function e(e,t,n,r,i,o){void 0===n&&(n=0),void 0===r&&(r=null),this.index=e,this.ref=t,this.level=n,this.templateIndex=r,this.meta=i,this.registry=o,this.bindings=new Set,this.placeholders=new Map,this.isEmitted=!1,this._unresolvedCtxCount=0,this._registry=o||function s(){return{getUniqueId:wi(),icus:new Map}}(),this.id=this._registry.getUniqueId()}return e.prototype.appendTag=function(e,t,n,r){t.isVoid&&r||Ei(this.placeholders,t.isVoid||!r?t.startName:t.closeName,{type:e,index:n,ctx:this.id,isVoid:t.isVoid,closed:r})},Object.defineProperty(e.prototype,"icus",{get:function(){return this._registry.icus},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isRoot",{get:function(){return 0===this.level},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isResolved",{get:function(){return 0===this._unresolvedCtxCount},enumerable:!0,configurable:!0}),e.prototype.getSerializedPlaceholders=function(){var e=new Map;return this.placeholders.forEach(function(t,n){return e.set(n,t.map(Vl))}),e},e.prototype.appendBinding=function(e){this.bindings.add(e)},e.prototype.appendIcu=function(e,t){Ei(this._registry.icus,e,t)},e.prototype.appendBoundText=function(e){var t=this;Si(e,this.bindings.size,this.id).forEach(function(e,n){return Ei.apply(void 0,f([t.placeholders,n],e))})},e.prototype.appendTemplate=function(e,t){this.appendTag(wl.TEMPLATE,e,t,!1),this.appendTag(wl.TEMPLATE,e,t,!0),this._unresolvedCtxCount++},e.prototype.appendElement=function(e,t,n){this.appendTag(wl.ELEMENT,e,t,n)},e.prototype.appendProjection=function(e,t){this.appendTag(wl.PROJECTION,e,t,!1),this.appendTag(wl.PROJECTION,e,t,!0)},e.prototype.forkChildContext=function(t,n,r){return new e(t,this.ref,this.level+1,n,r,this._registry)},e.prototype.reconcileChildContext=function(e){var t=this;["start","close"].forEach(function(n){var r=(t.placeholders.get(e.meta[n+"Name"])||[]).find(jl(t.id,e.templateIndex));r&&(r.ctx=e.id)}),e.placeholders.forEach(function(n,r){var i=t.placeholders.get(r);if(i){var o=function s(e,t){for(var n=0;n=0){var a=r.startsWith("CLOSE");r.endsWith("NG-TEMPLATE")?i.splice.apply(i,f([o+(a?0:1),0],n)):(n[a?n.length-1:0].tmpl=i[o],i.splice.apply(i,f([o,1],n)))}else i.push.apply(i,f(n));t.placeholders.set(r,i)}else t.placeholders.set(r,n)}),this._unresolvedCtxCount--},e}();function Ll(e,t,n,r){return bi((r?"/":"")+e+t,n)}function Fl(e,t,n){var r=t.index,i=t.ctx;return t.isVoid?Ll(e,r,i)+Ll(e,r,i,!0):Ll(e,r,i,n)}function jl(e,t){return function(n){return"object"==typeof n&&n.type===wl.TEMPLATE&&n.index===t&&n.ctx===e}}function Vl(e){var t=function(e,t){return Fl("#",e,t)},n=function(e,t){return Fl("*",e,t)};switch(e.type){case wl.ELEMENT:return e.closed?t(e,!0)+(e.tmpl?n(e.tmpl,!0):""):e.tmpl?n(e.tmpl)+t(e)+(e.isVoid?n(e.tmpl,!0):""):t(e);case wl.TEMPLATE:return n(e,e.closed);case wl.PROJECTION:return Fl("!",e,e.closed);default:return e}} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var Bl={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},Hl=function(){function e(){this._placeHolderNameCounts={},this._signatureToName={}}return e.prototype.getStartTagPlaceholderName=function(e,t,n){var r=this._hashTag(e,t,n);if(this._signatureToName[r])return this._signatureToName[r];var i=e.toUpperCase(),o=Bl[i]||"TAG_"+i,s=this._generateUniqueName(n?o:"START_"+o);return this._signatureToName[r]=s,s},e.prototype.getCloseTagPlaceholderName=function(e){var t=this._hashClosingTag(e);if(this._signatureToName[t])return this._signatureToName[t];var n=e.toUpperCase(),r=this._generateUniqueName("CLOSE_"+(Bl[n]||"TAG_"+n));return this._signatureToName[t]=r,r},e.prototype.getPlaceholderName=function(e,t){var n=e.toUpperCase(),r="PH: "+n+"="+t;if(this._signatureToName[r])return this._signatureToName[r];var i=this._generateUniqueName(n);return this._signatureToName[r]=i,i},e.prototype.getUniquePlaceholder=function(e){return this._generateUniqueName(e.toUpperCase())},e.prototype._hashTag=function(e,t,n){return"<"+e+Object.keys(t).sort().map(function(e){return" "+e+"="+t[e]}).join("")+(n?"/>":">")},e.prototype._hashClosingTag=function(e){return this._hashTag("/"+e,{},!1)},e.prototype._generateUniqueName=function(e){if(!this._placeHolderNameCounts.hasOwnProperty(e))return this._placeHolderNameCounts[e]=1,e;var t=this._placeHolderNameCounts[e];return this._placeHolderNameCounts[e]=t+1,e+"_"+t},e}(),Ul=new ml(new nl);function ql(e){var t=new Kl(Ul,e);return function(e,n,r,i,o){return t.toI18nMessage(e,n,r,i,o)}}var Kl=function(){function e(e,t){this._expressionParser=e,this._interpolationConfig=t}return e.prototype.toI18nMessage=function(e,t,n,r,i){this._isIcu=1==e.length&&e[0]instanceof $s,this._icuDepth=0,this._placeholderRegistry=new Hl,this._placeholderToContent={},this._placeholderToMessage={},this._visitNodeFn=i;var o=Js(this,e,{});return new yr(o,this._placeholderToContent,this._placeholderToMessage,t,n,r)},e.prototype._visitNode=function(e,t){return this._visitNodeFn&&this._visitNodeFn(e,t),t},e.prototype.visitElement=function(e,t){var n=Js(this,e.children),r={};e.attrs.forEach(function(e){r[e.name]=e.value});var i=C(e.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(e.name,r,i);this._placeholderToContent[o]=e.sourceSpan.toString();var s="";i||(s=this._placeholderRegistry.getCloseTagPlaceholderName(e.name),this._placeholderToContent[s]="");var a=new wr(e.name,r,o,s,n,i,e.sourceSpan);return this._visitNode(e,a)},e.prototype.visitAttribute=function(e,t){var n=this._visitTextWithInterpolation(e.value,e.sourceSpan);return this._visitNode(e,n)},e.prototype.visitText=function(e,t){var n=this._visitTextWithInterpolation(e.value,e.sourceSpan);return this._visitNode(e,n)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitExpansion=function(t,n){var r=this;this._icuDepth++;var i={},o=new br(t.switchValue,t.type,i,t.sourceSpan);if(t.cases.forEach(function(e){i[e.value]=new _r(e.expression.map(function(e){return e.visit(r,{})}),e.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var s=this._placeholderRegistry.getUniquePlaceholder("VAR_"+t.type);return o.expressionPlaceholder=s,this._placeholderToContent[s]=t.switchValue,this._visitNode(t,o)}var a=this._placeholderRegistry.getPlaceholderName("ICU",t.sourceSpan.toString()),u=new e(this._expressionParser,this._interpolationConfig);this._placeholderToMessage[a]=u.toI18nMessage([t],"","","");var l=new Er(o,a,t.sourceSpan);return this._visitNode(t,l)},e.prototype.visitExpansionCase=function(e,t){throw new Error("Unreachable code")},e.prototype._visitTextWithInterpolation=function(e,t){var n=this._expressionParser.splitInterpolation(e,t.start.toString(),this._interpolationConfig);if(!n)return new gr(e,t);for(var r=[],i=new _r(r,t),o=this._interpolationConfig,s=o.start,a=o.end,u=0;u-1?[e.slice(0,s),e.slice(s+2)]:[e,""],2))[0],r=t[1],i=(n=h(a>-1?[u.slice(0,a),u.slice(a+1)]:["",u],2))[0],o=n[1]}return{id:r,meaning:i,description:o}}(t):gi(t),o=this._createI18nMessage(e,r.meaning||"",r.description||"",r.id||"",n);return o.id||(o.id="string"!=typeof t&&t.id||Nr(o)),o},e.prototype.visitElement=function(e,t){var n,r,i,o;if(function s(e){return e.attrs.some(function(e){return vi(e.name)})}(e)){var a=[],u={};try{for(var l=p(e.attrs),c=l.next();!c.done;c=l.next())if((v=c.value).name===pi){var h=this._generateI18nMessage(e.children,e.i18n||v.value,Wl);h.nodes.length&&(e.i18n=h)}else v.name.startsWith(hi)?u[v.name.slice(hi.length)]=v.value:a.push(v)}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}if(Object.keys(u).length)try{for(var f=p(a),d=f.next();!d.done;d=f.next()){var v,m=u[(v=d.value).name];void 0!==m&&v.value&&(v.i18n=this._generateI18nMessage([v],v.i18n||m))}}catch(e){i={error:e}}finally{try{d&&!d.done&&(o=f.return)&&o.call(f)}finally{if(i)throw i.error}}this.keepI18nAttrs||(e.attrs=a)}return Js(this,e.children),e},e.prototype.visitExpansion=function(e,t){var n,r=e.i18n;if(r instanceof Er){var i=r.name;_i(n=this._generateI18nMessage([e],r)).name=i}else n=this._generateI18nMessage([e],r);return e.i18n=n,e},e.prototype.visitText=function(e,t){return e},e.prototype.visitAttribute=function(e,t){return e},e.prototype.visitComment=function(e,t){return e},e.prototype.visitExpansionCase=function(e,t){return e},e}(),$l=function(e){return"{$"+Ci(e)+"}"},Gl=new(function(){function e(){}return e.prototype.visitText=function(e,t){return e.value},e.prototype.visitContainer=function(e,t){var n=this;return e.children.map(function(e){return e.visit(n)}).join("")},e.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.expressionPlaceholder+", "+e.type+", "+r.join(" ")+"}"},e.prototype.visitTagPlaceholder=function(e,t){var n=this;return e.isVoid?$l(e.startName):""+$l(e.startName)+e.children.map(function(e){return e.visit(n)}).join("")+$l(e.closeName)},e.prototype.visitPlaceholder=function(e,t){return $l(e.name)},e.prototype.visitIcuPlaceholder=function(e,t){return $l(e.name)},e}()),Xl=new Map([["window",yn.resolveWindow],["document",yn.resolveDocument],["body",yn.resolveBody]]),Yl=[" ","\n","\r","\t"]; /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Zl(e,t){return mt(ct(Pi).bitwiseAnd(yt(e),null,!1),t)}function Jl(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.type,i=e.name,o=e.target,s=e.phase,a=e.handler;if(o&&!Xl.has(o))throw new Error("Unexpected global target '"+o+"' defined for '"+i+"' event.\n Supported list of global targets: "+Array.from(Xl.keys())+".");var u=null===n||0===n.bindingLevel?ct(Ai):n.getOrCreateSharedContextVar(0),l=function c(e,t,n,r,i,o){e||(e=new ys);var s=function a(e,t){return function n(e,t){var n=new vs(e);return t.visit(n)}(e,t)}({createLiteralArrayConverter:function(e){return function(e){return ft(e)}},createLiteralMapConverter:function(e){return function(t){return dt(e.map(function(e,n){return{key:e.key,value:t[n],quoted:e.quoted}}))}},createPipeConverter:function(e){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: "+e)}},n),u=new ms(e,t,r,i,o),l=[];!function e(t,n){Array.isArray(t)?t.forEach(function(t){return e(t,n)}):n.push(t)}(s.visit(u,ns.Statement),l),function c(e,t,n){for(var r=e-1;r>=0;r--)n.unshift(hs(t,r))}(u.temporaryCount,r,l),u.usesImplicitReceiver&&e.notifyImplicitReceiverUse();var p=l.length-1,h=null;if(p>=0){var f=function d(e){return e instanceof Ze?e.expr:e instanceof Je?e.value:null}(l[p]);f&&(h=function v(e){return ct("pd_"+e)}(r),l[p]=h.set(f.cast(he).notIdentical(yt(!1))).toDeclStmt(null,[ke.Final]))}return new as(l,h)}(n,u,a,"b",function(){return Nt("Unexpected interpolation")},e.handlerSpan),p=[];n&&(p.push.apply(p,f(n.restoreViewStatement())),p.push.apply(p,f(n.variableDeclarations()))),p.push.apply(p,f(l.render3Stmts));var h=1===r?function d(e,t){return""+Qi+e+"."+t}(i,s):i,v=t&&en(t),m=vt([new je("$event",he)],p,fe,null,v),y=[yt(h),m];return o&&y.push(yt(!1),pt(Xl.get(o))),y}var ec=function(){function e(e,t,n,r,i,o,s,a,u,l,c,p,h,f){var d=this;void 0===n&&(n=0),this.constantPool=e,this.level=n,this.contextName=r,this.i18nContext=i,this.templateIndex=o,this.templateName=s,this.directiveMatcher=a,this.directives=u,this.pipeTypeByName=l,this.pipes=c,this._namespace=p,this.relativeContextFilePath=h,this.i18nUseExternalIds=f,this._dataIndex=0,this._bindingContext=0,this._prefixCode=[],this._creationCodeFns=[],this._updateCodeFns=[],this._lastNodeIndexWithFlush=-1,this._tempVariables=[],this._nestedTemplateFns=[],this._unsupported=Mi,this.i18n=null,this._pureFunctionSlots=0,this._bindingSlots=0,this._ngContentReservedSlots=[],this._ngContentSelectorsOffset=0,this._implicitReceiverExpr=null,this.visitReference=Oi,this.visitVariable=Oi,this.visitTextAttribute=Oi,this.visitBoundAttribute=Oi,this.visitBoundEvent=Oi,this._bindingScope=t.nestedScope(n),this.fileBasedI18nSuffix=h.replace(/[^A-Za-z0-9]/g,"_")+"_",this._valueConverter=new tc(e,function(){return d.allocateDataSlot()},function(e){return d.allocatePureFunctionSlots(e)},function(e,t,n,r){var i=l.get(e);i&&d.pipes.add(i),d._bindingScope.set(d.level,t,r),d.creationInstruction(null,yn.pipe,[yt(n),yt(e)])})}return e.prototype.registerContextVariables=function(e){var t=this._bindingScope.freshReferenceName(),n=this.level,r=ct(e.name+t);this._bindingScope.set(n,e.name,r,1,function(t,i){var o;return o=t.bindingLevel===n?ct(Ai):t.getSharedContextName(n)||oc(i),[r.set(o.prop(e.value||"$implicit")).toConstDecl()]})},e.prototype.buildTemplateFunction=function(e,t,n,r){var i=this;void 0===n&&(n=0),this._ngContentSelectorsOffset=n,this._namespace!==yn.namespaceHTML&&this.creationInstruction(null,this._namespace),t.forEach(function(e){return i.registerContextVariables(e)});var o=this.i18nContext||mi(r)&&!yi(r)&&!(function s(e){return 1===e.length&&e[0]instanceof cr}(e)&&e[0].i18n===r),a=vc(e);if(o&&this.i18nStart(null,r,a),mr(this,e),this._pureFunctionSlots+=this._bindingSlots,this._valueConverter.updatePipeSlotOffsets(this._bindingSlots),this._nestedTemplateFns.forEach(function(e){return e()}),0===this.level&&this._ngContentReservedSlots.length){var u=[];if(this._ngContentReservedSlots.length>1||"*"!==this._ngContentReservedSlots[0]){var l=this._ngContentReservedSlots.map(function(e){return"*"!==e?oe(e):e});u.push(this.constantPool.getConstLiteral(Ri(l),!0))}this.creationInstruction(null,yn.projectionDef,u,!0)}o&&this.i18nEnd(null,a);var c=this._creationCodeFns.map(function(e){return e()}),p=this._updateCodeFns.map(function(e){return e()}),h=this._bindingScope.viewSnapshotStatements(),d=this._bindingScope.variableDeclarations().concat(this._tempVariables),v=c.length>0?[Zl(1,h.concat(c))]:[],m=p.length>0?[Zl(2,d.concat(p))]:[];return vt([new je(Pi,ve),new je(Ai,null)],f(this._prefixCode,v,m),fe,null,this.templateName)},e.prototype.getLocal=function(e){return this._bindingScope.get(e)},e.prototype.notifyImplicitReceiverUse=function(){this._bindingScope.notifyImplicitReceiverUse()},e.prototype.i18nTranslate=function(e,t,n,r){var i;void 0===t&&(t={});var o=n||ct(this.constantPool.uniqueName("I18N_")),s=this.i18nGenerateClosureVar(e.id),a={};t&&Object.keys(t).length&&Object.keys(t).forEach(function(e){return a[Ci(e)]=t[e]});var u=gi(e),l=function p(e,t,n,r,i,o){void 0===i&&(i={});var s=[];return s.push.apply(s,f(di(e,t,n,r,i))),o&&s.push(new Ze(e.set(o(e)))),s}(o,s,function c(e){return e.nodes.map(function(e){return e.visit(Gl,null)}).join("")} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e),u,a,r);return(i=this.constantPool.statements).push.apply(i,f(l)),o},e.prototype.i18nAppendBindings=function(e){var t=this;e.length>0&&e.forEach(function(e){return t.i18n.appendBinding(e)})},e.prototype.i18nBindProps=function(e){var t=this,n={};return Object.keys(e).forEach(function(r){var i=e[r];if(i instanceof or)n[r]=yt(i.value);else{var o=i.value.visit(t._valueConverter);if(t.allocateBindingSlots(o),o instanceof Vo){var s=o.expressions,a=t.i18n,u=function l(e,t,n){if(void 0===t&&(t=0),void 0===n&&(n=0),!e.length)return"";for(var r="",i=e.length-1,o=0;o1})||Object.keys(i).length)&&(s=function(e){var t=[e];return Object.keys(i).length&&t.push(ai(i,!0)),ic(null,yn.i18nPostprocess,t)}),this.i18nTranslate(n,o,e.ref,s)}},e.prototype.i18nStart=function(e,t,n){void 0===e&&(e=null);var r=this.allocateDataSlot();if(this.i18nContext)this.i18n=this.i18nContext.forkChildContext(r,this.templateIndex,t);else{var i=ct(this.constantPool.uniqueName("I18N_"));this.i18n=new Dl(r,i,0,this.templateIndex,t)}var o=this.i18n,s=o.id,a=o.ref,u=[yt(r),a];s>0&&u.push(yt(s)),this.creationInstruction(e,n?yn.i18n:yn.i18nStart,u)},e.prototype.i18nEnd=function(e,t){var n=this;if(void 0===e&&(e=null),!this.i18n)throw new Error("i18nEnd is executed with no i18n context present");this.i18nContext?(this.i18nContext.reconcileChildContext(this.i18n),this.i18nUpdateRef(this.i18nContext)):this.i18nUpdateRef(this.i18n);var r=this.i18n,i=r.index,o=r.bindings;if(o.size){var s=[];o.forEach(function(t){s.push({sourceSpan:e,value:function(){return n.convertPropertyBinding(t)}})}),this.updateInstructionChain(i,yn.i18nExp,s),this.updateInstruction(i,e,yn.i18nApply,[yt(i)])}t||this.creationInstruction(e,yn.i18nEnd),this.i18n=null},e.prototype.visitContent=function(e){var t=this.allocateDataSlot(),n=this._ngContentSelectorsOffset+this._ngContentReservedSlots.length,r=[yt(t)],i=[];this._ngContentReservedSlots.push(e.selector),e.attributes.forEach(function(e){var t=e.name,n=e.value;"ngProjectAs"===t?i.push.apply(i,f(lc(e))):"select"!==t.toLowerCase()&&i.push(yt(t),yt(n))}),i.length>0?r.push(yt(n),ft(i)):0!==n&&r.push(yt(n)),this.creationInstruction(e.sourceSpan,yn.projection,r),this.i18n&&this.i18n.appendProjection(e.i18n,t)},e.prototype.getNamespaceInstruction=function(e){switch(e){case"math":return yn.namespaceMathML;case"svg":return yn.namespaceSVG;default:return yn.namespaceHTML}},e.prototype.addNamespaceInstruction=function(e,t){this._namespace=e,this.creationInstruction(t.sourceSpan,e)},e.prototype.visitElement=function(e){var t,n,r=this,i=this.allocateDataSlot(),o=new Xu(yt(i),null),s=!1,a=mi(e.i18n)&&!yi(e.i18n);if(a&&this.i18n)throw new Error("Could not mark an element as translatable inside of a translatable section");var u=[],l=[],c=h(d(e.name),2),m=c[0],y=c[1],g=v(e.name);try{for(var _=p(e.attributes),b=_.next();!b.done;b=_.next()){var w=b.value,x=w.name,E=w.value;"ngNonBindable"===x?s=!0:"style"===x?o.registerStyleAttr(E):"class"===x?o.registerClassAttr(E):w.i18n?u.push(w):l.push(w)}}catch(e){t={error:e}}finally{try{b&&!b.done&&(n=_.return)&&n.call(_)}finally{if(t)throw t.error}}this.matchDirectives(e.name,e);var S=[yt(i)];g||S.push(yt(y));var C=[],T=[];e.inputs.forEach(function(e){o.registerBoundInput(e)||(0===e.type&&e.i18n?u.push(e):T.push(e))}),l.forEach(function(e){C.push.apply(C,"ngProjectAs"===e.name?f(lc(e)):f(ac(e.name),[yt(e.value)]))}),C.push.apply(C,f(this.prepareNonRenderAttrs(T,e.outputs,o,[],u))),S.push(this.toAttrsParam(C)),S.push(this.prepareRefsParameter(e.references));var N=this._namespace,k=this.getNamespaceInstruction(m);k!==N&&this.addNamespaceInstruction(k,e),this.i18n&&this.i18n.appendElement(e.i18n,i);var A=!o.hasBindings&&!g&&0===e.outputs.length&&0===u.length&&!(!a&&r.i18n?!vc(e.children):e.children.length>0),P=!A&&!o.hasBindings&&vc(e.children);if(A)this.creationInstruction(e.sourceSpan,yn.element,Li(S));else{if(this.creationInstruction(e.sourceSpan,g?yn.elementContainerStart:yn.elementStart,Li(S)),s&&this.creationInstruction(e.sourceSpan,yn.disableBindings),u.length){var I=!1,M=[],O=[];if(u.forEach(function(t){var n=t.i18n;if(t instanceof ar)M.push(yt(t.name),r.i18nTranslate(n));else{var i=t.value.visit(r._valueConverter);if(r.allocateBindingSlots(i),i instanceof Vo){var o=xi(Si(n));M.push(yt(t.name),r.i18nTranslate(n,o)),i.expressions.forEach(function(t){I=!0,O.push({sourceSpan:e.sourceSpan,value:function(){return r.convertExpressionBinding(t)}})})}}}),O.length&&this.updateInstructionChain(i,yn.i18nExp,O),M.length){var R=yt(this.allocateDataSlot()),D=this.constantPool.getConstLiteral(ft(M),!0);this.creationInstruction(e.sourceSpan,yn.i18nAttributes,[R,D]),I&&this.updateInstruction(i,e.sourceSpan,yn.i18nApply,[R])}}this.processStylingInstruction(i,o.buildStylingInstruction(e.sourceSpan,this.constantPool),!0),e.outputs.forEach(function(t){r.creationInstruction(t.sourceSpan,yn.listener,r.prepareListenerParameter(e.name,t,i))}),a&&this.i18nStart(e.sourceSpan,e.i18n,P)}for(var L=o.buildUpdateLevelInstructions(this._valueConverter),F=L.length-1,j=0;j<=F;j++){var V=L[j];this._bindingSlots+=V.allocateBindingSlots,this.processStylingInstruction(i,V,!1)}var B=yt(void 0),H=[],U=[];if(T.forEach(function(e){var t=e.type;if(4===t){var n=e.value.visit(r._valueConverter),o=!(n instanceof Lo&&!n.value);r.allocateBindingSlots(n),H.push({name:$i(e.name),sourceSpan:e.sourceSpan,value:function(){return o?r.convertPropertyBinding(n):B}})}else{if(e.i18n)return;var s=e.value.visit(r._valueConverter);if(void 0!==s){var a=[],u=h(d(e.name),2),l=u[0],c=u[1],p=fc(e.securityContext,1===t);if(p&&a.push(p),l){var v=yt(l);p?a.push(v):a.push(yt(null),v)}if(r.allocateBindingSlots(s),0===t)s instanceof Vo?r.interpolatedUpdateInstruction(function m(e){switch(pc(e)){case 1:return yn.propertyInterpolate;case 3:return yn.propertyInterpolate1;case 5:return yn.propertyInterpolate2;case 7:return yn.propertyInterpolate3;case 9:return yn.propertyInterpolate4;case 11:return yn.propertyInterpolate5;case 13:return yn.propertyInterpolate6;case 15:return yn.propertyInterpolate7;case 17:return yn.propertyInterpolate8;default:return yn.propertyInterpolateV}}(s),i,c,e,s,a):H.push({name:c,sourceSpan:e.sourceSpan,value:function(){return r.convertPropertyBinding(s)},params:a});else if(1===t)if(s instanceof Vo&&pc(s)>1)r.interpolatedUpdateInstruction(function y(e){switch(pc(e)){case 3:return yn.attributeInterpolate1;case 5:return yn.attributeInterpolate2;case 7:return yn.attributeInterpolate3;case 9:return yn.attributeInterpolate4;case 11:return yn.attributeInterpolate5;case 13:return yn.attributeInterpolate6;case 15:return yn.attributeInterpolate7;case 17:return yn.attributeInterpolate8;default:return yn.attributeInterpolateV}}(s),i,c,e,s,a);else{var g=s instanceof Vo?s.expressions[0]:s;U.push({name:c,sourceSpan:e.sourceSpan,value:function(){return r.convertPropertyBinding(g)},params:a})}else r.updateInstruction(i,e.sourceSpan,yn.classProp,function(){return f([yt(i),yt(c),r.convertPropertyBinding(s)],a)})}}}),H.length>0&&this.updateInstructionChain(i,yn.property,H),U.length>0&&this.updateInstructionChain(i,yn.attribute,U),mr(this,e.children),!a&&this.i18n&&this.i18n.appendElement(e.i18n,i,!0),!A){var q=e.endSourceSpan||e.sourceSpan;a&&this.i18nEnd(q,P),s&&this.creationInstruction(q,yn.enableBindings),this.creationInstruction(q,g?yn.elementContainerEnd:yn.elementEnd)}},e.prototype.interpolatedUpdateInstruction=function(e,t,n,r,i,o){var s=this;this.updateInstruction(t,r.sourceSpan,e,function(){return f([yt(n)],s.getUpdateInstructionArguments(i),o)})},e.prototype.visitTemplate=function(t){var n=this,r=this.allocateDataSlot();this.i18n&&this.i18n.appendTemplate(t.i18n,r);var i=en(t.tagName||""),o=this.contextName+(i?"_"+i:"")+"_"+r,s=o+"_Template",a=[yt(r),ct(s),yt(t.tagName?d(t.tagName)[1]:t.tagName)];this.matchDirectives("ng-template",t);var u=[];t.attributes.forEach(function(e){u.push(Ri(e.name),Ri(e.value))}),u.push.apply(u,f(this.prepareNonRenderAttrs(t.inputs,t.outputs,void 0,t.templateAttrs))),a.push(this.toAttrsParam(u)),t.references&&t.references.length&&(a.push(this.prepareRefsParameter(t.references)),a.push(pt(yn.templateRefExtractor)));var l=new e(this.constantPool,this._bindingScope,this.level+1,o,this.i18n,r,s,this.directiveMatcher,this.directives,this.pipeTypeByName,this.pipes,this._namespace,this.fileBasedI18nSuffix,this.i18nUseExternalIds);this._nestedTemplateFns.push(function(){var e,r=l.buildTemplateFunction(t.children,t.variables,n._ngContentReservedSlots.length+n._ngContentSelectorsOffset,t.i18n);n.constantPool.statements.push(r.toDeclStmt(s,null)),l._ngContentReservedSlots.length&&(e=n._ngContentReservedSlots).push.apply(e,f(l._ngContentReservedSlots))}),this.creationInstruction(t.sourceSpan,yn.templateCreate,function(){return a.splice(2,0,yt(l.getConstCount()),yt(l.getVarCount())),Li(a)}),this.templatePropertyBindings(r,t.templateAttrs),"ng-template"===t.tagName&&(this.templatePropertyBindings(r,t.inputs),t.outputs.forEach(function(e){n.creationInstruction(e.sourceSpan,yn.listener,n.prepareListenerParameter("ng_template",e,r))}))},e.prototype.visitBoundText=function(e){var t=this;if(this.i18n){var n=e.value.visit(this._valueConverter);return this.allocateBindingSlots(n),void(n instanceof Vo&&(this.i18n.appendBoundText(e.i18n),this.i18nAppendBindings(n.expressions)))}var r=this.allocateDataSlot();this.creationInstruction(e.sourceSpan,yn.text,[yt(r)]);var i=e.value.visit(this._valueConverter);this.allocateBindingSlots(i),i instanceof Vo?this.updateInstruction(r,e.sourceSpan,function o(e){switch(pc(e)){case 1:return yn.textInterpolate;case 3:return yn.textInterpolate1;case 5:return yn.textInterpolate2;case 7:return yn.textInterpolate3;case 9:return yn.textInterpolate4;case 11:return yn.textInterpolate5;case 13:return yn.textInterpolate6;case 15:return yn.textInterpolate7;case 17:return yn.textInterpolate8;default:return yn.textInterpolateV}}(i),function(){return t.getUpdateInstructionArguments(i)}):this.updateInstruction(r,e.sourceSpan,yn.textBinding,function(){return[t.convertPropertyBinding(i)]})},e.prototype.visitText=function(e){this.i18n||this.creationInstruction(e.sourceSpan,yn.text,[yt(this.allocateDataSlot()),yt(e.value)])},e.prototype.visitIcu=function(e){var t=!1;this.i18n||(t=!0,this.i18nStart(null,e.i18n,!0));var n=this.i18n,r=this.i18nBindProps(e.vars),i=this.i18nBindProps(e.placeholders),o=e.i18n,s=function(e){return ic(null,yn.i18nPostprocess,[e,ai(r,!0)])};if(yi(n.meta))this.i18nTranslate(o,i,n.ref,s);else{var a=this.i18nTranslate(o,i,void 0,s);n.appendIcu(_i(o).name,a)}return t&&this.i18nEnd(null,!0),null},e.prototype.allocateDataSlot=function(){return this._dataIndex++},e.prototype.getConstCount=function(){return this._dataIndex},e.prototype.getVarCount=function(){return this._pureFunctionSlots},e.prototype.getNgContentSelectors=function(){return this._ngContentReservedSlots.length?this.constantPool.getConstLiteral(Ri(this._ngContentReservedSlots),!0):null},e.prototype.bindingContext=function(){return""+this._bindingContext++},e.prototype.templatePropertyBindings=function(e,t){var n=this,r=[];t.forEach(function(e){if(e instanceof ur){var t=e.value.visit(n._valueConverter);void 0!==t&&(n.allocateBindingSlots(t),r.push({name:e.name,sourceSpan:e.sourceSpan,value:function(){return n.convertPropertyBinding(t)}}))}}),r.length>0&&this.updateInstructionChain(e,yn.property,r)},e.prototype.instructionFn=function(e,t,n,r,i){void 0===i&&(i=!1),e[i?"unshift":"push"](function(){var e=Array.isArray(r)?r:r();return ic(t,n,e).toStmt()})},e.prototype.processStylingInstruction=function(e,t,n){var r=this;if(t){var i=function(){return t.buildParams(function(e){return r.convertPropertyBinding(e)})};n?this.creationInstruction(t.sourceSpan,t.reference,i):this.updateInstruction(e,t.sourceSpan,t.reference,i)}},e.prototype.creationInstruction=function(e,t,n,r){this.instructionFn(this._creationCodeFns,e,t,n||[],r)},e.prototype.updateInstruction=function(e,t,n,r){this.addSelectInstructionIfNecessary(e,t),this.instructionFn(this._updateCodeFns,t,n,r||[])},e.prototype.updateInstructionChain=function(e,t,n){var r=n.length?n[0].sourceSpan:null;this.addSelectInstructionIfNecessary(e,r),this._updateCodeFns.push(function(){var e=n.map(function(e){var t=f([e.value()],e.params||[]);return e.name&&t.unshift(yt(e.name)),t});return function i(e,t,n){var r=pt(t,null,e);if(n.length>0)for(var i=0;i0&&this.instructionFn(this._updateCodeFns,t,yn.select,[yt(e)]),this._lastNodeIndexWithFlush=e)},e.prototype.allocatePureFunctionSlots=function(e){var t=this._pureFunctionSlots;return this._pureFunctionSlots+=e,t},e.prototype.allocateBindingSlots=function(e){this._bindingSlots+=e instanceof Vo?e.expressions.length:1},e.prototype.getImplicitReceiverExpr=function(){return this._implicitReceiverExpr?this._implicitReceiverExpr:this._implicitReceiverExpr=0===this.level?ct(Ai):this._bindingScope.getOrCreateSharedContextVar(0)},e.prototype.convertExpressionBinding=function(e){return ls(this,this.getImplicitReceiverExpr(),e,this.bindingContext(),ts.TrySimple).currValExpr},e.prototype.convertPropertyBinding=function(e){var t,n=e instanceof Vo?cc:function(){return Nt("Unexpected interpolation")},r=ls(this,this.getImplicitReceiverExpr(),e,this.bindingContext(),ts.TrySimple,n),i=r.currValExpr;return(t=this._tempVariables).push.apply(t,f(r.stmts)),i},e.prototype.getUpdateInstructionArguments=function(e){var t,n=function r(e,t,n,i){var o=new ms(e,t,i,void 0),s=n.visit(o,ns.Expression);o.usesImplicitReceiver&&e.notifyImplicitReceiverUse();var a=cs(o,i),u=s.args.slice(1);if(n instanceof Vo){var l=n.strings;3===u.length&&""===l[0]&&""===l[1]?u=[u[1]]:u.length>=19&&(u=[ft(u)])}return{stmts:a,args:u}}(this,this.getImplicitReceiverExpr(),e,this.bindingContext()),i=n.args;return(t=this._tempVariables).push.apply(t,f(n.stmts)),i},e.prototype.matchDirectives=function(e,t){var n=this;if(this.directiveMatcher){var r=function o(e,t){var n=new A;return n.setElement(e),Object.getOwnPropertyNames(t).forEach(function(e){var r=t[e];n.addAttribute(e,r),"class"===e.toLowerCase()&&r.trim().split(/\s+/).forEach(function(e){return n.addClassName(e)})}),n}(e,function i(e){var t={};return e instanceof pr&&"ng-template"!==e.tagName?e.templateAttrs.forEach(function(e){return t[e.name]=""}):(e.attributes.forEach(function(e){vi(e.name)||(t[e.name]=e.value)}),e.inputs.forEach(function(e){t[e.name]=""}),e.outputs.forEach(function(e){t[e.name]=""})),t} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(t));this.directiveMatcher.match(r,function(e,t){n.directives.add(t)})}},e.prototype.prepareNonRenderAttrs=function(e,t,n,r,i){void 0===r&&(r=[]),void 0===i&&(i=[]);var o=new Set,s=[];function a(e,t){"string"==typeof e?o.has(e)||(s.push.apply(s,f(ac(e))),void 0!==t&&s.push(t),o.add(e)):s.push(yt(e))}if(n&&n.populateInitialStylingAttrs(s),e.length||t.length){for(var u=s.length,l=0;l0?this.constantPool.getConstLiteral(ft(e),!0):$e},e.prototype.prepareRefsParameter=function(e){var t=this;if(!e||0===e.length)return $e;var n=vn(e.map(function(e){var n=t.allocateDataSlot(),r=t._bindingScope.freshReferenceName(),i=t.level,o=ct(r);return t._bindingScope.set(i,e.name,o,0,function(e,t){var r=t>0?[oc(t).toStmt()]:[],i=o.set(pt(yn.reference).callFn([yt(n)]));return r.concat(i.toConstDecl())},!0),[e.name,e.value]}));return this.constantPool.getConstLiteral(Ri(n),!0)},e.prototype.prepareListenerParameter=function(e,t,n){var r=this;return function(){var i=t.name,o=1===t.type?Gi(i,t.phase):en(i),s=r.templateName+"_"+e+"_"+o+"_"+n+"_listener",a=r._bindingScope.nestedScope(r._bindingScope.bindingLevel);return Jl(t,s,a)}},e}(),tc=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.constantPool=t,o.allocateSlot=n,o.allocatePureFunctionSlots=r,o.definePipe=i,o._pipeBindExprs=[],o}return o(t,e),t.prototype.visitPipe=function(e,t){var n=this.allocateSlot(),r="PIPE:"+n,i=this.allocatePureFunctionSlots(2+e.args.length),o=new Po(e.span,new No(e.span),r),s=function a(e){var t=nc[e.length];return{identifier:t||yn.pipeBindV,isVarLength:!t}}(e.args),u=s.isVarLength;this.definePipe(e.name,r,n,pt(s.identifier));var l=f([e.exp],e.args),c=this.visitAll(u?[new Fo(e.span,l)]:l),p=new zo(e.span,o,f([new Lo(e.span,n),new Lo(e.span,i)],c));return this._pipeBindExprs.push(p),p},t.prototype.updatePipeSlotOffsets=function(e){this._pipeBindExprs.forEach(function(t){t.args[1].value+=e})},t.prototype.visitLiteralArray=function(e,t){var n=this;return new gs(e.span,this.visitAll(e.expressions),function(e){var t=ft(e);return e.every(function(e){return e.isConstant()})?n.constantPool.getConstLiteral(t,!0):sc(n.constantPool,t,n.allocatePureFunctionSlots)})},t.prototype.visitLiteralMap=function(e,t){var n=this;return new gs(e.span,this.visitAll(e.values),function(t){var r=dt(t.map(function(t,n){return{key:e.keys[n].key,value:t,quoted:e.keys[n].quoted}}));return t.every(function(e){return e.isConstant()})?n.constantPool.getConstLiteral(r,!0):sc(n.constantPool,r,n.allocatePureFunctionSlots)})},t}(Yo),nc=[yn.pipeBind1,yn.pipeBind2,yn.pipeBind3,yn.pipeBind4],rc=[yn.pureFunction0,yn.pureFunction1,yn.pureFunction2,yn.pureFunction3,yn.pureFunction4,yn.pureFunction5,yn.pureFunction6,yn.pureFunction7,yn.pureFunction8];function ic(e,t,n){return pt(t,null,e).callFn(n,e)}function oc(e){return pt(yn.nextContext).callFn(e>1?[yt(e)]:[])}function sc(e,t,n){var r=e.getLiteralFactory(t),i=r.literalFactory,o=r.literalFactoryArguments,s=n(1+o.length);o.length>0||Nt("Expected arguments to a literal factory function");var a=function u(e){var t=rc[e.length];return{identifier:t||yn.pureFunctionV,isVarLength:!t}}(o),l=a.identifier,c=a.isVarLength,p=[yt(s),i];return c?p.push(ft(o)):p.push.apply(p,f(o)),pt(l).callFn(p)}function ac(e){var t=h(d(e),2),n=t[0],r=yt(t[1]);return n?[yt(0),yt(n),r]:[r]}var uc=function(){function e(e,t){void 0===e&&(e=0),void 0===t&&(t=null),this.bindingLevel=e,this.parent=t,this.map=new Map,this.referenceNameIndex=0,this.restoreViewVariable=null}return Object.defineProperty(e,"ROOT_SCOPE",{get:function(){return e._ROOT_SCOPE||(e._ROOT_SCOPE=(new e).set(0,"$event",ct("$event"))),e._ROOT_SCOPE},enumerable:!0,configurable:!0}),e.prototype.get=function(e){for(var t=this;t;){var n=t.map.get(e);if(null!=n)return t!==this&&(this.map.set(e,n={retrievalLevel:n.retrievalLevel,lhs:n.lhs,declareLocalCallback:n.declareLocalCallback,declare:!1,priority:n.priority,localRef:n.localRef}),this.maybeGenerateSharedContextVar(n),this.maybeRestoreView(n.retrievalLevel,n.localRef)),n.declareLocalCallback&&!n.declare&&(n.declare=!0),n.lhs;t=t.parent}return 0===this.bindingLevel?null:this.getComponentProperty(e)},e.prototype.set=function(e,t,n,r,i,o){if(void 0===r&&(r=0),this.map.has(t)){if(o)return this;Nt("The name "+t+" is already defined in scope to be "+this.map.get(t))}return this.map.set(t,{retrievalLevel:e,lhs:n,declare:!1,declareLocalCallback:i,priority:r,localRef:o||!1}),this},e.prototype.getLocal=function(e){return this.get(e)},e.prototype.notifyImplicitReceiverUse=function(){0!==this.bindingLevel&&(this.map.get("$$shared_ctx$$0").declare=!0)},e.prototype.nestedScope=function(t){var n=new e(t,this);return t>0&&n.generateSharedContextVar(0),n},e.prototype.getOrCreateSharedContextVar=function(e){var t="$$shared_ctx$$"+e;return this.map.has(t)||this.generateSharedContextVar(e),this.map.get(t).lhs},e.prototype.getSharedContextName=function(e){var t=this.map.get("$$shared_ctx$$"+e);return t&&t.declare?t.lhs:null},e.prototype.maybeGenerateSharedContextVar=function(e){if(1===e.priority&&e.retrievalLevel=19&&e.length%2==1||Nt("Invalid interpolation argument length "+e.length),pt(yn.interpolationV).callFn([ft(e)])}function pc(e){var t=e.expressions,n=e.strings;return 1===t.length&&2===n.length&&""===n[0]&&""===n[1]?1:t.length+n.length}function hc(e){return void 0===e&&(e=eo),new pu(new ml(new nl),e,new kl,null,[])}function fc(e,t){switch(e){case H.HTML:return pt(yn.sanitizeHtml);case H.SCRIPT:return pt(yn.sanitizeScript);case H.STYLE:return t?pt(yn.sanitizeStyle):null;case H.URL:return pt(yn.sanitizeUrl);case H.RESOURCE_URL:return pt(yn.sanitizeResourceUrl);default:return null}}function dc(e){return e instanceof or||e instanceof sr||e instanceof vr}function vc(e){return e.every(dc)} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var mc=[],yc=/attr\.([^\]]+)/;function gc(e,t,n){var r=new Bi;r.set("type",e.type),r.set("selectors",function i(e){return Ri(oe(e))}(e.selector));var o=Hi({name:e.name,type:e.type,deps:e.deps,injectFn:yn.directiveInject});return r.set("factory",o.factory),e.queries.length>0&&r.set("contentQueries",wc(e.queries,t,e.name)),e.viewQueries.length&&r.set("viewQuery",Cc(e.viewQueries,t,e.name)),r.set("hostBindings",Tc(e.host,e.typeSourceSpan,n,t,e.selector||"",e.name)),r.set("inputs",Di(e.inputs,!0)),r.set("outputs",Di(e.outputs)),null!==e.exportAs&&r.set("exportAs",ft(e.exportAs.map(function(e){return yt(e)}))),{definitionMap:r,statements:o.statements}}function _c(e,t){var n=[],r=t.providers,i=t.viewProviders;if(r||i){var o=[r||new qe([])];i&&o.push(i),n.push(pt(yn.ProvidersFeature).callFn(o))}t.usesInheritance&&n.push(pt(yn.InheritDefinitionFeature)),t.lifecycle.usesOnChanges&&n.push(pt(yn.NgOnChangesFeature).callFn(mc)),n.length&&e.set("features",ft(n))}function bc(e,t){return[Fi(e,t),yt(e.descendants),e.read||yt(null)]}function wc(e,t,n){var r,i,o=[],s=[],a=Ii(s,ki);try{for(var u=p(e),l=u.next();!l.done;l=u.next()){var c=l.value,h=f([ct("dirIndex")],bc(c,t));o.push(pt(c.static?yn.staticContentQuery:yn.contentQuery).callFn(h).toStmt());var d=a(),v=pt(yn.loadContentQuery).callFn([]),m=pt(yn.queryRefresh).callFn([d.set(v)]),y=ct(Ai).prop(c.propertyName).set(c.first?d.prop("first"):d);s.push(m.and(y).toStmt())}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}var g=n?n+"_ContentQueries":null;return vt([new je(Pi,ve),new je(Ai,null),new je("dirIndex",null)],[Zl(1,o),Zl(2,s)],fe,null,g)}function xc(e){return ht(dt(Object.keys(e).map(function(t){return{key:t,value:yt(Array.isArray(e[t])?e[t][0]:e[t]),quoted:!0}})))}function Ec(e){return e.length>0?ht(ft(e.map(function(e){return yt(e)}))):me}function Sc(e,t){var n,r=(e.selector||"").replace(/\n/g,"");return ht(pt(t,[Wi(e.type,e.typeArgumentCount),(n=r,ht(yt(n))),null!==e.exportAs?Ec(e.exportAs):me,xc(e.inputs),xc(e.outputs),Ec(e.queries.map(function(e){return e.propertyName}))]))}function Cc(e,t,n){var r=[],i=[],o=Ii(i,ki);e.forEach(function(e){var n=pt(e.static?yn.staticViewQuery:yn.viewQuery).callFn(bc(e,t));r.push(n.toStmt());var s=o(),a=pt(yn.loadViewQuery).callFn([]),u=pt(yn.queryRefresh).callFn([s.set(a)]),l=ct(Ai).prop(e.propertyName).set(e.first?s.prop("first"):s);i.push(u.and(l).toStmt())});var s=n?n+"_Query":null;return vt([new je(Pi,ve),new je(Ai,null)],[Zl(1,r),Zl(2,i)],fe,null,s)}function Tc(e,t,n,r,i,o){var s=Object.keys(e.properties).filter(function(e){var t=function n(e){return e.substring(0,5)}(e);return"style"!==t&&"class"!==t}).length,a=ct("elIndex"),u=ct(Ai),l=new Xu(a,u),c=e.specialAttributes,h=c.styleAttr,d=c.classAttr;void 0!==h&&l.registerStyleAttr(h),void 0!==d&&l.registerClassAttr(d);var v,m=[],y=[],g=s,_=t,b=Ac(e),w=function(){return v||(v=new tc(r,function(){return Nt("Unexpected node")},function(e){var t=g;return g+=e,t},function(){return Nt("Unexpected pipe")})),v},x=n.createDirectiveHostEventAsts(b,_);if(x&&x.length){var E=function S(e,t){return e.map(function(e){var n=e.name&&en(e.name),r=1===e.type?Gi(n,e.targetOrPhase):n,i=t&&n?t+"_"+r+"_HostBindingHandler":null,o=Jl(lr.fromParsedEvent(e),i);return pt(1==e.type?yn.componentHostSyntheticListener:yn.listener).callFn(o).toStmt()})}(x,o);m.push.apply(m,f(E))}(n.createBoundHostProperties(b,_)||[]).forEach(function(e){if(!l.registerInputBasedOnName(e.name,e.expression,e.sourceSpan)){var t=e.expression.visit(w()),r=Nc(u,t),o=function s(e){var t,n=e.name,r=n.match(yc);return r?(n=r[1],t=yn.attribute):e.isAnimation?(n=$i(n),t=yn.updateSyntheticHostBinding):t=yn.property,{bindingName:n,instruction:t,isAttribute:!!r}}(e),a=o.bindingName,c=o.instruction,p=o.isAttribute,h=n.calcPossibleSecurityContexts(i,a,p).filter(function(e){return e!==H.NONE}),d=null;h.length&&(d=2===h.length&&h.indexOf(H.URL)>-1&&h.indexOf(H.RESOURCE_URL)>-1?pt(yn.sanitizeUrlOrResourceUrl):fc(h[0],p));var v=[yt(a),r.currValExpr];d&&v.push(d),p||(d||v.push(yt(null)),v.push(yt(!0))),y.push.apply(y,f(r.stmts)),y.push(pt(c).callFn(v).toStmt())}});var C=function T(e){var t,n,r=[];try{for(var i=p(Object.getOwnPropertyNames(e)),o=i.next();!o.done;o=i.next()){var s=o.value,a=e[s];r.push(yt(s),a)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(e.attributes),N=l.buildHostAttrsInstruction(null,C,r);if(N&&m.push(kc(N,u,Nc)),l.hasBindings){var k=l.buildStylingInstruction(null,r);k&&m.push(kc(k,u,Nc)),l.buildUpdateLevelInstructions(w()).forEach(function(e){g+=e.allocateBindingSlots,y.push(kc(e,u,Nc))})}if(g&&m.unshift(pt(yn.allocHostVars).callFn([yt(g)]).toStmt()),m.length>0||y.length>0){var A=o?o+"_HostBindings":null,P=[];return m.length>0&&P.push(Zl(1,m)),y.length>0&&P.push(Zl(2,y)),vt([new je(Pi,ve),new je(Ai,null),new je(a.name,ve)],P,fe,null,A)}return null}function Nc(e,t){return ls(null,e,t,"b",ts.TrySimple,function(){return Nt("Unexpected interpolation")})}function kc(e,t,n){var r=e.buildParams(function(e){return n(t,e).currValExpr});return pt(e.reference,null,e.sourceSpan).callFn(r,e.sourceSpan).toStmt()}function Ac(e){return{hostAttributes:{},hostListeners:e.listeners,hostProperties:e.properties}}var Pc=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/,Ic=function(){function e(){}return e.prototype.get=function(e){return""},e}(),Mc=function(){function e(e){void 0===e&&(e=new yo),this.jitEvaluator=e,this.R3ResolvedDependencyType=Vi,this.ResourceLoader=Ic,this.elementSchemaRegistry=new kl}return e.prototype.compilePipe=function(e,t,n){var r=function i(e){var t=[];t.push({key:"name",value:yt(e.pipeName),quoted:!1}),t.push({key:"type",value:e.type,quoted:!1});var n=Hi({name:e.name,type:e.type,deps:e.deps,injectFn:yn.directiveInject});return t.push({key:"factory",value:n.factory,quoted:!1}),t.push({key:"pure",value:yt(e.pure),quoted:!1}),{expression:pt(yn.definePipe).callFn([dt(t)]),type:new ce(pt(yn.PipeDefWithMeta,[Wi(e.type,e.typeArgumentCount),new ce(new Me(e.pipeName))])),statements:n.statements}}({name:n.name,type:new Se(n.type),typeArgumentCount:n.typeArgumentCount,deps:Uc(n.deps),pipeName:n.pipeName,pure:n.pure});return this.jitExpression(r.expression,e,t,r.statements)},e.prototype.compileInjectable=function(e,t,n){var r,i=function o(e){var t=null,n={name:e.name,type:e.type,deps:e.ctorDeps,injectFn:$t.inject};if(void 0!==e.useClass){var r=e.useClass.isEquivalent(e.type),i=void 0;void 0!==e.userDeps&&(i=e.userDeps),t=Hi(void 0!==i?a({},n,{delegate:e.useClass,delegateDeps:i,delegateType:ji.Class}):r?n:a({},n,{delegate:e.useClass,delegateType:ji.Factory}))}else t=Hi(void 0!==e.useFactory?a({},n,{delegate:e.useFactory,delegateDeps:e.userDeps||[],delegateType:ji.Function}):void 0!==e.useValue?a({},n,{expression:e.useValue}):void 0!==e.useExisting?a({},n,{expression:pt($t.inject).callFn([e.useExisting])}):n);var o=e.type,s=e.providedIn;return{expression:pt($t.ɵɵdefineInjectable).callFn([zi({token:o,factory:t.factory,providedIn:s})]),type:new ce(pt($t.InjectableDef,[Wi(e.type,e.typeArgumentCount)])),statements:t.statements}}({name:n.name,type:new Se(n.type),typeArgumentCount:n.typeArgumentCount,providedIn:(r=n.providedIn,null==r||"string"==typeof r?new Me(r):new Se(r)),useClass:Bc(n,Oc),useFactory:Bc(n,Rc),useValue:Bc(n,Dc),useExisting:Bc(n,Lc),ctorDeps:Uc(n.ctorDeps),userDeps:Uc(n.userDeps)||void 0});return this.jitExpression(i.expression,e,t,i.statements)},e.prototype.compileInjector=function(e,t,n){var r=function i(e){var t=Hi({name:e.name,type:e.type,deps:e.deps,injectFn:yn.inject}),n={factory:t.factory};return null!==e.providers&&(n.providers=e.providers),e.imports.length>0&&(n.imports=ft(e.imports)),{expression:pt(yn.defineInjector).callFn([zi(n)]),type:new ce(pt(yn.InjectorDef,[new ce(e.type)])),statements:t.statements}}({name:n.name,type:new Se(n.type),deps:Uc(n.deps),providers:new Se(n.providers),imports:n.imports.map(function(e){return new Se(e)})});return this.jitExpression(r.expression,e,t,r.statements)},e.prototype.compileNgModule=function(e,t,n){var r= /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function i(e){var t=e.type,n=e.bootstrap,r=e.declarations,i=e.imports,o=e.exports,s=e.schemas,a=e.containsForwardDecls,u=e.emitInline,l=e.id,c=[],p={type:t};if(n.length&&(p.bootstrap=wo(n,a)),u)r.length&&(p.declarations=wo(r,a)),i.length&&(p.imports=wo(i,a)),o.length&&(p.exports=wo(o,a));else{var h=function f(e){var t=e.type,n=e.declarations,r=e.imports,i=e.exports,o=e.containsForwardDecls,s={};return n.length&&(s.declarations=wo(n,o)),r.length&&(s.imports=wo(r,o)),i.length&&(s.exports=wo(i,o)),0===Object.keys(s).length?null:new Pe(pt(yn.setNgModuleScope),[t,zi(s)],void 0,void 0,!0).toStmt()}(e);null!==h&&c.push(h)}return s&&s.length&&(p.schemas=ft(s.map(function(e){return e.value}))),l&&(p.id=l),{expression:pt(yn.defineNgModule).callFn([zi(p)]),type:new ce(pt(yn.NgModuleDefWithMeta,[new ce(t),bo(r),bo(i),bo(o)])),additionalStatements:c}}({type:new Se(n.type),bootstrap:n.bootstrap.map(Fc),declarations:n.declarations.map(Fc),imports:n.imports.map(Fc),exports:n.exports.map(Fc),emitInline:!0,containsForwardDecls:!1,schemas:n.schemas?n.schemas.map(Fc):null,id:n.id?new Se(n.id):null});return this.jitExpression(r.expression,e,t,[])},e.prototype.compileDirective=function(e,t,n){var r=new qt,i=hc(),o=function s(e,t,n){var r=gc(e,t,n),i=r.definitionMap,o=r.statements;_c(i,e);var s=pt(yn.defineDirective).callFn([i.toLiteralMap()]);if(!e.selector)throw new Error("Directive "+e.name+" has no selector, please add it!");return{expression:s,type:Sc(e,yn.DirectiveDefWithMeta),statements:o}}(Vc(n),r,i),a=f(r.statements,o.statements);return this.jitExpression(o.expression,e,t,a)},e.prototype.compileComponent=function(e,t,n){var r=new qt,i=n.interpolation?Ji.fromArray(n.interpolation):eo,o=function s(e,t,n){void 0===n&&(n={});var r=n.interpolationConfig,i=n.preserveWhitespaces,o=hc(r),s=(new Sa).parse(e,t,a({leadingTriviaChars:Yl},n,{tokenizeExpansionForms:!0}));if(s.errors&&s.errors.length>0)return{errors:s.errors,nodes:[],styleUrls:[],styles:[]};var u=s.rootNodes;u=Js(new Ql(r,!i),u),i||(u=Js(new Pa,u),u=Js(new Ql(r,!1),u));var l=function c(e,t){var n=new Il(t),r=Js(n,e),i=t.errors.concat(n.errors),o=i.filter(function(e){return e.level===er.ERROR});if(o.length>0)throw kt("Template parse errors:\n"+o.join("\n"),o);return{nodes:r,errors:i,styleUrls:n.styleUrls,styles:n.styles}}(u,o),p=l.errors;return p&&p.length>0?{errors:p,nodes:[],styleUrls:[],styles:[]}:{nodes:l.nodes,styleUrls:l.styleUrls,styles:l.styles}}(n.template,t,{preserveWhitespaces:n.preserveWhitespaces,interpolationConfig:i});if(void 0!==o.errors){var u=o.errors.map(function(e){return e.toString()}).join(", ");throw new Error("Errors during JIT compilation of template for "+n.name+": "+u)}var l=function c(e,t,n){var r,i,o=gc(e,t,n),s=o.definitionMap,a=o.statements;_c(s,e);var u=e.selector&&A.parse(e.selector),l=u&&u[0];if(l){var c=l.getAttrs();c.length&&s.set("attrs",t.getConstLiteral(ft(c.map(function(e){return yt(null!=e?e:void 0)})),!0))}var h=null;if(e.directives.length>0){var f=new P;try{for(var d=p(e.directives),v=d.next();!v.done;v=d.next()){var m=v.value,y=m.expression;f.addSelectables(A.parse(m.selector),y)}}catch(e){r={error:e}}finally{try{v&&!v.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}h=f}var g=e.name,_=g?g+"_Template":null,b=new Set,w=new Set,x=e.changeDetection,E=e.template,S=new ec(t,uc.ROOT_SCOPE,0,g,null,null,_,h,b,e.pipes,w,yn.namespaceHTML,e.relativeContextFilePath,e.i18nUseExternalIds),C=S.buildTemplateFunction(E.nodes,[]),k=S.getNgContentSelectors();if(k&&s.set("ngContentSelectors",k),s.set("consts",yt(S.getConstCount())),s.set("vars",yt(S.getVarCount())),s.set("template",C),b.size){var I=ft(Array.from(b));e.wrapDirectivesAndPipesInClosure&&(I=vt([],[new Je(I)])),s.set("directives",I)}if(w.size){var M=ft(Array.from(w));e.wrapDirectivesAndPipesInClosure&&(M=vt([],[new Je(M)])),s.set("pipes",M)}if(null===e.encapsulation&&(e.encapsulation=T.Emulated),e.styles&&e.styles.length){var O=(e.encapsulation==T.Emulated?function R(e,t,n){var r=new _s;return e.map(function(e){return r.shimCssText(e,t,n)})} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e.styles,"_ngcontent-%COMP%","_nghost-%COMP%"):e.styles).map(function(e){return yt(e)});s.set("styles",ft(O))}else e.encapsulation===T.Emulated&&(e.encapsulation=T.None);return e.encapsulation!==T.Emulated&&s.set("encapsulation",yt(e.encapsulation)),null!==e.animations&&s.set("data",dt([{key:"animation",value:e.animations,quoted:!1}])),null!=x&&x!==N.Default&&s.set("changeDetection",yt(x)),(e.selector||"").replace(/\n/g,""),{expression:pt(yn.defineComponent).callFn([s.toLiteralMap()]),type:Sc(e,yn.ComponentDefWithMeta),statements:a}}(a({},n,Vc(n),{selector:n.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:o,wrapDirectivesAndPipesInClosure:!1,styles:n.styles||[],encapsulation:n.encapsulation,interpolation:i,changeDetection:n.changeDetection,animations:null!=n.animations?new Se(n.animations):null,viewProviders:null!=n.viewProviders?new Se(n.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),r,hc(i)),h=f(r.statements,l.statements);return this.jitExpression(l.expression,e,"ng:///"+n.name+".js",h)},e.prototype.compileBase=function(e,t,n){var r=new qt,i=this.createParseSourceSpan("Base",n.name,"ng:///"+n.name+".js"),o=function s(e,t,n){var r=new Bi;if(e.inputs){var i=e.inputs,o=Object.keys(i).map(function(e){var t=i[e];return{key:e,value:Array.isArray(t)?ft(t.map(function(e){return yt(e)})):yt(t),quoted:!1}});r.set("inputs",dt(o))}if(e.outputs){var s=e.outputs,a=Object.keys(s).map(function(e){return{key:e,value:yt(s[e]),quoted:!1}});r.set("outputs",dt(a))}return e.viewQueries&&e.viewQueries.length>0&&r.set("viewQuery",Cc(e.viewQueries,t)),e.queries&&e.queries.length>0&&r.set("contentQueries",wc(e.queries,t)),e.host&&r.set("hostBindings",Tc(e.host,e.typeSourceSpan,n,t,e.name)),{expression:pt(yn.defineBase).callFn([r.toLiteralMap()]),type:new ce(pt(yn.BaseDef))}}(a({},n,{typeSourceSpan:i,viewQueries:n.viewQueries?n.viewQueries.map(jc):n.viewQueries,queries:n.queries?n.queries.map(jc):n.queries,host:qc(n.propMetadata,i)}),r,hc());return this.jitExpression(o.expression,e,t,r.statements)},e.prototype.createParseSourceSpan=function(e,t,n){return function r(e,t,n){var r=new nr("","in "+e+" "+t+" in "+n);return new rr(new tr(r,-1,-1,-1),new tr(r,-1,-1,-1))} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e,t,n)},e.prototype.jitExpression=function(e,t,n,r){var i=f(r,[new Xe("$def",e,void 0,[ke.Exported])]);return this.jitEvaluator.evaluateStatements(n,i,new _o(t),!0).$def},e}(),Oc=Object.keys({useClass:null})[0],Rc=Object.keys({useFactory:null})[0],Dc=Object.keys({useValue:null})[0],Lc=Object.keys({useExisting:null})[0],Fc=function(e){var t=new Se(e);return{value:t,type:t}};function jc(e){return a({},e,{predicate:Array.isArray(e.predicate)?e.predicate:new Se(e.predicate),read:e.read?new Se(e.read):null,static:e.static})}function Vc(e){var t=Kc(e.inputs||[]),n=Kc(e.outputs||[]),r=e.propMetadata,i={},o={},s=function(e){r.hasOwnProperty(e)&&r[e].forEach(function(t){!function n(e){return"Input"===e.ngMetadataName}(t)?function r(e){return"Output"===e.ngMetadataName}(t)&&(o[e]=t.bindingPropertyName||e):i[e]=t.bindingPropertyName?[t.bindingPropertyName,e]:e})};for(var u in r)s(u);return a({},e,{typeSourceSpan:e.typeSourceSpan,type:new Se(e.type),deps:Uc(e.deps),host:qc(e.propMetadata,e.typeSourceSpan,e.host),inputs:a({},t,i),outputs:a({},n,o),queries:e.queries.map(jc),providers:null!=e.providers?new Se(e.providers):null,viewQueries:e.viewQueries.map(jc)})}function Bc(e,t){return e.hasOwnProperty(t)?new Se(e[t]):void 0}function Hc(e){return{token:null===e.token?new Me(null):e.resolved===Vi.Attribute?new Me(e.token):new Se(e.token),resolved:e.resolved,host:e.host,optional:e.optional,self:e.self,skipSelf:e.skipSelf}}function Uc(e){return null==e?null:e.map(Hc)}function qc(e,t,n){var r=function i(e){var t,n,r={},i={},o={},s={};try{for(var a=p(Object.keys(e)),u=a.next();!u.done;u=a.next()){var l=u.value,c=e[l],h=l.match(Pc);if(null===h)switch(l){case"class":if("string"!=typeof c)throw new Error("Class binding must be string");s.classAttr=c;break;case"style":if("string"!=typeof c)throw new Error("Style binding must be string");s.styleAttr=c;break;default:r[l]="string"==typeof c?yt(c):c}else if(null!=h[1]){if("string"!=typeof c)throw new Error("Property binding must be string");o[h[1]]=c}else if(null!=h[2]){if("string"!=typeof c)throw new Error("Event binding must be string");i[h[2]]=c}}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return{attributes:r,listeners:i,properties:o,specialAttributes:s}}(n||{}),o=function s(e,t){var n=Ac(e),r=hc();return r.createDirectiveHostEventAsts(n,t),r.createBoundHostProperties(n,t),r.errors}(r,t);if(o.length)throw new Error(o.map(function(e){return e.msg}).join("\n"));var a=function(t){e.hasOwnProperty(t)&&e[t].forEach(function(e){!function n(e){return"HostBinding"===e.ngMetadataName}(e)?function i(e){return"HostListener"===e.ngMetadataName}(e)&&(r.listeners[e.eventName||t]=t+"("+(e.args||[]).join(",")+")"):r.properties[e.hostPropertyName||t]=t})};for(var u in e)a(u);return r}function Kc(e){return e.reduce(function(e,t){var n=h(t.split(",").map(function(e){return e.trim()}),2),r=n[0];return e[r]=n[1]||r,e},{})}new Ft("8.1.3"); /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var zc=function zc(e){var t=void 0===e?{}:e,n=t.defaultEncapsulation,r=t.useJit,i=void 0===r||r,o=t.jitDevMode,s=void 0!==o&&o,a=t.missingTranslation,u=void 0===a?null:a,l=t.preserveWhitespaces,c=t.strictInjectionParameters;this.defaultEncapsulation=void 0===n?T.Emulated:n,this.useJit=!!i,this.jitDevMode=!!s,this.missingTranslation=u,this.preserveWhitespaces=Wc(St(l)),this.strictInjectionParameters=!0===c}; /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Wc(e,t){return void 0===t&&(t=!1),null===e?t:e} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var Qc=function(){function e(e,t,n,r){this._resourceLoader=e,this._urlResolver=t,this._htmlParser=n,this._config=r,this._resourceLoaderCache=new Map}return e.prototype.clearCache=function(){this._resourceLoaderCache.clear()},e.prototype.clearCacheFor=function(e){var t=this;if(e.isComponent){var n=e.template;this._resourceLoaderCache.delete(n.templateUrl),n.externalStylesheets.forEach(function(e){t._resourceLoaderCache.delete(e.moduleUrl)})}},e.prototype._fetch=function(e){var t=this._resourceLoaderCache.get(e);return t||(t=this._resourceLoader.get(e),this._resourceLoaderCache.set(e,t)),t},e.prototype.normalizeTemplate=function(e){var t=this;if(Et(e.template)){if(Et(e.templateUrl))throw kt("'"+Rt(e.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof e.template)throw kt("The template specified for component "+Rt(e.componentType)+" is not a string")}else{if(!Et(e.templateUrl))throw kt("No template specified for component "+Rt(e.componentType));if("string"!=typeof e.templateUrl)throw kt("The templateUrl specified for component "+Rt(e.componentType)+" is not a string")}if(Et(e.preserveWhitespaces)&&"boolean"!=typeof e.preserveWhitespaces)throw kt("The preserveWhitespaces option for component "+Rt(e.componentType)+" must be a boolean");return Tt(this._preParseTemplate(e),function(n){return t._normalizeTemplateMetadata(e,n)})},e.prototype._preParseTemplate=function(e){var t,n,r=this;return null!=e.template?(t=e.template,n=e.moduleUrl):(n=this._urlResolver.resolve(e.moduleUrl,e.templateUrl),t=this._fetch(n)),Tt(t,function(t){return r._preparseLoadedTemplate(e,t,n)})},e.prototype._preparseLoadedTemplate=function(e,t,n){var r=!!e.template,i=Ji.fromArray(e.interpolation),o=function s(e,t,n){var r;return r=n.isInline?t.type.reference instanceof Yt?t.type.reference.filePath+"."+t.type.reference.name+".html":rn(e)+"/"+rn(t.type)+".html":n.templateUrl,t.type.reference instanceof Yt?r:function i(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}(r)}({reference:e.ngModuleType},{type:{reference:e.componentType}},{isInline:r,templateUrl:n}),a=this._htmlParser.parse(t,o,{tokenizeExpansionForms:!0,interpolationConfig:i});if(a.errors.length>0)throw kt("Template parse errors:\n"+a.errors.join("\n"));var u=this._normalizeStylesheet(new an({styles:e.styles,moduleUrl:e.moduleUrl})),l=new $c;Js(l,a.rootNodes);var c=this._normalizeStylesheet(new an({styles:l.styles,styleUrls:l.styleUrls,moduleUrl:n}));return{template:t,templateUrl:n,isInline:r,htmlAst:a,styles:u.styles.concat(c.styles),inlineStyleUrls:u.styleUrls.concat(c.styleUrls),styleUrls:this._normalizeStylesheet(new an({styleUrls:e.styleUrls,moduleUrl:e.moduleUrl})).styleUrls,ngContentSelectors:l.ngContentSelectors}},e.prototype._normalizeTemplateMetadata=function(e,t){var n=this;return Tt(this._loadMissingExternalStylesheets(t.styleUrls.concat(t.inlineStyleUrls)),function(r){return n._normalizeLoadedTemplateMetadata(e,t,r)})},e.prototype._normalizeLoadedTemplateMetadata=function(e,t,n){var r=this,i=f(t.styles);this._inlineStyles(t.inlineStyleUrls,n,i);var o=t.styleUrls,s=o.map(function(e){var t=n.get(e),i=f(t.styles);return r._inlineStyles(t.styleUrls,n,i),new an({moduleUrl:e,styles:i})}),a=e.encapsulation;return null==a&&(a=this._config.defaultEncapsulation),a===T.Emulated&&0===i.length&&0===o.length&&(a=T.None),new un({encapsulation:a,template:t.template,templateUrl:t.templateUrl,htmlAst:t.htmlAst,styles:i,styleUrls:o,ngContentSelectors:t.ngContentSelectors,animations:e.animations,interpolation:e.interpolation,isInline:t.isInline,externalStylesheets:s,preserveWhitespaces:Wc(e.preserveWhitespaces,this._config.preserveWhitespaces)})},e.prototype._inlineStyles=function(e,t,n){var r=this;e.forEach(function(e){var i=t.get(e);i.styles.forEach(function(e){return n.push(e)}),r._inlineStyles(i.styleUrls,t,n)})},e.prototype._loadMissingExternalStylesheets=function(e,t){var n,r=this;return void 0===t&&(t=new Map),Tt((n=e.filter(function(e){return!t.has(e)}).map(function(e){return Tt(r._fetch(e),function(n){var i=r._normalizeStylesheet(new an({styles:[n],moduleUrl:e}));return t.set(e,i),r._loadMissingExternalStylesheets(i.styleUrls,t)})})).some(Lt)?Promise.all(n):n,function(e){return t})},e.prototype._normalizeStylesheet=function(e){var t=this,n=e.moduleUrl,r=e.styleUrls.filter(au).map(function(e){return t._urlResolver.resolve(n,e)}),i=e.styles.map(function(e){var i=function o(e,t,n){var r=[],i=n.replace(lu,"").replace(uu,function(){for(var n=[],i=0;i', or 'attr.'.");s["["+t.hostPropertyName+"]"]=e}else s["["+e+"]"]=e}),t[e].filter(function(e){return G.isTypeOf(e)}).forEach(function(t){s["("+t.eventName+")"]=e+"("+(t.args||[]).join(",")+")"});var u=Zc(t[e],function(e){return Gc.some(function(t){return t.isTypeOf(e)})});u&&(a[e]=u)}),this._merge(e,i,o,s,a,n,r)},e.prototype._extractPublicName=function(e){return bt(e,[null,e])[1].trim()},e.prototype._dedupeBindings=function(e){for(var t=new Set,n=new Set,r=[],i=e.length-1;i>=0;i--){var o=e[i],s=this._extractPublicName(o);n.add(s),t.has(s)||(t.add(s),r.push(o))}return r.reverse()},e.prototype._merge=function(e,t,n,r,i,o,s){var u=this._dedupeBindings(e.inputs?e.inputs.concat(t):t),l=this._dedupeBindings(e.outputs?e.outputs.concat(n):n),c=e.host?a({},e.host,r):r,p=e.queries?a({},e.queries,i):i;return K.isTypeOf(e)?K({selector:e.selector,inputs:u,outputs:l,host:c,exportAs:e.exportAs,moduleId:e.moduleId,queries:p,changeDetection:e.changeDetection,providers:e.providers,viewProviders:e.viewProviders,entryComponents:e.entryComponents,template:e.template,templateUrl:e.templateUrl,styles:e.styles,styleUrls:e.styleUrls,encapsulation:e.encapsulation,animations:e.animations,interpolation:e.interpolation,preserveWhitespaces:e.preserveWhitespaces}):B({selector:e.selector,inputs:u,outputs:l,host:c,exportAs:e.exportAs,queries:p,providers:e.providers,guards:o})},e}();function Yc(e){return B.isTypeOf(e)||K.isTypeOf(e)}function Zc(e,t){for(var n=e.length-1;n>=0;n--)if(t(e[n]))return e[n];return null} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var Jc,ep=function(e){function t(t,n){return e.call(this,t,n)||this}return o(t,e),t}(ir),tp=/^i18n:?/,np="|",rp="@@",ip=!1,op=function op(e,t){this.messages=e,this.errors=t}; /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */!function(e){e[e.Extract=0]="Extract",e[e.Merge=1]="Merge"}(Jc||(Jc={}));var sp=function(){function e(e,t){this._implicitTags=e,this._implicitAttrs=t}return e.prototype.extract=function(e,t){var n=this;return this._init(Jc.Extract,t),e.forEach(function(e){return e.visit(n,null)}),this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new op(this._messages,this._errors)},e.prototype.merge=function(e,t,n){this._init(Jc.Merge,n),this._translations=t;var r=new Ys("wrapper",[],e,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new ba(r.children,this._errors)},e.prototype.visitExpansionCase=function(e,t){var n=Js(this,e.expression,t);if(this._mode===Jc.Merge)return new Gs(e.value,n,e.sourceSpan,e.valueSourceSpan,e.expSourceSpan)},e.prototype.visitExpansion=function(e,t){this._mayBeAddBlockChildren(e);var n=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([e]),this._inIcu=!0);var r=Js(this,e.cases,t);return this._mode===Jc.Merge&&(e=new $s(e.switchValue,e.type,r,e.sourceSpan,e.switchValueSourceSpan)),this._inIcu=n,e},e.prototype.visitComment=function(e,t){var n=function r(e){return!!(e instanceof Zs&&e.value&&e.value.startsWith("i18n"))}(e);if(n&&this._isInTranslatableSection)this._reportError(e,"Could not start a block inside a translatable section");else{var i=function o(e){return!!(e instanceof Zs&&e.value&&"/i18n"===e.value)}(e);if(!i||this._inI18nBlock){if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(i){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(e,this._blockChildren),this._inI18nBlock=!1;var s=this._addMessage(this._blockChildren,this._blockMeaningAndDesc);return Js(this,this._translateMessage(e,s))}return void this._reportError(e,"I18N blocks should not cross element boundaries")}}else n&&(!ip&&console&&console.warn&&(ip=!0,console.warn("I18n comments are deprecated, use an element instead ("+e.sourceSpan.start+(e.sourceSpan.details?", "+e.sourceSpan.details:"")+")")),this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=e.value.replace(tp,"").trim(),this._openTranslatableSection(e))}else this._reportError(e,"Trying to close an unopened block")}},e.prototype.visitText=function(e,t){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(e),e},e.prototype.visitElement=function(e,t){var n=this;this._mayBeAddBlockChildren(e),this._depth++;var r=this._inI18nNode,i=this._inImplicitNode,o=[],s=void 0,a=function u(e){return e.attrs.find(function(e){return"i18n"===e.name})||null}(e),l=a?a.value:"",c=this._implicitTags.some(function(t){return e.name===t})&&!this._inIcu&&!this._isInTranslatableSection,p=!i&&c;if(this._inImplicitNode=i||c,this._isInTranslatableSection||this._inIcu)(a||p)&&this._reportError(e,"Could not mark an element as translatable inside a translatable section"),this._mode==Jc.Extract&&Js(this,e.children);else{if(a||p){this._inI18nNode=!0;var h=this._addMessage(e.children,l);s=this._translateMessage(e,h)}if(this._mode==Jc.Extract){var f=a||p;f&&this._openTranslatableSection(e),Js(this,e.children),f&&this._closeTranslatableSection(e,e.children)}}if(this._mode===Jc.Merge&&(s||e.children).forEach(function(e){var r=e.visit(n,t);r&&!n._isInTranslatableSection&&(o=o.concat(r))}),this._visitAttributesOf(e),this._depth--,this._inI18nNode=r,this._inImplicitNode=i,this._mode===Jc.Merge){var d=this._translateAttributes(e);return new Ys(e.name,d,o,e.sourceSpan,e.startSourceSpan,e.endSourceSpan)}return null},e.prototype.visitAttribute=function(e,t){throw new Error("unreachable code")},e.prototype._init=function(e,t){this._mode=e,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=ql(t)},e.prototype._visitAttributesOf=function(e){var t=this,n={},r=this._implicitAttrs[e.name]||[];e.attrs.filter(function(e){return e.name.startsWith("i18n-")}).forEach(function(e){return n[e.name.slice("i18n-".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])})},e.prototype._addMessage=function(e,t){if(0==e.length||1==e.length&&e[0]instanceof Xs&&!e[0].value)return null;var n=ap(t),r=this._createI18nMessage(e,n.meaning,n.description,n.id);return this._messages.push(r),r},e.prototype._translateMessage=function(e,t){if(t&&this._mode===Jc.Merge){var n=this._translations.get(t);if(n)return n;this._reportError(e,'Translation unavailable for message id="'+this._translations.digest(t)+'"')}return[]},e.prototype._translateAttributes=function(e){var t=this,n=e.attrs,r={};n.forEach(function(e){e.name.startsWith("i18n-")&&(r[e.name.slice("i18n-".length)]=ap(e.value))});var i=[];return n.forEach(function(n){if("i18n"!==n.name&&!n.name.startsWith("i18n-"))if(n.value&&""!=n.value&&r.hasOwnProperty(n.name)){var o=r[n.name],s=o.id,a=t._createI18nMessage([n],o.meaning,o.description,s),u=t._translations.get(a);u?0==u.length?i.push(new Xs(n.name,"",n.sourceSpan)):u[0]instanceof Qs?i.push(new Xs(n.name,u[0].value,n.sourceSpan)):t._reportError(e,'Unexpected translation for attribute "'+n.name+'" (id="'+(s||t._translations.digest(a))+'")'):t._reportError(e,'Translation unavailable for attribute "'+n.name+'" (id="'+(s||t._translations.digest(a))+'")')}else i.push(n)}),i},e.prototype._mayBeAddBlockChildren=function(e){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(e)},e.prototype._openTranslatableSection=function(e){this._isInTranslatableSection?this._reportError(e,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(e.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),e.prototype._closeTranslatableSection=function(e,t){if(this._isInTranslatableSection){var n=this._msgCountAtSectionStart;if(1==t.reduce(function(e,t){return e+(t instanceof Zs?0:1)},0))for(var r=this._messages.length-1;r>=n;r--){var i=this._messages[r].nodes;if(!(1==i.length&&i[0]instanceof gr)){this._messages.splice(r,1);break}}this._msgCountAtSectionStart=void 0}else this._reportError(e,"Unexpected section end")},e.prototype._reportError=function(e,t){this._errors.push(new ep(e.sourceSpan,t))},e}();function ap(e){if(!e)return{meaning:"",description:"",id:""};var t=e.indexOf(rp),n=e.indexOf(np),r=h(t>-1?[e.slice(0,t),e.slice(t+2)]:[e,""],2),i=r[0],o=r[1],s=h(n>-1?[i.slice(0,n),i.slice(n+1)]:["",i],2);return{meaning:s[0],description:s[1],id:o}} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var up=new(function(){function e(){this.closedByParent=!1,this.contentType=s.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return e.prototype.requireExtraParent=function(e){return!1},e.prototype.isClosedByChild=function(e){return!1},e}());function lp(e){return up} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var cp=function(e){function t(){return e.call(this,lp)||this}return o(t,e),t.prototype.parse=function(t,n,r){return e.prototype.parse.call(this,t,n,r)},t}(wa),pp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.write=function(e,t){var n=new hp,r=[];e.forEach(function(e){var t,i=[];e.sources.forEach(function(e){var t=new Yr("context-group",{purpose:"location"});t.children.push(new Jr(10),new Yr("context",{"context-type":"sourcefile"},[new Zr(e.filePath)]),new Jr(10),new Yr("context",{"context-type":"linenumber"},[new Zr(""+e.startLine)]),new Jr(8)),i.push(new Jr(8),t)});var o=new Yr("trans-unit",{id:e.id,datatype:"html"});(t=o.children).push.apply(t,f([new Jr(8),new Yr("source",{},n.serialize(e.nodes))],i)),e.description&&o.children.push(new Jr(8),new Yr("note",{priority:"1",from:"description"},[new Zr(e.description)])),e.meaning&&o.children.push(new Jr(8),new Yr("note",{priority:"1",from:"meaning"},[new Zr(e.meaning)])),o.children.push(new Jr(6)),r.push(new Jr(6),o)});var i=new Yr("body",{},f(r,[new Jr(4)])),o=new Yr("file",{"source-language":t||"en",datatype:"plaintext",original:"ng2.template"},[new Jr(4),i,new Jr(2)]),s=new Yr("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new Jr(2),o,new Jr]);return $r([new Gr({version:"1.0",encoding:"UTF-8"}),new Jr,s,new Jr])},t.prototype.load=function(e,t){var n=(new fp).parse(e,t),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new dp;if(Object.keys(i).forEach(function(e){var n=a.convert(i[e],t),r=n.i18nNodes;o.push.apply(o,f(n.errors)),s[e]=r}),o.length)throw new Error("xliff parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},t.prototype.digest=function(e){return Tr(e)},t}(zr),hp=function(){function e(){}return e.prototype.visitText=function(e,t){return[new Zr(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,f(e.visit(n)))}),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new Zr("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(t){r.push.apply(r,f([new Zr(t+" {")],e.cases[t].visit(n),[new Zr("} ")]))}),r.push(new Zr("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=function r(e){switch(e.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+e}} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e.tag);if(e.isVoid)return[new Yr("x",{id:e.startName,ctype:n,"equiv-text":"<"+e.tag+"/>"})];var i=new Yr("x",{id:e.startName,ctype:n,"equiv-text":"<"+e.tag+">"}),o=new Yr("x",{id:e.closeName,ctype:n,"equiv-text":""});return f([i],this.serialize(e.children),[o])},e.prototype.visitPlaceholder=function(e,t){return[new Yr("x",{id:e.name,"equiv-text":"{{"+e.value+"}}"})]},e.prototype.visitIcuPlaceholder=function(e,t){var n="{"+e.value.expression+", "+e.value.type+", "+Object.keys(e.value.cases).map(function(e){return e+" {...}"}).join(" ")+"}";return[new Yr("x",{id:e.name,"equiv-text":n})]},e.prototype.serialize=function(e){var t=this;return[].concat.apply([],f(e.map(function(e){return e.visit(t)})))},e}(),fp=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._unitMlString=null,this._msgIdToHtml={};var n=(new cp).parse(e,t);return this._errors=n.errors,Js(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},e.prototype.visitElement=function(e,t){switch(e.name){case"trans-unit":this._unitMlString=null;var n=e.attrs.find(function(e){return"id"===e.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(e,"Duplicated translations for msg "+r):(Js(this,e.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(e,"Message "+r+" misses a translation"))}else this._addError(e,' misses the "id" attribute');break;case"source":case"seg-source":break;case"target":var i=e.startSourceSpan.start.file.content.slice(e.startSourceSpan.end.offset,e.endSourceSpan.start.offset);this._unitMlString=i;break;case"file":var o=e.attrs.find(function(e){return"target-language"===e.name});o&&(this._locale=o.value),Js(this,e.children,null);break;default:Js(this,e.children,null)}},e.prototype.visitAttribute=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitComment=function(e,t){},e.prototype.visitExpansion=function(e,t){},e.prototype.visitExpansionCase=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new ep(e.sourceSpan,t))},e}(),dp=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new cp).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],f(Js(this,n.rootNodes))),errors:this._errors}},e.prototype.visitText=function(e,t){return new gr(e.value,e.sourceSpan)},e.prototype.visitElement=function(e,t){if("x"===e.name){var n=e.attrs.find(function(e){return"id"===e.name});return n?new xr("",n.value,e.sourceSpan):(this._addError(e,' misses the "id" attribute'),null)}return"mrk"===e.name?[].concat.apply([],f(Js(this,e.children))):(this._addError(e,"Unexpected tag"),null)},e.prototype.visitExpansion=function(e,t){var n={};return Js(this,e.cases).forEach(function(t){n[t.value]=new _r(t.nodes,e.sourceSpan)}),new br(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:Js(this,e.expression)}},e.prototype.visitComment=function(e,t){},e.prototype.visitAttribute=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new ep(e.sourceSpan,t))},e}(),vp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.write=function(e,t){var n=new mp,r=[];e.forEach(function(e){var t=new Yr("unit",{id:e.id}),i=new Yr("notes");(e.description||e.meaning)&&(e.description&&i.children.push(new Jr(8),new Yr("note",{category:"description"},[new Zr(e.description)])),e.meaning&&i.children.push(new Jr(8),new Yr("note",{category:"meaning"},[new Zr(e.meaning)]))),e.sources.forEach(function(e){i.children.push(new Jr(8),new Yr("note",{category:"location"},[new Zr(e.filePath+":"+e.startLine+(e.endLine!==e.startLine?","+e.endLine:""))]))}),i.children.push(new Jr(6)),t.children.push(new Jr(6),i);var o=new Yr("segment");o.children.push(new Jr(8),new Yr("source",{},n.serialize(e.nodes)),new Jr(6)),t.children.push(new Jr(6),o,new Jr(4)),r.push(new Jr(4),t)});var i=new Yr("file",{original:"ng.template",id:"ngi18n"},f(r,[new Jr(2)])),o=new Yr("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:t||"en"},[new Jr(2),i,new Jr]);return $r([new Gr({version:"1.0",encoding:"UTF-8"}),new Jr,o,new Jr])},t.prototype.load=function(e,t){var n=(new yp).parse(e,t),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new gp;if(Object.keys(i).forEach(function(e){var n=a.convert(i[e],t),r=n.i18nNodes;o.push.apply(o,f(n.errors)),s[e]=r}),o.length)throw new Error("xliff2 parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},t.prototype.digest=function(e){return Nr(e)},t}(zr),mp=function(){function e(){}return e.prototype.visitText=function(e,t){return[new Zr(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,f(e.visit(n)))}),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new Zr("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(t){r.push.apply(r,f([new Zr(t+" {")],e.cases[t].visit(n),[new Zr("} ")]))}),r.push(new Zr("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=this,r=function i(e){switch(e.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e.tag);if(e.isVoid)return[new Yr("ph",{id:(this._nextPlaceholderId++).toString(),equiv:e.startName,type:r,disp:"<"+e.tag+"/>"})];var o=new Yr("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:e.startName,equivEnd:e.closeName,type:r,dispStart:"<"+e.tag+">",dispEnd:""}),s=[].concat.apply([],f(e.children.map(function(e){return e.visit(n)})));return s.length?s.forEach(function(e){return o.children.push(e)}):o.children.push(new Zr("")),[o]},e.prototype.visitPlaceholder=function(e,t){var n=(this._nextPlaceholderId++).toString();return[new Yr("ph",{id:n,equiv:e.name,disp:"{{"+e.value+"}}"})]},e.prototype.visitIcuPlaceholder=function(e,t){var n=Object.keys(e.value.cases).map(function(e){return e+" {...}"}).join(" "),r=(this._nextPlaceholderId++).toString();return[new Yr("ph",{id:r,equiv:e.name,disp:"{"+e.value.expression+", "+e.value.type+", "+n+"}"})]},e.prototype.serialize=function(e){var t=this;return this._nextPlaceholderId=0,[].concat.apply([],f(e.map(function(e){return e.visit(t)})))},e}(),yp=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._unitMlString=null,this._msgIdToHtml={};var n=(new cp).parse(e,t);return this._errors=n.errors,Js(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},e.prototype.visitElement=function(e,t){switch(e.name){case"unit":this._unitMlString=null;var n=e.attrs.find(function(e){return"id"===e.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(e,"Duplicated translations for msg "+r):(Js(this,e.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(e,"Message "+r+" misses a translation"))}else this._addError(e,' misses the "id" attribute');break;case"source":break;case"target":var i=e.startSourceSpan.start.file.content.slice(e.startSourceSpan.end.offset,e.endSourceSpan.start.offset);this._unitMlString=i;break;case"xliff":var o=e.attrs.find(function(e){return"trgLang"===e.name});o&&(this._locale=o.value);var s=e.attrs.find(function(e){return"version"===e.name});if(s){var a=s.value;"2.0"!==a?this._addError(e,"The XLIFF file version "+a+" is not compatible with XLIFF 2.0 serializer"):Js(this,e.children,null)}break;default:Js(this,e.children,null)}},e.prototype.visitAttribute=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitComment=function(e,t){},e.prototype.visitExpansion=function(e,t){},e.prototype.visitExpansionCase=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new ep(e.sourceSpan,t))},e}(),gp=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new cp).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],f(Js(this,n.rootNodes))),errors:this._errors}},e.prototype.visitText=function(e,t){return new gr(e.value,e.sourceSpan)},e.prototype.visitElement=function(e,t){var n=this;switch(e.name){case"ph":var r=e.attrs.find(function(e){return"equiv"===e.name});if(r)return[new xr("",r.value,e.sourceSpan)];this._addError(e,' misses the "equiv" attribute');break;case"pc":var i=e.attrs.find(function(e){return"equivStart"===e.name}),o=e.attrs.find(function(e){return"equivEnd"===e.name});if(i){if(o){var s=o.value,a=[];return a.concat.apply(a,f([new xr("",i.value,e.sourceSpan)],e.children.map(function(e){return e.visit(n,null)}),[new xr("",s,e.sourceSpan)]))}this._addError(e,' misses the "equivEnd" attribute')}else this._addError(e,' misses the "equivStart" attribute');break;case"mrk":return[].concat.apply([],f(Js(this,e.children)));default:this._addError(e,"Unexpected tag")}return null},e.prototype.visitExpansion=function(e,t){var n={};return Js(this,e.cases).forEach(function(t){n[t.value]=new _r(t.nodes,e.sourceSpan)}),new br(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:[].concat.apply([],f(Js(this,e.expression)))}},e.prototype.visitComment=function(e,t){},e.prototype.visitAttribute=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new ep(e.sourceSpan,t))},e}(),_p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.write=function(e,t){throw new Error("Unsupported")},t.prototype.load=function(e,t){var n=(new bp).parse(e,t),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new wp;if(Object.keys(i).forEach(function(e){!function n(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var n=r();return Object.defineProperty(e,t,{enumerable:!0,value:n}),n},set:function(e){throw new Error("Could not overwrite an XTB translation")}})}(s,e,function(){var n=a.convert(i[e],t),r=n.i18nNodes,o=n.errors;if(o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return r})}),o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},t.prototype.digest=function(e){return ii(e)},t.prototype.createNameMapper=function(e){return new Wr(e,si)},t}(zr),bp=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._bundleDepth=0,this._msgIdToHtml={};var n=(new cp).parse(e,t);return this._errors=n.errors,Js(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},e.prototype.visitElement=function(e,t){switch(e.name){case"translationbundle":this._bundleDepth++,this._bundleDepth>1&&this._addError(e," elements can not be nested");var n=e.attrs.find(function(e){return"lang"===e.name});n&&(this._locale=n.value),Js(this,e.children,null),this._bundleDepth--;break;case"translation":var r=e.attrs.find(function(e){return"id"===e.name});if(r){var i=r.value;if(this._msgIdToHtml.hasOwnProperty(i))this._addError(e,"Duplicated translations for msg "+i);else{var o=e.startSourceSpan.start.file.content.slice(e.startSourceSpan.end.offset,e.endSourceSpan.start.offset);this._msgIdToHtml[i]=o}}else this._addError(e,' misses the "id" attribute');break;default:this._addError(e,"Unexpected tag")}},e.prototype.visitAttribute=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitComment=function(e,t){},e.prototype.visitExpansion=function(e,t){},e.prototype.visitExpansionCase=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new ep(e.sourceSpan,t))},e}(),wp=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new cp).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:Js(this,n.rootNodes),errors:this._errors}},e.prototype.visitText=function(e,t){return new gr(e.value,e.sourceSpan)},e.prototype.visitExpansion=function(e,t){var n={};return Js(this,e.cases).forEach(function(t){n[t.value]=new _r(t.nodes,e.sourceSpan)}),new br(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:Js(this,e.expression)}},e.prototype.visitElement=function(e,t){if("ph"===e.name){var n=e.attrs.find(function(e){return"name"===e.name});if(n)return new xr("",n.value,e.sourceSpan);this._addError(e,' misses the "name" attribute')}else this._addError(e,"Unexpected tag");return null},e.prototype.visitComment=function(e,t){},e.prototype.visitAttribute=function(e,t){},e.prototype._addError=function(e,t){this._errors.push(new ep(e.sourceSpan,t))},e}(),xp=function(){function e(e,t,n,r,i,o){void 0===e&&(e={}),void 0===i&&(i=U.Warning),this._i18nNodesByMsgId=e,this.digest=n,this.mapperFactory=r,this._i18nToHtml=new Ep(e,t,n,r,i,o)}return e.load=function(t,n,r,i,o){var s=r.load(t,n);return new e(s.i18nNodesByMsgId,s.locale,function(e){return r.digest(e)},function(e){return r.createNameMapper(e)},i,o)},e.prototype.get=function(e){var t=this._i18nToHtml.convert(e);if(t.errors.length)throw new Error(t.errors.join("\n"));return t.nodes},e.prototype.has=function(e){return this.digest(e)in this._i18nNodesByMsgId},e}(),Ep=function(){function e(e,t,n,r,i,o){void 0===e&&(e={}),this._i18nNodesByMsgId=e,this._locale=t,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=i,this._console=o,this._contextStack=[],this._errors=[]}return e.prototype.convert=function(e){this._contextStack.length=0,this._errors.length=0;var t=this._convertToText(e),n=e.nodes[0].sourceSpan.start.file.url,r=(new Sa).parse(t,n,{tokenizeExpansionForms:!0});return{nodes:r.rootNodes,errors:f(this._errors,r.errors)}},e.prototype.visitText=function(e,t){return ti(e.value)},e.prototype.visitContainer=function(e,t){var n=this;return e.children.map(function(e){return e.visit(n)}).join("")},e.prototype.visitIcu=function(e,t){var n=this,r=Object.keys(e.cases).map(function(t){return t+" {"+e.cases[t].visit(n)+"}"});return"{"+(this._srcMsg.placeholders.hasOwnProperty(e.expression)?this._srcMsg.placeholders[e.expression]:e.expression)+", "+e.type+", "+r.join(" ")+"}"},e.prototype.visitPlaceholder=function(e,t){var n=this._mapper(e.name);return this._srcMsg.placeholders.hasOwnProperty(n)?this._srcMsg.placeholders[n]:this._srcMsg.placeholderToMessage.hasOwnProperty(n)?this._convertToText(this._srcMsg.placeholderToMessage[n]):(this._addError(e,'Unknown placeholder "'+e.name+'"'),"")},e.prototype.visitTagPlaceholder=function(e,t){var n=this,r=""+e.tag,i=Object.keys(e.attrs).map(function(t){return t+'="'+e.attrs[t]+'"'}).join(" ");return e.isVoid?"<"+r+" "+i+"/>":"<"+r+" "+i+">"+e.children.map(function(e){return e.visit(n)}).join("")+""},e.prototype.visitIcuPlaceholder=function(e,t){return this._convertToText(this._srcMsg.placeholderToMessage[e.name])},e.prototype._convertToText=function(e){var t,n=this,r=this._digest(e),i=this._mapperFactory?this._mapperFactory(e):null;this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=e,this._i18nNodesByMsgId.hasOwnProperty(r)?(t=this._i18nNodesByMsgId[r],this._mapper=function(e){return i?i.toInternalName(e):e}):(this._missingTranslationStrategy===U.Error?this._addError(e.nodes[0],'Missing translation for message "'+r+'"'+(this._locale?' for locale "'+this._locale+'"':"")):this._console&&this._missingTranslationStrategy===U.Warning&&this._console.warn('Missing translation for message "'+r+'"'+(this._locale?' for locale "'+this._locale+'"':"")),t=e.nodes,this._mapper=function(e){return e});var o=t.map(function(e){return e.visit(n)}).join(""),s=this._contextStack.pop();return this._srcMsg=s.msg,this._mapper=s.mapper,o},e.prototype._addError=function(e,t){this._errors.push(new ep(e.sourceSpan,t))},e}(),Sp=function(){function e(e,t,n,r,i){if(void 0===r&&(r=U.Warning),this._htmlParser=e,t){var o=function s(e){switch(e=(e||"xlf").toLowerCase()){case"xmb":return new ni;case"xtb":return new _p;case"xliff2":case"xlf2":return new vp;case"xliff":case"xlf":default:return new pp}} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(n);this._translationBundle=xp.load(t,"i18n",o,r,i)}else this._translationBundle=new xp({},null,Tr,void 0,r,i)}return e.prototype.parse=function(e,t,n){void 0===n&&(n={});var r=n.interpolationConfig||eo,i=this._htmlParser.parse(e,t,a({interpolationConfig:r},n));return i.errors.length?new ba(i.rootNodes,i.errors):function o(e,t,n,r,i){return new sp(r,i).merge(e,t,n)}(i.rootNodes,this._translationBundle,r,[],{})},e}(),Cp=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,Tp=/\.ngfactory\.|\.ngsummary\./,Np=/\.ngsummary\./,kp=/NgSummary$/; /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Ap(e,t){void 0===t&&(t=!1);var n=Ip(e,t);return n[0]+".ngfactory"+function r(e){return".tsx"===e?".ts":e}(n[1])}function Pp(e){return e.replace(Tp,".")}function Ip(e,t){if(void 0===t&&(t=!1),e.endsWith(".d.ts"))return[e.slice(0,-5),t?".ts":".d.ts"];var n=e.lastIndexOf(".");return-1!==n?[e.substring(0,n),e.substring(n)]:[e,""]}var Mp,Op=/\u0275\d+/;!function(e){e[e.OnInit=0]="OnInit",e[e.OnDestroy=1]="OnDestroy",e[e.DoCheck=2]="DoCheck",e[e.OnChanges=3]="OnChanges",e[e.AfterContentInit=4]="AfterContentInit",e[e.AfterContentChecked=5]="AfterContentChecked",e[e.AfterViewInit=6]="AfterViewInit",e[e.AfterViewChecked=7]="AfterViewChecked"}(Mp||(Mp={}));var Rp=[Mp.OnInit,Mp.OnDestroy,Mp.DoCheck,Mp.OnChanges,Mp.AfterContentInit,Mp.AfterContentChecked,Mp.AfterViewInit,Mp.AfterViewChecked],Dp=function(){function e(e,t,n,r,i,o,s,a,u,l,c,p){this._config=e,this._htmlParser=t,this._ngModuleResolver=n,this._directiveResolver=r,this._pipeResolver=i,this._summaryResolver=o,this._schemaRegistry=s,this._directiveNormalizer=a,this._console=u,this._staticSymbolCache=l,this._reflector=c,this._errorCollector=p,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map,this._shallowModuleCache=new Map}return e.prototype.getReflector=function(){return this._reflector},e.prototype.clearCacheFor=function(e){var t=this._directiveCache.get(e);this._directiveCache.delete(e),this._nonNormalizedDirectiveCache.delete(e),this._summaryCache.delete(e),this._pipeCache.delete(e),this._ngModuleOfTypes.delete(e),this._ngModuleCache.clear(),t&&this._directiveNormalizer.clearCacheFor(t)},e.prototype.clearCache=function(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},e.prototype._createProxyClass=function(e,t){var n=null,r=function(){if(!n)throw new Error("Illegal state: Class "+t+" for type "+Rt(e)+" is not compiled yet!");return n.apply(this,arguments)};return r.setDelegate=function(e){n=e,r.prototype=e.prototype},r.overriddenName=t,r},e.prototype.getGeneratedClass=function(e,t){return e instanceof Yt?this._staticSymbolCache.get(Ap(e.filePath),t):this._createProxyClass(e,t)},e.prototype.getComponentViewClass=function(e){return this.getGeneratedClass(e,function t(e,n){return"View_"+rn({reference:e})+"_"+n}(e,0))},e.prototype.getHostComponentViewClass=function(e){return this.getGeneratedClass(e,function t(e){return"HostView_"+rn({reference:e})}(e))},e.prototype.getHostComponentType=function(e){var t=rn({reference:e})+"_Host";return e instanceof Yt?this._staticSymbolCache.get(e.filePath,t):this._createProxyClass(e,t)},e.prototype.getRendererType=function(e){return e instanceof Yt?this._staticSymbolCache.get(Ap(e.filePath),function t(e){return"RenderType_"+rn({reference:e})}(e)):{}},e.prototype.getComponentFactory=function(e,t,n,r){if(t instanceof Yt)return this._staticSymbolCache.get(Ap(t.filePath),function i(e){return rn({reference:e})+"NgFactory"}(t));var o=this.getHostComponentViewClass(t);return this._reflector.resolveExternalReference($t.createComponentFactory)(e,t,o,n,r,[])},e.prototype.initComponentFactory=function(e,t){var n;e instanceof Yt||(n=e.ngContentSelectors).push.apply(n,f(t))},e.prototype._loadSummary=function(e,t){var n=this._summaryCache.get(e);if(!n){var r=this._summaryResolver.resolveSummary(e);this._summaryCache.set(e,(n=r?r.type:null)||null)}return n&&n.summaryKind===t?n:null},e.prototype.getHostComponentMetadata=function(e,t){var n=this.getHostComponentType(e.type.reference);t||(t=this.getHostComponentViewClass(n));var r=A.parse(e.selector)[0].getMatchingElementTemplate(),i=this._htmlParser.parse(r,"");return ln.create({isHost:!0,type:{reference:n,diDeps:[],lifecycleHooks:[]},template:new un({encapsulation:T.None,template:r,templateUrl:"",htmlAst:i,styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null,preserveWhitespaces:!1}),exportAs:null,changeDetection:N.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],guards:{},viewQueries:[],componentViewType:t,rendererType:{id:"__Host__",encapsulation:T.None,styles:[],data:{}},entryComponents:[],componentFactory:null})},e.prototype.loadDirectiveMetadata=function(e,t,n){var r=this;if(this._directiveCache.has(t))return null;t=Dt(t);var i=this.getNonNormalizedDirectiveMetadata(t),o=i.metadata,s=function(e){var n=new ln({isHost:!1,type:o.type,isComponent:o.isComponent,selector:o.selector,exportAs:o.exportAs,changeDetection:o.changeDetection,inputs:o.inputs,outputs:o.outputs,hostListeners:o.hostListeners,hostProperties:o.hostProperties,hostAttributes:o.hostAttributes,providers:o.providers,viewProviders:o.viewProviders,queries:o.queries,guards:o.guards,viewQueries:o.viewQueries,entryComponents:o.entryComponents,componentViewType:o.componentViewType,rendererType:o.rendererType,componentFactory:o.componentFactory,template:e});return e&&r.initComponentFactory(o.componentFactory,e.ngContentSelectors),r._directiveCache.set(t,n),r._summaryCache.set(t,n.toSummary()),null};if(o.isComponent){var a=o.template,u=this._directiveNormalizer.normalizeTemplate({ngModuleType:e,componentType:t,moduleUrl:this._reflector.componentModuleUrl(t,i.annotation),encapsulation:a.encapsulation,template:a.template,templateUrl:a.templateUrl,styles:a.styles,styleUrls:a.styleUrls,animations:a.animations,interpolation:a.interpolation,preserveWhitespaces:a.preserveWhitespaces});return Lt(u)&&n?(this._reportError(function l(e){var t=Error("Can't compile synchronously as "+Rt(e)+" is still being loaded!");return t.ngComponentType=e,t} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(t),t),null):Tt(u,s)}return s(null),null},e.prototype.getNonNormalizedDirectiveMetadata=function(e){var t=this;if(!(e=Dt(e)))return null;var n=this._nonNormalizedDirectiveCache.get(e);if(n)return n;var r=this._directiveResolver.resolve(e,!1);if(!r)return null;var i=void 0;if(K.isTypeOf(r)){Xi("styles",(s=r).styles),Xi("styleUrls",s.styleUrls),Zi("interpolation",s.interpolation);var o=s.animations;i=new un({encapsulation:St(s.encapsulation),template:St(s.template),templateUrl:St(s.templateUrl),htmlAst:null,styles:s.styles||[],styleUrls:s.styleUrls||[],animations:o||[],interpolation:St(s.interpolation),isInline:!!s.template,externalStylesheets:[],ngContentSelectors:[],preserveWhitespaces:St(r.preserveWhitespaces)})}var s,a=null,u=[],l=[],c=r.selector;K.isTypeOf(r)?(a=(s=r).changeDetection,s.viewProviders&&(u=this._getProvidersMetadata(s.viewProviders,l,'viewProviders for "'+Vp(e)+'"',[],e)),s.entryComponents&&(l=Lp(s.entryComponents).map(function(e){return t._getEntryComponentMetadata(e)}).concat(l)),c||(c=this._schemaRegistry.getDefaultComponentElementName())):c||(this._reportError(kt("Directive "+Vp(e)+" has no selector, please add it!"),e),c="error");var p=[];null!=r.providers&&(p=this._getProvidersMetadata(r.providers,l,'providers for "'+Vp(e)+'"',[],e));var h=[],f=[];null!=r.queries&&(h=this._getQueriesMetadata(r.queries,!1,e),f=this._getQueriesMetadata(r.queries,!0,e));var d=ln.create({isHost:!1,selector:c,exportAs:St(r.exportAs),isComponent:!!i,type:this._getTypeMetadata(e),template:i,changeDetection:a,inputs:r.inputs||[],outputs:r.outputs||[],host:r.host||{},providers:p||[],viewProviders:u||[],queries:h||[],guards:r.guards||{},viewQueries:f||[],entryComponents:l,componentViewType:i?this.getComponentViewClass(e):null,rendererType:i?this.getRendererType(e):null,componentFactory:null});return i&&(d.componentFactory=this.getComponentFactory(c,e,d.inputs,d.outputs)),this._nonNormalizedDirectiveCache.set(e,n={metadata:d,annotation:r}),n},e.prototype.getDirectiveMetadata=function(e){var t=this._directiveCache.get(e);return t||this._reportError(kt("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+Vp(e)+"."),e),t},e.prototype.getDirectiveSummary=function(e){var t=this._loadSummary(e,tn.Directive);return t||this._reportError(kt("Illegal state: Could not load the summary for directive "+Vp(e)+"."),e),t},e.prototype.isDirective=function(e){return!!this._loadSummary(e,tn.Directive)||this._directiveResolver.isDirective(e)},e.prototype.isPipe=function(e){return!!this._loadSummary(e,tn.Pipe)||this._pipeResolver.isPipe(e)},e.prototype.isNgModule=function(e){return!!this._loadSummary(e,tn.NgModule)||this._ngModuleResolver.isNgModule(e)},e.prototype.getNgModuleSummary=function(e,t){void 0===t&&(t=null);var n=this._loadSummary(e,tn.NgModule);if(!n){var r=this.getNgModuleMetadata(e,!1,t);(n=r?r.toSummary():null)&&this._summaryCache.set(e,n)}return n},e.prototype.loadNgModuleDirectiveAndPipeMetadata=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=this.getNgModuleMetadata(e,n),o=[];return i&&(i.declaredDirectives.forEach(function(n){var i=r.loadDirectiveMetadata(e,n.reference,t);i&&o.push(i)}),i.declaredPipes.forEach(function(e){return r._loadPipeMetadata(e.reference)})),Promise.all(o)},e.prototype.getShallowModuleMetadata=function(e){var t=this._shallowModuleCache.get(e);if(t)return t;var n=Zc(this._reflector.shallowAnnotations(e),X.isTypeOf);return t={type:this._getTypeMetadata(e),rawExports:n.exports,rawImports:n.imports,rawProviders:n.providers},this._shallowModuleCache.set(e,t),t},e.prototype.getNgModuleMetadata=function(e,t,n){var r=this;void 0===t&&(t=!0),void 0===n&&(n=null),e=Dt(e);var i=this._ngModuleCache.get(e);if(i)return i;var o=this._ngModuleResolver.resolve(e,t);if(!o)return null;var s=[],a=[],u=[],l=[],c=[],p=[],h=[],d=[],v=[];o.imports&&Lp(o.imports).forEach(function(t){var i=void 0;if(Fp(t)?i=t:t&&t.ngModule&&(i=t.ngModule,t.providers&&p.push.apply(p,f(r._getProvidersMetadata(t.providers,h,"provider for the NgModule '"+Vp(i)+"'",[],t)))),i){if(!r._checkSelfImport(e,i))if(n||(n=new Set),n.has(i))r._reportError(kt(r._getTypeDescriptor(i)+" '"+Vp(t)+"' is imported recursively by the module '"+Vp(e)+"'."),e);else{n.add(i);var o=r.getNgModuleSummary(i,n);n.delete(i),o?l.push(o):r._reportError(kt("Unexpected "+r._getTypeDescriptor(t)+" '"+Vp(t)+"' imported by the module '"+Vp(e)+"'. Please add a @NgModule annotation."),e)}}else r._reportError(kt("Unexpected value '"+Vp(t)+"' imported by the module '"+Vp(e)+"'"),e)}),o.exports&&Lp(o.exports).forEach(function(t){if(Fp(t))if(n||(n=new Set),n.has(t))r._reportError(kt(r._getTypeDescriptor(t)+" '"+Rt(t)+"' is exported recursively by the module '"+Vp(e)+"'"),e);else{n.add(t);var i=r.getNgModuleSummary(t,n);n.delete(t),i?c.push(i):a.push(r._getIdentifierMetadata(t))}else r._reportError(kt("Unexpected value '"+Vp(t)+"' exported by the module '"+Vp(e)+"'"),e)});var m=this._getTransitiveNgModuleMetadata(l,c);o.declarations&&Lp(o.declarations).forEach(function(t){if(Fp(t)){var n=r._getIdentifierMetadata(t);if(r.isDirective(t))m.addDirective(n),s.push(n),r._addTypeToModule(t,e);else{if(!r.isPipe(t))return void r._reportError(kt("Unexpected "+r._getTypeDescriptor(t)+" '"+Vp(t)+"' declared by the module '"+Vp(e)+"'. Please add a @Pipe/@Directive/@Component annotation."),e);m.addPipe(n),m.pipes.push(n),u.push(n),r._addTypeToModule(t,e)}}else r._reportError(kt("Unexpected value '"+Vp(t)+"' declared by the module '"+Vp(e)+"'"),e)});var y=[],g=[];return a.forEach(function(t){if(m.directivesSet.has(t.reference))y.push(t),m.addExportedDirective(t);else{if(!m.pipesSet.has(t.reference))return void r._reportError(kt("Can't export "+r._getTypeDescriptor(t.reference)+" "+Vp(t.reference)+" from "+Vp(e)+" as it was neither declared nor imported!"),e);g.push(t),m.addExportedPipe(t)}}),o.providers&&p.push.apply(p,f(this._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+Vp(e)+"'",[],e))),o.entryComponents&&h.push.apply(h,f(Lp(o.entryComponents).map(function(e){return r._getEntryComponentMetadata(e)}))),o.bootstrap&&Lp(o.bootstrap).forEach(function(t){Fp(t)?d.push(r._getIdentifierMetadata(t)):r._reportError(kt("Unexpected value '"+Vp(t)+"' used in the bootstrap property of module '"+Vp(e)+"'"),e)}),h.push.apply(h,f(d.map(function(e){return r._getEntryComponentMetadata(e.reference)}))),o.schemas&&v.push.apply(v,f(Lp(o.schemas))),i=new pn({type:this._getTypeMetadata(e),providers:p,entryComponents:h,bootstrapComponents:d,schemas:v,declaredDirectives:s,exportedDirectives:y,declaredPipes:u,exportedPipes:g,importedModules:l,exportedModules:c,transitiveModule:m,id:o.id||null}),h.forEach(function(e){return m.addEntryComponent(e)}),p.forEach(function(e){return m.addProvider(e,i.type)}),m.addModule(i.type),this._ngModuleCache.set(e,i),i},e.prototype._checkSelfImport=function(e,t){return e===t&&(this._reportError(kt("'"+Vp(e)+"' module can't import itself"),e),!0)},e.prototype._getTypeDescriptor=function(e){if(Fp(e)){if(this.isDirective(e))return"directive";if(this.isPipe(e))return"pipe";if(this.isNgModule(e))return"module"}return e.provide?"provider":"value"},e.prototype._addTypeToModule=function(e,t){var n=this._ngModuleOfTypes.get(e);n&&n!==t?this._reportError(kt("Type "+Vp(e)+" is part of the declarations of 2 modules: "+Vp(n)+" and "+Vp(t)+"! Please consider moving "+Vp(e)+" to a higher module that imports "+Vp(n)+" and "+Vp(t)+". You can also create a new NgModule that exports and includes "+Vp(e)+" then import that NgModule in "+Vp(n)+" and "+Vp(t)+"."),t):this._ngModuleOfTypes.set(e,t)},e.prototype._getTransitiveNgModuleMetadata=function(e,t){var n=new hn,r=new Map;return e.concat(t).forEach(function(e){e.modules.forEach(function(e){return n.addModule(e)}),e.entryComponents.forEach(function(e){return n.addEntryComponent(e)});var t=new Set;e.providers.forEach(function(e){var i=sn(e.provider.token),o=r.get(i);o||(o=new Set,r.set(i,o));var s=e.module.reference;!t.has(i)&&o.has(s)||(o.add(s),t.add(i),n.addProvider(e.provider,e.module))})}),t.forEach(function(e){e.exportedDirectives.forEach(function(e){return n.addExportedDirective(e)}),e.exportedPipes.forEach(function(e){return n.addExportedPipe(e)})}),e.forEach(function(e){e.exportedDirectives.forEach(function(e){return n.addDirective(e)}),e.exportedPipes.forEach(function(e){return n.addPipe(e)})}),n},e.prototype._getIdentifierMetadata=function(e){return{reference:e=Dt(e)}},e.prototype.isInjectable=function(e){return this._reflector.tryAnnotations(e).some(function(e){return Y.isTypeOf(e)})},e.prototype.getInjectableSummary=function(e){return{summaryKind:tn.Injectable,type:this._getTypeMetadata(e,null,!1)}},e.prototype.getInjectableMetadata=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=!0);var r=this._loadSummary(e,tn.Injectable),i=r?r.type:this._getTypeMetadata(e,t,n),o=this._reflector.annotations(e).filter(function(e){return Y.isTypeOf(e)});if(0===o.length)return null;var s=o[o.length-1];return{symbol:e,type:i,providedIn:s.providedIn,useValue:s.useValue,useClass:s.useClass,useExisting:s.useExisting,useFactory:s.useFactory,deps:s.deps}},e.prototype._getTypeMetadata=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=!0);var r,i,o=this._getIdentifierMetadata(e);return{reference:o.reference,diDeps:this._getDependenciesMetadata(o.reference,t,n),lifecycleHooks:(r=this._reflector,i=o.reference,Rp.filter(function(e){return function t(e,n,r){return e.hasLifecycleHook(r,function i(e){switch(e){case Mp.OnInit:return"ngOnInit";case Mp.OnDestroy:return"ngOnDestroy";case Mp.DoCheck:return"ngDoCheck";case Mp.OnChanges:return"ngOnChanges";case Mp.AfterContentInit:return"ngAfterContentInit";case Mp.AfterContentChecked:return"ngAfterContentChecked";case Mp.AfterViewInit:return"ngAfterViewInit";case Mp.AfterViewChecked:return"ngAfterViewChecked";default:throw new Error("unexpected "+e)}} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(n))}(r,e,i)}))}},e.prototype._getFactoryMetadata=function(e,t){return void 0===t&&(t=null),{reference:e=Dt(e),diDeps:this._getDependenciesMetadata(e,t)}},e.prototype.getPipeMetadata=function(e){var t=this._pipeCache.get(e);return t||this._reportError(kt("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+Vp(e)+"."),e),t||null},e.prototype.getPipeSummary=function(e){var t=this._loadSummary(e,tn.Pipe);return t||this._reportError(kt("Illegal state: Could not load the summary for pipe "+Vp(e)+"."),e),t},e.prototype.getOrLoadPipeMetadata=function(e){var t=this._pipeCache.get(e);return t||(t=this._loadPipeMetadata(e)),t},e.prototype._loadPipeMetadata=function(e){e=Dt(e);var t=this._pipeResolver.resolve(e),n=new cn({type:this._getTypeMetadata(e),name:t.name,pure:!!t.pure});return this._pipeCache.set(e,n),this._summaryCache.set(e,n.toSummary()),n},e.prototype._getDependenciesMetadata=function(e,t,n){var r=this;void 0===n&&(n=!0);var i=!1,o=(t||this._reflector.parameters(e)||[]).map(function(e){var t=!1,n=!1,o=!1,s=!1,a=!1,u=null;return Array.isArray(e)?e.forEach(function(e){te.isTypeOf(e)?n=!0:J.isTypeOf(e)?o=!0:ee.isTypeOf(e)?s=!0:Z.isTypeOf(e)?a=!0:D.isTypeOf(e)?(t=!0,u=e.attributeName):O.isTypeOf(e)?u=e.token:R.isTypeOf(e)||e instanceof Yt?u=e:Fp(e)&&null==u&&(u=e)}):u=e,null==u?(i=!0,{}):{isAttribute:t,isHost:n,isSelf:o,isSkipSelf:s,isOptional:a,token:r._getTokenMetadata(u)}});if(i){var s=o.map(function(e){return e.token?Vp(e.token):"?"}).join(", "),a="Can't resolve all parameters for "+Vp(e)+": ("+s+").";n||this._config.strictInjectionParameters?this._reportError(kt(a),e):this._console.warn("Warning: "+a+" This will become an error in Angular v6.x")}return o},e.prototype._getTokenMetadata=function(e){return"string"==typeof(e=Dt(e))?{value:e}:{identifier:{reference:e}}},e.prototype._getProvidersMetadata=function(e,t,n,r,i){var o=this;return void 0===r&&(r=[]),e.forEach(function(s,a){if(Array.isArray(s))o._getProvidersMetadata(s,t,n,r);else{var u=void 0;if((s=Dt(s))&&"object"==typeof s&&s.hasOwnProperty("provide"))o._validateProvider(s),u=new dn(s.provide,s);else{if(!Fp(s)){if(void 0===s)return void o._reportError(kt("Encountered undefined provider! Usually this means you have a circular dependencies. This might be caused by using 'barrel' index.ts files."));var l=e.reduce(function(e,t,n){return n"),e.value.visitExpression(this,t),t.print(e,")"),null},t.prototype.visitInstantiateExpr=function(e,t){return t.print(e,"new "),this.typeExpression++,e.classExpr.visitExpression(this,t),this.typeExpression--,t.print(e,"("),this.visitAllExpressions(e.args,t,","),t.print(e,")"),null},t.prototype.visitDeclareClassStmt=function(e,t){var n=this;return t.pushClass(e),e.hasModifier(ke.Exported)&&t.print(e,"export "),t.print(e,"class "+e.name),null!=e.parent&&(t.print(e," extends "),this.typeExpression++,e.parent.visitExpression(this,t),this.typeExpression--),t.println(e," {"),t.incIndent(),e.fields.forEach(function(e){return n._visitClassField(e,t)}),null!=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(e,"}"),t.popClass(),null},t.prototype._visitClassField=function(e,t){e.hasModifier(ke.Private)&&t.print(null,"/*private*/ "),e.hasModifier(ke.Static)&&t.print(null,"static "),t.print(null,e.name),this._printColonType(e.type,t),e.initializer&&(t.print(null," = "),e.initializer.visitExpression(this,t)),t.println(null,";")},t.prototype._visitClassGetter=function(e,t){e.hasModifier(ke.Private)&&t.print(null,"private "),t.print(null,"get "+e.name+"()"),this._printColonType(e.type,t),t.println(null," {"),t.incIndent(),this.visitAllStatements(e.body,t),t.decIndent(),t.println(null,"}")},t.prototype._visitClassConstructor=function(e,t){t.print(e,"constructor("),this._visitParams(e.constructorMethod.params,t),t.println(e,") {"),t.incIndent(),this.visitAllStatements(e.constructorMethod.body,t),t.decIndent(),t.println(e,"}")},t.prototype._visitClassMethod=function(e,t){e.hasModifier(ke.Private)&&t.print(null,"private "),t.print(null,e.name+"("),this._visitParams(e.params,t),t.print(null,")"),this._printColonType(e.type,t,"void"),t.println(null," {"),t.incIndent(),this.visitAllStatements(e.body,t),t.decIndent(),t.println(null,"}")},t.prototype.visitFunctionExpr=function(e,t){return e.name&&(t.print(e,"function "),t.print(e,e.name)),t.print(e,"("),this._visitParams(e.params,t),t.print(e,")"),this._printColonType(e.type,t,"void"),e.name||t.print(e," => "),t.println(e,"{"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.print(e,"}"),null},t.prototype.visitDeclareFunctionStmt=function(e,t){return e.hasModifier(ke.Exported)&&t.print(e,"export "),t.print(e,"function "+e.name+"("),this._visitParams(e.params,t),t.print(e,")"),this._printColonType(e.type,t,"void"),t.println(e," {"),t.incIndent(),this.visitAllStatements(e.statements,t),t.decIndent(),t.println(e,"}"),null},t.prototype.visitTryCatchStmt=function(e,t){t.println(e,"try {"),t.incIndent(),this.visitAllStatements(e.bodyStmts,t),t.decIndent(),t.println(e,"} catch ("+uo.name+") {"),t.incIndent();var n=[lo.set(uo.prop("stack",null)).toDeclStmt(null,[ke.Final])].concat(e.catchStmts);return this.visitAllStatements(n,t),t.decIndent(),t.println(e,"}"),null},t.prototype.visitBuiltinType=function(e,t){var n;switch(e.name){case se.Bool:n="boolean";break;case se.Dynamic:n="any";break;case se.Function:n="Function";break;case se.Number:case se.Int:n="number";break;case se.String:n="string";break;case se.None:n="never";break;default:throw new Error("Unsupported builtin type "+e.name)}return t.print(null,n),null},t.prototype.visitExpressionType=function(e,t){var n=this;return e.value.visitExpression(this,t),null!==e.typeParams&&(t.print(null,"<"),this.visitAllObjects(function(e){return n.visitType(e,t)},e.typeParams,t,","),t.print(null,">")),null},t.prototype.visitArrayType=function(e,t){return this.visitType(e.of,t),t.print(null,"[]"),null},t.prototype.visitMapType=function(e,t){return t.print(null,"{[key: string]:"),this.visitType(e.valueType,t),t.print(null,"}"),null},t.prototype.getBuiltinMethodName=function(e){var t;switch(e){case we.ConcatArray:t="concat";break;case we.SubscribeObservable:t="subscribe";break;case we.Bind:t="bind";break;default:throw new Error("Unknown builtin method: "+e)}return t},t.prototype._visitParams=function(e,t){var n=this;this.visitAllObjects(function(e){t.print(null,e.name),n._printColonType(e.type,t)},e,t,",")},t.prototype._visitIdentifier=function(e,t,n){var r=this,i=e.name,o=e.moduleName;if(this.referenceFilter&&this.referenceFilter(e))n.print(null,"(null as any)");else{if(o&&(!this.importFilter||!this.importFilter(e))){var s=this.importsWithPrefixes.get(o);null==s&&this.importsWithPrefixes.set(o,s="i"+this.importsWithPrefixes.size),n.print(null,s+".")}n.print(null,i),this.typeExpression>0&&(t||[]).length>0&&(n.print(null,"<"),this.visitAllObjects(function(e){return e.visitType(r,n)},t,n,","),n.print(null,">"))}},t.prototype._printColonType=function(e,t,n){e!==fe&&(t.print(null,":"),this.visitType(e,t,n))}}(ho),function(){function e(e){this._reflector=e}return e.prototype.isPipe=function(e){var t=this._reflector.annotations(Dt(e));return t&&t.some(z.isTypeOf)},e.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=this._reflector.annotations(Dt(e));if(n){var r=Zc(n,z.isTypeOf);if(r)return r}if(t)throw new Error("No Pipe decorator found on "+Rt(e));return null},e}()),Up=(ct("_l"),ct("_v"),ct("_ck"),ct("_co"),ct("en"),ct("ad"),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}o(t,e),t.prototype.convert=function(e,t){var n=this;return t?e.map(function(e){return e.visit(n,t)}):e},t.prototype.visitTagPlaceholder=function(e,t){var n=this,r=t.toPublicName(e.startName),i=e.closeName?t.toPublicName(e.closeName):e.closeName,o=e.children.map(function(e){return e.visit(n,t)});return new wr(e.tag,e.attrs,r,i,o,e.isVoid,e.sourceSpan)},t.prototype.visitPlaceholder=function(e,t){return new xr(e.value,t.toPublicName(e.name),e.sourceSpan)},t.prototype.visitIcuPlaceholder=function(e,t){return new Er(e.value,t.toPublicName(e.name),e.sourceSpan)}}(Sr),/^(?!.*\.d\.ts$).*\.ts$/),qp=function qp(e,t){this.symbol=e,this.metadata=t},Kp=function(){function e(e,t,n,r){this.host=e,this.staticSymbolCache=t,this.summaryResolver=n,this.errorRecorder=r,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set,this.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map,this.knownFileNameToModuleNames=new Map}return e.prototype.resolveSymbol=function(e){return e.members.length>0?this._resolveSymbolMembers(e):this._resolveSymbolFromSummary(e)||this.resolvedSymbols.get(e)||(this._createSymbolsOf(e.filePath),this.resolvedSymbols.get(e))},e.prototype.getImportAs=function(e,t){if(void 0===t&&(t=!0),e.members.length){var n=this.getStaticSymbol(e.filePath,e.name);return(o=this.getImportAs(n,t))?this.getStaticSymbol(o.filePath,o.name,e.members):null}var r=function i(e){return e.replace(Np,".")}(e.filePath);if(r!==e.filePath){var o,s=function a(e){return e.replace(kp,"")}(e.name);return n=this.getStaticSymbol(r,s,e.members),(o=this.getImportAs(n,t))?this.getStaticSymbol(function u(e,t){void 0===t&&(t=!1);var n=Ip(Pp(e),t);return n[0]+".ngsummary"+n[1]}(o.filePath),function l(e){return e+"NgSummary"}(o.name),n.members):null}var c=t&&this.summaryResolver.getImportAs(e)||null;return c||(c=this.importAs.get(e)),c},e.prototype.getResourcePath=function(e){return this.symbolResourcePaths.get(e)||e.filePath},e.prototype.getTypeArity=function(e){if(function t(e){return Tp.test(e)}(e.filePath))return null;for(var n=Wp(this.resolveSymbol(e));n&&n.metadata instanceof Yt;)n=Wp(this.resolveSymbol(n.metadata));return n&&n.metadata&&n.metadata.arity||null},e.prototype.getKnownModuleName=function(e){return this.knownFileNameToModuleNames.get(e)||null},e.prototype.recordImportAs=function(e,t){e.assertNoMembers(),t.assertNoMembers(),this.importAs.set(e,t)},e.prototype.recordModuleNameForFileName=function(e,t){this.knownFileNameToModuleNames.set(e,t)},e.prototype.invalidateFile=function(e){var t,n;this.metadataCache.delete(e),this.resolvedFilePaths.delete(e);var r=this.symbolFromFile.get(e);if(r){this.symbolFromFile.delete(e);try{for(var i=p(r),o=i.next();!o.done;o=i.next()){var s=o.value;this.resolvedSymbols.delete(s),this.importAs.delete(s),this.symbolResourcePaths.delete(s)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}},e.prototype.ignoreErrorsFor=function(e){var t=this.errorRecorder;this.errorRecorder=function(){};try{return e()}finally{this.errorRecorder=t}},e.prototype._resolveSymbolMembers=function(e){var t=e.members,n=this.resolveSymbol(this.getStaticSymbol(e.filePath,e.name));if(!n)return null;var r=Wp(n.metadata);if(r instanceof Yt)return new qp(e,this.getStaticSymbol(r.filePath,r.name,t));if(!r||"class"!==r.__symbolic){for(var i=r,o=0;o=0?{__symbolic:"reference",name:d}:n.has(d)?c.getStaticSymbol(t,d):void 0},i}(Ct)),[]),h=Wp(p);return h instanceof Yt?this.createExport(e,h):new qp(e,p)},e.prototype.createExport=function(e,t){return e.assertNoMembers(),t.assertNoMembers(),this.summaryResolver.isLibraryFile(e.filePath)&&this.summaryResolver.isLibraryFile(t.filePath)&&this.importAs.set(t,this.getImportAs(e)||e),new qp(e,t)},e.prototype.reportError=function(e,t,n){if(!this.errorRecorder)throw e;this.errorRecorder(e,t&&t.filePath||n)},e.prototype.getModuleMetadata=function(e){var t=this.metadataCache.get(e);if(!t){var n=this.host.getMetadataFor(e);if(n){var r=-1;n.forEach(function(e){e&&e.version>r&&(r=e.version,t=e)})}if(t||(t={__symbolic:"module",version:4,module:e,metadata:{}}),4!=t.version){var i=2==t.version?"Unsupported metadata version "+t.version+" for module "+e+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+this.host.getOutputName(e)+", found version "+t.version+", expected 4";this.reportError(new Error(i))}this.metadataCache.set(e,t)}return t},e.prototype.getSymbolByModule=function(e,t,n){var r=this.resolveModule(e,n);return r?this.getStaticSymbol(r,t):(this.reportError(new Error("Could not resolve module "+e+(n?" relative to "+this.host.getOutputName(n):""))),this.getStaticSymbol("ERROR:"+e,t))},e.prototype.resolveModule=function(e,t){try{return this.host.moduleNameToFileName(e,t)}catch(n){console.error("Could not resolve module '"+e+"' relative to file "+t),this.reportError(n,void 0,t)}return null},e}(); /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function zp(e){return e.startsWith("___")?e.substr(1):e}function Wp(e){return e&&"resolved"===e.__symbolic?e.symbol:e}!function(e){function t(t,n,r){var i=e.call(this)||this;return i.symbolResolver=t,i.summaryResolver=n,i.srcFileName=r,i.symbols=[],i.indexBySymbol=new Map,i.reexportedBy=new Map,i.processedSummaryBySymbol=new Map,i.processedSummaries=[],i.unprocessedSymbolSummariesBySymbol=new Map,i.moduleName=t.getKnownModuleName(r),i}o(t,e),t.prototype.addSummary=function(e){var t=this,n=this.unprocessedSymbolSummariesBySymbol.get(e.symbol),r=this.processedSummaryBySymbol.get(e.symbol);if(n||(this.unprocessedSymbolSummariesBySymbol.set(e.symbol,n={symbol:e.symbol,metadata:void 0}),r={symbol:this.processValue(e.symbol,0)},this.processedSummaries.push(r),this.processedSummaryBySymbol.set(e.symbol,r)),!n.metadata&&e.metadata){var i=e.metadata||{};if("class"===i.__symbolic){var o={};Object.keys(i).forEach(function(e){"decorators"!==e&&(o[e]=i[e])}),i=o}else $p(i)&&(function s(e){return $p(e)&&Wp(e.expression)instanceof Yt}(i)||function a(e){return $p(e)&&e.expression&&"select"===e.expression.__symbolic&&Wp(e.expression.expression)instanceof Yt} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(i)||(i={__symbolic:"error",message:"Complex function calls are not supported."}));if(n.metadata=i,r.metadata=this.processValue(i,1),i instanceof Yt&&this.summaryResolver.isLibraryFile(i.filePath)){var u=this.symbols[this.indexBySymbol.get(i)];(function l(e){return Op.test(e)} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */)(u.name)||this.reexportedBy.set(u,e.symbol)}}if(!n.type&&e.type&&(n.type=e.type,r.type=this.processValue(e.type,0),e.type.summaryKind===tn.NgModule)){var c=e.type;c.exportedDirectives.concat(c.exportedPipes).forEach(function(e){var n=e.reference;if(t.summaryResolver.isLibraryFile(n.filePath)&&!t.unprocessedSymbolSummariesBySymbol.has(n)){var r=t.summaryResolver.resolveSummary(n);r&&t.addSummary(r)}})}},t.prototype.serialize=function(e){var t=this,n=[];return{json:JSON.stringify({moduleName:this.moduleName,summaries:this.processedSummaries,symbols:this.symbols.map(function(r,i){r.assertNoMembers();var o=void 0;if(t.summaryResolver.isLibraryFile(r.filePath)){var s=t.reexportedBy.get(r);if(s)o=t.indexBySymbol.get(s);else if(e){var a=t.unprocessedSymbolSummariesBySymbol.get(r);a&&a.metadata&&"interface"===a.metadata.__symbolic||n.push({symbol:r,exportAs:o=r.name+"_"+i})}}return{__symbol:i,name:r.name,filePath:t.summaryResolver.toSummaryFileName(r.filePath,t.srcFileName),importAs:o}})}),exportAs:n}},t.prototype.processValue=function(e,t){return xt(e,this,t)},t.prototype.visitOther=function(e,t){if(e instanceof Yt){var n=this.symbolResolver.getStaticSymbol(e.filePath,e.name);return{__symbol:this.visitStaticSymbol(n,t),members:e.members}}},t.prototype.visitStringMap=function(t,n){return"resolved"===t.__symbolic?xt(t.symbol,this,n):("error"===t.__symbolic&&(delete t.line,delete t.character),e.prototype.visitStringMap.call(this,t,n))},t.prototype.visitStaticSymbol=function(e,t){var n=this.indexBySymbol.get(e),r=null;if(1&t&&this.summaryResolver.isLibraryFile(e.filePath)){if(this.unprocessedSymbolSummariesBySymbol.has(e))return n;(r=this.loadSummary(e))&&r.metadata instanceof Yt&&(n=this.visitStaticSymbol(r.metadata,t),r=null)}else if(null!=n)return n;return null==n&&(n=this.symbols.length,this.symbols.push(e)),this.indexBySymbol.set(e,n),r&&this.addSummary(r),n},t.prototype.loadSummary=function(e){var t=this.summaryResolver.resolveSummary(e);if(!t){var n=this.symbolResolver.resolveSymbol(e);n&&(t={symbol:n.symbol,metadata:n.metadata})}return t}}(Ct);var Qp=function(e){function t(t,n){var r=e.call(this)||this;return r.symbolCache=t,r.summaryResolver=n,r}return o(t,e),t.prototype.deserialize=function(e,t){var n=this,r=JSON.parse(t),i=[];this.symbols=r.symbols.map(function(t){return n.symbolCache.get(n.summaryResolver.fromSummaryFileName(t.filePath,e),t.name)}),r.symbols.forEach(function(t,r){var o=n.symbols[r],s=t.importAs;"number"==typeof s?i.push({symbol:o,importAs:n.symbols[s]}):"string"==typeof s&&i.push({symbol:o,importAs:n.symbolCache.get(Ap(e),s)})});var o=xt(r.summaries,this,null);return{moduleName:r.moduleName,summaries:o,importAs:i}},t.prototype.visitStringMap=function(t,n){if("__symbol"in t){var r=this.symbols[t.__symbol],i=t.members;return i.length?this.symbolCache.get(r.filePath,r.name,i):r}return e.prototype.visitStringMap.call(this,t,n)},t}(Ct);function $p(e){return e&&"call"===e.__symbolic} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var Gp="ngFormattedMessage",Xp="@angular/core",Yp=/^\$.*\$$/,Zp={__symbolic:"ignore"},Jp=new Set(["useValue","useFactory","data","id","loadChildren"]);function eh(e){return e&&"ignore"==e.__symbolic}var th=function(){function e(e,t,n,r,i){var o=this;void 0===n&&(n=[]),void 0===r&&(r=[]),this.summaryResolver=e,this.symbolResolver=t,this.errorRecorder=i,this.annotationCache=new Map,this.shallowAnnotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.staticCache=new Map,this.conversionMap=new Map,this.resolvedExternalReferences=new Map,this.annotationForParentClassWithSummaryKind=new Map,this.initializeConversionMap(),n.forEach(function(e){return o._registerDecoratorOrConstructor(o.getStaticSymbol(e.filePath,e.name),e.ctor)}),r.forEach(function(e){return o._registerFunction(o.getStaticSymbol(e.filePath,e.name),e.fn)}),this.annotationForParentClassWithSummaryKind.set(tn.Directive,[B,K]),this.annotationForParentClassWithSummaryKind.set(tn.Pipe,[z]),this.annotationForParentClassWithSummaryKind.set(tn.NgModule,[X]),this.annotationForParentClassWithSummaryKind.set(tn.Injectable,[Y,z,B,K,X])}return e.prototype.componentModuleUrl=function(e){var t=this.findSymbolDeclaration(e);return this.symbolResolver.getResourcePath(t)},e.prototype.resolveExternalReference=function(e,t){var n=void 0;if(!t){var r=this.resolvedExternalReferences.get(n=e.moduleName+":"+e.name);if(r)return r}var i=this.symbolResolver.getSymbolByModule(e.moduleName,e.name,t),o=this.findSymbolDeclaration(i);return t||(this.symbolResolver.recordModuleNameForFileName(i.filePath,e.moduleName),this.symbolResolver.recordImportAs(o,i)),n&&this.resolvedExternalReferences.set(n,o),o},e.prototype.findDeclaration=function(e,t,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(e,t,n))},e.prototype.tryFindDeclaration=function(e,t,n){var r=this;return this.symbolResolver.ignoreErrorsFor(function(){return r.findDeclaration(e,t,n)})},e.prototype.findSymbolDeclaration=function(e){var t=this.symbolResolver.resolveSymbol(e);if(t){var n=t.metadata;if(n&&"resolved"===n.__symbolic&&(n=n.symbol),n instanceof Yt)return this.findSymbolDeclaration(t.metadata)}return e},e.prototype.tryAnnotations=function(e){var t=this.errorRecorder;this.errorRecorder=function(e,t){};try{return this.annotations(e)}finally{this.errorRecorder=t}},e.prototype.annotations=function(e){var t=this;return this._annotations(e,function(e,n){return t.simplify(e,n)},this.annotationCache)},e.prototype.shallowAnnotations=function(e){var t=this;return this._annotations(e,function(e,n){return t.simplify(e,n,!0)},this.shallowAnnotationCache)},e.prototype._annotations=function(e,t,n){var r=n.get(e);if(!r){r=[];var i=this.getTypeMetadata(e),o=this.findParentType(e,i);if(o){var s=this.annotations(o);r.push.apply(r,f(s))}var a=[];if(i.decorators&&(a=t(e,i.decorators))&&r.push.apply(r,f(a)),o&&!this.summaryResolver.isLibraryFile(e.filePath)&&this.summaryResolver.isLibraryFile(o.filePath)){var u=this.summaryResolver.resolveSummary(o);if(u&&u.type){var l=this.annotationForParentClassWithSummaryKind.get(u.type.summaryKind);l.some(function(e){return a.some(function(t){return e.isTypeOf(t)})})||this.reportError(vh(rh("Class "+e.name+" in "+e.filePath+" extends from a "+tn[u.type.summaryKind]+" in another compilation unit without duplicating the decorator",void 0,"Please add a "+l.map(function(e){return e.ngMetadataName}).join(" or ")+" decorator to the class"),e),e)}}n.set(e,r.filter(function(e){return!!e}))}return r},e.prototype.propMetadata=function(e){var t=this,n=this.propertyCache.get(e);if(!n){var r=this.getTypeMetadata(e);n={};var i=this.findParentType(e,r);if(i){var o=this.propMetadata(i);Object.keys(o).forEach(function(e){n[e]=o[e]})}var s=r.members||{};Object.keys(s).forEach(function(r){var i=s[r].find(function(e){return"property"==e.__symbolic||"method"==e.__symbolic}),o=[];n[r]&&o.push.apply(o,f(n[r])),n[r]=o,i&&i.decorators&&o.push.apply(o,f(t.simplify(e,i.decorators)))}),this.propertyCache.set(e,n)}return n},e.prototype.parameters=function(e){var t=this;if(!(e instanceof Yt))return this.reportError(new Error("parameters received "+JSON.stringify(e)+" which is not a StaticSymbol"),e),[];try{var n=this.parameterCache.get(e);if(!n){var r=this.getTypeMetadata(e),i=this.findParentType(e,r),o=r?r.members:null,s=o?o.__ctor__:null;if(s){var a=s.find(function(e){return"constructor"==e.__symbolic}),u=a.parameters||[],l=this.simplify(e,a.parameterDecorators||[]);n=[],u.forEach(function(r,i){var o=[],s=t.trySimplify(e,r);s&&o.push(s);var a=l?l[i]:null;a&&o.push.apply(o,f(a)),n.push(o)})}else i&&(n=this.parameters(i));n||(n=[]),this.parameterCache.set(e,n)}return n}catch(t){throw console.error("Failed on type "+JSON.stringify(e)+" with error "+t),t}},e.prototype._methodNames=function(e){var t=this.methodCache.get(e);if(!t){var n=this.getTypeMetadata(e);t={};var r=this.findParentType(e,n);if(r){var i=this._methodNames(r);Object.keys(i).forEach(function(e){t[e]=i[e]})}var o=n.members||{};Object.keys(o).forEach(function(e){var n=o[e].some(function(e){return"method"==e.__symbolic});t[e]=t[e]||n}),this.methodCache.set(e,t)}return t},e.prototype._staticMembers=function(e){var t=this.staticCache.get(e);if(!t){var n=this.getTypeMetadata(e);t=Object.keys(n.statics||{}),this.staticCache.set(e,t)}return t},e.prototype.findParentType=function(e,t){var n=this.trySimplify(e,t.extends);if(n instanceof Yt)return n},e.prototype.hasLifecycleHook=function(e,t){e instanceof Yt||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(e)+" which is not a StaticSymbol"),e);try{return!!this._methodNames(e)[t]}catch(t){throw console.error("Failed on type "+JSON.stringify(e)+" with error "+t),t}},e.prototype.guards=function(e){var t,n;if(!(e instanceof Yt))return this.reportError(new Error("guards received "+JSON.stringify(e)+" which is not a StaticSymbol"),e),{};var r=this._staticMembers(e),i={};try{for(var o=p(r),s=o.next();!s.done;s=o.next()){var a=s.value;if(a.endsWith("TypeGuard")){var u=a.substr(0,a.length-"TypeGuard".length),l=void 0;u.endsWith("UseIf")?(u=a.substr(0,u.length-"UseIf".length),l="UseIf"):l=this.getStaticSymbol(e.filePath,e.name,[a]),i[u]=l}}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return i},e.prototype._registerDecoratorOrConstructor=function(e,t){this.conversionMap.set(e,function(e,n){return new(t.bind.apply(t,f([void 0],n)))})},e.prototype._registerFunction=function(e,t){this.conversionMap.set(e,function(e,n){return t.apply(void 0,n)})},e.prototype.initializeConversionMap=function(){this._registerDecoratorOrConstructor(this.findDeclaration(Xp,"Injectable"),Y),this.injectionToken=this.findDeclaration(Xp,"InjectionToken"),this.opaqueToken=this.findDeclaration(Xp,"OpaqueToken"),this.ROUTES=this.tryFindDeclaration("@angular/router","ROUTES"),this.ANALYZE_FOR_ENTRY_COMPONENTS=this.findDeclaration(Xp,"ANALYZE_FOR_ENTRY_COMPONENTS"),this._registerDecoratorOrConstructor(this.findDeclaration(Xp,"Host"),te),this._registerDecoratorOrConstructor(this.findDeclaration(Xp,"Self"),J),this._registerDecoratorOrConstructor(this.findDeclaration(Xp,"SkipSelf"),ee),this._registerDecoratorOrConstructor(this.findDeclaration(Xp,"Inject"),O),this._registerDecoratorOrConstructor(this.findDeclaration(Xp,"Optional"),Z),this._registerDecoratorOrConstructor(this.findDeclaration(Xp,"Attribute"),D),this._registerDecoratorOrConstructor(this.findDeclaration(Xp,"ContentChild"),F),this._registerDecoratorOrConstructor(this.findDeclaration(Xp,"ContentChildren"),L),this._registerDecoratorOrConstructor(this.findDeclaration(Xp,"ViewChild"),V),this._registerDecoratorOrConstructor(this.findDeclaration(Xp,"ViewChildren"),j),this._registerDecoratorOrConstructor(this.findDeclaration(Xp,"Input"),W),this._registerDecoratorOrConstructor(this.findDeclaration(Xp,"Output"),Q),this._registerDecoratorOrConstructor(this.findDeclaration(Xp,"Pipe"),z),this._registerDecoratorOrConstructor(this.findDeclaration(Xp,"HostBinding"),$),this._registerDecoratorOrConstructor(this.findDeclaration(Xp,"HostListener"),G),this._registerDecoratorOrConstructor(this.findDeclaration(Xp,"Directive"),B),this._registerDecoratorOrConstructor(this.findDeclaration(Xp,"Component"),K),this._registerDecoratorOrConstructor(this.findDeclaration(Xp,"NgModule"),X),this._registerDecoratorOrConstructor(this.findDeclaration(Xp,"Host"),te),this._registerDecoratorOrConstructor(this.findDeclaration(Xp,"Self"),J),this._registerDecoratorOrConstructor(this.findDeclaration(Xp,"SkipSelf"),ee),this._registerDecoratorOrConstructor(this.findDeclaration(Xp,"Optional"),Z)},e.prototype.getStaticSymbol=function(e,t,n){return this.symbolResolver.getStaticSymbol(e,t,n)},e.prototype.trySimplify=function(e,t){var n=this.errorRecorder;this.errorRecorder=function(e,t){};var r=this.simplify(e,t);return this.errorRecorder=n,r},e.prototype.simplify=function(e,t,n){void 0===n&&(n=!1);var r,i=this,o=fh.empty,s=new Map;try{r=function e(t,n,r,a){function u(e){var t=i.symbolResolver.resolveSymbol(e);return t?t.metadata:null}function l(n){return e(t,n,r,0)}function c(n,o){if(n===t)return e(n,o,r+1,a);try{return e(n,o,r+1,a)}catch(e){if(!ih(e))throw e;var s=e.chain?"references '"+e.symbol.name+"'":function u(e){if(e.summary)return e.summary;switch(e.message){case oh:if(e.context&&e.context.className)return"references non-exported class "+e.context.className;break;case sh:return"is not initialized";case ah:return"is a destructured variable";case uh:return"could not be resolved";case lh:return e.context&&e.context.name?"calls '"+e.context.name+"'":"calls a function";case ch:return e.context&&e.context.name?"references local variable "+e.context.name:"references a local variable"}return"contains the error"}(e);i.error({message:e.message,advise:e.advise,context:e.context,chain:{message:"'"+n.name+"' "+s,position:e.position,next:e.chain},symbol:n},t)}}return function n(h){var d,v,m,y;if(hh(h))return h;if(h instanceof Array){var g=[];try{for(var _=p(h),b=_.next();!b.done;b=_.next()){var w=b.value;if(w&&"spread"===w.__symbolic){var x=l(w.expression);if(Array.isArray(x)){try{for(var E=p(x),S=E.next();!S.done;S=E.next())g.push(S.value)}catch(e){m={error:e}}finally{try{S&&!S.done&&(y=E.return)&&y.call(E)}finally{if(m)throw m.error}}continue}}var C=n(w);eh(C)||g.push(C)}}catch(e){d={error:e}}finally{try{b&&!b.done&&(v=_.return)&&v.call(_)}finally{if(d)throw d.error}}return g}if(h instanceof Yt)return h===i.injectionToken||i.conversionMap.has(h)||a>0&&!h.members.length?h:null!=(L=u(T=h))?c(T,L):T;if(h){if(h.__symbolic){var T=void 0;switch(h.__symbolic){case"binop":var N=n(h.left);if(eh(N))return N;var k=n(h.right);if(eh(k))return k;switch(h.operator){case"&&":return N&&k;case"||":return N||k;case"|":return N|k;case"^":return N^k;case"&":return N&k;case"==":return N==k;case"!=":return N!=k;case"===":return N===k;case"!==":return N!==k;case"<":return N":return N>k;case"<=":return N<=k;case">=":return N>=k;case"<<":return N<>":return N>>k;case"+":return N+k;case"-":return N-k;case"*":return N*k;case"/":return N/k;case"%":return N%k}return null;case"if":var A=n(h.condition);return n(A?h.thenExpression:h.elseExpression);case"pre":var P=n(h.operand);if(eh(P))return P;switch(h.operator){case"+":return P;case"-":return-P;case"!":return!P;case"~":return~P}return null;case"index":var I=l(h.expression),M=l(h.index);return I&&hh(M)?I[M]:null;case"select":var O=h.member,R=t,D=n(h.expression);if(D instanceof Yt){var L,F=D.members.concat(O);return null!=(L=u(R=i.getStaticSymbol(D.filePath,D.name,F)))?c(R,L):R}return D&&hh(O)?c(R,D[O]):null;case"reference":var j=o.resolve(h.name);if(j!=fh.missing)return j;break;case"resolved":try{return n(h.symbol)}catch(e){throw ih(e)&&null!=h.fileName&&null!=h.line&&null!=h.character&&(e.position={fileName:h.fileName,line:h.line,column:h.character}),e}case"class":case"function":return t;case"new":case"call":if((T=e(t,h.expression,r+1,0))instanceof Yt){if(T===i.injectionToken||T===i.opaqueToken)return t;var V=h.arguments||[],B=i.conversionMap.get(T);if(B){var H=V.map(function(e){return c(t,e)}).map(function(e){return eh(e)?void 0:e});return B(t,H)}return function U(e,a,u,l){if(a&&"function"==a.__symbolic){s.get(e)&&i.error({message:"Recursion is not supported",summary:"called '"+e.name+"' recursively",value:a},e);try{var p=a.value;if(p&&(0!=r||"error"!=p.__symbolic)){var h=a.parameters,d=a.defaults;u=u.map(function(e){return c(t,e)}).map(function(e){return eh(e)?void 0:e}),d&&d.length>u.length&&u.push.apply(u,f(d.slice(u.length).map(function(e){return n(e)}))),s.set(e,!0);for(var v=fh.build(),m=0;m0?new dh(t):e.empty}}},e.missing={},e.empty={resolve:function(t){return e.missing}},e}(),dh=function(e){function t(t){var n=e.call(this)||this;return n.bindings=t,n}return o(t,e),t.prototype.resolve=function(e){return this.bindings.has(e)?this.bindings.get(e):fh.missing},t}(fh);function vh(e,t){return ih(e)?function r(e){var t=kt(function e(t,n){if(void 0===n&&(n=0),!t)return"";var r=t.position?t.position.fileName+"("+(t.position.line+1)+","+(t.position.column+1)+")":"",i=(r&&0===n?r+": ":"")+t.message+(r&&0!==n?" at "+r:"");return""+function e(t){if(t<=0)return"";if(t<6)return[""," "," "," "," "," "][t];var n=e(Math.floor(t/2));return n+n+(t%2==1?" ":"")}(n)+i+(t.next&&"\n"+e(t.next,n+2)||"")}(e)+".");return t[Gp]=!0,t.chain=e,t.position=e.position,t}(function e(t,n){return{message:function r(e,t){switch(e){case oh:if(t&&t.className)return"References to a non-exported class are not supported in decorators but "+t.className+" was referenced.";break;case sh:return"Only initialized variables and constants can be referenced in decorators because the value of this variable is needed by the template compiler";case ah:return"Referencing an exported destructured variable or constant is not supported in decorators and this value is needed by the template compiler";case uh:if(t&&t.typeName)return"Could not resolve type "+t.typeName;break;case lh:return t&&t.name?"Function calls are not supported in decorators but '"+t.name+"' was called":"Function calls are not supported in decorators";case ch:if(t&&t.name)return"Reference to a local (non-exported) symbols are not supported in decorators but '"+t.name+"' was referenced";break;case ph:return"Function expressions are not supported in decorators"}return e}(t.message,t.context)+(t.symbol?" in '"+t.symbol.name+"'":""),position:t.position,next:t.next?e(t.next,n):n?{message:n}:void 0}}({message:"Error during template compile of '"+t.name+"'",position:e.position,next:{message:e.message,next:e.chain,context:e.context,symbol:e.symbol}},e.advise||function n(e,t){switch(e){case oh:if(t&&t.className)return"Consider exporting '"+t.className+"'";break;case ah:return"Consider simplifying to avoid destructuring";case ch:if(t&&t.name)return"Consider exporting '"+t.name+"'";break;case ph:return"Consider changing the function expression into an exported function"}}(e.message,e.context))):e} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var mh=function(){function e(e,t){this.host=e,this.staticSymbolCache=t,this.summaryCache=new Map,this.loadedFilePaths=new Map,this.importAs=new Map,this.knownFileNameToModuleNames=new Map}return e.prototype.isLibraryFile=function(e){return!this.host.isSourceFile(Pp(e))},e.prototype.toSummaryFileName=function(e,t){return this.host.toSummaryFileName(e,t)},e.prototype.fromSummaryFileName=function(e,t){return this.host.fromSummaryFileName(e,t)},e.prototype.resolveSummary=function(e){var t=e.members.length?this.staticSymbolCache.get(e.filePath,e.name):e,n=this.summaryCache.get(t);return n||(this._loadSummaryFile(e.filePath),n=this.summaryCache.get(e)),t===e&&n||null},e.prototype.getSymbolsOf=function(e){return this._loadSummaryFile(e)?Array.from(this.summaryCache.keys()).filter(function(t){return t.filePath===e}):null},e.prototype.getImportAs=function(e){return e.assertNoMembers(),this.importAs.get(e)},e.prototype.getKnownModuleName=function(e){return this.knownFileNameToModuleNames.get(e)||null},e.prototype.addSummary=function(e){this.summaryCache.set(e.symbol,e)},e.prototype._loadSummaryFile=function(e){var t=this,n=this.loadedFilePaths.get(e);if(null!=n)return n;var r=null;if(this.isLibraryFile(e)){var i=function o(e){return e.replace(Cp,"")+".ngsummary.json"}(e);try{r=this.host.loadSummary(i)}catch(e){throw console.error("Error loading summary file "+i),e}}if(this.loadedFilePaths.set(e,n=null!=r),r){var s=function a(e,t,n,r){return new Qp(e,t).deserialize(n,r)}(this.staticSymbolCache,this,e,r),u=s.moduleName,l=s.importAs;s.summaries.forEach(function(e){return t.summaryCache.set(e.symbol,e)}),u&&this.knownFileNameToModuleNames.set(e,u),l.forEach(function(e){t.importAs.set(e.symbol,e.importAs)})}return n},e}(),yh=function(){function e(){this._summaries=new Map}return e.prototype.isLibraryFile=function(){return!1},e.prototype.toSummaryFileName=function(e){return e},e.prototype.fromSummaryFileName=function(e){return e},e.prototype.resolveSummary=function(e){return this._summaries.get(e)||null},e.prototype.getSymbolsOf=function(){return[]},e.prototype.getImportAs=function(e){return e},e.prototype.getKnownModuleName=function(e){return null},e.prototype.addSummary=function(e){this._summaries.set(e.symbol,e)},e}(); /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function gh(){return new xh(".")}var _h,bh,wh,xh=function(){function e(e){void 0===e&&(e=null),this._packagePrefix=e}return e.prototype.resolve=function(e,t){var n=t;null!=e&&e.length>0&&(n=function r(e,t){var n=Sh(encodeURI(t)),r=Sh(e);if(null!=n[_h.Scheme])return Ch(n);n[_h.Scheme]=r[_h.Scheme];for(var i=_h.Scheme;i<=_h.Port;i++)null==n[i]&&(n[i]=r[i]);if("/"==n[_h.Path][0])return Ch(n);var o=r[_h.Path];null==o&&(o="/");var s=o.lastIndexOf("/");return o=o.substring(0,s+1)+n[_h.Path],n[_h.Path]=o,Ch(n)} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e,n));var i=Sh(n),o=this._packagePrefix;if(null!=o&&null!=i&&"package"==i[_h.Scheme]){var s=i[_h.Path];return(o=o.replace(/\/+$/,""))+"/"+s.replace(/^\/+/,"")}return n},e}(),Eh=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function Sh(e){return e.match(Eh)}function Ch(e){var t=e[_h.Path];return t=null==t?"":function n(e){if("/"==e)return"/";for(var t="/"==e[0]?"/":"",n="/"===e[e.length-1]?"/":"",r=e.split("/"),i=[],o=0,s=0;s0?i.pop():o++;break;default:i.push(a)}}if(""==t){for(;o-- >0;)i.unshift("..");0===i.length&&i.push(".")}return t+i.join("/")+n}(t),e[_h.Path]=t,function r(e,t,n,i,o,s,a){var u=[];return null!=e&&u.push(e+":"),null!=n&&(u.push("//"),null!=t&&u.push(t+"@"),u.push(n),null!=i&&u.push(":"+i)),null!=o&&u.push(o),null!=s&&u.push("?"+s),null!=a&&u.push("#"+a),u.join("")}(e[_h.Scheme],e[_h.UserInfo],e[_h.Domain],e[_h.Port],t,e[_h.QueryData],e[_h.Fragment])}!function(e){e[e.Scheme=1]="Scheme",e[e.UserInfo=2]="UserInfo",e[e.Domain=3]="Domain",e[e.Port=4]="Port",e[e.Path=5]="Path",e[e.QueryData=6]="QueryData",e[e.Fragment=7]="Fragment"}(_h||(_h={})),function(e){function t(t,n,r,i,o,s,a){var u=e.call(this)||this;return u.bindings=t,u.symbols=n,u.usedPipes=r,u.nestingLevel=i,u.scope=o,u.template=s,u.level=a,u.pipesUsed=[],u.visitNode=function(e){return e.visit(u)},u}o(t,e),t.apply=function(e,n){var r=new Map,i=new Map,o=new Map,s=new Set;return new t(r,i,s,o,n,e instanceof pr?e:null,0).ingest(e),{expressions:r,symbols:i,nestingLevel:o,usedPipes:s}},t.prototype.ingest=function(e){e instanceof pr?(e.variables.forEach(this.visitNode),e.children.forEach(this.visitNode),this.nestingLevel.set(e,this.level)):e.forEach(this.visitNode)},t.prototype.visitElement=function(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.children.forEach(this.visitNode)},t.prototype.visitTemplate=function(e){e.inputs.forEach(this.visitNode),e.outputs.forEach(this.visitNode),e.templateAttrs.forEach(this.visitNode),e.references.forEach(this.visitNode);var n=this.scope.getChildScope(e);new t(this.bindings,this.symbols,this.usedPipes,this.nestingLevel,n,e,this.level+1).ingest(e)},t.prototype.visitVariable=function(e){null!==this.template&&this.symbols.set(e,this.template)},t.prototype.visitReference=function(e){null!==this.template&&this.symbols.set(e,this.template)},t.prototype.visitText=function(e){},t.prototype.visitContent=function(e){},t.prototype.visitTextAttribute=function(e){},t.prototype.visitIcu=function(e){},t.prototype.visitBoundAttribute=function(e){e.value.visit(this)},t.prototype.visitBoundEvent=function(e){e.handler.visit(this)},t.prototype.visitBoundText=function(e){e.value.visit(this)},t.prototype.visitPipe=function(t,n){return this.usedPipes.add(t.name),e.prototype.visitPipe.call(this,t,n)},t.prototype.visitPropertyRead=function(t,n){return this.maybeMap(n,t,t.name),e.prototype.visitPropertyRead.call(this,t,n)},t.prototype.visitSafePropertyRead=function(t,n){return this.maybeMap(n,t,t.name),e.prototype.visitSafePropertyRead.call(this,t,n)},t.prototype.visitPropertyWrite=function(t,n){return this.maybeMap(n,t,t.name),e.prototype.visitPropertyWrite.call(this,t,n)},t.prototype.visitMethodCall=function(t,n){return this.maybeMap(n,t,t.name),e.prototype.visitMethodCall.call(this,t,n)},t.prototype.visitSafeMethodCall=function(t,n){return this.maybeMap(n,t,t.name),e.prototype.visitSafeMethodCall.call(this,t,n)},t.prototype.maybeMap=function(e,t,n){if(t.receiver instanceof No){var r=this.scope.lookup(n);null!==r&&this.bindings.set(t,r)}}}(Go), /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function Th(e){(e.ng||(e.ng={})).ɵcompilerFacade=new Mc}(Bt),function(e){e[e.Any=0]="Any",e[e.String=1]="String",e[e.Number=2]="Number",e[e.Boolean=3]="Boolean",e[e.Undefined=4]="Undefined",e[e.Null=5]="Null",e[e.Unbound=6]="Unbound",e[e.Other=7]="Other"}(bh||(bh={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning"}(wh||(wh={}));var Nh=function Nh(e,t,n){this.kind=e,this.message=t,this.ast=n},kh=function(){function e(e,t,n){this.scope=e,this.query=t,this.context=n}return e.prototype.getType=function(e){return e.visit(this)},e.prototype.getDiagnostics=function(e){this.diagnostics=[];var t=e.visit(this);return this.context.event&&t.callable&&this.reportWarning("Unexpected callable expression. Expected a method call",e),this.diagnostics},e.prototype.visitBinary=function(e){var t=this;function n(e,t){switch(e){case bh.Undefined:case bh.Null:return n(t,bh.Other)}return e}var r=function(e,n){var r=t.getType(e);if(r.nullable){switch(n){case"&&":case"||":case"==":case"!=":case"===":case"!==":break;default:t.reportError("The expression might be null",e)}return t.query.getNonNullableType(r)}return r},i=r(e.left,e.operation),o=r(e.right,e.operation),s=this.query.getTypeKind(i),a=this.query.getTypeKind(o),u=n(s,a),l=u<<8|n(a,s);switch(e.operation){case"*":case"/":case"%":case"-":case"<<":case">>":case">>>":case"&":case"^":case"|":switch(l){case bh.Any<<8|bh.Any:case bh.Number<<8|bh.Any:case bh.Any<<8|bh.Number:case bh.Number<<8|bh.Number:return this.query.getBuiltinType(bh.Number);default:var c=e.left;switch(u){case bh.Any:case bh.Number:c=e.right}return this.reportError("Expected a numeric type",c)}case"+":switch(l){case bh.Any<<8|bh.Any:case bh.Any<<8|bh.Boolean:case bh.Any<<8|bh.Number:case bh.Any<<8|bh.Other:case bh.Boolean<<8|bh.Any:case bh.Number<<8|bh.Any:case bh.Other<<8|bh.Any:return this.anyType;case bh.Any<<8|bh.String:case bh.Boolean<<8|bh.String:case bh.Number<<8|bh.String:case bh.String<<8|bh.Any:case bh.String<<8|bh.Boolean:case bh.String<<8|bh.Number:case bh.String<<8|bh.String:case bh.String<<8|bh.Other:case bh.Other<<8|bh.String:return this.query.getBuiltinType(bh.String);case bh.Number<<8|bh.Number:return this.query.getBuiltinType(bh.Number);case bh.Boolean<<8|bh.Number:case bh.Other<<8|bh.Number:return this.reportError("Expected a number type",e.left);case bh.Number<<8|bh.Boolean:case bh.Number<<8|bh.Other:return this.reportError("Expected a number type",e.right);default:return this.reportError("Expected operands to be a string or number type",e)}case">":case"<":case"<=":case">=":case"==":case"!=":case"===":case"!==":switch(l){case bh.Any<<8|bh.Any:case bh.Any<<8|bh.Boolean:case bh.Any<<8|bh.Number:case bh.Any<<8|bh.String:case bh.Any<<8|bh.Other:case bh.Boolean<<8|bh.Any:case bh.Boolean<<8|bh.Boolean:case bh.Number<<8|bh.Any:case bh.Number<<8|bh.Number:case bh.String<<8|bh.Any:case bh.String<<8|bh.String:case bh.Other<<8|bh.Any:case bh.Other<<8|bh.Other:return this.query.getBuiltinType(bh.Boolean);default:return this.reportError("Expected the operants to be of similar type or any",e)}case"&&":return o;case"||":return this.query.getTypeUnion(i,o)}return this.reportError("Unrecognized operator "+e.operation,e)},e.prototype.visitChain=function(e){return this.diagnostics&&Zo(e,this),this.query.getBuiltinType(bh.Undefined)},e.prototype.visitConditional=function(e){return this.diagnostics&&Zo(e,this),this.query.getTypeUnion(this.getType(e.trueExp),this.getType(e.falseExp))},e.prototype.visitFunctionCall=function(e){var t=this,n=e.args.map(function(e){return t.getType(e)}),r=this.getType(e.target);if(!r||!r.callable)return this.reportError("Call target is not callable",e);var i=r.selectSignature(n);return i?i.result:this.reportError("Unable no compatible signature found for call",e)},e.prototype.visitImplicitReceiver=function(e){var t=this;return{name:"$implict",kind:"component",language:"ng-template",type:void 0,container:void 0,callable:!1,nullable:!1,public:!0,definition:void 0,members:function(){return t.scope},signatures:function(){return[]},selectSignature:function(e){},indexed:function(e){}}},e.prototype.visitInterpolation=function(e){return this.diagnostics&&Zo(e,this),this.undefinedType},e.prototype.visitKeyedRead=function(e){var t=this.getType(e.obj),n=this.getType(e.key);return t.indexed(n)||this.anyType},e.prototype.visitKeyedWrite=function(e){return this.getType(e.value)},e.prototype.visitLiteralArray=function(e){var t,n=this;return this.query.getArrayType((t=this.query).getTypeUnion.apply(t,f(e.expressions.map(function(e){return n.getType(e)}))))},e.prototype.visitLiteralMap=function(e){return this.diagnostics&&Zo(e,this),this.anyType},e.prototype.visitLiteralPrimitive=function(e){switch(e.value){case!0:case!1:return this.query.getBuiltinType(bh.Boolean);case null:return this.query.getBuiltinType(bh.Null);case void 0:return this.query.getBuiltinType(bh.Undefined);default:switch(typeof e.value){case"string":return this.query.getBuiltinType(bh.String);case"number":return this.query.getBuiltinType(bh.Number);default:return this.reportError("Unrecognized primitive",e)}}},e.prototype.visitMethodCall=function(e){return this.resolveMethodCall(this.getType(e.receiver),e)},e.prototype.visitPipe=function(e){var t=this,n=this.query.getPipes().get(e.name);if(!n)return this.reportError("No pipe by the name "+e.name+" found",e);var r=this.getType(e.exp),i=n.selectSignature([r].concat(e.args.map(function(e){return t.getType(e)})));return i?i.result:this.reportError("Unable to resolve signature for pipe invocation",e)},e.prototype.visitPrefixNot=function(e){return this.query.getBuiltinType(bh.Boolean)},e.prototype.visitNonNullAssert=function(e){var t=this.getType(e.expression);return this.query.getNonNullableType(t)},e.prototype.visitPropertyRead=function(e){return this.resolvePropertyRead(this.getType(e.receiver),e)},e.prototype.visitPropertyWrite=function(e){return this.getType(e.value)},e.prototype.visitQuote=function(e){return this.query.getBuiltinType(bh.Any)},e.prototype.visitSafeMethodCall=function(e){return this.resolveMethodCall(this.query.getNonNullableType(this.getType(e.receiver)),e)},e.prototype.visitSafePropertyRead=function(e){return this.resolvePropertyRead(this.query.getNonNullableType(this.getType(e.receiver)),e)},Object.defineProperty(e.prototype,"anyType",{get:function(){var e=this._anyType;return e||(e=this._anyType=this.query.getBuiltinType(bh.Any)),e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"undefinedType",{get:function(){var e=this._undefinedType;return e||(e=this._undefinedType=this.query.getBuiltinType(bh.Undefined)),e},enumerable:!0,configurable:!0}),e.prototype.resolveMethodCall=function(e,t){var n=this;if(this.isAny(e))return this.anyType;var r=e.members().get(t.name);if(!r)return this.reportError("Unknown method '"+t.name+"'",t);if(!r.type)return this.reportError("Could not find a type for '"+t.name+"'",t);if(!r.type.callable)return this.reportError("Member '"+t.name+"' is not callable",t);var i=r.type.selectSignature(t.args.map(function(e){return n.getType(e)}));return i?i.result:this.reportError("Unable to resolve signature for call of method "+t.name,t)},e.prototype.resolvePropertyRead=function(e,t){if(this.isAny(e))return this.anyType;var n=e.members().get(t.name);if(!n){var r;if("$implict"==(r=e.name))r="The component declaration, template variable declarations, and element references do";else{if(e.nullable)return this.reportError("The expression might be null",t.receiver);r="'"+r+"' does"}return this.reportError("Identifier '"+t.name+"' is not defined. "+r+" not contain such a member",t)}return n.public||this.reportWarning("Identifier '"+t.name+"' refers to a private member of "+(r="$implict"==(r=e.name)?"the component":"'"+r+"'"),t),n.type},e.prototype.reportError=function(e,t){return this.diagnostics&&this.diagnostics.push(new Nh(wh.Error,e,t)),this.anyType},e.prototype.reportWarning=function(e,t){return this.diagnostics&&this.diagnostics.push(new Nh(wh.Warning,e,t)),this.anyType},e.prototype.isAny=function(e){return!e||this.query.getTypeKind(e)==bh.Any||!!e.type&&this.isAny(e.type)},e}();function Ah(e,t){if(e.fileName){var n=e.offset;return[{fileName:e.fileName,span:{start:t.sourceSpan.start.offset+n,end:t.sourceSpan.end.offset+n}}]}}function Ph(e,t,n){var r=n.directives.find(function(e){var t=rn(e.directive.type);return"NgFor"==t||"NgForOf"==t});if(r){var i=r.inputs.find(function(e){return"ngForOf"==e.directiveName});if(i){var o=new kh(t.members,t.query,{}).getType(i.value);if(o){var s=t.query.getElementType(o);if(s)return s}}}return t.query.getBuiltinType(bh.Any)}function Ih(e,t,n){var r=e.members,i=function s(e){var t=[];function n(n){var r,i,o=function(n){var r=void 0;n.value&&(r=e.query.getTypeSymbol(sn(n.value))),t.push({name:n.name,kind:"reference",type:r||e.query.getBuiltinType(bh.Any),get definition(){return Ah(e,n)}})};try{for(var s=p(n),a=s.next();!a.done;a=s.next())o(a.value)}catch(e){r={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}}return eu(new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.visitEmbeddedTemplate=function(t,r){e.prototype.visitEmbeddedTemplate.call(this,t,r),n(t.references)},t.prototype.visitElement=function(t,r){e.prototype.visitElement.call(this,t,r),n(t.references)},t}(Ja)),e.templateAst),t}(e),a=function u(e,t){for(var n,r,i=[],o=t.tail;o;){if(o instanceof Qa){var s=function(t){var n=t.name,r=o.directives.map(function(t){return e.query.getTemplateContext(t.directive.type.reference)}).find(function(e){return!!e}),s=void 0;if(r){var a=r.get(t.value);if(a){var u=e.query.getTypeKind(s=a.type);u!==bh.Any&&u!=bh.Unbound||(s=Ph(0,e,o))}}s||(s=e.query.getBuiltinType(bh.Any)),i.push({name:n,kind:"variable",type:s,get definition(){return Ah(e,t)}})};try{for(var a=p(o.variables),u=a.next();!u.done;u=a.next())s(u.value)}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}}o=t.parentOf(o)}return i}(e,t),l=function c(e,t){var n=[];return t&&(n=[{name:"$event",kind:"variable",type:e.query.getBuiltinType(bh.Any)}]),n}(e,n);if(i.length||a.length||l.length){var h=e.query.createSymbolTable(i),f=e.query.createSymbolTable(a),d=e.query.createSymbolTable(l);r=e.query.mergeSymbolTable([r,h,f,d])}return r}var Mh=function(e){function t(t,n){var r=e.call(this)||this;return r.info=t,r.getExpressionScope=n,r.diagnostics=[],r.path=new Ws([]),r}return o(t,e),t.prototype.visitDirective=function(e,t){e.inputs&&e.inputs.length&&eu(this,e.inputs,t)},t.prototype.visitBoundText=function(e){this.push(e),this.diagnoseExpression(e.value,e.sourceSpan.start.offset,!1),this.pop()},t.prototype.visitDirectiveProperty=function(e){this.push(e),this.diagnoseExpression(e.value,this.attributeValueLocation(e),!1),this.pop()},t.prototype.visitElementProperty=function(e){this.push(e),this.diagnoseExpression(e.value,this.attributeValueLocation(e),!1),this.pop()},t.prototype.visitEvent=function(e){this.push(e),this.diagnoseExpression(e.handler,this.attributeValueLocation(e),!0),this.pop()},t.prototype.visitVariable=function(e){var t=this.directiveSummary;if(t&&e.value){var n=this.info.query.getTemplateContext(t.type.reference);n&&!n.has(e.value)&&this.reportError("$implicit"===e.value?"The template context does not have an implicit value":"The template context does not defined a member called '"+e.value+"'",function r(e){return{start:e.start.offset,end:e.end.offset}} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e.sourceSpan))}},t.prototype.visitElement=function(t,n){this.push(t),e.prototype.visitElement.call(this,t,n),this.pop()},t.prototype.visitEmbeddedTemplate=function(t,n){var r=this.directiveSummary;this.push(t),this.directiveSummary=t.directives.map(function(e){return e.directive}).find(function(e){return function t(e){var t,n;if(e.diDeps)try{for(var r=p(e.diDeps),i=r.next();!i.done;i=r.next()){var o=i.value;if(o.token&&o.token.identifier&&"TemplateRef"==rn(o.token.identifier))return!0}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}return!1}(e.type)}),e.prototype.visitEmbeddedTemplate.call(this,t,n),this.pop(),this.directiveSummary=r},t.prototype.attributeValueLocation=function(e){var t=na(this.info.htmlAst,e.sourceSpan.start.offset).tail;return t instanceof Xs&&t.valueSpan?t.valueSpan.start.offset:e.sourceSpan.start.offset},t.prototype.diagnoseExpression=function(e,t,n){var r,i=this,o=this.getExpressionScope(this.path,n);(r=this.diagnostics).push.apply(r,f(function s(e,t,n,r){void 0===r&&(r={});var i=new kh(e,n,r);return i.getDiagnostics(t),i.diagnostics}(o,e,this.info.query,{event:n}).map(function(e){return{span:Oh(e.ast.span,t+i.info.offset),kind:e.kind,message:e.message}})))},t.prototype.push=function(e){this.path.push(e)},t.prototype.pop=function(){this.path.pop()},t.prototype.reportError=function(e,t){t&&this.diagnostics.push({span:Oh(t,this.info.offset),kind:wh.Error,message:e})},t.prototype.reportWarning=function(e,t){this.diagnostics.push({span:Oh(t,this.info.offset),kind:wh.Warning,message:e})},t}(Ja);function Oh(e,t){return{start:e.start+t,end:e.end+t}}function Rh(e){return e.split(".").map(Number)}function Dh(e,t){for(var n=Math.max(e.length,t.length),r=Math.min(e.length,t.length),i=0;it[i])return 1;if(e[i]0)return s}return 0} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var Lh=n.ModifierFlags?function(e){return!!(n.getCombinedModifierFlags(e)&n.ModifierFlags.Private)}:function(e){return!!(e.flags&n.NodeFlags.Private)},Fh=n.ObjectFlags?function(e){return!!(e.flags&n.TypeFlags.Object&&e.objectFlags&n.ObjectFlags.Reference)}:function(e){return!!(e.flags&n.TypeFlags.Reference)},jh=function(){function e(e,t,n,r){this.program=e,this.checker=t,this.source=n,this.fetchPipes=r,this.typeCache=new Map}return e.prototype.getTypeKind=function(e){return function e(t){var r,i;if(t){if(t.flags&n.TypeFlags.Any)return bh.Any;if(t.flags&(n.TypeFlags.String|n.TypeFlags.StringLike|n.TypeFlags.StringLiteral))return bh.String;if(t.flags&(n.TypeFlags.Number|n.TypeFlags.NumberLike))return bh.Number;if(t.flags&n.TypeFlags.Undefined)return bh.Undefined;if(t.flags&n.TypeFlags.Null)return bh.Null;if(t.flags&n.TypeFlags.Union){var o=null,s=t;if(s.types.length>0){o=e(s.types[0]);try{for(var a=p(s.types),u=a.next();!u.done;u=a.next())if(o!=e(u.value))return bh.Other}catch(e){r={error:e}}finally{try{u&&!u.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}}if(null!=o)return o}else if(t.flags&n.TypeFlags.TypeParameter)return bh.Unbound}return bh.Other}(this.getTsTypeOf(e))},e.prototype.getBuiltinType=function(e){var t=this.typeCache.get(e);if(!t){var n=tf(e,{checker:this.checker,node:this.source,program:this.program});t=new Uh(n,{program:this.program,checker:this.checker,node:this.source}),this.typeCache.set(e,t)}return t},e.prototype.getTypeUnion=function(){for(var e=[],t=0;tn.SyntaxKind.LastToken&&t.pos<=o&&t.end>o)return n.forEachChild(t,e)||t});if(s)return{start:s.getStart(),end:s.getEnd()}}}(this.source,e,t)},e.prototype.getTemplateRefContextType=function(e){var t,n,r=this.checker.getTypeOfSymbolAtLocation(e,this.source),i=r.symbol&&r.symbol.members&&af(r.symbol.members,"__constructor");if(i){var o=i.declarations[0];try{for(var s=p(o.parameters),a=s.next();!a.done;a=s.next()){var u=this.checker.getTypeAtLocation(a.value.type);if("TemplateRef"==u.symbol.name&&Fh(u)&&u.typeArguments&&1===u.typeArguments.length)return u.typeArguments[0].symbol}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}}},e.prototype.getTsTypeOf=function(e){var t=this.getTypeWrapper(e);return t&&t.tsType},e.prototype.getTypeWrapper=function(e){var t=void 0;return e instanceof Uh?t=e:e.type instanceof Uh&&(t=e.type),t},e}();function Vh(e){var t=e.getCallSignatures();return t&&0!=t.length}function Bh(e,t){return e.getCallSignatures().map(function(e){return new zh(e,t)})}function Hh(e,t,n){var r=e.getCallSignatures();return r.length?new zh(r[0],t):void 0}var Uh=function(){function e(e,t){if(this.tsType=e,this.context=t,this.kind="type",this.language="typescript",this.type=void 0,this.container=void 0,this.public=!0,!e)throw Error("Internal: null type")}return Object.defineProperty(e.prototype,"name",{get:function(){var e=this.tsType.symbol;return e&&e.name||""},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"callable",{get:function(){return Vh(this.tsType)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nullable",{get:function(){return this.context.checker.getNonNullableType(this.tsType)!=this.tsType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){var e=this.tsType.getSymbol();return e?rf(e):void 0},enumerable:!0,configurable:!0}),e.prototype.members=function(){return new $h(this.tsType.getProperties(),this.context)},e.prototype.signatures=function(){return Bh(this.tsType,this.context)},e.prototype.selectSignature=function(e){return Hh(this.tsType,this.context)},e.prototype.indexed=function(e){},e}(),qh=function(){function e(e,t){this.context=t,this.nullable=!1,this.language="typescript",this.symbol=e&&t&&e.flags&n.SymbolFlags.Alias?t.checker.getAliasedSymbol(e):e}return Object.defineProperty(e.prototype,"name",{get:function(){return this.symbol.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"kind",{get:function(){return this.callable?"method":"property"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return new Uh(this.tsType,this.context)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"container",{get:function(){return function e(t,r){var i,o;if(t.getFlags()&n.SymbolFlags.ClassMember&&t.declarations)try{for(var s=p(t.declarations),a=s.next();!a.done;a=s.next()){var u=of(a.value);if(u){var l=r.checker.getTypeAtLocation(u);if(l)return new Uh(l,r)}}}catch(e){i={error:e}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}(this.symbol,this.context)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"public",{get:function(){return!function e(t){return!!t.valueDeclaration&&Lh(t.valueDeclaration)}(this.symbol)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"callable",{get:function(){return Vh(this.tsType)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return rf(this.symbol)},enumerable:!0,configurable:!0}),e.prototype.members=function(){if(!this._members)if(0!=(this.symbol.flags&(n.SymbolFlags.Class|n.SymbolFlags.Interface))){var e=this.context.checker.getDeclaredTypeOfSymbol(this.symbol),t=new Uh(e,this.context);this._members=t.members()}else this._members=new $h(this.symbol.members,this.context);return this._members},e.prototype.signatures=function(){return Bh(this.tsType,this.context)},e.prototype.selectSignature=function(e){return Hh(this.tsType,this.context)},e.prototype.indexed=function(e){},Object.defineProperty(e.prototype,"tsType",{get:function(){var e=this._tsType;return e||(e=this._tsType=this.context.checker.getTypeOfSymbolAtLocation(this.symbol,this.context.node)),e},enumerable:!0,configurable:!0}),e}(),Kh=function(){function e(e){this.declaration=e,this.language="ng-template",this.nullable=!1,this.public=!0}return Object.defineProperty(e.prototype,"name",{get:function(){return this.declaration.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"kind",{get:function(){return this.declaration.kind},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"container",{get:function(){},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.declaration.type},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"callable",{get:function(){return this.declaration.type.callable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return this.declaration.definition},enumerable:!0,configurable:!0}),e.prototype.members=function(){return this.declaration.type.members()},e.prototype.signatures=function(){return this.declaration.type.signatures()},e.prototype.selectSignature=function(e){return this.declaration.type.selectSignature(e)},e.prototype.indexed=function(e){},e}(),zh=function(){function e(e,t){this.signature=e,this.context=t}return Object.defineProperty(e.prototype,"arguments",{get:function(){return new $h(this.signature.getParameters(),this.context)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"result",{get:function(){return new Uh(this.signature.getReturnType(),this.context)},enumerable:!0,configurable:!0}),e}(),Wh=function(){function e(e,t){this.signature=e,this.resultType=t}return Object.defineProperty(e.prototype,"arguments",{get:function(){return this.signature.arguments},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"result",{get:function(){return this.resultType},enumerable:!0,configurable:!0}),e}(),Qh=function(e){return function(t){var n,r,i,o;if(function s(e,t,n){var r=Rh(e);return void 0!==n?Dh(Rh(t),r)<=0&&Dh(Rh(n),r)>=0:Dh(Rh(t),r)<=0}(e,"2.2")){var a=new Map;try{for(var u=p(t),l=u.next();!l.done;l=u.next())a.set((d=l.value).name,d)}catch(e){n={error:e}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return a}var c={};try{for(var h=p(t),f=h.next();!f.done;f=h.next()){var d;c[(d=f.value).name]=d}}catch(e){i={error:e}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(i)throw i.error}}return c}},$h=function(){function e(e,t){if(this.context=t,e=e||[],Array.isArray(e)){this.symbols=e;var r=Qh(n.version);this.symbolTable=r(e)}else this.symbols=function i(e){if(!e)return[];var t=e;if("function"==typeof t.values)return Array.from(t.values());var n=[],r="function"==typeof t.hasOwnProperty?function(e){return t.hasOwnProperty(e)}:function(e){return!!t[e]};for(var i in t)r(i)&&n.push(t[i]);return n}(e),this.symbolTable=e}return Object.defineProperty(e.prototype,"size",{get:function(){return this.symbols.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var t=af(this.symbolTable,e);return t?new qh(t,this.context):void 0},e.prototype.has=function(e){var t=this.symbolTable;return"function"==typeof t.has?t.has(e):null!=t[e]},e.prototype.values=function(){var e=this;return this.symbols.map(function(t){return new qh(t,e.context)})},e}(),Gh=function(){function e(){this.map=new Map,this._values=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.map.size},enumerable:!0,configurable:!0}),e.prototype.get=function(e){return this.map.get(e)},e.prototype.add=function(e){if(this.map.has(e.name)){var t=this.map.get(e.name);this._values[this._values.indexOf(t)]=e}this.map.set(e.name,e),this._values.push(e)},e.prototype.addAll=function(e){var t,n;try{for(var r=p(e),i=r.next();!i.done;i=r.next())this.add(i.value)}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.has=function(e){return this.map.has(e)},e.prototype.values=function(){return this._values},e}(),Xh=function(){function e(e,t){this.pipes=e,this.context=t}return Object.defineProperty(e.prototype,"size",{get:function(){return this.pipes.length},enumerable:!0,configurable:!0}),e.prototype.get=function(e){var t=this.pipes.find(function(t){return t.name==e});if(t)return new Zh(t,this.context)},e.prototype.has=function(e){return null!=this.pipes.find(function(t){return t.name==e})},e.prototype.values=function(){var e=this;return this.pipes.map(function(t){return new Zh(t,e.context)})},e}(),Yh=/[\\\/]([^\\\/]+)[\\\/]\1\.d\.ts$/,Zh=function(){function e(e,t){this.pipe=e,this.context=t,this.kind="pipe",this.language="typescript",this.container=void 0,this.callable=!0,this.nullable=!1,this.public=!0}return Object.defineProperty(e.prototype,"name",{get:function(){return this.pipe.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return new Uh(this.tsType,this.context)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){var e=this.tsType.getSymbol();return e?rf(e):void 0},enumerable:!0,configurable:!0}),e.prototype.members=function(){return ef.instance},e.prototype.signatures=function(){return Bh(this.tsType,this.context)},e.prototype.selectSignature=function(e){var t=Hh(this.tsType,this.context);if(1==e.length){var n=e[0];if(n instanceof Uh){var r=void 0;switch(this.name){case"async":switch(n.name){case"Observable":case"Promise":case"EventEmitter":r=sf(n.tsType,n.name);break;default:r=tf(bh.Any,this.context)}break;case"slice":r=sf(n.tsType,"Array")}r&&(t=new Wh(t,new Uh(r,n.context)))}}return t},e.prototype.indexed=function(e){},Object.defineProperty(e.prototype,"tsType",{get:function(){var e=this._tsType;if(!e){var t=this.findClassSymbol(this.pipe.type.reference);t&&(e=this._tsType=this.findTransformMethodType(t)),e||(e=this._tsType=tf(bh.Any,this.context))}return e},enumerable:!0,configurable:!0}),e.prototype.findClassSymbol=function(e){return Jh(e,this.context)},e.prototype.findTransformMethodType=function(e){var t=this.context.checker.getDeclaredTypeOfSymbol(e);if(t){var n=t.getProperty("transform");if(n)return this.context.checker.getTypeOfSymbolAtLocation(n,this.context.node)}},e}();function Jh(e,n){var r=n.program.getSourceFile(e.filePath);if(!r){var i=e.filePath;if(i.match(Yh)){var o=t.join(t.dirname(i),"index.d.ts");r=n.program.getSourceFile(o)}}if(r)return(n.checker.getExportsOfModule(r.module||r.symbol)||[]).find(function(t){return t.name==e.name})}var ef=function(){function e(){this.size=0}return e.prototype.get=function(e){},e.prototype.has=function(e){return!1},e.prototype.values=function(){return[]},e.instance=new e,e}();function tf(e,t){var r,i=t.checker,o=t.node;switch(e){case bh.Any:r=i.getTypeAtLocation(nf({kind:n.SyntaxKind.AsExpression,expression:{kind:n.SyntaxKind.TrueKeyword},type:{kind:n.SyntaxKind.AnyKeyword}},o));break;case bh.Boolean:r=i.getTypeAtLocation(nf({kind:n.SyntaxKind.TrueKeyword},o));break;case bh.Null:r=i.getTypeAtLocation(nf({kind:n.SyntaxKind.NullKeyword},o));break;case bh.Number:var s={kind:n.SyntaxKind.NumericLiteral,text:o.getText()};nf({kind:n.SyntaxKind.ExpressionStatement,expression:s},o),r=i.getTypeAtLocation(s);break;case bh.String:r=i.getTypeAtLocation(nf({kind:n.SyntaxKind.NoSubstitutionTemplateLiteral,text:o.getText()},o));break;case bh.Undefined:r=i.getTypeAtLocation(nf({kind:n.SyntaxKind.VoidExpression,expression:{kind:n.SyntaxKind.NumericLiteral}},o));break;default:throw new Error("Internal error, unhandled literal kind "+e+":"+bh[e])}return r}function nf(e,t){return e.parent=t,n.forEachChild(e,function(t){return nf(t,e)}),e}function rf(e){var t=e.declarations;if(t)return t.map(function(e){return{fileName:e.getSourceFile().fileName,span:{start:e.getStart(),end:e.getEnd()}}})}function of(e){for(;e;){switch(e.kind){case n.SyntaxKind.ClassDeclaration:case n.SyntaxKind.InterfaceDeclaration:return e;case n.SyntaxKind.SourceFile:return}e=e.parent}}function sf(e,t){if(e&&e.symbol&&e.symbol.name==t){var n=e.typeArguments;if(n&&n.length<=1)return n[0]}}function af(e,t){var n=e;return"function"==typeof n.get?n.get(t):n[t]} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var uf=4;function lf(e){return e&&"function"===e.__symbolic}function cf(e){return e&&e.name&&!e.module&&hf(e)}function pf(e){return e&&e.module&&!e.name&&!e.default&&hf(e)}function hf(e){return e&&"reference"===e.__symbolic}function ff(e){return e&&"error"===e.__symbolic} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var df=n.SyntaxKind.SpreadElement||n.SyntaxKind.SpreadElementExpression;function vf(e,t){var r=e.expression;if(r.kind===n.SyntaxKind.PropertyAccessExpression){var i=r.name;if(i.kind==n.SyntaxKind.Identifier)return i.text===t}return!1}function mf(e,t){var r=e.expression;return r.kind===n.SyntaxKind.Identifier&&r.text===t}function yf(e,t,n,r){if(!n.has(e)&&(n.set(e,t),t&&(function i(e){return e&&e.module&&!!e.name&&hf(e)}(e)||function o(e){return e&&e.module&&e.default&&hf(e)}(e))&&null==e.line)){var s=wf(t,r);null!=s.line&&(e.line=s.line),null!=s.character&&(e.character=s.character)}return e}function gf(e,t){return!n.forEachChild(e,function(e){return!t(e)})}function _f(e){return Object(e)!==e}function bf(e){return void 0!==e}function wf(e,t){return e&&(t=t||function r(e){for(;e&&e.kind!=n.SyntaxKind.SourceFile;)e=e.parent;return e}(e))?n.getLineAndCharacterOfPosition(t,e.getStart(t)):{}}function xf(e,t,n,r){var i=a({__symbolic:"error",message:e},wf(t,r));return n&&(i.context=n),i}var Ef=function(){function e(e,t,n,r){void 0===n&&(n={}),this.symbols=e,this.nodeMap=t,this.options=n,this.recordExport=r}return e.prototype.nameOf=function(e){if(e&&e.kind==n.SyntaxKind.Identifier)return e.text;var t=e&&this.evaluateNode(e);return ff(t)||"string"==typeof t?t:xf("Name expected",e,{received:e&&e.getText()||""})},e.prototype.isFoldable=function(e){return this.isFoldableWorker(e,new Map)},e.prototype.isFoldableWorker=function(e,t){var r=this;if(e)switch(e.kind){case n.SyntaxKind.ObjectLiteralExpression:return gf(e,function(e){return e.kind===n.SyntaxKind.PropertyAssignment&&r.isFoldableWorker(e.initializer,t)});case n.SyntaxKind.ArrayLiteralExpression:return gf(e,function(e){return r.isFoldableWorker(e,t)});case n.SyntaxKind.CallExpression:var i=e;if(vf(i,"concat")&&1===Tf(i.arguments).length){var o=i.expression.expression;if(this.isFoldableWorker(o,t)&&this.isFoldableWorker(i.arguments[0],t)){var s=this.evaluateNode(o);if(s&&Array.isArray(s))return!0}}return!(!mf(i,"CONST_EXPR")||1!==Tf(i.arguments).length)&&this.isFoldableWorker(i.arguments[0],t);case n.SyntaxKind.NoSubstitutionTemplateLiteral:case n.SyntaxKind.StringLiteral:case n.SyntaxKind.NumericLiteral:case n.SyntaxKind.NullKeyword:case n.SyntaxKind.TrueKeyword:case n.SyntaxKind.FalseKeyword:case n.SyntaxKind.TemplateHead:case n.SyntaxKind.TemplateMiddle:case n.SyntaxKind.TemplateTail:return!0;case n.SyntaxKind.ParenthesizedExpression:return this.isFoldableWorker(e.expression,t);case n.SyntaxKind.BinaryExpression:var a=e;switch(a.operatorToken.kind){case n.SyntaxKind.PlusToken:case n.SyntaxKind.MinusToken:case n.SyntaxKind.AsteriskToken:case n.SyntaxKind.SlashToken:case n.SyntaxKind.PercentToken:case n.SyntaxKind.AmpersandAmpersandToken:case n.SyntaxKind.BarBarToken:return this.isFoldableWorker(a.left,t)&&this.isFoldableWorker(a.right,t);default:return!1}case n.SyntaxKind.PropertyAccessExpression:return this.isFoldableWorker(e.expression,t);case n.SyntaxKind.ElementAccessExpression:var u=e;return this.isFoldableWorker(u.expression,t)&&this.isFoldableWorker(u.argumentExpression,t);case n.SyntaxKind.Identifier:var l=this.symbols.resolve(e.text);if(void 0!==l&&_f(l))return!0;break;case n.SyntaxKind.TemplateExpression:return e.templateSpans.every(function(e){return r.isFoldableWorker(e.expression,t)})}return!1},e.prototype.evaluateNode=function(e,t){var r,i=this,o=this;function s(e,t){if(o.options.substituteExpression){var n=o.options.substituteExpression(e,t);o.recordExport&&n!=e&&cf(n)&&o.recordExport(n.name,e),e=n}return yf(e,t,o.nodeMap)}function u(e){return!o.options.verboseInvalidExpression&&ff(e)}var l=function(t,n){var r=i.symbols.resolve(t,n);return void 0===r?s({__symbolic:"reference",name:t},e):r&&hf(r)?s(a({},r),e):r};switch(e.kind){case n.SyntaxKind.ObjectLiteralExpression:var c={},h=[];return n.forEachChild(e,function(e){switch(e.kind){case n.SyntaxKind.ShorthandPropertyAssignment:case n.SyntaxKind.PropertyAssignment:var t=e;t.name.kind==n.SyntaxKind.StringLiteral&&h.push(t.name.text);var o=i.nameOf(t.name);if(u(o))return r=o,!0;var a=Sf(t)?i.evaluateNode(t.initializer,!0):l(o,!0);if(u(a))return r=a,!0;c[o]=Sf(t)?s(a,t.initializer):a}}),r||(this.options.quotedNames&&h.length&&(c.$quoted$=h),s(c,e));case n.SyntaxKind.ArrayLiteralExpression:var f=[];return n.forEachChild(e,function(e){var t,n,o=i.evaluateNode(e,!0);if(u(o))return r=o,!0;if(function s(e){return e&&"spread"===e.__symbolic}(o)&&Array.isArray(o.expression))try{for(var a=p(o.expression),l=a.next();!l.done;l=a.next())f.push(l.value)}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else f.push(o)}),r||s(f,e);case df:return s({__symbolic:"spread",expression:this.evaluateNode(e.expression)},e);case n.SyntaxKind.CallExpression:var d=e;if(mf(d,"forwardRef")&&1===Tf(d.arguments).length){var v=d.arguments[0];if(v.kind==n.SyntaxKind.ArrowFunction)return s(this.evaluateNode(v.body),e)}var m=Tf(d.arguments).map(function(e){return i.evaluateNode(e)});if(this.isFoldable(d)&&vf(d,"concat")){var y=this.evaluateNode(d.expression.expression);return u(y)?y:y.concat(m[0])}if(mf(d,"CONST_EXPR")&&1===Tf(d.arguments).length)return s(m[0],e);var g=this.evaluateNode(d.expression);if(u(g))return s(g,e);var _={__symbolic:"call",expression:g};return m&&m.length&&(_.arguments=m),s(_,e);case n.SyntaxKind.NewExpression:var b=e,w=Tf(b.arguments).map(function(e){return i.evaluateNode(e)}),x=this.evaluateNode(b.expression);if(ff(x))return s(x,e);var E={__symbolic:"new",expression:x};return w.length&&(E.arguments=w),s(E,e);case n.SyntaxKind.PropertyAccessExpression:var S=e,C=this.evaluateNode(S.expression);if(u(C))return s(C,e);var T=this.nameOf(S.name);return u(T)?s(T,e):C&&this.isFoldable(S.expression)?C[T]:pf(C)?s({__symbolic:"reference",module:C.module,name:T},e):s({__symbolic:"select",expression:C,member:T},e);case n.SyntaxKind.ElementAccessExpression:var N=e,k=this.evaluateNode(N.expression);if(u(k))return s(k,e);if(!N.argumentExpression)return s(xf("Expression form not supported",e),e);var A=this.evaluateNode(N.argumentExpression);return u(k)?s(k,e):this.isFoldable(N.expression)&&this.isFoldable(N.argumentExpression)?k[A]:s({__symbolic:"index",expression:k,index:A},e);case n.SyntaxKind.Identifier:return l(e.text,t);case n.SyntaxKind.TypeReference:var P=e,I=P.typeName,M=function(e){if(I.kind===n.SyntaxKind.QualifiedName){var t=e,r=i.evaluateNode(t.left);return pf(r)?s({__symbolic:"reference",module:r.module,name:t.right.text},e):{__symbolic:"select",expression:r,member:t.right.text}}var o=I,a=i.symbols.resolve(o.text);return u(a)||hf(a)?s(a,e):s(xf("Could not resolve type",e,{typeName:o.text}),e)}(I);if(u(M))return s(M,e);if(!pf(M)&&P.typeArguments&&P.typeArguments.length){var O=P.typeArguments.map(function(e){return i.evaluateNode(e)});M.arguments=O}return s(M,e);case n.SyntaxKind.UnionType:for(var R=e.types.filter(function(e){return e.kind!=n.SyntaxKind.NullKeyword&&e.kind!=n.SyntaxKind.UndefinedKeyword}).map(function(e){return i.evaluateNode(e)}),D=null,L=0;Lq;case n.SyntaxKind.LessThanEqualsToken:return U<=q;case n.SyntaxKind.GreaterThanEqualsToken:return U>=q;case n.SyntaxKind.LessThanLessThanToken:return U<>q;case n.SyntaxKind.GreaterThanGreaterThanGreaterThanToken:return U>>>q;case n.SyntaxKind.PlusToken:return U+q;case n.SyntaxKind.MinusToken:return U-q;case n.SyntaxKind.AsteriskToken:return U*q;case n.SyntaxKind.SlashToken:return U/q;case n.SyntaxKind.PercentToken:return U%q}return s({__symbolic:"binop",operator:H.operatorToken.getText(),left:U,right:q},e)}break;case n.SyntaxKind.ConditionalExpression:var K=e,z=this.evaluateNode(K.condition),W=this.evaluateNode(K.whenTrue),Q=this.evaluateNode(K.whenFalse);return _f(z)?z?W:Q:s({__symbolic:"if",condition:z,thenExpression:W,elseExpression:Q},e);case n.SyntaxKind.FunctionExpression:case n.SyntaxKind.ArrowFunction:return s(xf("Lambda not supported",e),e);case n.SyntaxKind.TaggedTemplateExpression:return s(xf("Tagged template expressions are not supported in metadata",e),e);case n.SyntaxKind.TemplateExpression:var $=e;return this.isFoldable(e)?$.templateSpans.reduce(function(e,t){return e+i.evaluateNode(t.expression)+i.evaluateNode(t.literal)},this.evaluateNode($.head)):$.templateSpans.reduce(function(e,t){var n=i.evaluateNode(t.expression),r=i.evaluateNode(t.literal);if(u(n))return n;if(u(r))return r;if("string"==typeof e&&"string"==typeof n&&"string"==typeof r)return e+n+r;var o=n;return""!==e&&(o={__symbolic:"binop",operator:"+",left:e,right:n}),""!=r&&(o={__symbolic:"binop",operator:"+",left:o,right:r}),o},this.evaluateNode($.head));case n.SyntaxKind.AsExpression:return this.evaluateNode(e.expression);case n.SyntaxKind.ClassExpression:return{__symbolic:"class"}}return s(xf("Expression form not supported",e),e)},e}();function Sf(e){return e.kind==n.SyntaxKind.PropertyAssignment}var Cf=n.createNodeArray();function Tf(e){return e||Cf} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var Nf,kf=function(){function e(e){this.sourceFile=e,this.references=new Map}return e.prototype.resolve=function(e,t){return t&&this.references.get(e)||this.symbols.get(e)},e.prototype.define=function(e,t){this.symbols.set(e,t)},e.prototype.defineReference=function(e,t){this.references.set(e,t)},e.prototype.has=function(e){return this.symbols.has(e)},Object.defineProperty(e.prototype,"symbols",{get:function(){var e=this._symbols;return e||(function t(e){["Object","Function","String","Number","Array","Boolean","Map","NaN","Infinity","Math","Date","RegExp","Error","Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","JSON","ArrayBuffer","DataView","Int8Array","Uint8Array","Uint8ClampedArray","Uint16Array","Int16Array","Int32Array","Uint32Array","Float32Array","Float64Array"].forEach(function(t){return e.set(t,{__symbolic:"reference",name:t})})} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e=this._symbols=new Map),this.buildImports()),e},enumerable:!0,configurable:!0}),e.prototype.buildImports=function(){var e=this,t=this._symbols,r=function(e){return e.replace(/^['"]|['"]$/g,"")},i=function(o){var s,a;switch(o.kind){case n.SyntaxKind.ImportEqualsDeclaration:var u=o;if(u.moduleReference.kind===n.SyntaxKind.ExternalModuleReference){var l=u.moduleReference;if(l.expression){l.expression.parent||(l.expression.parent=l,l.parent=e.sourceFile);var c=r(l.expression.getText());t.set(u.name.text,{__symbolic:"reference",module:c});break}}t.set(u.name.text,{__symbolic:"error",message:"Unsupported import syntax"});break;case n.SyntaxKind.ImportDeclaration:var h=o;if(!h.importClause)break;h.moduleSpecifier.parent||(h.moduleSpecifier.parent=h,h.parent=e.sourceFile);var f=r(h.moduleSpecifier.getText());h.importClause.name&&t.set(h.importClause.name.text,{__symbolic:"reference",module:f,default:!0});var d=h.importClause.namedBindings;if(d)switch(d.kind){case n.SyntaxKind.NamedImports:try{for(var v=p(d.elements),m=v.next();!m.done;m=v.next()){var y=m.value;t.set(y.name.text,{__symbolic:"reference",module:f,name:y.propertyName?y.propertyName.text:y.name.text})}}catch(e){s={error:e}}finally{try{m&&!m.done&&(a=v.return)&&a.call(v)}finally{if(s)throw s.error}}break;case n.SyntaxKind.NamespaceImport:t.set(d.name.text,{__symbolic:"reference",module:f})}}n.forEachChild(o,i)};this.sourceFile&&n.forEachChild(this.sourceFile,i)},e}(),Af=function(e){return n.getCombinedModifierFlags(e)&n.ModifierFlags.Static},Pf=function(){function e(e){void 0===e&&(e={}),this.options=e}return e.prototype.getMetadata=function(e,t,r){var i=this;void 0===t&&(t=!1);var o,s=new kf(e),u=new Map,l=r&&this.options.substituteExpression?function(e,t){return i.options.substituteExpression(r(e,t),t)}:r,c=r?a({},this.options,{substituteExpression:l}):this.options,h=new Ef(s,u,c,function(e,t){o||(o={}),o[e]=t}),f=void 0;function d(t,n){return l&&(t=l(t,n)),yf(t,n,u,e)}function v(t,n,r){return xf(t,n,r,e)}function m(e){if(e.name&&e.name.kind==n.SyntaxKind.Identifier){var t=e.name.text,r=e.body;if(r&&1==r.statements.length){var i=r.statements[0];if(i.kind===n.SyntaxKind.ReturnStatement){var o=i;if(o.expression){var s={__symbolic:"function",parameters:If(e.parameters),value:h.evaluateNode(o.expression)};return e.parameters.some(function(e){return null!=e.initializer})&&(s.defaults=e.parameters.map(function(e){return e.initializer&&h.evaluateNode(e.initializer)})),d({func:s,name:t},e)}}}}}var y=new Map;n.forEachChild(e,function(e){switch(e.kind){case n.SyntaxKind.ExportDeclaration:e.moduleSpecifier||e.exportClause.elements.forEach(function(e){y.set((e.propertyName||e.name).text,e.name.text)})}});var g=function(t){return e.isDeclarationFile||n.getCombinedModifierFlags(t)&n.ModifierFlags.Export},_=function(e){return e&&y.has(e.text)},b=function(e){return g(e)||_(e.name)},w=function(e){return e&&(y.get(e.text)||e.text)},x=function(e){return w(e.name)};if(n.forEachChild(e,function(e){switch(e.kind){case n.SyntaxKind.ClassDeclaration:var t=e;if(t.name){var r=t.name.text;b(t)?s.define(r,{__symbolic:"reference",name:x(t)}):s.define(r,v("Reference to non-exported class",e,{className:r}))}break;case n.SyntaxKind.InterfaceDeclaration:e.name&&s.define(e.name.text,{__symbolic:"reference",name:"any"});break;case n.SyntaxKind.FunctionDeclaration:var i=e;if(!b(i)){var o=i.name;o&&o.text&&s.define(o.text,v("Reference to a non-exported function",o,{name:o.text}))}}}),n.forEachChild(e,function(e){var t,r,i,a;switch(e.kind){case n.SyntaxKind.ExportDeclaration:var u=e.moduleSpecifier,l=e.exportClause;if(u||l&&l.elements.forEach(function(t){var n=t.name.text;if(!o||!o[n]){var r=h.evaluateNode(t.propertyName||t.name);o||(o={}),o[n]=d(r,e)}}),u&&u.kind==n.SyntaxKind.StringLiteral){var c={from:u.text};l&&(c.export=l.elements.map(function(e){return e.propertyName?{name:e.propertyName.text,as:e.name.text}:e.name.text})),f||(f=[]),f.push(c)}break;case n.SyntaxKind.ClassDeclaration:var y=e;y.name&&b(y)&&(N=x(y))&&(o||(o={}),o[N]=function E(e){var t,r,i,o,s={__symbolic:"class"};function a(e){if(e&&e.length)return e.map(function(e){return function t(e){return h.evaluateNode(e.expression)}(e)})}function u(e){var t=h.evaluateNode(e);return ff(t)||hf(t)||function n(e){return e&&"select"===e.__symbolic}(t)?t:v("Symbol reference expected",e)}e.heritageClauses&&e.heritageClauses.forEach(function(e){e.token===n.SyntaxKind.ExtendsKeyword&&e.types&&e.types.forEach(function(e){return s.extends=u(e.expression)})});var l=e.typeParameters;l&&l.length&&(s.arity=l.length),e.decorators&&(s.decorators=a(e.decorators));var c=null;function f(e,t){c||(c={});var n=c.hasOwnProperty(e)?c[e]:[];n.push(t),c[e]=n}var y=null;function g(e,t){y||(y={}),y[e]=t}try{for(var _=p(e.members),b=_.next();!b.done;b=_.next()){var w=b.value,x=!1;switch(w.kind){case n.SyntaxKind.Constructor:case n.SyntaxKind.MethodDeclaration:x=w.kind===n.SyntaxKind.Constructor;var E=w;if(Af(E)){var S=m(E);S&&g(S.name,S.func);continue}var C=a(E.decorators),T=E.parameters,N=[],k=[],A=!1,P=!1;try{for(var I=p(T),M=I.next();!M.done;M=I.next()){var O=M.value,R=a(O.decorators);N.push(R),A=A||!!R,x&&(k.push(O.type?u(O.type):null),P=!0)}}catch(e){i={error:e}}finally{try{M&&!M.done&&(o=I.return)&&o.call(I)}finally{if(i)throw i.error}}var D={__symbolic:x?"constructor":"method"},L=x?"__ctor__":h.nameOf(w.name);C&&(D.decorators=C),A&&(D.parameterDecorators=N),P&&(D.parameters=k),ff(L)||f(L,D);break;case n.SyntaxKind.PropertyDeclaration:case n.SyntaxKind.GetAccessor:case n.SyntaxKind.SetAccessor:var F=w;if(Af(F)){var j=h.nameOf(F.name);ff(j)||g(j,F.initializer?h.evaluateNode(F.initializer):v("Variable not initialized",F.name))}var V=a(F.decorators);if(V){var B=h.nameOf(F.name);ff(B)||f(B,{__symbolic:"property",decorators:V})}}}}catch(e){t={error:e}}finally{try{b&&!b.done&&(r=_.return)&&r.call(_)}finally{if(t)throw t.error}}return c&&(s.members=c),y&&(s.statics=y),d(s,e)}(y));break;case n.SyntaxKind.TypeAliasDeclaration:var S=e;S.name&&b(S)&&(N=x(S))&&(o||(o={}),o[N]={__symbolic:"interface"});break;case n.SyntaxKind.InterfaceDeclaration:var C=e;C.name&&b(C)&&(N=x(C))&&(o||(o={}),o[N]={__symbolic:"interface"});break;case n.SyntaxKind.FunctionDeclaration:var T=e;if(b(T)&&T.name){var N=x(T),k=m(T);N&&(o||(o={}),o[N]=k?d(k.func,e):{__symbolic:"function"})}break;case n.SyntaxKind.EnumDeclaration:var A=e;if(b(A)){var P={},I=x(A),M=0,O=0;try{for(var R=p(A.members),D=R.next();!D.done;D=R.next()){var L,F=D.value;L=F.initializer?h.evaluateNode(F.initializer):M,N=void 0,F.name.kind==n.SyntaxKind.Identifier&&(P[N=F.name.text]=L,O++),M="number"==typeof L?L+1:N?{__symbolic:"binary",operator:"+",left:{__symbolic:"select",expression:d({__symbolic:"reference",name:I},e),name:N}}:d(v("Unsupported enum member name",F.name),e)}}catch(e){t={error:e}}finally{try{D&&!D.done&&(r=R.return)&&r.call(R)}finally{if(t)throw t.error}}O&&I&&(o||(o={}),o[I]=d(P,e))}break;case n.SyntaxKind.VariableStatement:var j=e,V=function(t){if(t.name.kind==n.SyntaxKind.Identifier){var r,i=t.name;r=t.initializer?h.evaluateNode(t.initializer):d(v("Variable not initialized",i),i);var a=!1;if(g(j)||g(t)||_(i)){var u=w(i);u&&(o||(o={}),o[u]=d(r,e)),a=!0}"string"==typeof r||"number"==typeof r||"boolean"==typeof r?(s.define(i.text,r),a&&s.defineReference(i.text,{__symbolic:"reference",name:i.text})):a||(r&&!ff(r)?s.define(i.text,d(r,e)):s.define(i.text,d(v("Reference to a local symbol",i,{name:i.text}),e)))}else{var l=function(t){switch(t.kind){case n.SyntaxKind.Identifier:var r=t,i=v("Destructuring not supported",r);s.define(r.text,i),g(e)&&(o||(o={}),o[r.text]=i);break;case n.SyntaxKind.BindingElement:l(t.name);break;case n.SyntaxKind.ObjectBindingPattern:case n.SyntaxKind.ArrayBindingPattern:t.elements.forEach(l)}};l(t.name)}};try{for(var B=p(j.declarationList.declarations),H=B.next();!H.done;H=B.next())V(H.value)}catch(e){i={error:e}}finally{try{H&&!H.done&&(a=B.return)&&a.call(B)}finally{if(i)throw i.error}}}}),o||f){o?t&&function E(e,t,n){var r=new Set(["Array","Object","Set","Map","string","number","any"]);function i(s){if(s)if(Array.isArray(s))s.forEach(i);else if("object"!=typeof s||s.hasOwnProperty("__symbolic")){if(ff(s))!function a(n){if(o(t.get(n)))throw new Error(e.fileName+(null!=n.line?null!=n.character?":"+(n.line+1)+":"+(n.character+1):":"+(n.line+1):"")+": Metadata collected contains an error that will be reported at runtime: "+function r(e){switch(e.message){case"Reference to non-exported class":if(e.context&&e.context.className)return"Reference to a non-exported class "+e.context.className+". Consider exporting the class";break;case"Variable not initialized":return"Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler";case"Destructuring not supported":return"Referencing an exported destructured variable or constant is not supported by the template compiler. Consider simplifying this to avoid destructuring";case"Could not resolve type":if(e.context&&e.context.typeName)return"Could not resolve type "+e.context.typeName;break;case"Function call not supported":return(e.context&&e.context.name?"Calling function '"+e.context.name+"', f":"F")+"unction calls are not supported. Consider replacing the function or lambda with a reference to an exported function";case"Reference to a local symbol":if(e.context&&e.context.name)return"Reference to a local (non-exported) symbol '"+e.context.name+"'. Consider exporting the symbol"}return e.message} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(n)+".\n "+JSON.stringify(n))}(s);else if(cf(s)){if(!r.has(s.name)){var u=n[s.name];u&&i(u)}}else if(lf(s))!function l(e){if(e.value){var t=r;e.parameters&&(r=new Set(t.values()),e.parameters&&e.parameters.forEach(function(e){return r.add(e)})),i(e.value),r=t}}(s);else if(function c(e){if(e)switch(e.__symbolic){case"binary":case"call":case"index":case"new":case"pre":case"reference":case"select":case"spread":case"if":return!0}return!1}(s))switch(s.__symbolic){case"binary":var p=s;i(p.left),i(p.right);break;case"call":case"new":var h=s;i(h.expression),h.arguments&&h.arguments.forEach(i);break;case"index":var f=s;i(f.expression),i(f.index);break;case"pre":i(s.operand);break;case"select":case"spread":i(s.expression);break;case"if":var d=s;i(d.condition),i(d.elseExpression),i(d.thenExpression)}}else Object.getOwnPropertyNames(s).forEach(function(e){return i(s[e])})}function o(t){if(t){var n=t.getStart();return!(t.pos!=n&&e.text.substring(t.pos,n).indexOf("@dynamic")>=0)}return!0}Object.getOwnPropertyNames(n).forEach(function(r){var s=n[r];try{(function a(e){return e&&"class"===e.__symbolic})(s)&&function u(e){e.decorators&&e.decorators.forEach(i),e.members&&Object.getOwnPropertyNames(e.members).forEach(function(t){return e.members[t].forEach(function(t){return function n(e,t){t.decorators&&t.decorators.forEach(i),function n(e){return e&&("constructor"===e.__symbolic||"method"===e.__symbolic)}(t)&&t.parameterDecorators&&t.parameterDecorators.forEach(i),e.decorators&&function r(e){return e&&"constructor"===e.__symbolic}(t)&&t.parameters&&t.parameters.forEach(i)}(e,t)})}),e.statics&&Object.getOwnPropertyNames(e.statics).forEach(function(t){var n=e.statics[t];lf(n)?i(n.value):i(n)})}(s)}catch(n){var l=t.get(s);if(o(l)){if(l){var c=e.getLineAndCharacterOfPosition(l.getStart());throw new Error(e.fileName+":"+(c.line+1)+":"+(c.character+1)+": Error encountered in metadata generated for exported symbol '"+r+"': \n "+n.message)}throw new Error("Error encountered in metadata generated for exported symbol "+r+": \n "+n.message)}}})}(e,u,o):o={};var S={__symbolic:"module",version:this.options.version||uf,metadata:o};return e.moduleName&&(S.importAs=e.moduleName),f&&(S.exports=f),S}},e}();function If(e){var t,r,i=[];function o(e){var t,r;if(e.kind==n.SyntaxKind.Identifier)i.push(e.text);else{var s=e;try{for(var a=p(s.elements),u=a.next();!u.done;u=a.next()){var l=u.value.name;l&&o(l)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}}}try{for(var s=p(e),a=s.next();!a.done;a=s.next())o(a.value.name)}catch(e){t={error:e}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}return i}!function(e){e[e.DTS=1]="DTS",e[e.JS=2]="JS",e[e.Metadata=4]="Metadata",e[e.I18nBundle=8]="I18nBundle",e[e.Codegen=16]="Codegen",e[e.Default=19]="Default",e[e.All=31]="All"}(Nf||(Nf={})); /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var Mf,Of=/\.d\.ts$/; /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Rf(e,t,n){var r={__symbolic:"module",version:uf,metadata:a({},t.metadata)};t.exports&&(r.exports=t.exports),t.importAs&&(r.importAs=t.importAs),t.origins&&(r.origins=t.origins);var i=e.getSourceFileMetadata(n);if(i){for(var o in i.metadata)r.metadata[o]||(r.metadata[o]=i.metadata[o]);i.importAs&&(r.importAs=i.importAs),(!t.version||t.version<3)&&i.exports&&(r.exports=i.exports)}return r} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Df(e){if(e) /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ return function t(e){return e&&!!e.start}(e)?{start:e.start.offset,end:e.end.offset}:e.endSourceSpan?{start:e.sourceSpan.start.offset,end:e.endSourceSpan.end.offset}:e.children&&e.children.length?{start:e.sourceSpan.start.offset,end:Df(e.children[e.children.length-1]).end}:{start:e.sourceSpan.start.offset,end:e.sourceSpan.end.offset}}function Lf(e,t,n){return null!=t&&(n?e>=t.start&&e=t.start&&e<=t.end)}function Ff(e,t){return{start:e.start+t,end:e.end+t}}function jf(e){var t=new Map;return{selectors:Vf(e.directives.map(function(e){var n=A.parse(e.selector);return n.forEach(function(n){return t.set(n,e)}),n})),map:t}}function Vf(e){var t;return(t=[]).concat.apply(t,f(e))}function Bf(e,t){return e.endsWith(t)?e.substring(0,e.length-t.length):e}function Hf(e){var t,n;if(e){var r=[],i=new Set;try{for(var o=p(e),s=o.next();!s.done;s=o.next()){var a=s.value;i.has(a.name)||(i.add(a.name),r.push(a))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}}function Uf(e){return{fileName:e.fileName,offset:e.template.span.start,query:e.template.query,members:e.template.members,htmlAst:e.htmlAst,templateAst:e.templateAst}}function qf(e,t,n){void 0===n&&(n=!1);var r=[];return eu(new(function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return o(i,e),i.prototype.visit=function(e,i){var o=Df(e);if(!Lf(t,o))return!0;var s=r.length;(!s||n||function a(e,t){return e.start>=t.start&&e.end<=t.end}(o,Df(r[s-1])))&&r.push(e)},i.prototype.visitEmbeddedTemplate=function(e,t){return this.visitChildren(t,function(t){t(e.attrs),t(e.directives),t(e.children)})},i.prototype.visitElement=function(e,t){return this.visitChildren(t,function(t){t(e.attrs),t(e.inputs),t(e.outputs),t(e.references),t(e.directives),t(e.children)})},i.prototype.visitDirective=function(e,t){var n=this.visitChildren(t,function(t){t(e.inputs)});return r[r.length-1]==e&&r.pop(),n},i}(Ja)),e),new Ws(r,t)} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Kf(e,t,n){void 0===n&&(n=!1);var r=[],i=new(function(e){function i(){return null!==e&&e.apply(this,arguments)||this}return o(i,e),i.prototype.visit=function(e){(!n||e.span.start=e.exp.span.end&&(!e.args||!e.args.length||n=e.exp.span.end&&(!e.args||!e.args.length||n=(r.index||0)+r[0].length+n.sourceSpan.start.offset)return sd(e,r[3])}}var ld=function(e){function t(t,n,r,i){var o=e.call(this)||this;return o.info=t,o.position=n,o.attr=r,o.getExpressionScope=i||function(){return t.template.members},o}return o(t,e),t.prototype.visitDirectiveProperty=function(e){this.attributeValueCompletions(e.value)},t.prototype.visitElementProperty=function(e){this.attributeValueCompletions(e.value)},t.prototype.visitEvent=function(e){this.attributeValueCompletions(e.handler)},t.prototype.visitElement=function(e){var t=this;if(this.attr&&jf(this.info)&&this.attr.name.startsWith("*")){var n=this.attr.name.substr("*".length),r=jf(this.info),i=r.selectors.filter(function(e){return e.attrs.some(function(e,t){return t%2==0&&e==n})})[0],o=this.info.expressionParser.parseTemplateBindings(n,this.attr.value,null);if(!this.attr.valueSpan)return;var s=this.position-this.attr.valueSpan.start.offset,a=o.templateBindings,u=a.find(function(e){return Lf(s,e.span,!0)})||a.find(function(e){return Lf(s,e.span)}),l=function(){var e=[];i&&(e=i.attrs.filter(function(e,t){return t%2==0}).filter(function(e){return e.startsWith(n)&&e!=n}).map(function(e){return function t(e){return e&&e[0].toLowerCase()+e.substr(1)} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(e.substr(n.length))})),e.push("let"),t.result=e.map(function(e){return{kind:"key",name:e,sort:e}})};if(!u||u.key==n&&!u.expression)l();else if(u.keyIsVar){var c=this.attr.value.indexOf("=");if(this.result=[],c>=0&&s>=c){var p=r.map.get(i);if(p){var h=this.info.template.query.getTemplateContext(p.type.reference);h&&(this.result=this.symbolsToCompletions(h.values()))}}else u.key&&s<=u.key.length-n.length&&l()}else if(u.expression&&Lf(s,u.expression.ast.span)||u.key&&s>u.span.start+(u.key.length-n.length)||!u.key){var f=new Eo(0,this.attr.value.length);this.attributeValueCompletions(u.expression?u.expression.ast:new Po(f,new No(f),""),s)}else l()}},t.prototype.visitBoundText=function(e){var t=this.position-e.sourceSpan.start.offset;if(Lf(t,e.value.span)){var n=zf(this.getExpressionScope(),e.value,t,this.info.template.query);n&&(this.result=this.symbolsToCompletions(n))}},t.prototype.attributeValueCompletions=function(e,t){var n=zf(this.getExpressionScope(),e,null==t?this.attributeValuePosition:t,this.info.template.query);n&&(this.result=this.symbolsToCompletions(n))},t.prototype.symbolsToCompletions=function(e){return e.filter(function(e){return!e.name.startsWith("__")&&e.public}).map(function(e){return{kind:e.kind,name:e.name,sort:e.name}})},Object.defineProperty(t.prototype,"attributeValuePosition",{get:function(){return this.attr&&this.attr.valueSpan?this.position-this.attr.valueSpan.start.offset:0},enumerable:!0,configurable:!0}),t}(Za);function cd(e){var t=e.name;e.output&&(t=Bf(t,"Events"),t=Bf(t,"Changed"));var n=[t];return e.input&&(n.unshift("["),n.push("]")),e.output&&(n.unshift("("),n.push(")")),e.template&&n.unshift("*"),n.join("")}var pd=/^(\w+:)?(template$|^\*)/;function hd(e){return e.input&&e.output?[e,{name:e.name,input:!0,output:!1},{name:e.name,input:!1,output:!0}]:[e]}function fd(e){if(e.position){var t=e.position-e.template.span.start,n=qf(e.templateAst,t);if(n.tail){var r=void 0,i=void 0,o=function(o,s){void 0===s&&(s=!1);var a=function u(e){if(e.position)return na(e.htmlAst,e.position-e.template.span.start).first(Xs)}(e);if(a&&Lf(t,Df(a.valueSpan))){var l=Ih(Uf(e),n,s);if(a.valueSpan){var c=a.valueSpan.start.offset,p=Wf(l,o,t-c,e.template.query);p&&(r=p.symbol,i=Ff(p.span,c))}return!0}return!1};if(n.tail.visit({visitNgContent:function(e){},visitEmbeddedTemplate:function(e){},visitElement:function(t){var n=t.directives.find(function(e){return e.directive.isComponent});if(n)r=(r=e.template.query.getTypeSymbol(n.directive.type.reference))&&new vd(r,"component"),i=Df(t);else{var o=t.directives.find(function(e){return null!=e.directive.selector&&e.directive.selector.indexOf(t.name)>=0});o&&(r=(r=e.template.query.getTypeSymbol(o.directive.type.reference))&&new vd(r,"directive"),i=Df(t))}},visitReference:function(t){r=t.value&&e.template.query.getTypeSymbol(sn(t.value)),i=Df(t)},visitVariable:function(e){},visitEvent:function(t){o(t.handler,!0)||(r=(r=function s(e,t,n){var r,i,o=t.first(Wa);if(o)try{for(var s=p(o.directives),a=s.next();!a.done;a=s.next()){var u=a.value,l=dd(u.directive.outputs)[n.name];if(l){var c=e.template.query.getTypeSymbol(u.directive.type.reference);if(c)return c.members().get(l)}}}catch(e){r={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}}(e,n,t))&&new vd(r,"event"),i=Df(t))},visitElementProperty:function(e){o(e.value)},visitAttr:function(e){},visitBoundText:function(o){var s=t-o.sourceSpan.start.offset;if(Lf(s,o.value.span)){var a=Wf(Ih(Uf(e),n,!1),o.value,s,e.template.query);a&&(r=a.symbol,i=Ff(a.span,o.sourceSpan.start.offset))}},visitText:function(e){},visitDirective:function(t){r=e.template.query.getTypeSymbol(t.directive.type.reference),i=Df(t)},visitDirectiveProperty:function(t){o(t.value)||(r=function s(e,t,n){var r,i,o=t.first(Wa);if(o)try{for(var s=p(o.directives),a=s.next();!a.done;a=s.next()){var u=a.value,l=dd(u.directive.inputs)[n.templateName];if(l){var c=e.template.query.getTypeSymbol(u.directive.type.reference);if(c)return c.members().get(l)}}}catch(e){r={error:e}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}}(e,n,t),i=Df(t))}},null),r&&i)return{symbol:r,span:Ff(i,e.template.span.start)}}}}function dd(e){var t,n,r={};try{for(var i=p(Object.keys(e)),o=i.next();!o.done;o=i.next()){var s=o.value;r[e[s]]=s}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}var vd=function(){function e(e,t){this.sym=e,this.kind=t}return Object.defineProperty(e.prototype,"name",{get:function(){return this.sym.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"language",{get:function(){return this.sym.language},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.sym.type},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"container",{get:function(){return this.sym.container},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"public",{get:function(){return this.sym.public},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"callable",{get:function(){return this.sym.callable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nullable",{get:function(){return this.sym.nullable},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"definition",{get:function(){return this.sym.definition},enumerable:!0,configurable:!0}),e.prototype.members=function(){return this.sym.members()},e.prototype.signatures=function(){return this.sym.signatures()},e.prototype.selectSignature=function(e){return this.sym.selectSignature(e)},e.prototype.indexed=function(e){return this.sym.indexed(e)},e}(); /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function md(e){var t=[{text:e.kind},{text:" "},{text:e.name,language:e.language}],n=e.container;return n&&t.push({text:" of "},{text:n.name,language:n.language}),t} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function yd(e){return new gd(e)}var gd=function(){function e(e){this.host=e}return Object.defineProperty(e.prototype,"metadataResolver",{get:function(){return this.host.resolver},enumerable:!0,configurable:!0}),e.prototype.getTemplateReferences=function(){return this.host.getTemplateReferences()},e.prototype.getDiagnostics=function(e){var t=[],n=this.host.getTemplates(e);n&&n.length&&t.push.apply(t,f(this.getTemplateDiagnostics(e,n)));var r=this.host.getDeclarations(e);if(r&&r.length){var i=this.host.getAnalyzedModules();t.push.apply(t,f( /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function o(e,t){var n,r,i=[],o=void 0,s=function(e){var n,r,s=function(t,n){i.push({kind:Mf.Error,span:n||e.declarationSpan,message:t})};try{for(var a=p(e.errors),u=a.next();!u.done;u=a.next()){var l=u.value;s(l.message,l.span)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}if(e.metadata)if(e.metadata.isComponent){t.ngModuleByPipeOrDirective.has(e.type)||s("Component '"+e.type.name+"' is not included in a module and will not be available inside a template. Consider adding it to a NgModule declaration");var c=e.metadata.template,h=c.template,f=c.templateUrl;null!==h||f?h&&f&&s("Component '"+e.type.name+"' must not have both template and templateUrl"):s("Component '"+e.type.name+"' must have a template or templateUrl")}else o||(o=new Set,t.ngModules.forEach(function(e){e.declaredDirectives.forEach(function(e){o.add(e.reference)})})),o.has(e.type)||s("Directive '"+e.type.name+"' is not included in a module and will not be available inside a template. Consider adding it to a NgModule declaration")};try{for(var a=p(e),u=a.next();!u.done;u=a.next())s(u.value)}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return i} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(r,i)))}return function s(e){var t,n;if(e){var r=[],i=new Map;try{for(var o=p(e),s=o.next();!s.done;s=o.next()){var a=s.value,u=a.span,l=i.get(u.start);l||(l=new Set,i.set(u.start,l)),l.has(u.end)||(l.add(u.end),r.push(a))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(t)},e.prototype.getPipesAt=function(e,t){var n=this.host.getTemplateAstAtPosition(e,t);return n?n.pipes:[]},e.prototype.getCompletionsAt=function(e,t){var n=this.host.getTemplateAstAtPosition(e,t);if(n)return function r(e){var t=void 0,n=e.template;if(null!=e.position){var r=e.position-n.span.start,i=na(e.htmlAst,r),o=i.tail;if(i.empty||!o)t=ad(e);else{var a=r-o.sourceSpan.start.offset;o.visit({visitElement:function(n){var o=Df(n.sourceSpan);r<=o.start+n.name.length+1?t=ad(e):r=n.index&&t ");else if("object"==typeof t){var o=[];for(var s in t)if(t.hasOwnProperty(s)){var a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):Fd(a)))}i="{"+o.join(", ")+"}"}return n+(r?"("+r+")":"")+"["+i+"]: "+e.replace(Jd,"\n ")} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var hv=Function;function fv(e){return"function"==typeof e} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var dv=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,vv=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{/,mv=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(/,yv=/^class\s+[A-Za-z\d$_]*\s*extends\s+[^{]+{[\s\S]*constructor\s*\(\)\s*{\s+super\(\.\.\.arguments\)/,gv=function(){function e(e){this._reflect=e||Wd.Reflect}return e.prototype.isReflectionEnabled=function(){return!0},e.prototype.factory=function(e){return function(){for(var t=[],n=0;n0){var n=new Array(t).fill("?");throw new Error("Can't resolve all parameters for "+Fd(e)+": ("+n.join(", ")+").")}var r=function i(e){return e&&e[Dd]?(console.warn('DEPRECATED: DI is instantiating a token "'+e.name+'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in v10. Please add @Injectable() to the "'+e.name+'" class.'),e[Dd]):null}(e);return null!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Lv(e,t,n){return void 0===n&&(n=!1),{factory:e,value:t,multi:n?[]:void 0}}function Fv(e,t){e.forEach(function(e){return Array.isArray(e)?Fv(e,t):t(e)})}function jv(e){return null!==e&&"object"==typeof e&&nv in e}function Vv(e){return"function"==typeof e}var Bv=function Hv(e,t,n){return new Qv(e,t,n)},Uv=function(){function e(){}return e.create=function(e,t){return Array.isArray(e)?Bv(e,t,""):Bv(e.providers,e.parent,e.name||"")},e.THROW_IF_NOT_FOUND=Xd,e.NULL=new lv,e.ngInjectableDef=Md({token:e,providedIn:"any",factory:function(){return sv(Gd)}}),e.__NG_ELEMENT_ID__=-1,e}(),qv=function(e){return e},Kv=[],zv=qv,Wv=function(){return Array.prototype.slice.call(arguments)},Qv=function(){function e(e,t,n){void 0===t&&(t=Uv.NULL),void 0===n&&(n=null),this.parent=t,this.source=n;var r=this._records=new Map;r.set(Uv,{token:Uv,fn:qv,deps:Kv,value:this,useNew:!1}),r.set(Gd,{token:Gd,fn:qv,deps:Kv,value:this,useNew:!1}),function e(t,n){if(n)if((n=Bd(n))instanceof Array)for(var r=0;r1?" ("+ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function t(e){for(var t=[],n=0;n-1)return t.push(e[n]),t;t.push(e[n])}return t}(e.slice().reverse()).map(function(e){return Fd(e.token)}).join(" -> ")+")":""}function em(e,t,n,r){var i=[t],o=n(i),s=r?function a(e,t){var n=e+" caused by: "+(t instanceof Error?t.message:t),r=Error(n);return r[Yv]=t,r}(o,r):Error(o);return s.addKey=tm,s.keys=i,s.injectors=[e],s.constructResolvingMessage=n,s[Yv]=r,s}function tm(e,t){this.injectors.push(e),this.keys.push(t),this.message=this.constructResolvingMessage(this.keys)}function nm(e,t){for(var n=[],r=0,i=t.length;r=this._providers.length)throw function t(e){return Error("Index "+e+" is out-of-bounds.")}(e);return this._providers[e]},e.prototype._new=function(e){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw function t(e,n){return em(e,n,function(e){return"Cannot instantiate cyclic dependency!"+Jv(e)})}(this,e.key);return this._instantiateProvider(e)},e.prototype._getMaxNumberOfObjects=function(){return this.objs.length},e.prototype._instantiateProvider=function(e){if(e.multiProvider){for(var t=new Array(e.resolvedFactories.length),n=0;n=0} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var Om=0,Rm=1,Dm=2,Lm=3,Fm=4,jm=5,Vm=6,Bm=7,Hm=8,Um=9,qm=10,Km=11,zm=12,Wm=13,Qm=14,$m=17,Gm=18,Xm=20; /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var Ym,Zm,Jm,ey=1,ty=2,ny=7,ry=9,iy="__ngContext__"; /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function oy(e){for(;Array.isArray(e);)e=e[Om];return e}function sy(e){return Array.isArray(e)&&"object"==typeof e[ey]}function ay(e){return Array.isArray(e)&&!0===e[ey]}function uy(e){return Array.isArray(e)&&"number"==typeof e[ey]}function ly(e,t){return oy(t[e.index])}function cy(e,t){return t[Rm].data[e+Xm]}function py(e,t){var n=t[e];return sy(n)?n:n[Om]}function hy(e){return 1==(1&e.flags)}function fy(e){return null!==e.template}function dy(e){return e[iy]}function vy(e){var t=dy(e);return t?Array.isArray(t)?t:t.lView:null}function my(e){e[Gm]=0} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function yy(e,t,n,r){n||gy(e,t.preOrderHooks,t.preOrderCheckHooks,n,0,void 0!==r?r:null)}function gy(e,t,n,r,i,o){if(!r){var s=(3&e[Dm])===i?t:n;s&&function a(e,t,n,r){for(var i=null!=r?r:-1,o=0,s=void 0!==r?65535&e[Gm]:0;s=r)break}else t[s]<0&&(e[Gm]+=65536),(o>10>16&&(3&e[Dm])===t&&(e[Dm]+=1024,o.call(s)):o.call(s)} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function by(){return Jm}function wy(){return Ym}function xy(e,t){Ym=e,Zm=t}function Ey(e,t){Ym=e,Jm=t}function Sy(){return Zm}function Cy(e){return void 0===e&&(e=Jm),4==(4&e[Dm])}var Ty=!1;function Ny(){return Ty}function ky(e){Ty=e}function Ay(e,t){var n=Jm;return Ym=t,Zm=!0,Jm=e,n}function Py(e,t){var n=Jm[Rm];if(Cy(Jm))Jm[Dm]&=-5;else try{my(Jm),t&&gy(Jm,n.viewHooks,n.viewCheckHooks,Ty,2,void 0)}finally{Jm[Dm]&=-73,Jm[Bm]=n.bindingStartIndex}Ay(e,null)}var Iy=null,My=!0;function Oy(){return My} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function Ry(e){var t,n,r={};try{for(var i=p(e.split(",")),o=i.next();!o.done;o=i.next())r[o.value]=!0}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}function Dy(){for(var e,t,n=[],r=0;r=0&&-1===i[u]&&(i[u]=n,i[o+1]=r||null)}(i,ng),i}(r)} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function ig(e){return 32767&e}function og(e,t){for(var n=function r(e){return e>>16}(e),i=t;n>0;)i=i[$m],n--;return i} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function sg(e){var t=e[Lm];return ay(t)?t[Lm]:t}function ag(e){for(var t=e[Vm];null!==t&&2===t.type;)t=(e=e[$m])[Vm];return e} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var ug=!0;function lg(e){var t=ug;return ug=e,t}var cg=255,pg=0;function hg(e,t){e.push(0,0,0,0,0,0,0,0,t)}function fg(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+Wy]?-1:e.injectorIndex}function dg(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=t[Vm],r=1;n&&-1===n.injectorIndex;)n=(t=t[$m])?t[Vm]:null,r++;return n?n.injectorIndex|r<<16:-1}function vg(e,t,n,r,i){if(void 0===r&&(r=Td.Default),e){var o=function s(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e[Tm];return"number"==typeof t&&t>0?t&cg:t}(n);if("function"==typeof o){var a=wy(),u=by();Ey(e,t);try{var l=o();if(null!=l||r&Td.Optional)return l;throw new Error("No provider for "+Am(n)+"!")}finally{Ey(a,u)}}else if("number"==typeof o){if(-1===o)return new wg(e,t);var c=null,p=fg(e,t),h=$y,f=r&Td.Host?ag(t)[Vm]:null;for((-1===p||r&Td.SkipSelf)&&(h=-1===p?dg(e,t):t[p+Wy],bg(r,!1)?(c=t[Rm],p=ig(h),t=og(h,t)):p=-1);-1!==p;){h=t[p+Wy];var d=t[Rm];if(_g(o,p,d.data)){var v=yg(p,t,n,c,r,f);if(v!==mg)return v}bg(r,t[Rm].data[p+zy]===f)&&_g(o,p,t)?(c=d,p=ig(h),t=og(h,t)):p=-1}}}if(r&Td.Optional&&void 0===i&&(i=null),0==(r&(Td.Self|Td.Host))){var m=t[qm],y=ov(void 0);try{return m?m.get(n,i,r&Td.Optional):av(n,i,r&Td.Optional)}finally{ov(y)}}if(r&Td.Optional)return i;throw new Error("NodeInjector: NOT_FOUND ["+Am(n)+"]")}var mg={};function yg(e,t,n,r,i,o){var s=t[Rm],a=s.data[e+zy],u=function l(e,t,n,r,i){for(var o=e.providerIndexes,s=t.data,a=65535&o,u=e.directiveStart,l=o>>16,c=i?a+l:e.directiveEnd,p=r?a:a+l;p=u&&h.type===n)return p}if(i){var f=s[u];if(f&&fy(f)&&f.type===n)return u}return null}(a,s,n,null==r?hy(a)&&ug:r!=s&&3===a.type,i&Td.Host&&o===a);return null!==u?gg(s.data,t,u,a):mg}function gg(e,t,n,r){var i=t[n];if(function o(e){return null!==e&&"object"==typeof e&&Object.getPrototypeOf(e)==Gy.prototype} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(i)){var s=i;if(s.resolving)throw new Error("Circular dep for "+Am(e[n]));var a=lg(s.canSeeViewProviders);s.resolving=!0;var u=void 0;s.injectImpl&&(u=ov(s.injectImpl));var l=wy(),c=by();Ey(r,t);try{i=t[n]=s.factory(null,e,t,r)}finally{s.injectImpl&&ov(u),lg(a),s.resolving=!1,Ey(l,c)}}return i}function _g(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<=10?t+0:t])}function Mg(e,t){return e[t+2]}function Og(e,t){return e[t+1]} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var Rg,Dg={marker:"element"},Lg={marker:"comment"};function Fg(){return Rg} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function jg(e,t){return e[t+2]}function Vg(e,t){return 1&e[t+0]}function Bg(e,t){return(1&Vg(e,t))>0}function Hg(e,t){return e[t+0]>>1}function Ug(e,t,n){var r=Vg(e,t);e[t+0]=r|n<<1}function qg(e,t){return e[t+1]}function Kg(e,t,n){return e[t+3+n]}function zg(e,t){return e[t+3+qg(e,t)-1]}function Wg(e){return 5+e[3]}function Qg(e){return null!=e&&""!==e}var $g=function(e,t,n){var r=Fg();return r?!(2&n)||r.sanitize(Ly.STYLE,t):t},Gg=null,Xg=1,Yg=1,Zg=[];function Jg(e,t,n,r,i){if(n){for(var o=!1,s=Wg(e);s=s_.length&&s_.push(1),s_[e]}(l);du,g=!y&&m===u,_=a_(f,d),b=Qg(_),w=e(t,n,r,i,o,s,y?a:i_(a,b,g),y?u:m,l+1,c);if(y)break;if(!w&&o_(a,g)){var x=g&&!b,E=x?c:_,S=x?h:null;o(n,r,m,s?s(m,E,3):E,S),w=!0}p=w&&g,d+=2}!function C(e,t){s_[e]=t}(l,d)}return p}(e,t,n,r,i,o,s,a||null,0,u||null)),p&&function h(){for(var e=0;e0;return n?4&e&&t&&(n=!1):2&e&&(n=t),n}var s_=[];function a_(e,t){return e[t+1]}function u_(e){if(e){var t=e.debug;return function n(e,t){null==e&&function n(e){throw new Error("ASSERTION ERROR: "+e)}(t)}(t,"Object does not have a debug representation."),t}return e}function l_(e,t){void 0===t&&(t=!1);var n=oy(e);if(n){var r=n.nodeType===Node.TEXT_NODE,i=(r?n.textContent:n.outerHTML)||"";return t||r?i:i.split(n.innerHTML)[0]||null}return null}function c_(e){for(;Array.isArray(e);){if(e.length>=Xm-1)return e;e=e[Om]}return null}!function(){function e(e){this.context=e}Object.defineProperty(e.prototype,"isLocked",{get:function(){return function e(t){return(1& /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function n(e){return e[0]}(t))>0}(this.context)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"entries",{get:function(){for(var e=this.context,t={},n=2;n0&&function t(){!function e(t){n_=t}(r_)}();var n=this._isClassBased?null:this._sanitizer||function r(e){var t=Fg()||e[Wm];return t&&"function"!=typeof t?(function n(e){Rg=e}(t),$g):t}(this._data);!function i(e,t,n,r,o,s,a){Zg.length&&function u(){for(var e=0;e0?1:0,d=Wg(e);d>10}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return u_(this._raw_lView[Lm])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"host",{get:function(){return l_(this._raw_lView[Om],!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._raw_lView[Um]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"nodes",{get:function(){var e=this._raw_lView;return function e(t,n){if(t){for(var r=[],i=t;i;){var o=n[t.index],s=oy(o),a=uy(o)?null:u_(c_(o));r.push({html:l_(s),native:s,styles:null,classes:null,nodes:e(t.child,n),component:a}),i=i.next}return r}return null}(e[Rm].firstChild,e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"__other__",{get:function(){return{tView:this._raw_lView[Rm],cleanup:this._raw_lView[Hm],injector:this._raw_lView[qm],rendererFactory:this._raw_lView[Km],renderer:this._raw_lView[zm],sanitizer:this._raw_lView[Wm],childHead:u_(this._raw_lView[Qm]),next:u_(this._raw_lView[Fm]),childTail:u_(this._raw_lView[15]),declarationView:u_(this._raw_lView[$m]),contentQueries:this._raw_lView[16],queries:this._raw_lView[jm],tHost:this._raw_lView[Vm],bindingIndex:this._raw_lView[Bm]}},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"childViews",{get:function(){for(var e=[],t=this.__other__.childHead;t;)e.push(t),t=t.__other__.next;return e},enumerable:!0,configurable:!0})}(),function(){function e(e){this._raw_lContainer=e}Object.defineProperty(e.prototype,"activeIndex",{get:function(){return this._raw_lContainer[ty]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"views",{get:function(){return this._raw_lContainer.slice(ry).map(u_)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parent",{get:function(){return u_(this._raw_lContainer[Lm])},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"queries",{get:function(){return this._raw_lContainer[jm]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"host",{get:function(){return this._raw_lContainer[Om]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"native",{get:function(){return this._raw_lContainer[ny]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"__other__",{get:function(){return{next:u_(this._raw_lContainer[Fm])}},enumerable:!0,configurable:!0})}();var p_=function(){function e(e,t,n,r){this.__raw_opCode=e,this._lView=t,this.nodeIndex=n,this.type=r}return Object.defineProperty(e.prototype,"tNode",{get:function(){return cy(this.nodeIndex,this._lView)},enumerable:!0,configurable:!0}),e}();function h_(e){var t=e[Rm],n=Cy(e);if(t.firstTemplatePass=!1,e[Bm]=t.bindingStartIndex,!n){var r=Ny();yy(e,t,r,void 0),function i(e){for(var t=e[Qm];null!==t;t=t[Fm])if(-1===t[ty]&&ay(t))for(var n=ry;n>>17,"AppendChild");break;case 0:o=new p_(i,e,i>>>3,"Select");break;case 5:var s=i>>>3;o=new p_(i,e,s,"ElementEnd");break;case 4:(o=new p_(i,e,s=i>>>3,"Attr")).attrName=t[++r],o.attrValue=t[++r]}if(!o)switch(i){case Lg:o={__raw_opCode:i,type:"COMMENT_MARKER",commentValue:t[++r],nodeIndex:t[++r]};break;case Dg:o={__raw_opCode:i,type:"ELEMENT_MARKER"}}o||(o={__raw_opCode:i,type:"Unknown Op Code",code:i}),n.push(o)}return n},enumerable:!0,configurable:!0}),Object.defineProperty(function N_(e,t,n){this.__raw_opCodes=e,this.icus=t,this.__lView=n}.prototype,"operations",{get:function(){for(var e=this.__lView,t=this.__raw_opCodes,n=this.icus,r=[],i=0;i>>2,p=void 0,h=void 0;switch(3&l){case 1:var f=t[++u],d=t[++u];r.push({__raw_opCode:l,checkBit:o,type:"Attr",attrValue:a,attrName:f,sanitizeFn:d});break;case 0:r.push({__raw_opCode:l,checkBit:o,type:"Text",nodeIndex:c,text:a});break;case 2:h=n[p=t[++u]];var v=new p_(l,e,c,"IcuSwitch");v.tIcuIndex=p,v.checkBit=o,v.mainBinding=a,v.tIcu=h,r.push(v);break;case 3:h=n[p=t[++u]],(v=new p_(l,e,c,"IcuUpdate")).tIcuIndex=p,v.checkBit=o,v.tIcu=h,r.push(v)}}}i+=s}return r},enumerable:!0,configurable:!0});var k_=Promise.resolve(null),A_=null;function P_(){if(!A_){var e=Wd.Symbol;if(e&&e.iterator)A_=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n=0?n[s]():n[-s].unsubscribe(),r+=2}else t[r].call(n[t[r+1]]);e[Hm]=null}}(e);var r=e[Vm];r&&3===r.type&&Xy(e[zm])&&e[zm].destroy(),function i(e){return ay(e[Lm])}(e)&&e[jm]&&e[jm].removeView()}}function V_(e,t,n,r,i){for(var o=n[Rm].node.child;null!==o;)B_(e,t,n,o,r,i),o=o.next}function B_(e,t,n,r,i,o){var s=r.type;4===s?function a(e,t,n,r,i,o){L_(t,e,i,n[r.index],o);for(var s=r.child;s;)B_(e,t,n,s,i,o),s=s.next}(e,t,n,r,i,o):1===s?function u(e,t,n,r,i,o){var s=ag(n),a=s[Vm].projection[r.projection];if(Array.isArray(a))for(var u=0;u=0){var g;Jy(g=oy(n[y]),h=Zy(n,y,g)),t=h;break}}}return t||null}(e);if(!n&&t)throw new Error("Invalid ng target");return n}function q_(e){if(!(e instanceof Node))throw new Error("Expecting instance of DOM Node");return U_(e)}function K_(e){return"boolean"==typeof e.useCapture}function z_(e,t){return e.name==t.name?0:e.name=0&&(!n.preOrderHooks||o===n.preOrderHooks.length)&&(a||u||l)&&(n.preOrderHooks||(n.preOrderHooks=[])).push(r),s>=0&&(!n.preOrderCheckHooks||s===n.preOrderCheckHooks.length)&&(a||l)&&(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(r),a&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,a),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,a)),u&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,u),l&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,l),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,l))}(r,t,n,-1,-1,-1),function o(e,t){if(e.firstTemplatePass)for(var n=t.directiveStart,r=t.directiveEnd;n-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}!function t(e){if(!(256&e[Dm])){var t=e[zm];Xy(t)&&t.destroyNode&&V_(t,2,e,null,null),function n(e){var t=e[Qm];if(!t)return j_(e);for(;t;){var n=null;if(sy(t))n=t[Qm];else{var r=t[ry];r&&(n=r)}if(!n){for(;t&&!t[Fm]&&t!==e;)j_(t),t=F_(t,e);j_(t||e),n=t&&t[Fm]}t=n}}(e)}}(this._lView)},e.prototype.onDestroy=function(e){!function t(e,n){(function r(e){return e[Hm]||(e[Hm]=[])})(e).push(n),e[Rm].firstTemplatePass&&function i(e){return e[Rm].cleanup||(e[Rm].cleanup=[])}(e).push(e[Hm].length-1,null)}(this._lView,e)},e.prototype.markForCheck=function(){!function e(t){for(;t;){t[Dm]|=64;var n=sg(t);if(0!=(512&t[Dm])&&!n)return t;t=n}}(this._lView)},e.prototype.detach=function(){this._lView[Dm]&=-129},e.prototype.reattach=function(){this._lView[Dm]|=128},e.prototype.detectChanges=function(){x_(this._lView,this.context)},e.prototype.checkNoChanges=function(){!function e(t,n){ky(!0);try{x_(t,n)}finally{ky(!1)}}(this._lView,this.context)},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e.prototype.detachFromAppRef=function(){this._appRef=null,function e(t){V_(t[zm],1,t,null,null)}(this._lView)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype._lookUpContext=function(){return this._context=sg(this._lView)[this._componentIndex]},e}()); /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function ib(){for(var e=[],t=0;t-1}(e,t.providedIn)||"root"===t.providedIn&&e._def.isRoot)}(e,o)){var l=e._providers.length;return e._def.providers[l]=e._def.providersByKey[t.tokenKey]={flags:5120,value:o.factory,deps:[],index:l,token:t.token},e._providers[l]=yw,e._providers[l]=xw(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{iv(r)}}function xw(e,t){var n;switch(201347067&t.flags){case 512:n=function r(e,t,n){var r=n.length;switch(r){case 0:return new t;case 1:return new t(ww(e,n[0]));case 2:return new t(ww(e,n[0]),ww(e,n[1]));case 3:return new t(ww(e,n[0]),ww(e,n[1]),ww(e,n[2]));default:for(var i=new Array(r),o=0;o=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,Nw(n,t),zb.dirtyParentQueries(r),Cw(r),r}function Sw(e,t,n){var r=t?rw(t,t.def.lastRenderRootNode):e.renderElement,i=n.renderer.parentNode(r),o=n.renderer.nextSibling(r);cw(n,2,i,o,void 0)}function Cw(e){cw(e,3,null,null,void 0)}function Tw(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Nw(e,t){t>=e.length-1?e.pop():e.splice(t,1)} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var kw=new Object;!function(e){function t(t,n,r,i,o,s){var a=e.call(this)||this;return a.selector=t,a.componentType=n,a._inputs=i,a._outputs=o,a.ngContentSelectors=s,a.viewDefFactory=r,a}o(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var i=lw(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,s=zb.createRootView(e,t||[],n,i,r,kw),a=Ub(s,o).instance;return n&&s.renderer.setAttribute(Hb(s,0).renderElement,"ng-version",fb.full),new Aw(s,new Ow(s),a)}}(Y_);var Aw=function(e){function t(t,n,r){var i=e.call(this)||this;return i._view=t,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return o(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new sb(Hb(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Fw(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(X_);function Pw(e,t,n){return new Iw(e,t,n)}var Iw=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new sb(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Fw(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=nw(e),e=e.parent;return e?new Fw(e,t):new Fw(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=Ew(this._data,e);zb.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new Ow(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,i){var o=n||this.parentInjector;i||e instanceof eb||(i=o.get(tb));var s=e.create(o,r,void 0,i);return this.insert(s.hostView,t),s},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=e; /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ return function r(e,t,n,i){var o=t.viewContainer._embeddedViews;null==n&&(n=o.length),i.viewContainerParent=e,Tw(o,n,i),function s(e,t){var n=tw(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function i(e,t){if(!(4&t.flags)){e.nodeFlags|=4,t.flags|=4;for(var n=t.parent;n;)n.childFlags|=4,n=n.parent}}(t.parent.def,t.parentNodeDef)}}(t,i),zb.dirtyParentQueries(i),Sw(t,n>0?o[n-1]:null,i)}(this._view,this._data,t,n._view),n.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n=this._embeddedViews.indexOf(e._view);return function r(e,t,n){var r=e.viewContainer._embeddedViews,i=r[t];Nw(r,t),null==n&&(n=r.length),Tw(r,n,i),zb.dirtyParentQueries(i),Cw(i),Sw(e,n>0?r[n-1]:null,i)}(this._data,n,t),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=Ew(this._data,e);t&&zb.destroyView(t)},e.prototype.detach=function(e){var t=Ew(this._data,e);return t?new Ow(t):null},e}();function Mw(e){return new Ow(e)}var Ow=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return function e(t){var n=[];return cw(t,0,void 0,void 0,n),n}(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){Zb(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{zb.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){zb.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),zb.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Cw(this._view),zb.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function Rw(e,t){return new Dw(e,t)}var Dw=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return o(t,e),t.prototype.createEmbeddedView=function(e){return new Ow(zb.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new sb(Hb(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(Ib);function Lw(e,t){return new Fw(e,t)}var Fw=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=Uv.THROW_IF_NOT_FOUND),zb.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:$b(e)},t)},e}();function jw(e){return new Vw(e.renderer)}var Vw=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=h(mw(t),2),r=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,r),r},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var i=0;i0,r=t.provider;switch(201347067&t.flags){case 512:return tx(e,t.parent,n,r.value,r.deps);case 1024:return function i(e,t,n,r,o){var s=o.length;switch(s){case 0:return r();case 1:return r(rx(e,t,n,o[0]));case 2:return r(rx(e,t,n,o[0]),rx(e,t,n,o[1]));case 3:return r(rx(e,t,n,o[0]),rx(e,t,n,o[1]),rx(e,t,n,o[2]));default:for(var a=Array(s),u=0;u{throw e})}const Sx={closed:!0,next(e){},error(e){if(xx.useDeprecatedSynchronousErrorHandling)throw e;Ex(e)},complete(){}},Cx=Array.isArray||(e=>e&&"number"==typeof e.length);function Tx(e){return null!==e&&"object"==typeof e}function Nx(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((e,t)=>`${t+1}) ${e.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}Nx.prototype=Object.create(Error.prototype);const kx=Nx;class Ax{constructor(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}unsubscribe(){let e,t=!1;if(this.closed)return;let{_parent:n,_parents:r,_unsubscribe:i,_subscriptions:o}=this;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;let s=-1,a=r?r.length:0;for(;n;)n.remove(this),n=++se.concat(t instanceof kx?t.errors:t),[])}Ax.EMPTY=function(e){return e.closed=!0,e}(new Ax);const Ix="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class Mx extends Ax{constructor(e,t,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Sx;break;case 1:if(!e){this.destination=Sx;break}if("object"==typeof e){e instanceof Mx?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Ox(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Ox(this,e,t,n)}}[Ix](){return this}static create(e,t,n){const r=new Mx(e,t,n);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parent:e,_parents:t}=this;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this}}class Ox extends Mx{constructor(e,t,n,r){let i;super(),this._parentSubscriber=e;let o=this;bx(t)?i=t:t&&(i=t.next,n=t.error,r=t.complete,t!==Sx&&(bx((o=Object.create(t)).unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=i,this._error=n,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;xx.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:n}=xx;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):Ex(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Ex(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);xx.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),xx.useDeprecatedSynchronousErrorHandling)throw e;Ex(e)}}__tryOrSetError(e,t,n){if(!xx.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(t){return xx.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=t,e.syncErrorThrown=!0,!0):(Ex(t),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Rx="function"==typeof Symbol&&Symbol.observable||"@@observable";function Dx(){}class Lx{constructor(e){this._isScalar=!1,e&&(this._subscribe=e)}lift(e){const t=new Lx;return t.source=this,t.operator=e,t}subscribe(e,t,n){const{operator:r}=this,i=function o(e,t,n){if(e){if(e instanceof Mx)return e;if(e[Ix])return e[Ix]()}return e||t||n?new Mx(e,t,n):new Mx(Sx)}(e,t,n);if(i.add(r?r.call(i,this.source):this.source||xx.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),xx.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(e){try{return this._subscribe(e)}catch(t){xx.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function t(e){for(;e;){const{closed:t,destination:n,isStopped:r}=e;if(t||r)return!1;e=n&&n instanceof Mx?n:null}return!0}(e)?e.error(t):console.warn(t)}}forEach(e,t){return new(t=Fx(t))((t,n)=>{let r;r=this.subscribe(t=>{try{e(t)}catch(e){n(e),r&&r.unsubscribe()}},n,t)})}_subscribe(e){const{source:t}=this;return t&&t.subscribe(e)}[Rx](){return this}pipe(...e){return 0===e.length?this:function t(e){return e?1===e.length?e[0]:function t(n){return e.reduce((e,t)=>t(e),n)}:Dx}(e)(this)}toPromise(e){return new(e=Fx(e))((e,t)=>{let n;this.subscribe(e=>n=e,e=>t(e),()=>e(n))})}}function Fx(e){if(e||(e=Promise),!e)throw new Error("no Promise impl found");return e}function jx(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}Lx.create=(e=>new Lx(e)),jx.prototype=Object.create(Error.prototype);const Vx=jx;class Bx extends Ax{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}class Hx extends Mx{constructor(e){super(e),this.destination=e}}class Ux extends Lx{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Ix](){return new Hx(this)}lift(e){const t=new qx(this,this);return t.operator=e,t}next(e){if(this.closed)throw new Vx;if(!this.isStopped){const{observers:t}=this,n=t.length,r=t.slice();for(let t=0;tnew qx(e,t));class qx extends Ux{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):Ax.EMPTY}}function Kx(){return function e(t){return t.lift(new zx(t))}}class zx{constructor(e){this.connectable=e}call(e,t){const{connectable:n}=this;n._refCount++;const r=new Wx(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}class Wx extends Mx{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:n}=this,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}const Qx=class extends Lx{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new Ax).add(this.source.subscribe(new Gx(this.getSubject(),this))),e.closed?(this._connection=null,e=Ax.EMPTY):this._connection=e),e}refCount(){return Kx()(this)}}.prototype,$x={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:Qx._subscribe},_isComplete:{value:Qx._isComplete,writable:!0},getSubject:{value:Qx.getSubject},connect:{value:Qx.connect},refCount:{value:Qx.refCount}};class Gx extends Hx{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}class Xx extends Ax{constructor(e,t){super()}schedule(e,t=0){return this}}class Yx extends Xx{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,n=0){return setInterval(e.flush.bind(e,this),n)}recycleAsyncId(e,t,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let n=!1,r=void 0;try{this.work(e)}catch(e){n=!0,r=!!e&&e||new Error(e)}if(n)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}class Zx{constructor(e,t=Zx.now){this.SchedulerAction=e,this.now=t}schedule(e,t=0,n){return new this.SchedulerAction(this,e).schedule(n,t)}}Zx.now=(()=>Date.now());class Jx extends Zx{constructor(e,t=Zx.now){super(e,()=>Jx.delegate&&Jx.delegate!==this?Jx.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,n){return Jx.delegate&&Jx.delegate!==this?Jx.delegate.schedule(e,t,n):super.schedule(e,t,n)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}}new class extends Jx{}(class extends Yx{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(e,t,n):e.flush(this)}});const eE=e=>t=>{for(let n=0,r=e.length;n{const r=new Ax;let i=0;return r.add(t.schedule(function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()})),r}:eE(e))}var nE;!function(e){e.NEXT="N",e.ERROR="E",e.COMPLETE="C"}(nE||(nE={}));let rE=1;const iE={},oE={setImmediate(e){const t=rE++;return iE[t]=e,Promise.resolve().then(()=>(function e(t){const n=iE[t];n&&n()})(t)),t},clearImmediate(e){delete iE[e]}};function sE(e){return e}new class extends Jx{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,r=-1,i=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++r0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=oE.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(oE.clearImmediate(t),e.scheduled=void 0)}}),new Jx(Yx),new class extends Jx{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let n,r=-1,i=t.length;e=e||t.shift();do{if(n=e.execute(e.state,e.delay))break}while(++r0?super.requestAsyncId(e,t,n):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,n=0){if(null!==n&&n>0||null===n&&this.delay>0)return super.recycleAsyncId(e,t,n);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});class aE{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new uE(e,this.project,this.thisArg))}}class uE extends Mx{constructor(e,t,n){super(e),this.project=t,this.count=0,this.thisArg=n||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)}}class lE extends Mx{notifyNext(e,t,n,r,i){this.destination.next(t)}notifyError(e,t){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class cE extends Mx{constructor(e,t,n){super(),this.parent=e,this.outerValue=t,this.outerIndex=n,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}const pE=e=>t=>(e.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,Ex),t),hE=function fE(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),dE=e=>t=>{const n=e[hE]();for(;;){const e=n.next();if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t},vE=e=>t=>{const n=e[Rx]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)},mE=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function yE(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}const gE=e=>{if(e instanceof Lx)return t=>e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t);if(e&&"function"==typeof e[Rx])return vE(e);if(mE(e))return eE(e);if(yE(e))return pE(e);if(e&&"function"==typeof e[hE])return dE(e);{const t=Tx(e)?"an invalid object":`'${e}'`;throw new TypeError(`You provided ${t} where a stream was expected.`+" You can provide an Observable, Promise, Array, or Iterable.")}};class _E{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new bE(e,this.project,this.concurrent))}}class bE extends lE{constructor(e,t,n=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var wE=function(e){function t(t){void 0===t&&(t=!1);var n=e.call(this)||this;return n.__isAsync=t,n}return o(t,e),t.prototype.emit=function(t){e.prototype.next.call(this,t)},t.prototype.subscribe=function(t,n,r){var i,o=function(e){return null},s=function(){return null};t&&"object"==typeof t?(i=this.__isAsync?function(e){setTimeout(function(){return t.next(e)})}:function(e){t.next(e)},t.error&&(o=this.__isAsync?function(e){setTimeout(function(){return t.error(e)})}:function(e){t.error(e)}),t.complete&&(s=this.__isAsync?function(){setTimeout(function(){return t.complete()})}:function(){t.complete()})):(i=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)},n&&(o=this.__isAsync?function(e){setTimeout(function(){return n(e)})}:function(e){n(e)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var a=e.prototype.subscribe.call(this,i,o,s);return t instanceof Ax&&t.add(a),a},t}(Ux); /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function xE(){return this._results[P_()]()}var EE=function(){function e(){this.dirty=!0,this._results=[],this.changes=new wE,this.length=0;var t=P_(),n=e.prototype;n[t]||(n[t]=xE)}return e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results= /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function e(t,n){void 0===n&&(n=t);for(var r=0;r0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==i}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})},e.prototype.whenStable=function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findProviders=function(e,t,n){return[]},u([Sv(),c("design:paramtypes",[aS])],e)}(),vS=function(){function e(){this._applications=new Map,mS.addToWindow(this)}return e.prototype.registerApplication=function(e,t){this._applications.set(e,t)},e.prototype.unregisterApplication=function(e){this._applications.delete(e)},e.prototype.unregisterAllApplications=function(){this._applications.clear()},e.prototype.getTestability=function(e){return this._applications.get(e)||null},e.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},e.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},e.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),mS.findTestabilityInTree(this,e,t)},u([Sv(),c("design:paramtypes",[])],e)}(),mS=new(function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}()); /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */new $d("AllowMultipleToken");var yS=function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return e.prototype.bootstrapModuleFactory=function(e,t){var n=this,r=function i(e){return"noop"===e?new fS:("zone.js"===e?void 0:e)||new aS({enableLongStackTrace:Oy()})}(t?t.ngZone:void 0),o=[{provide:aS,useValue:r}];return r.run(function(){var t=Uv.create({providers:o,parent:n.injector,name:e.moduleType.name}),i=e.create(t),s=i.injector.get(Cg,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return mx(i.injector.get(UE,"en-US")),i.onDestroy(function(){return bS(n._modules,i)}),r.runOutsideAngular(function(){return r.onError.subscribe({next:function(e){s.handleError(e)}})}),function a(e,t,n){try{var r=n();return H_(r)?r.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):r}catch(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}}(s,r,function(){var e=i.injector.get(RE);return e.runInitializers(),e.donePromise.then(function(){return n._moduleDoBootstrap(i),i})})})},e.prototype.bootstrapModule=function(e,t){var n=this;void 0===t&&(t=[]);var r=gS({},t);return function i(e,t,n){return e.get(YE).createCompiler([t]).compileModuleAsync(n)}(this.injector,r,e).then(function(e){return n.bootstrapModuleFactory(e,r)})},e.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(_S);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+Fd(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)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),u([Sv(),c("design:paramtypes",[Uv])],e)}();function gS(e,t){return Array.isArray(t)?t.reduce(gS,e):a({},e,t)}var _S=function(){function e(e,t,n,r,i,o){var s=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=i,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Oy(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var a=new Lx(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),u=new Lx(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){aS.assertNotInAngularZone(),sS(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){aS.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=function c(...e){let t=Number.POSITIVE_INFINITY,n=null,r=e[e.length-1];return function i(e){return e&&"function"==typeof e.schedule}(r)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(t=e.pop())):"number"==typeof r&&(t=e.pop()),null===n&&1===e.length&&e[0]instanceof Lx?e[0]:function o(e=Number.POSITIVE_INFINITY){return function e(t,n,r=Number.POSITIVE_INFINITY){return"function"==typeof n?i=>i.pipe(e((e,r)=>(function o(e,t){if(!t)return e instanceof Lx?e:new Lx(gE(e));if(null!=e){if(function n(e){return e&&"function"==typeof e[Rx]}(e))return function r(e,t){return new Lx(t?n=>{const r=new Ax;return r.add(t.schedule(()=>{const i=e[Rx]();r.add(i.subscribe({next(e){r.add(t.schedule(()=>n.next(e)))},error(e){r.add(t.schedule(()=>n.error(e)))},complete(){r.add(t.schedule(()=>n.complete()))}}))})),r}:vE(e))}(e,t);if(yE(e))return function i(e,t){return new Lx(t?n=>{const r=new Ax;return r.add(t.schedule(()=>e.then(e=>{r.add(t.schedule(()=>{n.next(e),r.add(t.schedule(()=>n.complete()))}))},e=>{r.add(t.schedule(()=>n.error(e)))}))),r}:pE(e))}(e,t);if(mE(e))return tE(e,t);if(function o(e){return e&&"function"==typeof e[hE]}(e)||"string"==typeof e)return function s(e,t){if(!e)throw new Error("Iterable cannot be null");return new Lx(t?n=>{const r=new Ax;let i;return r.add(()=>{i&&"function"==typeof i.return&&i.return()}),r.add(t.schedule(()=>{i=e[hE](),r.add(t.schedule(function(){if(n.closed)return;let e,t;try{const r=i.next();e=r.value,t=r.done}catch(e){return void n.error(e)}t?n.complete():(n.next(e),this.schedule())}))})),r}:dE(e))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")})(t(e,r)).pipe(function i(e,t){return function n(r){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new aE(e,t))}}((t,i)=>n(e,t,r,i))),r)):("number"==typeof n&&(r=n),e=>e.lift(new _E(t,r)))}(sE,e)}(t)(tE(e,n))}(a,u.pipe(function l(){return e=>Kx()( /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function t(e,n){return function t(r){let i;if(i="function"==typeof e?e:function t(){return e},"function"==typeof n)return r.lift(new IE(i,n));const o=Object.create(r,$x);return o.source=r,o.subjectFactory=i,o}}(ME)(e))}()))}var t;return t=e,e.prototype.bootstrap=function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof Y_?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=function o(e){return e instanceof eb}(n)?null:this._injector.get(tb),s=n.create(Uv.NULL,[],t||n.selector,i);s.onDestroy(function(){r._unloadComponent(s)});var a=s.injector.get(dS,null);return a&&s.injector.get(vS).registerApplication(s.location.nativeElement,a),this._loadComponent(s),Oy()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s},e.prototype.tick=function(){var e,n,r,i,o=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var s=t._tickScope();try{this._runningTick=!0;try{for(var a=p(this._views),u=a.next();!u.done;u=a.next())u.value.detectChanges()}catch(t){e={error:t}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(e)throw e.error}}if(this._enforceNoNewChanges)try{for(var l=p(this._views),c=l.next();!c.done;c=l.next())c.value.checkNoChanges()}catch(e){r={error:e}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}}catch(e){this._zone.runOutsideAngular(function(){return o._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,rS(s)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;bS(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(BE,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),bS(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=tS("ApplicationRef#tick()"),t=u([Sv(),c("design:paramtypes",[aS,HE,Uv,Cg,J_,RE])],e)}();function bS(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */var wS,xS=function xS(){},ES={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"};function SS(e,t,n){if(!e)throw new Error("Cannot find '"+n+"' in '"+t+"'");return e} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */!function(){function e(e,t){this._compiler=e,this._config=t||ES}e.prototype.load=function(e){return this._compiler instanceof XE?this.loadFactory(e):this.loadAndCompile(e)},e.prototype.loadAndCompile=function(e){var t=this,n=h(e.split("#"),2),r=n[0],i=n[1];return void 0===i&&(i="default"),System.import(r).then(function(e){return e[i]}).then(function(e){return SS(e,r,i)}).then(function(e){return t._compiler.compileModuleAsync(e)})},e.prototype.loadFactory=function(e){var t=h(e.split("#"),2),n=t[0],r=t[1],i="NgFactory";return void 0===r&&(r="default",i=""),System.import(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(e){return e[r+i]}).then(function(e){return SS(e,n,r)})},e=u([Sv(),l(1,kd()),c("design:paramtypes",[XE,xS])],e)}(),wS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(Tb),o(function CS(){return null!==wS&&wS.apply(this,arguments)||this},wS);var TS=function TS(e,t){this.name=e,this.callback=t},NS=function(){function e(e,t,n){this.listeners=[],this.parent=null,this._debugContext=n,this.nativeNode=e,t&&t instanceof kS&&t.addChild(this)}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),kS=function(e){function t(t,n,r){var i=e.call(this,t,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=t,i}return o(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,r=this,i=this.childNodes.indexOf(e);-1!==i&&((n=this.childNodes).splice.apply(n,f([i+1,0],t)),t.forEach(function(t){t.parent&&t.parent.removeChild(t),e.parent=r}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return AS(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return PS(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(NS);function AS(e,t,n){e.childNodes.forEach(function(e){e instanceof kS&&(t(e)&&n.push(e),AS(e,t,n))})}function PS(e,t,n){e instanceof kS&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof kS&&PS(e,t,n)})}var IS=function(){function e(e){this.nativeNode=e}return Object.defineProperty(e.prototype,"parent",{get:function(){var e=this.nativeNode.parentNode;return e?new MS(e):null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return function e(t){var n=U_(t);return new wg(n.lView[Rm].data[n.nodeIndex],n.lView)}(this.nativeNode)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){var e=this.nativeNode;return e&&( /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function t(e){var t=q_(e);return void 0===t.component&&(t.component=function n(e,t){var n=t[Rm].data[e];return 1&n.flags?t[n.directiveStart]:null}(t.nodeIndex,t.lView)),t.component}(e)||function n(e){for(var t,n=U_(e).lView;null===n[Om]&&(t=sg(n));)n=t;return 512&n[Dm]?null:n[Um]}(e))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return function e(t){return q_(t).lView[Um]}(this.nativeNode)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"listeners",{get:function(){return function e(t){var n=q_(t).lView,r=n[Hm],i=n[Rm].cleanup,o=[];if(i&&r)for(var s=0;s=0)&&null})}}return o.sort(z_),o}(this.nativeNode).filter(K_)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return function e(t){var n=U_(t);return void 0===n.localRefs&&(n.localRefs=function r(e,t){var n=e[Rm].data[t];if(n&&n.localNames){for(var r={},i=n.index+1,o=0;o0&&JS(e,t,0,n)&&(f=!0),h>1&&JS(e,t,1,r)&&(f=!0),h>2&&JS(e,t,2,i)&&(f=!0),h>3&&JS(e,t,3,o)&&(f=!0),h>4&&JS(e,t,4,s)&&(f=!0),h>5&&JS(e,t,5,a)&&(f=!0),h>6&&JS(e,t,6,u)&&(f=!0),h>7&&JS(e,t,7,l)&&(f=!0),h>8&&JS(e,t,8,c)&&(f=!0),h>9&&JS(e,t,9,p)&&(f=!0),f}(e,t,n,r,i,o,s,a,u,l,c,p);case 2:return function f(e,t,n,r,i,o,s,a,u,l,c,p){var h=!1,f=t.bindings,d=f.length;if(d>0&&Xb(e,t,0,n)&&(h=!0),d>1&&Xb(e,t,1,r)&&(h=!0),d>2&&Xb(e,t,2,i)&&(h=!0),d>3&&Xb(e,t,3,o)&&(h=!0),d>4&&Xb(e,t,4,s)&&(h=!0),d>5&&Xb(e,t,5,a)&&(h=!0),d>6&&Xb(e,t,6,u)&&(h=!0),d>7&&Xb(e,t,7,l)&&(h=!0),d>8&&Xb(e,t,8,c)&&(h=!0),d>9&&Xb(e,t,9,p)&&(h=!0),h){var v=t.text.prefix;d>0&&(v+=sC(n,f[0])),d>1&&(v+=sC(r,f[1])),d>2&&(v+=sC(i,f[2])),d>3&&(v+=sC(o,f[3])),d>4&&(v+=sC(s,f[4])),d>5&&(v+=sC(a,f[5])),d>6&&(v+=sC(u,f[6])),d>7&&(v+=sC(l,f[7])),d>8&&(v+=sC(c,f[8])),d>9&&(v+=sC(p,f[9]));var m=Bb(e,t.nodeIndex).renderText;e.renderer.setValue(m,v)}return h}(e,t,n,r,i,o,s,a,u,l,c,p);case 16384:return function d(e,t,n,r,i,o,s,a,u,l,c,p){var h=Ub(e,t.nodeIndex),f=h.instance,d=!1,v=void 0,m=t.bindings.length;return m>0&&Gb(e,t,0,n)&&(d=!0,v=ox(e,h,t,0,n,v)),m>1&&Gb(e,t,1,r)&&(d=!0,v=ox(e,h,t,1,r,v)),m>2&&Gb(e,t,2,i)&&(d=!0,v=ox(e,h,t,2,i,v)),m>3&&Gb(e,t,3,o)&&(d=!0,v=ox(e,h,t,3,o,v)),m>4&&Gb(e,t,4,s)&&(d=!0,v=ox(e,h,t,4,s,v)),m>5&&Gb(e,t,5,a)&&(d=!0,v=ox(e,h,t,5,a,v)),m>6&&Gb(e,t,6,u)&&(d=!0,v=ox(e,h,t,6,u,v)),m>7&&Gb(e,t,7,l)&&(d=!0,v=ox(e,h,t,7,l,v)),m>8&&Gb(e,t,8,c)&&(d=!0,v=ox(e,h,t,8,c,v)),m>9&&Gb(e,t,9,p)&&(d=!0,v=ox(e,h,t,9,p,v)),v&&f.ngOnChanges(v),65536&t.flags&&Vb(e,256,t.nodeIndex)&&f.ngOnInit(),262144&t.flags&&f.ngDoCheck(),d}(e,t,n,r,i,o,s,a,u,l,c,p);case 32:case 64:case 128:return function v(e,t,n,r,i,o,s,a,u,l,c,p){var h=t.bindings,f=!1,d=h.length;if(d>0&&Xb(e,t,0,n)&&(f=!0),d>1&&Xb(e,t,1,r)&&(f=!0),d>2&&Xb(e,t,2,i)&&(f=!0),d>3&&Xb(e,t,3,o)&&(f=!0),d>4&&Xb(e,t,4,s)&&(f=!0),d>5&&Xb(e,t,5,a)&&(f=!0),d>6&&Xb(e,t,6,u)&&(f=!0),d>7&&Xb(e,t,7,l)&&(f=!0),d>8&&Xb(e,t,8,c)&&(f=!0),d>9&&Xb(e,t,9,p)&&(f=!0),f){var v=qb(e,t.nodeIndex),m=void 0;switch(201347067&t.flags){case 32:m=new Array(h.length),d>0&&(m[0]=n),d>1&&(m[1]=r),d>2&&(m[2]=i),d>3&&(m[3]=o),d>4&&(m[4]=s),d>5&&(m[5]=a),d>6&&(m[6]=u),d>7&&(m[7]=l),d>8&&(m[8]=c),d>9&&(m[9]=p);break;case 64:m={},d>0&&(m[h[0].name]=n),d>1&&(m[h[1].name]=r),d>2&&(m[h[2].name]=i),d>3&&(m[h[3].name]=o),d>4&&(m[h[4].name]=s),d>5&&(m[h[5].name]=a),d>6&&(m[h[6].name]=u),d>7&&(m[h[7].name]=l),d>8&&(m[h[8].name]=c),d>9&&(m[h[9].name]=p);break;case 128:var y=n;switch(d){case 1:m=y.transform(n);break;case 2:m=y.transform(r);break;case 3:m=y.transform(r,i);break;case 4:m=y.transform(r,i,o);break;case 5:m=y.transform(r,i,o,s);break;case 6:m=y.transform(r,i,o,s,a);break;case 7:m=y.transform(r,i,o,s,a,u);break;case 8:m=y.transform(r,i,o,s,a,u,l);break;case 9:m=y.transform(r,i,o,s,a,u,l,c);break;case 10:m=y.transform(r,i,o,s,a,u,l,c,p)}}v.value=m}return f}(e,t,n,r,i,o,s,a,u,l,c,p);default:throw"unreachable"}}(e,t,r,i,o,s,a,u,l,c,p,h):function v(e,t,n){switch(201347067&t.flags){case 1:return function r(e,t,n){for(var r=!1,i=0;i0&&Yb(e,t,0,n),h>1&&Yb(e,t,1,r),h>2&&Yb(e,t,2,i),h>3&&Yb(e,t,3,o),h>4&&Yb(e,t,4,s),h>5&&Yb(e,t,5,a),h>6&&Yb(e,t,6,u),h>7&&Yb(e,t,7,l),h>8&&Yb(e,t,8,c),h>9&&Yb(e,t,9,p)}(e,t,r,i,o,s,a,u,l,c,p,h):function d(e,t,n){for(var r=0;r0){var o=new Set(e.modules);FC.forEach(function(t,n){if(o.has(Od(n).providedIn)){var i={token:n,flags:t.flags|(r?4096:0),deps:sw(t.deps),value:t.value,index:e.providers.length};e.providers.push(i),e.providersByKey[$b(n)]=i}})}}(e=e.factory(function(){return Wb})),e):e}(r))}var MC,OC,RC,DC,LC=new Map,FC=new Map,jC=new Map;function VC(e){var t;LC.set(e.token,e),"function"==typeof e.token&&(t=Od(e.token))&&"function"==typeof t.providedIn&&FC.set(e.token,e)}function BC(e,t){var n=lw(function r(e){return e.viewDefFactory}(t)),i=lw(n.nodes[0].element.componentView);jC.set(e,i)}function HC(){LC.clear(),FC.clear(),jC.clear()}function UC(e){if(0===LC.size)return e;var t=function n(e){for(var t=[],n=null,r=0;rt.version?e:t});o.versionn.SyntaxKind.LastToken&&t.pos<=i&&t.end>i)return n.forEachChild(t,e)||t});if(o)return{start:o.getStart(),end:o.getEnd()}}}(t,r.line||r.position&&r.position.line,r.column||r.position&&r.position.column)||e;return function s(e){return!!e[Gp]} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(r)?function a(e,t){return{message:e.chain?dT(e.chain):e.message,span:t}} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */(r,i):{message:r.message,span:i}})||[]},e.prototype.getDeclarationFromNode=function(e,t){var r,i;if(t.kind==n.SyntaxKind.ClassDeclaration&&t.decorators&&t.name)try{for(var o=p(t.decorators),s=o.next();!s.done;s=o.next()){var a=s.value;if(a.expression&&a.expression.kind==n.SyntaxKind.CallExpression){var u=t;if(u.name){var l=a.expression.expression;if(this.checker.getTypeAtLocation(l)){var c=this.reflector.getStaticSymbol(e.fileName,u.name.text);try{if(this.resolver.isDirective(c)){var h=this.resolver.getNonNormalizedDirectiveMetadata(c).metadata;return{type:c,declarationSpan:f=fT(l),metadata:h,errors:this.getCollectedErrors(f,e)}}}catch(t){var f;if(t.message)return this.collectError(t,e.fileName),{type:c,declarationSpan:f=fT(l),errors:this.getCollectedErrors(f,e)}}}}}}}catch(e){r={error:e}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}},e.prototype.stringOf=function(e){switch(e.kind){case n.SyntaxKind.NoSubstitutionTemplateLiteral:case n.SyntaxKind.StringLiteral:return e.text}},e.prototype.findNode=function(e,t){return function e(r){if(t>=r.getStart()&&ti&&(r=a,i=u)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}(f)),d){var m=d.transitiveModule.directives.map(function(e){return n.resolver.getNonNormalizedDirectiveMetadata(e.reference)}).filter(function(e){return e}).map(function(e){return e.metadata.toSummary()}),y=d.transitiveModule.pipes.map(function(e){return n.resolver.getOrLoadPipeMetadata(e.reference).toSummary()}),g=c.tryParseHtml(h,o,m,y,d.schemas);r={htmlAst:h.rootNodes,templateAst:g.templateAst,directive:o,directives:m,pipes:y,parseErrors:g.errors,expressionParser:u,errors:void 0}}}}catch(n){var _=e.span;n.fileName==t&&(_=e.query.getSpanAt(n.line,n.column)||_),r={errors:[{kind:Mf.Error,message:n.message,span:_}]}}return r||{}},e.missingTemplate=[void 0,void 0],e}(); /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */function fT(e){return{start:e.getStart(),end:e.getEnd()}}function dT(e){return{message:e.message,next:e.next?dT(e.next):void 0}}var vT=new WeakMap,mT=new hb("8.1.3"); /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ e.createLanguageService=yd,e.TypeScriptServiceHost=hT,e.createLanguageServiceFromTypescript= /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function yT(e,t){return yd(new hT(e,t))},e.VERSION=mT,e.getExternalFiles=function gT(e){var t=vT.get(e);if(t)return t.getTemplateReferences()},e.create=function _T(e){var t=e.languageService,r=Object.assign({},t),i=e.project.projectService.logger;function o(e,t){try{return t()}catch(t){return i.info("Failed to "+e+": "+t.toString()),i.info("Stack trace: "+t.stack),null}}var s=new hT(e.languageServiceHost,t),a=yd(s);return vT.set(e.project,s),r.getCompletionsAtPosition=function(e,n,r){var i=t.getCompletionsAtPosition(e,n,r)||{isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:[]};return o("get completions",function(){var t,r,o,s=a.getCompletionsAt(e,n);if(s&&s.length){void 0===i&&(i={isGlobalCompletion:!1,isMemberCompletion:!1,isNewIdentifierLocation:!1,entries:[]});try{for(var u=p(s),l=u.next();!l.done;l=u.next())i.entries.push({kind:(o=l.value).kind,name:o.name,sortText:o.sort,kindModifiers:""})}catch(e){t={error:e}}finally{try{l&&!l.done&&(r=u.return)&&r.call(u)}finally{if(t)throw t.error}}}}),i},r.getQuickInfoAtPosition=function(e,r){var i=t.getQuickInfoAtPosition(e,r),o=a.getHoverAt(e,r);if(!o)return i;var s={kind:n.ScriptElementKind.unknown,kindModifiers:n.ScriptElementKindModifier.none,textSpan:{start:o.span.start,length:o.span.end-o.span.start},displayParts:o.text.map(function(e){return{text:e.text,kind:e.language||"angular"}}),documentation:[]};return i&&i.tags&&(s.tags=i.tags),s},r.getSemanticDiagnostics=function(e){var r=t.getSemanticDiagnostics(e)||[];return o("get diagnostics",function(){i.info("Computing Angular semantic diagnostics...");var o=a.getDiagnostics(e);if(o&&o.length){var s=t.getProgram().getSourceFile(e);s&&r.push.apply(r,o.map(function(e){return function t(e,r){return{file:r,start:e.span.start,length:e.span.end-e.span.start,messageText:(i=e.message,"string"==typeof i?i:function e(t){return{messageText:t.message,category:n.DiagnosticCategory.Error,code:0,next:t.next?e(t.next):void 0}}(i)),category:n.DiagnosticCategory.Error,code:0,source:"ng"};var i}(e,s)}))}}),r},r.getDefinitionAtPosition=function(e,r){var i=t.getDefinitionAtPosition(e,r);if(i&&i.length)return i;var o=a.getDefinitionAt(e,r);return o&&o.length?o.map(function(e){return{fileName:e.fileName,textSpan:{start:e.span.start,length:e.span.end-e.span.start},name:"",kind:n.ScriptElementKind.unknown,containerName:e.fileName,containerKind:n.ScriptElementKind.unknown}}):void 0},r.getDefinitionAndBoundSpan=function(e,r){var i=t.getDefinitionAndBoundSpan(e,r);if(i&&i.definitions&&i.definitions.length)return i;var o=a.getDefinitionAt(e,r);return o&&o.length?{definitions:o.map(function(e){return{fileName:e.fileName,textSpan:{start:e.span.start,length:e.span.end-e.span.start},name:"",kind:n.ScriptElementKind.unknown,containerName:e.fileName,containerKind:n.ScriptElementKind.unknown}}),textSpan:{start:o[0].span.start,length:o[0].span.end-o[0].span.start}}:void 0},r} /** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */,Object.defineProperty(e,"__esModule",{value:!0})});