mirror of
https://github.com/joelwmale/webhook-action.git
synced 2024-11-25 17:06:52 +01:00
1ada95e04a
- Convert project to Javascript/Typescript - Allow custom headers to be passed in (optional) - Allow body to be optional
650 lines
568 KiB
JavaScript
Executable file
650 lines
568 KiB
JavaScript
Executable file
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(((e=e||self).prettierPlugins=e.prettierPlugins||{},e.prettierPlugins.angular={}))}(this,(function(e){"use strict";function t(e,n){return!(n=n||{}).ignoreDecorators&&e.declaration&&e.declaration.decorators&&e.declaration.decorators.length>0?t(e.declaration.decorators[0]):!n.ignoreDecorators&&e.decorators&&e.decorators.length>0?t(e.decorators[0]):e.__location?e.__location.startOffset:e.range?e.range[0]:"number"==typeof e.start?e.start:e.loc?e.loc.start:null}function n(e){const t=e.nodes&&(r=e.nodes)[r.length-1];var r;if(t&&e.source&&!e.source.end&&(e=t),e.__location)return e.__location.endOffset;const i=e.range?e.range[1]:"number"==typeof e.end?e.end:null;return e.typeAnnotation?Math.max(i,n(e.typeAnnotation)):e.loc&&!i?e.loc.end:i}var r={locStart:t,locEnd:n,composeLoc:function(e,r=e){const i="number"==typeof r?r:-1,s=t(e),o=-1!==i?s+i:n(r),a=e.loc.start;return{start:s,end:o,range:[s,o],loc:{start:a,end:-1!==i?{line:a.line,column:a.column+i}:r.loc.end}}}};function i(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function s(e,t){return e(t={exports:{}},t.exports),t.exports}var o=s((function(e,t){var n=function(){function e(e){this.string=e;for(var t=[0],n=0;n<e.length;)switch(e[n]){case"\n":n+="\n".length,t.push(n);break;case"\r":"\n"===e[n+="\r".length]&&(n+="\n".length),t.push(n);break;default:n++}this.offsets=t}return e.prototype.locationForIndex=function(e){if(e<0||e>this.string.length)return null;for(var t=0,n=this.offsets;n[t+1]<=e;)t++;return{line:t,column:e-n[t]}},e.prototype.indexForLocation=function(e){var t=e.line,n=e.column;return t<0||t>=this.offsets.length?null:n<0||n>this.lengthOfLine(t)?null:this.offsets[t]+n},e.prototype.lengthOfLine=function(e){var t=this.offsets[e];return(e===this.offsets.length-1?this.string.length:this.offsets[e+1])-t},e}();t.__esModule=!0,t.default=n}));i(o);var a=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.Context=class{constructor(e){this.text=e,this.locator=new n(this.text)}};class n{constructor(e){this._lineAndColumn=new o.default(e)}locationForIndex(e){const{line:t,column:n}=this._lineAndColumn.locationForIndex(e);return{line:t+1,column:n}}}}));i(a);a.Context;var u="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},p=function(e,t){return(p=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 l(e,t){function n(){this.constructor=e}p(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var c,h=function(){return(h=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function f(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 d(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(d(arguments[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 m(e){if(":"!=e[0])return[null,e];var t=e.indexOf(":",1);if(-1==t)throw new Error('Unsupported format "'+e+'" expecting ":namespace:name"');return[e.slice(1,t),e.slice(t+1)]}function y(e){return"ng-container"===m(e)[1]}function g(e){return"ng-content"===m(e)[1]}function _(e){return"ng-template"===m(e)[1]}function E(e){return null===e?null:m(e)[0]}function x(e,t){return e?":"+e+":"+t:t}!function(e){e[e.RAW_TEXT=0]="RAW_TEXT",e[e.ESCAPABLE_RAW_TEXT=1]="ESCAPABLE_RAW_TEXT",e[e.PARSABLE_DATA=2]="PARSABLE_DATA"}(c||(c={}));var S={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Å",aring:"å",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Β",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"ƒ",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"⁄",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",image:"ℑ",infin:"∞",int:"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ï",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"←",lArr:"⇐",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"◊",lrm:"",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Μ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Ν",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Œ",oelig:"œ",Ograve:"Ò",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Π",pi:"π",piv:"ϖ",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"∏",prop:"∝",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"”",real:"ℜ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"ρ",rlm:"",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Š",scaron:"š",sdot:"⋅",sect:"§",shy:"",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sim:"∼",spades:"♠",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"τ",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"˜",times:"×",trade:"™",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",Uuml:"Ü",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"",zwnj:""};S.ngsp="";
|
||
/**
|
||
* @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 w,C,b=function(){function e(e){var t=this,n=void 0===e?{}:e,r=n.closedByChildren,i=n.implicitNamespacePrefix,s=n.contentType,o=void 0===s?c.PARSABLE_DATA:s,a=n.closedByParent,u=void 0!==a&&a,p=n.isVoid,l=void 0!==p&&p,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=l,this.closedByParent=u||l,this.implicitNamespacePrefix=i||null,this.contentType=o,this.ignoreFirstLf=f}return e.prototype.isClosedByChild=function(e){return this.isVoid||e.toLowerCase()in this.closedByChildren},e}();function T(e){return C||(w=new b,C={base:new b({isVoid:!0}),meta:new b({isVoid:!0}),area:new b({isVoid:!0}),embed:new b({isVoid:!0}),link:new b({isVoid:!0}),img:new b({isVoid:!0}),input:new b({isVoid:!0}),param:new b({isVoid:!0}),hr:new b({isVoid:!0}),br:new b({isVoid:!0}),source:new b({isVoid:!0}),track:new b({isVoid:!0}),wbr:new b({isVoid:!0}),p:new b({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 b({closedByChildren:["tbody","tfoot"]}),tbody:new b({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new b({closedByChildren:["tbody"],closedByParent:!0}),tr:new b({closedByChildren:["tr"],closedByParent:!0}),td:new b({closedByChildren:["td","th"],closedByParent:!0}),th:new b({closedByChildren:["td","th"],closedByParent:!0}),col:new b({isVoid:!0}),svg:new b({implicitNamespacePrefix:"svg"}),math:new b({implicitNamespacePrefix:"math"}),li:new b({closedByChildren:["li"],closedByParent:!0}),dt:new b({closedByChildren:["dt","dd"]}),dd:new b({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new b({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new b({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new b({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new b({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new b({closedByChildren:["optgroup"],closedByParent:!0}),option:new b({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new b({ignoreFirstLf:!0}),listing:new b({ignoreFirstLf:!0}),style:new b({contentType:c.RAW_TEXT}),script:new b({contentType:c.RAW_TEXT}),title:new b({contentType:c.ESCAPABLE_RAW_TEXT}),textarea:new b({contentType:c.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),C[e.toLowerCase()]||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 P,N,A=new RegExp("(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),M=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)},s=new e,o=s,a=!1;for(A.lastIndex=0;n=A.exec(t);){if(n[1]){if(a)throw new Error("Nesting :not in a selector is not allowed");a=!0,o=new e,s.notSelectors.push(o)}var u=n[2];if(u){var p=n[3];"#"===p?o.addAttribute("id",u.substr(1)):"."===p?o.addClassName(u.substr(1)):o.setElement(u)}var l=n[4];if(l&&o.addAttribute(l,n[6]),n[7]&&(a=!1,o=s),n[8]){if(a)throw new Error("Multiple selectors in :not are not supported");i(r,s),s=o=new e}}return i(r,s),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<this.attrs.length;r+=2){n+=" "+this.attrs[r]+(""!==this.attrs[r+1]?'="'+this.attrs[r+1]+'"':"")}return T(e).isVoid?"<"+e+t+n+"/>":"<"+e+t+n+"></"+e+">"},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;t<this.attrs.length;t+=2){var n=this.attrs[t],r=this.attrs[t+1];e+="["+n+(r?"="+r:"")+"]"}return this.notSelectors.forEach((function(t){return e+=":not("+t+")"})),e},e}(),I=function(){function e(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return e.createNotMatcher=function(t){var n=new e;return n.addSelectables(t,null),n},e.prototype.addSelectables=function(e,t){var n=null;e.length>1&&(n=new k(e),this._listContexts.push(n));for(var r=0;r<e.length;r++)this._addSelectable(e[r],t,n)},e.prototype._addSelectable=function(e,t,n){var r=this,i=e.element,s=e.classNames,o=e.attrs,a=new R(e,t,n);i&&((p=0===o.length&&0===s.length)?this._addTerminal(r._elementMap,i,a):r=this._addPartial(r._elementPartialMap,i));if(s)for(var u=0;u<s.length;u++){var p=0===o.length&&u===s.length-1,l=s[u];p?this._addTerminal(r._classMap,l,a):r=this._addPartial(r._classPartialMap,l)}if(o)for(u=0;u<o.length;u+=2){p=u===o.length-2;var c=o[u],h=o[u+1];if(p){var f=r._attrValueMap,d=f.get(c);d||(d=new Map,f.set(c,d)),this._addTerminal(d,h,a)}else{var v=r._attrValuePartialMap,m=v.get(c);m||(m=new Map,v.set(c,m)),r=this._addPartial(m,h)}}},e.prototype._addTerminal=function(e,t,n){var r=e.get(t);r||(r=[],e.set(t,r)),r.push(n)},e.prototype._addPartial=function(t,n){var r=t.get(n);return r||(r=new e,t.set(n,r)),r},e.prototype.match=function(e,t){for(var n=!1,r=e.element,i=e.classNames,s=e.attrs,o=0;o<this._listContexts.length;o++)this._listContexts[o].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,e,t)||n,n=this._matchPartial(this._elementPartialMap,r,e,t)||n,i)for(o=0;o<i.length;o++){var a=i[o];n=this._matchTerminal(this._classMap,a,e,t)||n,n=this._matchPartial(this._classPartialMap,a,e,t)||n}if(s)for(o=0;o<s.length;o+=2){var u=s[o],p=s[o+1],l=this._attrValueMap.get(u);p&&(n=this._matchTerminal(l,"",e,t)||n),n=this._matchTerminal(l,p,e,t)||n;var c=this._attrValuePartialMap.get(u);p&&(n=this._matchPartial(c,"",e,t)||n),n=this._matchPartial(c,p,e,t)||n}return n},e.prototype._matchTerminal=function(e,t,n,r){if(!e||"string"!=typeof t)return!1;var i=e.get(t)||[],s=e.get("*");if(s&&(i=i.concat(s)),0===i.length)return!1;for(var o=!1,a=0;a<i.length;a++)o=i[a].finalize(n,r)||o;return o},e.prototype._matchPartial=function(e,t,n,r){if(!e||"string"!=typeof t)return!1;var i=e.get(t);return!!i&&i.match(n,r)},e}(),k=function(e){this.selectors=e,this.alreadyMatched=!1},R=function(){function e(e,t,n){this.selector=e,this.cbContext=t,this.listContext=n,this.notSelectors=e.notSelectors}return e.prototype.finalize=function(e,t){var n=!0;!(this.notSelectors.length>0)||this.listContext&&this.listContext.alreadyMatched||(n=!I.createNotMatcher(this.notSelectors).match(e,null));return!n||!t||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),t(this.selector,this.cbContext)),n},e}(),O=se("Inject",(function(e){return{token:e}})),F=se("InjectionToken",(function(e){return{_desc:e,"ɵprov":void 0}})),L=se("Attribute",(function(e){return{attributeName:e}})),D=se("ContentChildren",(function(e,t){return void 0===t&&(t={}),h({selector:e,first:!1,isViewQuery:!1,descendants:!1},t)})),B=se("ContentChild",(function(e,t){return void 0===t&&(t={}),h({selector:e,first:!0,isViewQuery:!1,descendants:!0},t)})),V=se("ViewChildren",(function(e,t){return void 0===t&&(t={}),h({selector:e,first:!1,isViewQuery:!0,descendants:!0},t)})),j=se("ViewChild",(function(e,t){return h({selector:e,first:!0,isViewQuery:!0,descendants:!0},t)})),U=se("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"}(P||(P={})),function(e){e[e.OnPush=0]="OnPush",e[e.Default=1]="Default"}(N||(N={}));var H,q,W=se("Component",(function(e){return void 0===e&&(e={}),h({changeDetection:N.Default},e)})),z=se("Pipe",(function(e){return h({pure:!0},e)})),K=se("Input",(function(e){return{bindingPropertyName:e}})),Q=se("Output",(function(e){return{bindingPropertyName:e}})),G=se("HostBinding",(function(e){return{hostPropertyName:e}})),X=se("HostListener",(function(e,t){return{eventName:e,args:t}})),$=se("NgModule",(function(e){return e})),Y=se("Injectable",(function(e){return void 0===e&&(e={}),e})),J={name:"custom-elements"},Z={name:"no-errors-schema"},ee=se("Optional"),te=se("Self"),ne=se("SkipSelf"),re=se("Host"),ie=Function;function se(e,t){function n(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=t?t.apply(void 0,v(n)):{};return h({ngMetadataName:e},i)}return n.isTypeOf=function(t){return t&&t.ngMetadataName===e},n.ngMetadataName=e,n}function oe(e){var t=function(e){var t=e.classNames&&e.classNames.length?v([8],e.classNames):[];return v([e.element&&"*"!==e.element?e.element:""],e.attrs,t)}(e),n=e.notSelectors&&e.notSelectors.length?e.notSelectors.map((function(e){return function(e){var t=e.classNames&&e.classNames.length?v([8],e.classNames):[];return e.element?v([5,e.element],e.attrs,t):e.attrs.length?v([3],e.attrs,t):e.classNames&&e.classNames.length?v([9],e.classNames):[]}(e)})):[];return t.concat.apply(t,v(n))}function ae(e){return e?M.parse(e).map(oe):[]}!function(e){e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL"}(H||(H={})),function(e){e[e.Error=0]="Error",e[e.Warning=1]="Warning",e[e.Ignore=2]="Ignore"}(q||(q={}));var ue,pe=Object.freeze({__proto__:null,createInject:O,createInjectionToken:F,createAttribute:L,createContentChildren:D,createContentChild:B,createViewChildren:V,createViewChild:j,createDirective:U,get ViewEncapsulation(){return P},get ChangeDetectionStrategy(){return N},createComponent:W,createPipe:z,createInput:K,createOutput:Q,createHostBinding:G,createHostListener:X,createNgModule:$,createInjectable:Y,CUSTOM_ELEMENTS_SCHEMA:J,NO_ERRORS_SCHEMA:Z,createOptional:ee,createSelf:te,createSkipSelf:ne,createHost:re,Type:ie,get SecurityContext(){return H},get MissingTranslationStrategy(){return q},parseSelectorToR3Selector:ae});
|
||
/**
|
||
* @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.Const=0]="Const"}(ue||(ue={}));var le,ce=function(){function e(e){void 0===e&&(e=null),this.modifiers=e,e||(this.modifiers=[])}return e.prototype.hasModifier=function(e){return-1!==this.modifiers.indexOf(e)},e}();!function(e){e[e.Dynamic=0]="Dynamic",e[e.Bool=1]="Bool",e[e.String=2]="String",e[e.Int=3]="Int",e[e.Number=4]="Number",e[e.Function=5]="Function",e[e.Inferred=6]="Inferred",e[e.None=7]="None"}(le||(le={}));var he,fe=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,n)||this;return r.name=t,r}return l(t,e),t.prototype.visitType=function(e,t){return e.visitBuiltinType(this,t)},t}(ce),de=function(e){function t(t,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var i=e.call(this,n)||this;return i.value=t,i.typeParams=r,i}return l(t,e),t.prototype.visitType=function(e,t){return e.visitExpressionType(this,t)},t}(ce),ve=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,n)||this;return r.of=t,r}return l(t,e),t.prototype.visitType=function(e,t){return e.visitArrayType(this,t)},t}(ce),me=function(e){function t(t,n){void 0===n&&(n=null);var r=e.call(this,n)||this;return r.valueType=t||null,r}return l(t,e),t.prototype.visitType=function(e,t){return e.visitMapType(this,t)},t}(ce),ye=new fe(le.Dynamic),ge=new fe(le.Inferred),_e=new fe(le.Bool),Ee=(new fe(le.Int),new fe(le.Number)),xe=new fe(le.String),Se=(new fe(le.Function),new fe(le.None));function we(e,t){return null==e||null==t?e==t:e.isEquivalent(t)}function Ce(e,t){var n=e.length;if(n!==t.length)return!1;for(var r=0;r<n;r++)if(!e[r].isEquivalent(t[r]))return!1;return!0}!function(e){e[e.Equals=0]="Equals",e[e.NotEquals=1]="NotEquals",e[e.Identical=2]="Identical",e[e.NotIdentical=3]="NotIdentical",e[e.Minus=4]="Minus",e[e.Plus=5]="Plus",e[e.Divide=6]="Divide",e[e.Multiply=7]="Multiply",e[e.Modulo=8]="Modulo",e[e.And=9]="And",e[e.Or=10]="Or",e[e.BitwiseAnd=11]="BitwiseAnd",e[e.Lower=12]="Lower",e[e.LowerEquals=13]="LowerEquals",e[e.Bigger=14]="Bigger",e[e.BiggerEquals=15]="BiggerEquals"}(he||(he={}));var be,Te=function(){function e(e,t){this.type=e||null,this.sourceSpan=t||null}return e.prototype.prop=function(e,t){return new Ze(this,e,null,t)},e.prototype.key=function(e,t,n){return new et(this,e,t,n)},e.prototype.callMethod=function(e,t,n){return new Oe(this,e,t,null,n)},e.prototype.callFn=function(e,t){return new Fe(this,e,null,t)},e.prototype.instantiate=function(e,t,n){return new Le(this,e,t,n)},e.prototype.conditional=function(e,t,n){return void 0===t&&(t=null),new Ke(this,e,t,null,n)},e.prototype.equals=function(e,t){return new Je(he.Equals,this,e,null,t)},e.prototype.notEquals=function(e,t){return new Je(he.NotEquals,this,e,null,t)},e.prototype.identical=function(e,t){return new Je(he.Identical,this,e,null,t)},e.prototype.notIdentical=function(e,t){return new Je(he.NotIdentical,this,e,null,t)},e.prototype.minus=function(e,t){return new Je(he.Minus,this,e,null,t)},e.prototype.plus=function(e,t){return new Je(he.Plus,this,e,null,t)},e.prototype.divide=function(e,t){return new Je(he.Divide,this,e,null,t)},e.prototype.multiply=function(e,t){return new Je(he.Multiply,this,e,null,t)},e.prototype.modulo=function(e,t){return new Je(he.Modulo,this,e,null,t)},e.prototype.and=function(e,t){return new Je(he.And,this,e,null,t)},e.prototype.bitwiseAnd=function(e,t,n){return void 0===n&&(n=!0),new Je(he.BitwiseAnd,this,e,null,t,n)},e.prototype.or=function(e,t){return new Je(he.Or,this,e,null,t)},e.prototype.lower=function(e,t){return new Je(he.Lower,this,e,null,t)},e.prototype.lowerEquals=function(e,t){return new Je(he.LowerEquals,this,e,null,t)},e.prototype.bigger=function(e,t){return new Je(he.Bigger,this,e,null,t)},e.prototype.biggerEquals=function(e,t){return new Je(he.BiggerEquals,this,e,null,t)},e.prototype.isBlank=function(e){return this.equals(ot,e)},e.prototype.cast=function(e,t){return new Xe(this,e,t)},e.prototype.toStmt=function(){return new lt(this,null)},e}();!function(e){e[e.This=0]="This",e[e.Super=1]="Super",e[e.CatchError=2]="CatchError",e[e.CatchStack=3]="CatchStack"}(be||(be={}));var Pe,Ne=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return"string"==typeof t?(i.name=t,i.builtin=null):(i.name=null,i.builtin=t),i}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.name===e.name&&this.builtin===e.builtin},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitReadVarExpr(this,t)},t.prototype.set=function(e){if(!this.name)throw new Error("Built in variable "+this.builtin+" can not be assigned to.");return new Ie(this.name,e,null,this.sourceSpan)},t}(Te),Ae=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.expr=t,i}return l(t,e),t.prototype.visitExpression=function(e,t){return e.visitTypeofExpr(this,t)},t.prototype.isEquivalent=function(e){return e instanceof t&&e.expr.isEquivalent(this.expr)},t.prototype.isConstant=function(){return this.expr.isConstant()},t}(Te),Me=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.node=t,i}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.node===e.node},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitWrappedNodeExpr(this,t)},t}(Te),Ie=function(e){function t(t,n,r,i){var s=e.call(this,r||n.type,i)||this;return s.name=t,s.value=n,s}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.name===e.name&&this.value.isEquivalent(e.value)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitWriteVarExpr(this,t)},t.prototype.toDeclStmt=function(e,t){return new ut(this.name,this.value,e,t,this.sourceSpan)},t.prototype.toConstDecl=function(){return this.toDeclStmt(ge,[qe.Final])},t}(Te),ke=function(e){function t(t,n,r,i,s){var o=e.call(this,i||r.type,s)||this;return o.receiver=t,o.index=n,o.value=r,o}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)&&this.value.isEquivalent(e.value)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitWriteKeyExpr(this,t)},t}(Te),Re=function(e){function t(t,n,r,i,s){var o=e.call(this,i||r.type,s)||this;return o.receiver=t,o.name=n,o.value=r,o}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name&&this.value.isEquivalent(e.value)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitWritePropExpr(this,t)},t}(Te);!function(e){e[e.ConcatArray=0]="ConcatArray",e[e.SubscribeObservable=1]="SubscribeObservable",e[e.Bind=2]="Bind"}(Pe||(Pe={}));var Oe=function(e){function t(t,n,r,i,s){var o=e.call(this,i,s)||this;return o.receiver=t,o.args=r,"string"==typeof n?(o.name=n,o.builtin=null):(o.name=null,o.builtin=n),o}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name&&this.builtin===e.builtin&&Ce(this.args,e.args)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitInvokeMethodExpr(this,t)},t}(Te),Fe=function(e){function t(t,n,r,i,s){void 0===s&&(s=!1);var o=e.call(this,r,i)||this;return o.fn=t,o.args=n,o.pure=s,o}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.fn.isEquivalent(e.fn)&&Ce(this.args,e.args)&&this.pure===e.pure},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitInvokeFunctionExpr(this,t)},t}(Te),Le=function(e){function t(t,n,r,i){var s=e.call(this,r,i)||this;return s.classExpr=t,s.args=n,s}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.classExpr.isEquivalent(e.classExpr)&&Ce(this.args,e.args)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitInstantiateExpr(this,t)},t}(Te),De=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.value=t,i}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.value===e.value},t.prototype.isConstant=function(){return!0},t.prototype.visitExpression=function(e,t){return e.visitLiteralExpr(this,t)},t}(Te),Be=function(e){function t(t,n,r,i,s){var o=e.call(this,xe,s)||this;return o.metaBlock=t,o.messageParts=n,o.placeHolderNames=r,o.expressions=i,o}return l(t,e),t.prototype.isEquivalent=function(e){return!1},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitLocalizedString(this,t)},t.prototype.serializeI18nHead=function(){var e=this.metaBlock.description||"";return this.metaBlock.meaning&&(e=this.metaBlock.meaning+"|"+e),this.metaBlock.customId&&(e=e+"@@"+this.metaBlock.customId),this.metaBlock.legacyIds&&this.metaBlock.legacyIds.forEach((function(t){e=e+"␟"+t})),He(e,this.messageParts[0])},t.prototype.serializeI18nTemplatePart=function(e){return He(this.placeHolderNames[e-1],this.messageParts[e])},t}(Te),Ve=function(e){return e.replace(/\\/g,"\\\\")},je=function(e){return e.replace(/:/g,"\\:")},Ue=function(e){return e.replace(/`/g,"\\`").replace(/\${/g,"$\\{")};function He(e,t){return""===e?{cooked:t,raw:Ue((n=Ve(t),n.replace(/^:/,"\\:")))}:{cooked:":"+e+":"+t,raw:Ue(":"+je(Ve(e))+":"+Ve(t))};var n}var qe,We=function(e){function t(t,n,r,i){void 0===r&&(r=null);var s=e.call(this,n,i)||this;return s.value=t,s.typeParams=r,s}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.value.name===e.value.name&&this.value.moduleName===e.value.moduleName&&this.value.runtime===e.value.runtime},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitExternalExpr(this,t)},t}(Te),ze=function(e,t,n){this.moduleName=e,this.name=t,this.runtime=n},Ke=function(e){function t(t,n,r,i,s){void 0===r&&(r=null);var o=e.call(this,i||n.type,s)||this;return o.condition=t,o.falseCase=r,o.trueCase=n,o}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.condition.isEquivalent(e.condition)&&this.trueCase.isEquivalent(e.trueCase)&&we(this.falseCase,e.falseCase)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitConditionalExpr(this,t)},t}(Te),Qe=function(e){function t(t,n){var r=e.call(this,_e,n)||this;return r.condition=t,r}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.condition.isEquivalent(e.condition)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitNotExpr(this,t)},t}(Te),Ge=function(e){function t(t,n){var r=e.call(this,t.type,n)||this;return r.condition=t,r}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.condition.isEquivalent(e.condition)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitAssertNotNullExpr(this,t)},t}(Te),Xe=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.value=t,i}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.value.isEquivalent(e.value)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitCastExpr(this,t)},t}(Te),$e=function(){function e(e,t){void 0===t&&(t=null),this.name=e,this.type=t}return e.prototype.isEquivalent=function(e){return this.name===e.name},e}(),Ye=function(e){function t(t,n,r,i,s){var o=e.call(this,r,i)||this;return o.params=t,o.statements=n,o.name=s,o}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&Ce(this.params,e.params)&&Ce(this.statements,e.statements)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitFunctionExpr(this,t)},t.prototype.toDeclStmt=function(e,t){return void 0===t&&(t=null),new pt(e,this.params,this.statements,this.type,t,this.sourceSpan)},t}(Te),Je=function(e){function t(t,n,r,i,s,o){void 0===o&&(o=!0);var a=e.call(this,i||n.type,s)||this;return a.operator=t,a.rhs=r,a.parens=o,a.lhs=n,a}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.operator===e.operator&&this.lhs.isEquivalent(e.lhs)&&this.rhs.isEquivalent(e.rhs)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitBinaryOperatorExpr(this,t)},t}(Te),Ze=function(e){function t(t,n,r,i){var s=e.call(this,r,i)||this;return s.receiver=t,s.name=n,s}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.name===e.name},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitReadPropExpr(this,t)},t.prototype.set=function(e){return new Re(this.receiver,this.name,e,null,this.sourceSpan)},t}(Te),et=function(e){function t(t,n,r,i){var s=e.call(this,r,i)||this;return s.receiver=t,s.index=n,s}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.receiver.isEquivalent(e.receiver)&&this.index.isEquivalent(e.index)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitReadKeyExpr(this,t)},t.prototype.set=function(e){return new ke(this.receiver,this.index,e,null,this.sourceSpan)},t}(Te),tt=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.entries=t,i}return l(t,e),t.prototype.isConstant=function(){return this.entries.every((function(e){return e.isConstant()}))},t.prototype.isEquivalent=function(e){return e instanceof t&&Ce(this.entries,e.entries)},t.prototype.visitExpression=function(e,t){return e.visitLiteralArrayExpr(this,t)},t}(Te),nt=function(){function e(e,t,n){this.key=e,this.value=t,this.quoted=n}return e.prototype.isEquivalent=function(e){return this.key===e.key&&this.value.isEquivalent(e.value)},e}(),rt=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.entries=t,i.valueType=null,n&&(i.valueType=n.valueType),i}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&Ce(this.entries,e.entries)},t.prototype.isConstant=function(){return this.entries.every((function(e){return e.value.isConstant()}))},t.prototype.visitExpression=function(e,t){return e.visitLiteralMapExpr(this,t)},t}(Te),it=function(e){function t(t,n){var r=e.call(this,t[t.length-1].type,n)||this;return r.parts=t,r}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&Ce(this.parts,e.parts)},t.prototype.isConstant=function(){return!1},t.prototype.visitExpression=function(e,t){return e.visitCommaExpr(this,t)},t}(Te),st=(new Ne(be.This,null,null),new Ne(be.Super,null,null),new Ne(be.CatchError,null,null),new Ne(be.CatchStack,null,null),new De(null,null,null)),ot=new De(null,ge,null);!function(e){e[e.Final=0]="Final",e[e.Private=1]="Private",e[e.Exported=2]="Exported",e[e.Static=3]="Static"}(qe||(qe={}));var at=function(){function e(e,t){this.modifiers=e||[],this.sourceSpan=t||null}return e.prototype.hasModifier=function(e){return-1!==this.modifiers.indexOf(e)},e}(),ut=function(e){function t(t,n,r,i,s){void 0===i&&(i=null);var o=e.call(this,i,s)||this;return o.name=t,o.value=n,o.type=r||n&&n.type||null,o}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.name===e.name&&(this.value?!!e.value&&this.value.isEquivalent(e.value):!e.value)},t.prototype.visitStatement=function(e,t){return e.visitDeclareVarStmt(this,t)},t}(at),pt=function(e){function t(t,n,r,i,s,o){void 0===s&&(s=null);var a=e.call(this,s,o)||this;return a.name=t,a.params=n,a.statements=r,a.type=i||null,a}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&Ce(this.params,e.params)&&Ce(this.statements,e.statements)},t.prototype.visitStatement=function(e,t){return e.visitDeclareFunctionStmt(this,t)},t}(at),lt=function(e){function t(t,n){var r=e.call(this,null,n)||this;return r.expr=t,r}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.expr.isEquivalent(e.expr)},t.prototype.visitStatement=function(e,t){return e.visitExpressionStmt(this,t)},t}(at),ct=function(e){function t(t,n){var r=e.call(this,null,n)||this;return r.value=t,r}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.value.isEquivalent(e.value)},t.prototype.visitStatement=function(e,t){return e.visitReturnStmt(this,t)},t}(at),ht=function(){function e(e,t){this.modifiers=t,t||(this.modifiers=[]),this.type=e||null}return e.prototype.hasModifier=function(e){return-1!==this.modifiers.indexOf(e)},e}(),ft=function(e){function t(t,n,r,i){void 0===r&&(r=null);var s=e.call(this,n,r)||this;return s.name=t,s.initializer=i,s}return l(t,e),t.prototype.isEquivalent=function(e){return this.name===e.name},t}(ht),dt=function(e){function t(t,n,r,i,s){void 0===s&&(s=null);var o=e.call(this,i,s)||this;return o.name=t,o.params=n,o.body=r,o}return l(t,e),t.prototype.isEquivalent=function(e){return this.name===e.name&&Ce(this.body,e.body)},t}(ht),vt=function(e){function t(t,n,r,i){void 0===i&&(i=null);var s=e.call(this,r,i)||this;return s.name=t,s.body=n,s}return l(t,e),t.prototype.isEquivalent=function(e){return this.name===e.name&&Ce(this.body,e.body)},t}(ht),mt=function(e){function t(t,n,r,i,s,o,a,u){void 0===a&&(a=null);var p=e.call(this,a,u)||this;return p.name=t,p.parent=n,p.fields=r,p.getters=i,p.constructorMethod=s,p.methods=o,p}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.name===e.name&&we(this.parent,e.parent)&&Ce(this.fields,e.fields)&&Ce(this.getters,e.getters)&&this.constructorMethod.isEquivalent(e.constructorMethod)&&Ce(this.methods,e.methods)},t.prototype.visitStatement=function(e,t){return e.visitDeclareClassStmt(this,t)},t}(at),yt=function(e){function t(t,n,r,i){void 0===r&&(r=[]);var s=e.call(this,null,i)||this;return s.condition=t,s.trueCase=n,s.falseCase=r,s}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.condition.isEquivalent(e.condition)&&Ce(this.trueCase,e.trueCase)&&Ce(this.falseCase,e.falseCase)},t.prototype.visitStatement=function(e,t){return e.visitIfStmt(this,t)},t}(at),gt=function(e){function t(t,n,r){void 0===n&&(n=!1);var i=e.call(this,null,r)||this;return i.comment=t,i.multiline=n,i}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t},t.prototype.visitStatement=function(e,t){return e.visitCommentStmt(this,t)},t}(at),_t=function(e){function t(t,n){void 0===t&&(t=[]);var r=e.call(this,null,n)||this;return r.tags=t,r}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&this.toString()===e.toString()},t.prototype.visitStatement=function(e,t){return e.visitJSDocCommentStmt(this,t)},t.prototype.toString=function(){return function(e){var t,n;if(0===e.length)return"";var r="*\n";try{for(var i=f(e),s=i.next();!s.done;s=i.next()){var o=s.value;r+=" *",r+=Ut(o).replace(/\n/g,"\n * "),r+="\n"}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}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
|
||
*/(this.tags)},t}(at),Et=function(e){function t(t,n,r){var i=e.call(this,null,r)||this;return i.bodyStmts=t,i.catchStmts=n,i}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof t&&Ce(this.bodyStmts,e.bodyStmts)&&Ce(this.catchStmts,e.catchStmts)},t.prototype.visitStatement=function(e,t){return e.visitTryCatchStmt(this,t)},t}(at),xt=function(e){function t(t,n){var r=e.call(this,null,n)||this;return r.error=t,r}return l(t,e),t.prototype.isEquivalent=function(e){return e instanceof Et&&this.error.isEquivalent(e.error)},t.prototype.visitStatement=function(e,t){return e.visitThrowStmt(this,t)},t}(at),St=function(){function e(){}return e.prototype.transformExpr=function(e,t){return e},e.prototype.transformStmt=function(e,t){return e},e.prototype.visitReadVarExpr=function(e,t){return this.transformExpr(e,t)},e.prototype.visitWrappedNodeExpr=function(e,t){return this.transformExpr(e,t)},e.prototype.visitTypeofExpr=function(e,t){return this.transformExpr(new Ae(e.expr.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitWriteVarExpr=function(e,t){return this.transformExpr(new Ie(e.name,e.value.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitWriteKeyExpr=function(e,t){return this.transformExpr(new ke(e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.value.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitWritePropExpr=function(e,t){return this.transformExpr(new Re(e.receiver.visitExpression(this,t),e.name,e.value.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitInvokeMethodExpr=function(e,t){var n=e.builtin||e.name;return this.transformExpr(new Oe(e.receiver.visitExpression(this,t),n,this.visitAllExpressions(e.args,t),e.type,e.sourceSpan),t)},e.prototype.visitInvokeFunctionExpr=function(e,t){return this.transformExpr(new Fe(e.fn.visitExpression(this,t),this.visitAllExpressions(e.args,t),e.type,e.sourceSpan),t)},e.prototype.visitInstantiateExpr=function(e,t){return this.transformExpr(new Le(e.classExpr.visitExpression(this,t),this.visitAllExpressions(e.args,t),e.type,e.sourceSpan),t)},e.prototype.visitLiteralExpr=function(e,t){return this.transformExpr(e,t)},e.prototype.visitLocalizedString=function(e,t){return this.transformExpr(new Be(e.metaBlock,e.messageParts,e.placeHolderNames,this.visitAllExpressions(e.expressions,t),e.sourceSpan),t)},e.prototype.visitExternalExpr=function(e,t){return this.transformExpr(e,t)},e.prototype.visitConditionalExpr=function(e,t){return this.transformExpr(new Ke(e.condition.visitExpression(this,t),e.trueCase.visitExpression(this,t),e.falseCase.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitNotExpr=function(e,t){return this.transformExpr(new Qe(e.condition.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitAssertNotNullExpr=function(e,t){return this.transformExpr(new Ge(e.condition.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitCastExpr=function(e,t){return this.transformExpr(new Xe(e.value.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitFunctionExpr=function(e,t){return this.transformExpr(new Ye(e.params,this.visitAllStatements(e.statements,t),e.type,e.sourceSpan),t)},e.prototype.visitBinaryOperatorExpr=function(e,t){return this.transformExpr(new Je(e.operator,e.lhs.visitExpression(this,t),e.rhs.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitReadPropExpr=function(e,t){return this.transformExpr(new Ze(e.receiver.visitExpression(this,t),e.name,e.type,e.sourceSpan),t)},e.prototype.visitReadKeyExpr=function(e,t){return this.transformExpr(new et(e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.type,e.sourceSpan),t)},e.prototype.visitLiteralArrayExpr=function(e,t){return this.transformExpr(new tt(this.visitAllExpressions(e.entries,t),e.type,e.sourceSpan),t)},e.prototype.visitLiteralMapExpr=function(e,t){var n=this,r=e.entries.map((function(e){return new nt(e.key,e.value.visitExpression(n,t),e.quoted)})),i=new me(e.valueType,null);return this.transformExpr(new rt(r,i,e.sourceSpan),t)},e.prototype.visitCommaExpr=function(e,t){return this.transformExpr(new it(this.visitAllExpressions(e.parts,t),e.sourceSpan),t)},e.prototype.visitAllExpressions=function(e,t){var n=this;return e.map((function(e){return e.visitExpression(n,t)}))},e.prototype.visitDeclareVarStmt=function(e,t){var n=e.value&&e.value.visitExpression(this,t);return this.transformStmt(new ut(e.name,n,e.type,e.modifiers,e.sourceSpan),t)},e.prototype.visitDeclareFunctionStmt=function(e,t){return this.transformStmt(new pt(e.name,e.params,this.visitAllStatements(e.statements,t),e.type,e.modifiers,e.sourceSpan),t)},e.prototype.visitExpressionStmt=function(e,t){return this.transformStmt(new lt(e.expr.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitReturnStmt=function(e,t){return this.transformStmt(new ct(e.value.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitDeclareClassStmt=function(e,t){var n=this,r=e.parent.visitExpression(this,t),i=e.getters.map((function(e){return new vt(e.name,n.visitAllStatements(e.body,t),e.type,e.modifiers)})),s=e.constructorMethod&&new dt(e.constructorMethod.name,e.constructorMethod.params,this.visitAllStatements(e.constructorMethod.body,t),e.constructorMethod.type,e.constructorMethod.modifiers),o=e.methods.map((function(e){return new dt(e.name,e.params,n.visitAllStatements(e.body,t),e.type,e.modifiers)}));return this.transformStmt(new mt(e.name,r,e.fields,i,s,o,e.modifiers,e.sourceSpan),t)},e.prototype.visitIfStmt=function(e,t){return this.transformStmt(new yt(e.condition.visitExpression(this,t),this.visitAllStatements(e.trueCase,t),this.visitAllStatements(e.falseCase,t),e.sourceSpan),t)},e.prototype.visitTryCatchStmt=function(e,t){return this.transformStmt(new Et(this.visitAllStatements(e.bodyStmts,t),this.visitAllStatements(e.catchStmts,t),e.sourceSpan),t)},e.prototype.visitThrowStmt=function(e,t){return this.transformStmt(new xt(e.error.visitExpression(this,t),e.sourceSpan),t)},e.prototype.visitCommentStmt=function(e,t){return this.transformStmt(e,t)},e.prototype.visitJSDocCommentStmt=function(e,t){return this.transformStmt(e,t)},e.prototype.visitAllStatements=function(e,t){var n=this;return e.map((function(e){return e.visitStatement(n,t)}))},e}(),wt=function(){function e(){}return e.prototype.visitType=function(e,t){return e},e.prototype.visitExpression=function(e,t){return e.type&&e.type.visitType(this,t),e},e.prototype.visitBuiltinType=function(e,t){return this.visitType(e,t)},e.prototype.visitExpressionType=function(e,t){var n=this;return e.value.visitExpression(this,t),null!==e.typeParams&&e.typeParams.forEach((function(e){return n.visitType(e,t)})),this.visitType(e,t)},e.prototype.visitArrayType=function(e,t){return this.visitType(e,t)},e.prototype.visitMapType=function(e,t){return this.visitType(e,t)},e.prototype.visitWrappedNodeExpr=function(e,t){return e},e.prototype.visitTypeofExpr=function(e,t){return this.visitExpression(e,t)},e.prototype.visitReadVarExpr=function(e,t){return this.visitExpression(e,t)},e.prototype.visitWriteVarExpr=function(e,t){return e.value.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitWriteKeyExpr=function(e,t){return e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),e.value.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitWritePropExpr=function(e,t){return e.receiver.visitExpression(this,t),e.value.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitInvokeMethodExpr=function(e,t){return e.receiver.visitExpression(this,t),this.visitAllExpressions(e.args,t),this.visitExpression(e,t)},e.prototype.visitInvokeFunctionExpr=function(e,t){return e.fn.visitExpression(this,t),this.visitAllExpressions(e.args,t),this.visitExpression(e,t)},e.prototype.visitInstantiateExpr=function(e,t){return e.classExpr.visitExpression(this,t),this.visitAllExpressions(e.args,t),this.visitExpression(e,t)},e.prototype.visitLiteralExpr=function(e,t){return this.visitExpression(e,t)},e.prototype.visitLocalizedString=function(e,t){return this.visitExpression(e,t)},e.prototype.visitExternalExpr=function(e,t){var n=this;return e.typeParams&&e.typeParams.forEach((function(e){return e.visitType(n,t)})),this.visitExpression(e,t)},e.prototype.visitConditionalExpr=function(e,t){return e.condition.visitExpression(this,t),e.trueCase.visitExpression(this,t),e.falseCase.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitNotExpr=function(e,t){return e.condition.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitAssertNotNullExpr=function(e,t){return e.condition.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitCastExpr=function(e,t){return e.value.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitFunctionExpr=function(e,t){return this.visitAllStatements(e.statements,t),this.visitExpression(e,t)},e.prototype.visitBinaryOperatorExpr=function(e,t){return e.lhs.visitExpression(this,t),e.rhs.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitReadPropExpr=function(e,t){return e.receiver.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitReadKeyExpr=function(e,t){return e.receiver.visitExpression(this,t),e.index.visitExpression(this,t),this.visitExpression(e,t)},e.prototype.visitLiteralArrayExpr=function(e,t){return this.visitAllExpressions(e.entries,t),this.visitExpression(e,t)},e.prototype.visitLiteralMapExpr=function(e,t){var n=this;return e.entries.forEach((function(e){return e.value.visitExpression(n,t)})),this.visitExpression(e,t)},e.prototype.visitCommaExpr=function(e,t){return this.visitAllExpressions(e.parts,t),this.visitExpression(e,t)},e.prototype.visitAllExpressions=function(e,t){var n=this;e.forEach((function(e){return e.visitExpression(n,t)}))},e.prototype.visitDeclareVarStmt=function(e,t){return e.value&&e.value.visitExpression(this,t),e.type&&e.type.visitType(this,t),e},e.prototype.visitDeclareFunctionStmt=function(e,t){return this.visitAllStatements(e.statements,t),e.type&&e.type.visitType(this,t),e},e.prototype.visitExpressionStmt=function(e,t){return e.expr.visitExpression(this,t),e},e.prototype.visitReturnStmt=function(e,t){return e.value.visitExpression(this,t),e},e.prototype.visitDeclareClassStmt=function(e,t){var n=this;return e.parent.visitExpression(this,t),e.getters.forEach((function(e){return n.visitAllStatements(e.body,t)})),e.constructorMethod&&this.visitAllStatements(e.constructorMethod.body,t),e.methods.forEach((function(e){return n.visitAllStatements(e.body,t)})),e},e.prototype.visitIfStmt=function(e,t){return e.condition.visitExpression(this,t),this.visitAllStatements(e.trueCase,t),this.visitAllStatements(e.falseCase,t),e},e.prototype.visitTryCatchStmt=function(e,t){return this.visitAllStatements(e.bodyStmts,t),this.visitAllStatements(e.catchStmts,t),e},e.prototype.visitThrowStmt=function(e,t){return e.error.visitExpression(this,t),e},e.prototype.visitCommentStmt=function(e,t){return e},e.prototype.visitJSDocCommentStmt=function(e,t){return e},e.prototype.visitAllStatements=function(e,t){var n=this;e.forEach((function(e){return e.visitStatement(n,t)}))},e}();function Ct(e){var t=new bt;return t.visitAllStatements(e,null),t.varNames}var bt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.varNames=new Set,t}return l(t,e),t.prototype.visitDeclareFunctionStmt=function(e,t){return e},t.prototype.visitDeclareClassStmt=function(e,t){return e},t.prototype.visitReadVarExpr=function(e,t){return e.name&&this.varNames.add(e.name),null},t}(wt);var Tt=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.externalReferences=[],t}return l(t,e),t.prototype.visitExternalExpr=function(t,n){return this.externalReferences.push(t.value),e.prototype.visitExternalExpr.call(this,t,n)},t}(wt);function Pt(e,t){if(!t)return e;var n=new At(t);return e.visitStatement(n,null)}function Nt(e,t){if(!t)return e;var n=new At(t);return e.visitExpression(n,null)}var At=function(e){function t(t){var n=e.call(this)||this;return n.sourceSpan=t,n}return l(t,e),t.prototype._clone=function(e){var t,n,r=Object.create(e.constructor.prototype);try{for(var i=f(Object.keys(e)),s=i.next();!s.done;s=i.next()){var o=s.value;r[o]=e[o]}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},t.prototype.transformExpr=function(e,t){return e.sourceSpan||((e=this._clone(e)).sourceSpan=this.sourceSpan),e},t.prototype.transformStmt=function(e,t){return e.sourceSpan||((e=this._clone(e)).sourceSpan=this.sourceSpan),e},t}(St);function Mt(e,t,n){return new Ne(e,t,n)}function It(e,t,n){return void 0===t&&(t=null),new We(e,null,t,n)}function kt(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),null!=e?Rt(It(e,t,null),n):null}function Rt(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),new de(e,t,n)}function Ot(e){return new Ae(e)}function Ft(e,t,n){return new tt(e,t,n)}function Lt(e,t){return void 0===t&&(t=null),new rt(e.map((function(e){return new nt(e.key,e.value,e.quoted)})),t,null)}function Dt(e,t,n,r,i){return new Ye(e,t,n,r,i)}function Bt(e,t,n){return new yt(e,t,n)}function Vt(e,t,n){return new De(e,t,n)}function jt(e){return e instanceof De&&null===e.value}function Ut(e){var t="";if(e.tagName&&(t+=" @"+e.tagName),e.text){if(e.text.match(/\/\*|\*\//))throw new Error('JSDoc text cannot contain "/*" and "*/"');t+=" "+e.text.replace(/@/g,"\\@")}return t}var Ht=/-+([a-z0-9])/g;function qt(e,t){return Wt(e,":",t)}function Wt(e,t,n){var r=e.indexOf(t);return-1==r?n:[e.slice(0,r).trim(),e.slice(r+1).trim()]}function zt(e,t,n){return Array.isArray(e)?t.visitArray(e,n):"object"==typeof(r=e)&&null!==r&&Object.getPrototypeOf(r)===rn?t.visitStringMap(e,n):null==e||"string"==typeof e||"number"==typeof e||"boolean"==typeof e?t.visitPrimitive(e,n):t.visitOther(e,n);var r}function Kt(e){return null!=e}function Qt(e){return void 0===e?null:e}var Gt=function(){function e(){}return e.prototype.visitArray=function(e,t){var n=this;return e.map((function(e){return zt(e,n,t)}))},e.prototype.visitStringMap=function(e,t){var n=this,r={};return Object.keys(e).forEach((function(i){r[i]=zt(e[i],n,t)})),r},e.prototype.visitPrimitive=function(e,t){return e},e.prototype.visitOther=function(e,t){return e},e}(),Xt=function(e){if(un(e))throw new Error("Illegal state: value cannot be a promise");return e},$t=function(e,t){return un(e)?e.then(t):t(e)},Yt=function(e){return e.some(un)?Promise.all(e):e};function Jt(e){throw new Error("Internal Error: "+e)}function Zt(e,t){var n=Error(e);return n[en]=!0,t&&(n[tn]=t),n}var en="ngSyntaxError",tn="ngParseErrors";function nn(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}var rn=Object.getPrototypeOf({});function sn(e){for(var t="",n=0;n<e.length;n++){var r=e.charCodeAt(n);if(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 on(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(on).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 an(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")?e():e}function un(e){return!!e&&"function"==typeof e.then}var pn=function(e){this.full=e;var t=e.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")},ln="undefined"!=typeof window&&window,cn="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,hn=void 0!==u&&u||ln||cn;function fn(e,t){for(var n=[],r=0;r<e;r++)n.push(t);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
|
||
*/var dn=Mt("<unknown>"),vn={},mn=function(e){function t(t){var n=e.call(this,t.type)||this;return n.resolved=t,n.original=t,n}return l(t,e),t.prototype.visitExpression=function(e,t){return t===vn?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}(Te),yn=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 De||e instanceof mn)return e;var n=this.keyOf(e),r=this.literals.get(n),i=!1;if(r||(r=new mn(e),this.literals.set(n,r),i=!0),!i&&!r.shared||i&&t){var s=this.freshName();this.statements.push(Mt(s).set(e).toDeclStmt(ge,[qe.Final])),r.fixup(Mt(s))}return r},e.prototype.getDefinition=function(e,t,n,r){void 0===r&&(r=!1);var i=this.definitionsOf(t),s=i.get(e),o=!1;if(!s){var a=this.propertyNameOf(t);s=new mn(n.importExpr(e).prop(a)),i.set(e,s),o=!0}if(!o&&!s.shared||o&&r){var u=this.freshName();this.statements.push(Mt(u).set(s.resolved).toDeclStmt(ge,[qe.Final])),s.fixup(Mt(u))}return s},e.prototype.getLiteralFactory=function(e){if(e instanceof tt){var t=e.entries.map((function(e){return e.isConstant()?e:dn})),n=this.keyOf(Ft(t));return this._getLiteralFactory(n,e.entries,(function(e){return Ft(e)}))}var r=Lt(e.entries.map((function(e){return{key:e.key,value:e.value.isConstant()?e.value:dn,quoted:e.quoted}})));n=this.keyOf(r);return this._getLiteralFactory(n,e.entries.map((function(e){return e.value})),(function(t){return Lt(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),s=t.filter((function(e){return!e.isConstant()}));if(!i){var o=t.map((function(e,t){return e.isConstant()?r.getConstLiteral(e,!0):Mt("a"+t)})),a=Dt(o.filter(En).map((function(e){return new $e(e.name,ye)})),[new ct(n(o))],ge),u=this.freshName();this.statements.push(Mt(u).set(a).toDeclStmt(ge,[qe.Final])),i=Mt(u),this.literalFactories.set(e,i)}return{literalFactory:i,literalFactoryArguments:s}},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 Jt("Unknown definition kind "+e),this.componentDefinitions},e.prototype.propertyNameOf=function(e){switch(e){case 2:return"ɵcmp";case 1:return"ɵdir";case 0:return"ɵinj";case 3:return"ɵpipe"}return Jt("Unknown definition kind "+e),"<unknown>"},e.prototype.freshName=function(){return this.uniqueName("_c")},e.prototype.keyOf=function(e){return e.visitExpression(new gn,vn)},e}(),gn=function(){function e(){this.visitWrappedNodeExpr=_n,this.visitWriteVarExpr=_n,this.visitWriteKeyExpr=_n,this.visitWritePropExpr=_n,this.visitInvokeMethodExpr=_n,this.visitInvokeFunctionExpr=_n,this.visitInstantiateExpr=_n,this.visitConditionalExpr=_n,this.visitNotExpr=_n,this.visitAssertNotNullExpr=_n,this.visitCastExpr=_n,this.visitFunctionExpr=_n,this.visitBinaryOperatorExpr=_n,this.visitReadPropExpr=_n,this.visitReadKeyExpr=_n,this.visitCommaExpr=_n,this.visitLocalizedString=_n}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 _n(e){throw new Error("Invalid state: Visitor "+this.constructor.name+" doesn't handle "+e.constructor.name)}function En(e){return e instanceof Ne}
|
||
/**
|
||
* @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 xn="@angular/core",Sn=function(){function e(){}return e.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleName:xn},e.ElementRef={name:"ElementRef",moduleName:xn},e.NgModuleRef={name:"NgModuleRef",moduleName:xn},e.ViewContainerRef={name:"ViewContainerRef",moduleName:xn},e.ChangeDetectorRef={name:"ChangeDetectorRef",moduleName:xn},e.QueryList={name:"QueryList",moduleName:xn},e.TemplateRef={name:"TemplateRef",moduleName:xn},e.Renderer2={name:"Renderer2",moduleName:xn},e.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleName:xn},e.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleName:xn},e.ComponentFactory={name:"ComponentFactory",moduleName:xn},e.ComponentRef={name:"ComponentRef",moduleName:xn},e.NgModuleFactory={name:"NgModuleFactory",moduleName:xn},e.createModuleFactory={name:"ɵcmf",moduleName:xn},e.moduleDef={name:"ɵmod",moduleName:xn},e.moduleProviderDef={name:"ɵmpd",moduleName:xn},e.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleName:xn},e.inject={name:"ɵɵinject",moduleName:xn},e.directiveInject={name:"ɵɵdirectiveInject",moduleName:xn},e.INJECTOR={name:"INJECTOR",moduleName:xn},e.Injector={name:"Injector",moduleName:xn},e.ɵɵdefineInjectable={name:"ɵɵdefineInjectable",moduleName:xn},e.InjectableDef={name:"ɵɵInjectableDef",moduleName:xn},e.ViewEncapsulation={name:"ViewEncapsulation",moduleName:xn},e.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:xn},e.SecurityContext={name:"SecurityContext",moduleName:xn},e.LOCALE_ID={name:"LOCALE_ID",moduleName:xn},e.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleName:xn},e.inlineInterpolate={name:"ɵinlineInterpolate",moduleName:xn},e.interpolate={name:"ɵinterpolate",moduleName:xn},e.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleName:xn},e.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleName:xn},e.Renderer={name:"Renderer",moduleName:xn},e.viewDef={name:"ɵvid",moduleName:xn},e.elementDef={name:"ɵeld",moduleName:xn},e.anchorDef={name:"ɵand",moduleName:xn},e.textDef={name:"ɵted",moduleName:xn},e.directiveDef={name:"ɵdid",moduleName:xn},e.providerDef={name:"ɵprd",moduleName:xn},e.queryDef={name:"ɵqud",moduleName:xn},e.pureArrayDef={name:"ɵpad",moduleName:xn},e.pureObjectDef={name:"ɵpod",moduleName:xn},e.purePipeDef={name:"ɵppd",moduleName:xn},e.pipeDef={name:"ɵpid",moduleName:xn},e.nodeValue={name:"ɵnov",moduleName:xn},e.ngContentDef={name:"ɵncd",moduleName:xn},e.unwrapValue={name:"ɵunv",moduleName:xn},e.createRendererType2={name:"ɵcrt",moduleName:xn},e.RendererType2={name:"RendererType2",moduleName:xn},e.ViewDefinition={name:"ɵViewDefinition",moduleName:xn},e.createComponentFactory={name:"ɵccf",moduleName:xn},e.setClassMetadata={name:"ɵsetClassMetadata",moduleName:xn},e}();function wn(e){return{identifier:{reference:e}}}function Cn(e,t){return wn(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 bn=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}(),Tn=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 bn(e,t,n),this.cache.set(r,i)),i},e}(),Pn=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function Nn(e){return e.replace(/\W/g,"_")}var An,Mn=0;function In(e){if(!e||!e.reference)return null;var t=e.reference;if(t instanceof bn)return t.name;if(t.__anonymousType)return t.__anonymousType;var n=on(t);return n.indexOf("(")>=0?(n="anonymous_"+Mn++,t.__anonymousType=n):n=Nn(n),n}function kn(e){var t=e.reference;return t instanceof bn?t.filePath:"./"+on(t)}function Rn(e,t){return"View_"+In({reference:e})+"_"+t}function On(e){return"RenderType_"+In({reference:e})}function Fn(e){return"HostView_"+In({reference:e})}function Ln(e){return In({reference:e})+"NgFactory"}function Dn(e){return null!=e.value?Nn(e.value):In(e.identifier)}function Bn(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"}(An||(An={}));var Vn=function(e){var t=void 0===e?{}:e,n=t.moduleUrl,r=t.styles,i=t.styleUrls;this.moduleUrl=n||null,this.styles=Kn(r),this.styleUrls=Kn(i)},jn=function(){function e(e){var t=e.encapsulation,n=e.template,r=e.templateUrl,i=e.htmlAst,s=e.styles,o=e.styleUrls,a=e.externalStylesheets,u=e.animations,p=e.ngContentSelectors,l=e.interpolation,c=e.isInline,h=e.preserveWhitespaces;if(this.encapsulation=t,this.template=n,this.templateUrl=r,this.htmlAst=i,this.styles=Kn(s),this.styleUrls=Kn(o),this.externalStylesheets=Kn(a),this.animations=u?Gn(u):[],this.ngContentSelectors=p||[],l&&2!=l.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=l,this.isInline=c,this.preserveWhitespaces=h}return e.prototype.toSummary=function(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation,styles:this.styles,animations:this.animations}},e}(),Un=function(){function e(e){var t=e.isHost,n=e.type,r=e.isComponent,i=e.selector,s=e.exportAs,o=e.changeDetection,a=e.inputs,u=e.outputs,p=e.hostListeners,l=e.hostProperties,c=e.hostAttributes,h=e.providers,f=e.viewProviders,d=e.queries,v=e.guards,m=e.viewQueries,y=e.entryComponents,g=e.template,_=e.componentViewType,E=e.rendererType,x=e.componentFactory;this.isHost=!!t,this.type=n,this.isComponent=r,this.selector=i,this.exportAs=s,this.changeDetection=o,this.inputs=a,this.outputs=u,this.hostListeners=p,this.hostProperties=l,this.hostAttributes=c,this.providers=Kn(h),this.viewProviders=Kn(f),this.queries=Kn(d),this.guards=v,this.viewQueries=Kn(m),this.entryComponents=Kn(y),this.template=g,this.componentViewType=_,this.rendererType=E,this.componentFactory=x}return e.create=function(t){var n=t.isHost,r=t.type,i=t.isComponent,s=t.selector,o=t.exportAs,a=t.changeDetection,u=t.inputs,p=t.outputs,l=t.host,c=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,E=t.componentFactory,x={},S={},w={};null!=l&&Object.keys(l).forEach((function(e){var t=l[e],n=e.match(Pn);null===n?w[e]=t:null!=n[1]?S[n[1]]=t:null!=n[2]&&(x[n[2]]=t)}));var C={};null!=u&&u.forEach((function(e){var t=qt(e,[e,e]);C[t[0]]=t[1]}));var b={};return null!=p&&p.forEach((function(e){var t=qt(e,[e,e]);b[t[0]]=t[1]})),new e({isHost:n,type:r,isComponent:!!i,selector:s,exportAs:o,changeDetection:a,inputs:C,outputs:b,hostListeners:x,hostProperties:S,hostAttributes:w,providers:c,viewProviders:h,queries:f,guards:d,viewQueries:v,entryComponents:m,template:y,componentViewType:g,rendererType:_,componentFactory:E})},e.prototype.toSummary=function(){return{summaryKind:An.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}(),Hn=function(){function e(e){var t=e.type,n=e.name,r=e.pure;this.type=t,this.name=n,this.pure=!!r}return e.prototype.toSummary=function(){return{summaryKind:An.Pipe,type:this.type,name:this.name,pure:this.pure}},e}(),qn=function(){},Wn=function(){function e(e){var t=e.type,n=e.providers,r=e.declaredDirectives,i=e.exportedDirectives,s=e.declaredPipes,o=e.exportedPipes,a=e.entryComponents,u=e.bootstrapComponents,p=e.importedModules,l=e.exportedModules,c=e.schemas,h=e.transitiveModule,f=e.id;this.type=t||null,this.declaredDirectives=Kn(r),this.exportedDirectives=Kn(i),this.declaredPipes=Kn(s),this.exportedPipes=Kn(o),this.providers=Kn(n),this.entryComponents=Kn(a),this.bootstrapComponents=Kn(u),this.importedModules=Kn(p),this.exportedModules=Kn(l),this.schemas=Kn(c),this.id=f||null,this.transitiveModule=h||null}return e.prototype.toSummary=function(){var e=this.transitiveModule;return{summaryKind:An.NgModule,type:this.type,entryComponents:e.entryComponents,providers:e.providers,modules:e.modules,exportedDirectives:e.exportedDirectives,exportedPipes:e.exportedPipes}},e}(),zn=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 Kn(e){return e||[]}var Qn=function(e,t){var n=t.useClass,r=t.useValue,i=t.useExisting,s=t.useFactory,o=t.deps,a=t.multi;this.token=e,this.useClass=n||null,this.useValue=r,this.useExisting=i,this.useFactory=s||null,this.dependencies=o||null,this.multi=!!a};function Gn(e){return e.reduce((function(e,t){var n=Array.isArray(t)?Gn(t):t;return e.concat(n)}),[])}function Xn(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function $n(e,t,n){var r;return r=n.isInline?t.type.reference instanceof bn?t.type.reference.filePath+"."+t.type.reference.name+".html":In(e)+"/"+In(t.type)+".html":n.templateUrl,t.type.reference instanceof bn?r:Xn(r)}function Yn(e,t){var n=e.moduleUrl.split(/\/\\/g);return Xn("css/"+t+n[n.length-1]+".ngstyle.js")}function Jn(e){return Xn(In(e.type)+"/module.ngfactory.js")}function Zn(e,t){return Xn(In(e)+"/"+In(t.type)+".ngfactory.js")}
|
||
/**
|
||
* @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="@angular/core",tr=function(){function e(){}return e.NEW_METHOD="factory",e.TRANSFORM_METHOD="transform",e.PATCH_DEPS="patchedDeps",e.namespaceHTML={name:"ɵɵnamespaceHTML",moduleName:er},e.namespaceMathML={name:"ɵɵnamespaceMathML",moduleName:er},e.namespaceSVG={name:"ɵɵnamespaceSVG",moduleName:er},e.element={name:"ɵɵelement",moduleName:er},e.elementStart={name:"ɵɵelementStart",moduleName:er},e.elementEnd={name:"ɵɵelementEnd",moduleName:er},e.select={name:"ɵɵselect",moduleName:er},e.advance={name:"ɵɵadvance",moduleName:er},e.updateSyntheticHostBinding={name:"ɵɵupdateSyntheticHostBinding",moduleName:er},e.componentHostSyntheticListener={name:"ɵɵcomponentHostSyntheticListener",moduleName:er},e.attribute={name:"ɵɵattribute",moduleName:er},e.attributeInterpolate1={name:"ɵɵattributeInterpolate1",moduleName:er},e.attributeInterpolate2={name:"ɵɵattributeInterpolate2",moduleName:er},e.attributeInterpolate3={name:"ɵɵattributeInterpolate3",moduleName:er},e.attributeInterpolate4={name:"ɵɵattributeInterpolate4",moduleName:er},e.attributeInterpolate5={name:"ɵɵattributeInterpolate5",moduleName:er},e.attributeInterpolate6={name:"ɵɵattributeInterpolate6",moduleName:er},e.attributeInterpolate7={name:"ɵɵattributeInterpolate7",moduleName:er},e.attributeInterpolate8={name:"ɵɵattributeInterpolate8",moduleName:er},e.attributeInterpolateV={name:"ɵɵattributeInterpolateV",moduleName:er},e.classProp={name:"ɵɵclassProp",moduleName:er},e.elementContainerStart={name:"ɵɵelementContainerStart",moduleName:er},e.elementContainerEnd={name:"ɵɵelementContainerEnd",moduleName:er},e.elementContainer={name:"ɵɵelementContainer",moduleName:er},e.styleMap={name:"ɵɵstyleMap",moduleName:er},e.styleMapInterpolate1={name:"ɵɵstyleMapInterpolate1",moduleName:er},e.styleMapInterpolate2={name:"ɵɵstyleMapInterpolate2",moduleName:er},e.styleMapInterpolate3={name:"ɵɵstyleMapInterpolate3",moduleName:er},e.styleMapInterpolate4={name:"ɵɵstyleMapInterpolate4",moduleName:er},e.styleMapInterpolate5={name:"ɵɵstyleMapInterpolate5",moduleName:er},e.styleMapInterpolate6={name:"ɵɵstyleMapInterpolate6",moduleName:er},e.styleMapInterpolate7={name:"ɵɵstyleMapInterpolate7",moduleName:er},e.styleMapInterpolate8={name:"ɵɵstyleMapInterpolate8",moduleName:er},e.styleMapInterpolateV={name:"ɵɵstyleMapInterpolateV",moduleName:er},e.classMap={name:"ɵɵclassMap",moduleName:er},e.classMapInterpolate1={name:"ɵɵclassMapInterpolate1",moduleName:er},e.classMapInterpolate2={name:"ɵɵclassMapInterpolate2",moduleName:er},e.classMapInterpolate3={name:"ɵɵclassMapInterpolate3",moduleName:er},e.classMapInterpolate4={name:"ɵɵclassMapInterpolate4",moduleName:er},e.classMapInterpolate5={name:"ɵɵclassMapInterpolate5",moduleName:er},e.classMapInterpolate6={name:"ɵɵclassMapInterpolate6",moduleName:er},e.classMapInterpolate7={name:"ɵɵclassMapInterpolate7",moduleName:er},e.classMapInterpolate8={name:"ɵɵclassMapInterpolate8",moduleName:er},e.classMapInterpolateV={name:"ɵɵclassMapInterpolateV",moduleName:er},e.styleProp={name:"ɵɵstyleProp",moduleName:er},e.stylePropInterpolate1={name:"ɵɵstylePropInterpolate1",moduleName:er},e.stylePropInterpolate2={name:"ɵɵstylePropInterpolate2",moduleName:er},e.stylePropInterpolate3={name:"ɵɵstylePropInterpolate3",moduleName:er},e.stylePropInterpolate4={name:"ɵɵstylePropInterpolate4",moduleName:er},e.stylePropInterpolate5={name:"ɵɵstylePropInterpolate5",moduleName:er},e.stylePropInterpolate6={name:"ɵɵstylePropInterpolate6",moduleName:er},e.stylePropInterpolate7={name:"ɵɵstylePropInterpolate7",moduleName:er},e.stylePropInterpolate8={name:"ɵɵstylePropInterpolate8",moduleName:er},e.stylePropInterpolateV={name:"ɵɵstylePropInterpolateV",moduleName:er},e.containerCreate={name:"ɵɵcontainer",moduleName:er},e.nextContext={name:"ɵɵnextContext",moduleName:er},e.templateCreate={name:"ɵɵtemplate",moduleName:er},e.text={name:"ɵɵtext",moduleName:er},e.enableBindings={name:"ɵɵenableBindings",moduleName:er},e.disableBindings={name:"ɵɵdisableBindings",moduleName:er},e.getCurrentView={name:"ɵɵgetCurrentView",moduleName:er},e.textInterpolate={name:"ɵɵtextInterpolate",moduleName:er},e.textInterpolate1={name:"ɵɵtextInterpolate1",moduleName:er},e.textInterpolate2={name:"ɵɵtextInterpolate2",moduleName:er},e.textInterpolate3={name:"ɵɵtextInterpolate3",moduleName:er},e.textInterpolate4={name:"ɵɵtextInterpolate4",moduleName:er},e.textInterpolate5={name:"ɵɵtextInterpolate5",moduleName:er},e.textInterpolate6={name:"ɵɵtextInterpolate6",moduleName:er},e.textInterpolate7={name:"ɵɵtextInterpolate7",moduleName:er},e.textInterpolate8={name:"ɵɵtextInterpolate8",moduleName:er},e.textInterpolateV={name:"ɵɵtextInterpolateV",moduleName:er},e.restoreView={name:"ɵɵrestoreView",moduleName:er},e.pureFunction0={name:"ɵɵpureFunction0",moduleName:er},e.pureFunction1={name:"ɵɵpureFunction1",moduleName:er},e.pureFunction2={name:"ɵɵpureFunction2",moduleName:er},e.pureFunction3={name:"ɵɵpureFunction3",moduleName:er},e.pureFunction4={name:"ɵɵpureFunction4",moduleName:er},e.pureFunction5={name:"ɵɵpureFunction5",moduleName:er},e.pureFunction6={name:"ɵɵpureFunction6",moduleName:er},e.pureFunction7={name:"ɵɵpureFunction7",moduleName:er},e.pureFunction8={name:"ɵɵpureFunction8",moduleName:er},e.pureFunctionV={name:"ɵɵpureFunctionV",moduleName:er},e.pipeBind1={name:"ɵɵpipeBind1",moduleName:er},e.pipeBind2={name:"ɵɵpipeBind2",moduleName:er},e.pipeBind3={name:"ɵɵpipeBind3",moduleName:er},e.pipeBind4={name:"ɵɵpipeBind4",moduleName:er},e.pipeBindV={name:"ɵɵpipeBindV",moduleName:er},e.hostProperty={name:"ɵɵhostProperty",moduleName:er},e.property={name:"ɵɵproperty",moduleName:er},e.propertyInterpolate={name:"ɵɵpropertyInterpolate",moduleName:er},e.propertyInterpolate1={name:"ɵɵpropertyInterpolate1",moduleName:er},e.propertyInterpolate2={name:"ɵɵpropertyInterpolate2",moduleName:er},e.propertyInterpolate3={name:"ɵɵpropertyInterpolate3",moduleName:er},e.propertyInterpolate4={name:"ɵɵpropertyInterpolate4",moduleName:er},e.propertyInterpolate5={name:"ɵɵpropertyInterpolate5",moduleName:er},e.propertyInterpolate6={name:"ɵɵpropertyInterpolate6",moduleName:er},e.propertyInterpolate7={name:"ɵɵpropertyInterpolate7",moduleName:er},e.propertyInterpolate8={name:"ɵɵpropertyInterpolate8",moduleName:er},e.propertyInterpolateV={name:"ɵɵpropertyInterpolateV",moduleName:er},e.i18n={name:"ɵɵi18n",moduleName:er},e.i18nAttributes={name:"ɵɵi18nAttributes",moduleName:er},e.i18nExp={name:"ɵɵi18nExp",moduleName:er},e.i18nStart={name:"ɵɵi18nStart",moduleName:er},e.i18nEnd={name:"ɵɵi18nEnd",moduleName:er},e.i18nApply={name:"ɵɵi18nApply",moduleName:er},e.i18nPostprocess={name:"ɵɵi18nPostprocess",moduleName:er},e.pipe={name:"ɵɵpipe",moduleName:er},e.projection={name:"ɵɵprojection",moduleName:er},e.projectionDef={name:"ɵɵprojectionDef",moduleName:er},e.reference={name:"ɵɵreference",moduleName:er},e.inject={name:"ɵɵinject",moduleName:er},e.injectAttribute={name:"ɵɵinjectAttribute",moduleName:er},e.injectPipeChangeDetectorRef={name:"ɵɵinjectPipeChangeDetectorRef",moduleName:er},e.directiveInject={name:"ɵɵdirectiveInject",moduleName:er},e.invalidFactory={name:"ɵɵinvalidFactory",moduleName:er},e.invalidFactoryDep={name:"ɵɵinvalidFactoryDep",moduleName:er},e.templateRefExtractor={name:"ɵɵtemplateRefExtractor",moduleName:er},e.resolveWindow={name:"ɵɵresolveWindow",moduleName:er},e.resolveDocument={name:"ɵɵresolveDocument",moduleName:er},e.resolveBody={name:"ɵɵresolveBody",moduleName:er},e.defineComponent={name:"ɵɵdefineComponent",moduleName:er},e.setComponentScope={name:"ɵɵsetComponentScope",moduleName:er},e.ComponentDefWithMeta={name:"ɵɵComponentDefWithMeta",moduleName:er},e.FactoryDef={name:"ɵɵFactoryDef",moduleName:er},e.defineDirective={name:"ɵɵdefineDirective",moduleName:er},e.DirectiveDefWithMeta={name:"ɵɵDirectiveDefWithMeta",moduleName:er},e.InjectorDef={name:"ɵɵInjectorDef",moduleName:er},e.defineInjector={name:"ɵɵdefineInjector",moduleName:er},e.NgModuleDefWithMeta={name:"ɵɵNgModuleDefWithMeta",moduleName:er},e.ModuleWithProviders={name:"ModuleWithProviders",moduleName:er},e.defineNgModule={name:"ɵɵdefineNgModule",moduleName:er},e.setNgModuleScope={name:"ɵɵsetNgModuleScope",moduleName:er},e.PipeDefWithMeta={name:"ɵɵPipeDefWithMeta",moduleName:er},e.definePipe={name:"ɵɵdefinePipe",moduleName:er},e.queryRefresh={name:"ɵɵqueryRefresh",moduleName:er},e.viewQuery={name:"ɵɵviewQuery",moduleName:er},e.staticViewQuery={name:"ɵɵstaticViewQuery",moduleName:er},e.staticContentQuery={name:"ɵɵstaticContentQuery",moduleName:er},e.loadQuery={name:"ɵɵloadQuery",moduleName:er},e.contentQuery={name:"ɵɵcontentQuery",moduleName:er},e.NgOnChangesFeature={name:"ɵɵNgOnChangesFeature",moduleName:er},e.InheritDefinitionFeature={name:"ɵɵInheritDefinitionFeature",moduleName:er},e.CopyDefinitionFeature={name:"ɵɵCopyDefinitionFeature",moduleName:er},e.ProvidersFeature={name:"ɵɵProvidersFeature",moduleName:er},e.listener={name:"ɵɵlistener",moduleName:er},e.getFactoryOf={name:"ɵɵgetFactoryOf",moduleName:er},e.getInheritedFactory={name:"ɵɵgetInheritedFactory",moduleName:er},e.sanitizeHtml={name:"ɵɵsanitizeHtml",moduleName:er},e.sanitizeStyle={name:"ɵɵsanitizeStyle",moduleName:er},e.defaultStyleSanitizer={name:"ɵɵdefaultStyleSanitizer",moduleName:er},e.sanitizeResourceUrl={name:"ɵɵsanitizeResourceUrl",moduleName:er},e.sanitizeScript={name:"ɵɵsanitizeScript",moduleName:er},e.sanitizeUrl={name:"ɵɵsanitizeUrl",moduleName:er},e.sanitizeUrlOrResourceUrl={name:"ɵɵsanitizeUrlOrResourceUrl",moduleName:er},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 nr(e){return Lt(Object.keys(e).map((function(t){return{key:t,value:e[t],quoted:!1}})))}function rr(e,t){if(Array.isArray(e))return Ft(e.map((function(e){return rr(e,t)})));if(e instanceof bn)return t.importExpr(e);if(null==e)return Vt(e);throw new Error("Internal error: Unsupported or unknown metadata: "+e)}function ir(e,t){var n=null;if(t>0){n=[];for(var r=0;r<t;r++)n.push(ye)}return Rt(e,null,n)}function sr(e){return"@"+e}function or(e,t){return"animation_"+e+"_"+t}function ar(e){return e>=9&&e<=32||160==e}function ur(e){return 48<=e&&e<=57}function pr(e){return e>=97&&e<=122||e>=65&&e<=90}function lr(e){return 10===e||13===e}function cr(e){return 48<=e&&e<=55}
|
||
/**
|
||
* @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 hr,fr=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,s=this.line,o=this.col;i>0&&t<0;){if(i--,t++,10==(u=n.charCodeAt(i))){s--;var a=n.substr(0,i-1).lastIndexOf(String.fromCharCode(10));o=a>0?i-a:i}else o--}for(;i<r&&t>0;){var u=n.charCodeAt(i);i++,t--,10==u?(s++,o=0):o++}return new e(this.file,i,s,o)},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,s=0,o=0;s<e&&r>0&&(s++,"\n"!=n[--r]||++o!=t););for(s=0,o=0;s<e&&i<n.length-1&&(s++,"\n"!=n[++i]||++o!=t););return{before:n.substring(r,this.offset),after:n.substring(this.offset,i+1)}}return null},e}(),dr=function(e,t){this.content=e,this.url=t},vr=function(){function e(e,t,n){void 0===n&&(n=null),this.start=e,this.end=t,this.details=n}return e.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},e}(),mr=new fr(new dr("",""),0,0,0),yr=new vr(mr,mr);!function(e){e[e.WARNING=0]="WARNING",e[e.ERROR=1]="ERROR"}(hr||(hr={}));var gr=function(){function e(e,t,n){void 0===n&&(n=hr.ERROR),this.span=e,this.msg=t,this.level=n}return e.prototype.contextualMessage=function(){var e=this.span.start.getContext(100,3);return e?this.msg+' ("'+e.before+"["+hr[this.level]+" ->]"+e.after+'")':this.msg},e.prototype.toString=function(){var e=this.span.details?", "+this.span.details:"";return this.contextualMessage()+": "+this.span.start+e},e}();function _r(e,t){var n=kn(t),r=null!=n?"in "+e+" "+In(t)+" in "+n:"in "+e+" "+In(t),i=new dr("",r);return new vr(new fr(i,-1,-1,-1),new fr(i,-1,-1,-1))}function Er(e,t,n){var r=new dr("","in "+e+" "+t+" in "+n);return new vr(new fr(r,-1,-1,-1),new fr(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
|
||
*/var xr=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}(),wr=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}(),Cr=function(){function e(e,t,n,r,i,s,o,a){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=s,this.valueSpan=o,this.i18n=a}return e.fromBoundElementProperty=function(t,n){return new e(t.name,t.type,t.securityContext,t.value,t.unit,t.sourceSpan,t.valueSpan,n)},e.prototype.visit=function(e){return e.visitBoundAttribute(this)},e}(),br=function(){function e(e,t,n,r,i,s,o){this.name=e,this.type=t,this.handler=n,this.target=r,this.phase=i,this.sourceSpan=s,this.handlerSpan=o}return e.fromParsedEvent=function(t){var n=0===t.type?t.targetOrPhase:null,r=1===t.type?t.targetOrPhase:null;return new e(t.name,t.type,t.handler,n,r,t.sourceSpan,t.handlerSpan)},e.prototype.visit=function(e){return e.visitBoundEvent(this)},e}(),Tr=function(){function e(e,t,n,r,i,s,o,a,u,p){this.name=e,this.attributes=t,this.inputs=n,this.outputs=r,this.children=i,this.references=s,this.sourceSpan=o,this.startSourceSpan=a,this.endSourceSpan=u,this.i18n=p,0===i.length&&a&&u&&(this.sourceSpan=new vr(o.start,u.end))}return e.prototype.visit=function(e){return e.visitElement(this)},e}(),Pr=function(){function e(e,t,n,r,i,s,o,a,u,p,l,c){this.tagName=e,this.attributes=t,this.inputs=n,this.outputs=r,this.templateAttrs=i,this.children=s,this.references=o,this.variables=a,this.sourceSpan=u,this.startSourceSpan=p,this.endSourceSpan=l,this.i18n=c}return e.prototype.visit=function(e){return e.visitTemplate(this)},e}(),Nr=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}(),Ar=function(){function e(e,t,n,r){this.name=e,this.value=t,this.sourceSpan=n,this.valueSpan=r}return e.prototype.visit=function(e){return e.visitVariable(this)},e}(),Mr=function(){function e(e,t,n,r){this.name=e,this.value=t,this.sourceSpan=n,this.valueSpan=r}return e.prototype.visit=function(e){return e.visitReference(this)},e}(),Ir=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}(),kr=function(){function e(){}return e.prototype.visitElement=function(e){Rr(this,e.attributes),Rr(this,e.children),Rr(this,e.references)},e.prototype.visitTemplate=function(e){Rr(this,e.attributes),Rr(this,e.children),Rr(this,e.references),Rr(this,e.variables)},e.prototype.visitContent=function(e){},e.prototype.visitVariable=function(e){},e.prototype.visitReference=function(e){},e.prototype.visitTextAttribute=function(e){},e.prototype.visitBoundAttribute=function(e){},e.prototype.visitBoundEvent=function(e){},e.prototype.visitText=function(e){},e.prototype.visitBoundText=function(e){},e.prototype.visitIcu=function(e){},e}();function Rr(e,t){var n,r,i,s,o=[];if(e.visit)try{for(var a=f(t),u=a.next();!u.done;u=a.next())var p=u.value,l=e.visit(p)||p.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=f(t),h=c.next();!h.done;h=c.next()){(l=(p=h.value).visit(e))&&o.push(l)}}catch(e){i={error:e}}finally{try{h&&!h.done&&(s=c.return)&&s.call(c)}finally{if(i)throw i.error}}return 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 Or=function(e,t,n,r,i,s){this.nodes=e,this.placeholders=t,this.placeholderToMessage=n,this.meaning=r,this.description=i,this.customId=s,this.id=this.customId,this.legacyIds=[],e.length?this.sources=[{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}]:this.sources=[]},Fr=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitText(this,t)},e}(),Lr=function(){function e(e,t){this.children=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitContainer(this,t)},e}(),Dr=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}(),Br=function(){function e(e,t,n,r,i,s,o){this.tag=e,this.attrs=t,this.startName=n,this.closeName=r,this.children=i,this.isVoid=s,this.sourceSpan=o}return e.prototype.visit=function(e,t){return e.visitTagPlaceholder(this,t)},e}(),Vr=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}(),jr=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}(),Ur=function(){function e(){}return e.prototype.visitText=function(e,t){return new Fr(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 Lr(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 Dr(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 Br(e.tag,e.attrs,e.startName,e.closeName,r,e.isVoid,e.sourceSpan)},e.prototype.visitPlaceholder=function(e,t){return new Vr(e.value,e.name,e.sourceSpan)},e.prototype.visitIcuPlaceholder=function(e,t){return new jr(e.value,e.name,e.sourceSpan)},e}(),Hr=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 qr(e){return e.id||Wr(e)}function Wr(e){return function(e){var t=sn(e),n=function(e,t){for(var n=e.length+3>>>2,r=[],i=0;i<n;i++)r[i]=ai(e,4*i,t);return r}(t,Xr.Big),r=8*t.length,i=fn(80),s=1732584193,o=4023233417,a=2562383102,u=271733878,p=3285377520;n[r>>5]|=128<<24-r%32,n[15+(r+64>>9<<4)]=r;for(var l=0;l<n.length;l+=16){for(var c=s,h=o,f=a,d=u,v=p,m=0;m<80;m++){i[m]=m<16?n[l+m]:si(i[m-3]^i[m-8]^i[m-14]^i[m-16],1);var y=Yr(m,o,a,u),g=y[0],_=y[1],E=[si(s,5),g,p,_,i[m]].reduce(ni);p=u,u=a,a=si(o,30),o=s,s=E}s=ni(s,c),o=ni(o,h),a=ni(a,f),u=ni(u,d),p=ni(p,v)}return function(e){for(var t="",n=0;n<e.length;n++){var r=oi(e,n);t+=(r>>>4).toString(16)+(15&r).toString(16)}return t.toLowerCase()}(ui([s,o,a,u,p]))}((t=e.nodes,t.map((function(e){return e.visit(Gr,null)}))).join("")+"["+e.meaning+"]");var t}function zr(e){return e.id||Kr(e)}function Kr(e){var t=new $r;return Zr(e.nodes.map((function(e){return e.visit(t,null)})).join(""),e.meaning)}var Qr=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?'<ph tag name="'+e.startName+'"/>':'<ph tag name="'+e.startName+'">'+e.children.map((function(e){return e.visit(n)})).join(", ")+'</ph name="'+e.closeName+'">'},e.prototype.visitPlaceholder=function(e,t){return e.value?'<ph name="'+e.name+'">'+e.value+"</ph>":'<ph name="'+e.name+'"/>'},e.prototype.visitIcuPlaceholder=function(e,t){return'<ph icu name="'+e.name+'">'+e.value.visit(this)+"</ph>"},e}(),Gr=new Qr;var Xr,$r=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(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}(Qr);function Yr(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 Jr(e){var t=sn(e),n=ei(t,0),r=ei(t,102072);return 0!=n||0!=r&&1!=r||(n^=319790063,r^=-1801410264),[n,r]}function Zr(e,t){void 0===t&&(t="");var n=Jr(e);if(t){var r=Jr(t);n=function(e,t){var n=e[0],r=e[1],i=t[0],s=t[1],o=ri(r,s),a=o[0],u=o[1];return[ni(ni(n,i),a),u]}(function(e,t){var n=e[0],r=e[1];return[n<<t|r>>>32-t,r<<t|n>>>32-t]}(n,1),r)}return function(e){for(var t="",n="1",r=e.length-1;r>=0;r--)t=pi(t,li(oi(e,r),n)),n=li(256,n);return t.split("").reverse().join("")}(ui([2147483647&n[0],n[1]]))}function ei(e,t){var n,r=2654435769,i=2654435769,s=e.length;for(n=0;n+12<=s;n+=12){var o=ti(r=ni(r,ai(e,n,Xr.Little)),i=ni(i,ai(e,n+4,Xr.Little)),t=ni(t,ai(e,n+8,Xr.Little)));r=o[0],i=o[1],t=o[2]}return r=ni(r,ai(e,n,Xr.Little)),i=ni(i,ai(e,n+4,Xr.Little)),t=ni(t,s),ti(r,i,t=ni(t,ai(e,n+8,Xr.Little)<<8))[2]}function ti(e,t,n){return e=ii(e,t),e=ii(e,n),e^=n>>>13,t=ii(t,n),t=ii(t,e),t^=e<<8,n=ii(n,e),n=ii(n,t),n^=t>>>13,e=ii(e,t),e=ii(e,n),e^=n>>>12,t=ii(t,n),t=ii(t,e),t^=e<<16,n=ii(n,e),n=ii(n,t),n^=t>>>5,e=ii(e,t),e=ii(e,n),e^=n>>>3,t=ii(t,n),t=ii(t,e),t^=e<<10,n=ii(n,e),n=ii(n,t),[e,t,n^=t>>>15]}function ni(e,t){return ri(e,t)[1]}function ri(e,t){var n=(65535&e)+(65535&t),r=(e>>>16)+(t>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function ii(e,t){var n=(65535&e)-(65535&t);return(e>>16)-(t>>16)+(n>>16)<<16|65535&n}function si(e,t){return e<<t|e>>>32-t}function oi(e,t){return t>=e.length?0:255&e.charCodeAt(t)}function ai(e,t,n){var r=0;if(n===Xr.Big)for(var i=0;i<4;i++)r+=oi(e,t+i)<<24-8*i;else for(i=0;i<4;i++)r+=oi(e,t+i)<<8*i;return r}function ui(e){return e.reduce((function(e,t){return e+function(e){for(var t="",n=0;n<4;n++)t+=String.fromCharCode(e>>>8*(3-n)&255);return t}(t)}),"")}function pi(e,t){for(var n="",r=Math.max(e.length,t.length),i=0,s=0;i<r||s;i++){var o=s+ +(e[i]||0)+ +(t[i]||0);o>=10?(s=1,n+=o-10):(s=0,n+=o)}return n}function li(e,t){for(var n="",r=t;0!==e;e>>>=1)1&e&&(n=pi(n,r)),r=pi(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"}(Xr||(Xr={}));var ci=function(){function e(){}return e.prototype.createNameMapper=function(e){return null},e}(),hi=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 l(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}(Hr),fi=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.name+">"},e.prototype.visitText=function(e){return e.value},e.prototype.visitDeclaration=function(e){return"<?xml"+this._serializeAttributes(e.attrs)+" ?>"},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"<!DOCTYPE "+e.rootTag+" [\n"+e.dtd+"\n]>"},e}());function di(e){return e.map((function(e){return e.visit(fi)})).join("")}var vi=function(){function e(e){var t=this;this.attrs={},Object.keys(e).forEach((function(n){t.attrs[n]=xi(e[n])}))}return e.prototype.visit=function(e){return e.visitDeclaration(this)},e}(),mi=function(){function e(e,t){this.rootTag=e,this.dtd=t}return e.prototype.visit=function(e){return e.visitDoctype(this)},e}(),yi=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]=xi(t[e])}))}return e.prototype.visit=function(e){return e.visitTag(this)},e}(),gi=function(){function e(e){this.value=xi(e)}return e.prototype.visit=function(e){return e.visitText(this)},e}(),_i=function(e){function t(t){return void 0===t&&(t=0),e.call(this,"\n"+new Array(t+1).join(" "))||this}return l(t,e),t}(gi),Ei=[[/&/g,"&"],[/"/g,"""],[/'/g,"'"],[/</g,"<"],[/>/g,">"]];function xi(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 Si=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.write=function(e,t){var n=new bi,r=new wi,i=new yi("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 yi("source",{},[new gi(e.filePath+":"+e.startLine+(e.endLine!==e.startLine?","+e.endLine:""))]))})),i.children.push(new _i(2),new yi("msg",t,v(n,r.serialize(e.nodes))))})),i.children.push(new _i),di([new vi({version:"1.0",encoding:"UTF-8"}),new _i,new mi("messagebundle",'<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) "default">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>'),new _i,n.addDefaultExamples(i),new _i])},t.prototype.load=function(e,t){throw new Error("Unsupported")},t.prototype.digest=function(e){return Ci(e)},t.prototype.createNameMapper=function(e){return new hi(e,Ti)},t}(ci),wi=function(){function e(){}return e.prototype.visitText=function(e,t){return[new gi(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach((function(e){return r.push.apply(r,v(e.visit(n)))})),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new gi("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach((function(t){r.push.apply(r,v([new gi(t+" {")],e.cases[t].visit(n),[new gi("} ")]))})),r.push(new gi("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=new gi("<"+e.tag+">"),r=new yi("ex",{},[n]),i=new yi("ph",{name:e.startName},[r,n]);if(e.isVoid)return[i];var s=new gi("</"+e.tag+">"),o=new yi("ex",{},[s]),a=new yi("ph",{name:e.closeName},[o,s]);return v([i],this.serialize(e.children),[a])},e.prototype.visitPlaceholder=function(e,t){var n=new gi("{{"+e.value+"}}"),r=new yi("ex",{},[n]);return[new yi("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(" "),s=new gi("{"+n+", "+r+", "+i+"}"),o=new yi("ex",{},[s]);return[new yi("ph",{name:e.name},[o,s])]},e.prototype.serialize=function(e){var t=this;return[].concat.apply([],v(e.map((function(e){return e.visit(t)}))))},e}();function Ci(e){return zr(e)}var bi=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 gi(e.attrs.name||"...");e.children=[new yi("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 Ti(e){return e.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function Pi(e){return"i18n"===e||e.startsWith("i18n-")}function Ni(e){return e instanceof Or}function Ai(e){return Ni(e)&&1===e.nodes.length&&e.nodes[0]instanceof Dr}function Mi(e){return e.nodes[0]}function Ii(e,t){return void 0===t&&(t=0),"<22>"+e+(t>0?":"+t:"")+"<22>"}function ki(e){void 0===e&&(e=0);var t=e;return function(){return t++}}function Ri(e){var t={};return e.forEach((function(e,n){t[n]=Vt(e.length>1?"["+e.join("|")+"]":e[0])})),t}function Oi(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=e.get(t)||[];i.push.apply(i,v(n)),e.set(t,i)}function Fi(e,t,n){void 0===t&&(t=0),void 0===n&&(n=0);var r=t,i=new Map,s=e instanceof Or?e.nodes.find((function(e){return e instanceof Lr})):e;return s&&s.children.filter((function(e){return e instanceof Vr})).forEach((function(e,t){var s=Ii(r+t,n);Oi(i,e.name,s)})),i}function Li(e,t){void 0===e&&(e={});var n={};return e&&Object.keys(e).length&&Object.keys(e).forEach((function(r){return n[Di(r,t)]=e[r]})),n}function Di(e,t){void 0===t&&(t=!0);var n=Ti(e);if(!t)return n;var r,i=n.split("_");if(1===i.length)return e.toLowerCase();/^\d+$/.test(i[i.length-1])&&(r=i.pop());var s=i.shift().toLowerCase();return i.length&&(s+=i.map((function(e){return e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()})).join("")),r?s+"_"+r:s}function Bi(e){return("MSG_"+e).toUpperCase()}function Vi(e){return new ut(e.name,void 0,ge,null,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
|
||
*/var ji=/[-.]/;function Ui(e,t){var n=null;return function(){return n||(e.push(new ut("_t",void 0,ye)),n=Mt(t)),n}}function Hi(e){if(this)throw new Error("Builder "+this.constructor.name+" doesn't support "+e+" yet");throw new Error("Feature "+e+" is not supported yet")}function qi(e){throw new Error("Invalid state: Visitor "+this.constructor.name+" doesn't handle "+e.constructor.name)}function Wi(e){return Array.isArray(e)?Ft(e.map(Wi)):Vt(e,ge)}function zi(e,t){return Object.getOwnPropertyNames(e).length>0?function(e,t){return Lt(Object.getOwnPropertyNames(e).map((function(n){var r,i,s,o,a,u=e[n];return Array.isArray(u)?(o=(r=d(u,2))[0],s=r[1]):(s=(i=d(qt(n,[n,u]),2))[0],o=i[1]),{key:a=s,quoted:ji.test(a),value:t&&o!==s?Ft([Wi(o),Wi(s)]):Wi(o)}})))}(e,t):null}function Ki(e){for(;jt(e[e.length-1]);)e.pop();return e}function Qi(e,t){if(Array.isArray(e.predicate)){var n=[];return e.predicate.forEach((function(e){var t=e.split(",").map((function(e){return Vt(e.trim())}));n.push.apply(n,v(t))})),t.getConstLiteral(Ft(n),!0)}return e.predicate}var Gi,Xi,$i,Yi=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 Lt(this.values)},e}();function Ji(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){Pi(e.name)||(t[e.name]=e.value)})),e.inputs.forEach((function(e){t[e.name]=""})),e.outputs.forEach((function(e){t[e.name]=""}))),t}function Zi(e,t,n){var r=It(e,null,n);if(t.length>0)for(var i=0;i<t.length;i++)r=r.callFn(t[i],n);else r=r.callFn([],n);return r}function es(e){var t=e.expressions,n=e.strings;return 1===t.length&&2===n.length&&""===n[0]&&""===n[1]?1:t.length+n.length}
|
||
/**
|
||
* @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 ts(e){var t=Mt("t"),n=[],r=is(e)?t:new Je(he.Or,t,e.internalType),i=null;if(null!==e.deps)"invalid"!==e.deps&&(i=new Le(r,ns(e.deps,e.injectFn,e.target===Xi.Pipe)));else{var s=Mt("ɵ"+e.name+"_BaseFactory"),o=It(tr.getInheritedFactory),a=s.set(o.callFn([e.internalType])).toDeclStmt(ge,[qe.Exported,qe.Final]);n.push(a),i=s.callFn([r])}var u=i,p=[],l=null;function c(e){var n=Mt("r");p.push(n.set(st).toDeclStmt());var r=null;return r=null!==u?n.set(u).toStmt():It(tr.invalidFactory).callFn([]).toStmt(),p.push(Bt(t,[r],[n.set(e).toStmt()])),n}if(is(e)&&e.delegateType===Gi.Factory){var h=Mt("ɵ"+e.name+"_BaseFactory"),f=It(tr.getFactoryOf);if(e.delegate.isEquivalent(e.internalType))throw new Error("Illegal state: compiling factory that delegates to itself");var d=h.set(f.callFn([e.delegate])).toDeclStmt(ge,[qe.Exported,qe.Final]);n.push(d),l=c(h.callFn([]))}else if(is(e)){var v=ns(e.delegateDeps,e.injectFn,e.target===Xi.Pipe);l=c(new(e.delegateType===Gi.Class?Le:Fe)(e.delegate,v))}else l=function(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)?c(e.expression):i;return null!==l?p.push(new ct(l)):p.push(It(tr.invalidFactory).callFn([]).toStmt()),{factory:Dt([new $e("t",ye)],p,ge,void 0,e.name+"_Factory"),statements:n,type:Rt(It(tr.FactoryDef,[ir(e.type.type,e.typeArgumentCount)]))}}function ns(e,t,n){return e.map((function(e,r){return function(e,t,n,r){switch(e.resolved){case $i.Token:case $i.ChangeDetectorRef:var i=0|(e.self?2:0)|(e.skipSelf?4:0)|(e.host?1:0)|(e.optional?8:0),s=0!==i||e.optional?Vt(i):null;if(n&&e.resolved===$i.ChangeDetectorRef)return It(tr.injectPipeChangeDetectorRef).callFn(s?[s]:[]);var o=[e.token];return s&&o.push(s),It(t).callFn(o);case $i.Attribute:return It(tr.injectAttribute).callFn([e.token]);case $i.Invalid:return It(tr.invalidFactoryDep).callFn([Vt(r)]);default:return Hi("Unknown R3ResolvedDependencyType: "+$i[e.resolved])}}(e,t,n,r)}))}function rs(e,t,n){n.resolveExternalReference(Sn.Injector);var r,i,s=[];try{for(var o=f(e.diDeps),a=o.next();!a.done;a=o.next()){var u=a.value;if(u.token){var p=Bn(u.token),l=u.isAttribute?$i.Attribute:$i.Token,c=p instanceof bn?t.importExpr(p):Vt(p);s.push({token:c,resolved:l,host:!!u.isHost,optional:!!u.isOptional,self:!!u.isSelf,skipSelf:!!u.isSkipSelf})}else Hi("dependency without a token")}}catch(e){r={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return s}function is(e){return void 0!==e.delegateType}function ss(e){var t=null,n={name:e.name,type:e.type,internalType:e.internalType,typeArgumentCount:e.typeArgumentCount,deps:[],injectFn:Sn.inject,target:Xi.Injectable};if(void 0!==e.useClass){var r=e.useClass.isEquivalent(e.internalType),i=void 0;void 0!==e.userDeps&&(i=e.userDeps),t=void 0!==i?ts(h(h({},n),{delegate:e.useClass,delegateDeps:i,delegateType:Gi.Class})):r?ts(n):os(e.type.value,e.useClass)}else t=void 0!==e.useFactory?void 0!==e.userDeps?ts(h(h({},n),{delegate:e.useFactory,delegateDeps:e.userDeps||[],delegateType:Gi.Function})):{statements:[],factory:Dt([],[new ct(e.useFactory.callFn([]))])}:void 0!==e.useValue?ts(h(h({},n),{expression:e.useValue})):void 0!==e.useExisting?ts(h(h({},n),{expression:It(Sn.inject).callFn([e.useExisting])})):os(e.type.value,e.internalType);var s={token:e.internalType,factory:t.factory};return null!==e.providedIn.value&&(s.providedIn=e.providedIn),{expression:It(Sn.ɵɵdefineInjectable).callFn([nr(s)]),type:new de(It(Sn.InjectableDef,[ir(e.type.type,e.typeArgumentCount)])),statements:t.statements}}function os(e,t){return{statements:[],factory:e.node===t.node?t.prop("ɵfac"):Dt([new $e("t",ye)],[new ct(t.callMethod("ɵfac",[Mt("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 as(e,t){if(null!=t){if(!Array.isArray(t))throw new Error("Expected '"+e+"' to be an array of strings.");for(var n=0;n<t.length;n+=1)if("string"!=typeof t[n])throw new Error("Expected '"+e+"' to be an array of strings.")}}!function(e){e[e.Class=0]="Class",e[e.Function=1]="Function",e[e.Factory=2]="Factory"}(Gi||(Gi={})),function(e){e[e.Directive=0]="Directive",e[e.Component=1]="Component",e[e.Injectable=2]="Injectable",e[e.Pipe=3]="Pipe",e[e.NgModule=4]="NgModule"}(Xi||(Xi={})),function(e){e[e.Token=0]="Token",e[e.Attribute=1]="Attribute",e[e.ChangeDetectorRef=2]="ChangeDetectorRef",e[e.Invalid=3]="Invalid"}($i||($i={}));var us=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function ps(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];us.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 ls=function(){function e(e,t){this.start=e,this.end=t}return e.fromArray=function(t){return t?(ps("interpolation",t),new e(t[0],t[1])):cs},e}(),cs=new ls("{{","}}"),hs=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<this.lastCol0)throw new Error("Mapping should be added in output order");if(t&&(null==n||null==r))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=e,this.currentLine.push({col0:e,sourceUrl:t,sourceLine0:n,sourceCol0:r}),this},Object.defineProperty(e.prototype,"currentLine",{get:function(){return this.lines.slice(-1)[0]},enumerable:!0,configurable:!0}),e.prototype.toJSON=function(){var e=this;if(!this.hasMappings)return null;var t=new Map,n=[],r=[];Array.from(this.sourcesContent.keys()).forEach((function(i,s){t.set(i,s),n.push(i),r.push(e.sourcesContent.get(i)||null)}));var i="",s=0,o=0,a=0,u=0;return this.lines.forEach((function(e){s=0,i+=e.map((function(e){var n=fs(e.col0-s);return s=e.col0,null!=e.sourceUrl&&(n+=fs(t.get(e.sourceUrl)-o),o=t.get(e.sourceUrl),n+=fs(e.sourceLine0-a),a=e.sourceLine0,n+=fs(e.sourceCol0-u),u=e.sourceCol0),n})).join(","),i+=";"})),i=i.slice(0,-1),{file:this.file||"",version:3,sourceRoot:"",sources:n,sourcesContent:r,mappings:i}},e.prototype.toJsComment=function(){return this.hasMappings?"//# sourceMappingURL=data:application/json;base64,"+function(e){var t="";e=sn(e);for(var n=0;n<e.length;){var r=e.charCodeAt(n++),i=e.charCodeAt(n++),s=e.charCodeAt(n++);t+=ds(r>>2),t+=ds((3&r)<<4|(isNaN(i)?0:i>>4)),t+=isNaN(i)?"=":ds((15&i)<<2|s>>6),t+=isNaN(i)||isNaN(s)?"=":ds(63&s)}return t}(JSON.stringify(this,null,0)):""},e}();function fs(e){e=e<0?1+(-e<<1):e<<1;var t="";do{var n=31&e;(e>>=5)>0&&(n|=32),t+=ds(n)}while(e>0);return t}function ds(e){if(e<0||e>=64)throw new Error("Can only encode value in the range [0, 63]");return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"[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 vs=/'|\\|\n|\r|\$/g,ms=/^[$A-Z_][0-9A-Z_$]*$/i,ys=Mt("error",null,null),gs=Mt("stack",null,null),_s=function(e){this.indent=e,this.partsLength=0,this.parts=[],this.srcSpans=[]},Es=function(){function e(e){this._indent=e,this._classes=[],this._preambleLineCount=0,this._lines=[new _s(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*" ".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 _s(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?ws(e.indent)+e.parts.join(""):""})).join("\n")},e.prototype.toSourceMapGenerator=function(e,t){void 0===t&&(t=0);for(var n=new hs(e),r=!1,i=function(){r||(n.addSource(e," ").addMapping(0,e,0,0),r=!0)},s=0;s<t;s++)n.addLine(),i();return this.sourceLines.forEach((function(e,t){n.addLine();for(var s=e.srcSpans,o=e.parts,a=e.indent*" ".length,u=0;u<s.length&&!s[u];)a+=o[u].length,u++;for(u<s.length&&0===t&&0===a?r=!0:i();u<s.length;){var p=s[u],l=p.start.file,c=p.start.line,h=p.start.col;for(n.addSource(l.url,l.content).addMapping(a,l.url,c,h),a+=o[u].length,u++;u<s.length&&(p===s[u]||!s[u]);)a+=o[u].length,u++}})),n},e.prototype.setPreambleLineCount=function(e){return this._preambleLineCount=e},e.prototype.spanOf=function(e,t){var n=this._lines[e-this._preambleLineCount];if(n)for(var r=t-ws(n.indent).length,i=0;i<n.parts.length;i++){var s=n.parts[i];if(s.length>r)return n.srcSpans[i];r-=s.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}(),xs=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 be.Super:n="super";break;case be.This:n="this";break;case be.CatchError:n=ys.name;break;case be.CatchStack:n=gs.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"string"==typeof n?t.print(e,Ss(n,this._escapeDollarInStrings)):t.print(e,""+n),null},e.prototype.visitLocalizedString=function(e,t){var n=e.serializeI18nHead();t.print(e,"$localize `"+n.raw);for(var r=1;r<e.messageParts.length;r++)t.print(e,"${"),e.expressions[r-1].visitExpression(this,t),t.print(e,"}"+e.serializeI18nTemplatePart(r).raw);return t.print(e,"`"),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 he.Equals:n="==";break;case he.Identical:n="===";break;case he.NotEquals:n="!=";break;case he.NotIdentical:n="!==";break;case he.And:n="&&";break;case he.BitwiseAnd:n="&";break;case he.Or:n="||";break;case he.Plus:n="+";break;case he.Minus:n="-";break;case he.Divide:n="/";break;case he.Multiply:n="*";break;case he.Modulo:n="%";break;case he.Lower:n="<";break;case he.LowerEquals:n="<=";break;case he.Bigger:n=">";break;case he.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,Ss(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,s=0;s<t.length;s++)s>0&&(n.lineLength()>80?(n.print(null,r,!0),i||(n.incIndent(),n.incIndent(),i=!0)):n.print(null,r,!1)),e(t[s]);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 Ss(e,t,n){if(void 0===n&&(n=!0),null==e)return null;var r=e.replace(vs,(function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return"$"==e[0]?t?"\\$":"$":"\n"==e[0]?"\\n":"\r"==e[0]?"\\r":"\\"+e[0]}));return n||!ms.test(r)?"'"+r+"'":r}function ws(e){for(var t="",n=0;n<e;n++)t+=" ";return t}
|
||
/**
|
||
* @license
|
||
* Copyright Google Inc. All Rights Reserved.
|
||
*
|
||
* Use of this source code is governed by an MIT-style license that can be
|
||
* found in the LICENSE file at https://angular.io/license
|
||
*/var Cs=function(e){function t(){return e.call(this,!1)||this}return l(t,e),t.prototype.visitDeclareClassStmt=function(e,t){var n=this;return t.pushClass(e),this._visitClassConstructor(e,t),null!=e.parent&&(t.print(e,e.name+".prototype = Object.create("),e.parent.visitExpression(this,t),t.println(e,".prototype);")),e.getters.forEach((function(r){return n._visitClassGetter(e,r,t)})),e.methods.forEach((function(r){return n._visitClassMethod(e,r,t)})),t.popClass(),null},t.prototype._visitClassConstructor=function(e,t){t.print(e,"function "+e.name+"("),null!=e.constructorMethod&&this._visitParams(e.constructorMethod.params,t),t.println(e,") {"),t.incIndent(),null!=e.constructorMethod&&e.constructorMethod.body.length>0&&(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===be.This)n.print(t,"self");else{if(t.builtin===be.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 Ne&&r.builtin===be.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 ("+ys.name+") {"),t.incIndent();var n=[gs.set(ys.prop("stack")).toDeclStmt(null,[qe.Final])].concat(e.catchStmts);return this.visitAllStatements(n,t),t.decIndent(),t.println(e,"}"),null},t.prototype.visitLocalizedString=function(e,t){var n=this;t.print(e,'$localize((this&&this.__makeTemplateObject||function(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e})(');for(var r=[e.serializeI18nHead()],i=1;i<e.messageParts.length;i++)r.push(e.serializeI18nTemplatePart(i));return t.print(e,"["+r.map((function(e){return Ss(e.cooked,!1)})).join(", ")+"], "),t.print(e,"["+r.map((function(e){return Ss(e.raw,!1)})).join(", ")+"])"),e.expressions.forEach((function(r){t.print(e,", "),r.visitExpression(n,t)})),t.print(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 Pe.ConcatArray:t="concat";break;case Pe.SubscribeObservable:t="subscribe";break;case Pe.Bind:t="bind";break;default:throw new Error("Unknown builtin method: "+e)}return t},t}(xs),bs=function(){function e(){}return e.prototype.evaluateStatements=function(e,t,n,r){var i=new Ts(n),s=Es.createRoot();return t.length>0&&!t[0].isEquivalent(Vt("use strict").toStmt())&&(t=v([Vt("use strict").toStmt()],t)),i.visitAllStatements(t,s),i.createReturnStmt(s),this.evaluateCode(e,s,i.getArgs(),r)},e.prototype.evaluateCode=function(e,t,n,r){var i='"use strict";'+t.toSource()+"\n//# sourceURL="+e,s=[],o=[];for(var a in n)o.push(n[a]),s.push(a);if(r){var u=(new(Function.bind.apply(Function,v([void 0],s.concat("return null;"))))).toString(),p=u.slice(0,u.indexOf("return null;")).split("\n").length-1;i+="\n"+t.toSourceMapGenerator(e,p).toJsComment()}var l=new(Function.bind.apply(Function,v([void 0],s.concat(i))));return this.executeFunction(l,o)},e.prototype.executeFunction=function(e,t){return e.apply(void 0,v(t))},e}(),Ts=function(e){function t(t){var n=e.call(this)||this;return n.reflector=t,n._evalArgNames=[],n._evalArgValues=[],n._evalExportedVars=[],n}return l(t,e),t.prototype.createReturnStmt=function(e){new ct(new rt(this._evalExportedVars.map((function(e){return new nt(e,Mt(e),!1)})))).visitStatement(this,e)},t.prototype.getArgs=function(){for(var e={},t=0;t<this._evalArgNames.length;t++)e[this._evalArgNames[t]]=this._evalArgValues[t];return e},t.prototype.visitExternalExpr=function(e,t){return this._emitReferenceToExternal(e,this.reflector.resolveExternalReference(e.value),t),null},t.prototype.visitWrappedNodeExpr=function(e,t){return this._emitReferenceToExternal(e,e.node,t),null},t.prototype.visitDeclareVarStmt=function(t,n){return t.hasModifier(qe.Exported)&&this._evalExportedVars.push(t.name),e.prototype.visitDeclareVarStmt.call(this,t,n)},t.prototype.visitDeclareFunctionStmt=function(t,n){return t.hasModifier(qe.Exported)&&this._evalExportedVars.push(t.name),e.prototype.visitDeclareFunctionStmt.call(this,t,n)},t.prototype.visitDeclareClassStmt=function(t,n){return t.hasModifier(qe.Exported)&&this._evalExportedVars.push(t.name),e.prototype.visitDeclareClassStmt.call(this,t,n)},t.prototype._emitReferenceToExternal=function(e,t,n){var r=this._evalArgValues.indexOf(t);if(-1===r){r=this._evalArgValues.length,this._evalArgValues.push(t);var i=In({reference:t})||"val";this._evalArgNames.push("jit_"+i+"_"+r)}n.print(e,this._evalArgNames[r])},t}(Cs);
|
||
/**
|
||
* @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 Ps=function(){function e(e){this.context=e}return e.prototype.resolveExternalReference=function(e){if("@angular/core"!==e.moduleName)throw new Error("Cannot resolve external reference to "+e.moduleName+", only references to @angular/core are supported.");if(!this.context.hasOwnProperty(e.name))throw new Error("No value provided for @angular/core symbol '"+e.name+"'.");return this.context[e.name]},e.prototype.parameters=function(e){throw new Error("Not implemented.")},e.prototype.annotations=function(e){throw new Error("Not implemented.")},e.prototype.shallowAnnotations=function(e){throw new Error("Not implemented.")},e.prototype.tryAnnotations=function(e){throw new Error("Not implemented.")},e.prototype.propMetadata=function(e){throw new Error("Not implemented.")},e.prototype.hasLifecycleHook=function(e,t){throw new Error("Not implemented.")},e.prototype.guards=function(e){throw new Error("Not implemented.")},e.prototype.componentModuleUrl=function(e,t){throw new Error("Not implemented.")},e}();function Ns(e,t){return void 0===t&&(t=!1),Lt(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
|
||
*/function As(e){var t=e.internalType,n=e.type,r=e.bootstrap,i=e.declarations,s=e.imports,o=e.exports,a=e.schemas,u=e.containsForwardDecls,p=e.emitInline,l=e.id,c=[],h={type:t};if(r.length&&(h.bootstrap=ks(r,u)),p)i.length&&(h.declarations=ks(i,u)),s.length&&(h.imports=ks(s,u)),o.length&&(h.exports=ks(o,u));else{var f=function(e){var t=e.adjacentType,n=e.declarations,r=e.imports,i=e.exports,s=e.containsForwardDecls,o={};n.length&&(o.declarations=ks(n,s));r.length&&(o.imports=ks(r,s));i.length&&(o.exports=ks(i,s));if(0===Object.keys(o).length)return null;var a=(p=new Fe(It(tr.setNgModuleScope),[t,nr(o)]),l=new We({name:"ngJitMode",moduleName:null}),c=new Je(he.Identical,new Ae(l),Vt("undefined")),h=new Je(he.Or,c,l,void 0,void 0,!0),new Je(he.And,h,p)),u=new Ye([],[a.toStmt()]);var p,l,c,h;return new Fe(u,[]).toStmt()}(e);null!==f&&c.push(f)}return a&&a.length&&(h.schemas=Ft(a.map((function(e){return e.value})))),l&&(h.id=l),{expression:It(tr.defineNgModule).callFn([nr(h)]),type:new de(It(tr.NgModuleDefWithMeta,[new de(n.type),Is(i),Is(s),Is(o)])),additionalStatements:c}}function Ms(e){var t=ts({name:e.name,type:e.type,internalType:e.internalType,typeArgumentCount:0,deps:e.deps,injectFn:tr.inject,target:Xi.NgModule}),n={factory:t.factory};return null!==e.providers&&(n.providers=e.providers),e.imports.length>0&&(n.imports=Ft(e.imports)),{expression:It(tr.defineInjector).callFn([nr(n)]),type:new de(It(tr.InjectorDef,[new de(e.type.type)])),statements:t.statements}}function Is(e){var t=e.map((function(e){return Ot(e.type)}));return e.length>0?Rt(Ft(t)):Se}function ks(e,t){var n=Ft(e.map((function(e){return e.value})));return t?Dt([],[new ct(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
|
||
*/function Rs(e){var t=[];return t.push({key:"name",value:Vt(e.pipeName),quoted:!1}),t.push({key:"type",value:e.type.value,quoted:!1}),t.push({key:"pure",value:Vt(e.pure),quoted:!1}),{expression:It(tr.definePipe).callFn([Lt(t)]),type:new de(It(tr.PipeDefWithMeta,[ir(e.type.type,e.typeArgumentCount),new de(new De(e.pipeName))]))}}
|
||
/**
|
||
* @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 Os,Fs=function(e,t,n,r){this.input=t,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+e+" "+n+" ["+t+"] in "+r},Ls=function(){function e(e,t){this.start=e,this.end=t}return e.prototype.toAbsolute=function(e){return new so(e+this.start,e+this.end)},e}(),Ds=function(){function e(e,t){this.span=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return null},e.prototype.toString=function(){return"AST"},e}(),Bs=function(e){function t(t,n,r,i,s){var o=e.call(this,t,n)||this;return o.prefix=r,o.uninterpretedExpression=i,o.location=s,o}return l(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}(Ds),Vs=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.visit=function(e,t){},t}(Ds),js=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitImplicitReceiver(this,t)},t}(Ds),Us=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.expressions=r,i}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitChain(this,t)},t}(Ds),Hs=function(e){function t(t,n,r,i,s){var o=e.call(this,t,n)||this;return o.condition=r,o.trueExp=i,o.falseExp=s,o}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitConditional(this,t)},t}(Ds),qs=function(e){function t(t,n,r,i){var s=e.call(this,t,n)||this;return s.receiver=r,s.name=i,s}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPropertyRead(this,t)},t}(Ds),Ws=function(e){function t(t,n,r,i,s){var o=e.call(this,t,n)||this;return o.receiver=r,o.name=i,o.value=s,o}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPropertyWrite(this,t)},t}(Ds),zs=function(e){function t(t,n,r,i){var s=e.call(this,t,n)||this;return s.receiver=r,s.name=i,s}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitSafePropertyRead(this,t)},t}(Ds),Ks=function(e){function t(t,n,r,i){var s=e.call(this,t,n)||this;return s.obj=r,s.key=i,s}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitKeyedRead(this,t)},t}(Ds),Qs=function(e){function t(t,n,r,i,s){var o=e.call(this,t,n)||this;return o.obj=r,o.key=i,o.value=s,o}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitKeyedWrite(this,t)},t}(Ds),Gs=function(e){function t(t,n,r,i,s,o){var a=e.call(this,t,n)||this;return a.exp=r,a.name=i,a.args=s,a.nameSpan=o,a}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPipe(this,t)},t}(Ds),Xs=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.value=r,i}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralPrimitive(this,t)},t}(Ds),$s=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.expressions=r,i}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralArray(this,t)},t}(Ds),Ys=function(e){function t(t,n,r,i){var s=e.call(this,t,n)||this;return s.keys=r,s.values=i,s}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitLiteralMap(this,t)},t}(Ds),Js=function(e){function t(t,n,r,i){var s=e.call(this,t,n)||this;return s.strings=r,s.expressions=i,s}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitInterpolation(this,t)},t}(Ds),Zs=function(e){function t(t,n,r,i,s){var o=e.call(this,t,n)||this;return o.operation=r,o.left=i,o.right=s,o}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitBinary(this,t)},t}(Ds),eo=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.expression=r,i}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitPrefixNot(this,t)},t}(Ds),to=function(e){function t(t,n,r){var i=e.call(this,t,n)||this;return i.expression=r,i}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitNonNullAssert(this,t)},t}(Ds),no=function(e){function t(t,n,r,i,s){var o=e.call(this,t,n)||this;return o.receiver=r,o.name=i,o.args=s,o}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitMethodCall(this,t)},t}(Ds),ro=function(e){function t(t,n,r,i,s){var o=e.call(this,t,n)||this;return o.receiver=r,o.name=i,o.args=s,o}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitSafeMethodCall(this,t)},t}(Ds),io=function(e){function t(t,n,r,i){var s=e.call(this,t,n)||this;return s.target=r,s.args=i,s}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitFunctionCall(this,t)},t}(Ds),so=function(e,t){this.start=e,this.end=t},oo=function(e){function t(t,n,r,i,s){var o=e.call(this,new Ls(0,null===n?0:n.length),new so(i,null===n?i:i+n.length))||this;return o.ast=t,o.source=n,o.location=r,o.errors=s,o}return l(t,e),t.prototype.visit=function(e,t){return void 0===t&&(t=null),e.visitASTWithSource?e.visitASTWithSource(this,t):this.ast.visit(e,t)},t.prototype.toString=function(){return this.source+" in "+this.location},t}(Ds),ao=function(e,t,n,r,i,s){this.span=e,this.key=n,this.keyIsVar=r,this.name=i,this.expression=s},uo=function(){function e(){}return e.prototype.visit=function(e,t){e.visit(this,t)},e.prototype.visitBinary=function(e,t){this.visit(e.left,t),this.visit(e.right,t)},e.prototype.visitChain=function(e,t){this.visitAll(e.expressions,t)},e.prototype.visitConditional=function(e,t){this.visit(e.condition,t),this.visit(e.trueExp,t),this.visit(e.falseExp,t)},e.prototype.visitPipe=function(e,t){this.visit(e.exp,t),this.visitAll(e.args,t)},e.prototype.visitFunctionCall=function(e,t){e.target&&this.visit(e.target,t),this.visitAll(e.args,t)},e.prototype.visitImplicitReceiver=function(e,t){},e.prototype.visitInterpolation=function(e,t){this.visitAll(e.expressions,t)},e.prototype.visitKeyedRead=function(e,t){this.visit(e.obj,t),this.visit(e.key,t)},e.prototype.visitKeyedWrite=function(e,t){this.visit(e.obj,t),this.visit(e.key,t),this.visit(e.value,t)},e.prototype.visitLiteralArray=function(e,t){this.visitAll(e.expressions,t)},e.prototype.visitLiteralMap=function(e,t){this.visitAll(e.values,t)},e.prototype.visitLiteralPrimitive=function(e,t){},e.prototype.visitMethodCall=function(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)},e.prototype.visitPrefixNot=function(e,t){this.visit(e.expression,t)},e.prototype.visitNonNullAssert=function(e,t){this.visit(e.expression,t)},e.prototype.visitPropertyRead=function(e,t){this.visit(e.receiver,t)},e.prototype.visitPropertyWrite=function(e,t){this.visit(e.receiver,t),this.visit(e.value,t)},e.prototype.visitSafePropertyRead=function(e,t){this.visit(e.receiver,t)},e.prototype.visitSafeMethodCall=function(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)},e.prototype.visitQuote=function(e,t){},e.prototype.visitAll=function(e,t){var n,r;try{for(var i=f(e),s=i.next();!s.done;s=i.next()){var o=s.value;this.visit(o,t)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e}(),po=function(){function e(){}return e.prototype.visitImplicitReceiver=function(e,t){return e},e.prototype.visitInterpolation=function(e,t){return new Js(e.span,e.sourceSpan,e.strings,this.visitAll(e.expressions))},e.prototype.visitLiteralPrimitive=function(e,t){return new Xs(e.span,e.sourceSpan,e.value)},e.prototype.visitPropertyRead=function(e,t){return new qs(e.span,e.sourceSpan,e.receiver.visit(this),e.name)},e.prototype.visitPropertyWrite=function(e,t){return new Ws(e.span,e.sourceSpan,e.receiver.visit(this),e.name,e.value.visit(this))},e.prototype.visitSafePropertyRead=function(e,t){return new zs(e.span,e.sourceSpan,e.receiver.visit(this),e.name)},e.prototype.visitMethodCall=function(e,t){return new no(e.span,e.sourceSpan,e.receiver.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitSafeMethodCall=function(e,t){return new ro(e.span,e.sourceSpan,e.receiver.visit(this),e.name,this.visitAll(e.args))},e.prototype.visitFunctionCall=function(e,t){return new io(e.span,e.sourceSpan,e.target.visit(this),this.visitAll(e.args))},e.prototype.visitLiteralArray=function(e,t){return new $s(e.span,e.sourceSpan,this.visitAll(e.expressions))},e.prototype.visitLiteralMap=function(e,t){return new Ys(e.span,e.sourceSpan,e.keys,this.visitAll(e.values))},e.prototype.visitBinary=function(e,t){return new Zs(e.span,e.sourceSpan,e.operation,e.left.visit(this),e.right.visit(this))},e.prototype.visitPrefixNot=function(e,t){return new eo(e.span,e.sourceSpan,e.expression.visit(this))},e.prototype.visitNonNullAssert=function(e,t){return new to(e.span,e.sourceSpan,e.expression.visit(this))},e.prototype.visitConditional=function(e,t){return new Hs(e.span,e.sourceSpan,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))},e.prototype.visitPipe=function(e,t){return new Gs(e.span,e.sourceSpan,e.exp.visit(this),e.name,this.visitAll(e.args),e.nameSpan)},e.prototype.visitKeyedRead=function(e,t){return new Ks(e.span,e.sourceSpan,e.obj.visit(this),e.key.visit(this))},e.prototype.visitKeyedWrite=function(e,t){return new Qs(e.span,e.sourceSpan,e.obj.visit(this),e.key.visit(this),e.value.visit(this))},e.prototype.visitAll=function(e){for(var t=[],n=0;n<e.length;++n)t[n]=e[n].visit(this);return t},e.prototype.visitChain=function(e,t){return new Us(e.span,e.sourceSpan,this.visitAll(e.expressions))},e.prototype.visitQuote=function(e,t){return new Bs(e.span,e.sourceSpan,e.prefix,e.uninterpretedExpression,e.location)},e}(),lo=function(){function e(){}return e.prototype.visitImplicitReceiver=function(e,t){return e},e.prototype.visitInterpolation=function(e,t){var n=this.visitAll(e.expressions);return n!==e.expressions?new Js(e.span,e.sourceSpan,e.strings,n):e},e.prototype.visitLiteralPrimitive=function(e,t){return e},e.prototype.visitPropertyRead=function(e,t){var n=e.receiver.visit(this);return n!==e.receiver?new qs(e.span,e.sourceSpan,n,e.name):e},e.prototype.visitPropertyWrite=function(e,t){var n=e.receiver.visit(this),r=e.value.visit(this);return n!==e.receiver||r!==e.value?new Ws(e.span,e.sourceSpan,n,e.name,r):e},e.prototype.visitSafePropertyRead=function(e,t){var n=e.receiver.visit(this);return n!==e.receiver?new zs(e.span,e.sourceSpan,n,e.name):e},e.prototype.visitMethodCall=function(e,t){var n=e.receiver.visit(this),r=this.visitAll(e.args);return n!==e.receiver||r!==e.args?new no(e.span,e.sourceSpan,n,e.name,r):e},e.prototype.visitSafeMethodCall=function(e,t){var n=e.receiver.visit(this),r=this.visitAll(e.args);return n!==e.receiver||r!==e.args?new ro(e.span,e.sourceSpan,n,e.name,r):e},e.prototype.visitFunctionCall=function(e,t){var n=e.target&&e.target.visit(this),r=this.visitAll(e.args);return n!==e.target||r!==e.args?new io(e.span,e.sourceSpan,n,r):e},e.prototype.visitLiteralArray=function(e,t){var n=this.visitAll(e.expressions);return n!==e.expressions?new $s(e.span,e.sourceSpan,n):e},e.prototype.visitLiteralMap=function(e,t){var n=this.visitAll(e.values);return n!==e.values?new Ys(e.span,e.sourceSpan,e.keys,n):e},e.prototype.visitBinary=function(e,t){var n=e.left.visit(this),r=e.right.visit(this);return n!==e.left||r!==e.right?new Zs(e.span,e.sourceSpan,e.operation,n,r):e},e.prototype.visitPrefixNot=function(e,t){var n=e.expression.visit(this);return n!==e.expression?new eo(e.span,e.sourceSpan,n):e},e.prototype.visitNonNullAssert=function(e,t){var n=e.expression.visit(this);return n!==e.expression?new to(e.span,e.sourceSpan,n):e},e.prototype.visitConditional=function(e,t){var n=e.condition.visit(this),r=e.trueExp.visit(this),i=e.falseExp.visit(this);return n!==e.condition||r!==e.trueExp||i!==e.falseExp?new Hs(e.span,e.sourceSpan,n,r,i):e},e.prototype.visitPipe=function(e,t){var n=e.exp.visit(this),r=this.visitAll(e.args);return n!==e.exp||r!==e.args?new Gs(e.span,e.sourceSpan,n,e.name,r,e.nameSpan):e},e.prototype.visitKeyedRead=function(e,t){var n=e.obj.visit(this),r=e.key.visit(this);return n!==e.obj||r!==e.key?new Ks(e.span,e.sourceSpan,n,r):e},e.prototype.visitKeyedWrite=function(e,t){var n=e.obj.visit(this),r=e.key.visit(this),i=e.value.visit(this);return n!==e.obj||r!==e.key||i!==e.value?new Qs(e.span,e.sourceSpan,n,r,i):e},e.prototype.visitAll=function(e){for(var t=[],n=!1,r=0;r<e.length;++r){var i=e[r],s=i.visit(this);t[r]=s,n=n||s!==i}return n?t:e},e.prototype.visitChain=function(e,t){var n=this.visitAll(e.expressions);return n!==e.expressions?new Us(e.span,e.sourceSpan,n):e},e.prototype.visitQuote=function(e,t){return e},e}(),co=function(e,t,n,r,i){this.name=e,this.expression=t,this.type=n,this.sourceSpan=r,this.valueSpan=i,this.isLiteral=this.type===Os.LITERAL_ATTR,this.isAnimation=this.type===Os.ANIMATION};!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.LITERAL_ATTR=1]="LITERAL_ATTR",e[e.ANIMATION=2]="ANIMATION"}(Os||(Os={}));var ho=function(e,t,n,r,i,s){this.name=e,this.targetOrPhase=t,this.type=n,this.handler=r,this.sourceSpan=i,this.handlerSpan=s},fo=function(e,t,n){this.name=e,this.value=t,this.sourceSpan=n},vo=function(e,t,n,r,i,s,o){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=s,this.valueSpan=o},mo=function(){function e(){}return e.event=Mt("$event"),e}(),yo=function(e,t){this.stmts=e,this.allowDefault=t,this.render3Stmts=e.map((function(e){if(e instanceof ut&&e.name==t.name&&e.value instanceof Je){var n=e.value.lhs;return new ct(n.value)}return e}))};function go(e,t,n,r,i,s,o){e||(e=new Io);var a=_o({createLiteralArrayConverter:function(e){return function(e){return Ft(e)}},createLiteralMapConverter:function(e){return function(t){return Lt(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 Mo(e,t,r,i,s,o),p=[];!function e(t,n){Array.isArray(t)?t.forEach((function(t){return e(t,n)})):n.push(t)}(a.visit(u,xo.Statement),p),function(e,t,n){for(var r=e-1;r>=0;r--)n.unshift(To(t,r))}(u.temporaryCount,r,p),u.usesImplicitReceiver&&e.notifyImplicitReceiverUse();var l=p.length-1,c=null;if(l>=0){var h=function(e){if(e instanceof lt)return e.expr;if(e instanceof ct)return e.value;return null}(p[l]);h&&(c=function(e){return Mt("pd_"+e)}(r),p[l]=c.set(h.cast(ye).notIdentical(Vt(!1))).toDeclStmt(null,[qe.Final]))}return new yo(p,c)}function _o(e,t){return function(e,t){var n=new Ao(e);return t.visit(n)}(e,t)}var Eo,xo,So=function(e,t){this.stmts=e,this.currValExpr=t};function wo(e,t,n,r,i,s){e||(e=new Io);var o=function(e){return Mt("currVal_"+e)}(r),a=new Mo(e,t,r,s),u=n.visit(a,xo.Expression),p=Co(a,r);return a.usesImplicitReceiver&&e.notifyImplicitReceiverUse(),0===a.temporaryCount&&i==Eo.TrySimple?new So([],u):(p.push(o.set(u).toDeclStmt(ye,[qe.Final])),new So(p,o))}function Co(e,t){for(var n=[],r=0;r<e.temporaryCount;r++)n.push(To(t,r));return n}function bo(e,t){return"tmp_"+e+"_"+t}function To(e,t){return new ut(bo(e,t),st)}function Po(e,t){if(e!==xo.Expression)throw new Error("Expected an expression, but saw "+t)}function No(e,t){return e===xo.Statement?t.toStmt():t}!function(e){e[e.General=0]="General",e[e.TrySimple=1]="TrySimple"}(Eo||(Eo={})),function(e){e[e.Statement=0]="Statement",e[e.Expression=1]="Expression"}(xo||(xo={}));var Ao=function(e){function t(t){var n=e.call(this)||this;return n._converterFactory=t,n}return l(t,e),t.prototype.visitPipe=function(e,t){var n=this,r=v([e.exp],e.args).map((function(e){return e.visit(n,t)}));return new ko(e.span,e.sourceSpan,r,this._converterFactory.createPipeConverter(e.name,r.length))},t.prototype.visitLiteralArray=function(e,t){var n=this,r=e.expressions.map((function(e){return e.visit(n,t)}));return new ko(e.span,e.sourceSpan,r,this._converterFactory.createLiteralArrayConverter(e.expressions.length))},t.prototype.visitLiteralMap=function(e,t){var n=this,r=e.values.map((function(e){return e.visit(n,t)}));return new ko(e.span,e.sourceSpan,r,this._converterFactory.createLiteralMapConverter(e.keys))},t}(po),Mo=function(){function e(e,t,n,r,i,s){this._localResolver=e,this._implicitReceiver=t,this.bindingId=n,this.interpolationFunction=r,this.baseSourceSpan=i,this.implicitReceiverAccesses=s,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0,this.usesImplicitReceiver=!1}return e.prototype.visitBinary=function(e,t){var n;switch(e.operation){case"+":n=he.Plus;break;case"-":n=he.Minus;break;case"*":n=he.Multiply;break;case"/":n=he.Divide;break;case"%":n=he.Modulo;break;case"&&":n=he.And;break;case"||":n=he.Or;break;case"==":n=he.Equals;break;case"!=":n=he.NotEquals;break;case"===":n=he.Identical;break;case"!==":n=he.NotIdentical;break;case"<":n=he.Lower;break;case">":n=he.Bigger;break;case"<=":n=he.LowerEquals;break;case">=":n=he.BiggerEquals;break;default:throw new Error("Unsupported operation "+e.operation)}return No(t,new Je(n,this._visit(e.left,xo.Expression),this._visit(e.right,xo.Expression),void 0,this.convertSourceSpan(e.span)))},e.prototype.visitChain=function(e,t){return function(e,t){if(e!==xo.Statement)throw new Error("Expected a statement, but saw "+t)}(t,e),this.visitAll(e.expressions,t)},e.prototype.visitConditional=function(e,t){return No(t,this._visit(e.condition,xo.Expression).conditional(this._visit(e.trueExp,xo.Expression),this._visit(e.falseExp,xo.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,xo.Expression);return No(t,e instanceof ko?e.converter(n):this._visit(e.target,xo.Expression).callFn(n,this.convertSourceSpan(e.span)))},e.prototype.visitImplicitReceiver=function(e,t){return Po(t,e),this.usesImplicitReceiver=!0,this._implicitReceiver},e.prototype.visitInterpolation=function(e,t){Po(t,e);for(var n=[Vt(e.expressions.length)],r=0;r<e.strings.length-1;r++)n.push(Vt(e.strings[r])),n.push(this._visit(e.expressions[r],xo.Expression));return n.push(Vt(e.strings[e.strings.length-1])),this.interpolationFunction?this.interpolationFunction(n):e.expressions.length<=9?It(Sn.inlineInterpolate).callFn(n):It(Sn.interpolate).callFn([n[0],Ft(n.slice(1),void 0,this.convertSourceSpan(e.span))])},e.prototype.visitKeyedRead=function(e,t){var n=this.leftMostSafeNode(e);return n?this.convertSafeAccess(e,n,t):No(t,this._visit(e.obj,xo.Expression).key(this._visit(e.key,xo.Expression)))},e.prototype.visitKeyedWrite=function(e,t){var n=this._visit(e.obj,xo.Expression),r=this._visit(e.key,xo.Expression),i=this._visit(e.value,xo.Expression);return No(t,n.key(r).set(i))},e.prototype.visitLiteralArray=function(e,t){throw new Error("Illegal State: literal arrays should have been converted into functions")},e.prototype.visitLiteralMap=function(e,t){throw new Error("Illegal State: literal maps should have been converted into functions")},e.prototype.visitLiteralPrimitive=function(e,t){var n=null===e.value||void 0===e.value||!0===e.value||!0===e.value?ge:void 0;return No(t,Vt(e.value,n,this.convertSourceSpan(e.span)))},e.prototype._getLocal=function(e){return this._localResolver.getLocal(e)},e.prototype.visitMethodCall=function(e,t){if(e.receiver instanceof js&&"$any"==e.name){if(1!=(r=this.visitAll(e.args,xo.Expression)).length)throw new Error("Invalid call to $any, expected 1 argument but received "+(r.length||"none"));return r[0].cast(ye,this.convertSourceSpan(e.span))}var n=this.leftMostSafeNode(e);if(n)return this.convertSafeAccess(e,n,t);var r=this.visitAll(e.args,xo.Expression),i=this.usesImplicitReceiver,s=null,o=this._visit(e.receiver,xo.Expression);if(o===this._implicitReceiver){var a=this._getLocal(e.name);a&&(this.usesImplicitReceiver=i,s=a.callFn(r)),this.addImplicitReceiverAccess(e.name)}return null==s&&(s=o.callMethod(e.name,r,this.convertSourceSpan(e.span))),No(t,s)},e.prototype.visitPrefixNot=function(e,t){return No(t,(n=this._visit(e.expression,xo.Expression),new Qe(n,r)));var n,r},e.prototype.visitNonNullAssert=function(e,t){return No(t,(n=this._visit(e.expression,xo.Expression),new Ge(n,r)));var n,r},e.prototype.visitPropertyRead=function(e,t){var n=this.leftMostSafeNode(e);if(n)return this.convertSafeAccess(e,n,t);var r=null,i=this.usesImplicitReceiver,s=this._visit(e.receiver,xo.Expression);return s===this._implicitReceiver&&((r=this._getLocal(e.name))&&(this.usesImplicitReceiver=i),this.addImplicitReceiverAccess(e.name)),null==r&&(r=s.prop(e.name)),No(t,r)},e.prototype.visitPropertyWrite=function(e,t){var n=this._visit(e.receiver,xo.Expression),r=this.usesImplicitReceiver,i=null;if(n===this._implicitReceiver){var s=this._getLocal(e.name);if(s){if(!(s instanceof Ze)){var o=e.name,a=e.value instanceof qs?e.value.name:void 0;throw new Error('Cannot assign value "'+a+'" to template variable "'+o+'". Template variables are read-only.')}i=s,this.usesImplicitReceiver=r,this.addImplicitReceiverAccess(e.name)}}return null===i&&(i=n.prop(e.name)),No(t,i.set(this._visit(e.value,xo.Expression)))},e.prototype.visitSafePropertyRead=function(e,t){return this.convertSafeAccess(e,this.leftMostSafeNode(e),t)},e.prototype.visitSafeMethodCall=function(e,t){return this.convertSafeAccess(e,this.leftMostSafeNode(e),t)},e.prototype.visitAll=function(e,t){var n=this;return e.map((function(e){return n._visit(e,t)}))},e.prototype.visitQuote=function(e,t){throw new Error("Quotes are not supported for evaluation!\n Statement: "+e.uninterpretedExpression+" located at "+e.location)},e.prototype._visit=function(e,t){var n=this._resultMap.get(e);return n||(this._nodeMap.get(e)||e).visit(this,t)},e.prototype.convertSafeAccess=function(e,t,n){var r=this._visit(t.receiver,xo.Expression),i=void 0;this.needsTemporary(t.receiver)&&(r=(i=this.allocateTemporary()).set(r),this._resultMap.set(t.receiver,i));var s=r.isBlank();t instanceof ro?this._nodeMap.set(t,new no(t.span,t.sourceSpan,t.receiver,t.name,t.args)):this._nodeMap.set(t,new qs(t.span,t.sourceSpan,t.receiver,t.name));var o=this._visit(e,xo.Expression);return this._nodeMap.delete(t),i&&this.releaseTemporary(i),No(n,s.conditional(Vt(null),o))},e.prototype.leftMostSafeNode=function(e){var t=this,n=function(e,n){return(t._nodeMap.get(n)||n).visit(e)};return e.visit({visitBinary:function(e){return null},visitChain:function(e){return null},visitConditional:function(e){return null},visitFunctionCall:function(e){return null},visitImplicitReceiver:function(e){return null},visitInterpolation:function(e){return null},visitKeyedRead:function(e){return n(this,e.obj)},visitKeyedWrite:function(e){return null},visitLiteralArray:function(e){return null},visitLiteralMap:function(e){return null},visitLiteralPrimitive:function(e){return null},visitMethodCall:function(e){return n(this,e.receiver)},visitPipe:function(e){return null},visitPrefixNot:function(e){return null},visitNonNullAssert:function(e){return null},visitPropertyRead:function(e){return n(this,e.receiver)},visitPropertyWrite:function(e){return null},visitQuote:function(e){return null},visitSafeMethodCall:function(e){return n(this,e.receiver)||e},visitSafePropertyRead:function(e){return n(this,e.receiver)||e}})},e.prototype.needsTemporary=function(e){var t=this,n=function(e,n){return n&&(t._nodeMap.get(n)||n).visit(e)};return e.visit({visitBinary:function(e){return n(this,e.left)||n(this,e.right)},visitChain:function(e){return!1},visitConditional:function(e){return n(this,e.condition)||n(this,e.trueExp)||n(this,e.falseExp)},visitFunctionCall:function(e){return!0},visitImplicitReceiver:function(e){return!1},visitInterpolation:function(e){return function(e,t){return t.some((function(t){return n(e,t)}))}(this,e.expressions)},visitKeyedRead:function(e){return!1},visitKeyedWrite:function(e){return!1},visitLiteralArray:function(e){return!0},visitLiteralMap:function(e){return!0},visitLiteralPrimitive:function(e){return!1},visitMethodCall:function(e){return!0},visitPipe:function(e){return!0},visitPrefixNot:function(e){return n(this,e.expression)},visitNonNullAssert:function(e){return n(this,e.expression)},visitPropertyRead:function(e){return!1},visitPropertyWrite:function(e){return!1},visitQuote:function(e){return!1},visitSafeMethodCall:function(e){return!0},visitSafePropertyRead:function(e){return!1}})},e.prototype.allocateTemporary=function(){var e=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new Ne(bo(this.bindingId,e))},e.prototype.releaseTemporary=function(e){if(this._currentTemporary--,e.name!=bo(this.bindingId,this._currentTemporary))throw new Error("Temporary "+e.name+" released out of order")},e.prototype.convertSourceSpan=function(e){if(this.baseSourceSpan){var t=this.baseSourceSpan.start.moveBy(e.start),n=this.baseSourceSpan.start.moveBy(e.end);return new vr(t,n)}return null},e.prototype.addImplicitReceiverAccess=function(e){this.implicitReceiverAccesses&&this.implicitReceiverAccesses.add(e)},e}();var Io=function(){function e(){}return e.prototype.notifyImplicitReceiverUse=function(){},e.prototype.getLocal=function(e){return e===mo.event.name?mo.event:null},e}();var ko=function(e){function t(t,n,r,i){var s=e.call(this,t,n,null,r)||this;return s.args=r,s.converter=i,s}return l(t,e),t}(io),Ro=function(){function e(){this.strictStyling=!0}return e.prototype.shimCssText=function(e,t,n){void 0===n&&(n="");var r=e.match(Jo)||[];return e=function(e){return e.replace(Yo,"")}(e),e=this._insertDirectives(e),v([this._scopeCssText(e,t,n)],r).join("\n")},e.prototype._insertDirectives=function(e){return e=this._insertPolyfillDirectivesInCssText(e),this._insertPolyfillRulesInCssText(e)},e.prototype._insertPolyfillDirectivesInCssText=function(e){return e.replace(Fo,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e[2]+"{"}))},e.prototype._insertPolyfillRulesInCssText=function(e){return e.replace(Lo,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[0].replace(e[1],"").replace(e[2],"");return e[4]+n}))},e.prototype._scopeCssText=function(e,t,n){var r=this._extractUnscopedRulesFromCssText(e);return e=this._insertPolyfillHostInCssText(e),e=this._convertColonHost(e),e=this._convertColonHostContext(e),e=this._convertShadowDOMSelectors(e),t&&(e=this._scopeSelectors(e,t,n)),(e=e+"\n"+r).trim()},e.prototype._extractUnscopedRulesFromCssText=function(e){var t,n="";for(Do.lastIndex=0;null!==(t=Do.exec(e));){n+=t[0].replace(t[2],"").replace(t[1],t[4])+"\n\n"}return n},e.prototype._convertColonHost=function(e){return this._convertColonRule(e,Uo,this._colonHostPartReplacer)},e.prototype._convertColonHostContext=function(e){return this._convertColonRule(e,Ho,this._colonHostContextPartReplacer)},e.prototype._convertColonRule=function(e,t,n){return e.replace(t,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(e[2]){for(var r=e[2].split(","),i=[],s=0;s<r.length;s++){var o=r[s].trim();if(!o)break;i.push(n(qo,o,e[3]))}return i.join(",")}return qo+e[3]}))},e.prototype._colonHostContextPartReplacer=function(e,t,n){return t.indexOf(Bo)>-1?this._colonHostPartReplacer(e,t,n):e+t+n+", "+t+" "+e+n},e.prototype._colonHostPartReplacer=function(e,t,n){return e+t.replace(Bo,"")+n},e.prototype._convertShadowDOMSelectors=function(e){return zo.reduce((function(e,t){return e.replace(t," ")}),e)},e.prototype._scopeSelectors=function(e,t,n){var r,i,s,o=this;return r=function(e){var r=e.selector,i=e.content;return"@"!=e.selector[0]?r=o._scopeSelector(e.selector,t,n,o.strictStyling):(e.selector.startsWith("@media")||e.selector.startsWith("@supports")||e.selector.startsWith("@page")||e.selector.startsWith("@document"))&&(i=o._scopeSelectors(e.content,t,n)),new ta(r,i)},i=function(e){for(var t=e.split(ea),n=[],r=[],i=0,s=[],o=0;o<t.length;o++){var a=t[o];"}"==a&&i--,i>0?s.push(a):(s.length>0&&(r.push(s.join("")),n.push("%BLOCK%"),s=[]),n.push(a)),"{"==a&&i++}return s.length>0&&(r.push(s.join("")),n.push("%BLOCK%")),new na(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),s=0,i.escapedString.replace(Zo,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[2],o="",a=e[4],u="";a&&a.startsWith("{%BLOCK%")&&(o=i.blocks[s++],a=a.substring("%BLOCK%".length+1),u="{");var p=r(new ta(n,o));return""+e[1]+p.selector+e[3]+u+p.content+a}))},e.prototype._scopeSelector=function(e,t,n,r){var i=this;return e.split(",").map((function(e){return e.trim().split(Ko)})).map((function(e){var s=d(e),o=s[0],a=s.slice(1);return v([function(e){return i._selectorNeedsScoping(e,t)?r?i._applyStrictSelectorScope(e,t,n):i._applySelectorScope(e,t,n):e}(o)],a).join(" ")})).join(", ")},e.prototype._selectorNeedsScoping=function(e,t){return!this._makeScopeMatcher(t).test(e)},e.prototype._makeScopeMatcher=function(e){return e=e.replace(/\[/g,"\\[").replace(/\]/g,"\\]"),new RegExp("^("+e+")"+Qo,"m")},e.prototype._applySelectorScope=function(e,t,n){return this._applySimpleSelectorScope(e,t,n)},e.prototype._applySimpleSelectorScope=function(e,t,n){if(Go.lastIndex=0,Go.test(e)){var r=this.strictStyling?"["+n+"]":t;return e.replace(Wo,(function(e,t){return t.replace(/([^:]*)(:*)(.*)/,(function(e,t,n,i){return t+r+n+i}))})).replace(Go,r+" ")}return t+" "+e},e.prototype._applyStrictSelectorScope=function(e,t,n){for(var r,i=this,s="["+(t=t.replace(/\[is=([^\]]*)\]/g,(function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t[0]})))+"]",o=function(e){var r=e.trim();if(!r)return"";if(e.indexOf(qo)>-1)r=i._applySimpleSelectorScope(e,t,n);else{var o=e.replace(Go,"");if(o.length>0){var a=o.match(/([^:]*)(:*)(.*)/);a&&(r=a[1]+s+a[2]+a[3])}}return r},a=new Oo(e),u="",p=0,l=/( |>|\+|~(?!=))\s*/g,c=!((e=a.content()).indexOf(qo)>-1);null!==(r=l.exec(e));){var h=r[1],f=e.slice(p,r.index).trim();u+=((c=c||f.indexOf(qo)>-1)?o(f):f)+" "+h+" ",p=l.lastIndex}var d=e.substring(p);return u+=(c=c||d.indexOf(qo)>-1)?o(d):d,a.restore(u)},e.prototype._insertPolyfillHostInCssText=function(e){return e.replace($o,Vo).replace(Xo,Bo)},e}(),Oo=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}(),Fo=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Lo=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Do=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Bo="-shadowcsshost",Vo="-shadowcsscontext",jo=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Uo=new RegExp("("+Bo+jo,"gim"),Ho=new RegExp("("+Vo+jo,"gim"),qo=Bo+"-no-combinator",Wo=/-shadowcsshost-no-combinator([^\s]*)/,zo=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Ko=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,Qo="([>\\s~+[.,{:][\\s\\S]*)?$",Go=/-shadowcsshost/gim,Xo=/:host/gim,$o=/:host-context/gim,Yo=/\/\*\s*[\s\S]*?\*\//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
|
||
*/var Jo=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;var Zo=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,ea=/([{}])/g,ta=function(e,t){this.selector=e,this.content=t};var na=function(e,t){this.escapedString=e,this.blocks=t};var ra=function(e,t,n){this.name=e,this.moduleUrl=t,this.setValue=n},ia=function(e,t,n,r,i){this.outputCtx=e,this.stylesVar=t,this.dependencies=n,this.isShimmed=r,this.meta=i},sa=function(){function e(e){this._urlResolver=e,this._shadowCss=new Ro}return e.prototype.compileComponent=function(e,t){var n=t.template;return this._compileStyles(e,t,new Vn({styles:n.styles,styleUrls:n.styleUrls,moduleUrl:kn(t.type)}),this.needsStyleShim(t),!0)},e.prototype.compileStyles=function(e,t,n,r){return void 0===r&&(r=this.needsStyleShim(t)),this._compileStyles(e,t,n,r,!1)},e.prototype.needsStyleShim=function(e){return e.template.encapsulation===P.Emulated},e.prototype._compileStyles=function(e,t,n,r,i){var s=this,o=n.styles.map((function(e){return Vt(s._shimIfNeeded(e,r))})),a=[];n.styleUrls.forEach((function(t){var n=o.length;o.push(null),a.push(new ra(oa(null),t,(function(t){return o[n]=e.importExpr(t)})))}));var u=oa(i?t:null),p=Mt(u).set(Ft(o,new ve(ye,[ue.Const]))).toDeclStmt(null,i?[qe.Final]:[qe.Final,qe.Exported]);return e.statements.push(p),new ia(e,u,a,r,n)},e.prototype._shimIfNeeded=function(e,t){return t?this._shadowCss.shimCssText(e,"_ngcontent-%COMP%","_nghost-%COMP%"):e},e}();function oa(e){var t="styles";return e&&(t+="_"+In(e.type)),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 aa=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}(),ua=function(e,t){this.sourceSpan=e,this.i18n=t},pa=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.value=t,i}return l(t,e),t.prototype.visit=function(e,t){return e.visitText(this,t)},t}(ua),la=function(e){function t(t,n,r,i,s,o){var a=e.call(this,i,o)||this;return a.switchValue=t,a.type=n,a.cases=r,a.switchValueSourceSpan=s,a}return l(t,e),t.prototype.visit=function(e,t){return e.visitExpansion(this,t)},t}(ua),ca=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}(),ha=function(e){function t(t,n,r,i,s){var o=e.call(this,r,s)||this;return o.name=t,o.value=n,o.valueSpan=i,o}return l(t,e),t.prototype.visit=function(e,t){return e.visitAttribute(this,t)},t}(ua),fa=function(e){function t(t,n,r,i,s,o,a){void 0===s&&(s=null),void 0===o&&(o=null);var u=e.call(this,i,a)||this;return u.name=t,u.attrs=n,u.children=r,u.startSourceSpan=s,u.endSourceSpan=o,u}return l(t,e),t.prototype.visit=function(e,t){return e.visitElement(this,t)},t}(ua),da=function(){function e(e,t){this.value=e,this.sourceSpan=t}return e.prototype.visit=function(e,t){return e.visitComment(this,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 va(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 ma,ya=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(t){t&&n.push(va(r,t,e))})),Array.prototype.concat.apply([],n)},e}();!function(e){e[e.TAG_OPEN_START=0]="TAG_OPEN_START",e[e.TAG_OPEN_END=1]="TAG_OPEN_END",e[e.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",e[e.TAG_CLOSE=3]="TAG_CLOSE",e[e.TEXT=4]="TEXT",e[e.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",e[e.RAW_TEXT=6]="RAW_TEXT",e[e.COMMENT_START=7]="COMMENT_START",e[e.COMMENT_END=8]="COMMENT_END",e[e.CDATA_START=9]="CDATA_START",e[e.CDATA_END=10]="CDATA_END",e[e.ATTR_NAME=11]="ATTR_NAME",e[e.ATTR_QUOTE=12]="ATTR_QUOTE",e[e.ATTR_VALUE=13]="ATTR_VALUE",e[e.DOC_TYPE=14]="DOC_TYPE",e[e.EXPANSION_FORM_START=15]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=16]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=17]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=18]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=19]="EXPANSION_FORM_END",e[e.EOF=20]="EOF"}(ma||(ma={}));var ga=function(e,t,n){this.type=e,this.parts=t,this.sourceSpan=n},_a=function(e){function t(t,n,r){var i=e.call(this,r,t)||this;return i.tokenType=n,i}return l(t,e),t}(gr),Ea=function(e,t){this.tokens=e,this.errors=t};var xa=/\r\n?/g;function Sa(e){return'Unexpected character "'+(0===e?"EOF":String.fromCharCode(e))+'"'}function wa(e){return'Unknown entity "'+e+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}var Ca=function(e){this.error=e},ba=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||cs,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 ka(e,r):new Ia(e,r),this._preserveLineEndings=n.preserveLineEndings||!1;try{this._cursor.init()}catch(e){this.handleError(e)}}return e.prototype._processCarriageReturns=function(e){return this._preserveLineEndings?e:e.replace(xa,"\n")},e.prototype.tokenize=function(){for(;0!==this._cursor.peek();){var e=this._cursor.clone();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(e):this._attemptCharCode(45)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(47)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){this.handleError(e)}}return this._beginToken(ma.EOF),this._endToken([]),new Ea(function(e){for(var t=[],n=void 0,r=0;r<e.length;r++){var i=e[r];n&&n.type==ma.TEXT&&i.type==ma.TEXT?(n.parts[0]+=i.parts[0],n.sourceSpan.end=i.sourceSpan.end):(n=i,t.push(n))}return t}(this.tokens),this.errors)},e.prototype._tokenizeExpansionForm=function(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if((61===(e=this._cursor.peek())||pr(e)||ur(e))&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;var e;if(125===this._cursor.peek()){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},e.prototype._beginToken=function(e,t){void 0===t&&(t=this._cursor.clone()),this._currentTokenStart=t,this._currentTokenType=e},e.prototype._endToken=function(e,t){if(null===this._currentTokenStart)throw new _a("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(t));if(null===this._currentTokenType)throw new _a("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));var n=new ga(this._currentTokenType,e,this._cursor.getSpan(this._currentTokenStart,this._leadingTriviaCodePoints));return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n},e.prototype._createError=function(e,t){this._isInExpansionForm()&&(e+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var n=new _a(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new Ca(n)},e.prototype.handleError=function(e){if(e instanceof Ra&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),!(e instanceof Ca))throw e;this.errors.push(e.error)},e.prototype._attemptCharCode=function(e){return this._cursor.peek()===e&&(this._cursor.advance(),!0)},e.prototype._attemptCharCodeCaseInsensitive=function(e){return t=this._cursor.peek(),n=e,Ma(t)==Ma(n)&&(this._cursor.advance(),!0);var t,n},e.prototype._requireCharCode=function(e){var t=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Sa(this._cursor.peek()),this._cursor.getSpan(t))},e.prototype._attemptStr=function(e){var t=e.length;if(this._cursor.charsLeft()<t)return!1;for(var n=this._cursor.clone(),r=0;r<t;r++)if(!this._attemptCharCode(e.charCodeAt(r)))return this._cursor=n,!1;return!0},e.prototype._attemptStrCaseInsensitive=function(e){for(var t=0;t<e.length;t++)if(!this._attemptCharCodeCaseInsensitive(e.charCodeAt(t)))return!1;return!0},e.prototype._requireStr=function(e){var t=this._cursor.clone();if(!this._attemptStr(e))throw this._createError(Sa(this._cursor.peek()),this._cursor.getSpan(t))},e.prototype._attemptCharCodeUntilFn=function(e){for(;!e(this._cursor.peek());)this._cursor.advance()},e.prototype._requireCharCodeUntilFn=function(e,t){var n=this._cursor.clone();if(this._attemptCharCodeUntilFn(e),this._cursor.diff(n)<t)throw this._createError(Sa(this._cursor.peek()),this._cursor.getSpan(n))},e.prototype._attemptUntilChar=function(e){for(;this._cursor.peek()!==e;)this._cursor.advance()},e.prototype._readChar=function(e){if(e&&38===this._cursor.peek())return this._decodeEntity();var t=String.fromCodePoint(this._cursor.peek());return this._cursor.advance(),t},e.prototype._decodeEntity=function(){var e=this._cursor.clone();if(this._cursor.advance(),!this._attemptCharCode(35)){var t=this._cursor.clone();if(this._attemptCharCodeUntilFn(Aa),59!=this._cursor.peek())return this._cursor=t,"&";var n=this._cursor.getChars(t);this._cursor.advance();var r=S[n];if(!r)throw this._createError(wa(n),this._cursor.getSpan(e));return r}var i=this._attemptCharCode(120)||this._attemptCharCode(88),s=this._cursor.clone();if(this._attemptCharCodeUntilFn(Na),59!=this._cursor.peek())throw this._createError(Sa(this._cursor.peek()),this._cursor.getSpan());var o=this._cursor.getChars(s);this._cursor.advance();try{var a=parseInt(o,i?16:10);return String.fromCharCode(a)}catch(t){throw this._createError(wa(this._cursor.getChars(e)),this._cursor.getSpan())}},e.prototype._consumeRawText=function(e,t){this._beginToken(e?ma.ESCAPABLE_RAW_TEXT:ma.RAW_TEXT);for(var n=[];;){var r=this._cursor.clone(),i=t();if(this._cursor=r,i)break;n.push(this._readChar(e))}return this._endToken([this._processCarriageReturns(n.join(""))])},e.prototype._consumeComment=function(e){var t=this;this._beginToken(ma.COMMENT_START,e),this._requireCharCode(45),this._endToken([]),this._consumeRawText(!1,(function(){return t._attemptStr("--\x3e")})),this._beginToken(ma.COMMENT_END),this._requireStr("--\x3e"),this._endToken([])},e.prototype._consumeCdata=function(e){var t=this;this._beginToken(ma.CDATA_START,e),this._requireStr("CDATA["),this._endToken([]),this._consumeRawText(!1,(function(){return t._attemptStr("]]>")})),this._beginToken(ma.CDATA_END),this._requireStr("]]>"),this._endToken([])},e.prototype._consumeDocType=function(e){this._beginToken(ma.DOC_TYPE,e);var t=this._cursor.clone();this._attemptUntilChar(62);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())<97||122<e)&&(e<65||90<e)&&(e<48||e>57));)this._cursor.advance();return 58===this._cursor.peek()?(r=this._cursor.getChars(n),this._cursor.advance(),t=this._cursor.clone()):t=n,this._requireCharCodeUntilFn(Pa,""===r?0:1),[r,this._cursor.getChars(t)]},e.prototype._consumeTagOpen=function(e){var t,n,r,i=this.tokens.length,s=this._cursor.clone();try{if(!pr(this._cursor.peek()))throw this._createError(Sa(this._cursor.peek()),this._cursor.getSpan(e));for(n=(r=this._consumeTagOpenStart(e)).parts[0],t=r.parts[1],this._attemptCharCodeUntilFn(Ta);47!==this._cursor.peek()&&62!==this._cursor.peek();)this._consumeAttributeName(),this._attemptCharCodeUntilFn(Ta),this._attemptCharCode(61)&&(this._attemptCharCodeUntilFn(Ta),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(Ta);this._consumeTagOpenEnd()}catch(t){if(t instanceof Ca)return this._cursor=s,r&&(this.tokens.length=i),this._beginToken(ma.TEXT,e),void this._endToken(["<"]);throw t}var o=this._getTagDefinition(t).contentType;o===c.RAW_TEXT?this._consumeRawTextWithTagClose(n,t,!1):o===c.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(47)&&(r._attemptCharCodeUntilFn(Ta),!!r._attemptStrCaseInsensitive(t)&&(r._attemptCharCodeUntilFn(Ta),r._attemptCharCode(62))))}));this._beginToken(ma.TAG_CLOSE),this._requireCharCodeUntilFn((function(e){return 62===e}),3),this._cursor.advance(),this._endToken([e,t])},e.prototype._consumeTagOpenStart=function(e){this._beginToken(ma.TAG_OPEN_START,e);var t=this._consumePrefixAndName();return this._endToken(t)},e.prototype._consumeAttributeName=function(){var e=this._cursor.peek();if(39===e||34===e)throw this._createError(Sa(e),this._cursor.getSpan());this._beginToken(ma.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},e.prototype._consumeAttributeValue=function(){var e;if(39===this._cursor.peek()||34===this._cursor.peek()){this._beginToken(ma.ATTR_QUOTE);var t=this._cursor.peek();this._cursor.advance(),this._endToken([String.fromCodePoint(t)]),this._beginToken(ma.ATTR_VALUE);for(var n=[];this._cursor.peek()!==t;)n.push(this._readChar(!0));e=n.join(""),this._endToken([this._processCarriageReturns(e)]),this._beginToken(ma.ATTR_QUOTE),this._cursor.advance(),this._endToken([String.fromCodePoint(t)])}else{this._beginToken(ma.ATTR_VALUE);var r=this._cursor.clone();this._requireCharCodeUntilFn(Pa,1),e=this._cursor.getChars(r),this._endToken([this._processCarriageReturns(e)])}},e.prototype._consumeTagOpenEnd=function(){var e=this._attemptCharCode(47)?ma.TAG_OPEN_END_VOID:ma.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(62),this._endToken([])},e.prototype._consumeTagClose=function(e){this._beginToken(ma.TAG_CLOSE,e),this._attemptCharCodeUntilFn(Ta);var t=this._consumePrefixAndName();this._attemptCharCodeUntilFn(Ta),this._requireCharCode(62),this._endToken(t)},e.prototype._consumeExpansionFormStart=function(){this._beginToken(ma.EXPANSION_FORM_START),this._requireCharCode(123),this._endToken([]),this._expansionCaseStack.push(ma.EXPANSION_FORM_START),this._beginToken(ma.RAW_TEXT);var e=this._readUntil(44);this._endToken([e]),this._requireCharCode(44),this._attemptCharCodeUntilFn(Ta),this._beginToken(ma.RAW_TEXT);var t=this._readUntil(44);this._endToken([t]),this._requireCharCode(44),this._attemptCharCodeUntilFn(Ta)},e.prototype._consumeExpansionCaseStart=function(){this._beginToken(ma.EXPANSION_CASE_VALUE);var e=this._readUntil(123).trim();this._endToken([e]),this._attemptCharCodeUntilFn(Ta),this._beginToken(ma.EXPANSION_CASE_EXP_START),this._requireCharCode(123),this._endToken([]),this._attemptCharCodeUntilFn(Ta),this._expansionCaseStack.push(ma.EXPANSION_CASE_EXP_START)},e.prototype._consumeExpansionCaseEnd=function(){this._beginToken(ma.EXPANSION_CASE_EXP_END),this._requireCharCode(125),this._endToken([]),this._attemptCharCodeUntilFn(Ta),this._expansionCaseStack.pop()},e.prototype._consumeExpansionFormEnd=function(){this._beginToken(ma.EXPANSION_FORM_END),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},e.prototype._consumeText=function(){var e=this._cursor.clone();this._beginToken(ma.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()||0===this._cursor.peek())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]===ma.EXPANSION_CASE_EXP_START},e.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===ma.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 Ta(e){return!ar(e)||0===e}function Pa(e){return ar(e)||62===e||47===e||39===e||34===e||61===e}function Na(e){return 59==e||0==e||!function(e){return e>=97&&e<=102||e>=65&&e<=70||ur(e)}(e)}function Aa(e){return 59==e||0==e||!pr(e)}function Ma(e){return e>=97&&e<=122?e-97+65:e}var Ia=function(){function e(t,n){if(t instanceof e){this.file=t.file,this.input=t.input,this.end=t.end;var r=t.state;this.state={peek:r.peek,offset:r.offset,line:r.line,column:r.column}}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){e=e||this;var n=!1;if(t)for(;this.diff(e)>0&&-1!==t.indexOf(e.peek());)n||(e=e.clone(),n=!0),e.advance();return new vr(new fr(e.file,e.state.offset,e.state.line,e.state.column),new fr(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 Ra('Unexpected character "EOF"',this);var t=this.charAt(e.offset);10===t?(e.line++,e.column=0):lr(t)||e.column++,e.offset++,this.updatePeek(e)},e.prototype.updatePeek=function(e){e.peek=e.offset>=this.end?0:this.charAt(e.offset)},e}(),ka=function(e){function t(n,r){var i=this;return n instanceof t?(i=e.call(this,n)||this).internalState=h({},n.internalState):(i=e.call(this,n,r)||this).internalState=i.state,i}return l(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.offset<this.internalState.offset;)n+=String.fromCodePoint(t.peek()),t.advance();return n},t.prototype.processEscapeSequence=function(){var e=this,t=function(){return e.internalState.peek};if(92===t())if(this.internalState=h({},this.state),this.advanceState(this.internalState),110===t())this.state.peek=10;else if(114===t())this.state.peek=13;else if(118===t())this.state.peek=11;else if(116===t())this.state.peek=9;else if(98===t())this.state.peek=8;else if(102===t())this.state.peek=12;else if(117===t())if(this.advanceState(this.internalState),123===t()){this.advanceState(this.internalState);for(var n=this.clone(),r=0;125!==t();)this.advanceState(this.internalState),r++;this.state.peek=this.decodeHexDigits(n,r)}else{n=this.clone();this.advanceState(this.internalState),this.advanceState(this.internalState),this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(n,4)}else if(120===t()){this.advanceState(this.internalState);n=this.clone();this.advanceState(this.internalState),this.state.peek=this.decodeHexDigits(n,2)}else if(cr(t())){for(var i="",s=0,o=this.clone();cr(t())&&s<3;)o=this.clone(),i+=String.fromCodePoint(t()),this.advanceState(this.internalState),s++;this.state.peek=parseInt(i,8),this.internalState=o.internalState}else lr(this.internalState.peek)?(this.advanceState(this.internalState),this.state=this.internalState):this.state.peek=this.internalState.peek},t.prototype.decodeHexDigits=function(e,t){var n=this.input.substr(e.internalState.offset,t),r=parseInt(n,16);if(isNaN(r))throw e.state=e.internalState,new Ra("Invalid hexadecimal escape sequence",e);return r},t}(Ia),Ra=function(e,t){this.msg=e,this.cursor=t},Oa=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.elementName=t,i}return l(t,e),t.create=function(e,n,r){return new t(e,n,r)},t}(gr),Fa=function(e,t){this.rootNodes=e,this.errors=t},La=function(){function e(e){this.getTagDefinition=e}return e.prototype.parse=function(e,t,n){var r=function(e,t,n,r){return void 0===r&&(r={}),new ba(new dr(e,t),n,r).tokenize()}(e,t,this.getTagDefinition,n),i=new Da(r.tokens,this.getTagDefinition).build();return new Fa(i.rootNodes,r.errors.concat(i.errors))},e}(),Da=function(){function e(e,t){this.tokens=e,this.getTagDefinition=t,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return e.prototype.build=function(){for(;this._peek.type!==ma.EOF;)this._peek.type===ma.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===ma.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===ma.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===ma.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===ma.TEXT||this._peek.type===ma.RAW_TEXT||this._peek.type===ma.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===ma.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new Fa(this._rootNodes,this._errors)},e.prototype._advance=function(){var e=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],e},e.prototype._advanceIf=function(e){return this._peek.type===e?this._advance():null},e.prototype._consumeCdata=function(e){this._consumeText(this._advance()),this._advanceIf(ma.CDATA_END)},e.prototype._consumeComment=function(e){var t=this._advanceIf(ma.RAW_TEXT);this._advanceIf(ma.COMMENT_END);var n=null!=t?t.parts[0].trim():null;this._addToParent(new da(n,e.sourceSpan))},e.prototype._consumeExpansion=function(e){for(var t=this._advance(),n=this._advance(),r=[];this._peek.type===ma.EXPANSION_CASE_VALUE;){var i=this._parseExpansionCase();if(!i)return;r.push(i)}if(this._peek.type===ma.EXPANSION_FORM_END){var s=new vr(e.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new la(t.parts[0],n.parts[0],r,s,t.sourceSpan)),this._advance()}else this._errors.push(Oa.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."))},e.prototype._parseExpansionCase=function(){var t=this._advance();if(this._peek.type!==ma.EXPANSION_CASE_EXP_START)return this._errors.push(Oa.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;var i=this._advance();r.push(new ga(ma.EOF,[],i.sourceSpan));var s=new e(r,this.getTagDefinition).build();if(s.errors.length>0)return this._errors=this._errors.concat(s.errors),null;var o=new vr(t.sourceSpan.start,i.sourceSpan.end),a=new vr(n.sourceSpan.start,i.sourceSpan.end);return new ca(t.parts[0],s.rootNodes,o,t.sourceSpan,a)},e.prototype._collectExpansionExpTokens=function(e){for(var t=[],n=[ma.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==ma.EXPANSION_FORM_START&&this._peek.type!==ma.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===ma.EXPANSION_CASE_EXP_END){if(!Ba(n,ma.EXPANSION_CASE_EXP_START))return this._errors.push(Oa.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return t}if(this._peek.type===ma.EXPANSION_FORM_END){if(!Ba(n,ma.EXPANSION_FORM_START))return this._errors.push(Oa.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===ma.EOF)return this._errors.push(Oa.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 pa(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===ma.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(t,n,this._getParentElement()),s=!1;if(this._peek.type===ma.TAG_OPEN_END_VOID){this._advance(),s=!0;var o=this.getTagDefinition(i);o.canSelfClose||null!==E(i)||o.isVoid||this._errors.push(Oa.create(i,e.sourceSpan,'Only void and foreign elements can be self closed "'+e.parts[1]+'"'))}else this._peek.type===ma.TAG_OPEN_END&&(this._advance(),s=!1);var a=this._peek.sourceSpan.start,u=new vr(e.sourceSpan.start,a),p=new fa(i,r,[],u,u,void 0);this._pushElement(p),s&&(this._popElement(i),p.endSourceSpan=u)},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());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=e.sourceSpan),this.getTagDefinition(t).isVoid)this._errors.push(Oa.create(t,e.sourceSpan,'Void elements do not have end tags "'+e.parts[1]+'"'));else if(!this._popElement(t)){var n='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';this._errors.push(Oa.create(t,e.sourceSpan,n))}},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=x(e.parts[0],e.parts[1]),n=e.sourceSpan.end,r="",i=void 0;if(this._peek.type===ma.ATTR_QUOTE&&this._advance(),this._peek.type===ma.ATTR_VALUE){var s=this._advance();r=s.parts[0],n=s.sourceSpan.end,i=s.sourceSpan}this._peek.type===ma.ATTR_QUOTE&&(n=this._advance().sourceSpan.end);return new ha(t,r,new vr(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(!y(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=E(n.name)),x(e,t)},e}();function Ba(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 Va=function(e){function t(){return e.call(this,T)||this}return l(t,e),t.prototype.parse=function(t,n,r){return e.prototype.parse.call(this,t,n,r)},t}(La),ja=new Set(["pre","template","textarea","script","style"]),Ua=" \f\n\r\t\v - \u2028\u2029 \ufeff",Ha=new RegExp("[^"+Ua+"]"),qa=new RegExp("["+Ua+"]{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 Wa(e){return e.replace(new RegExp("","g")," ")}var za=function(){function e(){}return e.prototype.visitElement=function(e,t){return ja.has(e.name)||e.attrs.some((function(e){return"ngPreserveWhitespaces"===e.name}))?new fa(e.name,va(this,e.attrs),e.children,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n):new fa(e.name,e.attrs,(n=this,r=e.children,i=[],r.forEach((function(e,t){var s={prev:r[t-1],next:r[t+1]},o=e.visit(n,s);o&&i.push(o)})),i),e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n);var n,r,i},e.prototype.visitAttribute=function(e,t){return"ngPreserveWhitespaces"!==e.name?e:null},e.prototype.visitText=function(e,t){var n=e.value.match(Ha),r=t&&(t.prev instanceof la||t.next instanceof la);return n||r?new pa(Wa(e.value).replace(qa," "),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}();function Ka(e){return new Fa(va(new za,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
|
||
*/
|
||
var Qa=["zero","one","two","few","many","other"];function Ga(e){var t=new Ja;return new $a(va(t,e),t.isExpanded,t.errors)}var Xa,$a=function(e,t,n){this.nodes=e,this.expanded=t,this.errors=n},Ya=function(e){function t(t,n){return e.call(this,t,n)||this}return l(t,e),t}(gr),Ja=function(){function e(){this.isExpanded=!1,this.errors=[]}return e.prototype.visitElement=function(e,t){return new fa(e.name,e.attrs,va(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(e,t){var n=e.cases.map((function(e){-1!=Qa.indexOf(e.value)||e.value.match(/^=\d+$/)||t.push(new Ya(e.valueSourceSpan,'Plural cases should be "=<number>" or one of '+Qa.join(", ")));var n=Ga(e.expression);return t.push.apply(t,v(n.errors)),new fa("ng-template",[new ha("ngPluralCase",""+e.value,e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)})),r=new ha("[ngPlural]",e.switchValue,e.switchValueSourceSpan);return new fa("ng-container",[r],n,e.sourceSpan,e.sourceSpan,e.sourceSpan)}(e,this.errors):function(e,t){var n=e.cases.map((function(e){var n=Ga(e.expression);return t.push.apply(t,v(n.errors)),"other"===e.value?new fa("ng-template",[new ha("ngSwitchDefault","",e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan):new fa("ng-template",[new ha("ngSwitchCase",""+e.value,e.valueSourceSpan)],n.nodes,e.sourceSpan,e.sourceSpan,e.sourceSpan)})),r=new ha("[ngSwitch]",e.switchValue,e.switchValueSourceSpan);return new fa("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}();var Za,eu=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}(),tu=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}(),nu=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}(),ru=((Xa={})[4]=4,Xa[1]=1,Xa[2]=2,Xa[0]=0,Xa[3]=3,Xa),iu=function(){function e(e,t,n,r,i,s){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=s,this.isAnimation=4===this.type}return e.fromBoundProperty=function(t){var n=ru[t.type];return new e(t.name,n,t.securityContext,t.value,t.unit,t.sourceSpan)},e.prototype.visit=function(e,t){return e.visitElementProperty(this,t)},e}(),su=function(){function e(t,n,r,i,s,o){this.name=t,this.target=n,this.phase=r,this.handler=i,this.sourceSpan=s,this.handlerSpan=o,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){var n=0===t.type?t.targetOrPhase:null,r=1===t.type?t.targetOrPhase:null;return new e(t.name,n,r,t.handler,t.sourceSpan,t.handlerSpan)},e.prototype.visit=function(e,t){return e.visitEvent(this,t)},e}(),ou=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}(),au=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}(),uu=function(){function e(e,t,n,r,i,s,o,a,u,p,l,c,h){this.name=e,this.attrs=t,this.inputs=n,this.outputs=r,this.references=i,this.directives=s,this.providers=o,this.hasViewContainer=a,this.queryMatches=u,this.children=p,this.ngContentIndex=l,this.sourceSpan=c,this.endSourceSpan=h}return e.prototype.visit=function(e,t){return e.visitElement(this,t)},e}(),pu=function(){function e(e,t,n,r,i,s,o,a,u,p,l){this.attrs=e,this.outputs=t,this.references=n,this.variables=r,this.directives=i,this.providers=s,this.hasViewContainer=o,this.queryMatches=a,this.children=u,this.ngContentIndex=p,this.sourceSpan=l}return e.prototype.visit=function(e,t){return e.visitEmbeddedTemplate(this,t)},e}(),lu=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}(),cu=function(){function e(e,t,n,r,i,s){this.directive=e,this.inputs=t,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=i,this.sourceSpan=s}return e.prototype.visit=function(e,t){return e.visitDirective(this,t)},e}(),hu=function(){function e(e,t,n,r,i,s,o,a){this.token=e,this.multiProvider=t,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=s,this.sourceSpan=o,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"}(Za||(Za={}));var fu=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}(),du=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}(),vu=function(e){function t(){return e.call(this)||this}return l(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(t){t&&t.length&&n.push(mu(r,t,e))})),Array.prototype.concat.apply([],n)},t}(du);function mu(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 yu=function(e){function t(t,n){return e.call(this,n,t)||this}return l(t,e),t}(gr),gu=function(e,t){var n=this;this.reflector=e,this.component=t,this.errors=[],this.viewQueries=function(e){var t=1,n=new Map;return e.viewQueries&&e.viewQueries.forEach((function(e){return Cu(n,{meta:e,queryId:t++})})),n}(t),this.viewProviders=new Map,t.viewProviders.forEach((function(e){null==n.viewProviders.get(Bn(e.token))&&n.viewProviders.set(Bn(e.token),!0)}))},_u=function(){function e(e,t,n,r,i,s,o,a,u){var p=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 p._attrs[e.name]=e.value}));var l,c,h,f,d=r.map((function(e){return e.directive}));if(this._allProviders=(l=d,c=u,h=e.errors,f=new Map,l.forEach((function(e){wu([{token:{identifier:e.type},useClass:e.type}],e.isComponent?Za.Component:Za.Directive,!0,c,h,f,!1)})),l.filter((function(e){return e.isComponent})).concat(l.filter((function(e){return!e.isComponent}))).forEach((function(e){wu(e.providers,Za.PublicService,!1,c,h,f,!1),wu(e.viewProviders,Za.PrivateService,!1,c,h,f,!1)})),f),this._contentQueries=function(e,t){var n=e,r=new Map;return t.forEach((function(e,t){e.queries&&e.queries.forEach((function(e){return Cu(r,{meta:e,queryId:n++})}))})),r}(a,d),Array.from(this._allProviders.values()).forEach((function(e){p._addQueryReadsTo(e.token,e.token,p._queriedTokens)})),o){var v=Cn(this.viewContext.reflector,Sn.TemplateRef);this._addQueryReadsTo(v,v,this._queriedTokens)}s.forEach((function(e){var t=e.value||Cn(p.viewContext.reflector,Sn.ElementRef);p._addQueryReadsTo({value:e.name},t,p._queriedTokens)})),this._queriedTokens.get(this.viewContext.reflector.resolveExternalReference(Sn.ViewContainerRef))&&(this.transformedHasViewContainer=!0),Array.from(this._allProviders.values()).forEach((function(e){(e.eager||p._queriedTokens.get(Bn(e.token)))&&p._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,v(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=Bn(r),s=n.get(i);s||(s=[],n.set(i,s)),s.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(Bn(e)))&&n.push.apply(n,v(t.filter((function(e){return e.meta.descendants||i<=1})))),r._directiveAsts.length>0&&i++,r=r._parent;return(t=this.viewContext.viewQueries.get(Bn(e)))&&n.push.apply(n,v(t)),n},e.prototype._getOrCreateLocalProvider=function(e,t,n){var r=this,i=this._allProviders.get(Bn(t));if(!i||(e===Za.Directive||e===Za.PublicService)&&i.providerType===Za.PrivateService||(e===Za.PrivateService||e===Za.PublicService)&&i.providerType===Za.Builtin)return null;var s=this._transformedProviders.get(Bn(t));if(s)return s;if(null!=this._seenProviders.get(Bn(t)))return this.viewContext.errors.push(new yu("Cannot instantiate cyclic dependency! "+Dn(t),this._sourceSpan)),null;this._seenProviders.set(Bn(t),!0);var o=i.providers.map((function(e){var t=e.useValue,s=e.useExisting,o=void 0;if(null!=e.useExisting){var a=r._getDependency(i.providerType,{token:e.useExisting},n);null!=a.token?s=a.token:(s=null,t=a.value)}else if(e.useFactory){o=(e.deps||e.useFactory.diDeps).map((function(e){return r._getDependency(i.providerType,e,n)}))}else if(e.useClass){o=(e.deps||e.useClass.diDeps).map((function(e){return r._getDependency(i.providerType,e,n)}))}return xu(e,{useExisting:s,useValue:t,deps:o})}));return s=Su(i,{eager:n,providers:o}),this._transformedProviders.set(Bn(t),s),s},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===Za.Directive||e===Za.Component){if(Bn(t.token)===this.viewContext.reflector.resolveExternalReference(Sn.Renderer)||Bn(t.token)===this.viewContext.reflector.resolveExternalReference(Sn.ElementRef)||Bn(t.token)===this.viewContext.reflector.resolveExternalReference(Sn.ChangeDetectorRef)||Bn(t.token)===this.viewContext.reflector.resolveExternalReference(Sn.TemplateRef))return t;Bn(t.token)===this.viewContext.reflector.resolveExternalReference(Sn.ViewContainerRef)&&(this.transformedHasViewContainer=!0)}if(Bn(t.token)===this.viewContext.reflector.resolveExternalReference(Sn.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,s=null;if(t.isSkipSelf||(s=this._getLocalDependency(e,t,n)),t.isSelf)!s&&t.isOptional&&(s={isValue:!0,value:null});else{for(;!s&&r._parent;){var o=r;r=r._parent,o._isViewRoot&&(i=!1),s=r._getLocalDependency(Za.PublicService,t,i)}s||(s=!t.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===Bn(t.token)||null!=this.viewContext.viewProviders.get(Bn(t.token))?t:t.isOptional?{isValue:!0,value:null}:null)}return s||this.viewContext.errors.push(new yu("No provider for "+Dn(t.token),this._sourceSpan)),s},e}(),Eu=function(){function e(e,t,n,r){var i=this;this.reflector=e,this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,t.transitiveModule.modules.forEach((function(e){wu([{token:{identifier:e},useClass:e}],Za.PublicService,!0,r,i._errors,i._allProviders,!0)})),wu(t.transitiveModule.providers.map((function(e){return e.provider})).concat(n),Za.PublicService,!1,r,this._errors,this._allProviders,!1)}return e.prototype.parse=function(){var e=this;if(Array.from(this._allProviders.values()).forEach((function(t){e._getOrCreateLocalProvider(t.token,t.eager)})),this._errors.length>0){var t=this._errors.join("\n");throw new Error("Provider parse errors:\n"+t)}var n=[],r=[];return this._transformedProviders.forEach((function(e){e.eager?r.push(e):n.push(e)})),n.concat(r)},e.prototype._getOrCreateLocalProvider=function(e,t){var n=this,r=this._allProviders.get(Bn(e));if(!r)return null;var i=this._transformedProviders.get(Bn(e));if(i)return i;if(null!=this._seenProviders.get(Bn(e)))return this._errors.push(new yu("Cannot instantiate cyclic dependency! "+Dn(e),r.sourceSpan)),null;this._seenProviders.set(Bn(e),!0);var s=r.providers.map((function(e){var i=e.useValue,s=e.useExisting,o=void 0;if(null!=e.useExisting){var a=n._getDependency({token:e.useExisting},t,r.sourceSpan);null!=a.token?s=a.token:(s=null,i=a.value)}else if(e.useFactory){o=(e.deps||e.useFactory.diDeps).map((function(e){return n._getDependency(e,t,r.sourceSpan)}))}else if(e.useClass){o=(e.deps||e.useClass.diDeps).map((function(e){return n._getDependency(e,t,r.sourceSpan)}))}return xu(e,{useExisting:s,useValue:i,deps:o})}));return i=Su(r,{eager:t,providers:s}),this._transformedProviders.set(Bn(e),i),i},e.prototype._getDependency=function(e,t,n){return void 0===t&&(t=!1),e.isSkipSelf||null==e.token||Bn(e.token)===this.reflector.resolveExternalReference(Sn.Injector)||Bn(e.token)===this.reflector.resolveExternalReference(Sn.ComponentFactoryResolver)||this._getOrCreateLocalProvider(e.token,t),e},e}();function xu(e,t){var n=t.useExisting,r=t.useValue,i=t.deps;return{token:e.token,useClass:e.useClass,useExisting:n,useFactory:e.useFactory,useValue:r,deps:i,multi:e.multi}}function Su(e,t){var n=t.eager,r=t.providers;return new hu(e.token,e.multiProvider,e.eager||n,r,e.providerType,e.lifecycleHooks,e.sourceSpan,e.isModule)}function wu(e,t,n,r,i,s,o){e.forEach((function(e){var a=s.get(Bn(e.token));if(null!=a&&!!a.multiProvider!=!!e.multi&&i.push(new yu("Mixing multi and non multi provider is not possible for token "+Dn(a.token),r)),a)e.multi||(a.providers.length=0),a.providers.push(e);else{var u=e.token.identifier&&e.token.identifier.lifecycleHooks?e.token.identifier.lifecycleHooks:[],p=!(e.useClass||e.useExisting||e.useFactory);a=new hu(e.token,!!e.multi,n||p,[e],t,u,r,o),s.set(Bn(e.token),a)}}))}function Cu(e,t){t.meta.selectors.forEach((function(n){var r=e.get(Bn(n));r||(r=[],e.set(Bn(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 bu=function(e,t){this.style=e,this.styleUrls=t};function Tu(e){if(null==e||0===e.length||"/"==e[0])return!1;var t=e.match(Au);return null===t||"package"==t[1]||"asset"==t[1]}var Pu=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,Nu=/\/\*(?!#\s*(?:sourceURL|sourceMappingURL)=)[\s\S]+?\*\//g,Au=/^([^:/?#]+):/,Mu=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 s=new Map;r.forEach((function(e){return s.set(e.name,e)})),this.pipesByName=s}}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 s=e.hostProperties[i];"string"==typeof s?n.parsePropertyBinding(i,s,!0,t,t.start.offset,void 0,[],r):n._reportError('Value of the host property binding "'+i+'" needs to be a string representing an expression but got "'+s+'" ('+typeof s+")",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 s=e.hostListeners[i];"string"==typeof s?n.parseEvent(i,s,t,t,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+s+'" ('+typeof s+")",t)})),r}return null},e.prototype.parseInterpolation=function(e,t){var n=t.start.toString();try{var r=this._exprParser.parseInterpolation(e,n,t.start.offset,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,t.start.offset)}},e.prototype.parseInlineTemplateBinding=function(e,t,n,r,i,s,o){for(var a=this._parseTemplateBindings(e,t,n,r),u=0;u<a.length;u++){var p=a[u];p.keyIsVar?o.push(new fo(p.key,p.name,n)):p.expression?this._parsePropertyAst(p.key,p.expression,n,void 0,i,s):(i.push([p.key,""]),this.parseLiteralAttr(p.key,null,n,r,void 0,i,s))}},e.prototype._parseTemplateBindings=function(e,t,n,r){var i=this,s=n.start.toString();try{var o=this._exprParser.parseTemplateBindings(e,t,s,r);return this._reportExpressionParserErrors(o.errors,n),o.templateBindings.forEach((function(e){e.expression&&i._checkPipes(e.expression,n)})),o.warnings.forEach((function(e){i._reportError(e,n,hr.WARNING)})),o.templateBindings}catch(e){return this._reportError(""+e,n),[]}},e.prototype.parseLiteralAttr=function(e,t,n,r,i,s,o){ku(e)?(e=e.substring(1),t&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',n,hr.ERROR),this._parseAnimation(e,t,n,r,i,s,o)):o.push(new co(e,this._exprParser.wrapLiteralPrimitive(t,"",r),Os.LITERAL_ATTR,n,i))},e.prototype.parsePropertyBinding=function(e,t,n,r,i,s,o,a){0===e.length&&this._reportError("Property name is missing in binding",r);var u=!1;e.startsWith("animate-")?(u=!0,e=e.substring("animate-".length)):ku(e)&&(u=!0,e=e.substring(1)),u?this._parseAnimation(e,t,r,i,s,o,a):this._parsePropertyAst(e,this._parseBinding(t,n,s||r,i),r,s,o,a)},e.prototype.parsePropertyInterpolation=function(e,t,n,r,i,s){var o=this.parseInterpolation(t,r||n);return!!o&&(this._parsePropertyAst(e,o,n,r,i,s),!0)},e.prototype._parsePropertyAst=function(e,t,n,r,i,s){i.push([e,t.source]),s.push(new co(e,t,Os.DEFAULT,n,r))},e.prototype._parseAnimation=function(e,t,n,r,i,s,o){0===e.length&&this._reportError("Animation trigger is missing",n);var a=this._parseBinding(t||"undefined",!1,i||n,r);s.push([e,a.source]),o.push(new co(e,a,Os.ANIMATION,n,i))},e.prototype._parseBinding=function(e,t,n,r){var i=(n&&n.start||"(unknown)").toString();try{var s=t?this._exprParser.parseSimpleBinding(e,i,r,this._interpolationConfig):this._exprParser.parseBinding(e,i,r,this._interpolationConfig);return s&&this._reportExpressionParserErrors(s.errors,n),this._checkPipes(s,n),s}catch(e){return this._reportError(""+e,n),this._exprParser.wrapLiteralPrimitive("ERROR",i,r)}},e.prototype.createBoundElementProperty=function(e,t,n,r){if(void 0===n&&(n=!1),void 0===r&&(r=!0),t.isAnimation)return new vo(t.name,4,H.NONE,t.expression,null,t.sourceSpan,t.valueSpan);var i=null,s=void 0,o=null,a=t.name.split("."),u=void 0;if(a.length>1)if("attr"==a[0]){o=a.slice(1).join("."),n||this._validatePropertyOrAttributeName(o,t.sourceSpan,!0),u=Ru(this._schemaRegistry,e,o,!0);var p=o.indexOf(":");if(p>-1){var l=o.substring(0,p),c=o.substring(p+1);o=x(l,c)}s=1}else"class"==a[0]?(o=a[1],s=2,u=[H.NONE]):"style"==a[0]&&(i=a.length>2?a[2]:null,o=a[1],s=3,u=[H.STYLE]);if(null===o){var h=this._schemaRegistry.getMappedPropName(t.name);o=r?h:t.name,u=Ru(this._schemaRegistry,e,h,!1),s=0,n||this._validatePropertyOrAttributeName(h,t.sourceSpan,!1)}return new vo(o,s,u[0],t.expression,i,t.sourceSpan,t.valueSpan)},e.prototype.parseEvent=function(e,t,n,r,i,s){0===e.length&&this._reportError("Event name is missing in binding",n),ku(e)?(e=e.substr(1),this._parseAnimationEvent(e,t,n,r,s)):this._parseRegularEvent(e,t,n,r,i,s)},e.prototype.calcPossibleSecurityContexts=function(e,t,n){var r=this._schemaRegistry.getMappedPropName(t);return Ru(this._schemaRegistry,e,r,n)},e.prototype._parseAnimationEvent=function(e,t,n,r,i){var s=Wt(e,".",[e,""]),o=s[0],a=s[1].toLowerCase();if(a)switch(a){case"start":case"done":var u=this._parseAction(t,r);i.push(new ho(o,a,1,u,n,r));break;default:this._reportError('The provided animation output phase value "'+a+'" for "@'+o+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+o+") is missing its phase value name (start or done are currently supported)",n)},e.prototype._parseRegularEvent=function(e,t,n,r,i,s){var o=d(qt(e,[null,e]),2),a=o[0],u=o[1],p=this._parseAction(t,r);i.push([e,p.source]),s.push(new ho(u,a,0,p,n,r))},e.prototype._parseAction=function(e,t){var n=(t&&t.start||"(unknown").toString(),r=t&&t.start?t.start.offset:0;try{var i=this._exprParser.parseAction(e,n,r,this._interpolationConfig);return i&&this._reportExpressionParserErrors(i.errors,t),!i||i.ast instanceof Vs?(this._reportError("Empty expressions are not allowed",t),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)):(this._checkPipes(i,t),i)}catch(e){return this._reportError(""+e,t),this._exprParser.wrapLiteralPrimitive("ERROR",n,r)}},e.prototype._reportError=function(e,t,n){void 0===n&&(n=hr.ERROR),this.errors.push(new gr(t,e,n))},e.prototype._reportExpressionParserErrors=function(e,t){var n,r;try{for(var i=f(e),s=i.next();!s.done;s=i.next()){var o=s.value;this._reportError(o.message,t)}}catch(e){n={error:e}}finally{try{s&&!s.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 Iu;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 vr(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,hr.ERROR)},e}(),Iu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.pipes=new Map,t}return l(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}(uo);function ku(e){return"@"==e[0]}function Ru(e,t,n,r){var i=[];return M.parse(t).forEach((function(t){var s=t.element?[t.element]:e.allKnownElementNames(),o=new Set(t.notSelectors.filter((function(e){return e.isElementSelector()})).map((function(e){return e.element}))),a=s.filter((function(e){return!o.has(e)}));i.push.apply(i,v(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 Ou;function Fu(e){var t=null,n=null,r=null,i=!1,s="";e.attrs.forEach((function(e){var o=e.name.toLowerCase();"select"==o?t=e.value:"href"==o?n=e.value:"rel"==o?r=e.value:"ngNonBindable"==e.name?i=!0:"ngProjectAs"==e.name&&e.value.length>0&&(s=e.value)})),t=function(e){if(null===e||0===e.length)return"*";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
|
||
*/(t);var o=e.name.toLowerCase(),a=Ou.OTHER;return g(o)?a=Ou.NG_CONTENT:"style"==o?a=Ou.STYLE:"script"==o?a=Ou.SCRIPT:"link"==o&&"stylesheet"==r&&(a=Ou.STYLESHEET),new Lu(a,t,n,i,s)}!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"}(Ou||(Ou={}));var Lu=function(e,t,n,r,i){this.type=e,this.selectAttr=t,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i};var Du,Bu=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/;function Vu(){return Du||(Du=M.parse("*")[0]),Du}var ju=function(e){function t(t,n,r){return e.call(this,n,t,r)||this}return l(t,e),t}(gr),Uu=function(e,t,n){this.templateAst=e,this.usedPipes=t,this.errors=n},Hu=function(){function e(e,t,n,r,i,s,o){this._config=e,this._reflector=t,this._exprParser=n,this._schemaRegistry=r,this._htmlParser=i,this._console=s,this.transforms=o}return Object.defineProperty(e.prototype,"expressionParser",{get:function(){return this._exprParser},enumerable:!0,configurable:!0}),e.prototype.parse=function(e,t,n,r,i,s,o){var a=this.tryParse(e,t,n,r,i,s,o),u=a.errors.filter((function(e){return e.level===hr.WARNING})),p=a.errors.filter((function(e){return e.level===hr.ERROR}));if(u.length>0&&this._console.warn("Template parse warnings:\n"+u.join("\n")),p.length>0)throw Zt("Template parse errors:\n"+p.join("\n"),p);return{template:a.templateAst,pipes:a.usedPipes}},e.prototype.tryParse=function(e,t,n,r,i,s,o){var a="string"==typeof t?this._htmlParser.parse(t,s,{tokenizeExpansionForms:!0,interpolationConfig:this.getInterpolationConfig(e)}):t;return o||(a=Ka(a)),this.tryParseHtml(this.expandHtml(a),e,n,r,i)},e.prototype.tryParseHtml=function(e,t,n,r,i){var s,o=e.errors,a=[];if(e.rootNodes.length>0){var u=Ju(n),p=Ju(r),l=new gu(this._reflector,t),c=void 0;t.template&&t.template.interpolation&&(c={start:t.template.interpolation[0],end:t.template.interpolation[1]});var h=new Mu(this._exprParser,c,this._schemaRegistry,p,o),f=new qu(this._reflector,this._config,l,u,h,this._schemaRegistry,i,o);s=va(f,e.rootNodes,Xu),o.push.apply(o,v(l.errors)),a.push.apply(a,v(h.getUsedPipes()))}else s=[];return this._assertNoReferenceDuplicationOnTemplate(s,o),o.length>0?new Uu(s,a,o):(this.transforms&&this.transforms.forEach((function(e){s=mu(e,s)})),new Uu(s,a,o))},e.prototype.expandHtml=function(e,t){void 0===t&&(t=!1);var n=e.errors;if(0==n.length||t){var r=Ga(e.rootNodes);n.push.apply(n,v(r.errors)),e=new Fa(r.nodes,n)}return e},e.prototype.getInterpolationConfig=function(e){if(e.template)return ls.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 ju('Reference "#'+r+'" is defined several times',e.sourceSpan,hr.ERROR);t.push(i)}}))}))},e}(),qu=function(){function e(e,t,n,r,i,s,o,a){var u=this;this.reflector=e,this.config=t,this.providerViewContext=n,this._bindingParser=i,this._schemaRegistry=s,this._schemas=o,this._targetErrors=a,this.selectorMatcher=new I,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,r.forEach((function(e,t){var n=M.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(Vu()),r=Wa(e.value),i=this._bindingParser.parseInterpolation(r,e.sourceSpan);return i?new tu(i,n,e.sourceSpan):new eu(r,n,e.sourceSpan)},e.prototype.visitAttribute=function(e,t){return new nu(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,s=Fu(e);if(s.type===Ou.SCRIPT||s.type===Ou.STYLE)return null;if(s.type===Ou.STYLESHEET&&Tu(s.hrefAttr))return null;var o=[],a=[],u=[],p=[],l=[],c=[],h=[],f=[],d=!1,m=[],y=_(e.name);e.attrs.forEach((function(e){var t,r,i=n._parseAttr(y,e,o,a,l,u,p);p.push.apply(p,v([].map((function(e){return au.fromParsedVariable(e)}))));var s=n._normalizeAttributeName(e.name);s.startsWith("*")&&(t=e.value,r=s.substring("*".length));var g=null!=t;if(g){d&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",e.sourceSpan),d=!0;var _=[],E=(e.valueSpan||e.sourceSpan).start.offset;n._bindingParser.parseInlineTemplateBinding(r,t,e.sourceSpan,E,h,c,_),f.push.apply(f,v(_.map((function(e){return au.fromParsedVariable(e)}))))}i||g||(m.push(n.visitAttribute(e,null)),o.push([e.name,e.value]))}));var g=Gu(i,o),E=this._parseDirectives(this.selectorMatcher,g),x=E.directives,S=E.matchElement,w=[],C=new Set,b=this._createDirectiveAsts(y,e.name,x,a,u,e.sourceSpan,w,C),T=this._createElementPropertyAsts(e.name,a,C),P=t.isTemplateElement||d,N=new _u(this.providerViewContext,t.providerContext,P,b,m,w,y,r,e.sourceSpan),A=va(s.nonBindable?$u:this,e.children,Qu.create(y,b,y?t.providerContext:N));N.afterElement();var I,k=""!=s.projectAs?M.parse(s.projectAs)[0]:g,R=t.findNgContentIndex(k);if(s.type===Ou.NG_CONTENT)e.children&&!e.children.every(Yu)&&this._reportError("<ng-content> element cannot have content.",e.sourceSpan),I=new fu(this.ngContentCount++,d?null:R,e.sourceSpan);else if(y)this._assertAllEventsPublishedByDirectives(b,l),this._assertNoComponentsNorElementBindingsOnTemplate(b,T,e.sourceSpan),I=new pu(m,l,w,p,N.transformedDirectiveAsts,N.transformProviders,N.transformedHasViewContainer,N.queryMatches,A,d?null:R,e.sourceSpan);else{this._assertElementExists(S,e),this._assertOnlyOneComponent(b,e.sourceSpan);var O=d?null:t.findNgContentIndex(k);I=new uu(i,m,T,l,w,N.transformedDirectiveAsts,N.transformProviders,N.transformedHasViewContainer,N.queryMatches,A,d?null:O,e.sourceSpan,e.endSourceSpan||null)}if(d){var F=this.contentQueryStartId,L=Gu("ng-template",h),D=this._parseDirectives(this.selectorMatcher,L).directives,B=new Set,V=this._createDirectiveAsts(!0,i,D,c,[],e.sourceSpan,[],B),j=this._createElementPropertyAsts(i,c,B);this._assertNoComponentsNorElementBindingsOnTemplate(V,j,e.sourceSpan);var U=new _u(this.providerViewContext,t.providerContext,t.isTemplateElement,V,[],[],!0,F,e.sourceSpan);U.afterElement(),I=new pu([],[],[],f,U.transformedDirectiveAsts,U.transformProviders,U.transformedHasViewContainer,U.queryMatches,[I],R,e.sourceSpan)}return I},e.prototype._parseAttr=function(e,t,n,r,i,s,o){var a=this._normalizeAttributeName(t.name),u=t.value,p=t.sourceSpan,l=t.valueSpan?t.valueSpan.start.offset:p.start.offset,c=[],h=a.match(Bu),f=!1;if(null!==h)if(f=!0,null!=h[1])this._bindingParser.parsePropertyBinding(h[7],u,!1,p,l,t.valueSpan,n,r);else if(h[2])if(e){var d=h[7];this._parseVariable(d,u,p,o)}else this._reportError('"let-" is only supported on ng-template elements.',p);else if(h[3]){d=h[7];this._parseReference(d,u,p,s)}else h[4]?this._bindingParser.parseEvent(h[7],u,p,t.valueSpan||p,n,c):h[5]?(this._bindingParser.parsePropertyBinding(h[7],u,!1,p,l,t.valueSpan,n,r),this._parseAssignmentEvent(h[7],u,p,t.valueSpan||p,n,c)):h[6]?this._bindingParser.parseLiteralAttr(a,u,p,l,t.valueSpan,n,r):h[8]?(this._bindingParser.parsePropertyBinding(h[8],u,!1,p,l,t.valueSpan,n,r),this._parseAssignmentEvent(h[8],u,p,t.valueSpan||p,n,c)):h[9]?this._bindingParser.parsePropertyBinding(h[9],u,!1,p,l,t.valueSpan,n,r):h[10]&&this._bindingParser.parseEvent(h[10],u,p,t.valueSpan||p,n,c);else f=this._bindingParser.parsePropertyInterpolation(a,u,p,t.valueSpan,n,r);return f||this._bindingParser.parseLiteralAttr(a,u,p,l,t.valueSpan,n,r),i.push.apply(i,v(c.map((function(e){return su.fromParsedEvent(e)})))),f},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):0===e.length&&this._reportError("Variable does not have a name",n),r.push(new au(e,t,n))},e.prototype._parseReference=function(e,t,n,r){e.indexOf("-")>-1?this._reportError('"-" is not allowed in reference names',n):0===e.length&&this._reportError("Reference does not have a name",n),r.push(new zu(e,t,n))},e.prototype._parseAssignmentEvent=function(e,t,n,r,i,s){this._bindingParser.parseEvent(e+"Change",t+"=$event",n,r,i,s)},e.prototype._parseDirectives=function(e,t){var n=this,r=fn(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,s,o,a){var u=this,p=new Set,l=null,c=n.map((function(e){var n=new vr(s.start,s.end,"Directive "+In(e.type));e.isComponent&&(l=e);var c=[],h=u._bindingParser.createDirectiveHostPropertyAsts(e,t,n).map((function(e){return iu.fromBoundProperty(e)}));h=u._checkPropertiesInSchema(t,h);var f=u._bindingParser.createDirectiveHostEventAsts(e,n);u._createDirectivePropertyAsts(e.inputs,r,c,a),i.forEach((function(t){(0===t.value.length&&e.isComponent||t.isReferenceToDirective(e))&&(o.push(new ou(t.name,wn(e.type.reference),t.value,t.sourceSpan)),p.add(t.name))}));var d=f.map((function(e){return su.fromParsedEvent(e)})),v=u.contentQueryStartId;return u.contentQueryStartId+=e.queries.length,new cu(e,c,h,d,v,n)}));return i.forEach((function(t){if(t.value.length>0)p.has(t.name)||u._reportError('There is no directive with "exportAs" set to "'+t.value+'"',t.sourceSpan);else if(!l){var n=null;e&&(n=Cn(u.reflector,Sn.TemplateRef)),o.push(new ou(t.name,n,t.value,t.sourceSpan))}})),c},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 s=e[t],o=i.get(s);o&&(r.add(o.name),Zu(o.expression)||n.push(new lu(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 s=r._bindingParser.createBoundElementProperty(e,t);i.push(iu.fromBoundProperty(s))}})),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 In(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){var n=e.directive.outputs[t];r.add(n)}))})),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!Zu(t.value)}))},e.prototype._reportError=function(e,t,n){void 0===n&&(n=hr.ERROR),this._targetErrors.push(new gr(t,e,n))},e}(),Wu=function(){function e(){}return e.prototype.visitElement=function(e,t){var n=Fu(e);if(n.type===Ou.SCRIPT||n.type===Ou.STYLE||n.type===Ou.STYLESHEET)return null;var r=e.attrs.map((function(e){return[e.name,e.value]})),i=Gu(e.name,r),s=t.findNgContentIndex(i),o=va(this,e.children,Xu);return new uu(e.name,va(this,e.attrs),[],[],[],[],[],!1,[],o,s,e.sourceSpan,e.endSourceSpan)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitAttribute=function(e,t){return new nu(e.name,e.value,e.sourceSpan)},e.prototype.visitText=function(e,t){var n=t.findNgContentIndex(Vu());return new eu(e.value,n,e.sourceSpan)},e.prototype.visitExpansion=function(e,t){return e},e.prototype.visitExpansionCase=function(e,t){return e},e}(),zu=function(){function e(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}return e.prototype.isReferenceToDirective=function(e){return-1!==(t=e.exportAs,t?t.split(",").map((function(e){return e.trim()})):[]).indexOf(this.value);var t},e}();function Ku(e){return e.trim().split(/\s+/g)}var Qu=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 I,s=null,o=n.find((function(e){return e.directive.isComponent}));if(o)for(var a=o.directive.template.ngContentSelectors,u=0;u<a.length;u++){"*"===a[u]?s=u:i.addSelectables(M.parse(a[u]),u)}return new e(t,i,s,r)},e.prototype.findNgContentIndex=function(e){var t=[];return this._ngContentIndexMatcher.match(e,(function(e,n){t.push(n)})),t.sort(),null!=this._wildcardNgContentIndex&&t.push(this._wildcardNgContentIndex),t.length>0?t[0]:null},e}();function Gu(e,t){var n=new M,r=m(e)[1];n.setElement(r);for(var i=0;i<t.length;i++){var s=t[i][0],o=m(s)[1],a=t[i][1];if(n.addAttribute(o,a),"class"==s.toLowerCase())Ku(a).forEach((function(e){return n.addClassName(e)}))}return n}var Xu=new Qu(!0,new I,null,null),$u=new Wu;function Yu(e){return e instanceof pa&&0==e.value.trim().length}function Ju(e){var t=new Map;return e.forEach((function(e){t.get(e.type.reference)||t.set(e.type.reference,e)})),Array.from(t.values())}function Zu(e){return e instanceof oo&&(e=e.ast),e instanceof Vs}
|
||
/**
|
||
* @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 ep(e){var t=e.charCodeAt(0);if(t==e.charCodeAt(e.length-1)&&(39==t||34==t)){var n=e.substring(1,e.length-1);-1==n.indexOf("'")&&-1==n.indexOf('"')&&(e=n)}return e}function tp(e){return e.replace(/[a-z][A-Z]/g,(function(e){return e.charAt(0)+"-"+e.charAt(1)})).toLowerCase()}var np,rp=function(){function e(e){this._directiveExpr=e,this._hasInitialValues=!1,this.hasBindings=!1,this.hasBindingsWithPipes=!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=[]}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,6),s="style"===e||"style."===i||"style!"===i;if(s||!s&&("class"===e||"class."===i||"class!"===i)){var o="."!==e.charAt(5),a=e.substr(o?5:6);r=s?this.registerStyleInput(a,o,t,n):this.registerClassInput(a,o,t,n)}return r},e.prototype.registerStyleInput=function(e,t,n,r,i){if(Zu(n))return null;var s=op(e=tp(e)),o=s.property,a=s.hasOverrideFlag,u=s.unit,p={name:o,sanitize:!o||sp(o),unit:i||u,value:n,sourceSpan:r,hasOverrideFlag:a};
|
||
/**
|
||
* @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 t?this._styleMapInput=p:((this._singleStyleInputs=this._singleStyleInputs||[]).push(p),ip(this._stylesIndex,o)),this._lastStylingInput=p,this._firstStylingInput=this._firstStylingInput||p,this._checkForPipes(n),this.hasBindings=!0,p},e.prototype.registerClassInput=function(e,t,n,r){if(Zu(n))return null;var i=op(e),s=i.property,o={name:s,value:n,sourceSpan:r,sanitize:!1,hasOverrideFlag:i.hasOverrideFlag,unit:null};if(t){if(this._classMapInput)throw new Error("[class] and [className] bindings cannot be used on the same element simultaneously");this._classMapInput=o}else(this._singleClassInputs=this._singleClassInputs||[]).push(o),ip(this._classesIndex,s);return this._lastStylingInput=o,this._firstStylingInput=this._firstStylingInput||o,this._checkForPipes(n),this.hasBindings=!0,o},e.prototype._checkForPipes=function(e){e instanceof oo&&e.ast instanceof Gs&&(this.hasBindingsWithPipes=!0)},e.prototype.registerStyleAttr=function(e){this._initialStyleValues=function(e){for(var t=[],n=0,r=0,i=0,s=0,o=0,a=null,u=!1;n<e.length;){switch(e.charCodeAt(n++)){case 40:r++;break;case 41:r--;break;case 39:u=u||s>0,0===i?i=39:39===i&&92!==e.charCodeAt(n-1)&&(i=0);break;case 34:u=u||s>0,0===i?i=34:34===i&&92!==e.charCodeAt(n-1)&&(i=0);break;case 58:a||0!==r||0!==i||(a=tp(e.substring(o,n-1).trim()),s=n);break;case 59:if(a&&s>0&&0===r&&0===i){var p=e.substring(s,n-1).trim();t.push(a,u?ep(p):p),o=n,s=0,a=null,u=!1}}}if(a&&s){p=e.substr(s).trim();t.push(a,u?ep(p):p)}return 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(Vt(1));for(var t=0;t<this._initialClassValues.length;t++)e.push(Vt(this._initialClassValues[t]))}if(this._initialStyleValues.length){e.push(Vt(2));for(t=0;t<this._initialStyleValues.length;t+=2)e.push(Vt(this._initialStyleValues[t]),Vt(this._initialStyleValues[t+1]))}},e.prototype.assignHostAttrs=function(e,t){this._directiveExpr&&(e.length||this._hasInitialValues)&&(this.populateInitialStylingAttrs(e),t.set("hostAttrs",Ft(e)))},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,i=2,s=n.value.visit(e);return s instanceof Js?(i+=s.expressions.length,r=t?function(e){switch(es(e)){case 1:return tr.classMap;case 3:return tr.classMapInterpolate1;case 5:return tr.classMapInterpolate2;case 7:return tr.classMapInterpolate3;case 9:return tr.classMapInterpolate4;case 11:return tr.classMapInterpolate5;case 13:return tr.classMapInterpolate6;case 15:return tr.classMapInterpolate7;case 17:return tr.classMapInterpolate8;default:return tr.classMapInterpolateV}}(s):function(e){switch(es(e)){case 1:return tr.styleMap;case 3:return tr.styleMapInterpolate1;case 5:return tr.styleMapInterpolate2;case 7:return tr.styleMapInterpolate3;case 9:return tr.styleMapInterpolate4;case 11:return tr.styleMapInterpolate5;case 13:return tr.styleMapInterpolate6;case 15:return tr.styleMapInterpolate7;case 17:return tr.styleMapInterpolate8;default:return tr.styleMapInterpolateV}}(s)):r=t?tr.classMap:tr.styleMap,{reference:r,calls:[{supportsInterpolation:!0,sourceSpan:n.sourceSpan,allocateBindingSlots:i,params:function(e){var t=e(s),n=Array.isArray(t)?t:[t];return n}}]}},e.prototype._buildSingleInputs=function(e,t,n,r,i){var s=[];return t.forEach((function(t){var o=s[s.length-1],a=t.value.visit(n),u=e,p=2;a instanceof Js&&(p+=a.expressions.length,r&&(u=r(a)));var l={sourceSpan:t.sourceSpan,allocateBindingSlots:p,supportsInterpolation:!!r,params:function(e){var n=[];n.push(Vt(t.name));var r=e(a);return Array.isArray(r)?n.push.apply(n,v(r)):n.push(r),i||(t.unit?n.push(Vt(t.unit)):t.sanitize&&n.push(It(tr.defaultStyleSanitizer))),n}};o&&o.reference===u?o.calls.push(l):s.push({reference:u,calls:[l]})})),s},e.prototype._buildClassInputs=function(e){return this._singleClassInputs?this._buildSingleInputs(tr.classProp,this._singleClassInputs,e,null,!0):[]},e.prototype._buildStyleInputs=function(e){return this._singleStyleInputs?this._buildSingleInputs(tr.styleProp,this._singleStyleInputs,e,ap,!1):[]},e.prototype.buildUpdateLevelInstructions=function(e){var t=[];if(this.hasBindings){var n=this.buildStyleMapInstruction(e);n&&t.push(n);var r=this.buildClassMapInstruction(e);r&&t.push(r),t.push.apply(t,v(this._buildStyleInputs(e))),t.push.apply(t,v(this._buildClassInputs(e)))}return t},e}();function ip(e,t){e.has(t)||e.set(t,e.size)}function sp(e){return"background-image"===e||"backgroundImage"===e||"background"===e||"border-image"===e||"borderImage"===e||"border-image-source"===e||"borderImageSource"===e||"filter"===e||"list-style"===e||"listStyle"===e||"list-style-image"===e||"listStyleImage"===e||"clip-path"===e||"clipPath"===e}function op(e){var t=!1,n=e.indexOf("!important");-1!==n&&(e=n>0?e.substring(0,n):"",t=!0);var r="",i=e,s=e.lastIndexOf(".");return s>0&&(r=e.substr(s+1),i=e.substring(0,s)),{property:i,unit:r,hasOverrideFlag:t}}function ap(e){switch(es(e)){case 1:return tr.styleProp;case 3:return tr.stylePropInterpolate1;case 5:return tr.stylePropInterpolate2;case 7:return tr.stylePropInterpolate3;case 9:return tr.stylePropInterpolate4;case 11:return tr.stylePropInterpolate5;case 13:return tr.stylePropInterpolate6;case 15:return tr.stylePropInterpolate7;case 17:return tr.stylePropInterpolate8;default:return tr.stylePropInterpolateV}}!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"}(np||(np={}));var up=["var","let","as","null","undefined","true","false","if","else","this"],pp=function(){function e(){}return e.prototype.tokenize=function(e){for(var t=new dp(e),n=[],r=t.scanToken();null!=r;)n.push(r),r=t.scanToken();return n},e}(),lp=function(){function e(e,t,n,r,i){this.index=e,this.end=t,this.type=n,this.numValue=r,this.strValue=i}return e.prototype.isCharacter=function(e){return this.type==np.Character&&this.numValue==e},e.prototype.isNumber=function(){return this.type==np.Number},e.prototype.isString=function(){return this.type==np.String},e.prototype.isOperator=function(e){return this.type==np.Operator&&this.strValue==e},e.prototype.isIdentifier=function(){return this.type==np.Identifier},e.prototype.isKeyword=function(){return this.type==np.Keyword},e.prototype.isKeywordLet=function(){return this.type==np.Keyword&&"let"==this.strValue},e.prototype.isKeywordAs=function(){return this.type==np.Keyword&&"as"==this.strValue},e.prototype.isKeywordNull=function(){return this.type==np.Keyword&&"null"==this.strValue},e.prototype.isKeywordUndefined=function(){return this.type==np.Keyword&&"undefined"==this.strValue},e.prototype.isKeywordTrue=function(){return this.type==np.Keyword&&"true"==this.strValue},e.prototype.isKeywordFalse=function(){return this.type==np.Keyword&&"false"==this.strValue},e.prototype.isKeywordThis=function(){return this.type==np.Keyword&&"this"==this.strValue},e.prototype.isError=function(){return this.type==np.Error},e.prototype.toNumber=function(){return this.type==np.Number?this.numValue:-1},e.prototype.toString=function(){switch(this.type){case np.Character:case np.Identifier:case np.Keyword:case np.Operator:case np.String:case np.Error:return this.strValue;case np.Number:return this.numValue.toString();default:return null}},e}();function cp(e,t,n){return new lp(e,t,np.Character,n,String.fromCharCode(n))}function hp(e,t,n){return new lp(e,t,np.Operator,0,n)}var fp=new lp(-1,-1,np.Character,0,""),dp=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?0:this.input.charCodeAt(this.index)},e.prototype.scanToken=function(){for(var e=this.input,t=this.length,n=this.peek,r=this.index;n<=32;){if(++r>=t){n=0;break}n=e.charCodeAt(r)}if(this.peek=n,this.index=r,r>=t)return null;if(vp(n))return this.scanIdentifier();if(ur(n))return this.scanNumber(r);var i=r;switch(n){case 46:return this.advance(),ur(this.peek)?this.scanNumber(i):cp(i,this.index,46);case 40:case 41:case 123:case 125:case 91:case 93:case 44:case 58:case 59:return this.scanCharacter(i,n);case 39:case 34:return this.scanString();case 35:case 43:case 45:case 42:case 47:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanComplexOperator(i,"?",46,".");case 60:case 62:return this.scanComplexOperator(i,String.fromCharCode(n),61,"=");case 33:case 61:return this.scanComplexOperator(i,String.fromCharCode(n),61,"=",61,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case 160:for(;ar(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(),cp(e,this.index,t)},e.prototype.scanOperator=function(e,t){return this.advance(),hp(e,this.index,t)},e.prototype.scanComplexOperator=function(e,t,n,r,i,s){this.advance();var o=t;return this.peek==n&&(this.advance(),o+=r),null!=i&&this.peek==i&&(this.advance(),o+=s),hp(e,this.index,o)},e.prototype.scanIdentifier=function(){var e=this.index;for(this.advance();yp(this.peek);)this.advance();var t,n,r,i=this.input.substring(e,this.index);return up.indexOf(i)>-1?(t=e,n=this.index,r=i,new lp(t,n,np.Keyword,0,r)):function(e,t,n){return new lp(e,t,np.Identifier,0,n)}(e,this.index,i)},e.prototype.scanNumber=function(e){var t,n=this.index===e;for(this.advance();;){if(ur(this.peek));else if(46==this.peek)n=!1;else{if(101!=(t=this.peek)&&69!=t)break;if(this.advance(),gp(this.peek)&&this.advance(),!ur(this.peek))return this.error("Invalid exponent",-1);n=!1}this.advance()}var r,i,s,o=this.input.substring(e,this.index),a=n?function(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
|
||
*/(o):parseFloat(o);return r=e,i=this.index,s=a,new lp(r,i,np.Number,s,"")},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 s=void 0;if(this.peek=this.peek,117==this.peek){var o=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(o))return this.error("Invalid unicode escape [\\u"+o+"]",0);s=parseInt(o,16);for(var a=0;a<5;a++)this.advance()}else s=Ep(this.peek),this.advance();n+=String.fromCharCode(s),r=this.index}else{if(0==this.peek)return this.error("Unterminated quote",0);this.advance()}var u,p,l,c=i.substring(r,this.index);return this.advance(),u=e,p=this.index,l=n+c,new lp(u,p,np.String,0,l)},e.prototype.error=function(e,t){var n=this.index+t;return function(e,t,n){return new lp(e,t,np.Error,0,n)}(n,this.index,"Lexer Error: "+e+" at column "+n+" in expression ["+this.input+"]")},e}();function vp(e){return 97<=e&&e<=122||65<=e&&e<=90||95==e||36==e}function mp(e){if(0==e.length)return!1;var t=new dp(e);if(!vp(t.peek))return!1;for(t.advance();0!==t.peek;){if(!yp(t.peek))return!1;t.advance()}return!0}function yp(e){return pr(e)||ur(e)||95==e||36==e}function gp(e){return 45==e||43==e}function _p(e){return 39===e||34===e||96===e}function Ep(e){switch(e){case 110:return 10;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return e}}var xp=function(e,t,n){this.strings=e,this.expressions=t,this.offsets=n},Sp=function(e,t,n){this.templateBindings=e,this.warnings=t,this.errors=n},wp=bp(cs);function Cp(e){return e===cs?wp:bp(e)}function bp(e){var t=nn(e.start)+"([\\s\\S]*?)"+nn(e.end);return new RegExp(t,"g")}var Tp,Pp=function(){function e(e){this._lexer=e,this.errors=[],this.simpleExpressionChecker=Mp}return e.prototype.parseAction=function(e,t,n,r){void 0===r&&(r=cs),this._checkNoInterpolation(e,t,r);var i=this._stripComments(e),s=this._lexer.tokenize(this._stripComments(e)),o=new Ap(e,t,n,s,i.length,!0,this.errors,e.length-i.length).parseChain();return new oo(o,e,t,n,this.errors)},e.prototype.parseBinding=function(e,t,n,r){void 0===r&&(r=cs);var i=this._parseBindingAst(e,t,n,r);return new oo(i,e,t,n,this.errors)},e.prototype.checkSimpleExpression=function(e){var t=new this.simpleExpressionChecker;return e.visit(t),t.errors},e.prototype.parseSimpleBinding=function(e,t,n,r){void 0===r&&(r=cs);var i=this._parseBindingAst(e,t,n,r),s=this.checkSimpleExpression(i);return s.length>0&&this._reportError("Host binding expression cannot contain "+s.join(" "),e,t),new oo(i,e,t,n,this.errors)},e.prototype._reportError=function(e,t,n,r){this.errors.push(new Fs(e,t,n,r))},e.prototype._parseBindingAst=function(e,t,n,r){var i=this._parseQuote(e,t,n);if(null!=i)return i;this._checkNoInterpolation(e,t,r);var s=this._stripComments(e),o=this._lexer.tokenize(s);return new Ap(e,t,n,o,s.length,!1,this.errors,e.length-s.length).parseChain()},e.prototype._parseQuote=function(e,t,n){if(null==e)return null;var r=e.indexOf(":");if(-1==r)return null;var i=e.substring(0,r).trim();if(!mp(i))return null;var s=e.substring(r+1),o=new Ls(0,e.length);return new Bs(o,o.toAbsolute(n),i,s,t)},e.prototype.parseTemplateBindings=function(e,t,n,r){var i=this._lexer.tokenize(t);return new Ap(t,n,r,i,t.length,!1,this.errors,0).parseTemplateBindings(e)},e.prototype.parseInterpolation=function(e,t,n,r){void 0===r&&(r=cs);var i=this.splitInterpolation(e,t,r);if(null==i)return null;for(var s=[],o=0;o<i.expressions.length;++o){var a=i.expressions[o],u=this._stripComments(a),p=this._lexer.tokenize(u),l=new Ap(e,t,n,p,u.length,!1,this.errors,i.offsets[o]+(a.length-u.length)).parseChain();s.push(l)}var c=new Ls(0,null==e?0:e.length);return new oo(new Js(c,c.toAbsolute(n),i.strings,s),e,t,n,this.errors)},e.prototype.splitInterpolation=function(e,t,n){void 0===n&&(n=cs);var r=Cp(n),i=e.split(r);if(i.length<=1)return null;for(var s=[],o=[],a=[],u=0,p=0;p<i.length;p++){var l=i[p];p%2==0?(s.push(l),u+=l.length):l.trim().length>0?(u+=n.start.length,o.push(l),a.push(u),u+=l.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",e,"at column "+this._findInterpolationErrorColumn(i,p,n)+" in",t),o.push("$implicit"),a.push(u))}return new xp(s,o,a)},e.prototype.wrapLiteralPrimitive=function(e,t,n){var r=new Ls(0,null==e?0:e.length);return new oo(new Xs(r,r.toAbsolute(n),e),e,t,n,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=null,n=0;n<e.length-1;n++){var r=e.charCodeAt(n),i=e.charCodeAt(n+1);if(47===r&&47==i&&null==t)return n;t===r?t=null:null==t&&_p(r)&&(t=r)}return null},e.prototype._checkNoInterpolation=function(e,t,n){var r=Cp(n),i=e.split(r);i.length>1&&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<t;i++)r+=i%2==0?e[i]:""+n.start+e[i]+n.end;return r.length},e}(),Np=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.simpleExpressionChecker=Ip,t}return l(t,e),t}(Pp),Ap=function(){function e(e,t,n,r,i,s,o,a){this.input=e,this.location=t,this.absoluteOffset=n,this.tokens=r,this.inputLength=i,this.parseAction=s,this.errors=o,this.offset=a,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.sourceSpanCache=new Map,this.index=0}return e.prototype.peek=function(e){var t=this.index+e;return t<this.tokens.length?this.tokens[t]:fp},Object.defineProperty(e.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index+this.offset:this.inputLength+this.offset},enumerable:!0,configurable:!0}),e.prototype.span=function(e){return new Ls(e,this.inputIndex)},e.prototype.sourceSpan=function(e){var t=e+"@"+this.inputIndex;return this.sourceSpanCache.has(t)||this.sourceSpanCache.set(t,this.span(e).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(t)},e.prototype.advance=function(){this.index++},e.prototype.optionalCharacter=function(e){return!!this.next.isCharacter(e)&&(this.advance(),!0)},e.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},e.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},e.prototype.expectCharacter=function(e){this.optionalCharacter(e)||this.error("Missing expected "+String.fromCharCode(e))},e.prototype.optionalOperator=function(e){return!!this.next.isOperator(e)&&(this.advance(),!0)},e.prototype.expectOperator=function(e){this.optionalOperator(e)||this.error("Missing expected operator "+e)},e.prototype.expectIdentifierOrKeyword=function(){var e=this.next;return e.isIdentifier()||e.isKeyword()?(this.advance(),e.toString()):(this.error("Unexpected token "+e+", expected identifier or keyword"),"")},e.prototype.expectIdentifierOrKeywordOrString=function(){var e=this.next;return e.isIdentifier()||e.isKeyword()||e.isString()?(this.advance(),e.toString()):(this.error("Unexpected token "+e+", expected identifier, keyword, or string"),"")},e.prototype.parseChain=function(){for(var e=[],t=this.inputIndex;this.index<this.tokens.length;){var n=this.parsePipe();if(e.push(n),this.optionalCharacter(59))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(59););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==e.length?new Vs(this.span(t),this.sourceSpan(t)):1==e.length?e[0]:new Us(this.span(t),this.sourceSpan(t),e)},e.prototype.parsePipe=function(){var e=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var t=this.inputIndex,n=this.expectIdentifierOrKeyword(),r=this.sourceSpan(t),i=[];this.optionalCharacter(58);)i.push(this.parseExpression());var s=e.span.start;e=new Gs(this.span(s),this.sourceSpan(s),e,n,i,r)}while(this.optionalOperator("|"))}return e},e.prototype.parseExpression=function(){return this.parseConditional()},e.prototype.parseConditional=function(){var e=this.inputIndex,t=this.parseLogicalOr();if(this.optionalOperator("?")){var n=this.parsePipe(),r=void 0;if(this.optionalCharacter(58))r=this.parsePipe();else{var i=this.inputIndex,s=this.input.substring(e,i);this.error("Conditional expression "+s+" requires all 3 expressions"),r=new Vs(this.span(e),this.sourceSpan(e))}return new Hs(this.span(e),this.sourceSpan(e),t,n,r)}return t},e.prototype.parseLogicalOr=function(){for(var e=this.parseLogicalAnd();this.optionalOperator("||");){var t=this.parseLogicalAnd(),n=e.span.start;e=new Zs(this.span(n),this.sourceSpan(n),"||",e,t)}return e},e.prototype.parseLogicalAnd=function(){for(var e=this.parseEquality();this.optionalOperator("&&");){var t=this.parseEquality(),n=e.span.start;e=new Zs(this.span(n),this.sourceSpan(n),"&&",e,t)}return e},e.prototype.parseEquality=function(){for(var e=this.parseRelational();this.next.type==np.Operator;){var t=this.next.strValue;switch(t){case"==":case"===":case"!=":case"!==":this.advance();var n=this.parseRelational(),r=e.span.start;e=new Zs(this.span(r),this.sourceSpan(r),t,e,n);continue}break}return e},e.prototype.parseRelational=function(){for(var e=this.parseAdditive();this.next.type==np.Operator;){var t=this.next.strValue;switch(t){case"<":case">":case"<=":case">=":this.advance();var n=this.parseAdditive(),r=e.span.start;e=new Zs(this.span(r),this.sourceSpan(r),t,e,n);continue}break}return e},e.prototype.parseAdditive=function(){for(var e=this.parseMultiplicative();this.next.type==np.Operator;){var t=this.next.strValue;switch(t){case"+":case"-":this.advance();var n=this.parseMultiplicative(),r=e.span.start;e=new Zs(this.span(r),this.sourceSpan(r),t,e,n);continue}break}return e},e.prototype.parseMultiplicative=function(){for(var e=this.parsePrefix();this.next.type==np.Operator;){var t=this.next.strValue;switch(t){case"*":case"%":case"/":this.advance();var n=this.parsePrefix(),r=e.span.start;e=new Zs(this.span(r),this.sourceSpan(r),t,e,n);continue}break}return e},e.prototype.parsePrefix=function(){if(this.next.type==np.Operator){var e=this.inputIndex,t=this.next.strValue,n=new Ls(e,e),r=n.toAbsolute(this.absoluteOffset),i=void 0;switch(t){case"+":return this.advance(),i=this.parsePrefix(),new Zs(this.span(e),this.sourceSpan(e),"-",i,new Xs(n,r,0));case"-":return this.advance(),i=this.parsePrefix(),new Zs(this.span(e),this.sourceSpan(e),t,new Xs(n,r,0),i);case"!":return this.advance(),i=this.parsePrefix(),new eo(this.span(e),this.sourceSpan(e),i)}}return this.parseCallChain()},e.prototype.parseCallChain=function(){for(var e=this.parsePrimary(),t=e.span.start;;)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 n=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(93),this.optionalOperator("=")){var r=this.parseConditional();e=new Qs(this.span(t),this.sourceSpan(t),e,n,r)}else e=new Ks(this.span(t),this.sourceSpan(t),e,n)}else if(this.optionalCharacter(40)){this.rparensExpected++;var i=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),e=new io(this.span(t),this.sourceSpan(t),e,i)}else{if(!this.optionalOperator("!"))return e;e=new to(this.span(t),this.sourceSpan(t),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 Xs(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new Xs(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new Xs(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new Xs(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new js(this.span(e),this.sourceSpan(e));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new $s(this.span(e),this.sourceSpan(e),n)}if(this.next.isCharacter(123))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new js(this.span(e),this.sourceSpan(e)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new Xs(this.span(e),this.sourceSpan(e),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new Xs(this.span(e),this.sourceSpan(e),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new Vs(this.span(e),this.sourceSpan(e))):(this.error("Unexpected token "+this.next),new Vs(this.span(e),this.sourceSpan(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 Ys(this.span(n),this.sourceSpan(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 s=this.span(n),o=this.sourceSpan(n);return t?new ro(s,o,e,r,i):new no(s,o,e,r,i)}if(t)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Vs(this.span(n),this.sourceSpan(n))):new zs(this.span(n),this.sourceSpan(n),e,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Vs(this.span(n),this.sourceSpan(n));var a=this.parseConditional();return new Ws(this.span(n),this.sourceSpan(n),e,r,a)}s=this.span(n);return new qs(this.span(n),this.sourceSpan(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,s=void 0,o=!1;t?(i=s=e,t=!1):((o=this.peekKeywordLet())&&this.advance(),i=this.expectTemplateBindingKey(),s=o?i:e+i[0].toUpperCase()+i.substring(1),this.optionalCharacter(58));var a=null,u=null;if(o)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs())this.advance(),a=i,s=this.expectTemplateBindingKey(),o=!0;else if(this.next!==fp&&!this.peekKeywordLet()){var p=this.inputIndex,l=this.parsePipe(),c=this.input.substring(p-this.offset,this.inputIndex-this.offset);u=new oo(l,c,this.location,this.absoluteOffset+p,this.errors)}if(n.push(new ao(this.span(r),this.sourceSpan(r),s,o,a,u)),this.peekKeywordAs()&&!o){var h=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();n.push(new ao(this.span(h),this.sourceSpan(h),f,!0,s,null))}this.optionalCharacter(59)||this.optionalCharacter(44)}while(this.index<this.tokens.length);return new Sp(n,[],this.errors)},e.prototype.error=function(e,t){void 0===t&&(t=null),this.errors.push(new Fs(e,this.input,this.locationText(t),this.location)),this.skip()},e.prototype.locationText=function(e){return void 0===e&&(e=null),null==e&&(e=this.index),e<this.tokens.length?"at column "+(this.tokens[e].index+1)+" in":"at the end of the expression"},e.prototype.skip=function(){for(var e=this.next;this.index<this.tokens.length&&!e.isCharacter(59)&&(this.rparensExpected<=0||!e.isCharacter(41))&&(this.rbracesExpected<=0||!e.isCharacter(125))&&(this.rbracketsExpected<=0||!e.isCharacter(93));)this.next.isError()&&this.errors.push(new Fs(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next},e}(),Mp=function(){function e(){this.errors=[]}return e.prototype.visitImplicitReceiver=function(e,t){},e.prototype.visitInterpolation=function(e,t){},e.prototype.visitLiteralPrimitive=function(e,t){},e.prototype.visitPropertyRead=function(e,t){},e.prototype.visitPropertyWrite=function(e,t){},e.prototype.visitSafePropertyRead=function(e,t){},e.prototype.visitMethodCall=function(e,t){},e.prototype.visitSafeMethodCall=function(e,t){},e.prototype.visitFunctionCall=function(e,t){},e.prototype.visitLiteralArray=function(e,t){this.visitAll(e.expressions)},e.prototype.visitLiteralMap=function(e,t){this.visitAll(e.values)},e.prototype.visitBinary=function(e,t){},e.prototype.visitPrefixNot=function(e,t){},e.prototype.visitNonNullAssert=function(e,t){},e.prototype.visitConditional=function(e,t){},e.prototype.visitPipe=function(e,t){this.errors.push("pipes")},e.prototype.visitKeyedRead=function(e,t){},e.prototype.visitKeyedWrite=function(e,t){},e.prototype.visitAll=function(e){var t=this;return e.map((function(e){return e.visit(t)}))},e.prototype.visitChain=function(e,t){},e.prototype.visitQuote=function(e,t){},e}(),Ip=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.visitBinary=function(e,t){e.left.visit(this),e.right.visit(this)},t.prototype.visitPrefixNot=function(e,t){e.expression.visit(this)},t}(Mp);function kp(){return Tp||(Tp={},Rp(H.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Rp(H.STYLE,["*|style"]),Rp(H.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),Rp(H.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"])),Tp}function Rp(e,t){var n,r;try{for(var i=f(t),s=i.next();!s.done;s=i.next()){var o=s.value;Tp[o.toLowerCase()]=e}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}}
|
||
/**
|
||
* @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 Op=function(){},Fp=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop,slot,*message,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%controlsList,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,*waitingforkey,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*auxclick,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*gotpointercapture,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*lostpointercapture,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*pointercancel,*pointerdown,*pointerenter,*pointerleave,*pointermove,*pointerout,*pointerover,*pointerup,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,download,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,rel,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,referrerPolicy,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","slot^[HTMLElement]|name","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","keygen^[HTMLElement]|!autofocus,challenge,!disabled,form,keytype,name","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime",":svg:cursor^:svg:|"],Lp={class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Dp=function(e){function t(){var t=e.call(this)||this;return t._schema={},Fp.forEach((function(e){var n={},r=d(e.split("|"),2),i=r[0],s=r[1].split(","),o=d(i.split("^"),2),a=o[0],u=o[1];a.split(",").forEach((function(e){return t._schema[e.toLowerCase()]=n}));var p=u&&t._schema[u.toLowerCase()];p&&Object.keys(p).forEach((function(e){n[e]=p[e]})),s.forEach((function(e){if(e.length>0)switch(e[0]){case"*":break;case"!":n[e.substring(1)]="boolean";break;case"#":n[e.substring(1)]="number";break;case"%":n[e.substring(1)]="object";break;default:n[e]="string"}}))})),t}return l(t,e),t.prototype.hasProperty=function(e,t,n){if(n.some((function(e){return e.name===Z.name})))return!0;if(e.indexOf("-")>-1){if(y(e)||g(e))return!1;if(n.some((function(e){return e.name===J.name})))return!0}return!!(this._schema[e.toLowerCase()]||this._schema.unknown)[t]},t.prototype.hasElement=function(e,t){if(t.some((function(e){return e.name===Z.name})))return!0;if(e.indexOf("-")>-1){if(y(e)||g(e))return!0;if(t.some((function(e){return e.name===J.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=kp()[e+"|"+t];return r||((r=kp()["*|"+t])||H.NONE)},t.prototype.getMappedPropName=function(e){return Lp[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 e.replace(Ht,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e[1].toUpperCase()}))},t.prototype.normalizeAnimationStyleValue=function(e,t,n){var r="",i=n.toString().trim(),s=null;if(function(e){switch(e){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}
|
||
/**
|
||
* @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)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&0==o[1].length&&(s="Please provide a CSS unit value for "+t+":"+n)}return{error:s,value:i+r}},t}(Op);
|
||
/**
|
||
* @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 Bp=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.*))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/;function Vp(e,t){var n=new Up(t),r=va(n,e),i=t.errors.concat(n.errors),s=i.filter((function(e){return e.level===hr.ERROR}));if(s.length>0)throw Zt("Template parse errors:\n"+s.join("\n"),s);return{nodes:r,errors:i,styleUrls:n.styleUrls,styles:n.styles}}var jp,Up=function(){function e(e){this.bindingParser=e,this.errors=[],this.styles=[],this.styleUrls=[],this.inI18nBlock=!1}return e.prototype.visitElement=function(e){var t,n,r=this,i=Ni(e.i18n);i&&(this.inI18nBlock&&this.reportError("Cannot mark an element as translatable inside of a translatable section. Please remove the nested i18n marker.",e.sourceSpan),this.inI18nBlock=!0);var s,o=Fu(e);if(o.type===Ou.SCRIPT)return null;if(o.type===Ou.STYLE){var a=1===(s=e).children.length&&s.children[0]instanceof pa?s.children[0].value:null;return null!==a&&this.styles.push(a),null}if(o.type===Ou.STYLESHEET&&Tu(o.hrefAttr))return this.styleUrls.push(o.hrefAttr),null;var u=_(e.name),p=[],l=[],c=[],h=[],d=[],m={},y=[],g=[],E=!1;try{for(var x=f(e.attrs),S=x.next();!S.done;S=x.next()){var w=S.value,C=!1,b=qp(w.name),T=!1;if(w.i18n&&(m[w.name]=w.i18n),b.startsWith("*")){E&&this.reportError("Can't have multiple template bindings on one element. Use only one attribute prefixed with *",w.sourceSpan),T=!0,E=!0;var P=w.value,N=b.substring("*".length),A=[],M=w.valueSpan?w.valueSpan.start.offset:w.sourceSpan.start.offset+w.name.length;this.bindingParser.parseInlineTemplateBinding(N,P,w.sourceSpan,M,[],y,A),g.push.apply(g,v(A.map((function(e){return new Ar(e.name,e.value,e.sourceSpan)}))))}else C=this.parseAttribute(u,w,[],p,l,c,h);C||T||d.push(this.visitAttribute(w))}}catch(e){t={error:e}}finally{try{S&&!S.done&&(n=x.return)&&n.call(x)}finally{if(t)throw t.error}}var I,k=va(o.nonBindable?Hp:this,e.children);if(o.type===Ou.NG_CONTENT){e.children&&!e.children.every((function(e){return function(e){return e instanceof pa&&0==e.value.trim().length}(e)||function(e){return e instanceof da}(e)}))&&this.reportError("<ng-content> element cannot have content.",e.sourceSpan);var R=o.selectAttr,O=e.attrs.map((function(e){return r.visitAttribute(e)}));I=new Nr(R,O,e.sourceSpan,e.i18n)}else if(u){O=this.extractAttributes(e.name,p,m);I=new Pr(e.name,d,O.bound,l,[],k,h,c,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}else{O=this.extractAttributes(e.name,p,m);I=new Tr(e.name,d,O.bound,l,k,h,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,e.i18n)}if(E){O=this.extractAttributes("ng-template",y,m);var F=[];O.literal.forEach((function(e){return F.push(e)})),O.bound.forEach((function(e){return F.push(e)}));var L=I instanceof Tr?{attributes:I.attributes,inputs:I.inputs,outputs:I.outputs}:{attributes:[],inputs:[],outputs:[]},D=u&&i?void 0:e.i18n;I=new Pr(I.name,L.attributes,L.inputs,L.outputs,F,[I],[],g,e.sourceSpan,e.startSourceSpan,e.endSourceSpan,D)}return i&&(this.inI18nBlock=!1),I},e.prototype.visitAttribute=function(e){return new wr(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;if(!e.i18n)return null;if(!Ni(e.i18n))throw new Error('Invalid type "'+e.i18n.constructor+'" for "i18n" property of '+e.sourceSpan.toString()+'. Expected a "Message"');var n=e.i18n,r={},i={};return Object.keys(n.placeholders).forEach((function(s){var o=n.placeholders[s];if(s.startsWith("VAR_")){var a=t.bindingParser.interpolationConfig,u=""+a.start+o+a.end;r[s]=t._visitTextWithInterpolation(u,e.sourceSpan)}else i[s]=t._visitTextWithInterpolation(o,e.sourceSpan)})),new Ir(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=[],s=[];return t.forEach((function(t){var o=n[t.name];if(t.isLiteral)s.push(new wr(t.name,t.expression.source||"",t.sourceSpan,void 0,o));else{var a=r.bindingParser.createBoundElementProperty(e,t,!0,!1);i.push(Cr.fromBoundElementProperty(a,o))}})),{bound:i,literal:s}},e.prototype.parseAttribute=function(e,t,n,r,i,s,o){var a=qp(t.name),u=t.value,p=t.sourceSpan,l=t.valueSpan?t.valueSpan.start.offset:p.start.offset,c=a.match(Bp),h=!1;if(c){if(h=!0,null!=c[1])this.bindingParser.parsePropertyBinding(c[7],u,!1,p,l,t.valueSpan,n,r);else if(c[2])if(e){var f=c[7];this.parseVariable(f,u,p,t.valueSpan,s)}else this.reportError('"let-" is only supported on ng-template elements.',p);else if(c[3]){f=c[7];this.parseReference(f,u,p,t.valueSpan,o)}else if(c[4]){var d=[];this.bindingParser.parseEvent(c[7],u,p,t.valueSpan||p,n,d),Wp(d,i)}else if(c[5])this.bindingParser.parsePropertyBinding(c[7],u,!1,p,l,t.valueSpan,n,r),this.parseAssignmentEvent(c[7],u,p,t.valueSpan,n,i);else if(c[6])this.bindingParser.parseLiteralAttr(a,u,p,l,t.valueSpan,n,r);else if(c[8])this.bindingParser.parsePropertyBinding(c[8],u,!1,p,l,t.valueSpan,n,r),this.parseAssignmentEvent(c[8],u,p,t.valueSpan,n,i);else if(c[9])this.bindingParser.parsePropertyBinding(c[9],u,!1,p,l,t.valueSpan,n,r);else if(c[10]){d=[];this.bindingParser.parseEvent(c[10],u,p,t.valueSpan||p,n,d),Wp(d,i)}}else h=this.bindingParser.parsePropertyInterpolation(a,u,p,t.valueSpan,n,r);return h},e.prototype._visitTextWithInterpolation=function(e,t,n){var r=Wa(e),i=this.bindingParser.parseInterpolation(r,t);return i?new Sr(i,t,n):new xr(r,t)},e.prototype.parseVariable=function(e,t,n,r,i){e.indexOf("-")>-1?this.reportError('"-" is not allowed in variable names',n):0===e.length&&this.reportError("Variable does not have a name",n),i.push(new Ar(e,t,n,r))},e.prototype.parseReference=function(e,t,n,r,i){e.indexOf("-")>-1?this.reportError('"-" is not allowed in reference names',n):0===e.length&&this.reportError("Reference does not have a name",n),i.push(new Mr(e,t,n,r))},e.prototype.parseAssignmentEvent=function(e,t,n,r,i,s){var o=[];this.bindingParser.parseEvent(e+"Change",t+"=$event",n,r||n,i,o),Wp(o,s)},e.prototype.reportError=function(e,t,n){void 0===n&&(n=hr.ERROR),this.errors.push(new gr(t,e,n))},e}(),Hp=new(function(){function e(){}return e.prototype.visitElement=function(e){var t=Fu(e);if(t.type===Ou.SCRIPT||t.type===Ou.STYLE||t.type===Ou.STYLESHEET)return null;var n=va(this,e.children,null);return new Tr(e.name,va(this,e.attrs),[],[],n,[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan)},e.prototype.visitComment=function(e){return null},e.prototype.visitAttribute=function(e){return new wr(e.name,e.value,e.sourceSpan,void 0,e.i18n)},e.prototype.visitText=function(e){return new xr(e.value,e.sourceSpan)},e.prototype.visitExpansion=function(e){return null},e.prototype.visitExpansionCase=function(e){return null},e}());function qp(e){return/^data-/i.test(e)?e.substring(5):e}function Wp(e,t){t.push.apply(t,v(e.map((function(e){return br.fromParsedEvent(e)}))))}!function(e){e[e.ELEMENT=0]="ELEMENT",e[e.TEMPLATE=1]="TEMPLATE",e[e.PROJECTION=2]="PROJECTION"}(jp||(jp={}));var zp=function(){function e(e,t,n,r,i,s){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=s,this.bindings=new Set,this.placeholders=new Map,this.isEmitted=!1,this._unresolvedCtxCount=0,this._registry=s||{getUniqueId:ki(),icus:new Map},this.id=this._registry.getUniqueId()}return e.prototype.appendTag=function(e,t,n,r){if(!t.isVoid||!r){var i=t.isVoid||!r?t.startName:t.closeName,s={type:e,index:n,ctx:this.id,isVoid:t.isVoid,closed:r};Oi(this.placeholders,i,s)}},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(Xp))})),e},e.prototype.appendBinding=function(e){this.bindings.add(e)},e.prototype.appendIcu=function(e,t){Oi(this._registry.icus,e,t)},e.prototype.appendBoundText=function(e){var t=this;Fi(e,this.bindings.size,this.id).forEach((function(e,n){return Oi.apply(void 0,v([t.placeholders,n],e))}))},e.prototype.appendTemplate=function(e,t){this.appendTag(jp.TEMPLATE,e,t,!1),this.appendTag(jp.TEMPLATE,e,t,!0),this._unresolvedCtxCount++},e.prototype.appendElement=function(e,t,n){this.appendTag(jp.ELEMENT,e,t,n)},e.prototype.appendProjection=function(e,t){this.appendTag(jp.PROJECTION,e,t,!1),this.appendTag(jp.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=e.meta[n+"Name"],i=(t.placeholders.get(r)||[]).find(Gp(t.id,e.templateIndex));i&&(i.ctx=e.id)})),e.placeholders.forEach((function(n,r){var i=t.placeholders.get(r);if(i){var s=i.findIndex(Gp(e.id,e.templateIndex));if(s>=0){var o=r.startsWith("CLOSE");if(r.endsWith("NG-TEMPLATE"))i.splice.apply(i,v([s+(o?0:1),0],n));else n[o?n.length-1:0].tmpl=i[s],i.splice.apply(i,v([s,1],n))}else i.push.apply(i,v(n));t.placeholders.set(r,i)}else t.placeholders.set(r,n)})),this._unresolvedCtxCount--},e}();function Kp(e,t,n,r){return Ii(""+(r?"/":"")+e+t,n)}function Qp(e,t,n){var r=t.index,i=t.ctx;return t.isVoid?Kp(e,r,i)+Kp(e,r,i,!0):Kp(e,r,i,n)}function Gp(e,t){return function(n){return"object"==typeof n&&n.type===jp.TEMPLATE&&n.index===t&&n.ctx===e}}function Xp(e){var t,n,r=function(e,t){return Qp("#",e,t)},i=function(e,t){return Qp("*",e,t)};switch(e.type){case jp.ELEMENT:return e.closed?r(e,!0)+(e.tmpl?i(e.tmpl,!0):""):e.tmpl?i(e.tmpl)+r(e)+(e.isVoid?i(e.tmpl,!0):""):r(e);case jp.TEMPLATE:return i(e,e.closed);case jp.PROJECTION:return t=e,n=e.closed,Qp("!",t,n);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 $p=new(function(){function e(){}return e.prototype.visitText=function(e){return e.value},e.prototype.visitContainer=function(e){var t=this;return e.children.map((function(e){return e.visit(t)})).join("")},e.prototype.visitIcu=function(e){var t=this,n=Object.keys(e.cases).map((function(n){return n+" {"+e.cases[n].visit(t)+"}"}));return"{"+e.expressionPlaceholder+", "+e.type+", "+n.join(" ")+"}"},e.prototype.visitTagPlaceholder=function(e){var t=this;return e.isVoid?this.formatPh(e.startName):""+this.formatPh(e.startName)+e.children.map((function(e){return e.visit(t)})).join("")+this.formatPh(e.closeName)},e.prototype.visitPlaceholder=function(e){return this.formatPh(e.name)},e.prototype.visitIcuPlaceholder=function(e,t){return this.formatPh(e.name)},e.prototype.formatPh=function(e){return"{"+Di(e,!1)+"}"},e}());function Yp(e){return e.visit($p)}
|
||
/**
|
||
* @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 Jp={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"},Zp=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(),s=Jp[i]||"TAG_"+i,o=this._generateUniqueName(n?s:"START_"+s);return this._signatureToName[r]=o,o},e.prototype.getCloseTagPlaceholderName=function(e){var t=this._hashClosingTag(e);if(this._signatureToName[t])return this._signatureToName[t];var n=e.toUpperCase(),r=Jp[n]||"TAG_"+n,i=this._generateUniqueName("CLOSE_"+r);return this._signatureToName[t]=i,i},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+">")},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}(),el=new Pp(new pp);function tl(e){var t=new rl(el,e);return function(e,n,r,i,s){return t.toI18nMessage(e,n,r,i,s)}}function nl(e,t){return t}var rl=function(){function e(e,t){this._expressionParser=e,this._interpolationConfig=t}return e.prototype.toI18nMessage=function(e,t,n,r,i){void 0===t&&(t=""),void 0===n&&(n=""),void 0===r&&(r="");var s={isIcu:1==e.length&&e[0]instanceof la,icuDepth:0,placeholderRegistry:new Zp,placeholderToContent:{},placeholderToMessage:{},visitNodeFn:i||nl},o=va(this,e,s);return new Or(o,s.placeholderToContent,s.placeholderToMessage,t,n,r)},e.prototype.visitElement=function(e,t){var n=va(this,e.children,t),r={};e.attrs.forEach((function(e){r[e.name]=e.value}));var i=T(e.name).isVoid,s=t.placeholderRegistry.getStartTagPlaceholderName(e.name,r,i);t.placeholderToContent[s]=e.sourceSpan.toString();var o="";i||(o=t.placeholderRegistry.getCloseTagPlaceholderName(e.name),t.placeholderToContent[o]="</"+e.name+">");var a=new Br(e.name,r,s,o,n,i,e.sourceSpan);return t.visitNodeFn(e,a)},e.prototype.visitAttribute=function(e,t){var n=this._visitTextWithInterpolation(e.value,e.sourceSpan,t);return t.visitNodeFn(e,n)},e.prototype.visitText=function(e,t){var n=this._visitTextWithInterpolation(e.value,e.sourceSpan,t);return t.visitNodeFn(e,n)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitExpansion=function(e,t){var n=this;t.icuDepth++;var r={},i=new Dr(e.switchValue,e.type,r,e.sourceSpan);if(e.cases.forEach((function(e){r[e.value]=new Lr(e.expression.map((function(e){return e.visit(n,t)})),e.expSourceSpan)})),t.icuDepth--,t.isIcu||t.icuDepth>0){var s=t.placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return i.expressionPlaceholder=s,t.placeholderToContent[s]=e.switchValue,t.visitNodeFn(e,i)}var o=t.placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString());t.placeholderToMessage[o]=this.toI18nMessage([e],"","","",void 0);var a=new jr(i,o,e.sourceSpan);return t.visitNodeFn(e,a)},e.prototype.visitExpansionCase=function(e,t){throw new Error("Unreachable code")},e.prototype._visitTextWithInterpolation=function(e,t,n){var r=this._expressionParser.splitInterpolation(e,t.start.toString(),this._interpolationConfig);if(!r)return new Fr(e,t);for(var i=[],s=new Lr(i,t),o=this._interpolationConfig,a=o.start,u=o.end,p=0;p<r.strings.length-1;p++){var l=r.expressions[p],c=l.split(il)[2]||"INTERPOLATION",h=n.placeholderRegistry.getPlaceholderName(c,l);r.strings[p].length&&i.push(new Fr(r.strings[p],t)),i.push(new Vr(l,h,t)),n.placeholderToContent[h]=a+l+u}var f=r.strings.length-1;return r.strings[f].length&&i.push(new Fr(r.strings[f],t)),s},e}(),il=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*("|')([\s\S]*?)\1[\s\S]*\)/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
|
||
*/
|
||
var sl=function(e,t){return e instanceof ua&&(t instanceof jr&&e.i18n instanceof Or&&(t.previousMessage=e.i18n),e.i18n=t),t},ol=function(){function e(e,t,n){void 0===e&&(e=cs),void 0===t&&(t=!1),void 0===n&&(n=!1),this.interpolationConfig=e,this.keepI18nAttrs=t,this.enableI18nLegacyMessageIdFormat=n,this.hasI18nMeta=!1,this._createI18nMessage=tl(this.interpolationConfig)}return e.prototype._generateI18nMessage=function(e,t,n){void 0===t&&(t="");var r=this._parseMetadata(t),i=r.meaning,s=r.description,o=r.customId,a=this._createI18nMessage(e,i,s,o,n);return this._setMessageId(a,t),this._setLegacyIds(a,t),a},e.prototype.visitElement=function(e){var t,n,r,i;if(function(e){return e.attrs.some((function(e){return Pi(e.name)}))}(e)){this.hasI18nMeta=!0;var s=[],o={};try{for(var a=f(e.attrs),u=a.next();!u.done;u=a.next()){if("i18n"===(d=u.value).name){var p=e.i18n||d.value,l=this._generateI18nMessage(e.children,p,sl);l.nodes.length&&(e.i18n=l)}else if(d.name.startsWith("i18n-")){o[d.name.slice("i18n-".length)]=d.value}else s.push(d)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}if(Object.keys(o).length)try{for(var c=f(s),h=c.next();!h.done;h=c.next()){var d,v=o[(d=h.value).name];void 0!==v&&d.value&&(d.i18n=this._generateI18nMessage([d],d.i18n||v))}}catch(e){r={error:e}}finally{try{h&&!h.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}this.keepI18nAttrs||(e.attrs=s)}return va(this,e.children,e.i18n),e},e.prototype.visitExpansion=function(e,t){var n,r=e.i18n;if(this.hasI18nMeta=!0,r instanceof jr){var i=r.name;Mi(n=this._generateI18nMessage([e],r)).name=i}else n=this._generateI18nMessage([e],t||r);return e.i18n=n,e},e.prototype.visitText=function(e){return e},e.prototype.visitAttribute=function(e){return e},e.prototype.visitComment=function(e){return e},e.prototype.visitExpansionCase=function(e){return e},e.prototype._parseMetadata=function(e){return"string"==typeof e?function(e){var t,n,r,i,s;void 0===e&&(e="");if(e=e.trim()){var o=e.indexOf("@@"),a=e.indexOf("|"),u=void 0;t=d(o>-1?[e.slice(0,o),e.slice(o+2)]:[e,""],2),u=t[0],r=t[1],n=d(a>-1?[u.slice(0,a),u.slice(a+1)]:["",u],2),i=n[0],s=n[1]}return{customId:r,meaning:i,description:s}}(e):e instanceof Or?e:{}},e.prototype._setMessageId=function(e,t){e.id||(e.id=t instanceof Or&&t.id||zr(e))},e.prototype._setLegacyIds=function(e,t){if(this.enableI18nLegacyMessageIdFormat)e.legacyIds=[Wr(e),Kr(e)];else if("string"!=typeof t){var n=t instanceof Or?t:t instanceof jr?t.previousMessage:void 0;e.legacyIds=n?n.legacyIds:[]}},e}();function al(e,t,n,r){var i=[Vt(function(e){return e.nodes.map((function(e){return e.visit(ul,null)})).join("")}(t))];Object.keys(r).length&&i.push(Ns(r,!0));var s,o,a=[],u=(o=[],(s=t).description&&o.push({tagName:"desc",text:s.description}),s.meaning&&o.push({tagName:"meaning",text:s.meaning}),0==o.length?null:new _t(o));return null!==u&&a.push(u),a.push(n.set(Mt("goog.getMsg").callFn(i)).toConstDecl()),a.push(new lt(e.set(n))),a}var ul=new(function(){function e(){}return e.prototype.formatPh=function(e){return"{$"+Di(e)+"}"},e.prototype.visitText=function(e){return e.value},e.prototype.visitContainer=function(e){var t=this;return e.children.map((function(e){return e.visit(t)})).join("")},e.prototype.visitIcu=function(e){return Yp(e)},e.prototype.visitTagPlaceholder=function(e){var t=this;return e.isVoid?this.formatPh(e.startName):""+this.formatPh(e.startName)+e.children.map((function(e){return e.visit(t)})).join("")+this.formatPh(e.closeName)},e.prototype.visitPlaceholder=function(e){return this.formatPh(e.name)},e.prototype.visitIcuPlaceholder=function(e,t){return this.formatPh(e.name)},e}());function pl(e,t,n){var r=[],i=function(e){var t=[];return e.nodes.forEach((function(e){return e.visit(fl,t)})),function(e){var t=[],n=[];e[0]instanceof hl&&t.push("");for(var r=0;r<e.length;r++){var i=e[r];i instanceof cl?t.push(i.text):(n.push(i.text),e[r-1]instanceof hl&&t.push(""))}e[e.length-1]instanceof hl&&t.push("");return{messageParts:t,placeHolders: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
|
||
*/(t)}(t),s=i.messageParts,o=i.placeHolders;return r.push(new lt(e.set(function(e,t,n,r,i){return new Be(e,t,n,r,i)}(t,s,o,o.map((function(e){return n[e]})))))),r}var ll=function(e){this.text=e},cl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t}(ll),hl=function(e){function t(t){return e.call(this,Di(t,!1))||this}return l(t,e),t}(ll),fl=new(function(){function e(){}return e.prototype.visitText=function(e,t){t[t.length-1]instanceof cl?t[t.length-1].text+=e.value:t.push(new cl(e.value))},e.prototype.visitContainer=function(e,t){var n=this;e.children.forEach((function(e){return e.visit(n,t)}))},e.prototype.visitIcu=function(e,t){t.push(new cl(Yp(e)))},e.prototype.visitTagPlaceholder=function(e,t){var n=this;t.push(new hl(e.startName)),e.isVoid||(e.children.forEach((function(e){return e.visit(n,t)})),t.push(new hl(e.closeName)))},e.prototype.visitPlaceholder=function(e,t){t.push(new hl(e.name))},e.prototype.visitIcuPlaceholder=function(e,t){t.push(new hl(e.name))},e}());var dl=new Map([["window",tr.resolveWindow],["document",tr.resolveDocument],["body",tr.resolveBody]]),vl=[" ","\n","\r","\t"];function ml(e,t){return Bt(Mt("rf").bitwiseAnd(Vt(e),null,!1),t)}function yl(e,t,n){void 0===t&&(t=null),void 0===n&&(n=null);var r=e.type,i=e.name,s=e.target,o=e.phase,a=e.handler;if(s&&!dl.has(s))throw new Error("Unexpected global target '"+s+"' defined for '"+i+"' event.\n Supported list of global targets: "+Array.from(dl.keys())+".");var u=new Set,p=null===n||0===n.bindingLevel?Mt("ctx"):n.getOrCreateSharedContextVar(0),l=go(n,p,a,"b",(function(){return Jt("Unexpected interpolation")}),e.handlerSpan,u),c=[];n&&(c.push.apply(c,v(n.restoreViewStatement())),c.push.apply(c,v(n.variableDeclarations()))),c.push.apply(c,v(l.render3Stmts));var h=1===r?function(e,t){return"@"+e+"."+t}(i,o):i,f=t&&Nn(t),d=[];u.has("$event")&&d.push(new $e("$event",ye));var m=Dt(d,c,ge,null,f),y=[Vt(h),m];return s&&y.push(Vt(!1),It(dl.get(s))),y}var gl=function(){function e(e,t,n,r,i,s,o,a,u,p,l,c,h,f,d){var v=this;void 0===n&&(n=0),void 0===d&&(d=[]),this.constantPool=e,this.level=n,this.contextName=r,this.i18nContext=i,this.templateIndex=s,this.templateName=o,this.directiveMatcher=a,this.directives=u,this.pipeTypeByName=p,this.pipes=l,this._namespace=c,this.i18nUseExternalIds=f,this._constants=d,this._dataIndex=0,this._bindingContext=0,this._prefixCode=[],this._creationCodeFns=[],this._updateCodeFns=[],this._currentIndex=0,this._tempVariables=[],this._nestedTemplateFns=[],this._unsupported=Hi,this.i18n=null,this._pureFunctionSlots=0,this._bindingSlots=0,this._ngContentReservedSlots=[],this._ngContentSelectorsOffset=0,this._implicitReceiverExpr=null,this.visitReference=qi,this.visitVariable=qi,this.visitTextAttribute=qi,this.visitBoundAttribute=qi,this.visitBoundEvent=qi,this._bindingScope=t.nestedScope(n),this.fileBasedI18nSuffix=h.replace(/[^A-Za-z0-9]/g,"_")+"_",this._valueConverter=new _l(e,(function(){return v.allocateDataSlot()}),(function(e){return v.allocatePureFunctionSlots(e)}),(function(e,t,n,r){var i=p.get(e);i&&v.pipes.add(i),v._bindingScope.set(v.level,t,r),v.creationInstruction(null,tr.pipe,[Vt(n),Vt(e)])}))}return e.prototype.buildTemplateFunction=function(e,t,n,r){var i=this;void 0===n&&(n=0),this._ngContentSelectorsOffset=n,this._namespace!==tr.namespaceHTML&&this.creationInstruction(null,this._namespace),t.forEach((function(e){return i.registerContextVariables(e)}));var s,o=this.i18nContext||Ni(r)&&!Ai(r)&&!(1===(s=e).length&&s[0]instanceof Tr&&e[0].i18n===r),a=Rl(e);if(o&&this.i18nStart(null,r,a),Rr(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 p=this._ngContentReservedSlots.map((function(e){return"*"!==e?ae(e):e}));u.push(this.constantPool.getConstLiteral(Wi(p),!0))}this.creationInstruction(null,tr.projectionDef,u,!0)}o&&this.i18nEnd(null,a);var l=this._creationCodeFns.map((function(e){return e()})),c=this._updateCodeFns.map((function(e){return e()})),h=this._bindingScope.viewSnapshotStatements(),f=this._bindingScope.variableDeclarations().concat(this._tempVariables),d=l.length>0?[ml(1,h.concat(l))]:[],m=c.length>0?[ml(2,f.concat(c))]:[];return Dt([new $e("rf",Ee),new $e("ctx",null)],v(this._prefixCode,d,m),ge,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 s=n||Mt(this.constantPool.uniqueName("I18N_")),o=function(e,t,n,r,i){void 0===r&&(r={});var s=[Vi(t),Bt(Ol(),al(t,e,n,Li(r,!0)),pl(t,e,Li(r,!1)))];i&&s.push(new lt(t.set(i(t))));return s}(e,s,this.i18nGenerateClosureVar(e.id),t,r);return(i=this.constantPool.statements).push.apply(i,v(o)),s},e.prototype.registerContextVariables=function(e){var t=this._bindingScope.freshReferenceName(),n=this.level,r=Mt(e.name+t);this._bindingScope.set(n,e.name,r,1,(function(t,i){var s;if(t.bindingLevel===n)s=Mt("ctx");else{var o=t.getSharedContextName(n);s=o||wl(i)}return[r.set(s.prop(e.value||"$implicit")).toConstDecl()]}))},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 xr)n[r]=Vt(i.value);else{var s=i.value.visit(t._valueConverter);if(t.allocateBindingSlots(s),s instanceof Js){var o=s.strings,a=s.expressions,u=t.i18n,p=u.id,l=function(e,t,n){if(void 0===t&&(t=0),void 0===n&&(n=0),!e.length)return"";for(var r="",i=e.length-1,s=0;s<i;s++)r+=""+e[s]+Ii(t+s,n);return r+=e[i]}(o,u.bindings.size,p);t.i18nAppendBindings(a),n[r]=Vt(l)}}})),n},e.prototype.i18nGenerateClosureVar=function(e){var t,n=this.fileBasedI18nSuffix.toUpperCase();if(this.i18nUseExternalIds){var r=Bi("EXTERNAL_"),i=this.constantPool.uniqueName(n);t=""+r+Nn(e)+"$$"+i}else{r=Bi(n);t=this.constantPool.uniqueName(r)}return Mt(t)},e.prototype.i18nUpdateRef=function(e){var t=e.icus,n=e.meta,r=e.isRoot,i=e.isResolved,s=e.isEmitted;if(r&&i&&!s&&!Ai(n)){e.isEmitted=!0;var o=e.getSerializedPlaceholders(),a={},u=o.size?Ri(o):{};t.size&&t.forEach((function(e,t){if(1===e.length)u[t]=e[0];else{var n=Ii("I18N_EXP_"+t);u[t]=Vt(n),a[t]=Ft(e)}}));var p=void 0;(Array.from(o.values()).some((function(e){return e.length>1}))||Object.keys(a).length)&&(p=function(e){var t=[e];return Object.keys(a).length&&t.push(Ns(a,!0)),Sl(null,tr.i18nPostprocess,t)}),this.i18nTranslate(n,u,e.ref,p)}},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=Mt(this.constantPool.uniqueName("I18N_"));this.i18n=new zp(r,i,0,this.templateIndex,t)}var s=this.i18n,o=s.id,a=s.ref,u=[Vt(r),a];o>0&&u.push(Vt(o)),this.creationInstruction(e,n?tr.i18n:tr.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,s=r.bindings;if(s.size){var o=[];s.forEach((function(t){o.push({sourceSpan:e,value:function(){return n.convertPropertyBinding(t)}})})),this.updateInstructionChainWithAdvance(this.getConstCount()-1,tr.i18nExp,o),this.updateInstruction(e,tr.i18nApply,[Vt(i)])}t||this.creationInstruction(e,tr.i18nEnd),this.i18n=null},e.prototype.i18nAttributesInstruction=function(e,t,n){var r=this,i=!1,s=[],o=[];if(t.forEach((function(e){var t=e.i18n;if(e instanceof wr)s.push(Vt(e.name),r.i18nTranslate(t));else{var a=e.value.visit(r._valueConverter);if(r.allocateBindingSlots(a),a instanceof Js){var u=Ri(Fi(t));s.push(Vt(e.name),r.i18nTranslate(t,u)),a.expressions.forEach((function(e){i=!0,o.push({sourceSpan:n,value:function(){return r.convertPropertyBinding(e)}})}))}}})),o.length>0&&this.updateInstructionChainWithAdvance(e,tr.i18nExp,o),s.length>0){var a=Vt(this.allocateDataSlot()),u=this.constantPool.getConstLiteral(Ft(s),!0);this.creationInstruction(n,tr.i18nAttributes,[a,u]),i&&this.updateInstruction(n,tr.i18nApply,[a])}},e.prototype.getNamespaceInstruction=function(e){switch(e){case"math":return tr.namespaceMathML;case"svg":return tr.namespaceSVG;default:return tr.namespaceHTML}},e.prototype.addNamespaceInstruction=function(e,t){this._namespace=e,this.creationInstruction(t.sourceSpan,e)},e.prototype.interpolatedUpdateInstruction=function(e,t,n,r,i,s){var o=this;this.updateInstructionWithAdvance(t,r.sourceSpan,e,(function(){return v([Vt(n)],o.getUpdateInstructionArguments(i),s)}))},e.prototype.visitContent=function(e){var t=this.allocateDataSlot(),n=this._ngContentSelectorsOffset+this._ngContentReservedSlots.length,r=[Vt(t)];this._ngContentReservedSlots.push(e.selector);var i=e.attributes.filter((function(e){return"select"!==e.name.toLowerCase()})),s=this.getAttributeExpressions(i,[],[]);s.length>0?r.push(Vt(n),Ft(s)):0!==n&&r.push(Vt(n)),this.creationInstruction(e.sourceSpan,tr.projection,r),this.i18n&&this.i18n.appendProjection(e.i18n,t)},e.prototype.visitElement=function(e){var t,n,r=this,i=this.allocateDataSlot(),s=new rp(null),o=!1,a=Ni(e.i18n)&&!Ai(e.i18n),u=[],p=[],l=d(m(e.name),2),c=l[0],h=l[1],g=y(e.name);try{for(var _=f(e.attributes),E=_.next();!E.done;E=_.next()){var x=E.value,S=x.name,w=x.value;"ngNonBindable"===S?o=!0:"style"===S?s.registerStyleAttr(w):"class"===S?s.registerClassAttr(w):x.i18n?u.push(x):p.push(x)}}catch(e){t={error:e}}finally{try{E&&!E.done&&(n=_.return)&&n.call(_)}finally{if(t)throw t.error}}this.matchDirectives(e.name,e);var C=[Vt(i)];g||C.push(Vt(h));var b=[];e.inputs.forEach((function(e){s.registerBoundInput(e)||(0===e.type&&e.i18n?u.push(e):b.push(e))}));var T=this.getAttributeExpressions(p,b,e.outputs,s,[],u);C.push(this.addAttrsToConsts(T));var P=this.prepareRefsArray(e.references);C.push(this.addToConsts(P));var N=this._namespace,A=this.getNamespaceInstruction(c);A!==N&&this.addNamespaceInstruction(A,e),this.i18n&&this.i18n.appendElement(e.i18n,i);var M=!a&&this.i18n?!Rl(e.children):e.children.length>0,I=!s.hasBindingsWithPipes&&0===e.outputs.length&&0===u.length&&!M,k=!I&&Rl(e.children);if(I)this.creationInstruction(e.sourceSpan,g?tr.elementContainer:tr.element,Ki(C));else{if(this.creationInstruction(e.sourceSpan,g?tr.elementContainerStart:tr.elementStart,Ki(C)),o&&this.creationInstruction(e.sourceSpan,tr.disableBindings),u.length>0&&this.i18nAttributesInstruction(i,u,e.sourceSpan),e.outputs.length>0){var R=e.outputs.map((function(t){return{sourceSpan:t.sourceSpan,params:r.prepareListenerParameter(e.name,t,i)}}));this.creationInstructionChain(tr.listener,R)}a&&this.i18nStart(e.sourceSpan,e.i18n,k)}for(var O=s.buildUpdateLevelInstructions(this._valueConverter),F=O.length-1,L=0;L<=F;L++){var D=O[L];this._bindingSlots+=this.processStylingUpdateInstruction(i,D)}var B=Vt(void 0),V=[],j=[];if(b.forEach((function(e){var t=e.type;if(4===t){var n=e.value.visit(r._valueConverter),s=!(n instanceof Xs)||!!n.value;r.allocateBindingSlots(n),V.push({name:sr(e.name),sourceSpan:e.sourceSpan,value:function(){return s?r.convertPropertyBinding(n):B}})}else{if(e.i18n)return;var o=e.value.visit(r._valueConverter);if(void 0!==o){var a=[],u=d(m(e.name),2),p=u[0],l=u[1],c=1===t,h=Il(e.securityContext,c);if(h&&a.push(h),p){var f=Vt(p);h?a.push(f):a.push(Vt(null),f)}if(r.allocateBindingSlots(o),0===t)o instanceof Js?r.interpolatedUpdateInstruction(function(e){switch(es(e)){case 1:return tr.propertyInterpolate;case 3:return tr.propertyInterpolate1;case 5:return tr.propertyInterpolate2;case 7:return tr.propertyInterpolate3;case 9:return tr.propertyInterpolate4;case 11:return tr.propertyInterpolate5;case 13:return tr.propertyInterpolate6;case 15:return tr.propertyInterpolate7;case 17:return tr.propertyInterpolate8;default:return tr.propertyInterpolateV}}(o),i,l,e,o,a):V.push({name:l,sourceSpan:e.sourceSpan,value:function(){return r.convertPropertyBinding(o)},params:a});else if(1===t)if(o instanceof Js&&es(o)>1)r.interpolatedUpdateInstruction(function(e){switch(es(e)){case 3:return tr.attributeInterpolate1;case 5:return tr.attributeInterpolate2;case 7:return tr.attributeInterpolate3;case 9:return tr.attributeInterpolate4;case 11:return tr.attributeInterpolate5;case 13:return tr.attributeInterpolate6;case 15:return tr.attributeInterpolate7;case 17:return tr.attributeInterpolate8;default:return tr.attributeInterpolateV}}(o),i,l,e,o,a);else{var y=o instanceof Js?o.expressions[0]:o;j.push({name:l,sourceSpan:e.sourceSpan,value:function(){return r.convertPropertyBinding(y)},params:a})}else r.updateInstructionWithAdvance(i,e.sourceSpan,tr.classProp,(function(){return v([Vt(i),Vt(l),r.convertPropertyBinding(o)],a)}))}}})),V.length>0&&this.updateInstructionChainWithAdvance(i,tr.property,V),j.length>0&&this.updateInstructionChainWithAdvance(i,tr.attribute,j),Rr(this,e.children),!a&&this.i18n&&this.i18n.appendElement(e.i18n,i,!0),!I){var U=e.endSourceSpan||e.sourceSpan;a&&this.i18nEnd(U,k),o&&this.creationInstruction(U,tr.enableBindings),this.creationInstruction(U,g?tr.elementContainerEnd:tr.elementEnd)}},e.prototype.visitTemplate=function(t){var n=this,r=this.allocateDataSlot();this.i18n&&this.i18n.appendTemplate(t.i18n,r);var i=Nn(t.tagName||""),s=this.contextName+(i?"_"+i:"")+"_"+r,o=s+"_Template",a=[Vt(r),Mt(o),Vt(t.tagName?m(t.tagName)[1]:t.tagName)];this.matchDirectives("ng-template",t);var u=this.getAttributeExpressions(t.attributes,t.inputs,t.outputs,void 0,t.templateAttrs,void 0);if(a.push(this.addAttrsToConsts(u)),t.references&&t.references.length){var p=this.prepareRefsArray(t.references);a.push(this.addToConsts(p)),a.push(It(tr.templateRefExtractor))}var l=new e(this.constantPool,this._bindingScope,this.level+1,s,this.i18n,r,o,this.directiveMatcher,this.directives,this.pipeTypeByName,this.pipes,this._namespace,this.fileBasedI18nSuffix,this.i18nUseExternalIds,this._constants);if(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(o,null)),l._ngContentReservedSlots.length&&(e=n._ngContentReservedSlots).push.apply(e,v(l._ngContentReservedSlots))})),this.creationInstruction(t.sourceSpan,tr.templateCreate,(function(){return a.splice(2,0,Vt(l.getConstCount()),Vt(l.getVarCount())),Ki(a)})),this.templatePropertyBindings(r,t.templateAttrs),"ng-template"===t.tagName){var c=t.attributes.filter((function(e){return!!e.i18n}));if(c.length>0&&this.i18nAttributesInstruction(r,c,t.sourceSpan),this.templatePropertyBindings(r,t.inputs),t.outputs.length>0){var h=t.outputs.map((function(e){return{sourceSpan:e.sourceSpan,params:n.prepareListenerParameter("ng_template",e,r)}}));this.creationInstructionChain(tr.listener,h)}}},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 Js&&(this.i18n.appendBoundText(e.i18n),this.i18nAppendBindings(n.expressions)))}var r=this.allocateDataSlot();this.creationInstruction(e.sourceSpan,tr.text,[Vt(r)]);var i=e.value.visit(this._valueConverter);this.allocateBindingSlots(i),i instanceof Js?this.updateInstructionWithAdvance(r,e.sourceSpan,function(e){switch(es(e)){case 1:return tr.textInterpolate;case 3:return tr.textInterpolate1;case 5:return tr.textInterpolate2;case 7:return tr.textInterpolate3;case 9:return tr.textInterpolate4;case 11:return tr.textInterpolate5;case 13:return tr.textInterpolate6;case 15:return tr.textInterpolate7;case 17:return tr.textInterpolate8;default:return tr.textInterpolateV}}(i),(function(){return t.getUpdateInstructionArguments(i)})):Jt("Text nodes should be interpolated and never bound directly.")},e.prototype.visitText=function(e){this.i18n||this.creationInstruction(e.sourceSpan,tr.text,[Vt(this.allocateDataSlot()),Vt(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),s=e.i18n,o=function(e){var t=Li(h(h({},r),i),!1);return Sl(null,tr.i18nPostprocess,[e,Ns(t,!0)])};if(Ai(n.meta))this.i18nTranslate(s,{},n.ref,o);else{var a=this.i18nTranslate(s,{},void 0,o);n.appendIcu(Mi(s).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.getConsts=function(){return this._constants},e.prototype.getNgContentSelectors=function(){return this._ngContentReservedSlots.length?this.constantPool.getConstLiteral(Wi(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 Cr){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.updateInstructionChainWithAdvance(e,tr.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 Sl(t,n,e).toStmt()}))},e.prototype.processStylingUpdateInstruction=function(e,t){var n=this,r=0;if(t){var i=[];t.calls.forEach((function(e){r+=e.allocateBindingSlots,i.push({sourceSpan:e.sourceSpan,value:function(){return e.params((function(t){return e.supportsInterpolation&&t instanceof Js?n.getUpdateInstructionArguments(t):n.convertPropertyBinding(t)}))}})})),this.updateInstructionChainWithAdvance(e,t.reference,i)}return r},e.prototype.creationInstruction=function(e,t,n,r){this.instructionFn(this._creationCodeFns,e,t,n||[],r)},e.prototype.creationInstructionChain=function(e,t){var n=t.length?t[0].sourceSpan:null;this._creationCodeFns.push((function(){return Zi(e,t.map((function(e){return e.params()})),n).toStmt()}))},e.prototype.updateInstructionWithAdvance=function(e,t,n,r){this.addAdvanceInstructionIfNecessary(e,t),this.updateInstruction(t,n,r)},e.prototype.updateInstruction=function(e,t,n){this.instructionFn(this._updateCodeFns,e,t,n||[])},e.prototype.updateInstructionChain=function(e,t){var n=t.length?t[0].sourceSpan:null;this._updateCodeFns.push((function(){var r=t.map((function(e){var t=e.value(),n=Array.isArray(t)?t:[t];return e.params&&n.push.apply(n,v(e.params)),e.name&&n.unshift(Vt(e.name)),n}));return Zi(e,r,n).toStmt()}))},e.prototype.updateInstructionChainWithAdvance=function(e,t,n){this.addAdvanceInstructionIfNecessary(e,n.length?n[0].sourceSpan:null),this.updateInstructionChain(t,n)},e.prototype.addAdvanceInstructionIfNecessary=function(e,t){if(e!==this._currentIndex){var n=e-this._currentIndex;if(n<1)throw new Error("advance instruction can only go forwards");this.instructionFn(this._updateCodeFns,t,tr.advance,[Vt(n)]),this._currentIndex=e}},e.prototype.allocatePureFunctionSlots=function(e){var t=this._pureFunctionSlots;return this._pureFunctionSlots+=e,t},e.prototype.allocateBindingSlots=function(e){this._bindingSlots+=e instanceof Js?e.expressions.length:1},e.prototype.getImplicitReceiverExpr=function(){return this._implicitReceiverExpr?this._implicitReceiverExpr:this._implicitReceiverExpr=0===this.level?Mt("ctx"):this._bindingScope.getOrCreateSharedContextVar(0)},e.prototype.convertPropertyBinding=function(e){var t,n=wo(this,this.getImplicitReceiverExpr(),e,this.bindingContext(),Eo.TrySimple,(function(){return Jt("Unexpected interpolation")})),r=n.currValExpr;return(t=this._tempVariables).push.apply(t,v(n.stmts)),r},e.prototype.getUpdateInstructionArguments=function(e){var t,n=function(e,t,n,r){var i=new Mo(e,t,r,void 0),s=n.visit(i,xo.Expression);i.usesImplicitReceiver&&e.notifyImplicitReceiverUse();var o=Co(i,r),a=s.args.slice(1);if(n instanceof Js){var u=n.strings;3===a.length&&""===u[0]&&""===u[1]?a=[a[1]]:a.length>=19&&(a=[Ft(a)])}return{stmts:o,args:a}}(this,this.getImplicitReceiverExpr(),e,this.bindingContext()),r=n.args,i=n.stmts;return(t=this._tempVariables).push.apply(t,v(i)),r},e.prototype.matchDirectives=function(e,t){var n=this;if(this.directiveMatcher){var r=Pl(e,Ji(t));this.directiveMatcher.match(r,(function(e,t){n.directives.add(t)}))}},e.prototype.getAttributeExpressions=function(e,t,n,r,i,s){void 0===i&&(i=[]),void 0===s&&(s=[]);var o,a,u=new Set,p=[];function l(e,t){"string"==typeof e?u.has(e)||(p.push.apply(p,v(bl(e))),void 0!==t&&p.push(t),u.add(e)):p.push(Vt(e))}if(e.forEach((function(e){"ngProjectAs"===e.name&&(o=e),p.push.apply(p,v(bl(e.name),[Wi(e.value)]))})),o&&p.push.apply(p,v((a=ae(o.value)[0],[Vt(5),Wi(a)]))),r&&r.populateInitialStylingAttrs(p),t.length||n.length){for(var c=p.length,h=0;h<t.length;h++){var f=t[h];4!==f.type&&1!==f.type&&l(f.name)}for(h=0;h<n.length;h++){var d=n[h];1!==d.type&&l(d.name)}p.length!==c&&p.splice(c,0,Vt(3))}return i.length&&(p.push(Vt(4)),i.forEach((function(e){return l(e.name)}))),s.length&&(p.push(Vt(6)),s.forEach((function(e){return l(e.name)}))),p},e.prototype.addToConsts=function(e){if(jt(e))return ot;for(var t=0;t<this._constants.length;t++)if(this._constants[t].isEquivalent(e))return Vt(t);return Vt(this._constants.push(e)-1)},e.prototype.addAttrsToConsts=function(e){return e.length>0?this.addToConsts(Ft(e)):ot},e.prototype.prepareRefsArray=function(e){var t=this;return e&&0!==e.length?Wi(Gn(e.map((function(e){var n=t.allocateDataSlot(),r=t._bindingScope.freshReferenceName(),i=t.level,s=Mt(r);return t._bindingScope.set(i,e.name,s,0,(function(e,t){var r=t>0?[wl(t).toStmt()]:[],i=s.set(It(tr.reference).callFn([Vt(n)]));return r.concat(i.toConstDecl())}),!0),[e.name,e.value]})))):ot},e.prototype.prepareListenerParameter=function(e,t,n){var r=this;return function(){var i=t.name,s=1===t.type?or(i,t.phase):Nn(i),o=r.templateName+"_"+e+"_"+s+"_"+n+"_listener",a=r._bindingScope.nestedScope(r._bindingScope.bindingLevel);return yl(t,o,a)}},e}(),_l=function(e){function t(t,n,r,i){var s=e.call(this)||this;return s.constantPool=t,s.allocateSlot=n,s.allocatePureFunctionSlots=r,s.definePipe=i,s._pipeBindExprs=[],s}return l(t,e),t.prototype.visitPipe=function(e,t){var n=this.allocateSlot(),r="PIPE:"+n,i=this.allocatePureFunctionSlots(2+e.args.length),s=new qs(e.span,e.sourceSpan,new js(e.span,e.sourceSpan),r),o=function(e){var t=El[e.length];return{identifier:t||tr.pipeBindV,isVarLength:!t}}(e.args),a=o.identifier,u=o.isVarLength;this.definePipe(e.name,r,n,It(a));var p=v([e.exp],e.args),l=u?this.visitAll([new $s(e.span,e.sourceSpan,p)]):this.visitAll(p),c=new io(e.span,e.sourceSpan,s,v([new Xs(e.span,e.sourceSpan,n),new Xs(e.span,e.sourceSpan,i)],l));return this._pipeBindExprs.push(c),c},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 ko(e.span,e.sourceSpan,this.visitAll(e.expressions),(function(e){var t=Ft(e);return Cl(n.constantPool,t,n.allocatePureFunctionSlots)}))},t.prototype.visitLiteralMap=function(e,t){var n=this;return new ko(e.span,e.sourceSpan,this.visitAll(e.values),(function(t){var r=Lt(t.map((function(t,n){return{key:e.keys[n].key,value:t,quoted:e.keys[n].quoted}})));return Cl(n.constantPool,r,n.allocatePureFunctionSlots)}))},t}(lo),El=[tr.pipeBind1,tr.pipeBind2,tr.pipeBind3,tr.pipeBind4];var xl=[tr.pureFunction0,tr.pureFunction1,tr.pureFunction2,tr.pureFunction3,tr.pureFunction4,tr.pureFunction5,tr.pureFunction6,tr.pureFunction7,tr.pureFunction8];function Sl(e,t,n){return It(t,null,e).callFn(n,e)}function wl(e){return It(tr.nextContext).callFn(e>1?[Vt(e)]:[])}function Cl(e,t,n){var r=e.getLiteralFactory(t),i=r.literalFactory,s=r.literalFactoryArguments,o=n(1+s.length),a=function(e){var t=xl[e.length];return{identifier:t||tr.pureFunctionV,isVarLength:!t}}(s),u=a.identifier,p=a.isVarLength,l=[Vt(o),i];return p?l.push(Ft(s)):l.push.apply(l,v(s)),It(u).callFn(l)}function bl(e){var t=d(m(e),2),n=t[0],r=Vt(t[1]);return n?[Vt(0),Vt(n),r]:[r]}var Tl=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",Mt("$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&&(n={retrievalLevel:n.retrievalLevel,lhs:n.lhs,declareLocalCallback:n.declareLocalCallback,declare:!1,priority:n.priority,localRef:n.localRef},this.map.set(e,n),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,s){if(void 0===r&&(r=0),this.map.has(t)){if(s)return this;Jt("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:s||!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<this.bindingLevel){var t=this.map.get("$$shared_ctx$$"+e.retrievalLevel);t?t.declare=!0:this.generateSharedContextVar(e.retrievalLevel)}},e.prototype.generateSharedContextVar=function(e){var t=Mt("ctx"+this.freshReferenceName());this.map.set("$$shared_ctx$$"+e,{retrievalLevel:e,lhs:t,declareLocalCallback:function(e,n){return[t.set(wl(n)).toConstDecl()]},declare:!1,priority:2,localRef:!1})},e.prototype.getComponentProperty=function(e){var t=this.map.get("$$shared_ctx$$0");return t.declare=!0,this.maybeRestoreView(0,!1),t.lhs.prop(e)},e.prototype.maybeRestoreView=function(e,t){this.isListenerScope()&&(e<this.bindingLevel||t)&&(this.parent.restoreViewVariable||(this.parent.restoreViewVariable=Mt(this.parent.freshReferenceName())),this.restoreViewVariable=this.parent.restoreViewVariable)},e.prototype.restoreViewStatement=function(){return this.restoreViewVariable?[Sl(null,tr.restoreView,[this.restoreViewVariable]).toStmt()]:[]},e.prototype.viewSnapshotStatements=function(){var e=Sl(null,tr.getCurrentView,[]);return this.restoreViewVariable?[this.restoreViewVariable.set(e).toConstDecl()]:[]},e.prototype.isListenerScope=function(){return this.parent&&this.parent.bindingLevel===this.bindingLevel},e.prototype.variableDeclarations=function(){var e=this,t=0;return Array.from(this.map.values()).filter((function(e){return e.declare})).sort((function(e,t){return t.retrievalLevel-e.retrievalLevel||t.priority-e.priority})).reduce((function(n,r){var i=e.bindingLevel-r.retrievalLevel,s=r.declareLocalCallback(e,i-t);return t=i,n.concat(s)}),[])},e.prototype.freshReferenceName=function(){for(var e=this;e.parent;)e=e.parent;return"_r"+e.referenceNameIndex++},e}();function Pl(e,t){var n=new M,r=m(e)[1];return n.setElement(r),Object.getOwnPropertyNames(t).forEach((function(e){var r=m(e)[1],i=t[e];(n.addAttribute(r,i),"class"===e.toLowerCase())&&i.trim().split(/\s+/).forEach((function(e){return n.addClassName(e)}))})),n}function Nl(e,t,n){void 0===n&&(n={});var r=n.interpolationConfig,i=n.preserveWhitespaces,s=n.enableI18nLegacyMessageIdFormat,o=Ml(r),a=(new Va).parse(e,t,h(h({leadingTriviaChars:vl},n),{tokenizeExpansionForms:!0}));if(a.errors&&a.errors.length>0)return{errors:a.errors,nodes:[],styleUrls:[],styles:[]};var u=a.rootNodes,p=new ol(r,!i,s);u=va(p,u),i||(u=va(new za,u),p.hasI18nMeta&&(u=va(new ol(r,!1),u)));var l=Vp(u,o),c=l.nodes,f=l.errors,d=l.styleUrls,v=l.styles;return f&&f.length>0?{errors:f,nodes:[],styleUrls:[],styles:[]}:{nodes:c,styleUrls:d,styles:v}}var Al=new Dp;function Ml(e){return void 0===e&&(e=cs),new Mu(new Np(new pp),e,Al,null,[])}function Il(e,t){switch(e){case H.HTML:return It(tr.sanitizeHtml);case H.SCRIPT:return It(tr.sanitizeScript);case H.STYLE:return t?It(tr.sanitizeStyle):null;case H.URL:return It(tr.sanitizeUrl);case H.RESOURCE_URL:return It(tr.sanitizeResourceUrl);default:return null}}function kl(e){return e instanceof xr||e instanceof Sr||e instanceof Ir}function Rl(e){return e.every(kl)}function Ol(){return Ot(Mt("ngI18nClosureMode")).notIdentical(Vt("undefined",xe)).and(Mt("ngI18nClosureMode"))}
|
||
/**
|
||
* @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 Fl=[],Ll=/attr\.([^\]]+)/;function Dl(e,t,n){var r=new Yi,i=ae(e.selector);return r.set("type",e.internalType),i.length>0&&r.set("selectors",Wi(i)),e.queries.length>0&&r.set("contentQueries",function(e,t,n){var r,i,s=[],o=[],a=Ui(o,"_t");try{for(var u=f(e),p=u.next();!p.done;p=u.next()){var l=p.value,c=l.static?tr.staticContentQuery:tr.contentQuery;s.push(It(c).callFn(v([Mt("dirIndex")],Wl(l,t))).toStmt());var h=a(),d=It(tr.loadQuery).callFn([]),m=It(tr.queryRefresh).callFn([h.set(d)]),y=Mt("ctx").prop(l.propertyName).set(l.first?h.prop("first"):h);o.push(m.and(y).toStmt())}}catch(e){r={error:e}}finally{try{p&&!p.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}var g=n?n+"_ContentQueries":null;return Dt([new $e("rf",Ee),new $e("ctx",null),new $e("dirIndex",null)],[ml(1,s),ml(2,o)],ge,null,g)}(e.queries,t,e.name)),e.viewQueries.length&&r.set("viewQuery",function(e,t,n){var r=[],i=[],s=Ui(i,"_t");e.forEach((function(e){var n=It(e.static?tr.staticViewQuery:tr.viewQuery).callFn(Wl(e,t));r.push(n.toStmt());var o=s(),a=It(tr.loadQuery).callFn([]),u=It(tr.queryRefresh).callFn([o.set(a)]),p=Mt("ctx").prop(e.propertyName).set(e.first?o.prop("first"):o);i.push(u.and(p).toStmt())}));var o=n?n+"_Query":null;return Dt([new $e("rf",Ee),new $e("ctx",null)],[ml(1,r),ml(2,i)],ge,null,o)}(e.viewQueries,t,e.name)),r.set("hostBindings",function(e,t,n,r,i,s,o){var a=Mt("ctx"),u=new rp(a),p=e.specialAttributes,l=p.styleAttr,c=p.classAttr;void 0!==l&&u.registerStyleAttr(l);void 0!==c&&u.registerClassAttr(c);var h=[],d=[],m=t,y=Xl(e),g=n.createDirectiveHostEventAsts(y,m);if(g&&g.length){var _=function(e,t){var n=[],r=[],i=[];e.forEach((function(e){var i=e.name&&Nn(e.name),s=1===e.type?or(i,e.targetOrPhase):i,o=t&&i?t+"_"+s+"_HostBindingHandler":null,a=yl(br.fromParsedEvent(e),o);1==e.type?r.push(a):n.push(a)})),r.length>0&&i.push(Zi(tr.componentHostSyntheticListener,r).toStmt());n.length>0&&i.push(Zi(tr.listener,n).toStmt());return i}(g,s);h.push.apply(h,v(_))}var E,x=n.createBoundHostProperties(y,m),S=[],w=0;x&&x.forEach((function(e){var t=e.name;u.registerInputBasedOnName(t,e.expression,e.sourceSpan)?w+=2:(S.push(e),w++)}));var C=function(){if(!E){E=new _l(r,(function(){return Jt("Unexpected node")}),(function(e){var t=w;return w+=e,t}),(function(){return Jt("Unexpected pipe")}))}return E},b=[],T=[],P=[];S.forEach((function(e){var t=e.expression.visit(C()),r=Gl(a,t),s=function(e){var t,n=e.name,r=n.match(Ll);r?(n=r[1],t=tr.attribute):e.isAnimation?(n=sr(n),t=tr.updateSyntheticHostBinding):t=tr.hostProperty;return{bindingName:n,instruction:t,isAttribute:!!r}}(e),o=s.bindingName,u=s.instruction,p=s.isAttribute,l=n.calcPossibleSecurityContexts(i,o,p).filter((function(e){return e!==H.NONE})),c=null;l.length&&(c=2===l.length&&l.indexOf(H.URL)>-1&&l.indexOf(H.RESOURCE_URL)>-1?It(tr.sanitizeUrlOrResourceUrl):Il(l[0],p));var h=[Vt(o),r.currValExpr];c&&h.push(c),d.push.apply(d,v(r.stmts)),u===tr.hostProperty?b.push(h):u===tr.attribute?T.push(h):u===tr.updateSyntheticHostBinding?P.push(h):d.push(It(u).callFn(h).toStmt())})),b.length>0&&d.push(Zi(tr.hostProperty,b).toStmt());T.length>0&&d.push(Zi(tr.attribute,T).toStmt());P.length>0&&d.push(Zi(tr.updateSyntheticHostBinding,P).toStmt());var N=function(e){var t,n,r=[];try{for(var i=f(Object.getOwnPropertyNames(e)),s=i.next();!s.done;s=i.next()){var o=s.value,a=e[o];r.push(Vt(o),a)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r}(e.attributes);u.assignHostAttrs(N,o),u.hasBindings&&u.buildUpdateLevelInstructions(C()).forEach((function(e){if(e.calls.length>0){var t=[];e.calls.forEach((function(e){w+=Math.max(e.allocateBindingSlots-2,0),t.push(function(e,t,n){return e.params((function(e){return n(t,e).currValExpr}))}(e,a,Gl))})),d.push(Zi(e.reference,t).toStmt())}}));w&&o.set("hostVars",Vt(w));if(h.length>0||d.length>0){var A=s?s+"_HostBindings":null,M=[];return h.length>0&&M.push(ml(1,h)),d.length>0&&M.push(ml(2,d)),Dt([new $e("rf",Ee),new $e("ctx",null)],M,ge,null,A)}return null}(e.host,e.typeSourceSpan,n,t,e.selector||"",e.name,r)),r.set("inputs",zi(e.inputs,!0)),r.set("outputs",zi(e.outputs)),null!==e.exportAs&&r.set("exportAs",Ft(e.exportAs.map((function(e){return Vt(e)})))),r}function Bl(e,t){var n=[],r=t.providers,i=t.viewProviders;if(r||i){var s=[r||new tt([])];i&&s.push(i),n.push(It(tr.ProvidersFeature).callFn(s))}t.usesInheritance&&n.push(It(tr.InheritDefinitionFeature)),t.fullInheritance&&n.push(It(tr.CopyDefinitionFeature)),t.lifecycle.usesOnChanges&&n.push(It(tr.NgOnChangesFeature).callFn(Fl)),n.length&&e.set("features",Ft(n))}function Vl(e,t,n){var r=Dl(e,t,n);return Bl(r,e),{expression:It(tr.defineDirective).callFn([r.toLiteralMap()]),type:Ql(e,tr.DirectiveDefWithMeta)}}function jl(e,t,n){var r,i,s=Dl(e,t,n);Bl(s,e);var o=e.selector&&M.parse(e.selector),a=o&&o[0];if(a){var u=a.getAttrs();u.length&&s.set("attrs",t.getConstLiteral(Ft(u.map((function(e){return Vt(null!=e?e:void 0)}))),!0))}var p=null;if(e.directives.length>0){var l=new I;try{for(var c=f(e.directives),h=c.next();!h.done;h=c.next()){var d=h.value,v=d.selector,m=d.expression;l.addSelectables(M.parse(v),m)}}catch(e){r={error:e}}finally{try{h&&!h.done&&(i=c.return)&&i.call(c)}finally{if(r)throw r.error}}p=l}var y=e.name,g=y?y+"_Template":null,_=new Set,E=new Set,x=e.changeDetection,S=e.template,w=new gl(t,Tl.ROOT_SCOPE,0,y,null,null,g,p,_,e.pipes,E,tr.namespaceHTML,e.relativeContextFilePath,e.i18nUseExternalIds),C=w.buildTemplateFunction(S.nodes,[]),b=w.getNgContentSelectors();b&&s.set("ngContentSelectors",b),s.set("decls",Vt(w.getConstCount())),s.set("vars",Vt(w.getVarCount()));var T=w.getConsts();if(T.length>0&&s.set("consts",Ft(T)),s.set("template",C),_.size){var A=Ft(Array.from(_));e.wrapDirectivesAndPipesInClosure&&(A=Dt([],[new ct(A)])),s.set("directives",A)}if(E.size){var k=Ft(Array.from(E));e.wrapDirectivesAndPipesInClosure&&(k=Dt([],[new ct(k)])),s.set("pipes",k)}if(null===e.encapsulation&&(e.encapsulation=P.Emulated),e.styles&&e.styles.length){var R=(e.encapsulation==P.Emulated?function(e,t,n){var r=new Ro;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 Vt(e)}));s.set("styles",Ft(R))}else e.encapsulation===P.Emulated&&(e.encapsulation=P.None);return e.encapsulation!==P.Emulated&&s.set("encapsulation",Vt(e.encapsulation)),null!==e.animations&&s.set("data",Lt([{key:"animation",value:e.animations,quoted:!1}])),null!=x&&x!==N.Default&&s.set("changeDetection",Vt(x)),{expression:It(tr.defineComponent).callFn([s.toLiteralMap()]),type:Ql(e,tr.ComponentDefWithMeta)}}function Ul(e,t,n){throw new Error("unsupported")}function Hl(e,t){return e.map((function(e){var n=null;return e.read&&e.read.identifier&&(n=t.importExpr(e.read.identifier.reference)),{propertyName:e.propertyName,first:e.first,predicate:ql(e.selectors,t),descendants:e.descendants,read:n,static:!!e.static}}))}function ql(e,t){if(e.length>1||1==e.length&&e[0].value){var n=e.map((function(e){return e.value}));return n.some((function(e){return!e}))&&Jt("Found a type among the string selectors expected"),t.constantPool.getConstLiteral(Ft(n.map((function(e){return Vt(e)}))))}if(1==e.length){var r=e[0];if(r.identifier)return t.importExpr(r.identifier.reference)}return Jt("Unexpected query form"),st}function Wl(e,t){var n=[Qi(e,t),Vt(e.descendants)];return e.read&&n.push(e.read),n}function zl(e){return Rt(Lt(Object.keys(e).map((function(t){return{key:t,value:Vt(Array.isArray(e[t])?e[t][0]:e[t]),quoted:!0}}))))}function Kl(e){return e.length>0?Rt(Ft(e.map((function(e){return Vt(e)})))):Se}function Ql(e,t){var n,r=null!==e.selector?e.selector.replace(/\n/g,""):null;return Rt(It(t,[ir(e.type.type,e.typeArgumentCount),null!==r?(n=r,Rt(Vt(n))):Se,null!==e.exportAs?Kl(e.exportAs):Se,zl(e.inputs),zl(e.outputs),Kl(e.queries.map((function(e){return e.propertyName})))]))}function Gl(e,t){return wo(null,e,t,"b",Eo.TrySimple,(function(){return Jt("Unexpected interpolation")}))}function Xl(e){return{hostAttributes:{},hostListeners:e.listeners,hostProperties:e.properties}}function $l(e,t){var n=Array.from(e).map((function(e){var n=d(e,2),r=n[0],i=n[1];return[r,t.importExpr(i)]}));return new Map(n)}var Yl=/^(?:\[([^\]]+)\])|(?:\(([^\)]+)\))$/;function Jl(e){var t,n,r={},i={},s={},o={};try{for(var a=f(Object.keys(e)),u=a.next();!u.done;u=a.next()){var p=u.value,l=e[p],c=p.match(Yl);if(null===c)switch(p){case"class":if("string"!=typeof l)throw new Error("Class binding must be string");o.classAttr=l;break;case"style":if("string"!=typeof l)throw new Error("Style binding must be string");o.styleAttr=l;break;default:r[p]="string"==typeof l?Vt(l):l}else if(null!=c[1]){if("string"!=typeof l)throw new Error("Property binding must be string");s[c[1]]=l}else if(null!=c[2]){if("string"!=typeof l)throw new Error("Event binding must be string");i[c[2]]=l}}}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:s,specialAttributes:o}}function Zl(e,t){var n=Xl(e),r=Ml();return r.createDirectiveHostEventAsts(n,t),r.createBoundHostProperties(n,t),r.errors}var ec=function(){function e(){}return e.prototype.get=function(e){return""},e}(),tc=function(){function e(e){void 0===e&&(e=new bs),this.jitEvaluator=e,this.R3ResolvedDependencyType=$i,this.R3FactoryTarget=Xi,this.ResourceLoader=ec,this.elementSchemaRegistry=new Dp}return e.prototype.compilePipe=function(e,t,n){var r=Rs({name:n.name,type:oc(n.type),internalType:new Me(n.type),typeArgumentCount:n.typeArgumentCount,deps:hc(n.deps),pipeName:n.pipeName,pure:n.pure});return this.jitExpression(r.expression,e,t,[])},e.prototype.compileInjectable=function(e,t,n){var r=ss({name:n.name,type:oc(n.type),internalType:new Me(n.type),typeArgumentCount:n.typeArgumentCount,providedIn:lc(n.providedIn),useClass:pc(n,nc),useFactory:pc(n,rc),useValue:pc(n,ic),useExisting:pc(n,sc),userDeps:hc(n.userDeps)||void 0}),i=r.expression,s=r.statements;return this.jitExpression(i,e,t,s)},e.prototype.compileInjector=function(e,t,n){var r=Ms({name:n.name,type:oc(n.type),internalType:new Me(n.type),deps:hc(n.deps),providers:new Me(n.providers),imports:n.imports.map((function(e){return new Me(e)}))});return this.jitExpression(r.expression,e,t,r.statements)},e.prototype.compileNgModule=function(e,t,n){var r=As({type:oc(n.type),internalType:new Me(n.type),adjacentType:new Me(n.type),bootstrap:n.bootstrap.map(oc),declarations:n.declarations.map(oc),imports:n.imports.map(oc),exports:n.exports.map(oc),emitInline:!0,containsForwardDecls:!1,schemas:n.schemas?n.schemas.map(oc):null,id:n.id?new Me(n.id):null});return this.jitExpression(r.expression,e,t,[])},e.prototype.compileDirective=function(e,t,n){var r=new yn,i=Ml(),s=Vl(uc(n),r,i);return this.jitExpression(s.expression,e,t,r.statements)},e.prototype.compileComponent=function(e,t,n){var r=new yn,i=n.interpolation?ls.fromArray(n.interpolation):cs,s=Nl(n.template,t,{preserveWhitespaces:n.preserveWhitespaces,interpolationConfig:i});if(void 0!==s.errors){var o=s.errors.map((function(e){return e.toString()})).join(", ");throw new Error("Errors during JIT compilation of template for "+n.name+": "+o)}var a=jl(h(h(h({},n),uc(n)),{selector:n.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:s,wrapDirectivesAndPipesInClosure:!1,styles:v(n.styles,s.styles),encapsulation:n.encapsulation,interpolation:i,changeDetection:n.changeDetection,animations:null!=n.animations?new Me(n.animations):null,viewProviders:null!=n.viewProviders?new Me(n.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),r,Ml(i)),u="ng:///"+n.name+".js";return this.jitExpression(a.expression,e,u,r.statements)},e.prototype.compileFactory=function(e,t,n){var r=ts({name:n.name,type:oc(n.type),internalType:new Me(n.type),typeArgumentCount:n.typeArgumentCount,deps:hc(n.deps),injectFn:"directiveInject"===n.injectFn?Sn.directiveInject:Sn.inject,target:n.target});return this.jitExpression(r.factory,e,t,r.statements)},e.prototype.createParseSourceSpan=function(e,t,n){return Er(e,t,n)},e.prototype.jitExpression=function(e,t,n,r){var i=v(r,[new ut("$def",e,void 0,[qe.Exported])]);return this.jitEvaluator.evaluateStatements(n,i,new Ps(t),!0).$def},e}(),nc=Object.keys({useClass:null})[0],rc=Object.keys({useFactory:null})[0],ic=Object.keys({useValue:null})[0],sc=Object.keys({useExisting:null})[0],oc=function(e){var t=new Me(e);return{value:t,type: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 ac(e){return h(h({},e),{predicate:Array.isArray(e.predicate)?e.predicate:new Me(e.predicate),read:e.read?new Me(e.read):null,static:e.static})}function uc(e){var t=dc(e.inputs||[]),n=dc(e.outputs||[]),r=e.propMetadata,i={},s={},o=function(e){r.hasOwnProperty(e)&&r[e].forEach((function(t){"Input"===t.ngMetadataName?i[e]=t.bindingPropertyName?[t.bindingPropertyName,e]:e:function(e){return"Output"===e.ngMetadataName}(t)&&(s[e]=t.bindingPropertyName||e)}))};for(var a in r)o(a);return h(h({},e),{typeSourceSpan:e.typeSourceSpan,type:oc(e.type),internalType:new Me(e.type),deps:hc(e.deps),host:fc(e.propMetadata,e.typeSourceSpan,e.host),inputs:h(h({},t),i),outputs:h(h({},n),s),queries:e.queries.map(ac),providers:null!=e.providers?new Me(e.providers):null,viewQueries:e.viewQueries.map(ac),fullInheritance:!1})}function pc(e,t){return e.hasOwnProperty(t)?new Me(e[t]):void 0}function lc(e){return null==e||"string"==typeof e?new De(e):new Me(e)}function cc(e){return{token:null===e.token?new De(null):e.resolved===$i.Attribute?new De(e.token):new Me(e.token),resolved:e.resolved,host:e.host,optional:e.optional,self:e.self,skipSelf:e.skipSelf}}function hc(e){return null==e?null:e.map(cc)}function fc(e,t,n){var r=Jl(n||{}),i=Zl(r,t);if(i.length)throw new Error(i.map((function(e){return e.msg})).join("\n"));var s=function(t){e.hasOwnProperty(t)&&e[t].forEach((function(e){"HostBinding"===e.ngMetadataName?r.properties[e.hostPropertyName||t]=t:function(e){return"HostListener"===e.ngMetadataName}(e)&&(r.listeners[e.eventName||t]=t+"("+(e.args||[]).join(",")+")")}))};for(var o in e)s(o);return r}function dc(e){return e.reduce((function(e,t){var n=d(t.split(",").map((function(e){return e.trim()})),2),r=n[0],i=n[1];return e[r]=i||r,e}),{})}function vc(e){(e.ng||(e.ng={})).ɵcompilerFacade=new tc}
|
||
/**
|
||
* @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=new pn("9.0.5"),yc=function(e){var t=void 0===e?{}:e,n=t.defaultEncapsulation,r=void 0===n?P.Emulated:n,i=t.useJit,s=void 0===i||i,o=t.jitDevMode,a=void 0!==o&&o,u=t.missingTranslation,p=void 0===u?null:u,l=t.preserveWhitespaces,c=t.strictInjectionParameters;this.defaultEncapsulation=r,this.useJit=!!s,this.jitDevMode=!!a,this.missingTranslation=p,this.preserveWhitespaces=gc(Qt(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 gc(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 _c=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(Kt(e.template)){if(Kt(e.templateUrl))throw Zt("'"+on(e.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof e.template)throw Zt("The template specified for component "+on(e.componentType)+" is not a string")}else{if(!Kt(e.templateUrl))throw Zt("No template specified for component "+on(e.componentType));if("string"!=typeof e.templateUrl)throw Zt("The templateUrl specified for component "+on(e.componentType)+" is not a string")}if(Kt(e.preserveWhitespaces)&&"boolean"!=typeof e.preserveWhitespaces)throw Zt("The preserveWhitespaces option for component "+on(e.componentType)+" must be a boolean");return $t(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)),$t(t,(function(t){return r._preparseLoadedTemplate(e,t,n)}))},e.prototype._preparseLoadedTemplate=function(e,t,n){var r=!!e.template,i=ls.fromArray(e.interpolation),s=$n({reference:e.ngModuleType},{type:{reference:e.componentType}},{isInline:r,templateUrl:n}),o=this._htmlParser.parse(t,s,{tokenizeExpansionForms:!0,interpolationConfig:i});if(o.errors.length>0)throw Zt("Template parse errors:\n"+o.errors.join("\n"));var a=this._normalizeStylesheet(new Vn({styles:e.styles,moduleUrl:e.moduleUrl})),u=new Ec;va(u,o.rootNodes);var p=this._normalizeStylesheet(new Vn({styles:u.styles,styleUrls:u.styleUrls,moduleUrl:n}));return{template:t,templateUrl:n,isInline:r,htmlAst:o,styles:a.styles.concat(p.styles),inlineStyleUrls:a.styleUrls.concat(p.styleUrls),styleUrls:this._normalizeStylesheet(new Vn({styleUrls:e.styleUrls,moduleUrl:e.moduleUrl})).styleUrls,ngContentSelectors:u.ngContentSelectors}},e.prototype._normalizeTemplateMetadata=function(e,t){var n=this;return $t(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=v(t.styles);this._inlineStyles(t.inlineStyleUrls,n,i);var s=t.styleUrls,o=s.map((function(e){var t=n.get(e),i=v(t.styles);return r._inlineStyles(t.styleUrls,n,i),new Vn({moduleUrl:e,styles:i})})),a=e.encapsulation;return null==a&&(a=this._config.defaultEncapsulation),a===P.Emulated&&0===i.length&&0===s.length&&(a=P.None),new jn({encapsulation:a,template:t.template,templateUrl:t.templateUrl,htmlAst:t.htmlAst,styles:i,styleUrls:s,ngContentSelectors:t.ngContentSelectors,animations:e.animations,interpolation:e.interpolation,isInline:t.isInline,externalStylesheets:o,preserveWhitespaces:gc(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=this;return void 0===t&&(t=new Map),$t(Yt(e.filter((function(e){return!t.has(e)})).map((function(e){return $t(n._fetch(e),(function(r){var i=n._normalizeStylesheet(new Vn({styles:[r],moduleUrl:e}));return t.set(e,i),n._loadMissingExternalStylesheets(i.styleUrls,t)}))}))),(function(e){return t}))},e.prototype._normalizeStylesheet=function(e){var t=this,n=e.moduleUrl,r=e.styleUrls.filter(Tu).map((function(e){return t._urlResolver.resolve(n,e)})),i=e.styles.map((function(e){var i,s,o,a,u=(i=t._urlResolver,s=n,o=[],a=e.replace(Nu,"").replace(Pu,(function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[1]||e[2];return Tu(n)?(o.push(i.resolve(s,n)),""):e[0]})),new bu(a,o));return r.push.apply(r,v(u.styleUrls)),u.style}));return new Vn({styles:i,styleUrls:r,moduleUrl:n})},e}(),Ec=function(){function e(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return e.prototype.visitElement=function(e,t){var n=Fu(e);switch(n.type){case Ou.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case Ou.STYLE:var r="";e.children.forEach((function(e){e instanceof pa&&(r+=e.value)})),this.styles.push(r);break;case Ou.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,va(this,e.children),n.nonBindable&&this.ngNonBindableStackCount--,null},e.prototype.visitExpansion=function(e,t){va(this,e.cases)},e.prototype.visitExpansionCase=function(e,t){va(this,e.expression)},e.prototype.visitComment=function(e,t){return null},e.prototype.visitAttribute=function(e,t){return null},e.prototype.visitText=function(e,t){return null},e}(),xc=[j,V,B,D],Sc=function(){function e(e){this._reflector=e}return e.prototype.isDirective=function(e){var t=this._reflector.annotations(an(e));return t&&t.some(wc)},e.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=this._reflector.annotations(an(e));if(n){var r=Cc(n,wc);if(r){var i=this._reflector.propMetadata(e),s=this._reflector.guards(e);return this._mergeWithPropertyMetadata(r,i,s,e)}}if(t)throw new Error("No Directive annotation found on "+on(e));return null},e.prototype._mergeWithPropertyMetadata=function(e,t,n,r){var i=[],s=[],o={},a={};return Object.keys(t).forEach((function(e){var n=Cc(t[e],(function(e){return K.isTypeOf(e)}));n&&(n.bindingPropertyName?i.push(e+": "+n.bindingPropertyName):i.push(e));var r=Cc(t[e],(function(e){return Q.isTypeOf(e)}));r&&(r.bindingPropertyName?s.push(e+": "+r.bindingPropertyName):s.push(e)),t[e].filter((function(e){return G.isTypeOf(e)})).forEach((function(t){if(t.hostPropertyName){var n=t.hostPropertyName[0];if("("===n)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===n)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");o["["+t.hostPropertyName+"]"]=e}else o["["+e+"]"]=e})),t[e].filter((function(e){return X.isTypeOf(e)})).forEach((function(t){var n=t.args||[];o["("+t.eventName+")"]=e+"("+n.join(",")+")"}));var u=Cc(t[e],(function(e){return xc.some((function(t){return t.isTypeOf(e)}))}));u&&(a[e]=u)})),this._merge(e,i,s,o,a,n,r)},e.prototype._extractPublicName=function(e){return qt(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 s=e[i],o=this._extractPublicName(s);n.add(o),t.has(o)||(t.add(o),r.push(s))}return r.reverse()},e.prototype._merge=function(e,t,n,r,i,s,o){var a=this._dedupeBindings(e.inputs?e.inputs.concat(t):t),u=this._dedupeBindings(e.outputs?e.outputs.concat(n):n),p=e.host?h(h({},e.host),r):r,l=e.queries?h(h({},e.queries),i):i;if(W.isTypeOf(e)){var c=e;return W({selector:c.selector,inputs:a,outputs:u,host:p,exportAs:c.exportAs,moduleId:c.moduleId,queries:l,changeDetection:c.changeDetection,providers:c.providers,viewProviders:c.viewProviders,entryComponents:c.entryComponents,template:c.template,templateUrl:c.templateUrl,styles:c.styles,styleUrls:c.styleUrls,encapsulation:c.encapsulation,animations:c.animations,interpolation:c.interpolation,preserveWhitespaces:e.preserveWhitespaces})}return U({selector:e.selector,inputs:a,outputs:u,host:p,exportAs:e.exportAs,queries:l,providers:e.providers,guards:s})},e}();function wc(e){return U.isTypeOf(e)||W.isTypeOf(e)}function Cc(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 bc=function(e){function t(t,n){return e.call(this,t,n)||this}return l(t,e),t}(gr),Tc=/^i18n:?/,Pc=!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 Nc,Ac=function(e,t){this.messages=e,this.errors=t};!function(e){e[e.Extract=0]="Extract",e[e.Merge=1]="Merge"}(Nc||(Nc={}));var Mc=function(){function e(e,t){this._implicitTags=e,this._implicitAttrs=t}return e.prototype.extract=function(e,t){var n=this;return this._init(Nc.Extract,t),e.forEach((function(e){return e.visit(n,null)})),this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new Ac(this._messages,this._errors)},e.prototype.merge=function(e,t,n){this._init(Nc.Merge,n),this._translations=t;var r=new fa("wrapper",[],e,void 0,void 0,void 0).visit(this,null);return this._inI18nBlock&&this._reportError(e[e.length-1],"Unclosed block"),new Fa(r.children,this._errors)},e.prototype.visitExpansionCase=function(e,t){var n=va(this,e.expression,t);if(this._mode===Nc.Merge)return new ca(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=va(this,e.cases,t);return this._mode===Nc.Merge&&(e=new la(e.switchValue,e.type,r,e.sourceSpan,e.switchValueSourceSpan)),this._inIcu=n,e},e.prototype.visitComment=function(e,t){var n,r=!!((n=e)instanceof da&&n.value&&n.value.startsWith("i18n"));if(r&&this._isInTranslatableSection)this._reportError(e,"Could not start a block inside a translatable section");else{var i=function(e){return!!(e instanceof da&&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 va(this,this._translateMessage(e,s))}return void this._reportError(e,"I18N blocks should not cross element boundaries")}}else if(r){if(!Pc&&console&&console.warn){Pc=!0;var o=e.sourceSpan.details?", "+e.sourceSpan.details:"";console.warn("I18n comments are deprecated, use an <ng-container> element instead ("+e.sourceSpan.start+o+")")}this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=e.value.replace(Tc,"").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,s=[],o=void 0,a=e.attrs.find((function(e){return"i18n"===e.name}))||null,u=a?a.value:"",p=this._implicitTags.some((function(t){return e.name===t}))&&!this._inIcu&&!this._isInTranslatableSection,l=!i&&p;if(this._inImplicitNode=i||p,this._isInTranslatableSection||this._inIcu)(a||l)&&this._reportError(e,"Could not mark an element as translatable inside a translatable section"),this._mode==Nc.Extract&&va(this,e.children);else{if(a||l){this._inI18nNode=!0;var c=this._addMessage(e.children,u);o=this._translateMessage(e,c)}if(this._mode==Nc.Extract){var h=a||l;h&&this._openTranslatableSection(e),va(this,e.children),h&&this._closeTranslatableSection(e,e.children)}}this._mode===Nc.Merge&&(o||e.children).forEach((function(e){var r=e.visit(n,t);r&&!n._isInTranslatableSection&&(s=s.concat(r))}));if(this._visitAttributesOf(e),this._depth--,this._inI18nNode=r,this._inImplicitNode=i,this._mode===Nc.Merge){var f=this._translateAttributes(e);return new fa(e.name,f,s,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=tl(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 ha&&!e[0].value)return null;var n=Ic(t),r=n.meaning,i=n.description,s=n.id,o=this._createI18nMessage(e,r,i,s);return this._messages.push(o),o},e.prototype._translateMessage=function(e,t){if(t&&this._mode===Nc.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)]=Ic(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 s=r[n.name],o=s.meaning,a=s.description,u=s.id,p=t._createI18nMessage([n],o,a,u),l=t._translations.get(p);if(l)if(0==l.length)i.push(new ha(n.name,"",n.sourceSpan));else if(l[0]instanceof pa){var c=l[0].value;i.push(new ha(n.name,c,n.sourceSpan))}else t._reportError(e,'Unexpected translation for attribute "'+n.name+'" (id="'+(u||t._translations.digest(p))+'")');else t._reportError(e,'Translation unavailable for attribute "'+n.name+'" (id="'+(u||t._translations.digest(p))+'")')}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 da?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 Fr)){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 bc(e.sourceSpan,t))},e}();function Ic(e){if(!e)return{meaning:"",description:"",id:""};var t=e.indexOf("@@"),n=e.indexOf("|"),r=d(t>-1?[e.slice(0,t),e.slice(t+2)]:[e,""],2),i=r[0],s=r[1],o=d(n>-1?[i.slice(0,n),i.slice(n+1)]:["",i],2);return{meaning:o[0],description:o[1],id:s.trim()}}
|
||
/**
|
||
* @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 kc=new(function(){function e(){this.closedByParent=!1,this.contentType=c.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 Rc(e){return kc}
|
||
/**
|
||
* @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 Oc=function(e){function t(){return e.call(this,Rc)||this}return l(t,e),t.prototype.parse=function(t,n,r){return e.prototype.parse.call(this,t,n,r)},t}(La),Fc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.write=function(e,t){var n=new Lc,r=[];e.forEach((function(e){var t,i=[];e.sources.forEach((function(e){var t=new yi("context-group",{purpose:"location"});t.children.push(new _i(10),new yi("context",{"context-type":"sourcefile"},[new gi(e.filePath)]),new _i(10),new yi("context",{"context-type":"linenumber"},[new gi(""+e.startLine)]),new _i(8)),i.push(new _i(8),t)}));var s=new yi("trans-unit",{id:e.id,datatype:"html"});(t=s.children).push.apply(t,v([new _i(8),new yi("source",{},n.serialize(e.nodes))],i)),e.description&&s.children.push(new _i(8),new yi("note",{priority:"1",from:"description"},[new gi(e.description)])),e.meaning&&s.children.push(new _i(8),new yi("note",{priority:"1",from:"meaning"},[new gi(e.meaning)])),s.children.push(new _i(6)),r.push(new _i(6),s)}));var i=new yi("body",{},v(r,[new _i(4)])),s=new yi("file",{"source-language":t||"en",datatype:"plaintext",original:"ng2.template"},[new _i(4),i,new _i(2)]),o=new yi("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new _i(2),s,new _i]);return di([new vi({version:"1.0",encoding:"UTF-8"}),new _i,o,new _i])},t.prototype.load=function(e,t){var n=(new Dc).parse(e,t),r=n.locale,i=n.msgIdToHtml,s=n.errors,o={},a=new Bc;if(Object.keys(i).forEach((function(e){var n=a.convert(i[e],t),r=n.i18nNodes,u=n.errors;s.push.apply(s,v(u)),o[e]=r})),s.length)throw new Error("xliff parse errors:\n"+s.join("\n"));return{locale:r,i18nNodesByMsgId:o}},t.prototype.digest=function(e){return qr(e)},t}(ci),Lc=function(){function e(){}return e.prototype.visitText=function(e,t){return[new gi(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach((function(e){return r.push.apply(r,v(e.visit(n)))})),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new gi("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach((function(t){r.push.apply(r,v([new gi(t+" {")],e.cases[t].visit(n),[new gi("} ")]))})),r.push(new gi("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=function(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 yi("x",{id:e.startName,ctype:n,"equiv-text":"<"+e.tag+"/>"})];var r=new yi("x",{id:e.startName,ctype:n,"equiv-text":"<"+e.tag+">"}),i=new yi("x",{id:e.closeName,ctype:n,"equiv-text":"</"+e.tag+">"});return v([r],this.serialize(e.children),[i])},e.prototype.visitPlaceholder=function(e,t){return[new yi("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 yi("x",{id:e.name,"equiv-text":n})]},e.prototype.serialize=function(e){var t=this;return[].concat.apply([],v(e.map((function(e){return e.visit(t)}))))},e}(),Dc=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._unitMlString=null,this._msgIdToHtml={};var n=(new Oc).parse(e,t);return this._errors=n.errors,va(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):(va(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,'<trans-unit> misses the "id" attribute');break;case"source":case"seg-source":case"alt-trans":break;case"target":var i=e.startSourceSpan.end.offset,s=e.endSourceSpan.start.offset,o=e.startSourceSpan.start.file.content.slice(i,s);this._unitMlString=o;break;case"file":var a=e.attrs.find((function(e){return"target-language"===e.name}));a&&(this._locale=a.value),va(this,e.children,null);break;default:va(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 bc(e.sourceSpan,t))},e}(),Bc=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new Oc).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],v(va(this,n.rootNodes))),errors:this._errors}},e.prototype.visitText=function(e,t){return new Fr(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 Vr("",n.value,e.sourceSpan):(this._addError(e,'<x> misses the "id" attribute'),null)}return"mrk"===e.name?[].concat.apply([],v(va(this,e.children))):(this._addError(e,"Unexpected tag"),null)},e.prototype.visitExpansion=function(e,t){var n={};return va(this,e.cases).forEach((function(t){n[t.value]=new Lr(t.nodes,e.sourceSpan)})),new Dr(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:va(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 bc(e.sourceSpan,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 Vc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.write=function(e,t){var n=new jc,r=[];e.forEach((function(e){var t=new yi("unit",{id:e.id}),i=new yi("notes");(e.description||e.meaning)&&(e.description&&i.children.push(new _i(8),new yi("note",{category:"description"},[new gi(e.description)])),e.meaning&&i.children.push(new _i(8),new yi("note",{category:"meaning"},[new gi(e.meaning)]))),e.sources.forEach((function(e){i.children.push(new _i(8),new yi("note",{category:"location"},[new gi(e.filePath+":"+e.startLine+(e.endLine!==e.startLine?","+e.endLine:""))]))})),i.children.push(new _i(6)),t.children.push(new _i(6),i);var s=new yi("segment");s.children.push(new _i(8),new yi("source",{},n.serialize(e.nodes)),new _i(6)),t.children.push(new _i(6),s,new _i(4)),r.push(new _i(4),t)}));var i=new yi("file",{original:"ng.template",id:"ngi18n"},v(r,[new _i(2)])),s=new yi("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:t||"en"},[new _i(2),i,new _i]);return di([new vi({version:"1.0",encoding:"UTF-8"}),new _i,s,new _i])},t.prototype.load=function(e,t){var n=(new Uc).parse(e,t),r=n.locale,i=n.msgIdToHtml,s=n.errors,o={},a=new Hc;if(Object.keys(i).forEach((function(e){var n=a.convert(i[e],t),r=n.i18nNodes,u=n.errors;s.push.apply(s,v(u)),o[e]=r})),s.length)throw new Error("xliff2 parse errors:\n"+s.join("\n"));return{locale:r,i18nNodesByMsgId:o}},t.prototype.digest=function(e){return zr(e)},t}(ci),jc=function(){function e(){}return e.prototype.visitText=function(e,t){return[new gi(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach((function(e){return r.push.apply(r,v(e.visit(n)))})),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new gi("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach((function(t){r.push.apply(r,v([new gi(t+" {")],e.cases[t].visit(n),[new gi("} ")]))})),r.push(new gi("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=this,r=function(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 yi("ph",{id:(this._nextPlaceholderId++).toString(),equiv:e.startName,type:r,disp:"<"+e.tag+"/>"})];var i=new yi("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:e.startName,equivEnd:e.closeName,type:r,dispStart:"<"+e.tag+">",dispEnd:"</"+e.tag+">"}),s=[].concat.apply([],v(e.children.map((function(e){return e.visit(n)}))));return s.length?s.forEach((function(e){return i.children.push(e)})):i.children.push(new gi("")),[i]},e.prototype.visitPlaceholder=function(e,t){var n=(this._nextPlaceholderId++).toString();return[new yi("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 yi("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([],v(e.map((function(e){return e.visit(t)}))))},e}(),Uc=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._unitMlString=null,this._msgIdToHtml={};var n=(new Oc).parse(e,t);return this._errors=n.errors,va(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):(va(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,'<unit> misses the "id" attribute');break;case"source":break;case"target":var i=e.startSourceSpan.end.offset,s=e.endSourceSpan.start.offset,o=e.startSourceSpan.start.file.content.slice(i,s);this._unitMlString=o;break;case"xliff":var a=e.attrs.find((function(e){return"trgLang"===e.name}));a&&(this._locale=a.value);var u=e.attrs.find((function(e){return"version"===e.name}));if(u){var p=u.value;"2.0"!==p?this._addError(e,"The XLIFF file version "+p+" is not compatible with XLIFF 2.0 serializer"):va(this,e.children,null)}break;default:va(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 bc(e.sourceSpan,t))},e}(),Hc=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new Oc).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],v(va(this,n.rootNodes))),errors:this._errors}},e.prototype.visitText=function(e,t){return new Fr(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 Vr("",r.value,e.sourceSpan)];this._addError(e,'<ph> misses the "equiv" attribute');break;case"pc":var i=e.attrs.find((function(e){return"equivStart"===e.name})),s=e.attrs.find((function(e){return"equivEnd"===e.name}));if(i){if(s){var o=i.value,a=s.value,u=[];return u.concat.apply(u,v([new Vr("",o,e.sourceSpan)],e.children.map((function(e){return e.visit(n,null)})),[new Vr("",a,e.sourceSpan)]))}this._addError(e,'<ph> misses the "equivEnd" attribute')}else this._addError(e,'<ph> misses the "equivStart" attribute');break;case"mrk":return[].concat.apply([],v(va(this,e.children)));default:this._addError(e,"Unexpected tag")}return null},e.prototype.visitExpansion=function(e,t){var n={};return va(this,e.cases).forEach((function(t){n[t.value]=new Lr(t.nodes,e.sourceSpan)})),new Dr(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:[].concat.apply([],v(va(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 bc(e.sourceSpan,t))},e}();var qc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.write=function(e,t){throw new Error("Unsupported")},t.prototype.load=function(e,t){var n=(new Wc).parse(e,t),r=n.locale,i=n.msgIdToHtml,s=n.errors,o={},a=new zc;if(Object.keys(i).forEach((function(e){!function(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var r=n();return Object.defineProperty(e,t,{enumerable:!0,value:r}),r},set:function(e){throw new Error("Could not overwrite an XTB translation")}})}(o,e,(function(){var n=a.convert(i[e],t),r=n.i18nNodes,s=n.errors;if(s.length)throw new Error("xtb parse errors:\n"+s.join("\n"));return r}))})),s.length)throw new Error("xtb parse errors:\n"+s.join("\n"));return{locale:r,i18nNodesByMsgId:o}},t.prototype.digest=function(e){return Ci(e)},t.prototype.createNameMapper=function(e){return new hi(e,Ti)},t}(ci);var Wc=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._bundleDepth=0,this._msgIdToHtml={};var n=(new Oc).parse(e,t);return this._errors=n.errors,va(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,"<translationbundle> elements can not be nested");var n=e.attrs.find((function(e){return"lang"===e.name}));n&&(this._locale=n.value),va(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 s=e.startSourceSpan.end.offset,o=e.endSourceSpan.start.offset,a=e.startSourceSpan.start.file.content.slice(s,o);this._msgIdToHtml[i]=a}}else this._addError(e,'<translation> 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 bc(e.sourceSpan,t))},e}(),zc=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new Oc).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:va(this,n.rootNodes),errors:this._errors}},e.prototype.visitText=function(e,t){return new Fr(e.value,e.sourceSpan)},e.prototype.visitExpansion=function(e,t){var n={};return va(this,e.cases).forEach((function(t){n[t.value]=new Lr(t.nodes,e.sourceSpan)})),new Dr(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:va(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 Vr("",n.value,e.sourceSpan);this._addError(e,'<ph> 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 bc(e.sourceSpan,t))},e}(),Kc=function(){function e(e,t,n,r,i,s){void 0===e&&(e={}),void 0===i&&(i=q.Warning),this._i18nNodesByMsgId=e,this.digest=n,this.mapperFactory=r,this._i18nToHtml=new Qc(e,t,n,r,i,s)}return e.load=function(t,n,r,i,s){var o=r.load(t,n),a=o.locale;return new e(o.i18nNodesByMsgId,a,(function(e){return r.digest(e)}),(function(e){return r.createNameMapper(e)}),i,s)},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}(),Qc=function(){function e(e,t,n,r,i,s){void 0===e&&(e={}),this._i18nNodesByMsgId=e,this._locale=t,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=i,this._console=s,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 Va).parse(t,n,{tokenizeExpansionForms:!0});return{nodes:r.rootNodes,errors:v(this._errors,r.errors)}},e.prototype.visitText=function(e,t){return xi(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("")+"</"+r+">"},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;if(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};else{if(this._missingTranslationStrategy===q.Error){var s=this._locale?' for locale "'+this._locale+'"':"";this._addError(e.nodes[0],'Missing translation for message "'+r+'"'+s)}else if(this._console&&this._missingTranslationStrategy===q.Warning){s=this._locale?' for locale "'+this._locale+'"':"";this._console.warn('Missing translation for message "'+r+'"'+s)}t=e.nodes,this._mapper=function(e){return e}}var o=t.map((function(e){return e.visit(n)})).join(""),a=this._contextStack.pop();return this._srcMsg=a.msg,this._mapper=a.mapper,o},e.prototype._addError=function(e,t){this._errors.push(new bc(e.sourceSpan,t))},e}(),Gc=function(){function e(e,t,n,r,i){if(void 0===r&&(r=q.Warning),this._htmlParser=e,t){var s=function(e){switch(e=(e||"xlf").toLowerCase()){case"xmb":return new Si;case"xtb":return new qc;case"xliff2":case"xlf2":return new Vc;case"xliff":case"xlf":default:return new Fc}}
|
||
/**
|
||
* @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=Kc.load(t,"i18n",s,r,i)}else this._translationBundle=new Kc({},null,qr,void 0,r,i)}return e.prototype.parse=function(e,t,n){void 0===n&&(n={});var r=n.interpolationConfig||cs,i=this._htmlParser.parse(e,t,h({interpolationConfig:r},n));return i.errors.length?new Fa(i.rootNodes,i.errors):function(e,t,n,r,i){return new Mc(r,i).merge(e,t,n)}(i.rootNodes,this._translationBundle,r,[],{})},e}();function Xc(e,t,n){return void 0===n&&(n=null),zt(t,new $c(e),n)}var $c=function(){function e(e){this.ctx=e}return e.prototype.visitArray=function(e,t){var n=this;return Ft(e.map((function(e){return zt(e,n,null)})),t)},e.prototype.visitStringMap=function(e,t){var n=this,r=[],i=new Set(e&&e.$quoted$);return Object.keys(e).forEach((function(t){r.push(new nt(t,zt(e[t],n,null),i.has(t)))})),new rt(r,t)},e.prototype.visitPrimitive=function(e,t){return Vt(e,t)},e.prototype.visitOther=function(e,t){return e instanceof Te?e:this.ctx.importExpr(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 Yc(e,t){return{key:e,value:t,quoted:!1}}var Jc=function(){function e(e,t){this.reflector=e,this.alwaysGenerateDef=t,this.tokenInjector=e.resolveExternalReference(Sn.Injector)}return e.prototype.depsArray=function(e,t){var n=this;return e.map((function(e){var r,i=e,s=[i],o=0;if(Array.isArray(e))for(var a=0;a<e.length;a++){var u=e[a];u&&("Optional"===u.ngMetadataName?o|=8:"SkipSelf"===u.ngMetadataName?o|=4:"Self"===u.ngMetadataName?o|=2:i="Inject"===u.ngMetadataName?u.token:u)}return r="string"==typeof i?Vt(i):i===n.tokenInjector?It(Sn.INJECTOR):t.importExpr(i),s=0!==o?[r,Vt(o)]:[r],It(Sn.inject).callFn(s)}))},e.prototype.factoryFor=function(e,t){var n;if(e.useExisting)n=It(Sn.inject).callFn([t.importExpr(e.useExisting)]);else if(e.useFactory){var r=e.deps||[];if(!(r.length>0))return t.importExpr(e.useFactory);n=t.importExpr(e.useFactory).callFn(this.depsArray(r,t))}else if(e.useValue)n=Xc(t,e.useValue);else{var i=e.useClass||e.symbol,s=this.depsArray(this.reflector.parameters(i),t);n=new Le(t.importExpr(i),s)}return Dt([],[new ct(n)],void 0,void 0,e.symbol.name+"_Factory")},e.prototype.injectableDef=function(e,t){var n=st;void 0!==e.providedIn&&(n=null===e.providedIn?st:"string"==typeof e.providedIn?Vt(e.providedIn):t.importExpr(e.providedIn));var r=[Yc("factory",this.factoryFor(e,t)),Yc("token",t.importExpr(e.type.reference)),Yc("providedIn",n)];return It(Sn.ɵɵdefineInjectable).callFn([Lt(r)])},e.prototype.compile=function(e,t){if(this.alwaysGenerateDef||void 0!==e.providedIn){var n=In(e.type),r=new mt(n,null,[new ft("ɵprov",ge,[qe.Static],this.injectableDef(e,t))],[],new dt(null,[],[]),[]);t.statements.push(r)}},e}(),Zc=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,eh=/\.ngfactory\.|\.ngsummary\./,th=/\.ngsummary\./,nh=/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 rh(e,t){void 0===t&&(t=!1);var n=sh(e,t);return n[0]+".ngfactory"+oh(n[1])}function ih(e){return e.replace(eh,".")}function sh(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,""]}function oh(e){return".tsx"===e?".ts":e}function ah(e){return e.replace(Zc,"")+".ngsummary.json"}function uh(e,t){void 0===t&&(t=!1);var n=sh(ih(e),t);return n[0]+".ngsummary"+n[1]}function ph(e){return e+"NgSummary"}var lh,ch=/\u0275\d+/;function hh(e){return ch.test(e)}!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"}(lh||(lh={}));var fh=[lh.OnInit,lh.OnDestroy,lh.DoCheck,lh.OnChanges,lh.AfterContentInit,lh.AfterContentChecked,lh.AfterViewInit,lh.AfterViewChecked];function dh(e,t,n){return e.hasLifecycleHook(n,function(e){switch(e){case lh.OnInit:return"ngOnInit";case lh.OnDestroy:return"ngOnDestroy";case lh.DoCheck:return"ngDoCheck";case lh.OnChanges:return"ngOnChanges";case lh.AfterContentInit:return"ngAfterContentInit";case lh.AfterContentChecked:return"ngAfterContentChecked";case lh.AfterViewInit:return"ngAfterViewInit";case lh.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
|
||
*/(t))}var vh=function(){function e(e,t,n,r,i,s,o,a,u,p,l,c){this._config=e,this._htmlParser=t,this._ngModuleResolver=n,this._directiveResolver=r,this._pipeResolver=i,this._summaryResolver=s,this._schemaRegistry=o,this._directiveNormalizer=a,this._console=u,this._staticSymbolCache=p,this._reflector=l,this._errorCollector=c,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 "+on(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 bn?this._staticSymbolCache.get(rh(e.filePath),t):this._createProxyClass(e,t)},e.prototype.getComponentViewClass=function(e){return this.getGeneratedClass(e,Rn(e,0))},e.prototype.getHostComponentViewClass=function(e){return this.getGeneratedClass(e,Fn(e))},e.prototype.getHostComponentType=function(e){var t=In({reference:e})+"_Host";return e instanceof bn?this._staticSymbolCache.get(e.filePath,t):this._createProxyClass(e,t)},e.prototype.getRendererType=function(e){return e instanceof bn?this._staticSymbolCache.get(rh(e.filePath),On(e)):{}},e.prototype.getComponentFactory=function(e,t,n,r){if(t instanceof bn)return this._staticSymbolCache.get(rh(t.filePath),Ln(t));var i=this.getHostComponentViewClass(t);return this._reflector.resolveExternalReference(Sn.createComponentFactory)(e,t,i,n,r,[])},e.prototype.initComponentFactory=function(e,t){var n;e instanceof bn||(n=e.ngContentSelectors).push.apply(n,v(t))},e.prototype._loadSummary=function(e,t){var n=this._summaryCache.get(e);if(!n){var r=this._summaryResolver.resolveSummary(e);n=r?r.type:null,this._summaryCache.set(e,n||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=M.parse(e.selector)[0].getMatchingElementTemplate(),i=this._htmlParser.parse(r,"");return Un.create({isHost:!0,type:{reference:n,diDeps:[],lifecycleHooks:[]},template:new jn({encapsulation:P.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:P.None,styles:[],data:{}},entryComponents:[],componentFactory:null})},e.prototype.loadDirectiveMetadata=function(e,t,n){var r=this;if(this._directiveCache.has(t))return null;t=an(t);var i=this.getNonNormalizedDirectiveMetadata(t),s=i.annotation,o=i.metadata,a=function(e){var n=new Un({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 u=o.template,p=this._directiveNormalizer.normalizeTemplate({ngModuleType:e,componentType:t,moduleUrl:this._reflector.componentModuleUrl(t,s),encapsulation:u.encapsulation,template:u.template,templateUrl:u.templateUrl,styles:u.styles,styleUrls:u.styleUrls,animations:u.animations,interpolation:u.interpolation,preserveWhitespaces:u.preserveWhitespaces});return un(p)&&n?(this._reportError(function(e){var t=Error("Can't compile synchronously as "+on(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
|
||
*/(t),t),null):$t(p,a)}return a(null),null},e.prototype.getNonNormalizedDirectiveMetadata=function(e){var t=this;if(!(e=an(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(W.isTypeOf(r)){as("styles",(o=r).styles),as("styleUrls",o.styleUrls),ps("interpolation",o.interpolation);var s=o.animations;i=new jn({encapsulation:Qt(o.encapsulation),template:Qt(o.template),templateUrl:Qt(o.templateUrl),htmlAst:null,styles:o.styles||[],styleUrls:o.styleUrls||[],animations:s||[],interpolation:Qt(o.interpolation),isInline:!!o.template,externalStylesheets:[],ngContentSelectors:[],preserveWhitespaces:Qt(r.preserveWhitespaces)})}var o,a=null,u=[],p=[],l=r.selector;W.isTypeOf(r)?(a=(o=r).changeDetection,o.viewProviders&&(u=this._getProvidersMetadata(o.viewProviders,p,'viewProviders for "'+_h(e)+'"',[],e)),o.entryComponents&&(p=mh(o.entryComponents).map((function(e){return t._getEntryComponentMetadata(e)})).concat(p)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(l=null);var c=[];null!=r.providers&&(c=this._getProvidersMetadata(r.providers,p,'providers for "'+_h(e)+'"',[],e));var h=[],f=[];null!=r.queries&&(h=this._getQueriesMetadata(r.queries,!1,e),f=this._getQueriesMetadata(r.queries,!0,e));var d=Un.create({isHost:!1,selector:l,exportAs:Qt(r.exportAs),isComponent:!!i,type:this._getTypeMetadata(e),template:i,changeDetection:a,inputs:r.inputs||[],outputs:r.outputs||[],host:r.host||{},providers:c||[],viewProviders:u||[],queries:h||[],guards:r.guards||{},viewQueries:f||[],entryComponents:p,componentViewType:i?this.getComponentViewClass(e):null,rendererType:i?this.getRendererType(e):null,componentFactory:null});return i&&(d.componentFactory=this.getComponentFactory(l,e,d.inputs,d.outputs)),n={metadata:d,annotation:r},this._nonNormalizedDirectiveCache.set(e,n),n},e.prototype.getDirectiveMetadata=function(e){var t=this._directiveCache.get(e);return t||this._reportError(Zt("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+_h(e)+"."),e),t},e.prototype.getDirectiveSummary=function(e){var t=this._loadSummary(e,An.Directive);return t||this._reportError(Zt("Illegal state: Could not load the summary for directive "+_h(e)+"."),e),t},e.prototype.isDirective=function(e){return!!this._loadSummary(e,An.Directive)||this._directiveResolver.isDirective(e)},e.prototype.isAbstractDirective=function(e){var t=this._loadSummary(e,An.Directive);if(t&&!t.isComponent)return!t.selector;var n=this._directiveResolver.resolve(e,!1);return!(!n||W.isTypeOf(n))&&!n.selector},e.prototype.isPipe=function(e){return!!this._loadSummary(e,An.Pipe)||this._pipeResolver.isPipe(e)},e.prototype.isNgModule=function(e){return!!this._loadSummary(e,An.NgModule)||this._ngModuleResolver.isNgModule(e)},e.prototype.getNgModuleSummary=function(e,t){void 0===t&&(t=null);var n=this._loadSummary(e,An.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),s=[];return i&&(i.declaredDirectives.forEach((function(n){var i=r.loadDirectiveMetadata(e,n.reference,t);i&&s.push(i)})),i.declaredPipes.forEach((function(e){return r._loadPipeMetadata(e.reference)}))),Promise.all(s)},e.prototype.getShallowModuleMetadata=function(e){var t=this._shallowModuleCache.get(e);if(t)return t;var n=Cc(this._reflector.shallowAnnotations(e),$.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=an(e);var i=this._ngModuleCache.get(e);if(i)return i;var s=this._ngModuleResolver.resolve(e,t);if(!s)return null;var o=[],a=[],u=[],p=[],l=[],c=[],h=[],f=[],d=[];s.imports&&mh(s.imports).forEach((function(t){var i=void 0;if(yh(t))i=t;else if(t&&t.ngModule){var s=t;i=s.ngModule,s.providers&&c.push.apply(c,v(r._getProvidersMetadata(s.providers,h,"provider for the NgModule '"+_h(i)+"'",[],t)))}if(i){if(!r._checkSelfImport(e,i))if(n||(n=new Set),n.has(i))r._reportError(Zt(r._getTypeDescriptor(i)+" '"+_h(t)+"' is imported recursively by the module '"+_h(e)+"'."),e);else{n.add(i);var o=r.getNgModuleSummary(i,n);n.delete(i),o?p.push(o):r._reportError(Zt("Unexpected "+r._getTypeDescriptor(t)+" '"+_h(t)+"' imported by the module '"+_h(e)+"'. Please add a @NgModule annotation."),e)}}else r._reportError(Zt("Unexpected value '"+_h(t)+"' imported by the module '"+_h(e)+"'"),e)})),s.exports&&mh(s.exports).forEach((function(t){if(yh(t))if(n||(n=new Set),n.has(t))r._reportError(Zt(r._getTypeDescriptor(t)+" '"+on(t)+"' is exported recursively by the module '"+_h(e)+"'"),e);else{n.add(t);var i=r.getNgModuleSummary(t,n);n.delete(t),i?l.push(i):a.push(r._getIdentifierMetadata(t))}else r._reportError(Zt("Unexpected value '"+_h(t)+"' exported by the module '"+_h(e)+"'"),e)}));var m=this._getTransitiveNgModuleMetadata(p,l);s.declarations&&mh(s.declarations).forEach((function(t){if(yh(t)){var n=r._getIdentifierMetadata(t);if(r.isDirective(t))r.isAbstractDirective(t)&&r._reportError(Zt("Directive "+_h(t)+" has no selector, please add it!"),t),m.addDirective(n),o.push(n),r._addTypeToModule(t,e);else{if(!r.isPipe(t))return void r._reportError(Zt("Unexpected "+r._getTypeDescriptor(t)+" '"+_h(t)+"' declared by the module '"+_h(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(Zt("Unexpected value '"+_h(t)+"' declared by the module '"+_h(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(Zt("Can't export "+r._getTypeDescriptor(t.reference)+" "+_h(t.reference)+" from "+_h(e)+" as it was neither declared nor imported!"),e);g.push(t),m.addExportedPipe(t)}})),s.providers&&c.push.apply(c,v(this._getProvidersMetadata(s.providers,h,"provider for the NgModule '"+_h(e)+"'",[],e))),s.entryComponents&&h.push.apply(h,v(mh(s.entryComponents).map((function(e){return r._getEntryComponentMetadata(e)})))),s.bootstrap&&mh(s.bootstrap).forEach((function(t){yh(t)?f.push(r._getIdentifierMetadata(t)):r._reportError(Zt("Unexpected value '"+_h(t)+"' used in the bootstrap property of module '"+_h(e)+"'"),e)})),h.push.apply(h,v(f.map((function(e){return r._getEntryComponentMetadata(e.reference)})))),s.schemas&&d.push.apply(d,v(mh(s.schemas))),i=new Wn({type:this._getTypeMetadata(e),providers:c,entryComponents:h,bootstrapComponents:f,schemas:d,declaredDirectives:o,exportedDirectives:y,declaredPipes:u,exportedPipes:g,importedModules:p,exportedModules:l,transitiveModule:m,id:s.id||null}),h.forEach((function(e){return m.addEntryComponent(e)})),c.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(Zt("'"+_h(e)+"' module can't import itself"),e),!0)},e.prototype._getTypeDescriptor=function(e){if(yh(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(Zt("Type "+_h(e)+" is part of the declarations of 2 modules: "+_h(n)+" and "+_h(t)+"! Please consider moving "+_h(e)+" to a higher module that imports "+_h(n)+" and "+_h(t)+". You can also create a new NgModule that exports and includes "+_h(e)+" then import that NgModule in "+_h(n)+" and "+_h(t)+"."),t):this._ngModuleOfTypes.set(e,t)},e.prototype._getTransitiveNgModuleMetadata=function(e,t){var n=new zn,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=Bn(e.provider.token),s=r.get(i);s||(s=new Set,r.set(i,s));var o=e.module.reference;!t.has(i)&&s.has(o)||(s.add(o),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=an(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:An.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,An.Injectable),i=r?r.type:this._getTypeMetadata(e,t,n),s=this._reflector.annotations(e).filter((function(e){return Y.isTypeOf(e)}));if(0===s.length)return null;var o=s[s.length-1];return{symbol:e,type:i,providedIn:o.providedIn,useValue:o.useValue,useClass:o.useClass,useExisting:o.useExisting,useFactory:o.useFactory,deps:o.deps}},e.prototype._getTypeMetadata=function(e,t,n){void 0===t&&(t=null),void 0===n&&(n=!0);var r,i,s=this._getIdentifierMetadata(e);return{reference:s.reference,diDeps:this._getDependenciesMetadata(s.reference,t,n),lifecycleHooks:(r=this._reflector,i=s.reference,fh.filter((function(e){return dh(r,e,i)})))}},e.prototype._getFactoryMetadata=function(e,t){return void 0===t&&(t=null),{reference:e=an(e),diDeps:this._getDependenciesMetadata(e,t)}},e.prototype.getPipeMetadata=function(e){var t=this._pipeCache.get(e);return t||this._reportError(Zt("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+_h(e)+"."),e),t||null},e.prototype.getPipeSummary=function(e){var t=this._loadSummary(e,An.Pipe);return t||this._reportError(Zt("Illegal state: Could not load the summary for pipe "+_h(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=an(e);var t=this._pipeResolver.resolve(e),n=new Hn({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,s=(t||this._reflector.parameters(e)||[]).map((function(e){var t=!1,n=!1,s=!1,o=!1,a=!1,u=null;return Array.isArray(e)?e.forEach((function(e){re.isTypeOf(e)?n=!0:te.isTypeOf(e)?s=!0:ne.isTypeOf(e)?o=!0:ee.isTypeOf(e)?a=!0:L.isTypeOf(e)?(t=!0,u=e.attributeName):O.isTypeOf(e)?u=e.token:F.isTypeOf(e)||e instanceof bn?u=e:yh(e)&&null==u&&(u=e)})):u=e,null==u?(i=!0,{}):{isAttribute:t,isHost:n,isSelf:s,isSkipSelf:o,isOptional:a,token:r._getTokenMetadata(u)}}));if(i){var o=s.map((function(e){return e.token?_h(e.token):"?"})).join(", "),a="Can't resolve all parameters for "+_h(e)+": ("+o+").";n||this._config.strictInjectionParameters?this._reportError(Zt(a),e):this._console.warn("Warning: "+a+" This will become an error in Angular v6.x")}return s},e.prototype._getTokenMetadata=function(e){return"string"==typeof(e=an(e))?{value:e}:{identifier:{reference:e}}},e.prototype._getProvidersMetadata=function(e,t,n,r,i){var s=this;return void 0===r&&(r=[]),e.forEach((function(o,a){if(Array.isArray(o))s._getProvidersMetadata(o,t,n,r);else{var u=void 0;if((o=an(o))&&"object"==typeof o&&o.hasOwnProperty("provide"))s._validateProvider(o),u=new Qn(o.provide,o);else{if(!yh(o)){if(void 0===o)return void s._reportError(Zt("Encountered undefined provider! Usually this means you have a circular dependencies. This might be caused by using 'barrel' index.ts files."));var p=e.reduce((function(e,t,n){return n<a?e.push(""+_h(t)):n==a?e.push("?"+_h(t)+"?"):n==a+1&&e.push("..."),e}),[]).join(", ");return void s._reportError(Zt("Invalid "+(n||"provider")+" - only instances of Provider and Type are allowed, got: ["+p+"]"),i)}u=new Qn(o,{useClass:o})}u.token===s._reflector.resolveExternalReference(Sn.ANALYZE_FOR_ENTRY_COMPONENTS)?t.push.apply(t,v(s._getEntryComponentsFromProvider(u,i))):r.push(s.getProviderMetadata(u))}})),r},e.prototype._validateProvider=function(e){e.hasOwnProperty("useClass")&&null==e.useClass&&this._reportError(Zt("Invalid provider for "+_h(e.provide)+". useClass cannot be "+e.useClass+".\n Usually it happens when:\n 1. There's a circular dependency (might be caused by using index.ts (barrel) files).\n 2. Class was used before it was declared. Use forwardRef in this case."))},e.prototype._getEntryComponentsFromProvider=function(e,t){var n,r,i=this,s=[],o=[];return e.useFactory||e.useExisting||e.useClass?(this._reportError(Zt("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),t),[]):e.multi?(n=e.useValue,r=o,zt(n,new gh,r),o.forEach((function(e){var t=i._getEntryComponentMetadata(e.reference,!1);t&&s.push(t)})),s):(this._reportError(Zt("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),t),[])},e.prototype._getEntryComponentMetadata=function(e,t){void 0===t&&(t=!0);var n=this.getNonNormalizedDirectiveMetadata(e);if(n&&n.metadata.isComponent)return{componentType:e,componentFactory:n.metadata.componentFactory};var r=this._loadSummary(e,An.Directive);if(r&&r.isComponent)return{componentType:e,componentFactory:r.componentFactory};if(t)throw Zt(e.name+" cannot be used as an entry component.");return null},e.prototype._getInjectableTypeMetadata=function(e,t){void 0===t&&(t=null);var n=this._loadSummary(e,An.Injectable);return n?n.type:this._getTypeMetadata(e,t)},e.prototype.getProviderMetadata=function(e){var t=void 0,n=null,r=null,i=this._getTokenMetadata(e.token);return e.useClass?(t=(n=this._getInjectableTypeMetadata(e.useClass,e.dependencies)).diDeps,e.token===e.useClass&&(i={identifier:n})):e.useFactory&&(t=(r=this._getFactoryMetadata(e.useFactory,e.dependencies)).diDeps),{token:i,useClass:n,useValue:e.useValue,useFactory:r,useExisting:e.useExisting?this._getTokenMetadata(e.useExisting):void 0,deps:t,multi:e.multi}},e.prototype._getQueriesMetadata=function(e,t,n){var r=this,i=[];return Object.keys(e).forEach((function(s){var o=e[s];o.isViewQuery===t&&i.push(r._getQueryMetadata(o,s,n))})),i},e.prototype._queryVarBindings=function(e){return e.split(/\s*,\s*/)},e.prototype._getQueryMetadata=function(e,t,n){var r,i=this;return"string"==typeof e.selector?r=this._queryVarBindings(e.selector).map((function(e){return i._getTokenMetadata(e)})):e.selector?r=[this._getTokenMetadata(e.selector)]:(this._reportError(Zt("Can't construct a query for the property \""+t+'" of "'+_h(n)+"\" since the query selector wasn't defined."),n),r=[]),{selectors:r,first:e.first,descendants:e.descendants,propertyName:t,read:e.read?this._getTokenMetadata(e.read):null,static:e.static}},e.prototype._reportError=function(e,t,n){if(!this._errorCollector)throw e;this._errorCollector(e,t),n&&this._errorCollector(e,n)},e}();function mh(e){return(t=function e(t,n){if(void 0===n&&(n=[]),t)for(var r=0;r<t.length;r++){var i=an(t[r]);Array.isArray(i)?e(i,n):n.push(i)}return n}(e))?Array.from(new Set(t)):[];var t}function yh(e){return e instanceof bn||e instanceof ie}var gh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(t,e),t.prototype.visitOther=function(e,t){t.push({reference:e})},t}(Gt);function _h(e){return e instanceof bn?e.name+" in "+e.filePath:on(e)}function Eh(e,t){var n=0;t.eager||(n|=4096),t.providerType===Za.PrivateService&&(n|=8192),t.isModule&&(n|=1073741824),t.lifecycleHooks.forEach((function(e){e!==lh.OnDestroy&&t.providerType!==Za.Directive&&t.providerType!==Za.Component||(n|=Ch(e))}));var r=t.multiProvider?function(e,t,n){var r=[],i=[],s=n.map((function(t,n){var r;if(t.useClass){var i=o(n,t.deps||t.useClass.diDeps);r=e.importExpr(t.useClass.reference).instantiate(i)}else if(t.useFactory){i=o(n,t.deps||t.useFactory.diDeps);r=e.importExpr(t.useFactory.reference).callFn(i)}else if(t.useExisting){r=(i=o(n,[{token:t.useExisting}]))[0]}else r=Xc(e,t.useValue);return r}));return{providerExpr:Dt(i,[new ct(Ft(s))],ge),flags:1024|t,depsExpr:Ft(r)};function o(t,n){return n.map((function(n,s){var o="p"+t+"_"+s;return i.push(new $e(o,ye)),r.push(wh(e,n)),Mt(o)}))}}(e,n,t.providers):xh(e,n,t.providerType,t.providers[0]);return{providerExpr:r.providerExpr,flags:r.flags,depsExpr:r.depsExpr,tokenExpr:Sh(e,t.token)}}function xh(e,t,n,r){var i,s;return n===Za.Directive||n===Za.Component?(i=e.importExpr(r.useClass.reference),t|=16384,s=r.deps||r.useClass.diDeps):r.useClass?(i=e.importExpr(r.useClass.reference),t|=512,s=r.deps||r.useClass.diDeps):r.useFactory?(i=e.importExpr(r.useFactory.reference),t|=1024,s=r.deps||r.useFactory.diDeps):r.useExisting?(i=st,t|=2048,s=[{token:r.useExisting}]):(i=Xc(e,r.useValue),t|=256,s=[]),{providerExpr:i,flags:t,depsExpr:Ft(s.map((function(t){return wh(e,t)})))}}function Sh(e,t){return t.identifier?e.importExpr(t.identifier.reference):Vt(t.value)}function wh(e,t){var n=t.isValue?Xc(e,t.value):Sh(e,t.token),r=0;return t.isSkipSelf&&(r|=1),t.isOptional&&(r|=2),t.isSelf&&(r|=4),t.isValue&&(r|=8),0===r?n:Ft([Vt(r),n])}function Ch(e){var t=0;switch(e){case lh.AfterContentChecked:t=2097152;break;case lh.AfterContentInit:t=1048576;break;case lh.AfterViewChecked:t=8388608;break;case lh.AfterViewInit:t=4194304;break;case lh.DoCheck:t=262144;break;case lh.OnChanges:t=524288;break;case lh.OnDestroy:t=131072;break;case lh.OnInit:t=65536}return t}function bh(e,t,n,r){var i=r.map((function(e){return t.importExpr(e.componentFactory)})),s=Cn(e,Sn.ComponentFactoryResolver),o={diDeps:[{isValue:!0,value:Ft(i)},{token:s,isSkipSelf:!0,isOptional:!0},{token:Cn(e,Sn.NgModuleRef)}],lifecycleHooks:[],reference:e.resolveExternalReference(Sn.CodegenComponentFactoryResolver)},a=xh(t,n,Za.PrivateService,{token:s,multi:!1,useClass:o});return{providerExpr:a.providerExpr,flags:a.flags,depsExpr:a.depsExpr,tokenExpr:Sh(t,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 Th=function(e){this.ngModuleFactoryVar=e},Ph=Mt("_l"),Nh=function(){function e(e){this.reflector=e}return e.prototype.compile=function(e,t,n){var r=_r("NgModule",t.type),i=t.transitiveModule.entryComponents,s=t.bootstrapComponents,o=new Eu(this.reflector,t,n,r),a=[bh(this.reflector,e,0,i)].concat(o.parse().map((function(t){return Eh(e,t)}))).map((function(e){var t=e.providerExpr,n=e.depsExpr,r=e.flags,i=e.tokenExpr;return It(Sn.moduleProviderDef).callFn([Vt(r),i,t,n])})),u=It(Sn.moduleDef).callFn([Ft(a)]),p=Dt([new $e(Ph.name)],[new ct(u)],ge),l=In(t.type)+"NgFactory";if(this._createNgModuleFactory(e,t.type.reference,It(Sn.createModuleFactory).callFn([e.importExpr(t.type.reference),Ft(s.map((function(t){return e.importExpr(t.reference)}))),p])),t.id){var c="string"==typeof t.id?Vt(t.id):e.importExpr(t.id),h=It(Sn.RegisterModuleFactoryFn).callFn([c,Mt(l)]).toStmt();e.statements.push(h)}return new Th(l)},e.prototype.createStub=function(e,t){this._createNgModuleFactory(e,t,st)},e.prototype._createNgModuleFactory=function(e,t,n){var r=Mt(In({reference:t})+"NgFactory").set(n).toDeclStmt(kt(Sn.NgModuleFactory,[Rt(e.importExpr(t))],[ue.Const]),[qe.Final,qe.Exported]);e.statements.push(r)},e}(),Ah=function(){function e(e){this._reflector=e}return e.prototype.isNgModule=function(e){return this._reflector.annotations(e).some($.isTypeOf)},e.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=Cc(this._reflector.annotations(e),$.isTypeOf);if(n)return n;if(t)throw new Error("No NgModule metadata found for '"+on(e)+"'.");return null},e}();function Mh(e){var t=new kh,n=Es.createRoot();return(Array.isArray(e)?e:[e]).forEach((function(e){if(e instanceof at)e.visitStatement(t,n);else if(e instanceof Te)e.visitExpression(t,n);else{if(!(e instanceof ce))throw new Error("Don't know how to print debug info for "+e);e.visitType(t,n)}})),n.toSource()}var Ih=function(){function e(){}return e.prototype.emitStatementsAndContext=function(e,t,n,r,i,s){void 0===n&&(n=""),void 0===r&&(r=!0);var o=new kh(i,s),a=Es.createRoot();o.visitAllStatements(t,a);var u=n?n.split("\n"):[];o.reexports.forEach((function(e,t){var n=e.map((function(e){return e.name+" as "+e.as})).join(",");u.push("export {"+n+"} from '"+t+"';")})),o.importsWithPrefixes.forEach((function(e,t){u.push("import * as "+e+" from '"+t+"';")}));var p=r?a.toSourceMapGenerator(e,u.length).toJsComment():"",l=v(u,[a.toSource(),p]);return p&&l.push(""),a.setPreambleLineCount(u.length),{sourceText:l.join("\n"),context:a}},e.prototype.emitStatements=function(e,t,n){return void 0===n&&(n=""),this.emitStatementsAndContext(e,t,n).sourceText},e}(),kh=function(e){function t(t,n){var r=e.call(this,!1)||this;return r.referenceFilter=t,r.importFilter=n,r.typeExpression=0,r.importsWithPrefixes=new Map,r.reexports=new Map,r}return l(t,e),t.prototype.visitType=function(e,t,n){void 0===n&&(n="any"),e?(this.typeExpression++,e.visitType(this,t),this.typeExpression--):t.print(null,n)},t.prototype.visitLiteralExpr=function(t,n){var r=t.value;return null==r&&t.type!=ge?(n.print(t,"("+r+" as any)"),null):e.prototype.visitLiteralExpr.call(this,t,n)},t.prototype.visitLiteralArrayExpr=function(t,n){0===t.entries.length&&n.print(t,"(");var r=e.prototype.visitLiteralArrayExpr.call(this,t,n);return 0===t.entries.length&&n.print(t," as any[])"),r},t.prototype.visitExternalExpr=function(e,t){return this._visitIdentifier(e.value,e.typeParams,t),null},t.prototype.visitAssertNotNullExpr=function(t,n){var r=e.prototype.visitAssertNotNullExpr.call(this,t,n);return n.print(t,"!"),r},t.prototype.visitDeclareVarStmt=function(e,t){if(e.hasModifier(qe.Exported)&&e.value instanceof We&&!e.type){var n=e.value.value,r=n.name,i=n.moduleName;if(i){var s=this.reexports.get(i);return s||(s=[],this.reexports.set(i,s)),s.push({name:r,as:e.name}),null}}return e.hasModifier(qe.Exported)&&t.print(e,"export "),e.hasModifier(qe.Final)?t.print(e,"const"):t.print(e,"var"),t.print(e," "+e.name),this._printColonType(e.type,t),e.value&&(t.print(e," = "),e.value.visitExpression(this,t)),t.println(e,";"),null},t.prototype.visitWrappedNodeExpr=function(e,t){throw new Error("Cannot visit a WrappedNodeExpr when outputting Typescript.")},t.prototype.visitCastExpr=function(e,t){return t.print(e,"(<"),e.type.visitType(this,t),t.print(e,">"),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(qe.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(qe.Private)&&t.print(null,"/*private*/ "),e.hasModifier(qe.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(qe.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(qe.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(qe.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 ("+ys.name+") {"),t.incIndent();var n=[gs.set(ys.prop("stack",null)).toDeclStmt(null,[qe.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 le.Bool:n="boolean";break;case le.Dynamic:n="any";break;case le.Function:n="Function";break;case le.Number:case le.Int:n="number";break;case le.String:n="string";break;case le.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 Pe.ConcatArray:t="concat";break;case Pe.SubscribeObservable:t="subscribe";break;case Pe.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,s=e.moduleName;if(this.referenceFilter&&this.referenceFilter(e))n.print(null,"(null as any)");else{if(s&&(!this.importFilter||!this.importFilter(e))){var o=this.importsWithPrefixes.get(s);null==o&&(o="i"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(s,o)),n.print(null,o+".")}if(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!==ge&&(t.print(null,":"),this.visitType(e,t,n))},t}(xs),Rh=function(){function e(e){this._reflector=e}return e.prototype.isPipe=function(e){var t=this._reflector.annotations(an(e));return t&&t.some(z.isTypeOf)},e.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=this._reflector.annotations(an(e));if(n){var r=Cc(n,z.isTypeOf);if(r)return r}if(t)throw new Error("No Pipe decorator found on "+on(e));return null},e}(),Oh=function(){function e(e,t){this.options=e,this.reflector=t}return e.prototype.compileComponent=function(e,t,n,r,i,s){var o=this,a=new Map;r.forEach((function(e){return a.set(e.name,e.type.reference)}));var u=0,p=function e(n,r){var p=u++;return new Lh(o.options,o.reflector,i,n,t.type.reference,t.isHost,p,a,r,s,e)}(null,[]);return p.visitAll([],n),p.build(e)},e}(),Fh=new(function(){function e(){}return e.prototype.notifyImplicitReceiverUse=function(){},e.prototype.getLocal=function(e){return e===mo.event.name?Mt("_any"):null},e}()),Lh=function(){function e(e,t,n,r,i,s,o,a,u,p,l){this.options=e,this.reflector=t,this.externalReferenceVars=n,this.parent=r,this.component=i,this.isHostComponent=s,this.embeddedViewIndex=o,this.pipes=a,this.guards=u,this.ctx=p,this.viewBuilderFactory=l,this.refOutputVars=new Map,this.variables=[],this.children=[],this.updates=[],this.actions=[]}return e.prototype.getOutputVar=function(e){var t;if(!(t=e===this.component&&this.isHostComponent?"_any":e instanceof bn?this.externalReferenceVars.get(e):"_any"))throw new Error("Illegal State: referring to a type without a variable "+JSON.stringify(e));return t},e.prototype.getTypeGuardExpressions=function(e){var t,n,r,i,s=v(this.guards);try{for(var o=f(e.directives),a=o.next();!a.done;a=o.next()){var u=a.value;try{for(var p=(r=void 0,f(u.inputs)),l=p.next();!l.done;l=p.next()){var c=l.value,h=u.directive.guards[c.directiveName];if(h){var d="UseIf"===h;s.push({guard:h,useIf:d,expression:{context:this.component,value:c.value}})}}}catch(e){r={error:e}}finally{try{l&&!l.done&&(i=p.return)&&i.call(p)}finally{if(r)throw r.error}}}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return s},e.prototype.visitAll=function(e,t){this.variables=e,mu(this,t)},e.prototype.build=function(e,t){var n,r,i=this;void 0===t&&(t=[]),this.children.forEach((function(n){return n.build(e,t)}));var s=[Mt("_any").set(st).toDeclStmt(ye)],o=0;if(this.updates.forEach((function(e){var t=i.preprocessUpdateExpression(e),n=t.sourceSpan,r=t.context,a=t.value,u=""+o++,p=wo(r===i.component?i:Fh,Mt(i.getOutputVar(r)),a,u,Eo.General),l=p.stmts,c=p.currValExpr;l.push(new lt(c)),s.push.apply(s,v(l.map((function(e){return Pt(e,n)}))))})),this.actions.forEach((function(e){var t=e.sourceSpan,n=e.context,r=e.value,a=""+o++,u=go(n===i.component?i:Fh,Mt(i.getOutputVar(n)),r,a).stmts;s.push.apply(s,v(u.map((function(e){return Pt(e,t)}))))})),this.guards.length){var a=void 0;try{for(var u=f(this.guards),p=u.next();!p.done;p=u.next()){var l=p.value,c=this.preprocessUpdateExpression(l.expression),h=c.context,d=c.value,m=""+o++,y=wo(h===this.component?this:Fh,Mt(this.getOutputVar(h)),d,m,Eo.TrySimple),g=y.stmts,_=y.currValExpr;if(0==g.length){var E=l.useIf?_:this.ctx.importExpr(l.guard).callFn([_]);a=a?a.and(E):E}}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}a&&(s=[new yt(a,s)])}var x="_View_"+e+"_"+this.embeddedViewIndex,S=new pt(x,[],s);return t.push(S),t},e.prototype.visitBoundText=function(e,t){var n=this;e.value.ast.expressions.forEach((function(t){return n.updates.push({context:n.component,value:t,sourceSpan:e.sourceSpan})}))},e.prototype.visitEmbeddedTemplate=function(e,t){if(this.visitElementOrTemplate(e),this.options.fullTemplateTypeCheck){var n=this.getTypeGuardExpressions(e),r=this.viewBuilderFactory(this,n);this.children.push(r),r.visitAll(e.variables,e.children)}},e.prototype.visitElement=function(e,t){var n=this;this.visitElementOrTemplate(e),e.inputs.forEach((function(e){n.updates.push({context:n.component,value:e.value,sourceSpan:e.sourceSpan})})),mu(this,e.children)},e.prototype.visitElementOrTemplate=function(e){var t=this;e.directives.forEach((function(e){t.visitDirective(e)})),e.references.forEach((function(e){var n=null;n=e.value&&e.value.identifier&&t.options.fullTemplateTypeCheck?e.value.identifier.reference:le.Dynamic,t.refOutputVars.set(e.name,n)})),e.outputs.forEach((function(e){t.actions.push({context:t.component,value:e.handler,sourceSpan:e.sourceSpan})}))},e.prototype.visitDirective=function(e){var t=this,n=e.directive.type.reference;e.inputs.forEach((function(e){return t.updates.push({context:t.component,value:e.value,sourceSpan:e.sourceSpan})})),this.options.fullTemplateTypeCheck&&(e.hostProperties.forEach((function(e){return t.updates.push({context:n,value:e.value,sourceSpan:e.sourceSpan})})),e.hostEvents.forEach((function(e){return t.actions.push({context:n,value:e.handler,sourceSpan:e.sourceSpan})})))},e.prototype.notifyImplicitReceiverUse=function(){},e.prototype.getLocal=function(e){if(e==mo.event.name)return Mt(this.getOutputVar(le.Dynamic));for(var t=this;t;t=t.parent){var n=void 0;if(null==(n=t.refOutputVars.get(e)))t.variables.find((function(t){return t.name===e}))&&(n=le.Dynamic);if(null!=n)return Mt(this.getOutputVar(n))}return null},e.prototype.pipeOutputVar=function(e){var t=this.pipes.get(e);if(!t)throw new Error("Illegal State: Could not find pipe "+e+" in template of "+this.component);return this.getOutputVar(t)},e.prototype.preprocessUpdateExpression=function(e){var t=this;return{sourceSpan:e.sourceSpan,context:e.context,value:_o({createLiteralArrayConverter:function(e){return function(e){var n=Ft(e);return t.options.fullTemplateTypeCheck?n:n.cast(ye)}},createLiteralMapConverter:function(e){return function(n){var r=Lt(e.map((function(e,t){return{key:e.key,value:n[t],quoted:e.quoted}})));return t.options.fullTemplateTypeCheck?r:r.cast(ye)}},createPipeConverter:function(e,n){return function(n){return(t.options.fullTemplateTypeCheck?Mt(t.pipeOutputVar(e)):Mt(t.getOutputVar(le.Dynamic))).callMethod("transform",n)}}},e.value)}},e.prototype.visitNgContent=function(e,t){},e.prototype.visitText=function(e,t){},e.prototype.visitDirectiveProperty=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}(),Dh=function(e,t){this.viewClassVar=e,this.rendererTypeVar=t},Bh=function(){function e(e){this._reflector=e}return e.prototype.compileComponent=function(e,t,n,r,i){var s,o=this,a=0,u=void 0;if(!t.isHost){var p=t.template,l=[];p.animations&&p.animations.length&&l.push(new nt("animation",Xc(e,p.animations),!0));var c=Mt(On(t.type.reference));u=c.name,e.statements.push(c.set(It(Sn.createRendererType2).callFn([new rt([new nt("encapsulation",Vt(p.encapsulation),!1),new nt("styles",r,!1),new nt("data",new rt(l),!1)])])).toDeclStmt(kt(Sn.RendererType2),[qe.Final,qe.Exported]))}var h=function n(r){var s=a++;return new zh(o._reflector,e,r,t,s,i,n)}(null);return h.visitAll([],n),(s=e.statements).push.apply(s,v(h.build())),new Dh(h.viewName,u)},e}(),Vh=Mt("_l"),jh=Mt("_v"),Uh=Mt("_ck"),Hh=Mt("_co"),qh=Mt("en"),Wh=Mt("ad"),zh=function(){function e(e,t,n,r,i,s,o){this.reflector=e,this.outputCtx=t,this.parent=n,this.component=r,this.embeddedViewIndex=i,this.usedPipes=s,this.viewBuilderFactory=o,this.nodes=[],this.purePipeNodeIndices=Object.create(null),this.refNodeIndices=Object.create(null),this.variables=[],this.children=[],this.compType=this.embeddedViewIndex>0?ye:Rt(t.importExpr(this.component.type.reference)),this.viewName=Rn(this.component.type.reference,this.embeddedViewIndex)}return e.prototype.visitAll=function(e,t){var n=this;this.variables=e,this.parent||this.usedPipes.forEach((function(e){e.pure&&(n.purePipeNodeIndices[e.name]=n._createPipe(null,e))})),this.parent||this.component.viewQueries.forEach((function(e,t){var r=t+1,i=e.first?0:1,s=134217728|$h(e);n.nodes.push((function(){return{sourceSpan:null,nodeFlags:s,nodeDef:It(Sn.queryDef).callFn([Vt(s),Vt(r),new rt([new nt(e.propertyName,Vt(i),!1)])])}}))})),mu(this,t),this.parent&&(0===t.length||function e(t){var n=t[t.length-1];if(n instanceof pu)return n.hasViewContainer;if(n instanceof uu)return y(n.name)&&n.children.length?e(n.children):n.hasViewContainer;return n instanceof fu}(t))&&this.nodes.push((function(){return{sourceSpan:null,nodeFlags:1,nodeDef:It(Sn.anchorDef).callFn([Vt(0),st,st,Vt(0)])}}))},e.prototype.build=function(e){void 0===e&&(e=[]),this.children.forEach((function(t){return t.build(e)}));var t=this._createNodeExpressions(),n=t.updateRendererStmts,r=t.updateDirectivesStmts,i=t.nodeDefExprs,s=this._createUpdateFn(n),o=this._createUpdateFn(r),a=0;this.parent||this.component.changeDetection!==N.OnPush||(a|=2);var u=new pt(this.viewName,[new $e(Vh.name)],[new ct(It(Sn.viewDef).callFn([Vt(a),Ft(i),o,s]))],kt(Sn.ViewDefinition),0===this.embeddedViewIndex?[qe.Exported]:[]);return e.push(u),e},e.prototype._createUpdateFn=function(e){var t;if(e.length>0){var n=[];!this.component.isHost&&Ct(e).has(Hh.name)&&n.push(Hh.set(jh.prop("component")).toDeclStmt(this.compType)),t=Dt([new $e(Uh.name,ge),new $e(jh.name,ge)],v(n,e),ge)}else t=st;return t},e.prototype.visitNgContent=function(e,t){this.nodes.push((function(){return{sourceSpan:e.sourceSpan,nodeFlags:8,nodeDef:It(Sn.ngContentDef).callFn([Vt(e.ngContentIndex),Vt(e.index)])}}))},e.prototype.visitText=function(e,t){this.nodes.push((function(){return{sourceSpan:e.sourceSpan,nodeFlags:2,nodeDef:It(Sn.textDef).callFn([Vt(-1),Vt(e.ngContentIndex),Ft([Vt(e.value)])])}}))},e.prototype.visitBoundText=function(e,t){var n=this,r=this.nodes.length;this.nodes.push(null);var i=e.value.ast,s=i.expressions.map((function(t,i){return n._preprocessUpdateExpression({nodeIndex:r,bindingIndex:i,sourceSpan:e.sourceSpan,context:Hh,value:t})})),o=r;this.nodes[r]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:2,nodeDef:It(Sn.textDef).callFn([Vt(o),Vt(e.ngContentIndex),Ft(i.strings.map((function(e){return Vt(e)})))]),updateRenderer:s}}},e.prototype.visitEmbeddedTemplate=function(e,t){var n=this,r=this.nodes.length;this.nodes.push(null);var i=this._visitElementOrTemplate(r,e),s=i.flags,o=i.queryMatchesExpr,a=i.hostEvents,u=this.viewBuilderFactory(this);this.children.push(u),u.visitAll(e.variables,e.children);var p=this.nodes.length-r-1;this.nodes[r]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:1|s,nodeDef:It(Sn.anchorDef).callFn([Vt(s),o,Vt(e.ngContentIndex),Vt(p),n._createElementHandleEventFn(r,a),Mt(u.viewName)])}}},e.prototype.visitElement=function(e,t){var n=this,r=this.nodes.length;this.nodes.push(null);var i=y(e.name)?null:e.name,s=this._visitElementOrTemplate(r,e),o=s.flags,a=s.usedEvents,u=s.queryMatchesExpr,p=s.hostBindings,l=s.hostEvents,c=[],h=[],f=[];if(i){var v=e.inputs.map((function(e){return{context:Hh,inputAst:e,dirAst:null}})).concat(p);v.length&&(h=v.map((function(e,t){return n._preprocessUpdateExpression({context:e.context,nodeIndex:r,bindingIndex:t,sourceSpan:e.inputAst.sourceSpan,value:e.inputAst.value})})),c=v.map((function(e){return function(e,t){var n=e.type;switch(n){case 1:return Ft([Vt(1),Vt(e.name),Vt(e.securityContext)]);case 0:return Ft([Vt(8),Vt(e.name),Vt(e.securityContext)]);case 4:return Ft([Vt(8|(t&&t.directive.isComponent?32:16)),Vt("@"+e.name),Vt(e.securityContext)]);case 2:return Ft([Vt(2),Vt(e.name),st]);case 3:return Ft([Vt(4),Vt(e.name),Vt(e.unit)]);default:throw new Error("unexpected "+n)}}(e.inputAst,e.dirAst)}))),f=a.map((function(e){var t=d(e,2),n=t[0],r=t[1];return Ft([Vt(n),Vt(r)])}))}mu(this,e.children);var m=this.nodes.length-r-1,g=e.directives.find((function(e){return e.directive.isComponent})),_=st,E=st;g&&(E=this.outputCtx.importExpr(g.directive.componentViewType),_=this.outputCtx.importExpr(g.directive.rendererType));var x=r;this.nodes[r]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:1|o,nodeDef:It(Sn.elementDef).callFn([Vt(x),Vt(o),u,Vt(e.ngContentIndex),Vt(m),Vt(i),i?Kh(e):st,c.length?Ft(c):st,f.length?Ft(f):st,n._createElementHandleEventFn(r,l),E,_]),updateRenderer:h}}},e.prototype._visitElementOrTemplate=function(e,t){var n=this,r=0;t.hasViewContainer&&(r|=16777216);var i=new Map;t.outputs.forEach((function(e){var t=Xh(e,null),n=t.name,r=t.target;i.set(Yh(r,n),[r,n])})),t.directives.forEach((function(e){e.hostEvents.forEach((function(t){var n=Xh(t,e),r=n.name,s=n.target;i.set(Yh(s,r),[s,r])}))}));var s=[],o=[];this._visitComponentFactoryResolverProvider(t.directives),t.providers.forEach((function(e){var r=void 0;if(t.directives.forEach((function(t){t.directive.type.reference===Bn(e.token)&&(r=t)})),r){var a=n._visitDirective(e,r,t.references,t.queryMatches,i),u=a.hostBindings,p=a.hostEvents;s.push.apply(s,v(u)),o.push.apply(o,v(p))}else n._visitProvider(e,t.queryMatches)}));var a=[];return t.queryMatches.forEach((function(e){var t=void 0;Bn(e.value)===n.reflector.resolveExternalReference(Sn.ElementRef)?t=0:Bn(e.value)===n.reflector.resolveExternalReference(Sn.ViewContainerRef)?t=3:Bn(e.value)===n.reflector.resolveExternalReference(Sn.TemplateRef)&&(t=2),null!=t&&a.push(Ft([Vt(e.queryId),Vt(t)]))})),t.references.forEach((function(t){var r=void 0;t.value?Bn(t.value)===n.reflector.resolveExternalReference(Sn.TemplateRef)&&(r=2):r=1,null!=r&&(n.refNodeIndices[t.name]=e,a.push(Ft([Vt(t.name),Vt(r)])))})),t.outputs.forEach((function(e){o.push({context:Hh,eventAst:e,dirAst:null})})),{flags:r,usedEvents:Array.from(i.values()),queryMatchesExpr:a.length?Ft(a):st,hostBindings:s,hostEvents:o}},e.prototype._visitDirective=function(e,t,n,r,i){var s=this,o=this.nodes.length;this.nodes.push(null),t.directive.queries.forEach((function(e,n){var r=t.contentQueryStartId+n,i=67108864|$h(e),o=e.first?0:1;s.nodes.push((function(){return{sourceSpan:t.sourceSpan,nodeFlags:i,nodeDef:It(Sn.queryDef).callFn([Vt(i),Vt(r),new rt([new nt(e.propertyName,Vt(o),!1)])])}}))}));var a=this.nodes.length-o-1,u=this._visitProviderOrDirective(e,r),p=u.flags,l=u.queryMatchExprs,c=u.providerExpr,h=u.depsExpr;n.forEach((function(t){t.value&&Bn(t.value)===Bn(e.token)&&(s.refNodeIndices[t.name]=o,l.push(Ft([Vt(t.name),Vt(4)])))})),t.directive.isComponent&&(p|=32768);var f=t.inputs.map((function(e,t){var n=Ft([Vt(t),Vt(e.directiveName)]);return new nt(e.directiveName,n,!1)})),d=[],v=t.directive;Object.keys(v.outputs).forEach((function(e){var t=v.outputs[e];i.has(t)&&d.push(new nt(e,Vt(t),!1))}));var m=[];(t.inputs.length||(327680&p)>0)&&(m=t.inputs.map((function(e,t){return s._preprocessUpdateExpression({nodeIndex:o,bindingIndex:t,sourceSpan:e.sourceSpan,context:Hh,value:e.value})})));var y=It(Sn.nodeValue).callFn([jh,Vt(o)]),g=t.hostProperties.map((function(e){return{context:y,dirAst:t,inputAst:e}})),_=t.hostEvents.map((function(e){return{context:y,eventAst:e,dirAst:t}})),E=o;return this.nodes[o]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:16384|p,nodeDef:It(Sn.directiveDef).callFn([Vt(E),Vt(p),l.length?Ft(l):st,Vt(a),c,h,f.length?new rt(f):st,d.length?new rt(d):st]),updateDirectives:m,directive:t.directive.type}},{hostBindings:g,hostEvents:_}},e.prototype._visitProvider=function(e,t){this._addProviderNode(this._visitProviderOrDirective(e,t))},e.prototype._visitComponentFactoryResolverProvider=function(e){var t=e.find((function(e){return e.directive.isComponent}));if(t&&t.directive.entryComponents.length){var n=bh(this.reflector,this.outputCtx,8192,t.directive.entryComponents),r=n.providerExpr,i=n.depsExpr,s=n.flags,o=n.tokenExpr;this._addProviderNode({providerExpr:r,depsExpr:i,flags:s,tokenExpr:o,queryMatchExprs:[],sourceSpan:t.sourceSpan})}},e.prototype._addProviderNode=function(e){this.nodes.push((function(){return{sourceSpan:e.sourceSpan,nodeFlags:e.flags,nodeDef:It(Sn.providerDef).callFn([Vt(e.flags),e.queryMatchExprs.length?Ft(e.queryMatchExprs):st,e.tokenExpr,e.providerExpr,e.depsExpr])}}))},e.prototype._visitProviderOrDirective=function(e,t){var n=[];t.forEach((function(t){Bn(t.value)===Bn(e.token)&&n.push(Ft([Vt(t.queryId),Vt(4)]))}));var r=Eh(this.outputCtx,e),i=r.providerExpr,s=r.depsExpr,o=r.flags,a=r.tokenExpr;return{flags:0|o,queryMatchExprs:n,providerExpr:i,depsExpr:s,tokenExpr:a,sourceSpan:e.sourceSpan}},e.prototype.getLocal=function(e){if(e==mo.event.name)return mo.event;for(var t=jh,n=this;n;n=n.parent,t=t.prop("parent").cast(ye)){var r=n.refNodeIndices[e];if(null!=r)return It(Sn.nodeValue).callFn([t,Vt(r)]);var i=n.variables.find((function(t){return t.name===e}));if(i){var s=i.value||"$implicit";return t.prop("context").prop(s)}}return null},e.prototype.notifyImplicitReceiverUse=function(){},e.prototype._createLiteralArrayConverter=function(e,t){if(0===t){var n=It(Sn.EMPTY_ARRAY);return function(){return n}}var r=this.nodes.length;return this.nodes.push((function(){return{sourceSpan:e,nodeFlags:32,nodeDef:It(Sn.pureArrayDef).callFn([Vt(r),Vt(t)])}})),function(e){return Qh(r,e)}},e.prototype._createLiteralMapConverter=function(e,t){if(0===t.length){var n=It(Sn.EMPTY_MAP);return function(){return n}}var r=Lt(t.map((function(e,t){return h(h({},e),{value:Vt(t)})}))),i=this.nodes.length;return this.nodes.push((function(){return{sourceSpan:e,nodeFlags:64,nodeDef:It(Sn.pureObjectDef).callFn([Vt(i),r])}})),function(e){return Qh(i,e)}},e.prototype._createPipeConverter=function(e,t,n){var r=this.usedPipes.find((function(e){return e.name===t}));if(r.pure){var i=this.nodes.length;this.nodes.push((function(){return{sourceSpan:e.sourceSpan,nodeFlags:128,nodeDef:It(Sn.purePipeDef).callFn([Vt(i),Vt(n)])}}));for(var s=jh,o=this;o.parent;)o=o.parent,s=s.prop("parent").cast(ye);var a=o.purePipeNodeIndices[t],u=It(Sn.nodeValue).callFn([s,Vt(a)]);return function(t){return Gh(e.nodeIndex,e.bindingIndex,Qh(i,[u].concat(t)))}}var p=this._createPipe(e.sourceSpan,r),l=It(Sn.nodeValue).callFn([jh,Vt(p)]);return function(t){return Gh(e.nodeIndex,e.bindingIndex,l.callMethod("transform",t))}},e.prototype._createPipe=function(e,t){var n=this,r=this.nodes.length,i=0;t.type.lifecycleHooks.forEach((function(e){e===lh.OnDestroy&&(i|=Ch(e))}));var s=t.type.diDeps.map((function(e){return wh(n.outputCtx,e)}));return this.nodes.push((function(){return{sourceSpan:e,nodeFlags:16,nodeDef:It(Sn.pipeDef).callFn([Vt(i),n.outputCtx.importExpr(t.type.reference),Ft(s)])}})),r},e.prototype._preprocessUpdateExpression=function(e){var t=this;return{nodeIndex:e.nodeIndex,bindingIndex:e.bindingIndex,sourceSpan:e.sourceSpan,context:e.context,value:_o({createLiteralArrayConverter:function(n){return t._createLiteralArrayConverter(e.sourceSpan,n)},createLiteralMapConverter:function(n){return t._createLiteralMapConverter(e.sourceSpan,n)},createPipeConverter:function(n,r){return t._createPipeConverter(e,n,r)}},e.value)}},e.prototype._createNodeExpressions=function(){var e=this,t=0,n=[],r=[],i=this.nodes.map((function(e,t){var i=e(),o=i.nodeDef,a=i.nodeFlags,u=i.updateDirectives,p=i.updateRenderer,l=i.sourceSpan;return p&&n.push.apply(n,v(s(t,l,p,!1))),u&&r.push.apply(r,v(s(t,l,u,(327680&a)>0))),Nt(3&a?new it([Vh.callFn([]).callFn([]),o]):o,l)}));return{updateRendererStmts:n,updateDirectivesStmts:r,nodeDefExprs:i};function s(n,r,i,s){var o=[],a=i.map((function(n){var r=n.sourceSpan,i=n.context,s=n.value,a=""+t++,u=wo(i===Hh?e:null,i,s,a,Eo.General),p=u.stmts,l=u.currValExpr;return o.push.apply(o,v(p.map((function(e){return Pt(e,r)})))),Nt(l,r)}));return(i.length||s)&&o.push(Pt(Qh(n,a).toStmt(),r)),o}},e.prototype._createElementHandleEventFn=function(e,t){var n,r=this,i=[],s=0;if(t.forEach((function(e){var t=e.context,n=e.eventAst,o=e.dirAst,a=""+s++,u=go(t===Hh?r:null,t,n.handler,a),p=u.stmts,l=u.allowDefault,c=p;l&&c.push(Wh.set(l.and(Wh)).toStmt());var h=Xh(n,o),f=Yh(h.target,h.name);i.push(Pt(new yt(Vt(f).identical(qh),c),n.sourceSpan))})),i.length>0){var o=[Wh.set(Vt(!0)).toDeclStmt(_e)];!this.component.isHost&&Ct(i).has(Hh.name)&&o.push(Hh.set(jh.prop("component")).toDeclStmt(this.compType)),n=Dt([new $e(jh.name,ge),new $e(qh.name,ge),new $e(mo.event.name,ge)],v(o,i,[new ct(Wh)]),ge)}else n=st;return n},e.prototype.visitDirective=function(e,t){},e.prototype.visitDirectiveProperty=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}();function Kh(e){var t=Object.create(null);return e.attrs.forEach((function(e){t[e.name]=e.value})),e.directives.forEach((function(e){Object.keys(e.directive.hostAttributes).forEach((function(n){var r,i,s,o=e.directive.hostAttributes[n],a=t[n];t[n]=null!=a?(i=a,s=o,"class"==(r=n)||"style"==r?i+" "+s:s):o}))})),Ft(Object.keys(t).sort().map((function(e){return Ft([Vt(e),Vt(t[e])])})))}function Qh(e,t){return t.length>10?Uh.callFn([jh,Vt(e),Vt(1),Ft(t)]):Uh.callFn(v([jh,Vt(e),Vt(0)],t))}function Gh(e,t,n){return It(Sn.unwrapValue).callFn([jh,Vt(e),Vt(t),n])}function Xh(e,t){return e.isAnimation?{name:"@"+e.name+"."+e.phase,target:t&&t.directive.isComponent?"component":null}:e}function $h(e){var t=0;return e.first&&e.static?t|=268435456:t|=536870912,t}function Yh(e,t){return e?e+":"+t: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 Jh=function(){function e(e,t,n,r){void 0===r&&(r=null),this._htmlParser=e,this._implicitTags=t,this._implicitAttrs=n,this._locale=r,this._messages=[]}return e.prototype.updateFromTemplate=function(e,t,n){var r,i=this._htmlParser.parse(e,t,{tokenizeExpansionForms:!0,interpolationConfig:n});if(i.errors.length)return i.errors;var s=function(e,t,n,r){return new Mc(n,r).extract(e,t)}(i.rootNodes,n,this._implicitTags,this._implicitAttrs);return s.errors.length?s.errors:((r=this._messages).push.apply(r,v(s.messages)),[])},e.prototype.getMessages=function(){return this._messages},e.prototype.write=function(e,t){var n={},r=new Zh;this._messages.forEach((function(t){var r,i=e.digest(t);n.hasOwnProperty(i)?(r=n[i].sources).push.apply(r,v(t.sources)):n[i]=t}));var i=Object.keys(n).map((function(i){var s=e.createNameMapper(n[i]),o=n[i],a=s?r.convert(o.nodes,s):o.nodes,u=new Or(a,{},{},o.meaning,o.description,i);return u.sources=o.sources,t&&u.sources.forEach((function(e){return e.filePath=t(e.filePath)})),u}));return e.write(i,this._locale)},e}(),Zh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return l(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,s=e.children.map((function(e){return e.visit(n,t)}));return new Br(e.tag,e.attrs,r,i,s,e.isVoid,e.sourceSpan)},t.prototype.visitPlaceholder=function(e,t){return new Vr(e.value,t.toPublicName(e.name),e.sourceSpan)},t.prototype.visitIcuPlaceholder=function(e,t){return new jr(e.value,t.toPublicName(e.name),e.sourceSpan)},t}(Ur),ef=function(){function e(e,t,n){this.srcFileUrl=e,this.genFileUrl=t,"string"==typeof n?(this.source=n,this.stmts=null):(this.source=null,this.stmts=n)}return e.prototype.isEquivalent=function(e){return this.genFileUrl===e.genFileUrl&&(this.source?this.source===e.source:null!=e.stmts&&Ce(this.stmts,e.stmts))},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 tf(e,t){var n,r,i,s,o=[];try{for(var a=f(e.transitiveModule.providers),u=a.next();!u.done;u=a.next()){var p=u.value,l=p.provider,c=p.module;if(Bn(l.token)===t.ROUTES){var h=nf(l.useValue);try{for(var d=(i=void 0,f(h)),v=d.next();!v.done;v=d.next()){var m=v.value;o.push(rf(m,t,c.reference))}}catch(e){i={error:e}}finally{try{v&&!v.done&&(s=d.return)&&s.call(d)}finally{if(i)throw i.error}}}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o}function nf(e,t){var n,r;if(void 0===t&&(t=[]),"string"==typeof e)t.push(e);else if(Array.isArray(e))try{for(var i=f(e),s=i.next();!s.done;s=i.next()){nf(s.value,t)}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}else e.loadChildren?nf(e.loadChildren,t):e.children&&nf(e.children,t);return t}function rf(e,t,n){var r=d(e.split("#"),2),i=r[0],s=r[1],o=t.resolveExternalReference({moduleName:i,name:s},n?n.filePath:void 0);return{route:e,module:n||o,referencedModule: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 sf=/^(?!.*\.d\.ts$).*\.ts$/,of=function(e,t){this.symbol=e,this.metadata=t},af=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.importAs=new Map,this.symbolResourcePaths=new Map,this.symbolFromFile=new Map,this.knownFileNameToModuleNames=new Map}return e.prototype.resolveSymbol=function(e){if(e.members.length>0)return this._resolveSymbolMembers(e);var t=this._resolveSymbolFromSummary(e);if(t)return t;var n=this.resolvedSymbols.get(e);return n||(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(i=this.getImportAs(n,t))?this.getStaticSymbol(i.filePath,i.name,e.members):null}var r=e.filePath.replace(th,".");if(r!==e.filePath){var i,s=e.name.replace(nh,"");n=this.getStaticSymbol(r,s,e.members);return(i=this.getImportAs(n,t))?this.getStaticSymbol(uh(i.filePath),ph(i.name),n.members):null}var o=t&&this.summaryResolver.getImportAs(e)||null;return o||(o=this.importAs.get(e)),o},e.prototype.getResourcePath=function(e){return this.symbolResourcePaths.get(e)||e.filePath},e.prototype.getTypeArity=function(e){if(t=e.filePath,eh.test(t))return null;for(var t,n=pf(this.resolveSymbol(e));n&&n.metadata instanceof bn;)n=pf(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);var r=this.symbolFromFile.get(e);if(!r)return[];this.symbolFromFile.delete(e);try{for(var i=f(r),s=i.next();!s.done;s=i.next()){var o=s.value;this.resolvedSymbols.delete(o),this.importAs.delete(o),this.symbolResourcePaths.delete(o)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},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=pf(n.metadata);if(r instanceof bn)return new of(e,this.getStaticSymbol(r.filePath,r.name,t));if(!r||"class"!==r.__symbolic){for(var i=r,s=0;s<t.length&&i;s++)i=i[t[s]];return new of(e,i)}return r.statics&&1===t.length?new of(e,r.statics[t[0]]):null},e.prototype._resolveSymbolFromSummary=function(e){var t=this.summaryResolver.resolveSummary(e);return t?new of(e,t.metadata):null},e.prototype.getStaticSymbol=function(e,t,n){return this.staticSymbolCache.get(e,t,n)},e.prototype.hasDecorators=function(e){var t=this.getModuleMetadata(e);return!!t.metadata&&Object.keys(t.metadata).some((function(e){var n=t.metadata[e];return n&&"class"===n.__symbolic&&n.decorators}))},e.prototype.getSymbolsOf=function(e){var t=this.summaryResolver.getSymbolsOf(e);return t||(this._createSymbolsOf(e),this.symbolFromFile.get(e)||[])},e.prototype._createSymbolsOf=function(e){var t,n,r,i,s=this;if(!this.symbolFromFile.has(e)){var o=[],a=this.getModuleMetadata(e);if(a.importAs&&this.knownFileNameToModuleNames.set(e,a.importAs),a.exports){var u=function(t){if(t.export)t.export.forEach((function(n){var r,i=r=uf(r="string"==typeof n?n:n.as);"string"!=typeof n&&(i=uf(n.name));var a=s.resolveModule(t.from,e);if(a){var u=s.getStaticSymbol(a,i),p=s.getStaticSymbol(e,r);o.push(s.createExport(p,u))}}));else{var n=p.resolveModule(t.from,e);if(n)p.getSymbolsOf(n).forEach((function(t){var n=s.getStaticSymbol(e,t.name);o.push(s.createExport(n,t))}))}},p=this;try{for(var l=f(a.exports),c=l.next();!c.done;c=l.next()){u(c.value)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}}if(a.metadata){var h=new Set(Object.keys(a.metadata).map(uf)),d=a.origins||{};Object.keys(a.metadata).forEach((function(t){var n=a.metadata[t],r=uf(t),i=s.getStaticSymbol(e,r),u=d.hasOwnProperty(t)&&d[t];if(u){var p=s.resolveModule(u,e);p?s.symbolResourcePaths.set(i,p):s.reportError(new Error("Couldn't resolve original symbol for "+u+" from "+s.host.getOutputName(e)))}o.push(s.createResolvedSymbol(i,e,h,n))}))}var v=new Set;try{for(var m=f(o),y=m.next();!y.done;y=m.next()){var g=y.value;this.resolvedSymbols.set(g.symbol,g),v.add(g.symbol)}}catch(e){r={error:e}}finally{try{y&&!y.done&&(i=m.return)&&i.call(m)}finally{if(r)throw r.error}}this.symbolFromFile.set(e,Array.from(v))}},e.prototype.createResolvedSymbol=function(e,t,n,r){var i,s=this,o=sf.test(e.filePath);if(this.summaryResolver.isLibraryFile(e.filePath)&&!o&&r&&"class"===r.__symbolic){var a={__symbolic:"class",arity:r.arity};return new of(e,a)}var u=function(){return i||(i=s.host.getOutputName(t.replace(/((\.ts)|(\.d\.ts)|)$/,".ts").replace(/^.*node_modules[/\\]/,""))),i},p=this,c=zt(r,new(function(r){function i(){return null!==r&&r.apply(this,arguments)||this}return l(i,r),i.prototype.visitStringMap=function(i,s){var o=i.__symbolic;if("function"===o){var a=s.length;s.push.apply(s,v(i.parameters||[]));var l=r.prototype.visitStringMap.call(this,i,s);return s.length=a,l}if("reference"!==o)return"error"===o?h(h({},i),{fileName:u()}):r.prototype.visitStringMap.call(this,i,s);var c=i.module,f=i.name?uf(i.name):i.name;if(!f)return null;var d=void 0;return c?(d=p.resolveModule(c,e.filePath))?{__symbolic:"resolved",symbol:p.getStaticSymbol(d,f),line:i.line,character:i.character,fileName:u()}:{__symbolic:"error",message:"Could not resolve "+c+" relative to "+p.host.getMetadataFor(e.filePath)+".",line:i.line,character:i.character,fileName:u()}:s.indexOf(f)>=0?{__symbolic:"reference",name:f}:n.has(f)?p.getStaticSymbol(t,f):void 0},i}(Gt)),[]),f=pf(c);return f instanceof bn?this.createExport(e,f):new of(e,c)},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 of(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}();function uf(e){return e.startsWith("___")?e.substr(1):e}function pf(e){return e&&"resolved"===e.__symbolic?e.symbol:e}function lf(e,t,n){var r=ph(t.name);e.statements.push(Dt([],[new ct(n)],new ve(ye)).toDeclStmt(r,[qe.Final,qe.Exported]))}var cf=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}return l(t,e),t.prototype.addSummary=function(e){var t,n=this,r=this.unprocessedSymbolSummariesBySymbol.get(e.symbol),i=this.processedSummaryBySymbol.get(e.symbol);if(r||(r={symbol:e.symbol,metadata:void 0},this.unprocessedSymbolSummariesBySymbol.set(e.symbol,r),i={symbol:this.processValue(e.symbol,0)},this.processedSummaries.push(i),this.processedSummaryBySymbol.set(e.symbol,i)),!r.metadata&&e.metadata){var s=e.metadata||{};if("class"===s.__symbolic){var o={};Object.keys(s).forEach((function(e){"decorators"!==e&&(o[e]=s[e])})),s=o}else df(s)&&(df(t=s)&&pf(t.expression)instanceof bn||function(e){return df(e)&&e.expression&&"select"===e.expression.__symbolic&&pf(e.expression.expression)instanceof bn}
|
||
/**
|
||
* @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
|
||
*/(s)||(s={__symbolic:"error",message:"Complex function calls are not supported."}));if(r.metadata=s,i.metadata=this.processValue(s,1),s instanceof bn&&this.summaryResolver.isLibraryFile(s.filePath)){var a=this.symbols[this.indexBySymbol.get(s)];hh(a.name)||this.reexportedBy.set(a,e.symbol)}}if(!r.type&&e.type&&(r.type=e.type,i.type=this.processValue(e.type,0),e.type.summaryKind===An.NgModule)){var u=e.type;u.exportedDirectives.concat(u.exportedPipes).forEach((function(e){var t=e.reference;if(n.summaryResolver.isLibraryFile(t.filePath)&&!n.unprocessedSymbolSummariesBySymbol.has(t)){var r=n.summaryResolver.resolveSummary(t);r&&n.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 s=void 0;if(t.summaryResolver.isLibraryFile(r.filePath)){var o=t.reexportedBy.get(r);if(o)s=t.indexBySymbol.get(o);else if(e){var a=t.unprocessedSymbolSummariesBySymbol.get(r);a&&a.metadata&&"interface"===a.metadata.__symbolic||(s=r.name+"_"+i,n.push({symbol:r,exportAs:s}))}}return{__symbol:i,name:r.name,filePath:t.summaryResolver.toSummaryFileName(r.filePath,t.srcFileName),importAs:s}}))}),exportAs:n}},t.prototype.processValue=function(e,t){return zt(e,this,t)},t.prototype.visitOther=function(e,t){if(e instanceof bn){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?zt(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 bn&&(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},t}(Gt),hf=function(){function e(e,t,n){this.outputCtx=e,this.symbolResolver=t,this.summaryResolver=n,this.data=[]}return e.prototype.addSourceType=function(e,t){this.data.push({summary:e,metadata:t,isLibrary:!1})},e.prototype.addLibType=function(e){this.data.push({summary:e,metadata:null,isLibrary:!0})},e.prototype.serialize=function(e){var t,n,r,i,s,o,a=this,u=new Map;try{for(var p=f(e),l=p.next();!l.done;l=p.next()){var c=l.value,h=c.symbol,d=c.exportAs;u.set(h,d)}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}var v=new Set;try{for(var m=f(this.data),y=m.next();!y.done;y=m.next()){var g=y.value,_=g.summary,E=g.metadata,x=g.isLibrary;if(_.summaryKind===An.NgModule){v.add(_.type.reference);var S=_;try{for(var w=(s=void 0,f(S.modules)),C=w.next();!C.done;C=w.next()){var b=C.value;v.add(b.reference)}}catch(e){s={error:e}}finally{try{C&&!C.done&&(o=w.return)&&o.call(w)}finally{if(s)throw s.error}}}if(!x){ph(_.type.reference.name);lf(this.outputCtx,_.type.reference,this.serializeSummaryWithDeps(_,E))}}}catch(e){r={error:e}}finally{try{y&&!y.done&&(i=m.return)&&i.call(m)}finally{if(r)throw r.error}}v.forEach((function(e){if(a.summaryResolver.isLibraryFile(e.filePath)){var t=ph(u.get(e)||e.name);a.outputCtx.statements.push(Mt(t).set(a.serializeSummaryRef(e)).toDeclStmt(null,[qe.Exported]))}}))},e.prototype.serializeSummaryWithDeps=function(e,t){var n=this,r=[this.serializeSummary(e)],i=[];if(t instanceof Wn)r.push.apply(r,v(t.declaredDirectives.concat(t.declaredPipes).map((function(e){return e.reference})).concat(t.transitiveModule.modules.map((function(e){return e.reference})).filter((function(e){return e!==t.type.reference}))).map((function(e){return n.serializeSummaryRef(e)})))),i=t.providers;else if(e.summaryKind===An.Directive){var s=e;i=s.providers.concat(s.viewProviders)}return r.push.apply(r,v(i.filter((function(e){return!!e.useClass})).map((function(e){return n.serializeSummary({summaryKind:An.Injectable,type:e.useClass})})))),Ft(r)},e.prototype.serializeSummaryRef=function(e){var t=this.symbolResolver.getStaticSymbol(uh(e.filePath),ph(e.name));return this.outputCtx.importExpr(t)},e.prototype.serializeSummary=function(e){var t=this.outputCtx,n=function(){function e(){}return e.prototype.visitArray=function(e,t){var n=this;return Ft(e.map((function(e){return zt(e,n,t)})))},e.prototype.visitStringMap=function(e,t){var n=this;return new rt(Object.keys(e).map((function(r){return new nt(r,zt(e[r],n,t),!1)})))},e.prototype.visitPrimitive=function(e,t){return Vt(e)},e.prototype.visitOther=function(e,n){if(e instanceof bn)return t.importExpr(e);throw new Error("Illegal State: Encountered value "+e)},e}();return zt(e,new n,null)},e}(),ff=function(e){function t(t,n){var r=e.call(this)||this;return r.symbolCache=t,r.summaryResolver=n,r}return l(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 s=n.symbols[r],o=t.importAs;"number"==typeof o?i.push({symbol:s,importAs:n.symbols[o]}):"string"==typeof o&&i.push({symbol:s,importAs:n.symbolCache.get(rh(e),o)})}));var s=zt(r.summaries,this,null);return{moduleName:r.moduleName,summaries:s,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}(Gt);function df(e){return e&&"call"===e.__symbolic}var vf=function(){function e(e,t,n,r,i,s,o,a,u,p,l,c,h,f){this._config=e,this._options=t,this._host=n,this.reflector=r,this._metadataResolver=i,this._templateParser=s,this._styleCompiler=o,this._viewCompiler=a,this._typeCheckCompiler=u,this._ngModuleCompiler=p,this._injectableCompiler=l,this._outputEmitter=c,this._summaryResolver=h,this._symbolResolver=f,this._templateAstCache=new Map,this._analyzedFiles=new Map,this._analyzedFilesForInjectables=new Map}return e.prototype.clearCache=function(){this._metadataResolver.clearCache()},e.prototype.analyzeModulesSync=function(e){var t=this,n=Ef(e,this._host,this._symbolResolver,this._metadataResolver);return n.ngModules.forEach((function(e){return t._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!0)})),n},e.prototype.analyzeModulesAsync=function(e){var t=this,n=Ef(e,this._host,this._symbolResolver,this._metadataResolver);return Promise.all(n.ngModules.map((function(e){return t._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!1)}))).then((function(){return n}))},e.prototype._analyzeFile=function(e){var t=this._analyzedFiles.get(e);return t||(t=Sf(this._host,this._symbolResolver,this._metadataResolver,e),this._analyzedFiles.set(e,t)),t},e.prototype._analyzeFileForInjectables=function(e){var t=this._analyzedFilesForInjectables.get(e);return t||(t=wf(this._host,this._symbolResolver,this._metadataResolver,e),this._analyzedFilesForInjectables.set(e,t)),t},e.prototype.findGeneratedFileNames=function(e){var t=this,n=[],r=this._analyzeFile(e);(this._options.allowEmptyCodegenFiles||r.directives.length||r.pipes.length||r.injectables.length||r.ngModules.length||r.exportsNonSourceFiles)&&(n.push(rh(r.fileName,!0)),this._options.enableSummariesForJit&&n.push(uh(r.fileName,!0)));var i=oh(sh(r.fileName,!0)[1]);return r.directives.forEach((function(e){var s=t._metadataResolver.getNonNormalizedDirectiveMetadata(e).metadata;s.isComponent&&s.template.styleUrls.forEach((function(e){var o=t._host.resourceNameToFileName(e,r.fileName);if(!o)throw Zt("Couldn't resolve resource "+e+" relative to "+r.fileName);var a=(s.template.encapsulation||t._config.defaultEncapsulation)===P.Emulated;n.push(gf(o,a,i)),t._options.allowEmptyCodegenFiles&&n.push(gf(o,!a,i))}))})),n},e.prototype.emitBasicStub=function(e,t){var n=this._createOutputContext(e);if(e.endsWith(".ngfactory.ts")){if(!t)throw new Error("Assertion error: require the original file for .ngfactory.ts stubs. File: "+e);var r=this._analyzeFile(t);this._createNgFactoryStub(n,r,1)}else if(e.endsWith(".ngsummary.ts")){if(this._options.enableSummariesForJit){if(!t)throw new Error("Assertion error: require the original file for .ngsummary.ts stubs. File: "+e);r=this._analyzeFile(t);mf(n),r.ngModules.forEach((function(e){!function(e,t){lf(e,t,st)}(n,e.type.reference)}))}}else e.endsWith(".ngstyle.ts")&&mf(n);return this._codegenSourceModule("unknown",n)},e.prototype.emitTypeCheckStub=function(e,t){var n=this._analyzeFile(t),r=this._createOutputContext(e);return e.endsWith(".ngfactory.ts")&&this._createNgFactoryStub(r,n,2),r.statements.length>0?this._codegenSourceModule(n.fileName,r):null},e.prototype.loadFilesAsync=function(e,t){var n=this,r=e.map((function(e){return n._analyzeFile(e)})),i=[];r.forEach((function(e){return e.ngModules.forEach((function(e){return i.push(n._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!1))}))}));var s=t.map((function(e){return n._analyzeFileForInjectables(e)}));return Promise.all(i).then((function(e){return{analyzedModules:bf(r),analyzedInjectables:s}}))},e.prototype.loadFilesSync=function(e,t){var n=this,r=e.map((function(e){return n._analyzeFile(e)}));r.forEach((function(e){return e.ngModules.forEach((function(e){return n._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!0)}))}));var i=t.map((function(e){return n._analyzeFileForInjectables(e)}));return{analyzedModules:bf(r),analyzedInjectables:i}},e.prototype._createNgFactoryStub=function(e,t,n){var r=this,i=0;t.ngModules.forEach((function(t,s){r._ngModuleCompiler.createStub(e,t.type.reference);var o=v(t.transitiveModule.directives.map((function(e){return e.reference})),t.transitiveModule.pipes.map((function(e){return e.reference})),t.importedModules.map((function(e){return e.type.reference})),t.exportedModules.map((function(e){return e.type.reference})),r._externalIdentifierReferences([Sn.TemplateRef,Sn.ElementRef])),a=new Map;o.forEach((function(e,t){a.set(e,"_decl"+s+"_"+t)})),a.forEach((function(t,n){e.statements.push(Mt(t).set(st.cast(ye)).toDeclStmt(Rt(e.importExpr(n,null,!1))))})),2&n&&t.declaredDirectives.forEach((function(n){var s=r._metadataResolver.getDirectiveMetadata(n.reference);s.isComponent&&(i++,r._createTypeCheckBlock(e,s.type.reference.name+"_Host_"+i,t,r._metadataResolver.getHostComponentMetadata(s),[s.type],a),r._createTypeCheckBlock(e,s.type.reference.name+"_"+i,t,s,t.transitiveModule.directives,a))}))})),0===e.statements.length&&mf(e)},e.prototype._externalIdentifierReferences=function(e){var t,n,r=[];try{for(var i=f(e),s=i.next();!s.done;s=i.next()){var o=s.value,a=Cn(this.reflector,o);a.identifier&&r.push(a.identifier.reference)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},e.prototype._createTypeCheckBlock=function(e,t,n,r,i,s){var o,a=this._parseTemplate(r,n,i),u=a.template,p=a.pipes;(o=e.statements).push.apply(o,v(this._typeCheckCompiler.compileComponent(t,r,u,p,s,e)))},e.prototype.emitMessageBundle=function(e,t){var n=this,r=[],i=new Va,s=new Jh(i,[],{},t);if(e.files.forEach((function(e){var t=[];e.directives.forEach((function(e){var r=n._metadataResolver.getDirectiveMetadata(e);r&&r.isComponent&&t.push(r)})),t.forEach((function(e){var t=e.template.template,n=e.template.templateUrl,i=ls.fromArray(e.template.interpolation);r.push.apply(r,v(s.updateFromTemplate(t,n,i)))}))})),r.length)throw new Error(r.map((function(e){return e.toString()})).join("\n"));return s},e.prototype.emitAllPartialModules=function(e,t){var n=this,r=e.ngModuleByPipeOrDirective,i=e.files,s=new Map,o=function(e){return s.has(e)||s.set(e,n._createOutputContext(e)),s.get(e)};return i.forEach((function(e){return n._compilePartialModule(e.fileName,r,e.directives,e.pipes,e.ngModules,e.injectables,o(e.fileName))})),t.forEach((function(e){return n._compileShallowModules(e.fileName,e.shallowModules,o(e.fileName))})),Array.from(s.values()).map((function(e){return{fileName:e.genFilePath,statements:v(e.constantPool.statements,e.statements)}}))},e.prototype._compileShallowModules=function(e,t,n){var r=this;t.forEach((function(e){return t=n,i=e,s=r._injectableCompiler,o=In(i.type),a=i.rawImports?[i.rawImports]:[],u=i.rawExports?[i.rawExports]:[],p=Ns({factory:s.factoryFor({type:i.type,symbol:i.type.reference},t),providers:rr(i.rawProviders,t),imports:rr(v(a,u),t)}),l=It(tr.defineInjector).callFn([p]),void t.statements.push(new mt(o,null,[new ft("ɵinj",ge,[qe.Static],l)],[],new dt(null,[],[]),[]));var t,i,s,o,a,u,p,l}))},e.prototype._compilePartialModule=function(e,t,n,r,i,s,o){var a=this,u=new Dp,p=new Mu(this._templateParser.expressionParser,cs,u,[],[]);n.forEach((function(e){var n=a._metadataResolver.getDirectiveMetadata(e);if(n.isComponent){var r=t.get(e);r||Jt("Cannot determine the module for component '"+In(n.type)+"'");var i=n.template.htmlAst;n.template.preserveWhitespaces||(i=Ka(i));var s=Vp(i.rootNodes,p),u=new Map;r.transitiveModule.directives.map((function(e){return a._metadataResolver.getDirectiveSummary(e.reference)})).forEach((function(e){e.selector&&u.set(e.selector,e.type.reference)}));var l=new Map;r.transitiveModule.pipes.map((function(e){return a._metadataResolver.getPipeSummary(e.reference)})).forEach((function(e){l.set(e.name,e.type.reference)})),function(e,t,n,r,i,s,o){var a=In(t.type);a||Jt("Cannot resolver the name of "+t.type);var u=e.constantPool.propertyNameOf(2),p=t.toSummary(),l=h(h({},Ul()),{selector:t.selector,template:{nodes:n.nodes},directives:[],pipes:$l(o,e),viewQueries:Hl(t.viewQueries,e),wrapDirectivesAndPipesInClosure:!1,styles:p.template&&p.template.styles||Fl,encapsulation:p.template&&p.template.encapsulation||P.Emulated,interpolation:cs,animations:null,viewProviders:t.viewProviders.length>0?new Me(t.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),c=jl(l,e.constantPool,i),f=ts(h(h({},l),{injectFn:tr.directiveInject,target:Xi.Directive})),d=new mt(a,null,[new ft("ɵfac",ge,[qe.Static],f.factory)],[],new dt(null,[],[]),[]),v=new mt(a,null,[new ft(u,ge,[qe.Static],c.expression)],[],new dt(null,[],[]),[]);e.statements.push(d,v)}(o,n,s,a.reflector,p,0,l)}else!function(e,t,n,r){var i=In(t.type);i||Jt("Cannot resolver the name of "+t.type);var s=e.constantPool.propertyNameOf(1),o=Ul(),a=Vl(o,e.constantPool,r),u=ts(h(h({},o),{injectFn:tr.directiveInject,target:Xi.Directive})),p=new mt(i,null,[new ft("ɵfac",ge,[qe.Static],u.factory)],[],new dt(null,[],[]),[]),l=new mt(i,null,[new ft(s,ge,[qe.Static],a.expression)],[],new dt(null,[],[]),[]);e.statements.push(p,l)}(o,n,a.reflector,p)})),r.forEach((function(e){var t=a._metadataResolver.getPipeMetadata(e);t&&function(e,t,n){var r=In(t.type);if(!r)return Jt("Cannot resolve the name of "+t.type);var i,s,o=e.importExpr(t.type.reference),a={name:r,type:(i=o,s=new Me(i),{value:s,type:s}),internalType:o,pipeName:t.name,typeArgumentCount:0,deps:rs(t.type,e,n),pure:t.pure},u=Rs(a),p=ts(h(h({},a),{injectFn:tr.directiveInject,target:Xi.Pipe})),l=e.constantPool.propertyNameOf(3),c=new mt(r,null,[new ft("ɵfac",ge,[qe.Static],p.factory)],[],new dt(null,[],[]),[]),f=new mt(r,null,[new ft(l,ge,[qe.Static],u.expression)],[],new dt(null,[],[]),[]);e.statements.push(c,f)}(o,t,a.reflector)})),s.forEach((function(e){return a._injectableCompiler.compile(e,o)}))},e.prototype.emitAllPartialModules2=function(e){var t=this;return e.reduce((function(e,n){return e.push.apply(e,v(t._emitPartialModule2(n.fileName,n.injectables))),e}),[])},e.prototype._emitPartialModule2=function(e,t){var n=this,r=this._createOutputContext(e);return t.forEach((function(e){return n._injectableCompiler.compile(e,r)})),r.statements&&r.statements.length>0?[{fileName:e,statements:v(r.constantPool.statements,r.statements)}]:[]},e.prototype.emitAllImpls=function(e){var t=this,n=e.ngModuleByPipeOrDirective;return Gn(e.files.map((function(e){return t._compileImplFile(e.fileName,n,e.directives,e.pipes,e.ngModules,e.injectables)})))},e.prototype._compileImplFile=function(e,t,n,r,i,s){var o=this,a=oh(sh(e,!0)[1]),u=[],p=this._createOutputContext(rh(e,!0));if(u.push.apply(u,v(this._createSummary(e,n,r,i,s,p))),i.forEach((function(e){return o._compileModule(p,e)})),n.forEach((function(n){var r=o._metadataResolver.getDirectiveMetadata(n);if(r.isComponent){var i=t.get(n);if(!i)throw new Error("Internal Error: cannot determine the module for component "+In(r.type)+"!");var s=o._styleCompiler.compileComponent(p,r);r.template.externalStylesheets.forEach((function(t){var n=o._styleCompiler.needsStyleShim(r);u.push(o._codegenStyles(e,r,t,n,a)),o._options.allowEmptyCodegenFiles&&u.push(o._codegenStyles(e,r,t,!n,a))}));o._compileComponent(p,r,i,i.transitiveModule.directives,s,a);o._compileComponentFactory(p,r,i,a)}})),p.statements.length>0||this._options.allowEmptyCodegenFiles){var l=this._codegenSourceModule(e,p);u.unshift(l)}return u},e.prototype._createSummary=function(e,t,n,r,i,s){var o=this,a=this._symbolResolver.getSymbolsOf(e).map((function(e){return o._symbolResolver.resolveSymbol(e)})),u=v(r.map((function(e){return{summary:o._metadataResolver.getNgModuleSummary(e.type.reference),metadata:o._metadataResolver.getNgModuleMetadata(e.type.reference)}})),t.map((function(e){return{summary:o._metadataResolver.getDirectiveSummary(e),metadata:o._metadataResolver.getDirectiveMetadata(e)}})),n.map((function(e){return{summary:o._metadataResolver.getPipeSummary(e),metadata:o._metadataResolver.getPipeMetadata(e)}})),i.map((function(e){return{summary:o._metadataResolver.getInjectableSummary(e.symbol),metadata:o._metadataResolver.getInjectableSummary(e.symbol).type}}))),p=this._options.enableSummariesForJit?this._createOutputContext(uh(e,!0)):null,l=function(e,t,n,r,i,s,o){void 0===o&&(o=!1);var a=new cf(r,n,e);i.forEach((function(e){return a.addSummary({symbol:e.symbol,metadata:e.metadata})})),s.forEach((function(e){var t=e.summary;e.metadata;a.addSummary({symbol:t.type.reference,metadata:void 0,type:t})}));var u=a.serialize(o),p=u.json,l=u.exportAs;if(t){var c=new hf(t,r,n);s.forEach((function(e){var t=e.summary,n=e.metadata;c.addSourceType(t,n)})),a.unprocessedSymbolSummariesBySymbol.forEach((function(e){n.isLibraryFile(e.symbol.filePath)&&e.type&&c.addLibType(e.type)})),c.serialize(l)}return{json:p,exportAs:l}}(e,p,this._summaryResolver,this._symbolResolver,a,u,this._options.createExternalSymbolFactoryReexports),c=l.json;l.exportAs.forEach((function(e){s.statements.push(Mt(e.exportAs).set(s.importExpr(e.symbol)).toDeclStmt(null,[qe.Exported]))}));var h=[new ef(e,ah(e),c)];return p&&h.push(this._codegenSourceModule(e,p)),h},e.prototype._compileModule=function(e,t){var n=[];if(this._options.locale){var r=this._options.locale.replace(/_/g,"-");n.push({token:Cn(this.reflector,Sn.LOCALE_ID),useValue:r})}this._options.i18nFormat&&n.push({token:Cn(this.reflector,Sn.TRANSLATIONS_FORMAT),useValue:this._options.i18nFormat}),this._ngModuleCompiler.compile(e,t,n)},e.prototype._compileComponentFactory=function(e,t,n,r){var i=this._metadataResolver.getHostComponentMetadata(t),s=this._compileComponent(e,i,n,[t.type],null,r).viewClassVar,o=Ln(t.type.reference),a=[];for(var u in t.inputs){var p=t.inputs[u];a.push(new nt(u,Vt(p),!1))}var l=[];for(var u in t.outputs){p=t.outputs[u];l.push(new nt(u,Vt(p),!1))}e.statements.push(Mt(o).set(It(Sn.createComponentFactory).callFn([Vt(t.selector),e.importExpr(t.type.reference),Mt(s),new rt(a),new rt(l),Ft(t.template.ngContentSelectors.map((function(e){return Vt(e)})))])).toDeclStmt(kt(Sn.ComponentFactory,[Rt(e.importExpr(t.type.reference))],[ue.Const]),[qe.Final,qe.Exported]))},e.prototype._compileComponent=function(e,t,n,r,i,s){var o=this._parseTemplate(t,n,r),a=o.template,u=o.pipes,p=i?Mt(i.stylesVar):Ft([]),l=this._viewCompiler.compileComponent(e,t,a,p,u);return i&&yf(this._symbolResolver,i,this._styleCompiler.needsStyleShim(t),s),l},e.prototype._parseTemplate=function(e,t,n){var r=this;if(this._templateAstCache.has(e.type.reference))return this._templateAstCache.get(e.type.reference);var i=e.template.preserveWhitespaces,s=n.map((function(e){return r._metadataResolver.getDirectiveSummary(e.reference)})),o=t.transitiveModule.pipes.map((function(e){return r._metadataResolver.getPipeSummary(e.reference)})),a=this._templateParser.parse(e,e.template.htmlAst,s,o,t.schemas,$n(t.type,e,e.template),i);return this._templateAstCache.set(e.type.reference,a),a},e.prototype._createOutputContext=function(e){var t=this;return{statements:[],genFilePath:e,importExpr:function(n,r,i){if(void 0===r&&(r=null),void 0===i&&(i=!0),!(n instanceof bn))throw new Error("Internal error: unknown identifier "+JSON.stringify(n));var s=t._symbolResolver.getTypeArity(n)||0,o=t._symbolResolver.getImportAs(n,i)||n,a=o.filePath,u=o.name,p=o.members,l=t._fileNameToModuleName(a,e),c=l===t._fileNameToModuleName(e,e)?null:l,h=r||[],f=s-h.length,d=h.concat(fn(f,ye));return p.reduce((function(e,t){return e.prop(t)}),It(new ze(c,u,null),d))},constantPool:new yn}},e.prototype._fileNameToModuleName=function(e,t){return this._summaryResolver.getKnownModuleName(e)||this._symbolResolver.getKnownModuleName(e)||this._host.fileNameToModuleName(e,t)},e.prototype._codegenStyles=function(e,t,n,r,i){var s=this._createOutputContext(gf(n.moduleUrl,r,i)),o=this._styleCompiler.compileStyles(s,t,n,r);return yf(this._symbolResolver,o,r,i),this._codegenSourceModule(e,s)},e.prototype._codegenSourceModule=function(e,t){return new ef(e,t.genFilePath,t.statements)},e.prototype.listLazyRoutes=function(e,t){var n,r,i,s,o=this;if(e)return function e(t,n,r){var i,s;void 0===n&&(n=new Set);void 0===r&&(r=[]);if(n.has(t)||!t.name)return r;n.add(t);var a=tf(o._metadataResolver.getNgModuleMetadata(t,!0),o.reflector);try{for(var u=f(a),p=u.next();!p.done;p=u.next()){var l=p.value;r.push(l),e(l.referencedModule,n,r)}}catch(e){i={error:e}}finally{try{p&&!p.done&&(s=u.return)&&s.call(u)}finally{if(i)throw i.error}}return r}(rf(e,this.reflector).referencedModule);if(t){var a=[];try{for(var u=f(t.ngModules),p=u.next();!p.done;p=u.next()){var l=tf(p.value,this.reflector);try{for(var c=(i=void 0,f(l)),h=c.next();!h.done;h=c.next()){var d=h.value;a.push(d)}}catch(e){i={error:e}}finally{try{h&&!h.done&&(s=c.return)&&s.call(c)}finally{if(i)throw i.error}}}}catch(e){n={error:e}}finally{try{p&&!p.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return a}throw new Error("Either route or analyzedModules has to be specified!")},e}();function mf(e){e.statements.push(It(Sn.ComponentFactory).toStmt())}function yf(e,t,n,r){t.dependencies.forEach((function(t){t.setValue(e.getStaticSymbol(gf(t.moduleUrl,n,r),t.name))}))}function gf(e,t,n){return e+(t?".shim":"")+".ngstyle"+n}function _f(e,t,n,r){return Cf(function(e,t,n,r){var i=new Set,s=[];return e.forEach((function(e){return function e(o){if(i.has(o)||!t.isSourceFile(o))return!1;i.add(o);var a=Sf(t,n,r,o);s.push(a),a.ngModules.forEach((function(t){t.transitiveModule.modules.forEach((function(t){return e(t.reference.filePath)}))}))}(e)})),s}(e,t,n,r))}function Ef(e,t,n,r){return xf(_f(e,t,n,r))}function xf(e){if(e.symbolsMissingModule&&e.symbolsMissingModule.length)throw Zt(e.symbolsMissingModule.map((function(e){return"Cannot determine the module for class "+e.name+" in "+e.filePath+"! Add "+e.name+" to the NgModule to fix it."})).join("\n"));return e}function Sf(e,t,n,r){var i=[],s=[],o=[],a=[],u=[],p=t.hasDecorators(r),l=!1;return r.endsWith(".d.ts")&&!p||t.getSymbolsOf(r).forEach((function(r){var p=t.resolveSymbol(r).metadata;if(p&&"error"!==p.__symbolic){var c=!1;if("class"===p.__symbolic)if(n.isDirective(r))c=!0,n.isAbstractDirective(r)?i.push(r):s.push(r);else if(n.isPipe(r))c=!0,o.push(r);else if(n.isNgModule(r)){var h=n.getNgModuleMetadata(r,!1);h&&(c=!0,u.push(h))}else if(n.isInjectable(r)){c=!0;var f=n.getInjectableMetadata(r,null,!1);f&&a.push(f)}c||(l=l||function(e,t){var n=!1,r=function(){function t(){}return t.prototype.visitArray=function(e,t){var n=this;e.forEach((function(e){return zt(e,n,t)}))},t.prototype.visitStringMap=function(e,t){var n=this;Object.keys(e).forEach((function(r){return zt(e[r],n,t)}))},t.prototype.visitPrimitive=function(e,t){},t.prototype.visitOther=function(t,r){t instanceof bn&&!e.isSourceFile(t.filePath)&&(n=!0)},t}();return zt(t,new r,null),n}(e,p))}})),{fileName:r,directives:s,abstractDirectives:i,pipes:o,ngModules:u,injectables:a,exportsNonSourceFiles:l}}function wf(e,t,n,r){var i=[],s=[];return t.hasDecorators(r)&&t.getSymbolsOf(r).forEach((function(e){var r=t.resolveSymbol(e).metadata;if(r&&"error"!==r.__symbolic&&"class"===r.__symbolic)if(n.isInjectable(e)){var o=n.getInjectableMetadata(e,null,!1);o&&i.push(o)}else if(n.isNgModule(e)){var a=n.getShallowModuleMetadata(e);a&&s.push(a)}})),{fileName:r,injectables:i,shallowModules:s}}function Cf(e){var t=[],n=new Map,r=new Set;e.forEach((function(e){e.ngModules.forEach((function(e){t.push(e),e.declaredDirectives.forEach((function(t){return n.set(t.reference,e)})),e.declaredPipes.forEach((function(t){return n.set(t.reference,e)}))})),e.directives.forEach((function(e){return r.add(e)})),e.pipes.forEach((function(e){return r.add(e)}))}));var i=[];return r.forEach((function(e){n.has(e)||i.push(e)})),{ngModules:t,ngModuleByPipeOrDirective:n,symbolsMissingModule:i,files:e}}function bf(e){return xf(Cf(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 Tf(e,t){var n,r;if(void 0===t&&(t=0),!e)return"";var i=e.position?e.position.fileName+"("+(e.position.line+1)+","+(e.position.column+1)+")":"",s=i&&0!==t?" at "+i:"",o=""+(i&&0===t?i+": ":"")+e.message+s;if(e.next)try{for(var a=f(e.next),u=a.next();!u.done;u=a.next()){o+="\n"+Tf(u.value,t+2)}}catch(e){n={error:e}}finally{try{u&&!u.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}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?" ":"")}(t)+o}function Pf(e){var t=Zt(Tf(e)+".");return t.ngFormattedMessage=!0,t.chain=e,t.position=e.position,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 Nf="@angular/core",Af=/^\$.*\$$/,Mf={__symbolic:"ignore"},If=new Set(["useValue","useFactory","data","id","loadChildren"]);function kf(e){return e&&"ignore"==e.__symbolic}var Rf=function(){function e(e,t,n,r,i){var s=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 s._registerDecoratorOrConstructor(s.getStaticSymbol(e.filePath,e.name),e.ctor)})),r.forEach((function(e){return s._registerFunction(s.getStaticSymbol(e.filePath,e.name),e.fn)})),this.annotationForParentClassWithSummaryKind.set(An.Directive,[U,W]),this.annotationForParentClassWithSummaryKind.set(An.Pipe,[z]),this.annotationForParentClassWithSummaryKind.set(An.NgModule,[$]),this.annotationForParentClassWithSummaryKind.set(An.Injectable,[Y,z,U,W,$])}return e.prototype.componentModuleUrl=function(e){var t=this.findSymbolDeclaration(e);return this.symbolResolver.getResourcePath(t)},e.prototype.invalidateSymbols=function(e){var t,n;try{for(var r=f(e),i=r.next();!i.done;i=r.next()){var s=i.value;this.annotationCache.delete(s),this.shallowAnnotationCache.delete(s),this.propertyCache.delete(s),this.parameterCache.delete(s),this.methodCache.delete(s),this.staticCache.delete(s),this.conversionMap.delete(s)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},e.prototype.resolveExternalReference=function(e,t){var n=void 0;if(!t){n=e.moduleName+":"+e.name;var r=this.resolvedExternalReferences.get(n);if(r)return r}var i=this.symbolResolver.getSymbolByModule(e.moduleName,e.name,t),s=this.findSymbolDeclaration(i);return t||(this.symbolResolver.recordModuleNameForFileName(i.filePath,e.moduleName),this.symbolResolver.recordImportAs(s,i)),n&&this.resolvedExternalReferences.set(n,s),s},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 bn)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),s=this.findParentType(e,i);if(s){var o=this.annotations(s);r.push.apply(r,v(o))}var a=[];if(i.decorators&&(a=t(e,i.decorators))&&r.push.apply(r,v(a)),s&&!this.summaryResolver.isLibraryFile(e.filePath)&&this.summaryResolver.isLibraryFile(s.filePath)){var u=this.summaryResolver.resolveSummary(s);if(u&&u.type){var p=this.annotationForParentClassWithSummaryKind.get(u.type.summaryKind);p.some((function(e){return a.some((function(t){return e.isTypeOf(t)}))}))||this.reportError(Uf(Of("Class "+e.name+" in "+e.filePath+" extends from a "+An[u.type.summaryKind]+" in another compilation unit without duplicating the decorator",void 0,"Please add a "+p.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 s=this.propMetadata(i);Object.keys(s).forEach((function(e){n[e]=s[e]}))}var o=r.members||{};Object.keys(o).forEach((function(r){var i=o[r].find((function(e){return"property"==e.__symbolic||"method"==e.__symbolic})),s=[];n[r]&&s.push.apply(s,v(n[r])),n[r]=s,i&&i.decorators&&s.push.apply(s,v(t.simplify(e,i.decorators)))})),this.propertyCache.set(e,n)}return n},e.prototype.parameters=function(e){var t=this;if(!(e instanceof bn))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),s=r?r.members:null,o=s?s.__ctor__:null;if(o){var a=o.find((function(e){return"constructor"==e.__symbolic})),u=a.parameters||[],p=this.simplify(e,a.parameterDecorators||[]);n=[],u.forEach((function(r,i){var s=[],o=t.trySimplify(e,r);o&&s.push(o);var a=p?p[i]:null;a&&s.push.apply(s,v(a)),n.push(s)}))}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 s=n.members||{};Object.keys(s).forEach((function(e){var n=s[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).statics||{};t=Object.keys(n),this.staticCache.set(e,t)}return t},e.prototype.findParentType=function(e,t){var n=this.trySimplify(e,t.extends);if(n instanceof bn)return n},e.prototype.hasLifecycleHook=function(e,t){e instanceof bn||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 bn))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 s=f(r),o=s.next();!o.done;o=s.next()){var a=o.value;if(a.endsWith("TypeGuard")){var u=a.substr(0,a.length-"TypeGuard".length),p=void 0;u.endsWith("UseIf")?(u=a.substr(0,u.length-"UseIf".length),p="UseIf"):p=this.getStaticSymbol(e.filePath,e.name,[a]),i[u]=p}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=s.return)&&n.call(s)}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,v([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(Nf,"Injectable"),Y),this.injectionToken=this.findDeclaration(Nf,"InjectionToken"),this.opaqueToken=this.findDeclaration(Nf,"OpaqueToken"),this.ROUTES=this.tryFindDeclaration("@angular/router","ROUTES"),this.ANALYZE_FOR_ENTRY_COMPONENTS=this.findDeclaration(Nf,"ANALYZE_FOR_ENTRY_COMPONENTS"),this._registerDecoratorOrConstructor(this.findDeclaration(Nf,"Host"),re),this._registerDecoratorOrConstructor(this.findDeclaration(Nf,"Self"),te),this._registerDecoratorOrConstructor(this.findDeclaration(Nf,"SkipSelf"),ne),this._registerDecoratorOrConstructor(this.findDeclaration(Nf,"Inject"),O),this._registerDecoratorOrConstructor(this.findDeclaration(Nf,"Optional"),ee),this._registerDecoratorOrConstructor(this.findDeclaration(Nf,"Attribute"),L),this._registerDecoratorOrConstructor(this.findDeclaration(Nf,"ContentChild"),B),this._registerDecoratorOrConstructor(this.findDeclaration(Nf,"ContentChildren"),D),this._registerDecoratorOrConstructor(this.findDeclaration(Nf,"ViewChild"),j),this._registerDecoratorOrConstructor(this.findDeclaration(Nf,"ViewChildren"),V),this._registerDecoratorOrConstructor(this.findDeclaration(Nf,"Input"),K),this._registerDecoratorOrConstructor(this.findDeclaration(Nf,"Output"),Q),this._registerDecoratorOrConstructor(this.findDeclaration(Nf,"Pipe"),z),this._registerDecoratorOrConstructor(this.findDeclaration(Nf,"HostBinding"),G),this._registerDecoratorOrConstructor(this.findDeclaration(Nf,"HostListener"),X),this._registerDecoratorOrConstructor(this.findDeclaration(Nf,"Directive"),U),this._registerDecoratorOrConstructor(this.findDeclaration(Nf,"Component"),W),this._registerDecoratorOrConstructor(this.findDeclaration(Nf,"NgModule"),$),this._registerDecoratorOrConstructor(this.findDeclaration(Nf,"Host"),re),this._registerDecoratorOrConstructor(this.findDeclaration(Nf,"Self"),te),this._registerDecoratorOrConstructor(this.findDeclaration(Nf,"SkipSelf"),ne),this._registerDecoratorOrConstructor(this.findDeclaration(Nf,"Optional"),ee)},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,s=Bf.empty,o=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 p(n){return e(t,n,r,0)}function l(n,s){if(n===t)return e(n,s,r+1,a);try{return e(n,s,r+1,a)}catch(e){if(!Ff(e))throw e;var o=e.chain?"references '"+e.symbol.name+"'":function(e){if(e.summary)return e.summary;switch(e.message){case"Reference to non-exported class":if(e.context&&e.context.className)return"references non-exported class "+e.context.className;break;case"Variable not initialized":return"is not initialized";case"Destructuring not supported":return"is a destructured variable";case"Could not resolve type":return"could not be resolved";case Lf:return e.context&&e.context.name?"calls '"+e.context.name+"'":"calls a function";case"Reference to a local symbol":return e.context&&e.context.name?"references local variable "+e.context.name:"references a local variable"}return"contains the error"}(e),u={message:"'"+n.name+"' "+o,position:e.position,next:e.chain};i.error({message:e.message,advise:e.advise,context:e.context,chain:u,symbol:n},t)}}function c(n){var h,d,m,y;if(Df(n))return n;if(Array.isArray(n)){var g=[];try{for(var _=f(n),E=_.next();!E.done;E=_.next()){var x=E.value;if(x&&"spread"===x.__symbolic){var S=p(x.expression);if(Array.isArray(S)){try{for(var w=(m=void 0,f(S)),C=w.next();!C.done;C=w.next()){var b=C.value;g.push(b)}}catch(e){m={error:e}}finally{try{C&&!C.done&&(y=w.return)&&y.call(w)}finally{if(m)throw m.error}}continue}}var T=c(x);kf(T)||g.push(T)}}catch(e){h={error:e}}finally{try{E&&!E.done&&(d=_.return)&&d.call(_)}finally{if(h)throw h.error}}return g}if(n instanceof bn)return n===i.injectionToken||i.conversionMap.has(n)||a>0&&!n.members.length?n:null!=(D=u(P=n))?l(P,D):P;if(n){if(n.__symbolic){var P=void 0;switch(n.__symbolic){case"binop":var N=c(n.left);if(kf(N))return N;var A=c(n.right);if(kf(A))return A;switch(n.operator){case"&&":return N&&A;case"||":return N||A;case"|":return N|A;case"^":return N^A;case"&":return N&A;case"==":return N==A;case"!=":return N!=A;case"===":return N===A;case"!==":return N!==A;case"<":return N<A;case">":return N>A;case"<=":return N<=A;case">=":return N>=A;case"<<":return N<<A;case">>":return N>>A;case"+":return N+A;case"-":return N-A;case"*":return N*A;case"/":return N/A;case"%":return N%A}return null;case"if":var M=c(n.condition);return c(M?n.thenExpression:n.elseExpression);case"pre":var I=c(n.operand);if(kf(I))return I;switch(n.operator){case"+":return I;case"-":return-I;case"!":return!I;case"~":return~I}return null;case"index":var k=p(n.expression),R=p(n.index);return k&&Df(R)?k[R]:null;case"select":var O=n.member,F=t,L=c(n.expression);if(L instanceof bn){var D,B=L.members.concat(O);return null!=(D=u(F=i.getStaticSymbol(L.filePath,L.name,B)))?l(F,D):F}return L&&Df(O)?l(F,L[O]):null;case"reference":var V=n.name,j=s.resolve(V);if(j!=Bf.missing)return j;break;case"resolved":try{return c(n.symbol)}catch(e){throw Ff(e)&&null!=n.fileName&&null!=n.line&&null!=n.character&&(e.position={fileName:n.fileName,line:n.line,column:n.character}),e}case"class":case"function":return t;case"new":case"call":if((P=e(t,n.expression,r+1,0))instanceof bn){if(P===i.injectionToken||P===i.opaqueToken)return t;var U=n.arguments||[],H=i.conversionMap.get(P);if(H){var q=U.map((function(e){return l(t,e)})).map((function(e){return kf(e)?void 0:e}));return H(t,q)}return function(e,n,a,u){if(n&&"function"==n.__symbolic){o.get(e)&&i.error({message:"Recursion is not supported",summary:"called '"+e.name+"' recursively",value:n},e);try{var p=n.value;if(p&&(0!=r||"error"!=p.__symbolic)){var h=n.parameters,f=n.defaults;a=a.map((function(e){return l(t,e)})).map((function(e){return kf(e)?void 0:e})),f&&f.length>a.length&&a.push.apply(a,v(f.slice(a.length).map((function(e){return c(e)})))),o.set(e,!0);for(var d=Bf.build(),m=0;m<h.length;m++)d.define(h[m],a[m]);var y,g=s;try{s=d.done(),y=l(e,p)}finally{s=g}return y}}finally{o.delete(e)}}if(0===r)return Mf;var _=void 0;if(u&&"resolved"==u.__symbolic){var E=u.line,x=u.character,S=u.fileName;null!=S&&null!=E&&null!=x&&(_={fileName:S,line:E,column:x})}i.error({message:Lf,context:e,value:n,position:_},t)}(P,u(P),U,n.expression)}return Mf;case"error":var W=n.message;return null!=n.line?i.error({message:W,context:n.context,value:n,position:{fileName:n.fileName,line:n.line,column:n.character}},t):i.error({message:W,context:n.context},t),Mf;case"ignore":return n}return null}return function(e,t){if(!e)return{};var n={};return Object.keys(e).forEach((function(r){var i=t(e[r],r);kf(i)||(Af.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:i}):n[r]=i)})),n}(n,(function(s,o){if(If.has(o)){if("useValue"===o&&"provide"in n){var u=c(n.provide);if(u===i.ROUTES||u==i.ANALYZE_FOR_ENTRY_COMPONENTS)return c(s)}return function(n){return e(t,n,r,a+1)}(s)}return c(s)}))}return Mf}return c(n)}(e,t,0,n?1:0)}catch(t){if(!this.errorRecorder)throw Uf(t,e);this.reportError(t,e)}if(!kf(r))return r},e.prototype.getTypeMetadata=function(e){var t=this.symbolResolver.resolveSymbol(e);return t&&t.metadata?t.metadata:{__symbolic:"class"}},e.prototype.reportError=function(e,t,n){if(!this.errorRecorder)throw e;this.errorRecorder(Uf(e,t),t&&t.filePath||n)},e.prototype.error=function(e,t){var n=e.message,r=e.summary,i=e.advise,s=e.position,o=e.context,a=(e.value,e.symbol),u=e.chain;this.reportError(Of(n,r,i,s,a,o,u),t)},e}();function Of(e,t,n,r,i,s,o){var a=Zt(e);return a.ngMetadataError=!0,n&&(a.advise=n),r&&(a.position=r),t&&(a.summary=t),s&&(a.context=s),o&&(a.chain=o),i&&(a.symbol=i),a}function Ff(e){return!!e.ngMetadataError}var Lf="Function call not supported";function Df(e){return null===e||"function"!=typeof e&&"object"!=typeof e}var Bf=function(){function e(){}return e.build=function(){var t=new Map;return{define:function(e,n){return t.set(e,n),this},done:function(){return t.size>0?new Vf(t):e.empty}}},e.missing={},e.empty={resolve:function(t){return e.missing}},e}(),Vf=function(e){function t(t){var n=e.call(this)||this;return n.bindings=t,n}return l(t,e),t.prototype.resolve=function(e){return this.bindings.has(e)?this.bindings.get(e):Bf.missing},t}(Bf);function jf(e,t){var n=""+function(e,t){switch(e){case"Reference to non-exported class":if(t&&t.className)return"References to a non-exported class are not supported in decorators but "+t.className+" was referenced.";break;case"Variable not initialized":return"Only initialized variables and constants can be referenced in decorators 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 in decorators and this value is needed by the template compiler";case"Could not resolve type":if(t&&t.typeName)return"Could not resolve type "+t.typeName;break;case Lf:return t&&t.name?"Function calls are not supported in decorators but '"+t.name+"' was called":"Function calls are not supported in decorators";case"Reference to a local symbol":if(t&&t.name)return"Reference to a local (non-exported) symbols are not supported in decorators but '"+t.name+"' was referenced";break;case"Lambda not supported":return"Function expressions are not supported in decorators"}return e}(e.message,e.context)+(e.symbol?" in '"+e.symbol.name+"'":""),r=e.position,i=e.next?jf(e.next,t):t?{message:t}:void 0;return{message:n,position:r,next:i?[i]:void 0}}function Uf(e,t){if(Ff(e)){var n=e.position;return Pf(jf({message:"Error during template compile of '"+t.name+"'",position:n,next:{message:e.message,next:e.chain,context:e.context,symbol:e.symbol}},e.advise||function(e,t){switch(e){case"Reference to non-exported class":if(t&&t.className)return"Consider exporting '"+t.className+"'";break;case"Destructuring not supported":return"Consider simplifying to avoid destructuring";case"Reference to a local symbol":if(t&&t.name)return"Consider exporting '"+t.name+"'";break;case"Lambda not supported":return"Consider changing the function expression into an exported function"}}(e.message,e.context)))}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 Hf=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(ih(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=ah(e);try{r=this.host.loadSummary(i)}catch(e){throw console.error("Error loading summary file "+i),e}}if(n=null!=r,this.loadedFilePaths.set(e,n),r){var s=function(e,t,n,r){return new ff(e,t).deserialize(n,r)}(this.staticSymbolCache,this,e,r),o=s.moduleName,a=s.summaries,u=s.importAs;a.forEach((function(e){return t.summaryCache.set(e.symbol,e)})),o&&this.knownFileNameToModuleNames.set(e,o),u.forEach((function(e){t.importAs.set(e.symbol,e.importAs)}))}return 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
|
||
*/function qf(e){return{resolve:function(t,n){var r=e.resourceNameToFileName(n,t);if(!r)throw Zt("Couldn't resolve resource "+n+" from "+t);return r}}}var Wf=function(){},zf=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}();function Kf(e,t,n,r,i){for(var s=r.createChildWihtLocalVars(),o=0;o<e.length;o++)s.vars.set(e[o],t[o]);var a=i.visitAllStatements(n,s);return a?a.value:null}var Qf=function(){function e(e,t,n,r){this.parent=e,this.instance=t,this.className=n,this.vars=r,this.exports=[]}return e.prototype.createChildWihtLocalVars=function(){return new e(this,this.instance,this.className,new Map)},e}(),Gf=function(e){this.value=e};var Xf=function(){function e(e){this.reflector=e}return e.prototype.debugAst=function(e){return Mh(e)},e.prototype.visitDeclareVarStmt=function(e,t){var n=e.value?e.value.visitExpression(this,t):void 0;return t.vars.set(e.name,n),e.hasModifier(qe.Exported)&&t.exports.push(e.name),null},e.prototype.visitWriteVarExpr=function(e,t){for(var n=e.value.visitExpression(this,t),r=t;null!=r;){if(r.vars.has(e.name))return r.vars.set(e.name,n),n;r=r.parent}throw new Error("Not declared variable "+e.name)},e.prototype.visitWrappedNodeExpr=function(e,t){throw new Error("Cannot interpret a WrappedNodeExpr.")},e.prototype.visitTypeofExpr=function(e,t){throw new Error("Cannot interpret a TypeofExpr")},e.prototype.visitReadVarExpr=function(e,t){var n=e.name;if(null!=e.builtin)switch(e.builtin){case be.Super:return Object.getPrototypeOf(t.instance);case be.This:return t.instance;case be.CatchError:n=Yf;break;case be.CatchStack:n=Jf;break;default:throw new Error("Unknown builtin variable "+e.builtin)}for(var r=t;null!=r;){if(r.vars.has(n))return r.vars.get(n);r=r.parent}throw new Error("Not declared variable "+n)},e.prototype.visitWriteKeyExpr=function(e,t){var n=e.receiver.visitExpression(this,t),r=e.index.visitExpression(this,t),i=e.value.visitExpression(this,t);return n[r]=i,i},e.prototype.visitWritePropExpr=function(e,t){var n=e.receiver.visitExpression(this,t),r=e.value.visitExpression(this,t);return n[e.name]=r,r},e.prototype.visitInvokeMethodExpr=function(e,t){var n,r=e.receiver.visitExpression(this,t),i=this.visitAllExpressions(e.args,t);if(null!=e.builtin)switch(e.builtin){case Pe.ConcatArray:n=r.concat.apply(r,v(i));break;case Pe.SubscribeObservable:n=r.subscribe({next:i[0]});break;case Pe.Bind:n=r.bind.apply(r,v(i));break;default:throw new Error("Unknown builtin method "+e.builtin)}else n=r[e.name].apply(r,i);return n},e.prototype.visitInvokeFunctionExpr=function(e,t){var n=this.visitAllExpressions(e.args,t),r=e.fn;return r instanceof Ne&&r.builtin===be.Super?(t.instance.constructor.prototype.constructor.apply(t.instance,n),null):e.fn.visitExpression(this,t).apply(null,n)},e.prototype.visitReturnStmt=function(e,t){return new Gf(e.value.visitExpression(this,t))},e.prototype.visitDeclareClassStmt=function(e,t){var n=function(e,t,n){var r={};e.getters.forEach((function(i){r[i.name]={configurable:!1,get:function(){var r=new Qf(t,this,e.name,t.vars);return Kf([],[],i.body,r,n)}}})),e.methods.forEach((function(i){var s=i.params.map((function(e){return e.name}));r[i.name]={writable:!1,configurable:!1,value:function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var a=new Qf(t,this,e.name,t.vars);return Kf(s,r,i.body,a,n)}}}));var i=e.constructorMethod.params.map((function(e){return e.name})),s=function(){for(var r=this,s=[],o=0;o<arguments.length;o++)s[o]=arguments[o];var a=new Qf(t,this,e.name,t.vars);e.fields.forEach((function(e){r[e.name]=void 0})),Kf(i,s,e.constructorMethod.body,a,n)},o=e.parent?e.parent.visitExpression(n,t):Object;return s.prototype=Object.create(o.prototype,r),s}(e,t,this);return t.vars.set(e.name,n),e.hasModifier(qe.Exported)&&t.exports.push(e.name),null},e.prototype.visitExpressionStmt=function(e,t){return e.expr.visitExpression(this,t)},e.prototype.visitIfStmt=function(e,t){return e.condition.visitExpression(this,t)?this.visitAllStatements(e.trueCase,t):null!=e.falseCase?this.visitAllStatements(e.falseCase,t):null},e.prototype.visitTryCatchStmt=function(e,t){try{return this.visitAllStatements(e.bodyStmts,t)}catch(r){var n=t.createChildWihtLocalVars();return n.vars.set(Yf,r),n.vars.set(Jf,r.stack),this.visitAllStatements(e.catchStmts,n)}},e.prototype.visitThrowStmt=function(e,t){throw e.error.visitExpression(this,t)},e.prototype.visitCommentStmt=function(e,t){return null},e.prototype.visitJSDocCommentStmt=function(e,t){return null},e.prototype.visitInstantiateExpr=function(e,t){var n=this.visitAllExpressions(e.args,t),r=e.classExpr.visitExpression(this,t);return new(r.bind.apply(r,v([void 0],n)))},e.prototype.visitLiteralExpr=function(e,t){return e.value},e.prototype.visitLocalizedString=function(e,t){return null},e.prototype.visitExternalExpr=function(e,t){return this.reflector.resolveExternalReference(e.value)},e.prototype.visitConditionalExpr=function(e,t){return e.condition.visitExpression(this,t)?e.trueCase.visitExpression(this,t):null!=e.falseCase?e.falseCase.visitExpression(this,t):null},e.prototype.visitNotExpr=function(e,t){return!e.condition.visitExpression(this,t)},e.prototype.visitAssertNotNullExpr=function(e,t){return e.condition.visitExpression(this,t)},e.prototype.visitCastExpr=function(e,t){return e.value.visitExpression(this,t)},e.prototype.visitFunctionExpr=function(e,t){return $f(e.params.map((function(e){return e.name})),e.statements,t,this)},e.prototype.visitDeclareFunctionStmt=function(e,t){var n=e.params.map((function(e){return e.name}));return t.vars.set(e.name,$f(n,e.statements,t,this)),e.hasModifier(qe.Exported)&&t.exports.push(e.name),null},e.prototype.visitBinaryOperatorExpr=function(e,t){var n=this,r=function(){return e.lhs.visitExpression(n,t)},i=function(){return e.rhs.visitExpression(n,t)};switch(e.operator){case he.Equals:return r()==i();case he.Identical:return r()===i();case he.NotEquals:return r()!=i();case he.NotIdentical:return r()!==i();case he.And:return r()&&i();case he.Or:return r()||i();case he.Plus:return r()+i();case he.Minus:return r()-i();case he.Divide:return r()/i();case he.Multiply:return r()*i();case he.Modulo:return r()%i();case he.Lower:return r()<i();case he.LowerEquals:return r()<=i();case he.Bigger:return r()>i();case he.BiggerEquals:return r()>=i();default:throw new Error("Unknown operator "+e.operator)}},e.prototype.visitReadPropExpr=function(e,t){return e.receiver.visitExpression(this,t)[e.name]},e.prototype.visitReadKeyExpr=function(e,t){return e.receiver.visitExpression(this,t)[e.index.visitExpression(this,t)]},e.prototype.visitLiteralArrayExpr=function(e,t){return this.visitAllExpressions(e.entries,t)},e.prototype.visitLiteralMapExpr=function(e,t){var n=this,r={};return e.entries.forEach((function(e){return r[e.key]=e.value.visitExpression(n,t)})),r},e.prototype.visitCommaExpr=function(e,t){var n=this.visitAllExpressions(e.parts,t);return n[n.length-1]},e.prototype.visitAllExpressions=function(e,t){var n=this;return e.map((function(e){return e.visitExpression(n,t)}))},e.prototype.visitAllStatements=function(e,t){for(var n=0;n<e.length;n++){var r=e[n].visitStatement(this,t);if(r instanceof Gf)return r}return null},e}();function $f(e,t,n,r){return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return Kf(e,i,t,n,r)}}var Yf="error",Jf="stack",Zf=function(){function e(e,t,n,r,i,s,o,a,u,p,l){this._metadataResolver=e,this._templateParser=t,this._styleCompiler=n,this._viewCompiler=r,this._ngModuleCompiler=i,this._summaryResolver=s,this._reflector=o,this._jitEvaluator=a,this._compilerConfig=u,this._console=p,this.getExtraNgModuleProviders=l,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._sharedStylesheetCount=0,this._addedAotSummaries=new Set}return e.prototype.compileModuleSync=function(e){return Xt(this._compileModuleAndComponents(e,!0))},e.prototype.compileModuleAsync=function(e){return Promise.resolve(this._compileModuleAndComponents(e,!1))},e.prototype.compileModuleAndAllComponentsSync=function(e){return Xt(this._compileModuleAndAllComponents(e,!0))},e.prototype.compileModuleAndAllComponentsAsync=function(e){return Promise.resolve(this._compileModuleAndAllComponents(e,!1))},e.prototype.getComponentFactory=function(e){return this._metadataResolver.getDirectiveSummary(e).componentFactory},e.prototype.loadAotSummaries=function(e){this.clearCache(),this._addAotSummaries(e)},e.prototype._addAotSummaries=function(e){if(!this._addedAotSummaries.has(e)){this._addedAotSummaries.add(e);for(var t=e(),n=0;n<t.length;n++){var r=t[n];if("function"==typeof r)this._addAotSummaries(r);else{var i=r;this._summaryResolver.addSummary({symbol:i.type.reference,metadata:null,type:i})}}}},e.prototype.hasAotSummary=function(e){return!!this._summaryResolver.resolveSummary(e)},e.prototype._filterJitIdentifiers=function(e){var t=this;return e.map((function(e){return e.reference})).filter((function(e){return!t.hasAotSummary(e)}))},e.prototype._compileModuleAndComponents=function(e,t){var n=this;return $t(this._loadModules(e,t),(function(){return n._compileComponents(e,null),n._compileModule(e)}))},e.prototype._compileModuleAndAllComponents=function(e,t){var n=this;return $t(this._loadModules(e,t),(function(){var t=[];return n._compileComponents(e,t),{ngModuleFactory:n._compileModule(e),componentFactories:t}}))},e.prototype._loadModules=function(e,t){var n=this,r=[],i=this._metadataResolver.getNgModuleMetadata(e);return this._filterJitIdentifiers(i.transitiveModule.modules).forEach((function(e){var i=n._metadataResolver.getNgModuleMetadata(e);n._filterJitIdentifiers(i.declaredDirectives).forEach((function(e){var s=n._metadataResolver.loadDirectiveMetadata(i.type.reference,e,t);s&&r.push(s)})),n._filterJitIdentifiers(i.declaredPipes).forEach((function(e){return n._metadataResolver.getOrLoadPipeMetadata(e)}))})),Yt(r)},e.prototype._compileModule=function(e){var t=this._compiledNgModuleCache.get(e);if(!t){var n=this._metadataResolver.getNgModuleMetadata(e),r=this.getExtraNgModuleProviders(n.type.reference),i=nd(),s=this._ngModuleCompiler.compile(i,n,r);t=this._interpretOrJit(Jn(n),i.statements)[s.ngModuleFactoryVar],this._compiledNgModuleCache.set(n.type.reference,t)}return t},e.prototype._compileComponents=function(e,t){var n=this,r=this._metadataResolver.getNgModuleMetadata(e),i=new Map,s=new Set,o=this._filterJitIdentifiers(r.transitiveModule.modules);o.forEach((function(e){var r=n._metadataResolver.getNgModuleMetadata(e);n._filterJitIdentifiers(r.declaredDirectives).forEach((function(e){i.set(e,r);var o=n._metadataResolver.getDirectiveMetadata(e);if(o.isComponent&&(s.add(n._createCompiledTemplate(o,r)),t)){var a=n._createCompiledHostTemplate(o.type.reference,r);s.add(a),t.push(o.componentFactory)}}))})),o.forEach((function(e){var t=n._metadataResolver.getNgModuleMetadata(e);n._filterJitIdentifiers(t.declaredDirectives).forEach((function(e){var t=n._metadataResolver.getDirectiveMetadata(e);t.isComponent&&t.entryComponents.forEach((function(e){var t=i.get(e.componentType);s.add(n._createCompiledHostTemplate(e.componentType,t))}))})),t.entryComponents.forEach((function(e){if(!n.hasAotSummary(e.componentType)){var t=i.get(e.componentType);s.add(n._createCompiledHostTemplate(e.componentType,t))}}))})),s.forEach((function(e){return n._compileTemplate(e)}))},e.prototype.clearCacheFor=function(e){this._compiledNgModuleCache.delete(e),this._metadataResolver.clearCacheFor(e),this._compiledHostTemplateCache.delete(e),this._compiledTemplateCache.get(e)&&this._compiledTemplateCache.delete(e)},e.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._compiledNgModuleCache.clear()},e.prototype._createCompiledHostTemplate=function(e,t){if(!t)throw new Error("Component "+on(e)+" is not part of any NgModule or the module has not been imported into your module.");var n=this._compiledHostTemplateCache.get(e);if(!n){var r=this._metadataResolver.getDirectiveMetadata(e);td(r);var i=this._metadataResolver.getHostComponentMetadata(r,r.componentFactory.viewDefFactory);n=new ed(!0,r.type,i,t,[r.type]),this._compiledHostTemplateCache.set(e,n)}return n},e.prototype._createCompiledTemplate=function(e,t){var n=this._compiledTemplateCache.get(e.type.reference);return n||(td(e),n=new ed(!1,e.type,e,t,t.transitiveModule.directives),this._compiledTemplateCache.set(e.type.reference,n)),n},e.prototype._compileTemplate=function(e){var t=this;if(!e.isCompiled){var n=e.compMeta,r=new Map,i=nd(),s=this._styleCompiler.compileComponent(i,n);n.template.externalStylesheets.forEach((function(e){var i=t._styleCompiler.compileStyles(nd(),n,e);r.set(e.moduleUrl,i)})),this._resolveStylesCompileResult(s,r);e.ngModule.transitiveModule.pipes.map((function(e){return t._metadataResolver.getPipeSummary(e.reference)}));var o=this._parseTemplate(n,e.ngModule,e.directives),a=o.template,u=o.pipes,p=this._viewCompiler.compileComponent(i,n,a,Mt(s.stylesVar),u),l=this._interpretOrJit(Zn(e.ngModule.type,e.compMeta),i.statements),c=l[p.viewClassVar],h=l[p.rendererTypeVar];e.compiled(c,h)}},e.prototype._parseTemplate=function(e,t,n){var r=this,i=e.template.preserveWhitespaces,s=n.map((function(e){return r._metadataResolver.getDirectiveSummary(e.reference)})),o=t.transitiveModule.pipes.map((function(e){return r._metadataResolver.getPipeSummary(e.reference)}));return this._templateParser.parse(e,e.template.htmlAst,s,o,t.schemas,$n(t.type,e,e.template),i)},e.prototype._resolveStylesCompileResult=function(e,t){var n=this;e.dependencies.forEach((function(e,r){var i=t.get(e.moduleUrl),s=n._resolveAndEvalStylesCompileResult(i,t);e.setValue(s)}))},e.prototype._resolveAndEvalStylesCompileResult=function(e,t){return this._resolveStylesCompileResult(e,t),this._interpretOrJit(Yn(e.meta,this._sharedStylesheetCount++),e.outputCtx.statements)[e.stylesVar]},e.prototype._interpretOrJit=function(e,t){return this._compilerConfig.useJit?this._jitEvaluator.evaluateStatements(e,t,this._reflector,this._compilerConfig.jitDevMode):function(e,t){var n=new Qf(null,null,null,new Map);new Xf(t).visitAllStatements(e,n);var r={};return n.exports.forEach((function(e){r[e]=n.vars.get(e)})),r}(t,this._reflector)},e}(),ed=function(){function e(e,t,n,r,i){this.isHost=e,this.compType=t,this.compMeta=n,this.ngModule=r,this.directives=i,this._viewClass=null,this.isCompiled=!1}return e.prototype.compiled=function(e,t){for(var n in this._viewClass=e,this.compMeta.componentViewType.setDelegate(e),t)this.compMeta.rendererType[n]=t[n];this.isCompiled=!0},e}();function td(e){if(!e.isComponent)throw new Error("Could not compile '"+In(e.type)+"' because it is not a component.")}function nd(){return{statements:[],genFilePath:"",importExpr:function(e){return It({name:In(e),moduleName:null,runtime:e})},constantPool:new yn}}
|
||
/**
|
||
* @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 rd=function(){};
|
||
/**
|
||
* @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 id=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(e,t){var n=ad(encodeURI(t)),r=ad(e);if(null!=n[sd.Scheme])return ud(n);n[sd.Scheme]=r[sd.Scheme];for(var i=sd.Scheme;i<=sd.Port;i++)null==n[i]&&(n[i]=r[i]);if("/"==n[sd.Path][0])return ud(n);var s=r[sd.Path];null==s&&(s="/");var o=s.lastIndexOf("/");return s=s.substring(0,o+1)+n[sd.Path],n[sd.Path]=s,ud(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,n));var r=ad(n),i=this._packagePrefix;if(null!=i&&null!=r&&"package"==r[sd.Scheme]){var s=r[sd.Path];return(i=i.replace(/\/+$/,""))+"/"+(s=s.replace(/^\/+/,""))}return n},e}();var sd,od=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");function ad(e){return e.match(od)}function ud(e){var t,n,r,i,s,o,a,u,p=e[sd.Path];return p=null==p?"":function(e){if("/"==e)return"/";for(var t="/"==e[0]?"/":"",n="/"===e[e.length-1]?"/":"",r=e.split("/"),i=[],s=0,o=0;o<r.length;o++){var a=r[o];switch(a){case"":case".":break;case"..":i.length>0?i.pop():s++;break;default:i.push(a)}}if(""==t){for(;s-- >0;)i.unshift("..");0===i.length&&i.push(".")}return t+i.join("/")+n}(p),e[sd.Path]=p,t=e[sd.Scheme],n=e[sd.UserInfo],r=e[sd.Domain],i=e[sd.Port],s=p,o=e[sd.QueryData],a=e[sd.Fragment],u=[],null!=t&&u.push(t+":"),null!=r&&(u.push("//"),null!=n&&u.push(n+"@"),u.push(r),null!=i&&u.push(":"+i)),null!=s&&u.push(s),null!=o&&u.push("?"+o),null!=a&&u.push("#"+a),u.join("")}!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"}(sd||(sd={}));var pd=function(){function e(e,t,n,r){this.host=e,this.staticSymbolResolver=t,this.messageBundle=n,this.metadataResolver=r}return e.prototype.extract=function(e){var t=this,n=Ef(e,this.host,this.staticSymbolResolver,this.metadataResolver),r=n.files,i=n.ngModules;return Promise.all(i.map((function(e){return t.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(e.type.reference,!1)}))).then((function(){var e=[];if(r.forEach((function(n){var r=[];n.directives.forEach((function(e){var n=t.metadataResolver.getDirectiveMetadata(e);n&&n.isComponent&&r.push(n)})),r.forEach((function(n){var r=n.template.template,i=n.template.templateUrl,s=ls.fromArray(n.template.interpolation);e.push.apply(e,v(t.messageBundle.updateFromTemplate(r,i,s)))}))})),e.length)throw new Error(e.map((function(e){return e.toString()})).join("\n"));return t.messageBundle}))},e.create=function(t,n){var r=new Va,i=qf(t),s=new Tn,o=new Hf(t,s),a=new af(t,s,o),u=new Rf(o,a),p=new yc({defaultEncapsulation:P.Emulated,useJit:!1}),l=new _c({get:function(e){return t.loadResource(e)}},i,r,p),c=new Dp,h=new vh(p,r,new Ah(u),new Sc(u),new Rh(u),o,c,l,console,s,u),f=new Jh(r,[],{},n);return{extractor:new e(t,a,f,h),staticReflector:u}},e}(),ld=function(){function e(e){this.directiveMatcher=e}return e.prototype.bind=function(e){if(!e.template)throw new Error("Binding without a template not yet supported");var t=cd.apply(e.template),n=hd.apply(e.template,this.directiveMatcher),r=n.directives,i=n.bindings,s=n.references,o=fd.apply(e.template,t),a=o.expressions,u=o.symbols,p=o.nestingLevel,l=o.usedPipes;return new dd(e,r,i,s,a,u,p,l)},e}(),cd=function(){function e(e){this.parentScope=e,this.namedEntities=new Map,this.childScopes=new Map}return e.apply=function(t){var n=new e;return n.ingest(t),n},e.prototype.ingest=function(e){var t=this;e instanceof Pr?(e.variables.forEach((function(e){return t.visitVariable(e)})),e.children.forEach((function(e){return e.visit(t)}))):e.forEach((function(e){return e.visit(t)}))},e.prototype.visitElement=function(e){var t=this;e.references.forEach((function(e){return t.visitReference(e)})),e.children.forEach((function(e){return e.visit(t)}))},e.prototype.visitTemplate=function(t){var n=this;t.references.forEach((function(e){return n.visitReference(e)}));var r=new e(this);r.ingest(t),this.childScopes.set(t,r)},e.prototype.visitVariable=function(e){this.maybeDeclare(e)},e.prototype.visitReference=function(e){this.maybeDeclare(e)},e.prototype.visitContent=function(e){},e.prototype.visitBoundAttribute=function(e){},e.prototype.visitBoundEvent=function(e){},e.prototype.visitBoundText=function(e){},e.prototype.visitText=function(e){},e.prototype.visitTextAttribute=function(e){},e.prototype.visitIcu=function(e){},e.prototype.maybeDeclare=function(e){this.namedEntities.has(e.name)||this.namedEntities.set(e.name,e)},e.prototype.lookup=function(e){return this.namedEntities.has(e)?this.namedEntities.get(e):void 0!==this.parentScope?this.parentScope.lookup(e):null},e.prototype.getChildScope=function(e){var t=this.childScopes.get(e);if(void 0===t)throw new Error("Assertion error: child scope for "+e+" not found");return t},e}(),hd=function(){function e(e,t,n,r){this.matcher=e,this.directives=t,this.bindings=n,this.references=r}return e.apply=function(t,n){var r=new Map,i=new Map,s=new Map;return new e(n,r,i,s).ingest(t),{directives:r,bindings:i,references:s}},e.prototype.ingest=function(e){var t=this;e.forEach((function(e){return e.visit(t)}))},e.prototype.visitElement=function(e){this.visitElementOrTemplate(e.name,e)},e.prototype.visitTemplate=function(e){this.visitElementOrTemplate("ng-template",e)},e.prototype.visitElementOrTemplate=function(e,t){var n=this,r=Pl(e,Ji(t)),i=[];this.matcher.match(r,(function(e,t){return i.push(t)})),i.length>0&&this.directives.set(t,i),t.references.forEach((function(e){var r=null;if(""===e.value.trim())r=i.find((function(e){return e.isComponent}))||null;else if(null===(r=i.find((function(t){return null!==t.exportAs&&t.exportAs.some((function(t){return t===e.value}))}))||null))return;null!==r?n.references.set(e,{directive:r,node:t}):n.references.set(e,t)}));var s=function(e,r){var s=i.find((function(t){return t[r].hasOwnProperty(e.name)})),o=void 0!==s?s:t;n.bindings.set(e,o)};t.inputs.forEach((function(e){return s(e,"inputs")})),t.attributes.forEach((function(e){return s(e,"inputs")})),t instanceof Pr&&t.templateAttrs.forEach((function(e){return s(e,"inputs")})),t.outputs.forEach((function(e){return s(e,"outputs")})),t.children.forEach((function(e){return e.visit(n)}))},e.prototype.visitContent=function(e){},e.prototype.visitVariable=function(e){},e.prototype.visitReference=function(e){},e.prototype.visitTextAttribute=function(e){},e.prototype.visitBoundAttribute=function(e){},e.prototype.visitBoundEvent=function(e){},e.prototype.visitBoundAttributeOrEvent=function(e){},e.prototype.visitText=function(e){},e.prototype.visitBoundText=function(e){},e.prototype.visitIcu=function(e){},e}(),fd=function(e){function t(t,n,r,i,s,o,a){var u=e.call(this)||this;return u.bindings=t,u.symbols=n,u.usedPipes=r,u.nestingLevel=i,u.scope=s,u.template=o,u.level=a,u.pipesUsed=[],u.visitNode=function(e){return e.visit(u)},u}return l(t,e),t.prototype.visit=function(e,t){e instanceof Ds?e.visit(this,t):e.visit(this)},t.apply=function(e,n){var r=new Map,i=new Map,s=new Map,o=new Set;return new t(r,i,o,s,n,e instanceof Pr?e:null,0).ingest(e),{expressions:r,symbols:i,nestingLevel:s,usedPipes:o}},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 js){var r=this.scope.lookup(n);null!==r&&this.bindings.set(t,r)}},t}(uo),dd=function(){function e(e,t,n,r,i,s,o,a){this.target=e,this.directives=t,this.bindings=n,this.references=r,this.exprTargets=i,this.symbols=s,this.nestingLevel=o,this.usedPipes=a}return e.prototype.getDirectivesOfNode=function(e){return this.directives.get(e)||null},e.prototype.getReferenceTarget=function(e){return this.references.get(e)||null},e.prototype.getConsumerOfBinding=function(e){return this.bindings.get(e)||null},e.prototype.getExpressionTarget=function(e){return this.exprTargets.get(e)||null},e.prototype.getTemplateOfSymbol=function(e){return this.symbols.get(e)||null},e.prototype.getNestingLevel=function(e){return this.nestingLevel.get(e)||0},e.prototype.getUsedDirectives=function(){var e=new Set;return this.directives.forEach((function(t){return t.forEach((function(t){return e.add(t)}))})),Array.from(e.values())},e.prototype.getUsedPipes=function(){return Array.from(this.usedPipes)},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
|
||
*/
|
||
vc(hn);var vd,md=Object.freeze({__proto__:null,AST:Ds,ASTWithSource:oo,AbsoluteSourceSpan:so,AotCompiler:vf,AotSummaryResolver:Hf,ArrayType:ve,AssertNotNull:Ge,AstMemoryEfficientTransformer:lo,AstPath:aa,AstTransformer:po,AttrAst:nu,Attribute:ha,Binary:Zs,get BinaryOperator(){return he},BinaryOperatorExpr:Je,BindingPipe:Gs,BoundDirectivePropertyAst:lu,BoundElementProperty:vo,BoundElementPropertyAst:iu,BoundEventAst:su,BoundTextAst:tu,get BuiltinMethod(){return Pe},BuiltinType:fe,get BuiltinTypeName(){return le},get BuiltinVar(){return be},CONTENT_ATTR:"_ngcontent-%COMP%",CUSTOM_ELEMENTS_SCHEMA:J,CastExpr:Xe,Chain:Us,ClassField:ft,ClassMethod:dt,ClassStmt:mt,CommaExpr:it,Comment:da,CommentStmt:gt,CompileDirectiveMetadata:Un,CompileMetadataResolver:vh,CompileNgModuleMetadata:Wn,CompilePipeMetadata:Hn,CompileReflector:rd,CompileShallowModuleMetadata:qn,CompileStylesheetMetadata:Vn,get CompileSummaryKind(){return An},CompileTemplateMetadata:jn,CompiledStylesheet:ia,CompilerConfig:yc,Conditional:Hs,ConditionalExpr:Ke,ConstantPool:yn,CssSelector:M,DEFAULT_INTERPOLATION_CONFIG:cs,DYNAMIC_TYPE:ye,DeclareFunctionStmt:pt,DeclareVarStmt:ut,DirectiveAst:cu,DirectiveNormalizer:_c,DirectiveResolver:Sc,DomElementSchemaRegistry:Dp,EMPTY_PARSE_LOCATION:mr,EMPTY_SOURCE_SPAN:yr,EOF:fp,ERROR_COMPONENT_TYPE:"ngComponentType",Element:fa,ElementAst:uu,ElementSchemaRegistry:Op,EmbeddedTemplateAst:pu,EmitterVisitorContext:Es,EmptyExpr:Vs,Expansion:la,ExpansionCase:ca,Expression:Te,ExpressionStatement:lt,ExpressionType:de,ExternalExpr:We,ExternalReference:ze,Extractor:pd,FunctionCall:io,FunctionExpr:Ye,GeneratedFile:ef,HOST_ATTR:"_nghost-%COMP%",HtmlParser:Va,HtmlTagDefinition:b,I18NHtmlParser:Gc,Identifiers:Sn,IfStmt:yt,ImplicitReceiver:js,InstantiateExpr:Le,Interpolation:Js,InterpolationConfig:ls,InvokeFunctionExpr:Fe,InvokeMethodExpr:Oe,IvyParser:Np,JSDocCommentStmt:_t,JitCompiler:Zf,JitEvaluator:bs,JitSummaryResolver:zf,KeyedRead:Ks,KeyedWrite:Qs,Lexer:pp,LiteralArray:$s,LiteralArrayExpr:tt,LiteralExpr:De,LiteralMap:Ys,LiteralMapExpr:rt,LiteralPrimitive:Xs,MapType:me,MessageBundle:Jh,MethodCall:no,NAMED_ENTITIES:S,NGSP_UNICODE:"",NONE_TYPE:Se,NO_ERRORS_SCHEMA:Z,NgContentAst:fu,NgModuleCompiler:Nh,NgModuleResolver:Ah,NodeWithI18n:ua,NonNullAssert:to,NotExpr:Qe,NullTemplateVisitor:du,ParseError:gr,get ParseErrorLevel(){return hr},ParseLocation:fr,ParseSourceFile:dr,ParseSourceSpan:vr,ParseSpan:Ls,ParseTreeResult:Fa,ParsedEvent:ho,ParsedProperty:co,get ParsedPropertyType(){return Os},ParsedVariable:fo,Parser:Pp,ParserError:Fs,PipeResolver:Rh,PrefixNot:eo,PropertyRead:qs,PropertyWrite:Ws,ProviderAst:hu,get ProviderAstType(){return Za},ProviderMeta:Qn,Quote:Bs,R3BoundTarget:dd,get R3FactoryTarget(){return Xi},R3Identifiers:tr,get R3ResolvedDependencyType(){return $i},R3TargetBinder:ld,ReadKeyExpr:et,ReadPropExpr:Ze,ReadVarExpr:Ne,RecursiveAstVisitor:uo,RecursiveTemplateAstVisitor:vu,RecursiveVisitor:ya,ReferenceAst:ou,ResolvedStaticSymbol:of,ResourceLoader:ec,ReturnStatement:ct,STRING_TYPE:xe,SafeMethodCall:ro,SafePropertyRead:zs,SelectorContext:R,SelectorListContext:k,SelectorMatcher:I,Serializer:ci,SplitInterpolation:xp,Statement:at,StaticReflector:Rf,StaticSymbol:bn,StaticSymbolCache:Tn,StaticSymbolResolver:af,get StmtModifier(){return qe},StyleCompiler:sa,StylesCompileDependency:ra,SummaryResolver:Wf,get TagContentType(){return c},TemplateBinding:ao,TemplateBindingParseResult:Sp,TemplateParseError:ju,TemplateParseResult:Uu,TemplateParser:Hu,Text:pa,TextAst:eu,ThrowStmt:xt,TmplAstBoundAttribute:Cr,TmplAstBoundEvent:br,TmplAstBoundText:Sr,TmplAstContent:Nr,TmplAstElement:Tr,TmplAstRecursiveVisitor:kr,TmplAstReference:Mr,TmplAstTemplate:Pr,TmplAstText:xr,TmplAstTextAttribute:wr,TmplAstVariable:Ar,Token:lp,get TokenType(){return np},TransitiveCompileNgModuleMetadata:zn,TreeError:Oa,TryCatchStmt:Et,Type:ce,TypeScriptEmitter:Ih,TypeofExpr:Ae,UrlResolver:id,VERSION:mc,VariableAst:au,Version:pn,ViewCompiler:Bh,WrappedNodeExpr:Me,WriteKeyExpr:ke,WritePropExpr:Re,WriteVarExpr:Ie,Xliff:Fc,Xliff2:Vc,Xmb:Si,XmlParser:Oc,Xtb:qc,_ParseAST:Ap,analyzeAndValidateNgModules:Ef,analyzeFile:Sf,analyzeFileForInjectables:wf,analyzeNgModules:_f,collectExternalReferences:function(e){var t=new Tt;return t.visitAllStatements(e,null),t.externalReferences},compileComponentFromMetadata:jl,compileDirectiveFromMetadata:Vl,compileFactoryFunction:ts,compileInjectable:ss,compileInjector:Ms,compileNgModule:As,compilePipeFromMetadata:Rs,componentFactoryName:Ln,computeMsgId:Zr,core:pe,createAotCompiler:function(e,t,n){var r,i=t.translations||"",s=qf(e),o=new Tn,a=new Hf(e,o),u=new af(e,o,a),p=new Rf(a,u,[],[],n);r=t.enableIvy?new Va:new Gc(new Va,i,t.i18nFormat,t.missingTranslation,console);var l=new yc({defaultEncapsulation:P.Emulated,useJit:!1,missingTranslation:t.missingTranslation,preserveWhitespaces:t.preserveWhitespaces,strictInjectionParameters:t.strictInjectionParameters}),c=new _c({get:function(t){return e.loadResource(t)}},s,r,l),h=new Pp(new pp),f=new Dp,d=new Hu(l,p,h,f,r,console,[]),v=new vh(l,r,new Ah(p),new Sc(p),new Rh(p),a,f,c,console,o,p,n),m=new Bh(p),y=new Oh(t,p);return{compiler:new vf(l,t,e,p,v,d,new sa(s),m,y,new Nh(p),new Jc(p,!!t.enableIvy),new Ih,a,u),reflector:p}},createAotUrlResolver:qf,createElementCssSelector:Gu,createLoweredSymbol:function(e){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
|
||
*/,createOfflineCompileUrlResolver:function(){return new id(".")},createUrlResolverWithoutPackagePrefix:function(){return new id},debugOutputAstAsTypeScript:Mh,findNode:function(e,t){var n=[];return va(new(function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return l(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 fa&&(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<i.end))return!0;n.push(e)},r}(ya)),e),new aa(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
|
||
*/,flatten:Gn,formattedError:Pf,getHtmlTagDefinition:T,getNsPrefix:E,getParseErrors:function(e){return e[tn]||[]},getUrlScheme:function(e){var t=ad(e);return t&&t[sd.Scheme]||""},hostViewClassName:Fn,identifierModuleUrl:kn,identifierName:In,isEmptyExpression:Zu,isFormattedError:function(e){return!!e.ngFormattedMessage},isIdentifier:mp,isLoweredSymbol:hh,isNgContainer:y,isNgContent:g,isNgTemplate:_,isQuote:_p,isSyntaxError:function(e){return e[en]},literalMap:Lt,makeBindingParser:Ml,mergeAnalyzedFiles:Cf,mergeNsAndName:x,ngModuleJitUrl:Jn,parseHostBindings:Jl,parseTemplate:Nl,preserveWhitespacesDefault:gc,publishFacade:vc,r3JitTypeSourceSpan:Er,removeSummaryDuplicates:Ju,rendererTypeName:On,sanitizeIdentifier:Nn,sharedStylesheetJitUrl:Yn,splitClasses:Ku,splitNsName:m,syntaxError:Zt,templateJitUrl:Zn,templateSourceUrl:$n,templateVisitAll:mu,toTypeScript:function(e,t){if(void 0===t&&(t=""),!e.stmts)throw new Error("Illegal state: No stmts present on GeneratedFile "+e.genFileUrl);return(new Ih).emitStatements(e.genFileUrl,e.stmts,t)},tokenName:Dn,tokenReference:Bn,typeSourceSpan:_r,unescapeIdentifier:uf,unwrapResolvedMetadata:pf,verifyHostBindings:Zl,viewClassName:Rn,visitAll:va});
|
||
/**
|
||
* @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
|
||
*/class yd{constructor(e,t,n,r){this.input=t,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: ".concat(e," ").concat(n," [").concat(t,"] in ").concat(r)}}class gd{constructor(e,t){this.start=e,this.end=t}toAbsolute(e){return new Ud(e+this.start,e+this.end)}}class _d{constructor(e,t){this.span=e,this.sourceSpan=t}visit(e,t=null){return null}toString(){return"AST"}}class Ed extends _d{constructor(e,t,n,r,i){super(e,t),this.prefix=n,this.uninterpretedExpression=r,this.location=i}visit(e,t=null){return e.visitQuote(this,t)}toString(){return"Quote"}}class xd extends _d{visit(e,t=null){}}class Sd extends _d{visit(e,t=null){return e.visitImplicitReceiver(this,t)}}class wd extends _d{constructor(e,t,n){super(e,t),this.expressions=n}visit(e,t=null){return e.visitChain(this,t)}}class Cd extends _d{constructor(e,t,n,r,i){super(e,t),this.condition=n,this.trueExp=r,this.falseExp=i}visit(e,t=null){return e.visitConditional(this,t)}}class bd extends _d{constructor(e,t,n,r){super(e,t),this.receiver=n,this.name=r}visit(e,t=null){return e.visitPropertyRead(this,t)}}class Td extends _d{constructor(e,t,n,r,i){super(e,t),this.receiver=n,this.name=r,this.value=i}visit(e,t=null){return e.visitPropertyWrite(this,t)}}class Pd extends _d{constructor(e,t,n,r){super(e,t),this.receiver=n,this.name=r}visit(e,t=null){return e.visitSafePropertyRead(this,t)}}class Nd extends _d{constructor(e,t,n,r){super(e,t),this.obj=n,this.key=r}visit(e,t=null){return e.visitKeyedRead(this,t)}}class Ad extends _d{constructor(e,t,n,r,i){super(e,t),this.obj=n,this.key=r,this.value=i}visit(e,t=null){return e.visitKeyedWrite(this,t)}}class Md extends _d{constructor(e,t,n,r,i,s){super(e,t),this.exp=n,this.name=r,this.args=i,this.nameSpan=s}visit(e,t=null){return e.visitPipe(this,t)}}class Id extends _d{constructor(e,t,n){super(e,t),this.value=n}visit(e,t=null){return e.visitLiteralPrimitive(this,t)}}class kd extends _d{constructor(e,t,n){super(e,t),this.expressions=n}visit(e,t=null){return e.visitLiteralArray(this,t)}}class Rd extends _d{constructor(e,t,n,r){super(e,t),this.keys=n,this.values=r}visit(e,t=null){return e.visitLiteralMap(this,t)}}class Od extends _d{constructor(e,t,n,r){super(e,t),this.strings=n,this.expressions=r}visit(e,t=null){return e.visitInterpolation(this,t)}}class Fd extends _d{constructor(e,t,n,r,i){super(e,t),this.operation=n,this.left=r,this.right=i}visit(e,t=null){return e.visitBinary(this,t)}}class Ld extends _d{constructor(e,t,n){super(e,t),this.expression=n}visit(e,t=null){return e.visitPrefixNot(this,t)}}class Dd extends _d{constructor(e,t,n){super(e,t),this.expression=n}visit(e,t=null){return e.visitNonNullAssert(this,t)}}class Bd extends _d{constructor(e,t,n,r,i){super(e,t),this.receiver=n,this.name=r,this.args=i}visit(e,t=null){return e.visitMethodCall(this,t)}}class Vd extends _d{constructor(e,t,n,r,i){super(e,t),this.receiver=n,this.name=r,this.args=i}visit(e,t=null){return e.visitSafeMethodCall(this,t)}}class jd extends _d{constructor(e,t,n,r){super(e,t),this.target=n,this.args=r}visit(e,t=null){return e.visitFunctionCall(this,t)}}class Ud{constructor(e,t){this.start=e,this.end=t}}class Hd extends _d{constructor(e,t,n,r,i){super(new gd(0,null===t?0:t.length),new Ud(r,null===t?r:r+t.length)),this.ast=e,this.source=t,this.location=n,this.errors=i}visit(e,t=null){return e.visitASTWithSource?e.visitASTWithSource(this,t):this.ast.visit(e,t)}toString(){return"".concat(this.source," in ").concat(this.location)}}class qd{constructor(e,t,n,r,i,s){this.span=e,this.key=n,this.keyIsVar=r,this.name=i,this.expression=s}}!function(e){e[e.DEFAULT=0]="DEFAULT",e[e.LITERAL_ATTR=1]="LITERAL_ATTR",e[e.ANIMATION=2]="ANIMATION"}(vd||(vd={}));var Wd=Object.freeze({__proto__:null,ParserError:yd,ParseSpan:gd,AST:_d,Quote:Ed,EmptyExpr:xd,ImplicitReceiver:Sd,Chain:wd,Conditional:Cd,PropertyRead:bd,PropertyWrite:Td,SafePropertyRead:Pd,KeyedRead:Nd,KeyedWrite:Ad,BindingPipe:Md,LiteralPrimitive:Id,LiteralArray:kd,LiteralMap:Rd,Interpolation:Od,Binary:Fd,PrefixNot:Ld,NonNullAssert:Dd,MethodCall:Bd,SafeMethodCall:Vd,FunctionCall:jd,AbsoluteSourceSpan:Ud,ASTWithSource:Hd,TemplateBinding:qd,RecursiveAstVisitor:class{visit(e,t){e.visit(this,t)}visitBinary(e,t){this.visit(e.left,t),this.visit(e.right,t)}visitChain(e,t){this.visitAll(e.expressions,t)}visitConditional(e,t){this.visit(e.condition,t),this.visit(e.trueExp,t),this.visit(e.falseExp,t)}visitPipe(e,t){this.visit(e.exp,t),this.visitAll(e.args,t)}visitFunctionCall(e,t){e.target&&this.visit(e.target,t),this.visitAll(e.args,t)}visitImplicitReceiver(e,t){}visitInterpolation(e,t){this.visitAll(e.expressions,t)}visitKeyedRead(e,t){this.visit(e.obj,t),this.visit(e.key,t)}visitKeyedWrite(e,t){this.visit(e.obj,t),this.visit(e.key,t),this.visit(e.value,t)}visitLiteralArray(e,t){this.visitAll(e.expressions,t)}visitLiteralMap(e,t){this.visitAll(e.values,t)}visitLiteralPrimitive(e,t){}visitMethodCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitPrefixNot(e,t){this.visit(e.expression,t)}visitNonNullAssert(e,t){this.visit(e.expression,t)}visitPropertyRead(e,t){this.visit(e.receiver,t)}visitPropertyWrite(e,t){this.visit(e.receiver,t),this.visit(e.value,t)}visitSafePropertyRead(e,t){this.visit(e.receiver,t)}visitSafeMethodCall(e,t){this.visit(e.receiver,t),this.visitAll(e.args,t)}visitQuote(e,t){}visitAll(e,t){for(const n of e)this.visit(n,t)}},AstTransformer:class{visitImplicitReceiver(e,t){return e}visitInterpolation(e,t){return new Od(e.span,e.sourceSpan,e.strings,this.visitAll(e.expressions))}visitLiteralPrimitive(e,t){return new Id(e.span,e.sourceSpan,e.value)}visitPropertyRead(e,t){return new bd(e.span,e.sourceSpan,e.receiver.visit(this),e.name)}visitPropertyWrite(e,t){return new Td(e.span,e.sourceSpan,e.receiver.visit(this),e.name,e.value.visit(this))}visitSafePropertyRead(e,t){return new Pd(e.span,e.sourceSpan,e.receiver.visit(this),e.name)}visitMethodCall(e,t){return new Bd(e.span,e.sourceSpan,e.receiver.visit(this),e.name,this.visitAll(e.args))}visitSafeMethodCall(e,t){return new Vd(e.span,e.sourceSpan,e.receiver.visit(this),e.name,this.visitAll(e.args))}visitFunctionCall(e,t){return new jd(e.span,e.sourceSpan,e.target.visit(this),this.visitAll(e.args))}visitLiteralArray(e,t){return new kd(e.span,e.sourceSpan,this.visitAll(e.expressions))}visitLiteralMap(e,t){return new Rd(e.span,e.sourceSpan,e.keys,this.visitAll(e.values))}visitBinary(e,t){return new Fd(e.span,e.sourceSpan,e.operation,e.left.visit(this),e.right.visit(this))}visitPrefixNot(e,t){return new Ld(e.span,e.sourceSpan,e.expression.visit(this))}visitNonNullAssert(e,t){return new Dd(e.span,e.sourceSpan,e.expression.visit(this))}visitConditional(e,t){return new Cd(e.span,e.sourceSpan,e.condition.visit(this),e.trueExp.visit(this),e.falseExp.visit(this))}visitPipe(e,t){return new Md(e.span,e.sourceSpan,e.exp.visit(this),e.name,this.visitAll(e.args),e.nameSpan)}visitKeyedRead(e,t){return new Nd(e.span,e.sourceSpan,e.obj.visit(this),e.key.visit(this))}visitKeyedWrite(e,t){return new Ad(e.span,e.sourceSpan,e.obj.visit(this),e.key.visit(this),e.value.visit(this))}visitAll(e){const t=[];for(let n=0;n<e.length;++n)t[n]=e[n].visit(this);return t}visitChain(e,t){return new wd(e.span,e.sourceSpan,this.visitAll(e.expressions))}visitQuote(e,t){return new Ed(e.span,e.sourceSpan,e.prefix,e.uninterpretedExpression,e.location)}},AstMemoryEfficientTransformer:class{visitImplicitReceiver(e,t){return e}visitInterpolation(e,t){const n=this.visitAll(e.expressions);return n!==e.expressions?new Od(e.span,e.sourceSpan,e.strings,n):e}visitLiteralPrimitive(e,t){return e}visitPropertyRead(e,t){const n=e.receiver.visit(this);return n!==e.receiver?new bd(e.span,e.sourceSpan,n,e.name):e}visitPropertyWrite(e,t){const n=e.receiver.visit(this),r=e.value.visit(this);return n!==e.receiver||r!==e.value?new Td(e.span,e.sourceSpan,n,e.name,r):e}visitSafePropertyRead(e,t){const n=e.receiver.visit(this);return n!==e.receiver?new Pd(e.span,e.sourceSpan,n,e.name):e}visitMethodCall(e,t){const n=e.receiver.visit(this),r=this.visitAll(e.args);return n!==e.receiver||r!==e.args?new Bd(e.span,e.sourceSpan,n,e.name,r):e}visitSafeMethodCall(e,t){const n=e.receiver.visit(this),r=this.visitAll(e.args);return n!==e.receiver||r!==e.args?new Vd(e.span,e.sourceSpan,n,e.name,r):e}visitFunctionCall(e,t){const n=e.target&&e.target.visit(this),r=this.visitAll(e.args);return n!==e.target||r!==e.args?new jd(e.span,e.sourceSpan,n,r):e}visitLiteralArray(e,t){const n=this.visitAll(e.expressions);return n!==e.expressions?new kd(e.span,e.sourceSpan,n):e}visitLiteralMap(e,t){const n=this.visitAll(e.values);return n!==e.values?new Rd(e.span,e.sourceSpan,e.keys,n):e}visitBinary(e,t){const n=e.left.visit(this),r=e.right.visit(this);return n!==e.left||r!==e.right?new Fd(e.span,e.sourceSpan,e.operation,n,r):e}visitPrefixNot(e,t){const n=e.expression.visit(this);return n!==e.expression?new Ld(e.span,e.sourceSpan,n):e}visitNonNullAssert(e,t){const n=e.expression.visit(this);return n!==e.expression?new Dd(e.span,e.sourceSpan,n):e}visitConditional(e,t){const n=e.condition.visit(this),r=e.trueExp.visit(this),i=e.falseExp.visit(this);return n!==e.condition||r!==e.trueExp||i!==e.falseExp?new Cd(e.span,e.sourceSpan,n,r,i):e}visitPipe(e,t){const n=e.exp.visit(this),r=this.visitAll(e.args);return n!==e.exp||r!==e.args?new Md(e.span,e.sourceSpan,n,e.name,r,e.nameSpan):e}visitKeyedRead(e,t){const n=e.obj.visit(this),r=e.key.visit(this);return n!==e.obj||r!==e.key?new Nd(e.span,e.sourceSpan,n,r):e}visitKeyedWrite(e,t){const n=e.obj.visit(this),r=e.key.visit(this),i=e.value.visit(this);return n!==e.obj||r!==e.key||i!==e.value?new Ad(e.span,e.sourceSpan,n,r,i):e}visitAll(e){const t=[];let n=!1;for(let r=0;r<e.length;++r){const i=e[r],s=i.visit(this);t[r]=s,n=n||s!==i}return n?t:e}visitChain(e,t){const n=this.visitAll(e.expressions);return n!==e.expressions?new wd(e.span,e.sourceSpan,n):e}visitQuote(e,t){return e}},ParsedProperty:class{constructor(e,t,n,r,i){this.name=e,this.expression=t,this.type=n,this.sourceSpan=r,this.valueSpan=i,this.isLiteral=this.type===vd.LITERAL_ATTR,this.isAnimation=this.type===vd.ANIMATION}},get ParsedPropertyType(){return vd},ParsedEvent:class{constructor(e,t,n,r,i,s){this.name=e,this.targetOrPhase=t,this.type=n,this.handler=r,this.sourceSpan=i,this.handlerSpan=s}},ParsedVariable:class{constructor(e,t,n){this.name=e,this.value=t,this.sourceSpan=n}},BoundElementProperty:class{constructor(e,t,n,r,i,s,o){this.name=e,this.type=t,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=s,this.valueSpan=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
|
||
*/function zd(e){return 48<=e&&e<=57}
|
||
/**
|
||
* @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 Kd;!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"}(Kd||(Kd={}));const Qd=["var","let","as","null","undefined","true","false","if","else","this"];class Gd{constructor(e,t,n,r,i){this.index=e,this.end=t,this.type=n,this.numValue=r,this.strValue=i}isCharacter(e){return this.type==Kd.Character&&this.numValue==e}isNumber(){return this.type==Kd.Number}isString(){return this.type==Kd.String}isOperator(e){return this.type==Kd.Operator&&this.strValue==e}isIdentifier(){return this.type==Kd.Identifier}isKeyword(){return this.type==Kd.Keyword}isKeywordLet(){return this.type==Kd.Keyword&&"let"==this.strValue}isKeywordAs(){return this.type==Kd.Keyword&&"as"==this.strValue}isKeywordNull(){return this.type==Kd.Keyword&&"null"==this.strValue}isKeywordUndefined(){return this.type==Kd.Keyword&&"undefined"==this.strValue}isKeywordTrue(){return this.type==Kd.Keyword&&"true"==this.strValue}isKeywordFalse(){return this.type==Kd.Keyword&&"false"==this.strValue}isKeywordThis(){return this.type==Kd.Keyword&&"this"==this.strValue}isError(){return this.type==Kd.Error}toNumber(){return this.type==Kd.Number?this.numValue:-1}toString(){switch(this.type){case Kd.Character:case Kd.Identifier:case Kd.Keyword:case Kd.Operator:case Kd.String:case Kd.Error:return this.strValue;case Kd.Number:return this.numValue.toString();default:return null}}}function Xd(e,t,n){return new Gd(e,t,Kd.Character,n,String.fromCharCode(n))}function $d(e,t,n){return new Gd(e,t,Kd.Operator,0,n)}const Yd=new Gd(-1,-1,Kd.Character,0,"");class Jd{constructor(e){this.input=e,this.peek=0,this.index=-1,this.length=e.length,this.advance()}advance(){this.peek=++this.index>=this.length?0:this.input.charCodeAt(this.index)}scanToken(){const e=this.input,t=this.length;let n=this.peek,r=this.index;for(;n<=32;){if(++r>=t){n=0;break}n=e.charCodeAt(r)}if(this.peek=n,this.index=r,r>=t)return null;if(Zd(n))return this.scanIdentifier();if(zd(n))return this.scanNumber(r);const i=r;switch(n){case 46:return this.advance(),zd(this.peek)?this.scanNumber(i):Xd(i,this.index,46);case 40:case 41:case 123:case 125:case 91:case 93:case 44:case 58:case 59:return this.scanCharacter(i,n);case 39:case 34:return this.scanString();case 35:case 43:case 45:case 42:case 47:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanComplexOperator(i,"?",46,".");case 60:case 62:return this.scanComplexOperator(i,String.fromCharCode(n),61,"=");case 33:case 61:return this.scanComplexOperator(i,String.fromCharCode(n),61,"=",61,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case 160:for(;(s=this.peek)>=9&&s<=32||160==s;)this.advance();return this.scanToken()}var s;return this.advance(),this.error("Unexpected character [".concat(String.fromCharCode(n),"]"),0)}scanCharacter(e,t){return this.advance(),Xd(e,this.index,t)}scanOperator(e,t){return this.advance(),$d(e,this.index,t)}scanComplexOperator(e,t,n,r,i,s){this.advance();let o=t;return this.peek==n&&(this.advance(),o+=r),null!=i&&this.peek==i&&(this.advance(),o+=s),$d(e,this.index,o)}scanIdentifier(){const e=this.index;for(this.advance();tv(this.peek);)this.advance();const t=this.input.substring(e,this.index);return Qd.indexOf(t)>-1?(n=e,r=this.index,i=t,new Gd(n,r,Kd.Keyword,0,i)):function(e,t,n){return new Gd(e,t,Kd.Identifier,0,n)}(e,this.index,t);var n,r,i}scanNumber(e){let t=this.index===e;for(this.advance();;){if(zd(this.peek));else if(46==this.peek)t=!1;else{if(101!=(n=this.peek)&&69!=n)break;if(this.advance(),nv(this.peek)&&this.advance(),!zd(this.peek))return this.error("Invalid exponent",-1);t=!1}this.advance()}var n;const r=this.input.substring(e,this.index),i=t?function(e){const t=parseInt(e);if(isNaN(t))throw new Error("Invalid integer literal when parsing "+e);return t}(r):parseFloat(r);return s=e,o=this.index,a=i,new Gd(s,o,Kd.Number,a,"");var s,o,a}scanString(){const e=this.index,t=this.peek;this.advance();let n="",r=this.index;const i=this.input;for(;this.peek!=t;)if(92==this.peek){let e;if(n+=i.substring(r,this.index),this.advance(),this.peek=this.peek,117==this.peek){const t=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(t))return this.error("Invalid unicode escape [\\u".concat(t,"]"),0);e=parseInt(t,16);for(let e=0;e<5;e++)this.advance()}else e=iv(this.peek),this.advance();n+=String.fromCharCode(e),r=this.index}else{if(0==this.peek)return this.error("Unterminated quote",0);this.advance()}const s=i.substring(r,this.index);return this.advance(),o=e,a=this.index,u=n+s,new Gd(o,a,Kd.String,0,u);var o,a,u}error(e,t){const n=this.index+t;return function(e,t,n){return new Gd(e,t,Kd.Error,0,n)}(n,this.index,"Lexer Error: ".concat(e," at column ").concat(n," in expression [").concat(this.input,"]"))}}function Zd(e){return 97<=e&&e<=122||65<=e&&e<=90||95==e||36==e}function ev(e){if(0==e.length)return!1;const t=new Jd(e);if(!Zd(t.peek))return!1;for(t.advance();0!==t.peek;){if(!tv(t.peek))return!1;t.advance()}return!0}function tv(e){return function(e){return e>=97&&e<=122||e>=65&&e<=90}(e)||zd(e)||95==e||36==e}function nv(e){return 45==e||43==e}function rv(e){return 39===e||34===e||96===e}function iv(e){switch(e){case 110:return 10;case 102:return 12;case 114:return 13;case 116:return 9;case 118:return 11;default:return e}}var sv=Object.freeze({__proto__:null,get TokenType(){return Kd},Lexer:class{tokenize(e){const t=new Jd(e),n=[];let r=t.scanToken();for(;null!=r;)n.push(r),r=t.scanToken();return n}},Token:Gd,EOF:Yd,isIdentifier:ev,isQuote:rv});
|
||
/**
|
||
* @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
|
||
*/const ov=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/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
|
||
*/
|
||
class av{constructor(e,t){this.start=e,this.end=t}static fromArray(e){return e?(function(e,t){if(!(null==t||Array.isArray(t)&&2==t.length))throw new Error("Expected '".concat(e,"' to be an array, [start, end]."));if(null!=t){const e=t[0],n=t[1];ov.forEach(t=>{if(t.test(e)||t.test(n))throw new Error("['".concat(e,"', '").concat(n,"'] contains unusable interpolation symbol."))})}}("interpolation",e),new av(e[0],e[1])):uv}}const uv=new av("{{","}}");function pv(e){return e.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}"undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self;
|
||
/**
|
||
* @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
|
||
*/class lv{constructor(e,t,n){this.strings=e,this.expressions=t,this.offsets=n}}class cv{constructor(e,t,n){this.templateBindings=e,this.warnings=t,this.errors=n}}const hv=dv(uv);function fv(e){return e===uv?hv:dv(e)}function dv(e){const t=pv(e.start)+"([\\s\\S]*?)"+pv(e.end);return new RegExp(t,"g")}class vv{constructor(e){this._lexer=e,this.errors=[],this.simpleExpressionChecker=yv}parseAction(e,t,n,r=uv){this._checkNoInterpolation(e,t,r);const i=this._stripComments(e),s=this._lexer.tokenize(this._stripComments(e)),o=new mv(e,t,n,s,i.length,!0,this.errors,e.length-i.length).parseChain();return new Hd(o,e,t,n,this.errors)}parseBinding(e,t,n,r=uv){const i=this._parseBindingAst(e,t,n,r);return new Hd(i,e,t,n,this.errors)}checkSimpleExpression(e){const t=new this.simpleExpressionChecker;return e.visit(t),t.errors}parseSimpleBinding(e,t,n,r=uv){const i=this._parseBindingAst(e,t,n,r),s=this.checkSimpleExpression(i);return s.length>0&&this._reportError("Host binding expression cannot contain ".concat(s.join(" ")),e,t),new Hd(i,e,t,n,this.errors)}_reportError(e,t,n,r){this.errors.push(new yd(e,t,n,r))}_parseBindingAst(e,t,n,r){const i=this._parseQuote(e,t,n);if(null!=i)return i;this._checkNoInterpolation(e,t,r);const s=this._stripComments(e),o=this._lexer.tokenize(s);return new mv(e,t,n,o,s.length,!1,this.errors,e.length-s.length).parseChain()}_parseQuote(e,t,n){if(null==e)return null;const r=e.indexOf(":");if(-1==r)return null;const i=e.substring(0,r).trim();if(!ev(i))return null;const s=e.substring(r+1),o=new gd(0,e.length);return new Ed(o,o.toAbsolute(n),i,s,t)}parseTemplateBindings(e,t,n,r){const i=this._lexer.tokenize(t);return new mv(t,n,r,i,t.length,!1,this.errors,0).parseTemplateBindings(e)}parseInterpolation(e,t,n,r=uv){const i=this.splitInterpolation(e,t,r);if(null==i)return null;const s=[];for(let r=0;r<i.expressions.length;++r){const o=i.expressions[r],a=this._stripComments(o),u=this._lexer.tokenize(a),p=new mv(e,t,n,u,a.length,!1,this.errors,i.offsets[r]+(o.length-a.length)).parseChain();s.push(p)}const o=new gd(0,null==e?0:e.length);return new Hd(new Od(o,o.toAbsolute(n),i.strings,s),e,t,n,this.errors)}splitInterpolation(e,t,n=uv){const r=fv(n),i=e.split(r);if(i.length<=1)return null;const s=[],o=[],a=[];let u=0;for(let r=0;r<i.length;r++){const p=i[r];r%2==0?(s.push(p),u+=p.length):p.trim().length>0?(u+=n.start.length,o.push(p),a.push(u),u+=p.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",e,"at column ".concat(this._findInterpolationErrorColumn(i,r,n)," in"),t),o.push("$implicit"),a.push(u))}return new lv(s,o,a)}wrapLiteralPrimitive(e,t,n){const r=new gd(0,null==e?0:e.length);return new Hd(new Id(r,r.toAbsolute(n),e),e,t,n,this.errors)}_stripComments(e){const t=this._commentStart(e);return null!=t?e.substring(0,t).trim():e}_commentStart(e){let t=null;for(let n=0;n<e.length-1;n++){const r=e.charCodeAt(n),i=e.charCodeAt(n+1);if(47===r&&47==i&&null==t)return n;t===r?t=null:null==t&&rv(r)&&(t=r)}return null}_checkNoInterpolation(e,t,n){const r=fv(n),i=e.split(r);i.length>1&&this._reportError("Got interpolation (".concat(n.start).concat(n.end,") where expression was expected"),e,"at column ".concat(this._findInterpolationErrorColumn(i,1,n)," in"),t)}_findInterpolationErrorColumn(e,t,n){let r="";for(let i=0;i<t;i++)r+=i%2==0?e[i]:"".concat(n.start).concat(e[i]).concat(n.end);return r.length}}class mv{constructor(e,t,n,r,i,s,o,a){this.input=e,this.location=t,this.absoluteOffset=n,this.tokens=r,this.inputLength=i,this.parseAction=s,this.errors=o,this.offset=a,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.sourceSpanCache=new Map,this.index=0}peek(e){const t=this.index+e;return t<this.tokens.length?this.tokens[t]:Yd}get next(){return this.peek(0)}get inputIndex(){return this.index<this.tokens.length?this.next.index+this.offset:this.inputLength+this.offset}span(e){return new gd(e,this.inputIndex)}sourceSpan(e){const t="".concat(e,"@").concat(this.inputIndex);return this.sourceSpanCache.has(t)||this.sourceSpanCache.set(t,this.span(e).toAbsolute(this.absoluteOffset)),this.sourceSpanCache.get(t)}advance(){this.index++}optionalCharacter(e){return!!this.next.isCharacter(e)&&(this.advance(),!0)}peekKeywordLet(){return this.next.isKeywordLet()}peekKeywordAs(){return this.next.isKeywordAs()}expectCharacter(e){this.optionalCharacter(e)||this.error("Missing expected ".concat(String.fromCharCode(e)))}optionalOperator(e){return!!this.next.isOperator(e)&&(this.advance(),!0)}expectOperator(e){this.optionalOperator(e)||this.error("Missing expected operator ".concat(e))}expectIdentifierOrKeyword(){const e=this.next;return e.isIdentifier()||e.isKeyword()?(this.advance(),e.toString()):(this.error("Unexpected token ".concat(e,", expected identifier or keyword")),"")}expectIdentifierOrKeywordOrString(){const e=this.next;return e.isIdentifier()||e.isKeyword()||e.isString()?(this.advance(),e.toString()):(this.error("Unexpected token ".concat(e,", expected identifier, keyword, or string")),"")}parseChain(){const e=[],t=this.inputIndex;for(;this.index<this.tokens.length;){const t=this.parsePipe();if(e.push(t),this.optionalCharacter(59))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(59););else this.index<this.tokens.length&&this.error("Unexpected token '".concat(this.next,"'"))}return 0==e.length?new xd(this.span(t),this.sourceSpan(t)):1==e.length?e[0]:new wd(this.span(t),this.sourceSpan(t),e)}parsePipe(){let e=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{const t=this.inputIndex,n=this.expectIdentifierOrKeyword(),r=this.sourceSpan(t),i=[];for(;this.optionalCharacter(58);)i.push(this.parseExpression());const{start:s}=e.span;e=new Md(this.span(s),this.sourceSpan(s),e,n,i,r)}while(this.optionalOperator("|"))}return e}parseExpression(){return this.parseConditional()}parseConditional(){const e=this.inputIndex,t=this.parseLogicalOr();if(this.optionalOperator("?")){const n=this.parsePipe();let r;if(this.optionalCharacter(58))r=this.parsePipe();else{const t=this.inputIndex,n=this.input.substring(e,t);this.error("Conditional expression ".concat(n," requires all 3 expressions")),r=new xd(this.span(e),this.sourceSpan(e))}return new Cd(this.span(e),this.sourceSpan(e),t,n,r)}return t}parseLogicalOr(){let e=this.parseLogicalAnd();for(;this.optionalOperator("||");){const t=this.parseLogicalAnd(),{start:n}=e.span;e=new Fd(this.span(n),this.sourceSpan(n),"||",e,t)}return e}parseLogicalAnd(){let e=this.parseEquality();for(;this.optionalOperator("&&");){const t=this.parseEquality(),{start:n}=e.span;e=new Fd(this.span(n),this.sourceSpan(n),"&&",e,t)}return e}parseEquality(){let e=this.parseRelational();for(;this.next.type==Kd.Operator;){const t=this.next.strValue;switch(t){case"==":case"===":case"!=":case"!==":this.advance();const n=this.parseRelational(),{start:r}=e.span;e=new Fd(this.span(r),this.sourceSpan(r),t,e,n);continue}break}return e}parseRelational(){let e=this.parseAdditive();for(;this.next.type==Kd.Operator;){const t=this.next.strValue;switch(t){case"<":case">":case"<=":case">=":this.advance();const n=this.parseAdditive(),{start:r}=e.span;e=new Fd(this.span(r),this.sourceSpan(r),t,e,n);continue}break}return e}parseAdditive(){let e=this.parseMultiplicative();for(;this.next.type==Kd.Operator;){const t=this.next.strValue;switch(t){case"+":case"-":this.advance();let n=this.parseMultiplicative();const{start:r}=e.span;e=new Fd(this.span(r),this.sourceSpan(r),t,e,n);continue}break}return e}parseMultiplicative(){let e=this.parsePrefix();for(;this.next.type==Kd.Operator;){const t=this.next.strValue;switch(t){case"*":case"%":case"/":this.advance();let n=this.parsePrefix();const{start:r}=e.span;e=new Fd(this.span(r),this.sourceSpan(r),t,e,n);continue}break}return e}parsePrefix(){if(this.next.type==Kd.Operator){const e=this.inputIndex,t=this.next.strValue,n=new gd(e,e),r=n.toAbsolute(this.absoluteOffset);let i;switch(t){case"+":return this.advance(),i=this.parsePrefix(),new Fd(this.span(e),this.sourceSpan(e),"-",i,new Id(n,r,0));case"-":return this.advance(),i=this.parsePrefix(),new Fd(this.span(e),this.sourceSpan(e),t,new Id(n,r,0),i);case"!":return this.advance(),i=this.parsePrefix(),new Ld(this.span(e),this.sourceSpan(e),i)}}return this.parseCallChain()}parseCallChain(){let e=this.parsePrimary();const t=e.span.start;for(;;)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++;const n=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(93),this.optionalOperator("=")){const r=this.parseConditional();e=new Ad(this.span(t),this.sourceSpan(t),e,n,r)}else e=new Nd(this.span(t),this.sourceSpan(t),e,n)}else if(this.optionalCharacter(40)){this.rparensExpected++;const n=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),e=new jd(this.span(t),this.sourceSpan(t),e,n)}else{if(!this.optionalOperator("!"))return e;e=new Dd(this.span(t),this.sourceSpan(t),e)}}parsePrimary(){const e=this.inputIndex;if(this.optionalCharacter(40)){this.rparensExpected++;const e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),e}if(this.next.isKeywordNull())return this.advance(),new Id(this.span(e),this.sourceSpan(e),null);if(this.next.isKeywordUndefined())return this.advance(),new Id(this.span(e),this.sourceSpan(e),void 0);if(this.next.isKeywordTrue())return this.advance(),new Id(this.span(e),this.sourceSpan(e),!0);if(this.next.isKeywordFalse())return this.advance(),new Id(this.span(e),this.sourceSpan(e),!1);if(this.next.isKeywordThis())return this.advance(),new Sd(this.span(e),this.sourceSpan(e));if(this.optionalCharacter(91)){this.rbracketsExpected++;const t=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new kd(this.span(e),this.sourceSpan(e),t)}if(this.next.isCharacter(123))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Sd(this.span(e),this.sourceSpan(e)),!1);if(this.next.isNumber()){const t=this.next.toNumber();return this.advance(),new Id(this.span(e),this.sourceSpan(e),t)}if(this.next.isString()){const t=this.next.toString();return this.advance(),new Id(this.span(e),this.sourceSpan(e),t)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: ".concat(this.input)),new xd(this.span(e),this.sourceSpan(e))):(this.error("Unexpected token ".concat(this.next)),new xd(this.span(e),this.sourceSpan(e)))}parseExpressionList(e){const t=[];if(!this.next.isCharacter(e))do{t.push(this.parsePipe())}while(this.optionalCharacter(44));return t}parseLiteralMap(){const e=[],t=[],n=this.inputIndex;if(this.expectCharacter(123),!this.optionalCharacter(125)){this.rbracesExpected++;do{const n=this.next.isString(),r=this.expectIdentifierOrKeywordOrString();e.push({key:r,quoted:n}),this.expectCharacter(58),t.push(this.parsePipe())}while(this.optionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new Rd(this.span(n),this.sourceSpan(n),e,t)}parseAccessMemberOrMethodCall(e,t=!1){const n=e.span.start,r=this.expectIdentifierOrKeyword();if(this.optionalCharacter(40)){this.rparensExpected++;const i=this.parseCallArguments();this.expectCharacter(41),this.rparensExpected--;const s=this.span(n),o=this.sourceSpan(n);return t?new Vd(s,o,e,r,i):new Bd(s,o,e,r,i)}if(t)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new xd(this.span(n),this.sourceSpan(n))):new Pd(this.span(n),this.sourceSpan(n),e,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new xd(this.span(n),this.sourceSpan(n));const t=this.parseConditional();return new Td(this.span(n),this.sourceSpan(n),e,r,t)}this.span(n);return new bd(this.span(n),this.sourceSpan(n),e,r)}parseCallArguments(){if(this.next.isCharacter(41))return[];const e=[];do{e.push(this.parsePipe())}while(this.optionalCharacter(44));return e}expectTemplateBindingKey(){let e="",t=!1;do{e+=this.expectIdentifierOrKeywordOrString(),t=this.optionalOperator("-"),t&&(e+="-")}while(t);return e.toString()}parseTemplateBindings(e){let t=!0;const n=[];do{const r=this.inputIndex;let i,s,o=!1;t?(i=s=e,t=!1):(o=this.peekKeywordLet(),o&&this.advance(),i=this.expectTemplateBindingKey(),s=o?i:e+i[0].toUpperCase()+i.substring(1),this.optionalCharacter(58));let a=null,u=null;if(o)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs())this.advance(),a=i,s=this.expectTemplateBindingKey(),o=!0;else if(this.next!==Yd&&!this.peekKeywordLet()){const e=this.inputIndex,t=this.parsePipe(),n=this.input.substring(e-this.offset,this.inputIndex-this.offset);u=new Hd(t,n,this.location,this.absoluteOffset+e,this.errors)}if(n.push(new qd(this.span(r),this.sourceSpan(r),s,o,a,u)),this.peekKeywordAs()&&!o){const e=this.inputIndex;this.advance();const t=this.expectTemplateBindingKey();n.push(new qd(this.span(e),this.sourceSpan(e),t,!0,s,null))}this.optionalCharacter(59)||this.optionalCharacter(44)}while(this.index<this.tokens.length);return new cv(n,[],this.errors)}error(e,t=null){this.errors.push(new yd(e,this.input,this.locationText(t),this.location)),this.skip()}locationText(e=null){return null==e&&(e=this.index),e<this.tokens.length?"at column ".concat(this.tokens[e].index+1," in"):"at the end of the expression"}skip(){let e=this.next;for(;this.index<this.tokens.length&&!e.isCharacter(59)&&(this.rparensExpected<=0||!e.isCharacter(41))&&(this.rbracesExpected<=0||!e.isCharacter(125))&&(this.rbracketsExpected<=0||!e.isCharacter(93));)this.next.isError()&&this.errors.push(new yd(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),e=this.next}}class yv{constructor(){this.errors=[]}visitImplicitReceiver(e,t){}visitInterpolation(e,t){}visitLiteralPrimitive(e,t){}visitPropertyRead(e,t){}visitPropertyWrite(e,t){}visitSafePropertyRead(e,t){}visitMethodCall(e,t){}visitSafeMethodCall(e,t){}visitFunctionCall(e,t){}visitLiteralArray(e,t){this.visitAll(e.expressions)}visitLiteralMap(e,t){this.visitAll(e.values)}visitBinary(e,t){}visitPrefixNot(e,t){}visitNonNullAssert(e,t){}visitConditional(e,t){}visitPipe(e,t){this.errors.push("pipes")}visitKeyedRead(e,t){}visitKeyedWrite(e,t){}visitAll(e){return e.map(e=>e.visit(this))}visitChain(e,t){}visitQuote(e,t){}}class gv extends yv{visitBinary(e,t){e.left.visit(this),e.right.visit(this)}visitPrefixNot(e,t){e.expression.visit(this)}}var _v=Object.freeze({__proto__:null,SplitInterpolation:lv,TemplateBindingParseResult:cv,Parser:vv,IvyParser:class extends vv{constructor(){super(...arguments),this.simpleExpressionChecker=gv}},_ParseAST:mv}),Ev=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0});const n=/^(?:[67]|8\.[01])\./.test(md.VERSION.full)?["angular-estree-parser"]:["angular-estree-parser",0];function r(){return new _v.Parser(new sv.Lexer)}function i(e,t){const n=r(),{astInput:i,comments:a}=o(e,n),{ast:u,errors:p}=t(i,n);return s(p),{ast:u,comments:a}}function s(e){if(0!==e.length){const[{message:t}]=e;throw new SyntaxError(t.replace(/^Parser Error: | at column \d+ in [^]*$/g,""))}}function o(e,t){const n=t._commentStart(e);return null===n?{astInput:e,comments:[]}:{astInput:e.slice(0,n),comments:[{type:"Comment",value:e.slice(n+"//".length),span:{start:n,end:e.length}}]}}function a({start:e,end:t},n){let r=e,i=t;for(;i!==r&&/\s/.test(n[i-1]);)i--;for(;r!==i&&/\s/.test(n[r]);)r++;return{start:r,end:i}}function u({start:e,end:t},n){let r=e,i=t;for(;i!==n.length&&/\s/.test(n[i]);)i++;for(;0!==r&&/\s/.test(n[r-1]);)r--;return{start:r,end:i}}function p(e,t){return"("===t[e.start-1]&&")"===t[e.end]?{start:e.start-1,end:e.end+1}:e}t.parseNgBinding=function(e){return i(e,(e,t)=>t.parseBinding(e,...n))},t.parseNgSimpleBinding=function(e){return i(e,(e,t)=>t.parseSimpleBinding(e,...n))},t.parseNgAction=function(e){return i(e,(e,t)=>t.parseAction(e,...n))},t.parseNgTemplateBindings=function(e){const t=r(),{templateBindings:i,errors:o}=t.parseTemplateBindings("NgEstreeParser",e,...n);return s(o),i},t.parseNgInterpolation=function(e){const t=r(),{astInput:i,comments:a}=o(e,t),{ast:u,errors:p}=t.parseInterpolation("{{"+i+"}}",...n);s(p);const l=u.expressions[0];return function e(t,n){if(!t||"object"!=typeof t)return;if(Array.isArray(t))return t.forEach(t=>e(t,n));for(const r of Object.keys(t)){const i=t[r];"span"===r?n(i):e(i,n)}}(l,e=>{e.start-="{{".length,e.end-="{{".length}),{ast:l,comments:a}},t.getNgType=function(e){return e instanceof Wd.Binary?"Binary":e instanceof Wd.BindingPipe?"BindingPipe":e instanceof Wd.Chain?"Chain":e instanceof Wd.Conditional?"Conditional":e instanceof Wd.EmptyExpr?"EmptyExpr":e instanceof Wd.FunctionCall?"FunctionCall":e instanceof Wd.ImplicitReceiver?"ImplicitReceiver":e instanceof Wd.KeyedRead?"KeyedRead":e instanceof Wd.KeyedWrite?"KeyedWrite":e instanceof Wd.LiteralArray?"LiteralArray":e instanceof Wd.LiteralMap?"LiteralMap":e instanceof Wd.LiteralPrimitive?"LiteralPrimitive":e instanceof Wd.MethodCall?"MethodCall":e instanceof Wd.NonNullAssert?"NonNullAssert":e instanceof Wd.PrefixNot?"PrefixNot":e instanceof Wd.PropertyRead?"PropertyRead":e instanceof Wd.PropertyWrite?"PropertyWrite":e instanceof Wd.Quote?"Quote":e instanceof Wd.SafeMethodCall?"SafeMethodCall":e instanceof Wd.SafePropertyRead?"SafePropertyRead":e.type},t.fitSpans=function(e,t,n){let r=0;const i={start:e.start,end:e.end};for(;;){const e=u(i,t),n=p(e,t);if(e.start===n.start&&e.end===n.end)break;i.start=n.start,i.end=n.end,r++}return{hasParens:0!==(n?r-1:r),outerSpan:a(n?{start:i.start+1,end:i.end-1}:i,t),innerSpan:a(e,t)}},t.findFrontChar=function(e,t,n){let r=t;for(;!e.test(n[r]);)r--;return r},t.findBackChar=function(e,t,n){let r=t;for(;!e.test(n[r]);)r++;return r},t.toLowerCamelCase=function(e){return e.slice(0,1).toLowerCase()+e.slice(1)},t.getLast=function(e){return 0===e.length?void 0:e[e.length-1]}}));i(Ev);Ev.parseNgBinding,Ev.parseNgSimpleBinding,Ev.parseNgAction,Ev.parseNgTemplateBindings,Ev.parseNgInterpolation,Ev.getNgType,Ev.fitSpans,Ev.findFrontChar,Ev.findBackChar,Ev.toLowerCamelCase,Ev.getLast;var xv=s((function(e,t){function n(e,t,n=!1,r=!1){if(!n){const{start:n,end:r}=e;return{start:n,end:r,loc:{start:t.locator.locationForIndex(n),end:t.locator.locationForIndex(r)}}}const{outerSpan:i,innerSpan:s,hasParens:o}=Ev.fitSpans(e,t.text,r);return Object.assign({start:s.start,end:s.end,loc:{start:t.locator.locationForIndex(s.start),end:t.locator.locationForIndex(s.end)}},o&&{extra:{parenthesized:!0,parenStart:i.start,parenEnd:i.end}})}Object.defineProperty(t,"__esModule",{value:!0}),t.transform=(e,r,i=!1)=>{const s=Ev.getNgType(e);switch(s){case"Binary":{const{left:t,operation:n,right:r}=e,s=r.span.start===r.span.end,a=t.span.start===t.span.end;if(s||a){const n=t.span.start===t.span.end?o(r):o(t);return u("UnaryExpression",{prefix:!0,argument:n,operator:s?"+":"-"},{start:e.span.start,end:v(n)},{hasParentParens:i})}const p=o(t),l=o(r);return u("&&"===n||"||"===n?"LogicalExpression":"BinaryExpression",{left:p,right:l,operator:n},{start:d(p),end:v(l)},{hasParentParens:i})}case"BindingPipe":{const{exp:t,name:n,args:r}=e,s=o(t),a=c(/\S/,c(/\|/,v(s))+1),p=u("Identifier",{name:n},{start:a,end:a+n.length}),l=r.map(o);return u("NGPipeExpression",{left:s,right:p,arguments:l},{start:d(s),end:v(0===l.length?p:Ev.getLast(l))},{hasParentParens:i})}case"Chain":{const{expressions:t}=e;return u("NGChainedExpression",{expressions:t.map(o)},e.span,{hasParentParens:i})}case"Comment":{const{value:t}=e;return u("CommentLine",{value:t},e.span,{processSpan:!1})}case"Conditional":{const{condition:t,trueExp:n,falseExp:r}=e,s=o(t),a=o(n),p=o(r);return u("ConditionalExpression",{test:s,consequent:a,alternate:p},{start:d(s),end:v(p)},{hasParentParens:i})}case"EmptyExpr":return u("NGEmptyExpression",{},e.span,{hasParentParens:i});case"FunctionCall":{const{target:t,args:n}=e,r=1===n.length?[a(n[0])]:n.map(o),s=o(t);return u("CallExpression",{callee:s,arguments:r},{start:d(s),end:e.span.end},{hasParentParens:i})}case"KeyedRead":{const{obj:t,key:n}=e,r=o(t);return u("MemberExpression",{computed:!0,object:r,property:o(n)},{start:d(r),end:e.span.end},{hasParentParens:i})}case"LiteralArray":{const{expressions:t}=e;return u("ArrayExpression",{elements:t.map(o)},e.span,{hasParentParens:i})}case"LiteralMap":{const{keys:t,values:n}=e,r=n.map(e=>o(e)),s=t.map(({key:t,quoted:n},i)=>{const s=r[i],o={start:c(/\S/,0===i?e.span.start+1:c(/,/,v(r[i-1]))+1),end:l(/\S/,l(/:/,d(s)-1)-1)+1},a=n?u("StringLiteral",{value:t},o):u("Identifier",{name:t},o);return u("ObjectProperty",{key:a,value:s,method:!1,shorthand:!1,computed:!1},{start:d(a),end:v(s)})});return u("ObjectExpression",{properties:s},e.span,{hasParentParens:i})}case"LiteralPrimitive":{const{value:t}=e;switch(typeof t){case"boolean":return u("BooleanLiteral",{value:t},e.span,{hasParentParens:i});case"number":return u("NumericLiteral",{value:t},e.span,{hasParentParens:i});case"object":return u("NullLiteral",{},e.span,{hasParentParens:i});case"string":return u("StringLiteral",{value:t},e.span,{hasParentParens:i});case"undefined":return u("Identifier",{name:"undefined"},e.span,{hasParentParens:i});default:throw new Error("Unexpected LiteralPrimitive value type ".concat(typeof t))}}case"MethodCall":case"SafeMethodCall":{const t="SafeMethodCall"===s,{receiver:n,name:r,args:c}=e,f=1===c.length?[a(c[0])]:c.map(o),v=l(/\S/,l(/\(/,(0===f.length?l(/\)/,e.span.end-1):d(f[0]))-1)-1)+1,m=p(n,u("Identifier",{name:r},{start:v-r.length,end:v}),{computed:!1,optional:t}),y=h(m);return u(t||y?"OptionalCallExpression":"CallExpression",{callee:m,arguments:f},{start:d(m),end:e.span.end},{hasParentParens:i})}case"NonNullAssert":{const{expression:t}=e,n=o(t);return u("TSNonNullExpression",{expression:n},{start:d(n),end:e.span.end},{hasParentParens:i})}case"PrefixNot":{const{expression:t}=e,n=o(t);return u("UnaryExpression",{prefix:!0,operator:"!",argument:n},{start:e.span.start,end:v(n)},{hasParentParens:i})}case"PropertyRead":case"SafePropertyRead":{const t="SafePropertyRead"===s,{receiver:n,name:r}=e,o=l(/\S/,e.span.end-1)+1;return p(n,u("Identifier",{name:r},{start:o-r.length,end:o},n.span.start===n.span.end?{hasParentParens:i}:{}),{computed:!1,optional:t},{hasParentParens:i})}case"KeyedWrite":{const{obj:t,key:n,value:r}=e,s=o(n),a=o(r),l=p(t,s,{computed:!0,optional:!1},{end:c(/\]/,v(s))+1});return u("AssignmentExpression",{left:l,operator:"=",right:a},{start:d(l),end:v(a)},{hasParentParens:i})}case"PropertyWrite":{const{receiver:t,name:n,value:r}=e,s=o(r),a=l(/\S/,l(/=/,d(s)-1)-1)+1,c=p(t,u("Identifier",{name:n},{start:a-n.length,end:a}),{computed:!1,optional:!1});return u("AssignmentExpression",{left:c,operator:"=",right:s},{start:d(c),end:v(s)},{hasParentParens:i})}case"Quote":{const{prefix:t,uninterpretedExpression:n}=e;return u("NGQuotedExpression",{prefix:t,value:n},e.span,{hasParentParens:i})}default:throw new Error("Unexpected node ".concat(s))}function o(e){return t.transform(e,r)}function a(e){return t.transform(e,r,!0)}function u(e,t,i,{processSpan:s=!0,hasParentParens:o=!1}={}){const a=Object.assign(Object.assign({type:e},n(i,r,s,o)),t);switch(e){case"Identifier":{const e=a;e.loc.identifierName=e.name;break}case"NumericLiteral":{const e=a;e.extra=Object.assign(Object.assign({},e.extra),{raw:r.text.slice(e.start,e.end),rawValue:e.value});break}case"StringLiteral":{const e=a;e.extra=Object.assign(Object.assign({},e.extra),{raw:r.text.slice(e.start,e.end),rawValue:e.value});break}}return a}function p(e,t,n,{end:r=v(t),hasParentParens:i=!1}={}){if(e.span.start===e.span.end)return t;const s="ImplicitReceiver"===Ev.getNgType(e)?u("ThisExpression",{},e.span):o(e),a=h(s);return u(n.optional||a?"OptionalMemberExpression":"MemberExpression",Object.assign({object:s,property:t,computed:n.computed},n.optional?{optional:!0}:a?{optional:!1}:null),{start:d(s),end:r},{hasParentParens:i})}function l(e,t){return Ev.findFrontChar(e,t,r.text)}function c(e,t){return Ev.findBackChar(e,t,r.text)}function h(e){return("OptionalCallExpression"===e.type||"OptionalMemberExpression"===e.type)&&!f(e)}function f(e){return e.extra&&e.extra.parenthesized}function d(e){return f(e)?e.extra.parenStart:e.start}function v(e){return f(e)?e.extra.parenEnd:e.end}},t.transformSpan=n}));i(xv);xv.transform,xv.transformSpan;var Sv=s((function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.transformTemplateBindings=function(e,t){const[n]=e,{key:r}=n,i=0===t.text.slice(n.span.start,n.span.end).trim().length?e.slice(1):e,s=[];let o=null;for(let e=0;e<i.length;e++){const n=i[e],{key:r,keyIsVar:u,name:c,span:h}=n;if(o&&o.key===c&&u&&/^as\s$/.test(t.text.slice(h.start,h.start+3))){const e=p("NGMicrosyntaxKey",{name:r},l(Ev.findBackChar(/\S/,h.start+3,t.text),r)),n=(e,n)=>Object.assign(Object.assign({},e),xv.transformSpan({start:e.start,end:n},t)),i=t=>Object.assign(Object.assign({},n(t,e.end)),{alias:e}),o=s.pop();if("NGMicrosyntaxExpression"===o.type)s.push(i(o));else{if("NGMicrosyntaxKeyedExpression"!==o.type)throw new Error("Unexpected type ".concat(o.type));{const e=i(o.expression);s.push(n(Object.assign(Object.assign({},o),{expression:e}),e.end))}}}else s.push(a(n,e));o=n}return p("NGMicrosyntax",{body:s},0===s.length?e[0].span:{start:s[0].start,end:s[s.length-1].end});function a({key:e,keyIsVar:n,name:r,expression:i,span:s},o){if(n){if(/^let\s$/.test(t.text.slice(s.start,s.start+4))){const n=l(Ev.findBackChar(/\S/,s.start+4,t.text),e);return p("NGMicrosyntaxLet",{key:p("NGMicrosyntaxKey",{name:e},n),value:0===t.text.slice(n.end,s.end).trim().length?null:p("NGMicrosyntaxKey",{name:r},{start:Ev.findBackChar(/=/,n.end,t.text)+1,end:s.end})},s)}{const n=l(s.start,r);return p("NGMicrosyntaxAs",{key:p("NGMicrosyntaxKey",{name:r},n),alias:p("NGMicrosyntaxKey",{name:e},{start:Ev.findBackChar(/\S/,n.end,t.text)+"as".length,end:s.end})},s)}}if(i){if(0===o)return p("NGMicrosyntaxExpression",{expression:u(i.ast),alias:null},s);{const t=u(i.ast),{start:n,end:r}=t,o=c(e);return p("NGMicrosyntaxKeyedExpression",{key:p("NGMicrosyntaxKey",{name:o},l(s.start,o)),expression:p("NGMicrosyntaxExpression",{expression:t,alias:null},{start:n,end:r})},s)}}return p("NGMicrosyntaxKey",{name:c(e)},s)}function u(e){return xv.transform(e,t)}function p(e,n,r,i=!0){return Object.assign(Object.assign({type:e},xv.transformSpan(r,t,i)),n)}function l(e,n){if("'"!==t.text[e]&&'"'!==t.text[e])return{start:e,end:e+n.length};const r=t.text[e];let i=0,s=e+1;for(;;){const n=t.text[s];if(n===r&&i%2==0)return{start:e,end:s+1};"\\"===n?i++:i=0,s++}}function c(e){return Ev.toLowerCamelCase(e.slice(r.length))}}}));i(Sv);Sv.transformTemplateBindings;var wv=s((function(e,t){function n(e,t){const{ast:n,comments:r}=t(e),i=new a.Context(e),s=e=>xv.transform(e,i),o=s(n);return o.comments=r.map(s),o}Object.defineProperty(t,"__esModule",{value:!0}),t.parseBinding=function(e){return n(e,Ev.parseNgBinding)},t.parseSimpleBinding=function(e){return n(e,Ev.parseNgSimpleBinding)},t.parseInterpolation=function(e){return n(e,Ev.parseNgInterpolation)},t.parseAction=function(e){return n(e,Ev.parseNgAction)},t.parseTemplateBindings=function(e){return Sv.transformTemplateBindings(Ev.parseNgTemplateBindings(e),new a.Context(e))}}));i(wv);wv.parseBinding,wv.parseSimpleBinding,wv.parseInterpolation,wv.parseAction,wv.parseTemplateBindings;function Cv(e){return Object.assign({astFormat:"estree",parse:(t,n,r)=>{const i=e(t,wv);return{type:"NGRoot",node:"__ng_action"===r.parser&&"NGChainedExpression"!==i.type?Object.assign({},i,{type:"NGChainedExpression",expressions:[i]}):i}}},r)}var bv={parsers:{__ng_action:Cv((e,t)=>t.parseAction(e)),__ng_binding:Cv((e,t)=>t.parseBinding(e)),__ng_interpolation:Cv((e,t)=>t.parseInterpolation(e)),__ng_directive:Cv((e,t)=>t.parseTemplateBindings(e))}},Tv=bv.parsers;e.default=bv,e.parsers=Tv,Object.defineProperty(e,"__esModule",{value:!0})}));
|