@@ -1,5 +1,5 @@
/**
- * @license Angular v7.2.7
+ * @license Angular v7.2.8
* (c) 2010-2019 Google LLC. https://angular.io/
* License: MIT
*/
@@ -236,21 +236,21 @@
*
* 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.TAG_OPEN_START=0]="TAG_OPEN_START",e[e.TAG_OPEN_END=1]="TAG_OPEN_END",e[e.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",e[e.TAG_CLOSE=3]="TAG_CLOSE",e[e.TEXT=4]="TEXT",e[e.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",e[e.RAW_TEXT=6]="RAW_TEXT",e[e.COMMENT_START=7]="COMMENT_START",e[e.COMMENT_END=8]="COMMENT_END",e[e.CDATA_START=9]="CDATA_START",e[e.CDATA_END=10]="CDATA_END",e[e.ATTR_NAME=11]="ATTR_NAME",e[e.ATTR_VALUE=12]="ATTR_VALUE",e[e.DOC_TYPE=13]="DOC_TYPE",e[e.EXPANSION_FORM_START=14]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=15]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=16]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=17]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=18]="EXPANSION_FORM_END",e[e.EOF=19]="EOF"}(aa||(aa={}));var la=function Ls(e,t,n){this.type=e,this.parts=t,this.sourceSpan=n},pa=function(e){function t(t,n,r){var i=e.call(this,r,t)||this;return i.tokenType=n,i}return o(t,e),t}(ts),ha=function ha(e,t){this.tokens=e,this.errors=t},fa=/\r\n?/g;function da(e){return'Unexpected character "'+(e===yo?"EOF":String.fromCharCode(e))+'"'}function va(e){return'Unknown entity "'+e+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}var ma=function ma(e){this.error=e},ya=function(){function e(e,t,n,r){void 0===r&&(r=Zr),this._file=e,this._getTagDefinition=t,this._tokenizeIcu=n,this._interpolationConfig=r,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=e.content,this._length=e.content.length,this._advance()}return e.prototype._processCarriageReturns=function(e){return e.replace(fa,"\n")},e.prototype.tokenize=function(){for(;this._peek!==yo;){var e=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(e):this._attemptCharCode(No)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(Po)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){if(!(e instanceof ma))throw e;this.errors.push(e.error)}}return this._beginToken(aa.EOF),this._endToken([]),new ha(function t(e){for(var t=[],n=void 0,r=0;r<e.length;r++){var i=e[r];n&&n.type==aa.TEXT&&i.type==aa.TEXT?(n.parts[0]+=i.parts[0],n.sourceSpan.end=i.sourceSpan.end):t.push(n=i)}return t}
+ */!function(e){e[e.TAG_OPEN_START=0]="TAG_OPEN_START",e[e.TAG_OPEN_END=1]="TAG_OPEN_END",e[e.TAG_OPEN_END_VOID=2]="TAG_OPEN_END_VOID",e[e.TAG_CLOSE=3]="TAG_CLOSE",e[e.TEXT=4]="TEXT",e[e.ESCAPABLE_RAW_TEXT=5]="ESCAPABLE_RAW_TEXT",e[e.RAW_TEXT=6]="RAW_TEXT",e[e.COMMENT_START=7]="COMMENT_START",e[e.COMMENT_END=8]="COMMENT_END",e[e.CDATA_START=9]="CDATA_START",e[e.CDATA_END=10]="CDATA_END",e[e.ATTR_NAME=11]="ATTR_NAME",e[e.ATTR_VALUE=12]="ATTR_VALUE",e[e.DOC_TYPE=13]="DOC_TYPE",e[e.EXPANSION_FORM_START=14]="EXPANSION_FORM_START",e[e.EXPANSION_CASE_VALUE=15]="EXPANSION_CASE_VALUE",e[e.EXPANSION_CASE_EXP_START=16]="EXPANSION_CASE_EXP_START",e[e.EXPANSION_CASE_EXP_END=17]="EXPANSION_CASE_EXP_END",e[e.EXPANSION_FORM_END=18]="EXPANSION_FORM_END",e[e.EOF=19]="EOF"}(aa||(aa={}));var la=function Ls(e,t,n){this.type=e,this.parts=t,this.sourceSpan=n},pa=function(e){function t(t,n,r){var i=e.call(this,r,t)||this;return i.tokenType=n,i}return o(t,e),t}(ts),ha=function ha(e,t){this.tokens=e,this.errors=t},fa=/\r\n?/g;function da(e){return'Unexpected character "'+(e===yo?"EOF":String.fromCharCode(e))+'"'}function va(e){return'Unknown entity "'+e+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}var ma=function ma(e){this.error=e},ya=function(){function e(e,t,n){this._file=e,this._getTagDefinition=t,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._currentTokenStart=null,this._currentTokenType=null,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._tokenizeIcu=n.tokenizeExpansionForms||!1,this._interpolationConfig=n.interpolationConfig||Zr,this._input=e.content,this._length=e.content.length,this._advance()}return e.prototype._processCarriageReturns=function(e){return e.replace(fa,"\n")},e.prototype.tokenize=function(){for(;this._peek!==yo;){var e=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(e):this._attemptCharCode(No)?this._consumeComment(e):this._consumeDocType(e):this._attemptCharCode(Po)?this._consumeTagClose(e):this._consumeTagOpen(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(e){if(!(e instanceof ma))throw e;this.errors.push(e.error)}}return this._beginToken(aa.EOF),this._endToken([]),new ha(function t(e){for(var t=[],n=void 0,r=0;r<e.length;r++){var i=e[r];n&&n.type==aa.TEXT&&i.type==aa.TEXT?(n.parts[0]+=i.parts[0],n.sourceSpan.end=i.sourceSpan.end):t.push(n=i)}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
- */(this.tokens),this.errors)},e.prototype._tokenizeExpansionForm=function(){if(wa(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(function e(t){return t===Io||Xo(t)||$o(t)}(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(125===this._peek){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},e.prototype._getLocation=function(){return new Zo(this._file,this._index,this._line,this._column)},e.prototype._getSpan=function(e,t){return void 0===e&&(e=this._getLocation()),void 0===t&&(t=this._getLocation()),new es(e,t)},e.prototype._beginToken=function(e,t){void 0===t&&(t=this._getLocation()),this._currentTokenStart=t,this._currentTokenType=e},e.prototype._endToken=function(e,t){void 0===t&&(t=this._getLocation());var n=new la(this._currentTokenType,e,new es(this._currentTokenStart,t));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 pa(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new ma(n)},e.prototype._advance=function(){if(this._index>=this._length)throw this._createError(da(yo),this._getSpan());this._peek===_o?(this._line++,this._column=0):this._peek!==_o&&this._peek!==wo&&this._column++,this._index++,this._peek=this._index>=this._length?yo:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?yo:this._input.charCodeAt(this._index+1)},e.prototype._attemptCharCode=function(e){return this._peek===e&&(this._advance(),!0)},e.prototype._attemptCharCodeCaseInsensitive=function(e){return!!function t(e,n){return Ea(e)==Ea(n)}(this._peek,e)&&(this._advance(),!0)},e.prototype._requireCharCode=function(e){var t=this._getLocation();if(!this._attemptCharCode(e))throw this._createError(da(this._peek),this._getSpan(t,t))},e.prototype._attemptStr=function(e){var t=e.length;if(this._index+t>this._length)return!1;for(var n=this._savePosition(),r=0;r<t;r++)if(!this._attemptCharCode(e.charCodeAt(r)))return this._restorePosition(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._getLocation();if(!this._attemptStr(e))throw this._createError(da(this._peek),this._getSpan(t))},e.prototype._attemptCharCodeUntilFn=function(e){for(;!e(this._peek);)this._advance()},e.prototype._requireCharCodeUntilFn=function(e,t){var n=this._getLocation();if(this._attemptCharCodeUntilFn(e),this._index-n.offset<t)throw this._createError(da(this._peek),this._getSpan(n,n))},e.prototype._attemptUntilChar=function(e){for(;this._peek!==e;)this._advance()},e.prototype._readChar=function(e){if(e&&38===this._peek)return this._decodeEntity();var t=this._index;return this._advance(),this._input[t]},e.prototype._decodeEntity=function(){var e=this._getLocation();if(this._advance(),!this._attemptCharCode(35)){var t=this._savePosition();if(this._attemptCharCodeUntilFn(xa),this._peek!=ko)return this._restorePosition(t),"&";this._advance();var n=this._input.substring(e.offset+1,this._index-1),r=b[n];if(!r)throw this._createError(va(n),this._getSpan(e));return r}var i=this._attemptCharCode(120)||this._attemptCharCode(88),o=this._getLocation().offset;if(this._attemptCharCodeUntilFn(ba),this._peek!=ko)throw this._createError(da(this._peek),this._getSpan());this._advance();var s=this._input.substring(o,this._index-1);try{var a=parseInt(s,i?16:10);return String.fromCharCode(a)}catch(t){var u=this._input.substring(e.offset+1,this._index-1);throw this._createError(va(u),this._getSpan(e))}},e.prototype._consumeRawText=function(e,t,n){var r,i=this._getLocation();this._beginToken(e?aa.ESCAPABLE_RAW_TEXT:aa.RAW_TEXT,i);for(var o=[];r=this._getLocation(),!this._attemptCharCode(t)||!n();)for(this._index>r.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==t;)o.push(this._readChar(e));return this._endToken([this._processCarriageReturns(o.join(""))],r)},e.prototype._consumeComment=function(e){var t=this;this._beginToken(aa.COMMENT_START,e),this._requireCharCode(No),this._endToken([]);var n=this._consumeRawText(!1,No,function(){return t._attemptStr("->")});this._beginToken(aa.COMMENT_END,n.sourceSpan.end),this._endToken([])},e.prototype._consumeCdata=function(e){var t=this;this._beginToken(aa.CDATA_START,e),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,93,function(){return t._attemptStr("]>")});this._beginToken(aa.CDATA_END,n.sourceSpan.end),this._endToken([])},e.prototype._consumeDocType=function(e){this._beginToken(aa.DOC_TYPE,e),this._attemptUntilChar(Mo),this._advance(),this._endToken([this._input.substring(e.offset+2,this._index-1)])},e.prototype._consumePrefixAndName=function(){for(var e,t,n=this._index,r=null;58!==this._peek&&!(((e=this._peek)<Vo||zo<e)&&(e<Ro||Fo<e)&&(e<Oo||e>Do));)this._advance();return 58===this._peek?(this._advance(),r=this._input.substring(n,this._index-1),t=this._index):t=n,this._requireCharCodeUntilFn(_a,this._index===t?1:0),[r,this._input.substring(t,this._index)]},e.prototype._consumeTagOpen=function(e){var t,n,r=this._savePosition();try{if(!Xo(this._peek))throw this._createError(da(this._peek),this._getSpan());var i=this._index;for(this._consumeTagOpenStart(e),n=(t=this._input.substring(i,this._index)).toLowerCase(),this._attemptCharCodeUntilFn(ga);this._peek!==Po&&this._peek!==Mo;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(ga),this._attemptCharCode(Io)&&(this._attemptCharCodeUntilFn(ga),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(ga);this._consumeTagOpenEnd()}catch(t){if(t instanceof ma)return this._restorePosition(r),this._beginToken(aa.TEXT,e),void this._endToken(["<"]);throw t}var o=this._getTagDefinition(t).contentType;o===s.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):o===s.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},e.prototype._consumeRawTextWithTagClose=function(e,t){var n=this,r=this._consumeRawText(t,60,function(){return!!n._attemptCharCode(Po)&&(n._attemptCharCodeUntilFn(ga),!!n._attemptStrCaseInsensitive(e)&&(n._attemptCharCodeUntilFn(ga),n._attemptCharCode(Mo)))});this._beginToken(aa.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,e])},e.prototype._consumeTagOpenStart=function(e){this._beginToken(aa.TAG_OPEN_START,e);var t=this._consumePrefixAndName();this._endToken(t)},e.prototype._consumeAttributeName=function(){this._beginToken(aa.ATTR_NAME);var e=this._consumePrefixAndName();this._endToken(e)},e.prototype._consumeAttributeValue=function(){var e;if(this._beginToken(aa.ATTR_VALUE),this._peek===To||this._peek===So){var t=this._peek;this._advance();for(var n=[];this._peek!==t;)n.push(this._readChar(!0));e=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn(_a,1),e=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(e)])},e.prototype._consumeTagOpenEnd=function(){var e=this._attemptCharCode(Po)?aa.TAG_OPEN_END_VOID:aa.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(Mo),this._endToken([])},e.prototype._consumeTagClose=function(e){this._beginToken(aa.TAG_CLOSE,e),this._attemptCharCodeUntilFn(ga);var t=this._consumePrefixAndName();this._attemptCharCodeUntilFn(ga),this._requireCharCode(Mo),this._endToken(t)},e.prototype._consumeExpansionFormStart=function(){this._beginToken(aa.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(Wo),this._endToken([]),this._expansionCaseStack.push(aa.EXPANSION_FORM_START),this._beginToken(aa.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(ga),this._beginToken(aa.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(ga)},e.prototype._consumeExpansionCaseStart=function(){this._beginToken(aa.EXPANSION_CASE_VALUE,this._getLocation());var e=this._readUntil(Wo).trim();this._endToken([e],this._getLocation()),this._attemptCharCodeUntilFn(ga),this._beginToken(aa.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(Wo),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(ga),this._expansionCaseStack.push(aa.EXPANSION_CASE_EXP_START)},e.prototype._consumeExpansionCaseEnd=function(){this._beginToken(aa.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(ga),this._expansionCaseStack.pop()},e.prototype._consumeExpansionFormEnd=function(){this._beginToken(aa.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},e.prototype._consumeText=function(){var e=this._getLocation();this._beginToken(aa.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._peek||this._peek===yo)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(wa(this._input,this._index,this._interpolationConfig))return!0;if(125===this._peek&&this._isInExpansionCase())return!0}return!1},e.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},e.prototype._readUntil=function(e){var t=this._index;return this._attemptUntilChar(e),this._input.substring(t,this._index)},e.prototype._restorePosition=function(e){this._peek=e[0],this._index=e[1],this._column=e[2],this._line=e[3];var t=e[4];t<this.tokens.length&&(this.tokens=this.tokens.slice(0,t))},e.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===aa.EXPANSION_CASE_EXP_START},e.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===aa.EXPANSION_FORM_START},e}();function ga(e){return!Go(e)||e===yo}function _a(e){return Go(e)||e===Mo||e===Po||e===To||e===So||e===Io}function ba(e){return e==ko||e==yo||!function t(e){return e>=Vo&&e<=Bo||e>=Ro&&e<=Lo||$o(e)}(e)}function xa(e){return e==ko||e==yo||!Xo(e)}function wa(e,t,n){var r=!!n&&e.indexOf(n.start,t)==t;return e.charCodeAt(t)==Wo&&!r}function Ea(e){return e>=Vo&&e<=zo?e-Vo+Ro:e}var Sa=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.elementName=t,i}return o(t,e),t.create=function(e,n,r){return new t(e,n,r)},t}(ts),Ca=function Ca(e,t){this.rootNodes=e,this.errors=t},Ta=function(){function e(e){this.getTagDefinition=e}return e.prototype.parse=function(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r=Zr);var i=function o(e,t,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=Zr),new ya(new Jo(e,t),n,r,i).tokenize()}(e,t,this.getTagDefinition,n,r),s=new Aa(i.tokens,this.getTagDefinition).build();return new Ca(s.rootNodes,i.errors.concat(s.errors))},e}(),Aa=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!==aa.EOF;)this._peek.type===aa.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===aa.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===aa.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===aa.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===aa.TEXT||this._peek.type===aa.RAW_TEXT||this._peek.type===aa.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===aa.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new Ca(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(aa.CDATA_END)},e.prototype._consumeComment=function(e){var t=this._advanceIf(aa.RAW_TEXT);this._advanceIf(aa.COMMENT_END);var n=null!=t?t.parts[0].trim():null;this._addToParent(new oa(n,e.sourceSpan))},e.prototype._consumeExpansion=function(e){for(var t=this._advance(),n=this._advance(),r=[];this._peek.type===aa.EXPANSION_CASE_VALUE;){var i=this._parseExpansionCase();if(!i)return;r.push(i)}if(this._peek.type===aa.EXPANSION_FORM_END){var o=new es(e.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new ta(t.parts[0],n.parts[0],r,o,t.sourceSpan)),this._advance()}else this._errors.push(Sa.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."))},e.prototype._parseExpansionCase=function(){var t=this._advance();if(this._peek.type!==aa.EXPANSION_CASE_EXP_START)return this._errors.push(Sa.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 la(aa.EOF,[],i.sourceSpan));var o=new e(r,this.getTagDefinition).build();if(o.errors.length>0)return this._errors=this._errors.concat(o.errors),null;var s=new es(t.sourceSpan.start,i.sourceSpan.end),a=new es(n.sourceSpan.start,i.sourceSpan.end);return new na(t.parts[0],o.rootNodes,s,t.sourceSpan,a)},e.prototype._collectExpansionExpTokens=function(e){for(var t=[],n=[aa.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==aa.EXPANSION_FORM_START&&this._peek.type!==aa.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===aa.EXPANSION_CASE_EXP_END){if(!Na(n,aa.EXPANSION_CASE_EXP_START))return this._errors.push(Sa.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return t}if(this._peek.type===aa.EXPANSION_FORM_END){if(!Na(n,aa.EXPANSION_FORM_START))return this._errors.push(Sa.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===aa.EOF)return this._errors.push(Sa.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 ea(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===aa.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(t,n,this._getParentElement()),o=!1;if(this._peek.type===aa.TAG_OPEN_END_VOID){this._advance(),o=!0;var s=this.getTagDefinition(i);s.canSelfClose||null!==g(i)||s.isVoid||this._errors.push(Sa.create(i,e.sourceSpan,'Only void and foreign elements can be self closed "'+e.parts[1]+'"'))}else this._peek.type===aa.TAG_OPEN_END&&(this._advance(),o=!1);var a=new es(e.sourceSpan.start,this._peek.sourceSpan.start),u=new ia(i,r,[],a,a,void 0);this._pushElement(u),o&&(this._popElement(i),u.endSourceSpan=a)},e.prototype._pushElement=function(e){var t=this._getParentElement();t&&this.getTagDefinition(t.name).isClosedByChild(e.name)&&this._elementStack.pop();var n=this.getTagDefinition(e.name),r=this._getParentElementSkippingContainers(),i=r.parent,o=r.container;if(i&&n.requireExtraParent(i.name)){var s=new ia(n.parentToAdd,[],[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan);this._insertBeforeContainer(i,o,s)}this._addToParent(e),this._elementStack.push(e)},e.prototype._consumeEndTag=function(e){var t=this._getElementFullName(e.parts[0],e.parts[1],this._getParentElement());this._getParentElement()&&(this._getParentElement().endSourceSpan=e.sourceSpan),this.getTagDefinition(t).isVoid?this._errors.push(Sa.create(t,e.sourceSpan,'Void elements do not have end tags "'+e.parts[1]+'"')):this._popElement(t)||this._errors.push(Sa.create(t,e.sourceSpan,'Unexpected closing tag "'+t+'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags'))},e.prototype._popElement=function(e){for(var t=this._elementStack.length-1;t>=0;t--){var n=this._elementStack[t];if(n.name==e)return this._elementStack.splice(t,this._elementStack.length-t),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},e.prototype._consumeAttr=function(e){var t=_(e.parts[0],e.parts[1]),n=e.sourceSpan.end,r="",i=void 0;if(this._peek.type===aa.ATTR_VALUE){var o=this._advance();r=o.parts[0],n=o.sourceSpan.end,i=o.sourceSpan}return new ra(t,r,new es(e.sourceSpan.start,n),i)},e.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},e.prototype._getParentElementSkippingContainers=function(){for(var e=null,t=this._elementStack.length-1;t>=0;t--){if(!v(this._elementStack[t].name))return{parent:this._elementStack[t],container:e};e=this._elementStack[t]}return{parent:null,container:e}},e.prototype._addToParent=function(e){var t=this._getParentElement();null!=t?t.children.push(e):this._rootNodes.push(e)},e.prototype._insertBeforeContainer=function(e,t,n){if(t){if(e){var r=e.children.indexOf(t);e.children[r]=n}else this._rootNodes.push(n);n.children.push(t),this._elementStack.splice(this._elementStack.indexOf(t),0,n)}else this._addToParent(n),this._elementStack.push(n)},e.prototype._getElementFullName=function(e,t,n){return null==e&&null==(e=this.getTagDefinition(t).implicitNamespacePrefix)&&null!=n&&(e=g(n.name)),_(e,t)},e}();function Na(e,t){return e.length>0&&e[e.length-1]===t}
+ */(this.tokens),this.errors)},e.prototype._tokenizeExpansionForm=function(){if(wa(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(function e(t){return t===Io||Xo(t)||$o(t)}(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(125===this._peek){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},e.prototype._getLocation=function(){return new Zo(this._file,this._index,this._line,this._column)},e.prototype._getSpan=function(e,t){return void 0===e&&(e=this._getLocation()),void 0===t&&(t=this._getLocation()),new es(e,t)},e.prototype._beginToken=function(e,t){void 0===t&&(t=this._getLocation()),this._currentTokenStart=t,this._currentTokenType=e},e.prototype._endToken=function(e,t){if(void 0===t&&(t=this._getLocation()),null===this._currentTokenStart)throw new pa("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._getSpan(t,t));if(null===this._currentTokenType)throw new pa("Programming error - attempted to end a token which has no token type",null,this._getSpan(this._currentTokenStart,t));var n=new la(this._currentTokenType,e,new es(this._currentTokenStart,t));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 pa(e,this._currentTokenType,t);return this._currentTokenStart=null,this._currentTokenType=null,new ma(n)},e.prototype._advance=function(){if(this._index>=this._length)throw this._createError(da(yo),this._getSpan());this._peek===_o?(this._line++,this._column=0):this._peek!==_o&&this._peek!==wo&&this._column++,this._index++,this._peek=this._index>=this._length?yo:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?yo:this._input.charCodeAt(this._index+1)},e.prototype._attemptCharCode=function(e){return this._peek===e&&(this._advance(),!0)},e.prototype._attemptCharCodeCaseInsensitive=function(e){return!!function t(e,n){return Ea(e)==Ea(n)}(this._peek,e)&&(this._advance(),!0)},e.prototype._requireCharCode=function(e){var t=this._getLocation();if(!this._attemptCharCode(e))throw this._createError(da(this._peek),this._getSpan(t,t))},e.prototype._attemptStr=function(e){var t=e.length;if(this._index+t>this._length)return!1;for(var n=this._savePosition(),r=0;r<t;r++)if(!this._attemptCharCode(e.charCodeAt(r)))return this._restorePosition(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._getLocation();if(!this._attemptStr(e))throw this._createError(da(this._peek),this._getSpan(t))},e.prototype._attemptCharCodeUntilFn=function(e){for(;!e(this._peek);)this._advance()},e.prototype._requireCharCodeUntilFn=function(e,t){var n=this._getLocation();if(this._attemptCharCodeUntilFn(e),this._index-n.offset<t)throw this._createError(da(this._peek),this._getSpan(n,n))},e.prototype._attemptUntilChar=function(e){for(;this._peek!==e;)this._advance()},e.prototype._readChar=function(e){if(e&&38===this._peek)return this._decodeEntity();var t=this._index;return this._advance(),this._input[t]},e.prototype._decodeEntity=function(){var e=this._getLocation();if(this._advance(),!this._attemptCharCode(35)){var t=this._savePosition();if(this._attemptCharCodeUntilFn(xa),this._peek!=ko)return this._restorePosition(t),"&";this._advance();var n=this._input.substring(e.offset+1,this._index-1),r=b[n];if(!r)throw this._createError(va(n),this._getSpan(e));return r}var i=this._attemptCharCode(120)||this._attemptCharCode(88),o=this._getLocation().offset;if(this._attemptCharCodeUntilFn(ba),this._peek!=ko)throw this._createError(da(this._peek),this._getSpan());this._advance();var s=this._input.substring(o,this._index-1);try{var a=parseInt(s,i?16:10);return String.fromCharCode(a)}catch(t){var u=this._input.substring(e.offset+1,this._index-1);throw this._createError(va(u),this._getSpan(e))}},e.prototype._consumeRawText=function(e,t,n){var r,i=this._getLocation();this._beginToken(e?aa.ESCAPABLE_RAW_TEXT:aa.RAW_TEXT,i);for(var o=[];r=this._getLocation(),!this._attemptCharCode(t)||!n();)for(this._index>r.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==t;)o.push(this._readChar(e));return this._endToken([this._processCarriageReturns(o.join(""))],r)},e.prototype._consumeComment=function(e){var t=this;this._beginToken(aa.COMMENT_START,e),this._requireCharCode(No),this._endToken([]);var n=this._consumeRawText(!1,No,function(){return t._attemptStr("->")});this._beginToken(aa.COMMENT_END,n.sourceSpan.end),this._endToken([])},e.prototype._consumeCdata=function(e){var t=this;this._beginToken(aa.CDATA_START,e),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,93,function(){return t._attemptStr("]>")});this._beginToken(aa.CDATA_END,n.sourceSpan.end),this._endToken([])},e.prototype._consumeDocType=function(e){this._beginToken(aa.DOC_TYPE,e),this._attemptUntilChar(Mo),this._advance(),this._endToken([this._input.substring(e.offset+2,this._index-1)])},e.prototype._consumePrefixAndName=function(){for(var e,t,n=this._index,r=null;58!==this._peek&&!(((e=this._peek)<Vo||zo<e)&&(e<Ro||Fo<e)&&(e<Oo||e>Do));)this._advance();return 58===this._peek?(this._advance(),r=this._input.substring(n,this._index-1),t=this._index):t=n,this._requireCharCodeUntilFn(_a,this._index===t?1:0),[r,this._input.substring(t,this._index)]},e.prototype._consumeTagOpen=function(e){var t,n,r=this._savePosition();try{if(!Xo(this._peek))throw this._createError(da(this._peek),this._getSpan());var i=this._index;for(this._consumeTagOpenStart(e),n=(t=this._input.substring(i,this._index)).toLowerCase(),this._attemptCharCodeUntilFn(ga);this._peek!==Po&&this._peek!==Mo;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(ga),this._attemptCharCode(Io)&&(this._attemptCharCodeUntilFn(ga),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(ga);this._consumeTagOpenEnd()}catch(t){if(t instanceof ma)return this._restorePosition(r),this._beginToken(aa.TEXT,e),void this._endToken(["<"]);throw t}var o=this._getTagDefinition(t).contentType;o===s.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):o===s.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},e.prototype._consumeRawTextWithTagClose=function(e,t){var n=this,r=this._consumeRawText(t,60,function(){return!!n._attemptCharCode(Po)&&(n._attemptCharCodeUntilFn(ga),!!n._attemptStrCaseInsensitive(e)&&(n._attemptCharCodeUntilFn(ga),n._attemptCharCode(Mo)))});this._beginToken(aa.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,e])},e.prototype._consumeTagOpenStart=function(e){this._beginToken(aa.TAG_OPEN_START,e);var t=this._consumePrefixAndName();this._endToken(t)},e.prototype._consumeAttributeName=function(){this._beginToken(aa.ATTR_NAME);var e=this._consumePrefixAndName();this._endToken(e)},e.prototype._consumeAttributeValue=function(){var e;if(this._beginToken(aa.ATTR_VALUE),this._peek===To||this._peek===So){var t=this._peek;this._advance();for(var n=[];this._peek!==t;)n.push(this._readChar(!0));e=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn(_a,1),e=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(e)])},e.prototype._consumeTagOpenEnd=function(){var e=this._attemptCharCode(Po)?aa.TAG_OPEN_END_VOID:aa.TAG_OPEN_END;this._beginToken(e),this._requireCharCode(Mo),this._endToken([])},e.prototype._consumeTagClose=function(e){this._beginToken(aa.TAG_CLOSE,e),this._attemptCharCodeUntilFn(ga);var t=this._consumePrefixAndName();this._attemptCharCodeUntilFn(ga),this._requireCharCode(Mo),this._endToken(t)},e.prototype._consumeExpansionFormStart=function(){this._beginToken(aa.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(Wo),this._endToken([]),this._expansionCaseStack.push(aa.EXPANSION_FORM_START),this._beginToken(aa.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(ga),this._beginToken(aa.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(ga)},e.prototype._consumeExpansionCaseStart=function(){this._beginToken(aa.EXPANSION_CASE_VALUE,this._getLocation());var e=this._readUntil(Wo).trim();this._endToken([e],this._getLocation()),this._attemptCharCodeUntilFn(ga),this._beginToken(aa.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(Wo),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(ga),this._expansionCaseStack.push(aa.EXPANSION_CASE_EXP_START)},e.prototype._consumeExpansionCaseEnd=function(){this._beginToken(aa.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(ga),this._expansionCaseStack.pop()},e.prototype._consumeExpansionFormEnd=function(){this._beginToken(aa.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},e.prototype._consumeText=function(){var e=this._getLocation();this._beginToken(aa.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._peek||this._peek===yo)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(wa(this._input,this._index,this._interpolationConfig))return!0;if(125===this._peek&&this._isInExpansionCase())return!0}return!1},e.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},e.prototype._readUntil=function(e){var t=this._index;return this._attemptUntilChar(e),this._input.substring(t,this._index)},e.prototype._restorePosition=function(e){this._peek=e[0],this._index=e[1],this._column=e[2],this._line=e[3];var t=e[4];t<this.tokens.length&&(this.tokens=this.tokens.slice(0,t))},e.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===aa.EXPANSION_CASE_EXP_START},e.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===aa.EXPANSION_FORM_START},e}();function ga(e){return!Go(e)||e===yo}function _a(e){return Go(e)||e===Mo||e===Po||e===To||e===So||e===Io}function ba(e){return e==ko||e==yo||!function t(e){return e>=Vo&&e<=Bo||e>=Ro&&e<=Lo||$o(e)}(e)}function xa(e){return e==ko||e==yo||!Xo(e)}function wa(e,t,n){var r=!!n&&e.indexOf(n.start,t)==t;return e.charCodeAt(t)==Wo&&!r}function Ea(e){return e>=Vo&&e<=zo?e-Vo+Ro:e}var Sa=function(e){function t(t,n,r){var i=e.call(this,n,r)||this;return i.elementName=t,i}return o(t,e),t.create=function(e,n,r){return new t(e,n,r)},t}(ts),Ca=function Ca(e,t){this.rootNodes=e,this.errors=t},Ta=function(){function e(e){this.getTagDefinition=e}return e.prototype.parse=function(e,t,n){var r=function i(e,t,n,r){return void 0===r&&(r={}),new ya(new Jo(e,t),n,r).tokenize()}(e,t,this.getTagDefinition,n),o=new Aa(r.tokens,this.getTagDefinition).build();return new Ca(o.rootNodes,r.errors.concat(o.errors))},e}(),Aa=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!==aa.EOF;)this._peek.type===aa.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===aa.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===aa.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===aa.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===aa.TEXT||this._peek.type===aa.RAW_TEXT||this._peek.type===aa.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===aa.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new Ca(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(aa.CDATA_END)},e.prototype._consumeComment=function(e){var t=this._advanceIf(aa.RAW_TEXT);this._advanceIf(aa.COMMENT_END);var n=null!=t?t.parts[0].trim():null;this._addToParent(new oa(n,e.sourceSpan))},e.prototype._consumeExpansion=function(e){for(var t=this._advance(),n=this._advance(),r=[];this._peek.type===aa.EXPANSION_CASE_VALUE;){var i=this._parseExpansionCase();if(!i)return;r.push(i)}if(this._peek.type===aa.EXPANSION_FORM_END){var o=new es(e.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new ta(t.parts[0],n.parts[0],r,o,t.sourceSpan)),this._advance()}else this._errors.push(Sa.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."))},e.prototype._parseExpansionCase=function(){var t=this._advance();if(this._peek.type!==aa.EXPANSION_CASE_EXP_START)return this._errors.push(Sa.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 la(aa.EOF,[],i.sourceSpan));var o=new e(r,this.getTagDefinition).build();if(o.errors.length>0)return this._errors=this._errors.concat(o.errors),null;var s=new es(t.sourceSpan.start,i.sourceSpan.end),a=new es(n.sourceSpan.start,i.sourceSpan.end);return new na(t.parts[0],o.rootNodes,s,t.sourceSpan,a)},e.prototype._collectExpansionExpTokens=function(e){for(var t=[],n=[aa.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==aa.EXPANSION_FORM_START&&this._peek.type!==aa.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===aa.EXPANSION_CASE_EXP_END){if(!Na(n,aa.EXPANSION_CASE_EXP_START))return this._errors.push(Sa.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return t}if(this._peek.type===aa.EXPANSION_FORM_END){if(!Na(n,aa.EXPANSION_FORM_START))return this._errors.push(Sa.create(null,e.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===aa.EOF)return this._errors.push(Sa.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 ea(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===aa.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(t,n,this._getParentElement()),o=!1;if(this._peek.type===aa.TAG_OPEN_END_VOID){this._advance(),o=!0;var s=this.getTagDefinition(i);s.canSelfClose||null!==g(i)||s.isVoid||this._errors.push(Sa.create(i,e.sourceSpan,'Only void and foreign elements can be self closed "'+e.parts[1]+'"'))}else this._peek.type===aa.TAG_OPEN_END&&(this._advance(),o=!1);var a=new es(e.sourceSpan.start,this._peek.sourceSpan.start),u=new ia(i,r,[],a,a,void 0);this._pushElement(u),o&&(this._popElement(i),u.endSourceSpan=a)},e.prototype._pushElement=function(e){var t=this._getParentElement();t&&this.getTagDefinition(t.name).isClosedByChild(e.name)&&this._elementStack.pop();var n=this.getTagDefinition(e.name),r=this._getParentElementSkippingContainers(),i=r.parent,o=r.container;if(i&&n.requireExtraParent(i.name)){var s=new ia(n.parentToAdd,[],[],e.sourceSpan,e.startSourceSpan,e.endSourceSpan);this._insertBeforeContainer(i,o,s)}this._addToParent(e),this._elementStack.push(e)},e.prototype._consumeEndTag=function(e){var t=this._getElementFullName(e.parts[0],e.parts[1],this._getParentElement());this._getParentElement()&&(this._getParentElement().endSourceSpan=e.sourceSpan),this.getTagDefinition(t).isVoid?this._errors.push(Sa.create(t,e.sourceSpan,'Void elements do not have end tags "'+e.parts[1]+'"')):this._popElement(t)||this._errors.push(Sa.create(t,e.sourceSpan,'Unexpected closing tag "'+t+'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags'))},e.prototype._popElement=function(e){for(var t=this._elementStack.length-1;t>=0;t--){var n=this._elementStack[t];if(n.name==e)return this._elementStack.splice(t,this._elementStack.length-t),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},e.prototype._consumeAttr=function(e){var t=_(e.parts[0],e.parts[1]),n=e.sourceSpan.end,r="",i=void 0;if(this._peek.type===aa.ATTR_VALUE){var o=this._advance();r=o.parts[0],n=o.sourceSpan.end,i=o.sourceSpan}return new ra(t,r,new es(e.sourceSpan.start,n),i)},e.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},e.prototype._getParentElementSkippingContainers=function(){for(var e=null,t=this._elementStack.length-1;t>=0;t--){if(!v(this._elementStack[t].name))return{parent:this._elementStack[t],container:e};e=this._elementStack[t]}return{parent:null,container:e}},e.prototype._addToParent=function(e){var t=this._getParentElement();null!=t?t.children.push(e):this._rootNodes.push(e)},e.prototype._insertBeforeContainer=function(e,t,n){if(t){if(e){var r=e.children.indexOf(t);e.children[r]=n}else this._rootNodes.push(n);n.children.push(t),this._elementStack.splice(this._elementStack.indexOf(t),0,n)}else this._addToParent(n),this._elementStack.push(n)},e.prototype._getElementFullName=function(e,t,n){return null==e&&null==(e=this.getTagDefinition(t).implicitNamespacePrefix)&&null!=n&&(e=g(n.name)),_(e,t)},e}();function Na(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 Pa=function(e){function t(){return e.call(this,C)||this}return o(t,e),t.prototype.parse=function(t,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=Zr),e.prototype.parse.call(this,t,n,r,i)},t}(Ta),ka=new Set(["pre","template","textarea","script","style"]),Ia=" \f\n\r\t\v - \u2028\u2029 \ufeff",Ma=new RegExp("[^"+Ia+"]"),Oa=new RegExp("["+Ia+"]{2,}","g");
+ */var Pa=function(e){function t(){return e.call(this,C)||this}return o(t,e),t.prototype.parse=function(t,n,r){return e.prototype.parse.call(this,t,n,r)},t}(Ta),ka=new Set(["pre","template","textarea","script","style"]),Ia=" \f\n\r\t\v - \u2028\u2029 \ufeff",Ma=new RegExp("[^"+Ia+"]"),Oa=new RegExp("["+Ia+"]{2,}","g");
/**
* @license
* Copyright Google Inc. All Rights Reserved.
@@ -356,7 +356,7 @@
*
* 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(){this.R3ResolvedDependencyType=Fr,this.elementSchemaRegistry=new za}return e.prototype.compilePipe=function(e,t,n){var r=function i(e){var t=[];t.push({key:"name",value:yt(e.pipeName),quoted:!1}),t.push({key:"type",value:e.type,quoted:!1});var n=Vr({name:e.name,type:e.type,deps:e.deps,injectFn:yn.directiveInject});return t.push({key:"factory",value:n.factory,quoted:!1}),t.push({key:"pure",value:yt(e.pure),quoted:!1}),{expression:pt(yn.definePipe).callFn([dt(t)]),type:new le(pt(yn.PipeDefWithMeta,[new le(e.type),new le(new Me(e.pipeName))])),statements:n.statements}}({name:n.name,type:new Se(n.type),deps:Pc(n.deps),pipeName:n.pipeName,pure:n.pure});return vi(r.expression,e,t,r.statements)},e.prototype.compileInjectable=function(e,t,n){var r=function o(e){var t=null,n={name:e.name,type:e.type,deps:e.ctorDeps,injectFn:Gt.inject};if(void 0!==e.useClass){var r=e.useClass.isEquivalent(e.type),i=e.userDeps||r&&e.ctorDeps||void 0;t=Vr(a({},n,void 0!==i?{delegate:e.useClass,delegateDeps:i,delegateType:Lr.Class}:{delegate:e.useClass,delegateType:Lr.Factory}))}else t=Vr(void 0!==e.useFactory?a({},n,{delegate:e.useFactory,delegateDeps:e.userDeps||[],delegateType:Lr.Function}):void 0!==e.useValue?a({},n,{expression:e.useValue}):void 0!==e.useExisting?a({},n,{expression:pt(Gt.inject).callFn([e.useExisting])}):n);var o=e.type,s=e.providedIn;return{expression:pt(Gt.defineInjectable).callFn([qr({token:o,factory:t.factory,providedIn:s})]),type:new le(pt(Gt.InjectableDef,[Ur(e.type,e.typeArgumentCount)])),statements:t.statements}}({name:n.name,type:new Se(n.type),typeArgumentCount:n.typeArgumentCount,providedIn:function i(e){return null==e||"string"==typeof e?new Me(e):new Se(e)}(n.providedIn),useClass:Ac(n,bc),useFactory:Ac(n,xc),useValue:Ac(n,wc),useExisting:Ac(n,Ec),ctorDeps:Pc(n.ctorDeps),userDeps:Pc(n.userDeps)||void 0});return vi(r.expression,e,t,r.statements)},e.prototype.compileInjector=function(e,t,n){var r=function i(e){var t=Vr({name:e.name,type:e.type,deps:e.deps,injectFn:yn.inject});return{expression:pt(yn.defineInjector).callFn([qr({factory:t.factory,providers:e.providers,imports:e.imports})]),type:new le(pt(yn.InjectorDef,[new le(e.type)])),statements:t.statements}}({name:n.name,type:new Se(n.type),deps:Pc(n.deps),providers:new Se(n.providers),imports:new Se(n.imports)});return vi(r.expression,e,t,r.statements)},e.prototype.compileNgModule=function(e,t,n){return vi(function r(e){var t=e.type,n=e.bootstrap,r=e.declarations,i=e.imports,o=e.exports;return{expression:pt(yn.defineNgModule).callFn([qr({type:t,bootstrap:ft(n.map(function(e){return e.value})),declarations:ft(r.map(function(e){return e.value})),imports:ft(i.map(function(e){return e.value})),exports:ft(o.map(function(e){return e.value}))})]),type:new le(pt(yn.NgModuleDefWithMeta,[new le(t),mi(r),mi(i),mi(o)])),additionalStatements:[]}}({type:new Se(n.type),bootstrap:n.bootstrap.map(Sc),declarations:n.declarations.map(Sc),imports:n.imports.map(Sc),exports:n.exports.map(Sc),emitInline:!0}).expression,e,t,[])},e.prototype.compileDirective=function(e,t,n){var r=new Ut,i=ic(),o=function s(e,t,n){var r=cc(e,t,n),i=r.definitionMap,o=r.statements;lc(i,e);var s=pt(yn.defineDirective).callFn([i.toLiteralMap()]);return(e.selector||"").replace(/\n/g,""),{expression:s,type:dc(e,yn.DirectiveDefWithMeta),statements:o}}(Tc(n),r,i),a=f(r.statements,o.statements);return vi(o.expression,e,t,a)},e.prototype.compileComponent=function(e,t,n){var r=new Ut,i=n.interpolation?Yr.fromArray(n.interpolation):Zr,o=function s(e,t,n){void 0===n&&(n={});var r=n.interpolationConfig,i=n.preserveWhitespaces,o=ic(r),s=(new Pa).parse(e,t,!0,r);if(s.errors&&s.errors.length>0)return{errors:s.errors,nodes:[]};var a=s.rootNodes;a=sa(new zu(r,!i),a),i||(a=sa(new La,a),a=sa(new zu(r,!1),a));var u=function c(e,t){var n=new Nu(t),r=sa(n,e),i=t.errors.concat(n.errors),o=i.filter(function(e){return e.level===Yo.ERROR});if(o.length>0)throw Nt("Template parse errors:\n"+o.join("\n"),o);return{nodes:r,errors:i}}(a,o),l=u.errors;return l&&l.length>0?{errors:l,nodes:[]}:{nodes:u.nodes}}(n.template,t,{preserveWhitespaces:n.preserveWhitespaces||!1,interpolationConfig:i});if(void 0!==o.errors){var u=o.errors.map(function(e){return e.toString()}).join(", ");throw new Error("Errors during JIT compilation of template for "+n.name+": "+u)}var c=function l(e,t,n){var r,i,o=cc(e,t,n),s=o.definitionMap,a=o.statements;lc(s,e);var u=e.selector&&P.parse(e.selector),c=u&&u[0];if(c){var l=c.getAttrs();l.length&&s.set("attrs",t.getConstLiteral(ft(l.map(function(e){return yt(null!=e?e:void 0)})),!0))}var h=null;if(e.directives.length>0){var f=new k;try{for(var d=p(e.directives),v=d.next();!v.done;v=d.next()){var m=v.value,y=m.expression;f.addSelectables(P.parse(m.selector),y)}}catch(e){r={error:e}}finally{try{v&&!v.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}h=f}e.viewQueries.length&&s.set("viewQuery",function g(e,t){for(var n=[],r=[],i=kr(r,Ar),o=0;o<e.viewQueries.length;o++){var s=e.viewQueries[o],a=pc(s,t,o);n.push(a.toStmt());var u=i(),c=pt(yn.load).callFn([yt(o)]),l=pt(yn.queryRefresh).callFn([u.set(c)]),p=lt(Nr).prop(s.propertyName).set(s.first?u.prop("first"):u);r.push(l.and(p).toStmt())}var h=e.name?e.name+"_Query":null;return vt([new je(Pr,ve),new je(Nr,null)],[Gu(1,n),Gu(2,r)],fe,null,h)}(e,t));var _=e.name,b=_?_+"_Template":null,x=new Set,w=new Set,E=e.changeDetection,S=e.template,C=new $u(t,nc.ROOT_SCOPE,0,_,null,null,b,e.viewQueries,h,x,e.pipes,w,yn.namespaceHTML,e.relativeContextFilePath,e.i18nUseExternalIds),N=C.buildTemplateFunction(S.nodes,[]);if(s.set("consts",yt(C.getConstCount())),s.set("vars",yt(C.getVarCount())),s.set("template",N),x.size){var I=ft(Array.from(x));e.wrapDirectivesAndPipesInClosure&&(I=vt([],[new Je(I)])),s.set("directives",I)}if(w.size){var M=ft(Array.from(w));e.wrapDirectivesAndPipesInClosure&&(M=vt([],[new Je(M)])),s.set("pipes",M)}if(null===e.encapsulation&&(e.encapsulation=T.Emulated),e.styles&&e.styles.length){var O=(e.encapsulation==T.Emulated?function D(e,t,n){var r=new ns;return e.map(function(e){return r.shimCssText(e,t,n)})}(e.styles,"_ngcontent-%COMP%","_nghost-%COMP%"):e.styles).map(function(e){return yt(e)});s.set("styles",ft(O))}else e.encapsulation===T.Emulated&&(e.encapsulation=T.None);return e.encapsulation!==T.Emulated&&s.set("encapsulation",yt(e.encapsulation)),null!==e.animations&&s.set("data",dt([{key:"animation",value:e.animations,quoted:!1}])),null!=E&&E!==A.Default&&s.set("changeDetection",yt(E)),(e.selector||"").replace(/\n/g,""),{expression:pt(yn.defineComponent).callFn([s.toLiteralMap()]),type:dc(e,yn.ComponentDefWithMeta),statements:a}}(a({},n,Tc(n),{selector:n.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:o,viewQueries:n.viewQueries.map(Cc),wrapDirectivesAndPipesInClosure:!1,styles:n.styles||[],encapsulation:n.encapsulation,interpolation:i,changeDetection:n.changeDetection,animations:null!=n.animations?new Se(n.animations):null,viewProviders:null!=n.viewProviders?new Se(n.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),r,ic(i)),h=f(r.statements,c.statements);return vi(c.expression,e,t,h)},e}(),bc=Object.keys({useClass:null})[0],xc=Object.keys({useFactory:null})[0],wc=Object.keys({useValue:null})[0],Ec=Object.keys({useExisting:null})[0],Sc=function(e){var t=new Se(e);return{value:t,type:t}};function Cc(e){return a({},e,{predicate:Array.isArray(e.predicate)?e.predicate:new Se(e.predicate),read:e.read?new Se(e.read):null})}function Tc(e){var t=kc(e.inputs||[]),n=kc(e.outputs||[]),r=e.propMetadata,i={},o={},s=function(e){r.hasOwnProperty(e)&&r[e].forEach(function(t){!function n(e){return"Input"===e.ngMetadataName}(t)?function r(e){return"Output"===e.ngMetadataName}(t)&&(o[e]=t.bindingPropertyName||e):i[e]=t.bindingPropertyName?[t.bindingPropertyName,e]:e})};for(var u in r)s(u);return a({},e,{typeSourceSpan:null,type:new Se(e.type),deps:Pc(e.deps),host:function c(e,t){var n=function r(e){var t={},n={},r={};return Object.keys(e).forEach(function(i){var o=e[i],s=i.match(yc);null===s?t[i]=o:null!=s[1]?r[s[1]]=o:null!=s[2]&&(n[s[2]]=o)}),{attributes:t,listeners:n,properties:r}}(e||{}),i=n.attributes,o=n.listeners,s=n.properties,a=function(e){t.hasOwnProperty(e)&&t[e].forEach(function(t){!function n(e){return"HostBinding"===e.ngMetadataName}(t)?function r(e){return"HostListener"===e.ngMetadataName}(t)&&(o[t.eventName||e]=e+"("+(t.args||[]).join(",")+")"):s[t.hostPropertyName||e]=e})};for(var u in t)a(u);return{attributes:i,listeners:o,properties:s}}(e.host,e.propMetadata),inputs:a({},t,i),outputs:a({},n,o),queries:e.queries.map(Cc),providers:null!=e.providers?new Se(e.providers):null})}function Ac(e,t){return e.hasOwnProperty(t)?new Se(e[t]):void 0}function Nc(e){return{token:null===e.token?new Me(null):e.resolved===Fr.Attribute?new Me(e.token):new Se(e.token),resolved:e.resolved,host:e.host,optional:e.optional,self:e.self,skipSelf:e.skipSelf}}function Pc(e){return null==e?null:e.map(Nc)}function kc(e){return e.reduce(function(e,t){var n=h(t.split(",").map(function(e){return e.trim()}),2),r=n[0];return e[r]=n[1]||r,e},{})}new Ft("7.2.7");
+ */var _c=function(){function e(){this.R3ResolvedDependencyType=Fr,this.elementSchemaRegistry=new za}return e.prototype.compilePipe=function(e,t,n){var r=function i(e){var t=[];t.push({key:"name",value:yt(e.pipeName),quoted:!1}),t.push({key:"type",value:e.type,quoted:!1});var n=Vr({name:e.name,type:e.type,deps:e.deps,injectFn:yn.directiveInject});return t.push({key:"factory",value:n.factory,quoted:!1}),t.push({key:"pure",value:yt(e.pure),quoted:!1}),{expression:pt(yn.definePipe).callFn([dt(t)]),type:new le(pt(yn.PipeDefWithMeta,[new le(e.type),new le(new Me(e.pipeName))])),statements:n.statements}}({name:n.name,type:new Se(n.type),deps:Pc(n.deps),pipeName:n.pipeName,pure:n.pure});return vi(r.expression,e,t,r.statements)},e.prototype.compileInjectable=function(e,t,n){var r=function o(e){var t=null,n={name:e.name,type:e.type,deps:e.ctorDeps,injectFn:Gt.inject};if(void 0!==e.useClass){var r=e.useClass.isEquivalent(e.type),i=e.userDeps||r&&e.ctorDeps||void 0;t=Vr(a({},n,void 0!==i?{delegate:e.useClass,delegateDeps:i,delegateType:Lr.Class}:{delegate:e.useClass,delegateType:Lr.Factory}))}else t=Vr(void 0!==e.useFactory?a({},n,{delegate:e.useFactory,delegateDeps:e.userDeps||[],delegateType:Lr.Function}):void 0!==e.useValue?a({},n,{expression:e.useValue}):void 0!==e.useExisting?a({},n,{expression:pt(Gt.inject).callFn([e.useExisting])}):n);var o=e.type,s=e.providedIn;return{expression:pt(Gt.defineInjectable).callFn([qr({token:o,factory:t.factory,providedIn:s})]),type:new le(pt(Gt.InjectableDef,[Ur(e.type,e.typeArgumentCount)])),statements:t.statements}}({name:n.name,type:new Se(n.type),typeArgumentCount:n.typeArgumentCount,providedIn:function i(e){return null==e||"string"==typeof e?new Me(e):new Se(e)}(n.providedIn),useClass:Ac(n,bc),useFactory:Ac(n,xc),useValue:Ac(n,wc),useExisting:Ac(n,Ec),ctorDeps:Pc(n.ctorDeps),userDeps:Pc(n.userDeps)||void 0});return vi(r.expression,e,t,r.statements)},e.prototype.compileInjector=function(e,t,n){var r=function i(e){var t=Vr({name:e.name,type:e.type,deps:e.deps,injectFn:yn.inject});return{expression:pt(yn.defineInjector).callFn([qr({factory:t.factory,providers:e.providers,imports:e.imports})]),type:new le(pt(yn.InjectorDef,[new le(e.type)])),statements:t.statements}}({name:n.name,type:new Se(n.type),deps:Pc(n.deps),providers:new Se(n.providers),imports:new Se(n.imports)});return vi(r.expression,e,t,r.statements)},e.prototype.compileNgModule=function(e,t,n){return vi(function r(e){var t=e.type,n=e.bootstrap,r=e.declarations,i=e.imports,o=e.exports;return{expression:pt(yn.defineNgModule).callFn([qr({type:t,bootstrap:ft(n.map(function(e){return e.value})),declarations:ft(r.map(function(e){return e.value})),imports:ft(i.map(function(e){return e.value})),exports:ft(o.map(function(e){return e.value}))})]),type:new le(pt(yn.NgModuleDefWithMeta,[new le(t),mi(r),mi(i),mi(o)])),additionalStatements:[]}}({type:new Se(n.type),bootstrap:n.bootstrap.map(Sc),declarations:n.declarations.map(Sc),imports:n.imports.map(Sc),exports:n.exports.map(Sc),emitInline:!0}).expression,e,t,[])},e.prototype.compileDirective=function(e,t,n){var r=new Ut,i=ic(),o=function s(e,t,n){var r=cc(e,t,n),i=r.definitionMap,o=r.statements;lc(i,e);var s=pt(yn.defineDirective).callFn([i.toLiteralMap()]);return(e.selector||"").replace(/\n/g,""),{expression:s,type:dc(e,yn.DirectiveDefWithMeta),statements:o}}(Tc(n),r,i),a=f(r.statements,o.statements);return vi(o.expression,e,t,a)},e.prototype.compileComponent=function(e,t,n){var r=new Ut,i=n.interpolation?Yr.fromArray(n.interpolation):Zr,o=function s(e,t,n){void 0===n&&(n={});var r=n.interpolationConfig,i=n.preserveWhitespaces,o=ic(r),s=(new Pa).parse(e,t,a({},n,{tokenizeExpansionForms:!0}));if(s.errors&&s.errors.length>0)return{errors:s.errors,nodes:[]};var u=s.rootNodes;u=sa(new zu(r,!i),u),i||(u=sa(new La,u),u=sa(new zu(r,!1),u));var c=function l(e,t){var n=new Nu(t),r=sa(n,e),i=t.errors.concat(n.errors),o=i.filter(function(e){return e.level===Yo.ERROR});if(o.length>0)throw Nt("Template parse errors:\n"+o.join("\n"),o);return{nodes:r,errors:i}}(u,o),p=c.errors;return p&&p.length>0?{errors:p,nodes:[]}:{nodes:c.nodes}}(n.template,t,{preserveWhitespaces:n.preserveWhitespaces,interpolationConfig:i});if(void 0!==o.errors){var u=o.errors.map(function(e){return e.toString()}).join(", ");throw new Error("Errors during JIT compilation of template for "+n.name+": "+u)}var c=function l(e,t,n){var r,i,o=cc(e,t,n),s=o.definitionMap,a=o.statements;lc(s,e);var u=e.selector&&P.parse(e.selector),c=u&&u[0];if(c){var l=c.getAttrs();l.length&&s.set("attrs",t.getConstLiteral(ft(l.map(function(e){return yt(null!=e?e:void 0)})),!0))}var h=null;if(e.directives.length>0){var f=new k;try{for(var d=p(e.directives),v=d.next();!v.done;v=d.next()){var m=v.value,y=m.expression;f.addSelectables(P.parse(m.selector),y)}}catch(e){r={error:e}}finally{try{v&&!v.done&&(i=d.return)&&i.call(d)}finally{if(r)throw r.error}}h=f}e.viewQueries.length&&s.set("viewQuery",function g(e,t){for(var n=[],r=[],i=kr(r,Ar),o=0;o<e.viewQueries.length;o++){var s=e.viewQueries[o],a=pc(s,t,o);n.push(a.toStmt());var u=i(),c=pt(yn.load).callFn([yt(o)]),l=pt(yn.queryRefresh).callFn([u.set(c)]),p=lt(Nr).prop(s.propertyName).set(s.first?u.prop("first"):u);r.push(l.and(p).toStmt())}var h=e.name?e.name+"_Query":null;return vt([new je(Pr,ve),new je(Nr,null)],[Gu(1,n),Gu(2,r)],fe,null,h)}(e,t));var _=e.name,b=_?_+"_Template":null,x=new Set,w=new Set,E=e.changeDetection,S=e.template,C=new $u(t,nc.ROOT_SCOPE,0,_,null,null,b,e.viewQueries,h,x,e.pipes,w,yn.namespaceHTML,e.relativeContextFilePath,e.i18nUseExternalIds),N=C.buildTemplateFunction(S.nodes,[]);if(s.set("consts",yt(C.getConstCount())),s.set("vars",yt(C.getVarCount())),s.set("template",N),x.size){var I=ft(Array.from(x));e.wrapDirectivesAndPipesInClosure&&(I=vt([],[new Je(I)])),s.set("directives",I)}if(w.size){var M=ft(Array.from(w));e.wrapDirectivesAndPipesInClosure&&(M=vt([],[new Je(M)])),s.set("pipes",M)}if(null===e.encapsulation&&(e.encapsulation=T.Emulated),e.styles&&e.styles.length){var O=(e.encapsulation==T.Emulated?function D(e,t,n){var r=new ns;return e.map(function(e){return r.shimCssText(e,t,n)})}(e.styles,"_ngcontent-%COMP%","_nghost-%COMP%"):e.styles).map(function(e){return yt(e)});s.set("styles",ft(O))}else e.encapsulation===T.Emulated&&(e.encapsulation=T.None);return e.encapsulation!==T.Emulated&&s.set("encapsulation",yt(e.encapsulation)),null!==e.animations&&s.set("data",dt([{key:"animation",value:e.animations,quoted:!1}])),null!=E&&E!==A.Default&&s.set("changeDetection",yt(E)),(e.selector||"").replace(/\n/g,""),{expression:pt(yn.defineComponent).callFn([s.toLiteralMap()]),type:dc(e,yn.ComponentDefWithMeta),statements:a}}(a({},n,Tc(n),{selector:n.selector||this.elementSchemaRegistry.getDefaultComponentElementName(),template:o,viewQueries:n.viewQueries.map(Cc),wrapDirectivesAndPipesInClosure:!1,styles:n.styles||[],encapsulation:n.encapsulation,interpolation:i,changeDetection:n.changeDetection,animations:null!=n.animations?new Se(n.animations):null,viewProviders:null!=n.viewProviders?new Se(n.viewProviders):null,relativeContextFilePath:"",i18nUseExternalIds:!0}),r,ic(i)),h=f(r.statements,c.statements);return vi(c.expression,e,t,h)},e}(),bc=Object.keys({useClass:null})[0],xc=Object.keys({useFactory:null})[0],wc=Object.keys({useValue:null})[0],Ec=Object.keys({useExisting:null})[0],Sc=function(e){var t=new Se(e);return{value:t,type:t}};function Cc(e){return a({},e,{predicate:Array.isArray(e.predicate)?e.predicate:new Se(e.predicate),read:e.read?new Se(e.read):null})}function Tc(e){var t=kc(e.inputs||[]),n=kc(e.outputs||[]),r=e.propMetadata,i={},o={},s=function(e){r.hasOwnProperty(e)&&r[e].forEach(function(t){!function n(e){return"Input"===e.ngMetadataName}(t)?function r(e){return"Output"===e.ngMetadataName}(t)&&(o[e]=t.bindingPropertyName||e):i[e]=t.bindingPropertyName?[t.bindingPropertyName,e]:e})};for(var u in r)s(u);return a({},e,{typeSourceSpan:null,type:new Se(e.type),deps:Pc(e.deps),host:function c(e,t){var n=function r(e){var t={},n={},r={};return Object.keys(e).forEach(function(i){var o=e[i],s=i.match(yc);null===s?t[i]=o:null!=s[1]?r[s[1]]=o:null!=s[2]&&(n[s[2]]=o)}),{attributes:t,listeners:n,properties:r}}(e||{}),i=n.attributes,o=n.listeners,s=n.properties,a=function(e){t.hasOwnProperty(e)&&t[e].forEach(function(t){!function n(e){return"HostBinding"===e.ngMetadataName}(t)?function r(e){return"HostListener"===e.ngMetadataName}(t)&&(o[t.eventName||e]=e+"("+(t.args||[]).join(",")+")"):s[t.hostPropertyName||e]=e})};for(var u in t)a(u);return{attributes:i,listeners:o,properties:s}}(e.host,e.propMetadata),inputs:a({},t,i),outputs:a({},n,o),queries:e.queries.map(Cc),providers:null!=e.providers?new Se(e.providers):null})}function Ac(e,t){return e.hasOwnProperty(t)?new Se(e[t]):void 0}function Nc(e){return{token:null===e.token?new Me(null):e.resolved===Fr.Attribute?new Me(e.token):new Se(e.token),resolved:e.resolved,host:e.host,optional:e.optional,self:e.self,skipSelf:e.skipSelf}}function Pc(e){return null==e?null:e.map(Nc)}function kc(e){return e.reduce(function(e,t){var n=h(t.split(",").map(function(e){return e.trim()}),2),r=n[0];return e[r]=n[1]||r,e},{})}new Ft("7.2.8");
/**
* @license
* Copyright Google Inc. All Rights Reserved.
@@ -385,7 +385,7 @@
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
- */var Zc=function(){function e(e,t,n,r){this._resourceLoader=e,this._urlResolver=t,this._htmlParser=n,this._config=r,this._resourceLoaderCache=new Map}return e.prototype.clearCache=function(){this._resourceLoaderCache.clear()},e.prototype.clearCacheFor=function(e){var t=this;if(e.isComponent){var n=e.template;this._resourceLoaderCache.delete(n.templateUrl),n.externalStylesheets.forEach(function(e){t._resourceLoaderCache.delete(e.moduleUrl)})}},e.prototype._fetch=function(e){var t=this._resourceLoaderCache.get(e);return t||(t=this._resourceLoader.get(e),this._resourceLoaderCache.set(e,t)),t},e.prototype.normalizeTemplate=function(e){var t=this;if(Et(e.template)){if(Et(e.templateUrl))throw Nt("'"+Dt(e.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof e.template)throw Nt("The template specified for component "+Dt(e.componentType)+" is not a string")}else{if(!Et(e.templateUrl))throw Nt("No template specified for component "+Dt(e.componentType));if("string"!=typeof e.templateUrl)throw Nt("The templateUrl specified for component "+Dt(e.componentType)+" is not a string")}if(Et(e.preserveWhitespaces)&&"boolean"!=typeof e.preserveWhitespaces)throw Nt("The preserveWhitespaces option for component "+Dt(e.componentType)+" must be a boolean");return Tt(this._preParseTemplate(e),function(n){return t._normalizeTemplateMetadata(e,n)})},e.prototype._preParseTemplate=function(e){var t,n,r=this;return null!=e.template?(t=e.template,n=e.moduleUrl):(n=this._urlResolver.resolve(e.moduleUrl,e.templateUrl),t=this._fetch(n)),Tt(t,function(t){return r._preparseLoadedTemplate(e,t,n)})},e.prototype._preparseLoadedTemplate=function(e,t,n){var r=!!e.template,i=Yr.fromArray(e.interpolation),o=this._htmlParser.parse(t,function s(e,t,n){var r;return r=n.isInline?t.type.reference instanceof Yt?t.type.reference.filePath+"."+t.type.reference.name+".html":rn(e)+"/"+rn(t.type)+".html":n.templateUrl,t.type.reference instanceof Yt?r:function i(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}(r)}({reference:e.ngModuleType},{type:{reference:e.componentType}},{isInline:r,templateUrl:n}),!0,i);if(o.errors.length>0)throw Nt("Template parse errors:\n"+o.errors.join("\n"));var a=this._normalizeStylesheet(new an({styles:e.styles,moduleUrl:e.moduleUrl})),u=new Jc;sa(u,o.rootNodes);var c=this._normalizeStylesheet(new an({styles:u.styles,styleUrls:u.styleUrls,moduleUrl:n}));return{template:t,templateUrl:n,isInline:r,htmlAst:o,styles:a.styles.concat(c.styles),inlineStyleUrls:a.styleUrls.concat(c.styleUrls),styleUrls:this._normalizeStylesheet(new an({styleUrls:e.styleUrls,moduleUrl:e.moduleUrl})).styleUrls,ngContentSelectors:u.ngContentSelectors}},e.prototype._normalizeTemplateMetadata=function(e,t){var n=this;return Tt(this._loadMissingExternalStylesheets(t.styleUrls.concat(t.inlineStyleUrls)),function(r){return n._normalizeLoadedTemplateMetadata(e,t,r)})},e.prototype._normalizeLoadedTemplateMetadata=function(e,t,n){var r=this,i=f(t.styles);this._inlineStyles(t.inlineStyleUrls,n,i);var o=t.styleUrls,s=o.map(function(e){var t=n.get(e),i=f(t.styles);return r._inlineStyles(t.styleUrls,n,i),new an({moduleUrl:e,styles:i})}),a=e.encapsulation;return null==a&&(a=this._config.defaultEncapsulation),a===T.Emulated&&0===i.length&&0===o.length&&(a=T.None),new un({encapsulation:a,template:t.template,templateUrl:t.templateUrl,htmlAst:t.htmlAst,styles:i,styleUrls:o,ngContentSelectors:t.ngContentSelectors,animations:e.animations,interpolation:e.interpolation,isInline:t.isInline,externalStylesheets:s,preserveWhitespaces:Yc(e.preserveWhitespaces,this._config.preserveWhitespaces)})},e.prototype._inlineStyles=function(e,t,n){var r=this;e.forEach(function(e){var i=t.get(e);i.styles.forEach(function(e){return n.push(e)}),r._inlineStyles(i.styleUrls,t,n)})},e.prototype._loadMissingExternalStylesheets=function(e,t){var n,r=this;return void 0===t&&(t=new Map),Tt((n=e.filter(function(e){return!t.has(e)}).map(function(e){return Tt(r._fetch(e),function(n){var i=r._normalizeStylesheet(new an({styles:[n],moduleUrl:e}));return t.set(e,i),r._loadMissingExternalStylesheets(i.styleUrls,t)})})).some(Lt)?Promise.all(n):n,function(e){return t})},e.prototype._normalizeStylesheet=function(e){var t=this,n=e.moduleUrl,r=e.styleUrls.filter(lu).map(function(e){return t._urlResolver.resolve(n,e)}),i=e.styles.map(function(e){var i=function o(e,t,n){var r=[],i=n.replace(fu,"").replace(hu,function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=n[1]||n[2];return lu(o)?(r.push(e.resolve(t,o)),""):n[0]});return new cu(i,r)}(t._urlResolver,n,e);return r.push.apply(r,f(i.styleUrls)),i.style});return new an({styles:i,styleUrls:r,moduleUrl:n})},e}(),Jc=function(){function e(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return e.prototype.visitElement=function(e,t){var n=Su(e);switch(n.type){case pu.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case pu.STYLE:var r="";e.children.forEach(function(e){e instanceof ea&&(r+=e.value)}),this.styles.push(r);break;case pu.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,sa(this,e.children),n.nonBindable&&this.ngNonBindableStackCount--,null},e.prototype.visitExpansion=function(e,t){sa(this,e.cases)},e.prototype.visitExpansionCase=function(e,t){sa(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}(),el=[V,j,F,L],tl=function(){function e(e){this._reflector=e}return e.prototype.isDirective=function(e){var t=this._reflector.annotations(Rt(e));return t&&t.some(nl)},e.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=this._reflector.annotations(Rt(e));if(n){var r=rl(n,nl);if(r){var i=this._reflector.propMetadata(e),o=this._reflector.guards(e);return this._mergeWithPropertyMetadata(r,i,o,e)}}if(t)throw new Error("No Directive annotation found on "+Dt(e));return null},e.prototype._mergeWithPropertyMetadata=function(e,t,n,r){var i=[],o=[],s={},a={};return Object.keys(t).forEach(function(e){var n=rl(t[e],function(e){return W.isTypeOf(e)});n&&i.push(n.bindingPropertyName?e+": "+n.bindingPropertyName:e);var r=rl(t[e],function(e){return Q.isTypeOf(e)});r&&o.push(r.bindingPropertyName?e+": "+r.bindingPropertyName: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>'.");s["["+t.hostPropertyName+"]"]=e}else s["["+e+"]"]=e}),t[e].filter(function(e){return $.isTypeOf(e)}).forEach(function(t){s["("+t.eventName+")"]=e+"("+(t.args||[]).join(",")+")"});var u=rl(t[e],function(e){return el.some(function(t){return t.isTypeOf(e)})});u&&(a[e]=u)}),this._merge(e,i,o,s,a,n,r)},e.prototype._extractPublicName=function(e){return bt(e,[null,e])[1].trim()},e.prototype._dedupeBindings=function(e){for(var t=new Set,n=new Set,r=[],i=e.length-1;i>=0;i--){var o=e[i],s=this._extractPublicName(o);n.add(s),t.has(s)||(t.add(s),r.push(o))}return r.reverse()},e.prototype._merge=function(e,t,n,r,i,o,s){var u=this._dedupeBindings(e.inputs?e.inputs.concat(t):t),c=this._dedupeBindings(e.outputs?e.outputs.concat(n):n),l=e.host?a({},e.host,r):r,p=e.queries?a({},e.queries,i):i;return K.isTypeOf(e)?K({selector:e.selector,inputs:u,outputs:c,host:l,exportAs:e.exportAs,moduleId:e.moduleId,queries:p,changeDetection:e.changeDetection,providers:e.providers,viewProviders:e.viewProviders,entryComponents:e.entryComponents,template:e.template,templateUrl:e.templateUrl,styles:e.styles,styleUrls:e.styleUrls,encapsulation:e.encapsulation,animations:e.animations,interpolation:e.interpolation,preserveWhitespaces:e.preserveWhitespaces}):B({selector:e.selector,inputs:u,outputs:c,host:l,exportAs:e.exportAs,queries:p,providers:e.providers,guards:o})},e}();function nl(e){return B.isTypeOf(e)||K.isTypeOf(e)}function rl(e,t){for(var n=e.length-1;n>=0;n--)if(t(e[n]))return e[n];return null}
+ */var Zc=function(){function e(e,t,n,r){this._resourceLoader=e,this._urlResolver=t,this._htmlParser=n,this._config=r,this._resourceLoaderCache=new Map}return e.prototype.clearCache=function(){this._resourceLoaderCache.clear()},e.prototype.clearCacheFor=function(e){var t=this;if(e.isComponent){var n=e.template;this._resourceLoaderCache.delete(n.templateUrl),n.externalStylesheets.forEach(function(e){t._resourceLoaderCache.delete(e.moduleUrl)})}},e.prototype._fetch=function(e){var t=this._resourceLoaderCache.get(e);return t||(t=this._resourceLoader.get(e),this._resourceLoaderCache.set(e,t)),t},e.prototype.normalizeTemplate=function(e){var t=this;if(Et(e.template)){if(Et(e.templateUrl))throw Nt("'"+Dt(e.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof e.template)throw Nt("The template specified for component "+Dt(e.componentType)+" is not a string")}else{if(!Et(e.templateUrl))throw Nt("No template specified for component "+Dt(e.componentType));if("string"!=typeof e.templateUrl)throw Nt("The templateUrl specified for component "+Dt(e.componentType)+" is not a string")}if(Et(e.preserveWhitespaces)&&"boolean"!=typeof e.preserveWhitespaces)throw Nt("The preserveWhitespaces option for component "+Dt(e.componentType)+" must be a boolean");return Tt(this._preParseTemplate(e),function(n){return t._normalizeTemplateMetadata(e,n)})},e.prototype._preParseTemplate=function(e){var t,n,r=this;return null!=e.template?(t=e.template,n=e.moduleUrl):(n=this._urlResolver.resolve(e.moduleUrl,e.templateUrl),t=this._fetch(n)),Tt(t,function(t){return r._preparseLoadedTemplate(e,t,n)})},e.prototype._preparseLoadedTemplate=function(e,t,n){var r=!!e.template,i=Yr.fromArray(e.interpolation),o=function s(e,t,n){var r;return r=n.isInline?t.type.reference instanceof Yt?t.type.reference.filePath+"."+t.type.reference.name+".html":rn(e)+"/"+rn(t.type)+".html":n.templateUrl,t.type.reference instanceof Yt?r:function i(e){return e.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}(r)}({reference:e.ngModuleType},{type:{reference:e.componentType}},{isInline:r,templateUrl:n}),a=this._htmlParser.parse(t,o,{tokenizeExpansionForms:!0,interpolationConfig:i});if(a.errors.length>0)throw Nt("Template parse errors:\n"+a.errors.join("\n"));var u=this._normalizeStylesheet(new an({styles:e.styles,moduleUrl:e.moduleUrl})),c=new Jc;sa(c,a.rootNodes);var l=this._normalizeStylesheet(new an({styles:c.styles,styleUrls:c.styleUrls,moduleUrl:n}));return{template:t,templateUrl:n,isInline:r,htmlAst:a,styles:u.styles.concat(l.styles),inlineStyleUrls:u.styleUrls.concat(l.styleUrls),styleUrls:this._normalizeStylesheet(new an({styleUrls:e.styleUrls,moduleUrl:e.moduleUrl})).styleUrls,ngContentSelectors:c.ngContentSelectors}},e.prototype._normalizeTemplateMetadata=function(e,t){var n=this;return Tt(this._loadMissingExternalStylesheets(t.styleUrls.concat(t.inlineStyleUrls)),function(r){return n._normalizeLoadedTemplateMetadata(e,t,r)})},e.prototype._normalizeLoadedTemplateMetadata=function(e,t,n){var r=this,i=f(t.styles);this._inlineStyles(t.inlineStyleUrls,n,i);var o=t.styleUrls,s=o.map(function(e){var t=n.get(e),i=f(t.styles);return r._inlineStyles(t.styleUrls,n,i),new an({moduleUrl:e,styles:i})}),a=e.encapsulation;return null==a&&(a=this._config.defaultEncapsulation),a===T.Emulated&&0===i.length&&0===o.length&&(a=T.None),new un({encapsulation:a,template:t.template,templateUrl:t.templateUrl,htmlAst:t.htmlAst,styles:i,styleUrls:o,ngContentSelectors:t.ngContentSelectors,animations:e.animations,interpolation:e.interpolation,isInline:t.isInline,externalStylesheets:s,preserveWhitespaces:Yc(e.preserveWhitespaces,this._config.preserveWhitespaces)})},e.prototype._inlineStyles=function(e,t,n){var r=this;e.forEach(function(e){var i=t.get(e);i.styles.forEach(function(e){return n.push(e)}),r._inlineStyles(i.styleUrls,t,n)})},e.prototype._loadMissingExternalStylesheets=function(e,t){var n,r=this;return void 0===t&&(t=new Map),Tt((n=e.filter(function(e){return!t.has(e)}).map(function(e){return Tt(r._fetch(e),function(n){var i=r._normalizeStylesheet(new an({styles:[n],moduleUrl:e}));return t.set(e,i),r._loadMissingExternalStylesheets(i.styleUrls,t)})})).some(Lt)?Promise.all(n):n,function(e){return t})},e.prototype._normalizeStylesheet=function(e){var t=this,n=e.moduleUrl,r=e.styleUrls.filter(lu).map(function(e){return t._urlResolver.resolve(n,e)}),i=e.styles.map(function(e){var i=function o(e,t,n){var r=[],i=n.replace(fu,"").replace(hu,function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=n[1]||n[2];return lu(o)?(r.push(e.resolve(t,o)),""):n[0]});return new cu(i,r)}(t._urlResolver,n,e);return r.push.apply(r,f(i.styleUrls)),i.style});return new an({styles:i,styleUrls:r,moduleUrl:n})},e}(),Jc=function(){function e(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return e.prototype.visitElement=function(e,t){var n=Su(e);switch(n.type){case pu.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case pu.STYLE:var r="";e.children.forEach(function(e){e instanceof ea&&(r+=e.value)}),this.styles.push(r);break;case pu.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,sa(this,e.children),n.nonBindable&&this.ngNonBindableStackCount--,null},e.prototype.visitExpansion=function(e,t){sa(this,e.cases)},e.prototype.visitExpansionCase=function(e,t){sa(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}(),el=[V,j,F,L],tl=function(){function e(e){this._reflector=e}return e.prototype.isDirective=function(e){var t=this._reflector.annotations(Rt(e));return t&&t.some(nl)},e.prototype.resolve=function(e,t){void 0===t&&(t=!0);var n=this._reflector.annotations(Rt(e));if(n){var r=rl(n,nl);if(r){var i=this._reflector.propMetadata(e),o=this._reflector.guards(e);return this._mergeWithPropertyMetadata(r,i,o,e)}}if(t)throw new Error("No Directive annotation found on "+Dt(e));return null},e.prototype._mergeWithPropertyMetadata=function(e,t,n,r){var i=[],o=[],s={},a={};return Object.keys(t).forEach(function(e){var n=rl(t[e],function(e){return W.isTypeOf(e)});n&&i.push(n.bindingPropertyName?e+": "+n.bindingPropertyName:e);var r=rl(t[e],function(e){return Q.isTypeOf(e)});r&&o.push(r.bindingPropertyName?e+": "+r.bindingPropertyName: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>'.");s["["+t.hostPropertyName+"]"]=e}else s["["+e+"]"]=e}),t[e].filter(function(e){return $.isTypeOf(e)}).forEach(function(t){s["("+t.eventName+")"]=e+"("+(t.args||[]).join(",")+")"});var u=rl(t[e],function(e){return el.some(function(t){return t.isTypeOf(e)})});u&&(a[e]=u)}),this._merge(e,i,o,s,a,n,r)},e.prototype._extractPublicName=function(e){return bt(e,[null,e])[1].trim()},e.prototype._dedupeBindings=function(e){for(var t=new Set,n=new Set,r=[],i=e.length-1;i>=0;i--){var o=e[i],s=this._extractPublicName(o);n.add(s),t.has(s)||(t.add(s),r.push(o))}return r.reverse()},e.prototype._merge=function(e,t,n,r,i,o,s){var u=this._dedupeBindings(e.inputs?e.inputs.concat(t):t),c=this._dedupeBindings(e.outputs?e.outputs.concat(n):n),l=e.host?a({},e.host,r):r,p=e.queries?a({},e.queries,i):i;return K.isTypeOf(e)?K({selector:e.selector,inputs:u,outputs:c,host:l,exportAs:e.exportAs,moduleId:e.moduleId,queries:p,changeDetection:e.changeDetection,providers:e.providers,viewProviders:e.viewProviders,entryComponents:e.entryComponents,template:e.template,templateUrl:e.templateUrl,styles:e.styles,styleUrls:e.styleUrls,encapsulation:e.encapsulation,animations:e.animations,interpolation:e.interpolation,preserveWhitespaces:e.preserveWhitespaces}):B({selector:e.selector,inputs:u,outputs:c,host:l,exportAs:e.exportAs,queries:p,providers:e.providers,guards:o})},e}();function nl(e){return B.isTypeOf(e)||K.isTypeOf(e)}function rl(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.
@@ -413,21 +413,21 @@
*
* 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 vl=function(e){function t(){return e.call(this,dl)||this}return o(t,e),t.prototype.parse=function(t,n,r){return void 0===r&&(r=!1),e.prototype.parse.call(this,t,n,r)},t}(Ta),ml=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.write=function(e,t){var n=new yl,r=[];e.forEach(function(e){var t,i=[];e.sources.forEach(function(e){var t=new Zn("context-group",{purpose:"location"});t.children.push(new er(10),new Zn("context",{"context-type":"sourcefile"},[new Jn(e.filePath)]),new er(10),new Zn("context",{"context-type":"linenumber"},[new Jn(""+e.startLine)]),new er(8)),i.push(new er(8),t)});var o=new Zn("trans-unit",{id:e.id,datatype:"html"});(t=o.children).push.apply(t,f([new er(8),new Zn("source",{},n.serialize(e.nodes))],i)),e.description&&o.children.push(new er(8),new Zn("note",{priority:"1",from:"description"},[new Jn(e.description)])),e.meaning&&o.children.push(new er(8),new Zn("note",{priority:"1",from:"meaning"},[new Jn(e.meaning)])),o.children.push(new er(6)),r.push(new er(6),o)});var i=new Zn("body",{},f(r,[new er(4)])),o=new Zn("file",{"source-language":t||"en",datatype:"plaintext",original:"ng2.template"},[new er(4),i,new er(2)]),s=new Zn("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new er(2),o,new er]);return $n([new Xn({version:"1.0",encoding:"UTF-8"}),new er,s,new er])},t.prototype.load=function(e,t){var n=(new gl).parse(e,t),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new _l;if(Object.keys(i).forEach(function(e){var n=a.convert(i[e],t),r=n.i18nNodes;o.push.apply(o,f(n.errors)),s[e]=r}),o.length)throw new Error("xliff parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},t.prototype.digest=function(e){return An(e)},t}(Wn),yl=function(){function e(){}return e.prototype.visitText=function(e,t){return[new Jn(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,f(e.visit(n)))}),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new Jn("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(t){r.push.apply(r,f([new Jn(t+" {")],e.cases[t].visit(n),[new Jn("} ")]))}),r.push(new Jn("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=function r(e){switch(e.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+e}}
+ */var vl=function(e){function t(){return e.call(this,dl)||this}return o(t,e),t.prototype.parse=function(t,n,r){return e.prototype.parse.call(this,t,n,r)},t}(Ta),ml=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.write=function(e,t){var n=new yl,r=[];e.forEach(function(e){var t,i=[];e.sources.forEach(function(e){var t=new Zn("context-group",{purpose:"location"});t.children.push(new er(10),new Zn("context",{"context-type":"sourcefile"},[new Jn(e.filePath)]),new er(10),new Zn("context",{"context-type":"linenumber"},[new Jn(""+e.startLine)]),new er(8)),i.push(new er(8),t)});var o=new Zn("trans-unit",{id:e.id,datatype:"html"});(t=o.children).push.apply(t,f([new er(8),new Zn("source",{},n.serialize(e.nodes))],i)),e.description&&o.children.push(new er(8),new Zn("note",{priority:"1",from:"description"},[new Jn(e.description)])),e.meaning&&o.children.push(new er(8),new Zn("note",{priority:"1",from:"meaning"},[new Jn(e.meaning)])),o.children.push(new er(6)),r.push(new er(6),o)});var i=new Zn("body",{},f(r,[new er(4)])),o=new Zn("file",{"source-language":t||"en",datatype:"plaintext",original:"ng2.template"},[new er(4),i,new er(2)]),s=new Zn("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new er(2),o,new er]);return $n([new Xn({version:"1.0",encoding:"UTF-8"}),new er,s,new er])},t.prototype.load=function(e,t){var n=(new gl).parse(e,t),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new _l;if(Object.keys(i).forEach(function(e){var n=a.convert(i[e],t),r=n.i18nNodes;o.push.apply(o,f(n.errors)),s[e]=r}),o.length)throw new Error("xliff parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},t.prototype.digest=function(e){return An(e)},t}(Wn),yl=function(){function e(){}return e.prototype.visitText=function(e,t){return[new Jn(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,f(e.visit(n)))}),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new Jn("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(t){r.push.apply(r,f([new Jn(t+" {")],e.cases[t].visit(n),[new Jn("} ")]))}),r.push(new Jn("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=function r(e){switch(e.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+e}}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
- */(e.tag);if(e.isVoid)return[new Zn("x",{id:e.startName,ctype:n,"equiv-text":"<"+e.tag+"/>"})];var i=new Zn("x",{id:e.startName,ctype:n,"equiv-text":"<"+e.tag+">"}),o=new Zn("x",{id:e.closeName,ctype:n,"equiv-text":"</"+e.tag+">"});return f([i],this.serialize(e.children),[o])},e.prototype.visitPlaceholder=function(e,t){return[new Zn("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 Zn("x",{id:e.name,"equiv-text":n})]},e.prototype.serialize=function(e){var t=this;return[].concat.apply([],f(e.map(function(e){return e.visit(t)})))},e}(),gl=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._unitMlString=null,this._msgIdToHtml={};var n=(new vl).parse(e,t,!1);return this._errors=n.errors,sa(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):(sa(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":break;case"target":var i=e.startSourceSpan.start.file.content.slice(e.startSourceSpan.end.offset,e.endSourceSpan.start.offset);this._unitMlString=i;break;case"file":var o=e.attrs.find(function(e){return"target-language"===e.name});o&&(this._locale=o.value),sa(this,e.children,null);break;default:sa(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 ol(e.sourceSpan,t))},e}(),_l=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new vl).parse(e,t,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],f(sa(this,n.rootNodes))),errors:this._errors}},e.prototype.visitText=function(e,t){return new _n(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 En("",n.value,e.sourceSpan):(this._addError(e,'<x> misses the "id" attribute'),null)}return"mrk"===e.name?[].concat.apply([],f(sa(this,e.children))):(this._addError(e,"Unexpected tag"),null)},e.prototype.visitExpansion=function(e,t){var n={};return sa(this,e.cases).forEach(function(t){n[t.value]=new bn(t.nodes,e.sourceSpan)}),new xn(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:sa(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 ol(e.sourceSpan,t))},e}(),bl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.write=function(e,t){var n=new xl,r=[];e.forEach(function(e){var t=new Zn("unit",{id:e.id}),i=new Zn("notes");(e.description||e.meaning)&&(e.description&&i.children.push(new er(8),new Zn("note",{category:"description"},[new Jn(e.description)])),e.meaning&&i.children.push(new er(8),new Zn("note",{category:"meaning"},[new Jn(e.meaning)]))),e.sources.forEach(function(e){i.children.push(new er(8),new Zn("note",{category:"location"},[new Jn(e.filePath+":"+e.startLine+(e.endLine!==e.startLine?","+e.endLine:""))]))}),i.children.push(new er(6)),t.children.push(new er(6),i);var o=new Zn("segment");o.children.push(new er(8),new Zn("source",{},n.serialize(e.nodes)),new er(6)),t.children.push(new er(6),o,new er(4)),r.push(new er(4),t)});var i=new Zn("file",{original:"ng.template",id:"ngi18n"},f(r,[new er(2)])),o=new Zn("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:t||"en"},[new er(2),i,new er]);return $n([new Xn({version:"1.0",encoding:"UTF-8"}),new er,o,new er])},t.prototype.load=function(e,t){var n=(new wl).parse(e,t),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new El;if(Object.keys(i).forEach(function(e){var n=a.convert(i[e],t),r=n.i18nNodes;o.push.apply(o,f(n.errors)),s[e]=r}),o.length)throw new Error("xliff2 parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},t.prototype.digest=function(e){return Nn(e)},t}(Wn),xl=function(){function e(){}return e.prototype.visitText=function(e,t){return[new Jn(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,f(e.visit(n)))}),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new Jn("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(t){r.push.apply(r,f([new Jn(t+" {")],e.cases[t].visit(n),[new Jn("} ")]))}),r.push(new Jn("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=this,r=function i(e){switch(e.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}}
+ */(e.tag);if(e.isVoid)return[new Zn("x",{id:e.startName,ctype:n,"equiv-text":"<"+e.tag+"/>"})];var i=new Zn("x",{id:e.startName,ctype:n,"equiv-text":"<"+e.tag+">"}),o=new Zn("x",{id:e.closeName,ctype:n,"equiv-text":"</"+e.tag+">"});return f([i],this.serialize(e.children),[o])},e.prototype.visitPlaceholder=function(e,t){return[new Zn("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 Zn("x",{id:e.name,"equiv-text":n})]},e.prototype.serialize=function(e){var t=this;return[].concat.apply([],f(e.map(function(e){return e.visit(t)})))},e}(),gl=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._unitMlString=null,this._msgIdToHtml={};var n=(new vl).parse(e,t);return this._errors=n.errors,sa(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):(sa(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":break;case"target":var i=e.startSourceSpan.start.file.content.slice(e.startSourceSpan.end.offset,e.endSourceSpan.start.offset);this._unitMlString=i;break;case"file":var o=e.attrs.find(function(e){return"target-language"===e.name});o&&(this._locale=o.value),sa(this,e.children,null);break;default:sa(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 ol(e.sourceSpan,t))},e}(),_l=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new vl).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],f(sa(this,n.rootNodes))),errors:this._errors}},e.prototype.visitText=function(e,t){return new _n(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 En("",n.value,e.sourceSpan):(this._addError(e,'<x> misses the "id" attribute'),null)}return"mrk"===e.name?[].concat.apply([],f(sa(this,e.children))):(this._addError(e,"Unexpected tag"),null)},e.prototype.visitExpansion=function(e,t){var n={};return sa(this,e.cases).forEach(function(t){n[t.value]=new bn(t.nodes,e.sourceSpan)}),new xn(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:sa(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 ol(e.sourceSpan,t))},e}(),bl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.write=function(e,t){var n=new xl,r=[];e.forEach(function(e){var t=new Zn("unit",{id:e.id}),i=new Zn("notes");(e.description||e.meaning)&&(e.description&&i.children.push(new er(8),new Zn("note",{category:"description"},[new Jn(e.description)])),e.meaning&&i.children.push(new er(8),new Zn("note",{category:"meaning"},[new Jn(e.meaning)]))),e.sources.forEach(function(e){i.children.push(new er(8),new Zn("note",{category:"location"},[new Jn(e.filePath+":"+e.startLine+(e.endLine!==e.startLine?","+e.endLine:""))]))}),i.children.push(new er(6)),t.children.push(new er(6),i);var o=new Zn("segment");o.children.push(new er(8),new Zn("source",{},n.serialize(e.nodes)),new er(6)),t.children.push(new er(6),o,new er(4)),r.push(new er(4),t)});var i=new Zn("file",{original:"ng.template",id:"ngi18n"},f(r,[new er(2)])),o=new Zn("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:t||"en"},[new er(2),i,new er]);return $n([new Xn({version:"1.0",encoding:"UTF-8"}),new er,o,new er])},t.prototype.load=function(e,t){var n=(new wl).parse(e,t),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new El;if(Object.keys(i).forEach(function(e){var n=a.convert(i[e],t),r=n.i18nNodes;o.push.apply(o,f(n.errors)),s[e]=r}),o.length)throw new Error("xliff2 parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},t.prototype.digest=function(e){return Nn(e)},t}(Wn),xl=function(){function e(){}return e.prototype.visitText=function(e,t){return[new Jn(e.value)]},e.prototype.visitContainer=function(e,t){var n=this,r=[];return e.children.forEach(function(e){return r.push.apply(r,f(e.visit(n)))}),r},e.prototype.visitIcu=function(e,t){var n=this,r=[new Jn("{"+e.expressionPlaceholder+", "+e.type+", ")];return Object.keys(e.cases).forEach(function(t){r.push.apply(r,f([new Jn(t+" {")],e.cases[t].visit(n),[new Jn("} ")]))}),r.push(new Jn("}")),r},e.prototype.visitTagPlaceholder=function(e,t){var n=this,r=function i(e){switch(e.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
- */(e.tag);if(e.isVoid)return[new Zn("ph",{id:(this._nextPlaceholderId++).toString(),equiv:e.startName,type:r,disp:"<"+e.tag+"/>"})];var o=new Zn("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:e.startName,equivEnd:e.closeName,type:r,dispStart:"<"+e.tag+">",dispEnd:"</"+e.tag+">"}),s=[].concat.apply([],f(e.children.map(function(e){return e.visit(n)})));return s.length?s.forEach(function(e){return o.children.push(e)}):o.children.push(new Jn("")),[o]},e.prototype.visitPlaceholder=function(e,t){var n=(this._nextPlaceholderId++).toString();return[new Zn("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 Zn("ph",{id:r,equiv:e.name,disp:"{"+e.value.expression+", "+e.value.type+", "+n+"}"})]},e.prototype.serialize=function(e){var t=this;return this._nextPlaceholderId=0,[].concat.apply([],f(e.map(function(e){return e.visit(t)})))},e}(),wl=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._unitMlString=null,this._msgIdToHtml={};var n=(new vl).parse(e,t,!1);return this._errors=n.errors,sa(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):(sa(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.start.file.content.slice(e.startSourceSpan.end.offset,e.endSourceSpan.start.offset);this._unitMlString=i;break;case"xliff":var o=e.attrs.find(function(e){return"trgLang"===e.name});o&&(this._locale=o.value);var s=e.attrs.find(function(e){return"version"===e.name});if(s){var a=s.value;"2.0"!==a?this._addError(e,"The XLIFF file version "+a+" is not compatible with XLIFF 2.0 serializer"):sa(this,e.children,null)}break;default:sa(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 ol(e.sourceSpan,t))},e}(),El=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new vl).parse(e,t,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],f(sa(this,n.rootNodes))),errors:this._errors}},e.prototype.visitText=function(e,t){return new _n(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 En("",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}),o=e.attrs.find(function(e){return"equivEnd"===e.name});if(i){if(o){var s=o.value,a=[];return a.concat.apply(a,f([new En("",i.value,e.sourceSpan)],e.children.map(function(e){return e.visit(n,null)}),[new En("",s,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([],f(sa(this,e.children)));default:this._addError(e,"Unexpected tag")}return null},e.prototype.visitExpansion=function(e,t){var n={};return sa(this,e.cases).forEach(function(t){n[t.value]=new bn(t.nodes,e.sourceSpan)}),new xn(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:[].concat.apply([],f(sa(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 ol(e.sourceSpan,t))},e}(),Sl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.write=function(e,t){throw new Error("Unsupported")},t.prototype.load=function(e,t){var n=(new Cl).parse(e,t),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new Tl;if(Object.keys(i).forEach(function(e){!function n(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var n=r();return Object.defineProperty(e,t,{enumerable:!0,value:n}),n},set:function(e){throw new Error("Could not overwrite an XTB translation")}})}(s,e,function(){var n=a.convert(i[e],t),r=n.i18nNodes,o=n.errors;if(o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return r})}),o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},t.prototype.digest=function(e){return or(e)},t.prototype.createNameMapper=function(e){return new Qn(e,ar)},t}(Wn),Cl=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._bundleDepth=0,this._msgIdToHtml={};var n=(new vl).parse(e,t,!1);return this._errors=n.errors,sa(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),sa(this,e.children,null),this._bundleDepth--;break;case"translation":var r=e.attrs.find(function(e){return"id"===e.name});if(r){var i=r.value;if(this._msgIdToHtml.hasOwnProperty(i))this._addError(e,"Duplicated translations for msg "+i);else{var o=e.startSourceSpan.start.file.content.slice(e.startSourceSpan.end.offset,e.endSourceSpan.start.offset);this._msgIdToHtml[i]=o}}else this._addError(e,'<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 ol(e.sourceSpan,t))},e}(),Tl=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new vl).parse(e,t,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:sa(this,n.rootNodes),errors:this._errors}},e.prototype.visitText=function(e,t){return new _n(e.value,e.sourceSpan)},e.prototype.visitExpansion=function(e,t){var n={};return sa(this,e.cases).forEach(function(t){n[t.value]=new bn(t.nodes,e.sourceSpan)}),new xn(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:sa(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 En("",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 ol(e.sourceSpan,t))},e}(),Al=function(){function e(e,t,n,r,i,o){void 0===e&&(e={}),void 0===i&&(i=q.Warning),this._i18nNodesByMsgId=e,this.digest=n,this.mapperFactory=r,this._i18nToHtml=new Nl(e,t,n,r,i,o)}return e.load=function(t,n,r,i,o){var s=r.load(t,n);return new e(s.i18nNodesByMsgId,s.locale,function(e){return r.digest(e)},function(e){return r.createNameMapper(e)},i,o)},e.prototype.get=function(e){var t=this._i18nToHtml.convert(e);if(t.errors.length)throw new Error(t.errors.join("\n"));return t.nodes},e.prototype.has=function(e){return this.digest(e)in this._i18nNodesByMsgId},e}(),Nl=function(){function e(e,t,n,r,i,o){void 0===e&&(e={}),this._i18nNodesByMsgId=e,this._locale=t,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=i,this._console=o,this._contextStack=[],this._errors=[]}return e.prototype.convert=function(e){this._contextStack.length=0,this._errors.length=0;var t=this._convertToText(e),n=e.nodes[0].sourceSpan.start.file.url,r=(new Pa).parse(t,n,!0);return{nodes:r.rootNodes,errors:f(this._errors,r.errors)}},e.prototype.visitText=function(e,t){return nr(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;this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=e,this._i18nNodesByMsgId.hasOwnProperty(r)?(t=this._i18nNodesByMsgId[r],this._mapper=function(e){return i?i.toInternalName(e):e}):(this._missingTranslationStrategy===q.Error?this._addError(e.nodes[0],'Missing translation for message "'+r+'"'+(this._locale?' for locale "'+this._locale+'"':"")):this._console&&this._missingTranslationStrategy===q.Warning&&this._console.warn('Missing translation for message "'+r+'"'+(this._locale?' for locale "'+this._locale+'"':"")),t=e.nodes,this._mapper=function(e){return e});var o=t.map(function(e){return e.visit(n)}).join(""),s=this._contextStack.pop();return this._srcMsg=s.msg,this._mapper=s.mapper,o},e.prototype._addError=function(e,t){this._errors.push(new ol(e.sourceSpan,t))},e}(),Pl=function(){function e(e,t,n,r,i){if(void 0===r&&(r=q.Warning),this._htmlParser=e,t){var o=function s(e){switch(e=(e||"xlf").toLowerCase()){case"xmb":return new rr;case"xtb":return new Sl;case"xliff2":case"xlf2":return new bl;case"xliff":case"xlf":default:return new ml}}
+ */(e.tag);if(e.isVoid)return[new Zn("ph",{id:(this._nextPlaceholderId++).toString(),equiv:e.startName,type:r,disp:"<"+e.tag+"/>"})];var o=new Zn("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:e.startName,equivEnd:e.closeName,type:r,dispStart:"<"+e.tag+">",dispEnd:"</"+e.tag+">"}),s=[].concat.apply([],f(e.children.map(function(e){return e.visit(n)})));return s.length?s.forEach(function(e){return o.children.push(e)}):o.children.push(new Jn("")),[o]},e.prototype.visitPlaceholder=function(e,t){var n=(this._nextPlaceholderId++).toString();return[new Zn("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 Zn("ph",{id:r,equiv:e.name,disp:"{"+e.value.expression+", "+e.value.type+", "+n+"}"})]},e.prototype.serialize=function(e){var t=this;return this._nextPlaceholderId=0,[].concat.apply([],f(e.map(function(e){return e.visit(t)})))},e}(),wl=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._unitMlString=null,this._msgIdToHtml={};var n=(new vl).parse(e,t);return this._errors=n.errors,sa(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):(sa(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.start.file.content.slice(e.startSourceSpan.end.offset,e.endSourceSpan.start.offset);this._unitMlString=i;break;case"xliff":var o=e.attrs.find(function(e){return"trgLang"===e.name});o&&(this._locale=o.value);var s=e.attrs.find(function(e){return"version"===e.name});if(s){var a=s.value;"2.0"!==a?this._addError(e,"The XLIFF file version "+a+" is not compatible with XLIFF 2.0 serializer"):sa(this,e.children,null)}break;default:sa(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 ol(e.sourceSpan,t))},e}(),El=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new vl).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],f(sa(this,n.rootNodes))),errors:this._errors}},e.prototype.visitText=function(e,t){return new _n(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 En("",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}),o=e.attrs.find(function(e){return"equivEnd"===e.name});if(i){if(o){var s=o.value,a=[];return a.concat.apply(a,f([new En("",i.value,e.sourceSpan)],e.children.map(function(e){return e.visit(n,null)}),[new En("",s,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([],f(sa(this,e.children)));default:this._addError(e,"Unexpected tag")}return null},e.prototype.visitExpansion=function(e,t){var n={};return sa(this,e.cases).forEach(function(t){n[t.value]=new bn(t.nodes,e.sourceSpan)}),new xn(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:[].concat.apply([],f(sa(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 ol(e.sourceSpan,t))},e}(),Sl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.write=function(e,t){throw new Error("Unsupported")},t.prototype.load=function(e,t){var n=(new Cl).parse(e,t),r=n.locale,i=n.msgIdToHtml,o=n.errors,s={},a=new Tl;if(Object.keys(i).forEach(function(e){!function n(e,t,r){Object.defineProperty(e,t,{configurable:!0,enumerable:!0,get:function(){var n=r();return Object.defineProperty(e,t,{enumerable:!0,value:n}),n},set:function(e){throw new Error("Could not overwrite an XTB translation")}})}(s,e,function(){var n=a.convert(i[e],t),r=n.i18nNodes,o=n.errors;if(o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return r})}),o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:s}},t.prototype.digest=function(e){return or(e)},t.prototype.createNameMapper=function(e){return new Qn(e,ar)},t}(Wn),Cl=function(){function e(){this._locale=null}return e.prototype.parse=function(e,t){this._bundleDepth=0,this._msgIdToHtml={};var n=(new vl).parse(e,t);return this._errors=n.errors,sa(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),sa(this,e.children,null),this._bundleDepth--;break;case"translation":var r=e.attrs.find(function(e){return"id"===e.name});if(r){var i=r.value;if(this._msgIdToHtml.hasOwnProperty(i))this._addError(e,"Duplicated translations for msg "+i);else{var o=e.startSourceSpan.start.file.content.slice(e.startSourceSpan.end.offset,e.endSourceSpan.start.offset);this._msgIdToHtml[i]=o}}else this._addError(e,'<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 ol(e.sourceSpan,t))},e}(),Tl=function(){function e(){}return e.prototype.convert=function(e,t){var n=(new vl).parse(e,t,{tokenizeExpansionForms:!0});return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:sa(this,n.rootNodes),errors:this._errors}},e.prototype.visitText=function(e,t){return new _n(e.value,e.sourceSpan)},e.prototype.visitExpansion=function(e,t){var n={};return sa(this,e.cases).forEach(function(t){n[t.value]=new bn(t.nodes,e.sourceSpan)}),new xn(e.switchValue,e.type,n,e.sourceSpan)},e.prototype.visitExpansionCase=function(e,t){return{value:e.value,nodes:sa(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 En("",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 ol(e.sourceSpan,t))},e}(),Al=function(){function e(e,t,n,r,i,o){void 0===e&&(e={}),void 0===i&&(i=q.Warning),this._i18nNodesByMsgId=e,this.digest=n,this.mapperFactory=r,this._i18nToHtml=new Nl(e,t,n,r,i,o)}return e.load=function(t,n,r,i,o){var s=r.load(t,n);return new e(s.i18nNodesByMsgId,s.locale,function(e){return r.digest(e)},function(e){return r.createNameMapper(e)},i,o)},e.prototype.get=function(e){var t=this._i18nToHtml.convert(e);if(t.errors.length)throw new Error(t.errors.join("\n"));return t.nodes},e.prototype.has=function(e){return this.digest(e)in this._i18nNodesByMsgId},e}(),Nl=function(){function e(e,t,n,r,i,o){void 0===e&&(e={}),this._i18nNodesByMsgId=e,this._locale=t,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=i,this._console=o,this._contextStack=[],this._errors=[]}return e.prototype.convert=function(e){this._contextStack.length=0,this._errors.length=0;var t=this._convertToText(e),n=e.nodes[0].sourceSpan.start.file.url,r=(new Pa).parse(t,n,{tokenizeExpansionForms:!0});return{nodes:r.rootNodes,errors:f(this._errors,r.errors)}},e.prototype.visitText=function(e,t){return nr(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;this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=e,this._i18nNodesByMsgId.hasOwnProperty(r)?(t=this._i18nNodesByMsgId[r],this._mapper=function(e){return i?i.toInternalName(e):e}):(this._missingTranslationStrategy===q.Error?this._addError(e.nodes[0],'Missing translation for message "'+r+'"'+(this._locale?' for locale "'+this._locale+'"':"")):this._console&&this._missingTranslationStrategy===q.Warning&&this._console.warn('Missing translation for message "'+r+'"'+(this._locale?' for locale "'+this._locale+'"':"")),t=e.nodes,this._mapper=function(e){return e});var o=t.map(function(e){return e.visit(n)}).join(""),s=this._contextStack.pop();return this._srcMsg=s.msg,this._mapper=s.mapper,o},e.prototype._addError=function(e,t){this._errors.push(new ol(e.sourceSpan,t))},e}(),Pl=function(){function e(e,t,n,r,i){if(void 0===r&&(r=q.Warning),this._htmlParser=e,t){var o=function s(e){switch(e=(e||"xlf").toLowerCase()){case"xmb":return new rr;case"xtb":return new Sl;case"xliff2":case"xlf2":return new bl;case"xliff":case"xlf":default:return new ml}}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
@@ -448,7 +448,7 @@
*
* 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=Al.load(t,"i18n",o,r,i)}else this._translationBundle=new Al({},null,An,void 0,r,i)}return e.prototype.parse=function(e,t,n,r){void 0===n&&(n=!1),void 0===r&&(r=Zr);var i=this._htmlParser.parse(e,t,n,r);return i.errors.length?new Ca(i.rootNodes,i.errors):function o(e,t,n,r,i){return new pl(r,i).merge(e,t,n)}(i.rootNodes,this._translationBundle,r,[],{})},e}(),kl=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,Il=/\.ngfactory\.|\.ngsummary\./,Ml=/\.ngsummary\./,Ol=/NgSummary$/;
+ */(n);this._translationBundle=Al.load(t,"i18n",o,r,i)}else this._translationBundle=new Al({},null,An,void 0,r,i)}return e.prototype.parse=function(e,t,n){void 0===n&&(n={});var r=n.interpolationConfig||Zr,i=this._htmlParser.parse(e,t,a({interpolationConfig:r},n));return i.errors.length?new Ca(i.rootNodes,i.errors):function o(e,t,n,r,i){return new pl(r,i).merge(e,t,n)}(i.rootNodes,this._translationBundle,r,[],{})},e}(),kl=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,Il=/\.ngfactory\.|\.ngsummary\./,Ml=/\.ngsummary\./,Ol=/NgSummary$/;
/**
* @license
* Copyright Google Inc. All Rights Reserved.
@@ -497,7 +497,7 @@
*
* 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}(),np=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,rp="class";function ip(){return Zl||(Zl=P.parse("*")[0]),Zl}var op=function(e){function t(t,n,r){return e.call(this,n,t,r)||this}return o(t,e),t}(ts),sp=function sp(e,t,n){this.templateAst=e,this.usedPipes=t,this.errors=n},ap=function(){function e(e,t,n,r,i,o,s){this._config=e,this._reflector=t,this._exprParser=n,this._schemaRegistry=r,this._htmlParser=i,this._console=o,this.transforms=s}return Object.defineProperty(e.prototype,"expressionParser",{get:function(){return this._exprParser},enumerable:!0,configurable:!0}),e.prototype.parse=function(e,t,n,r,i,o,s){var a=this.tryParse(e,t,n,r,i,o,s),u=a.errors.filter(function(e){return e.level===Yo.WARNING}),c=a.errors.filter(function(e){return e.level===Yo.ERROR});if(u.length>0&&this._console.warn("Template parse warnings:\n"+u.join("\n")),c.length>0)throw Nt("Template parse errors:\n"+c.join("\n"),c);return{template:a.templateAst,pipes:a.usedPipes}},e.prototype.tryParse=function(e,t,n,r,i,o,s){var a="string"==typeof t?this._htmlParser.parse(t,o,!0,this.getInterpolationConfig(e)):t;return s||(a=function u(e){return new Ca(sa(new La,e.rootNodes),e.errors)}
+ */(e,this.errors)},e.prototype.visitExpansionCase=function(e,t){throw new Error("Should not be reached")},e}(),np=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,rp="class";function ip(){return Zl||(Zl=P.parse("*")[0]),Zl}var op=function(e){function t(t,n,r){return e.call(this,n,t,r)||this}return o(t,e),t}(ts),sp=function sp(e,t,n){this.templateAst=e,this.usedPipes=t,this.errors=n},ap=function(){function e(e,t,n,r,i,o,s){this._config=e,this._reflector=t,this._exprParser=n,this._schemaRegistry=r,this._htmlParser=i,this._console=o,this.transforms=s}return Object.defineProperty(e.prototype,"expressionParser",{get:function(){return this._exprParser},enumerable:!0,configurable:!0}),e.prototype.parse=function(e,t,n,r,i,o,s){var a=this.tryParse(e,t,n,r,i,o,s),u=a.errors.filter(function(e){return e.level===Yo.WARNING}),c=a.errors.filter(function(e){return e.level===Yo.ERROR});if(u.length>0&&this._console.warn("Template parse warnings:\n"+u.join("\n")),c.length>0)throw Nt("Template parse errors:\n"+c.join("\n"),c);return{template:a.templateAst,pipes:a.usedPipes}},e.prototype.tryParse=function(e,t,n,r,i,o,s){var a="string"==typeof t?this._htmlParser.parse(t,o,{tokenizeExpansionForms:!0,interpolationConfig:this.getInterpolationConfig(e)}):t;return s||(a=function u(e){return new Ca(sa(new La,e.rootNodes),e.errors)}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
@@ -793,7 +793,7 @@
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
- */(i,o)))}return function a(e){var t,n;if(e){var r=[],i=new Map;try{for(var o=p(e),s=o.next();!s.done;s=o.next()){var a=s.value,u=a.span,c=i.get(u.start);c||(c=new Set,i.set(u.start,c)),c.has(u.end)||(c.add(u.end),r.push(a))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}}(t)},e.prototype.getPipesAt=function(e,t){var n=this.getTemplateAstAtPosition(e,t);return n?n.pipes:[]},e.prototype.getCompletionsAt=function(e,t){var n=this.getTemplateAstAtPosition(e,t);if(n)return function r(e){var t=void 0,n=e.template;if(null!=e.position){var r=e.position-n.span.start,i=ca(e.htmlAst,r),o=i.tail;if(i.empty||!o)t=jf(e);else{var a=r-o.sourceSpan.start.offset;o.visit({visitElement:function(n){var o=hf(n.sourceSpan);r<=o.start+n.name.length+1?t=jf(e):r<o.end&&(t=Lf(e,i))},visitAttribute:function(n){n.valueSpan&&ff(r,hf(n.valueSpan))?n.valueSpan&&ff(r,hf(n.valueSpan))&&(t=function o(e,t,n){var r=bf(e.templateAst,t),i=r.tail,o=_f(e);if(i){var s=new Bf(e,t,n,function(){return uh(o,r,!1)});if(i.visit(s,null),!s.result||!s.result.length){var a=bf(e.templateAst,t,!0);if(a.tail){var u=new Bf(e,t,n,function(){return uh(o,a,!1)});return a.tail.visit(u,null),u.result}}return s.result}}(e,r,n)):t=Lf(e,i)},visitText:function(o){if(t=function c(e,t){for(var n,r=/&[A-Za-z]*;?(?!\d)/g,i=void 0;n=r.exec(e);)if(t>=n.index&&t<n.index+n[0].length){i=Object.keys(b).map(function(e){return{kind:"entity",name:"&"+e+";",sort:e}});break}return i}(function u(e,t){return e.source.substring(t.start,t.end)}(n,hf(o)),a))return t;if(t=function l(e,t){var n=bf(e.templateAst,t),r=n.tail;if(r){var i=new Bf(e,t,void 0,function(){return uh(_f(e),n,!1)});return r.visit(i,null),gf(i.result)}}(e,r))return t;var p=i.first(ia);p?C(p.name).contentType===s.PARSABLE_DATA&&((t=Vf(e,i))||(t=jf(e))):(t=Vf(e,i))||(t=jf(e))},visitComment:function(e){},visitExpansion:function(e){},visitExpansionCase:function(e){}},null)}}return t}(n)},e.prototype.getDefinitionAt=function(e,t){var n=this.getTemplateAstAtPosition(e,t);if(n)return function r(e){var t=Uf(e);return t&&t.symbol.definition}(n)},e.prototype.getHoverAt=function(e,t){var n=this.getTemplateAstAtPosition(e,t);if(n)return function r(e){var t=Uf(e);if(t)return{text:function n(e){var t=[{text:e.kind},{text:" "},{text:e.name,language:e.language}],n=e.container;return n&&t.push({text:" of "},{text:n.name,language:n.language}),t}(t.symbol),span:t.span}}(n)},e.prototype.getTemplateAstAtPosition=function(e,t){var n=this.host.getTemplateAt(e,t);if(n){var r=this.getTemplateAst(n,e);if(r&&r.htmlAst&&r.templateAst&&r.directive&&r.directives&&r.pipes&&r.expressionParser)return{position:t,fileName:e,template:n,htmlAst:r.htmlAst,directive:r.directive,directives:r.directives,pipes:r.pipes,templateAst:r.templateAst,expressionParser:r.expressionParser}}},e.prototype.getTemplateAst=function(e,t){var n=this,r=void 0;try{var i=this.metadataResolver.getNonNormalizedDirectiveMetadata(e.type),o=i&&i.metadata;if(o){var s=new Pa,a=new Pl(s),u=new Xs(new js),c=new Xc,l=new ap(c,this.host.resolver.getReflector(),u,new za,a,null,[]),h=a.parse(e.source,"",!0),f=this.host.getAnalyzedModules(),d=f.ngModuleByPipeOrDirective.get(e.type);if(d||(d=function v(e){var t,n,r=void 0,i=0;try{for(var o=p(e.ngModules),s=o.next();!s.done;s=o.next()){var a=s.value,u=a.transitiveModule.directives.length;u>i&&(r=a,i=u)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}
+ */(i,o)))}return function a(e){var t,n;if(e){var r=[],i=new Map;try{for(var o=p(e),s=o.next();!s.done;s=o.next()){var a=s.value,u=a.span,c=i.get(u.start);c||(c=new Set,i.set(u.start,c)),c.has(u.end)||(c.add(u.end),r.push(a))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}}(t)},e.prototype.getPipesAt=function(e,t){var n=this.getTemplateAstAtPosition(e,t);return n?n.pipes:[]},e.prototype.getCompletionsAt=function(e,t){var n=this.getTemplateAstAtPosition(e,t);if(n)return function r(e){var t=void 0,n=e.template;if(null!=e.position){var r=e.position-n.span.start,i=ca(e.htmlAst,r),o=i.tail;if(i.empty||!o)t=jf(e);else{var a=r-o.sourceSpan.start.offset;o.visit({visitElement:function(n){var o=hf(n.sourceSpan);r<=o.start+n.name.length+1?t=jf(e):r<o.end&&(t=Lf(e,i))},visitAttribute:function(n){n.valueSpan&&ff(r,hf(n.valueSpan))?n.valueSpan&&ff(r,hf(n.valueSpan))&&(t=function o(e,t,n){var r=bf(e.templateAst,t),i=r.tail,o=_f(e);if(i){var s=new Bf(e,t,n,function(){return uh(o,r,!1)});if(i.visit(s,null),!s.result||!s.result.length){var a=bf(e.templateAst,t,!0);if(a.tail){var u=new Bf(e,t,n,function(){return uh(o,a,!1)});return a.tail.visit(u,null),u.result}}return s.result}}(e,r,n)):t=Lf(e,i)},visitText:function(o){if(t=function c(e,t){for(var n,r=/&[A-Za-z]*;?(?!\d)/g,i=void 0;n=r.exec(e);)if(t>=n.index&&t<n.index+n[0].length){i=Object.keys(b).map(function(e){return{kind:"entity",name:"&"+e+";",sort:e}});break}return i}(function u(e,t){return e.source.substring(t.start,t.end)}(n,hf(o)),a))return t;if(t=function l(e,t){var n=bf(e.templateAst,t),r=n.tail;if(r){var i=new Bf(e,t,void 0,function(){return uh(_f(e),n,!1)});return r.visit(i,null),gf(i.result)}}(e,r))return t;var p=i.first(ia);p?C(p.name).contentType===s.PARSABLE_DATA&&((t=Vf(e,i))||(t=jf(e))):(t=Vf(e,i))||(t=jf(e))},visitComment:function(e){},visitExpansion:function(e){},visitExpansionCase:function(e){}},null)}}return t}(n)},e.prototype.getDefinitionAt=function(e,t){var n=this.getTemplateAstAtPosition(e,t);if(n)return function r(e){var t=Uf(e);return t&&t.symbol.definition}(n)},e.prototype.getHoverAt=function(e,t){var n=this.getTemplateAstAtPosition(e,t);if(n)return function r(e){var t=Uf(e);if(t)return{text:function n(e){var t=[{text:e.kind},{text:" "},{text:e.name,language:e.language}],n=e.container;return n&&t.push({text:" of "},{text:n.name,language:n.language}),t}(t.symbol),span:t.span}}(n)},e.prototype.getTemplateAstAtPosition=function(e,t){var n=this.host.getTemplateAt(e,t);if(n){var r=this.getTemplateAst(n,e);if(r&&r.htmlAst&&r.templateAst&&r.directive&&r.directives&&r.pipes&&r.expressionParser)return{position:t,fileName:e,template:n,htmlAst:r.htmlAst,directive:r.directive,directives:r.directives,pipes:r.pipes,templateAst:r.templateAst,expressionParser:r.expressionParser}}},e.prototype.getTemplateAst=function(e,t){var n=this,r=void 0;try{var i=this.metadataResolver.getNonNormalizedDirectiveMetadata(e.type),o=i&&i.metadata;if(o){var s=new Pa,a=new Pl(s),u=new Xs(new js),c=new Xc,l=new ap(c,this.host.resolver.getReflector(),u,new za,a,null,[]),h=a.parse(e.source,"",{tokenizeExpansionForms:!0}),f=this.host.getAnalyzedModules(),d=f.ngModuleByPipeOrDirective.get(e.type);if(d||(d=function v(e){var t,n,r=void 0,i=0;try{for(var o=p(e.ngModules),s=o.next();!s.done;s=o.next()){var a=s.value,u=a.transitiveModule.directives.length;u>i&&(r=a,i=u)}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return r}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
@@ -1109,7 +1109,7 @@
* 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 $y,Xy=function(){function e(e){this.nativeElement=e}return e.__NG_ELEMENT_ID__=function(){return Yy(e)},e}(),Yy=oy,Zy=function Zy(){},Jy=(new ud("Renderer2Interceptor"),function Jy(){});!function(e){e[e.Important=1]="Important",e[e.DashCase=2]="DashCase"}($y||($y={}));var eg,tg=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return ng()},e}(),ng=oy;!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"}(eg||(eg={}));var rg=function rg(){},ig=function Ft(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},og=new ig("7.2.7"),sg=function(e){function t(t){var n=e.call(this)||this;return n.ngModule=t,n}return o(t,e),t.prototype.resolveComponentFactory=function(e){var t=
+var $y,Xy=function(){function e(e){this.nativeElement=e}return e.__NG_ELEMENT_ID__=function(){return Yy(e)},e}(),Yy=oy,Zy=function Zy(){},Jy=(new ud("Renderer2Interceptor"),function Jy(){});!function(e){e[e.Important=1]="Important",e[e.DashCase=2]="DashCase"}($y||($y={}));var eg,tg=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return ng()},e}(),ng=oy;!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"}(eg||(eg={}));var rg=function rg(){},ig=function Ft(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},og=new ig("7.2.8"),sg=function(e){function t(t){var n=e.call(this)||this;return n.ngModule=t,n}return o(t,e),t.prototype.resolveComponentFactory=function(e){var t=
/**
* @license
* Copyright Google Inc. All Rights Reserved.
@@ -1574,7 +1574,7 @@
* 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 r(e){var t=Array.from(e.providers),n=Array.from(e.modules),r={};for(var i in e.providersByKey)r[i]=e.providersByKey[i];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:r}}(Lw(this._ngModuleDefFactory));return vw.createNgModuleRef(this.moduleType,e||py.NULL,this._bootstrapComponents,n)}}(zy);var $S=function(){function e(e,t){var n=this;this.host=e,this.getProgram=t,this.metadataCollector=new af({verboseInvalidExpression:!0}),e.directoryExists&&(this.directoryExists=function(e){return n.host.directoryExists(e)})}return e.prototype.fileExists=function(e){return!!this.host.getScriptSnapshot(e)},e.prototype.readFile=function(e){var t=this.host.getScriptSnapshot(e);if(t)return t.getText(0,t.getLength())},e.prototype.getSourceFileMetadata=function(e){var t=this.getProgram().getSourceFile(e);return t?this.metadataCollector.getMetadata(t):void 0},e.prototype.cacheMetadata=function(e){return e.endsWith(".d.ts")},e}(),XS=function(){function e(e,t,n){this.options=n,this.metadataReaderCache=function i(){return{data:new Map}}(),this.hostAdapter=new $S(t,e),this.moduleResolutionCache=r.createModuleResolutionCache(t.getCurrentDirectory(),function(e){return e})}return e.prototype.getMetadataFor=function(e){return function t(e,n,r){var i=r&&r.data.get(e);if(i)return i;if(n.fileExists(e))if(lf.test(e))(i=function o(e,t){var n=t.replace(lf,".metadata.json");if(e.fileExists(n))try{var r=JSON.parse(e.readFile(n)),i=r?Array.isArray(r)?r:[r]:[];if(i.length){var o=i.reduce(function(e,t){return e.version>t.version?e:t});o.version<jh&&i.push(pf(e,o,t))}return i}catch(e){throw console.error("Failed to read JSON file "+n),e}}(n,e))||(i=[pf(n,{__symbolic:"module",version:1,metadata:{}},e)]);else{var s=n.getSourceFileMetadata(e);i=s?[s]:[]}return!r||n.cacheMetadata&&!n.cacheMetadata(e)||r.data.set(e,i),i}(e,this.hostAdapter,this.metadataReaderCache)},e.prototype.moduleNameToFileName=function(e,t){if(!t){if(0===e.indexOf("."))throw new Error("Resolution of relative paths requires a containing file.");t=n.join(this.options.basePath,"index.ts").replace(/\\/g,"/")}var i=r.resolveModuleName(e,t,this.options,this.hostAdapter).resolvedModule;return i?i.resolvedFileName:null},e.prototype.getOutputName=function(e){return e},e}(),YS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.parse=function(e,t,n,r){return void 0===n&&(n=!1),void 0===r&&(r=Zr),new Ca([],[])},t}(Pa),ZS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.get=function(e){return Promise.resolve("")},t}(nh),JS=function(){function e(e,t){this.host=e,this.tsService=t,this._staticSymbolCache=new Zt,this._typeCache=[],this.modulesOutOfDate=!0,this.fileVersions=new Map}return e.prototype.setSite=function(e){this.service=e},Object.defineProperty(e.prototype,"resolver",{get:function(){var e=this;this.validate();var t=this._resolver;if(!t){var n=new Gl(this.reflector),r=new tl(this.reflector),i=new $l(this.reflector),o=new za,s=new ZS,a=Gp(),u=new YS,c=new Xc({defaultEncapsulation:Cd.Emulated,useJit:!1}),l=new Zc(s,a,u,c);t=this._resolver=new jl(c,u,n,r,i,new Qp,o,l,new Bb,this._staticSymbolCache,this.reflector,function(t,n){return e.collectError(t,n&&n.filePath)})}return t},enumerable:!0,configurable:!0}),e.prototype.getTemplateReferences=function(){return this.ensureTemplateMap(),this.templateReferences||[]},e.prototype.getTemplateAt=function(e,t){var n=this.getSourceFile(e);if(n){this.context=n.fileName;var r=this.findNode(n,t);if(r)return this.getSourceFromNode(e,this.host.getScriptVersion(n.fileName),r)}else{this.ensureTemplateMap();var i=this.fileToComponent.get(e);if(i)return this.getSourceFromType(e,this.host.getScriptVersion(e),i)}},e.prototype.getAnalyzedModules=function(){return this.updateAnalyzedModules(),this.ensureAnalyzedModules()},e.prototype.ensureAnalyzedModules=function(){var e=this.analyzedModules;return e||(e=0===this.host.getScriptFileNames().length?{files:[],ngModuleByPipeOrDirective:new Map,ngModules:[]}:function t(e,n,r,i){return function s(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 o(e,t,n,r){var i=new Set,o=[],s=function(e){if(i.has(e)||!t.isSourceFile(e))return!1;i.add(e);var a=function u(e,t,n,r){var i=[],o=[],s=[],a=[],u=t.hasDecorators(r),c=!1;return r.endsWith(".d.ts")&&!u||t.getSymbolsOf(r).forEach(function(r){var u=t.resolveSymbol(r).metadata;if(u&&"error"!==u.__symbolic){var l=!1;if("class"===u.__symbolic)if(n.isDirective(r))l=!0,i.push(r);else if(n.isPipe(r))l=!0,o.push(r);else if(n.isNgModule(r)){var p=n.getNgModuleMetadata(r,!1);p&&(l=!0,a.push(p))}else if(n.isInjectable(r)){l=!0;var h=n.getInjectableMetadata(r,null,!1);h&&s.push(h)}l||(c=c||function f(e,t){var n=!1;return wt(t,new(function(){function t(){}return t.prototype.visitArray=function(e,t){var n=this;e.forEach(function(e){return wt(e,n,t)})},t.prototype.visitStringMap=function(e,t){var n=this;Object.keys(e).forEach(function(r){return wt(e[r],n,t)})},t.prototype.visitPrimitive=function(e,t){},t.prototype.visitOther=function(t,r){t instanceof Yt&&!e.isSourceFile(t.filePath)&&(n=!0)},t}()),null),n}(e,u))}}),{fileName:r,directives:i,pipes:o,ngModules:a,injectables:s,exportsNonSourceFiles:c}}(t,n,r,e);o.push(a),a.ngModules.forEach(function(e){e.transitiveModule.modules.forEach(function(e){return s(e.reference.filePath)})})};return e.forEach(function(e){return s(e)}),o}(e,n,r,i))}(this.program.getSourceFiles().map(function(e){return e.fileName}),{isSourceFile:function(e){return!0}},this.staticSymbolResolver,this.resolver),this.analyzedModules=e),e},e.prototype.getTemplates=function(e){var t=this;if(this.ensureTemplateMap(),!this.fileToComponent.get(e)){var n=this.host.getScriptVersion(e),i=[],o=function(s){var a=t.getSourceFromNode(e,n,s);a?i.push(a):r.forEachChild(s,o)},s=this.getSourceFile(e);return s&&(this.context=s.path||s.fileName,r.forEachChild(s,o)),i.length?i:void 0}var a=this.getTemplateAt(e,0);if(a)return[a]},e.prototype.getDeclarations=function(e){var t=this,n=[],i=this.getSourceFile(e);if(i){var o=function(e){var s=t.getDeclarationFromNode(i,e);s?n.push(s):r.forEachChild(e,o)};r.forEachChild(i,o)}return n},e.prototype.getSourceFile=function(e){return this.tsService.getProgram().getSourceFile(e)},e.prototype.updateAnalyzedModules=function(){this.validate(),this.modulesOutOfDate&&(this.analyzedModules=null,this._reflector=null,this.templateReferences=null,this.fileToComponent=null,this.ensureAnalyzedModules(),this.modulesOutOfDate=!1)},Object.defineProperty(e.prototype,"program",{get:function(){return this.tsService.getProgram()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checker",{get:function(){var e=this._checker;return e||(e=this._checker=this.program.getTypeChecker()),e},enumerable:!0,configurable:!0}),e.prototype.validate=function(){var e,t,n=this,r=this.program;if(this.lastProgram!==r){var i=function(e){return n._staticSymbolResolver.invalidateFile(e)};this.clearCaches();var o=new Set;try{for(var s=p(this.program.getSourceFiles()),a=s.next();!a.done;a=s.next()){var u=a.value.fileName;o.add(u);var c=this.host.getScriptVersion(u);c!=this.fileVersions.get(u)&&(this.fileVersions.set(u,c),this._staticSymbolResolver&&i(u))}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}var l=Array.from(this.fileVersions.keys()).filter(function(e){return!o.has(e)});l.forEach(function(e){return n.fileVersions.delete(e)}),this._staticSymbolResolver&&l.forEach(i),this.lastProgram=r}},e.prototype.clearCaches=function(){this._checker=null,this._typeCache=[],this._resolver=null,this.collectedErrors=null,this.modulesOutOfDate=!0},e.prototype.ensureTemplateMap=function(){var e,t,n,r;if(!this.fileToComponent||!this.templateReferences){var i=new Map,o=[],s=this.getAnalyzedModules(),a=Gp();try{for(var u=p(s.ngModules),c=u.next();!c.done;c=u.next()){var l=c.value;try{for(var h=p(l.declaredDirectives),f=h.next();!f.done;f=h.next()){var d=f.value,v=this.resolver.getNonNormalizedDirectiveMetadata(d.reference).metadata;if(v.isComponent&&v.template&&v.template.templateUrl){var m=a.resolve(this.reflector.componentModuleUrl(d.reference),v.template.templateUrl);i.set(m,d.reference),o.push(m)}}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{c&&!c.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}this.fileToComponent=i,this.templateReferences=o}},e.prototype.getSourceFromDeclaration=function(e,t,n,r,i,o,s,a){var u=void 0,c=this;if(o)return{version:t,source:n,span:r,type:i,get members(){return function e(t,n,r,i){var o=n.getTypeAtLocation(i);return new _h(o,{node:r,program:t,checker:n}).members()}(c.program,c.checker,a,o)},get query(){if(!u){var t=c.service.getPipesAt(e,s.getStart());u=function n(e,t,r,i){return new vh(e,t,r,i)}(c.program,c.checker,a,function(){return function e(t,n,r,i){return new Ah(i,{program:n,checker:r,node:t})}(a,c.program,c.checker,t)})}return u}}},e.prototype.getSourceFromNode=function(e,t,n){switch(n.kind){case r.SyntaxKind.NoSubstitutionTemplateLiteral:case r.SyntaxKind.StringLiteral:var i=h(this.getTemplateClassDeclFromNode(n),2)[0];if(i&&i.name){var o=this.getSourceFile(e);if(o)return this.getSourceFromDeclaration(e,t,this.stringOf(n)||"",function s(e,t){return null==t&&(t=1),{start:e.start+t,end:e.end-t}}(eC(n)),this.reflector.getStaticSymbol(o.fileName,i.name.text),i,n,o)}}},e.prototype.getSourceFromType=function(e,t,n){var r=void 0,i=this.getTemplateClassFromStaticSymbol(n);if(i){var o=this.host.getScriptSnapshot(e);if(o){var s=o.getText(0,o.getLength());r=this.getSourceFromDeclaration(e,t,s,{start:0,end:s.length},n,i,i,i.getSourceFile())}}return r},Object.defineProperty(e.prototype,"reflectorHost",{get:function(){var e=this,r=this._reflectorHost;if(!r){if(!this.context){var i=this.host.getScriptFileNames();if(0===i.length)throw new Error("Internal error: no script file names found");this.context=i[0]}var o=this.tsService.getProgram().getSourceFile(this.context);if(!o)throw new Error("Internal error: no context could be determined");var s=function a(e){for(var r=n.dirname(e);t.existsSync(r);){var i=n.join(r,"tsconfig.json");if(t.existsSync(i))return i;var o=n.dirname(r);if(o===r)break;r=o}}(o.fileName),u=n.dirname(s||this.context),c={basePath:u,genDir:u},l=this.host.getCompilationSettings();l&&l.baseUrl&&(c.baseUrl=l.baseUrl),l&&l.paths&&(c.paths=l.paths),r=this._reflectorHost=new XS(function(){return e.tsService.getProgram()},this.host,c)}return r},enumerable:!0,configurable:!0}),e.prototype.collectError=function(e,t){if(t){var n=this.collectedErrors;n&&this.collectedErrors||(n=this.collectedErrors=new Map);var r=n.get(t);r||this.collectedErrors.set(t,r=[]),r.push(e)}},Object.defineProperty(e.prototype,"staticSymbolResolver",{get:function(){var e=this,t=this._staticSymbolResolver;return t||(this._summaryResolver=new Wp({loadSummary:function(e){return null},isSourceFile:function(e){return!0},toSummaryFileName:function(e){return e},fromSummaryFileName:function(e){return e}},this._staticSymbolCache),t=this._staticSymbolResolver=new bp(this.reflectorHost,this._staticSymbolCache,this._summaryResolver,function(t,n){return e.collectError(t,n)})),t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reflector",{get:function(){var e=this,t=this._reflector;return t||(t=this._reflector=new Ip(this._summaryResolver,this.staticSymbolResolver,[],[],function(t,n){return e.collectError(t,n)})),t},enumerable:!0,configurable:!0}),e.prototype.getTemplateClassFromStaticSymbol=function(e){var t=this.getSourceFile(e.filePath);if(t)return r.forEachChild(t,function(t){if(t.kind===r.SyntaxKind.ClassDeclaration&&null!=t.name&&t.name.text===e.name)return t})},e.prototype.getTemplateClassDeclFromNode=function(t){var n=t.parent;if(!n)return e.missingTemplate;if(n.kind!==r.SyntaxKind.PropertyAssignment)return e.missingTemplate;if("template"!==n.name.text)return e.missingTemplate;if(!(n=n.parent)||n.kind!==r.SyntaxKind.ObjectLiteralExpression)return e.missingTemplate;if(!(n=n.parent)||n.kind!==r.SyntaxKind.CallExpression)return e.missingTemplate;var i=n.expression,o=n.parent;if(!o||o.kind!==r.SyntaxKind.Decorator)return e.missingTemplate;var s=o.parent;return s&&s.kind===r.SyntaxKind.ClassDeclaration?[s,i]:e.missingTemplate},e.prototype.getCollectedErrors=function(e,t){var n=this.collectedErrors&&this.collectedErrors.get(t.fileName);return n&&n.map(function(n){var i=function o(e,t,n){if(null!=t&&null!=n){var i=r.getPositionOfLineAndCharacter(e,t,n),o=r.forEachChild(e,function e(t){if(t.kind>r.SyntaxKind.LastToken&&t.pos<=i&&t.end>i)return r.forEachChild(t,e)||t});if(o)return{start:o.getStart(),end:o.getEnd()}}}(t,n.line||n.position&&n.position.line,n.column||n.position&&n.position.column)||e;return function s(e){return!!e[Cp]}
+function r(e){var t=Array.from(e.providers),n=Array.from(e.modules),r={};for(var i in e.providersByKey)r[i]=e.providersByKey[i];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:r}}(Lw(this._ngModuleDefFactory));return vw.createNgModuleRef(this.moduleType,e||py.NULL,this._bootstrapComponents,n)}}(zy);var $S=function(){function e(e,t){var n=this;this.host=e,this.getProgram=t,this.metadataCollector=new af({verboseInvalidExpression:!0}),e.directoryExists&&(this.directoryExists=function(e){return n.host.directoryExists(e)})}return e.prototype.fileExists=function(e){return!!this.host.getScriptSnapshot(e)},e.prototype.readFile=function(e){var t=this.host.getScriptSnapshot(e);if(t)return t.getText(0,t.getLength())},e.prototype.getSourceFileMetadata=function(e){var t=this.getProgram().getSourceFile(e);return t?this.metadataCollector.getMetadata(t):void 0},e.prototype.cacheMetadata=function(e){return e.endsWith(".d.ts")},e}(),XS=function(){function e(e,t,n){this.options=n,this.metadataReaderCache=function i(){return{data:new Map}}(),this.hostAdapter=new $S(t,e),this.moduleResolutionCache=r.createModuleResolutionCache(t.getCurrentDirectory(),function(e){return e})}return e.prototype.getMetadataFor=function(e){return function t(e,n,r){var i=r&&r.data.get(e);if(i)return i;if(n.fileExists(e))if(lf.test(e))(i=function o(e,t){var n=t.replace(lf,".metadata.json");if(e.fileExists(n))try{var r=JSON.parse(e.readFile(n)),i=r?Array.isArray(r)?r:[r]:[];if(i.length){var o=i.reduce(function(e,t){return e.version>t.version?e:t});o.version<jh&&i.push(pf(e,o,t))}return i}catch(e){throw console.error("Failed to read JSON file "+n),e}}(n,e))||(i=[pf(n,{__symbolic:"module",version:1,metadata:{}},e)]);else{var s=n.getSourceFileMetadata(e);i=s?[s]:[]}return!r||n.cacheMetadata&&!n.cacheMetadata(e)||r.data.set(e,i),i}(e,this.hostAdapter,this.metadataReaderCache)},e.prototype.moduleNameToFileName=function(e,t){if(!t){if(0===e.indexOf("."))throw new Error("Resolution of relative paths requires a containing file.");t=n.join(this.options.basePath,"index.ts").replace(/\\/g,"/")}var i=r.resolveModuleName(e,t,this.options,this.hostAdapter).resolvedModule;return i?i.resolvedFileName:null},e.prototype.getOutputName=function(e){return e},e}(),YS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.parse=function(){return new Ca([],[])},t}(Pa),ZS=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.get=function(e){return Promise.resolve("")},t}(nh),JS=function(){function e(e,t){this.host=e,this.tsService=t,this._staticSymbolCache=new Zt,this._typeCache=[],this.modulesOutOfDate=!0,this.fileVersions=new Map}return e.prototype.setSite=function(e){this.service=e},Object.defineProperty(e.prototype,"resolver",{get:function(){var e=this;this.validate();var t=this._resolver;if(!t){var n=new Gl(this.reflector),r=new tl(this.reflector),i=new $l(this.reflector),o=new za,s=new ZS,a=Gp(),u=new YS,c=new Xc({defaultEncapsulation:Cd.Emulated,useJit:!1}),l=new Zc(s,a,u,c);t=this._resolver=new jl(c,u,n,r,i,new Qp,o,l,new Bb,this._staticSymbolCache,this.reflector,function(t,n){return e.collectError(t,n&&n.filePath)})}return t},enumerable:!0,configurable:!0}),e.prototype.getTemplateReferences=function(){return this.ensureTemplateMap(),this.templateReferences||[]},e.prototype.getTemplateAt=function(e,t){var n=this.getSourceFile(e);if(n){this.context=n.fileName;var r=this.findNode(n,t);if(r)return this.getSourceFromNode(e,this.host.getScriptVersion(n.fileName),r)}else{this.ensureTemplateMap();var i=this.fileToComponent.get(e);if(i)return this.getSourceFromType(e,this.host.getScriptVersion(e),i)}},e.prototype.getAnalyzedModules=function(){return this.updateAnalyzedModules(),this.ensureAnalyzedModules()},e.prototype.ensureAnalyzedModules=function(){var e=this.analyzedModules;return e||(e=0===this.host.getScriptFileNames().length?{files:[],ngModuleByPipeOrDirective:new Map,ngModules:[]}:function t(e,n,r,i){return function s(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 o(e,t,n,r){var i=new Set,o=[],s=function(e){if(i.has(e)||!t.isSourceFile(e))return!1;i.add(e);var a=function u(e,t,n,r){var i=[],o=[],s=[],a=[],u=t.hasDecorators(r),c=!1;return r.endsWith(".d.ts")&&!u||t.getSymbolsOf(r).forEach(function(r){var u=t.resolveSymbol(r).metadata;if(u&&"error"!==u.__symbolic){var l=!1;if("class"===u.__symbolic)if(n.isDirective(r))l=!0,i.push(r);else if(n.isPipe(r))l=!0,o.push(r);else if(n.isNgModule(r)){var p=n.getNgModuleMetadata(r,!1);p&&(l=!0,a.push(p))}else if(n.isInjectable(r)){l=!0;var h=n.getInjectableMetadata(r,null,!1);h&&s.push(h)}l||(c=c||function f(e,t){var n=!1;return wt(t,new(function(){function t(){}return t.prototype.visitArray=function(e,t){var n=this;e.forEach(function(e){return wt(e,n,t)})},t.prototype.visitStringMap=function(e,t){var n=this;Object.keys(e).forEach(function(r){return wt(e[r],n,t)})},t.prototype.visitPrimitive=function(e,t){},t.prototype.visitOther=function(t,r){t instanceof Yt&&!e.isSourceFile(t.filePath)&&(n=!0)},t}()),null),n}(e,u))}}),{fileName:r,directives:i,pipes:o,ngModules:a,injectables:s,exportsNonSourceFiles:c}}(t,n,r,e);o.push(a),a.ngModules.forEach(function(e){e.transitiveModule.modules.forEach(function(e){return s(e.reference.filePath)})})};return e.forEach(function(e){return s(e)}),o}(e,n,r,i))}(this.program.getSourceFiles().map(function(e){return e.fileName}),{isSourceFile:function(e){return!0}},this.staticSymbolResolver,this.resolver),this.analyzedModules=e),e},e.prototype.getTemplates=function(e){var t=this;if(this.ensureTemplateMap(),!this.fileToComponent.get(e)){var n=this.host.getScriptVersion(e),i=[],o=function(s){var a=t.getSourceFromNode(e,n,s);a?i.push(a):r.forEachChild(s,o)},s=this.getSourceFile(e);return s&&(this.context=s.path||s.fileName,r.forEachChild(s,o)),i.length?i:void 0}var a=this.getTemplateAt(e,0);if(a)return[a]},e.prototype.getDeclarations=function(e){var t=this,n=[],i=this.getSourceFile(e);if(i){var o=function(e){var s=t.getDeclarationFromNode(i,e);s?n.push(s):r.forEachChild(e,o)};r.forEachChild(i,o)}return n},e.prototype.getSourceFile=function(e){return this.tsService.getProgram().getSourceFile(e)},e.prototype.updateAnalyzedModules=function(){this.validate(),this.modulesOutOfDate&&(this.analyzedModules=null,this._reflector=null,this.templateReferences=null,this.fileToComponent=null,this.ensureAnalyzedModules(),this.modulesOutOfDate=!1)},Object.defineProperty(e.prototype,"program",{get:function(){return this.tsService.getProgram()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checker",{get:function(){var e=this._checker;return e||(e=this._checker=this.program.getTypeChecker()),e},enumerable:!0,configurable:!0}),e.prototype.validate=function(){var e,t,n=this,r=this.program;if(this.lastProgram!==r){var i=function(e){return n._staticSymbolResolver.invalidateFile(e)};this.clearCaches();var o=new Set;try{for(var s=p(this.program.getSourceFiles()),a=s.next();!a.done;a=s.next()){var u=a.value.fileName;o.add(u);var c=this.host.getScriptVersion(u);c!=this.fileVersions.get(u)&&(this.fileVersions.set(u,c),this._staticSymbolResolver&&i(u))}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}var l=Array.from(this.fileVersions.keys()).filter(function(e){return!o.has(e)});l.forEach(function(e){return n.fileVersions.delete(e)}),this._staticSymbolResolver&&l.forEach(i),this.lastProgram=r}},e.prototype.clearCaches=function(){this._checker=null,this._typeCache=[],this._resolver=null,this.collectedErrors=null,this.modulesOutOfDate=!0},e.prototype.ensureTemplateMap=function(){var e,t,n,r;if(!this.fileToComponent||!this.templateReferences){var i=new Map,o=[],s=this.getAnalyzedModules(),a=Gp();try{for(var u=p(s.ngModules),c=u.next();!c.done;c=u.next()){var l=c.value;try{for(var h=p(l.declaredDirectives),f=h.next();!f.done;f=h.next()){var d=f.value,v=this.resolver.getNonNormalizedDirectiveMetadata(d.reference).metadata;if(v.isComponent&&v.template&&v.template.templateUrl){var m=a.resolve(this.reflector.componentModuleUrl(d.reference),v.template.templateUrl);i.set(m,d.reference),o.push(m)}}}catch(e){n={error:e}}finally{try{f&&!f.done&&(r=h.return)&&r.call(h)}finally{if(n)throw n.error}}}}catch(t){e={error:t}}finally{try{c&&!c.done&&(t=u.return)&&t.call(u)}finally{if(e)throw e.error}}this.fileToComponent=i,this.templateReferences=o}},e.prototype.getSourceFromDeclaration=function(e,t,n,r,i,o,s,a){var u=void 0,c=this;if(o)return{version:t,source:n,span:r,type:i,get members(){return function e(t,n,r,i){var o=n.getTypeAtLocation(i);return new _h(o,{node:r,program:t,checker:n}).members()}(c.program,c.checker,a,o)},get query(){if(!u){var t=c.service.getPipesAt(e,s.getStart());u=function n(e,t,r,i){return new vh(e,t,r,i)}(c.program,c.checker,a,function(){return function e(t,n,r,i){return new Ah(i,{program:n,checker:r,node:t})}(a,c.program,c.checker,t)})}return u}}},e.prototype.getSourceFromNode=function(e,t,n){switch(n.kind){case r.SyntaxKind.NoSubstitutionTemplateLiteral:case r.SyntaxKind.StringLiteral:var i=h(this.getTemplateClassDeclFromNode(n),2)[0];if(i&&i.name){var o=this.getSourceFile(e);if(o)return this.getSourceFromDeclaration(e,t,this.stringOf(n)||"",function s(e,t){return null==t&&(t=1),{start:e.start+t,end:e.end-t}}(eC(n)),this.reflector.getStaticSymbol(o.fileName,i.name.text),i,n,o)}}},e.prototype.getSourceFromType=function(e,t,n){var r=void 0,i=this.getTemplateClassFromStaticSymbol(n);if(i){var o=this.host.getScriptSnapshot(e);if(o){var s=o.getText(0,o.getLength());r=this.getSourceFromDeclaration(e,t,s,{start:0,end:s.length},n,i,i,i.getSourceFile())}}return r},Object.defineProperty(e.prototype,"reflectorHost",{get:function(){var e=this,r=this._reflectorHost;if(!r){if(!this.context){var i=this.host.getScriptFileNames();if(0===i.length)throw new Error("Internal error: no script file names found");this.context=i[0]}var o=this.tsService.getProgram().getSourceFile(this.context);if(!o)throw new Error("Internal error: no context could be determined");var s=function a(e){for(var r=n.dirname(e);t.existsSync(r);){var i=n.join(r,"tsconfig.json");if(t.existsSync(i))return i;var o=n.dirname(r);if(o===r)break;r=o}}(o.fileName),u=n.dirname(s||this.context),c={basePath:u,genDir:u},l=this.host.getCompilationSettings();l&&l.baseUrl&&(c.baseUrl=l.baseUrl),l&&l.paths&&(c.paths=l.paths),r=this._reflectorHost=new XS(function(){return e.tsService.getProgram()},this.host,c)}return r},enumerable:!0,configurable:!0}),e.prototype.collectError=function(e,t){if(t){var n=this.collectedErrors;n&&this.collectedErrors||(n=this.collectedErrors=new Map);var r=n.get(t);r||this.collectedErrors.set(t,r=[]),r.push(e)}},Object.defineProperty(e.prototype,"staticSymbolResolver",{get:function(){var e=this,t=this._staticSymbolResolver;return t||(this._summaryResolver=new Wp({loadSummary:function(e){return null},isSourceFile:function(e){return!0},toSummaryFileName:function(e){return e},fromSummaryFileName:function(e){return e}},this._staticSymbolCache),t=this._staticSymbolResolver=new bp(this.reflectorHost,this._staticSymbolCache,this._summaryResolver,function(t,n){return e.collectError(t,n)})),t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"reflector",{get:function(){var e=this,t=this._reflector;return t||(t=this._reflector=new Ip(this._summaryResolver,this.staticSymbolResolver,[],[],function(t,n){return e.collectError(t,n)})),t},enumerable:!0,configurable:!0}),e.prototype.getTemplateClassFromStaticSymbol=function(e){var t=this.getSourceFile(e.filePath);if(t)return r.forEachChild(t,function(t){if(t.kind===r.SyntaxKind.ClassDeclaration&&null!=t.name&&t.name.text===e.name)return t})},e.prototype.getTemplateClassDeclFromNode=function(t){var n=t.parent;if(!n)return e.missingTemplate;if(n.kind!==r.SyntaxKind.PropertyAssignment)return e.missingTemplate;if("template"!==n.name.text)return e.missingTemplate;if(!(n=n.parent)||n.kind!==r.SyntaxKind.ObjectLiteralExpression)return e.missingTemplate;if(!(n=n.parent)||n.kind!==r.SyntaxKind.CallExpression)return e.missingTemplate;var i=n.expression,o=n.parent;if(!o||o.kind!==r.SyntaxKind.Decorator)return e.missingTemplate;var s=o.parent;return s&&s.kind===r.SyntaxKind.ClassDeclaration?[s,i]:e.missingTemplate},e.prototype.getCollectedErrors=function(e,t){var n=this.collectedErrors&&this.collectedErrors.get(t.fileName);return n&&n.map(function(n){var i=function o(e,t,n){if(null!=t&&null!=n){var i=r.getPositionOfLineAndCharacter(e,t,n),o=r.forEachChild(e,function e(t){if(t.kind>r.SyntaxKind.LastToken&&t.pos<=i&&t.end>i)return r.forEachChild(t,e)||t});if(o)return{start:o.getStart(),end:o.getEnd()}}}(t,n.line||n.position&&n.position.line,n.column||n.position&&n.position.column)||e;return function s(e){return!!e[Cp]}
/**
* @license
* Copyright Google Inc. All Rights Reserved.
@@ -1644,7 +1644,7 @@
*
* 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 eC(e){return{start:e.getStart(),end:e.getEnd()}}var tC=new WeakMap,nC=new ig("7.2.7");
+ */function eC(e){return{start:e.getStart(),end:e.getEnd()}}var tC=new WeakMap,nC=new ig("7.2.8");
/**
* @license
* Copyright Google Inc. All Rights Reserved.