diff --git a/src/AngularComponents/src/app/components/coverageinfo/coverage-info.component.ts b/src/AngularComponents/src/app/components/coverageinfo/coverage-info.component.ts
index bac472ab..66fb9415 100644
--- a/src/AngularComponents/src/app/components/coverageinfo/coverage-info.component.ts
+++ b/src/AngularComponents/src/app/components/coverageinfo/coverage-info.component.ts
@@ -98,11 +98,11 @@ import { CodeElementViewModel } from "./viewmodels/codelement-viewmodel.class";
[ngClass]="{'icon-up-dir_active': settings.sortBy === 'coverage' && settings.sortOrder === 'desc',
'icon-down-dir_active': settings.sortBy === 'coverage' && settings.sortOrder === 'asc',
'icon-down-dir': settings.sortBy !== 'coverage'}">{{translations.coverage}}
-
{{translations.covered}} |
- {{translations.total}} |
diff --git a/src/Readme.txt b/src/Readme.txt
index aa543dc3..6d5c606e 100644
--- a/src/Readme.txt
+++ b/src/Readme.txt
@@ -66,6 +66,7 @@ CHANGELOG
4.6.7.0
* Fix: #363: Improved handling of HTML generation (several HTML reports at once)
+ * Fix: #388: Removed branch coverage columns if no branch coverage is available
4.6.6.0
diff --git a/src/ReportGenerator.Core/Reporting/Builders/Rendering/resources/main.js b/src/ReportGenerator.Core/Reporting/Builders/Rendering/resources/main.js
index 6d718e6a..83308288 100644
--- a/src/ReportGenerator.Core/Reporting/Builders/Rendering/resources/main.js
+++ b/src/ReportGenerator.Core/Reporting/Builders/Rendering/resources/main.js
@@ -1 +1 @@
-function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _createForOfIteratorHelper(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,e),this.project=t,this.concurrent=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new L(e,this.project,this.concurrent))}}]),e}(),L=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(i=t.call(this,e)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return _createClass(n,[{key:"_next",value:function(e){this.active4&&void 0!==arguments[4]?arguments[4]:new A(e,n,r);i.closed||(t instanceof C?t.subscribe(i):N(t)(i))}(this,e,t,n,r)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyComplete",value:function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(P);function B(e){return e}function U(){return function(e){return e.lift(new Z(e))}}var G,Z=function(){function e(t){_classCallCheck(this,e),this.connectable=t}return _createClass(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var r=new q(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),e}(),q=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).connectable=r,i}return _createClass(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(p),W={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(G=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).source=e,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return _createClass(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new f).add(this.source.subscribe(new $(this.getSubject(),this))),e.closed&&(this._connection=null,e=f.EMPTY)),e}},{key:"refCount",value:function(){return U()(this)}}]),n}(C).prototype)._subscribe},_isComplete:{value:G._isComplete,writable:!0},getSubject:{value:G.getSubject},connect:{value:G.connect},refCount:{value:G.refCount}},$=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).connectable=r,i}return _createClass(n,[{key:"_error",value:function(e){this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(S);function J(){return new I}function Q(e){return{toString:e}.toString()}function K(e,t,n){return Q((function(){var r=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function i(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:ne.Default;if(void 0===ze)throw new Error("inject() must be called from an injection context");return null===ze?Ge(e,void 0,t):ze.get(e,t&ne.Optional?null:void 0,t)}function Ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne.Default;return(ke||Be)(me(e),t)}function Ge(e,t,n){var r=ae(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&ne.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(pe(e),"]"))}function Ze(e){for(var t=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:He;if(t===He){var n=new Error("NullInjectorError: No provider for ".concat(pe(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),We=function e(){_classCallCheck(this,e)};function $e(e,t){e.forEach((function(e){return Array.isArray(e)?$e(e,t):t(e)}))}function Je(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Qe(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ke(e,t,n){var r=Xe(e,t);return r>=0?e[1|r]=n:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r=~r,t,n),r}function Ye(e,t){var n=Xe(e,t);if(n>=0)return e[1|n]}function Xe(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var o=r+(i-r>>1),s=e[o<<1];if(t===s)return o<<1;s>t?i=o:r=o+1}return~(i<<1)}(e,t)}var et,tt=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),nt=((et={})[et.Emulated=0]="Emulated",et[et.Native=1]="Native",et[et.None=2]="None",et[et.ShadowDom=3]="ShadowDom",et),rt={},it=[],ot=0;function st(e){return Q((function(){var t=e.type,n=t.prototype,r={},i={type:t,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===tt.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||it,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||nt.Emulated,id:"c",styles:e.styles||it,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,s=e.features,a=e.pipes;return i.id+=ot++,i.inputs=ht(e.inputs,r),i.outputs=ht(e.outputs),s&&s.forEach((function(e){return e(i)})),i.directiveDefs=o?function(){return("function"==typeof o?o():o).map(at)}:null,i.pipeDefs=a?function(){return("function"==typeof a?a():a).map(ut)}:null,i}))}function at(e){return dt(e)||function(e){return e[Ae]||null}(e)}function ut(e){return function(e){return e[xe]||null}(e)}var lt={};function ct(e){var t={type:e.type,bootstrap:e.bootstrap||it,declarations:e.declarations||it,imports:e.imports||it,exports:e.exports||it,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Q((function(){lt[e.id]=e.type})),t}function ht(e,t){if(null==e)return rt;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var ft=st;function dt(e){return e[Oe]||null}function vt(e,t){return e.hasOwnProperty(De)?e[De]:null}function pt(e,t){var n=e[Te]||null;if(!n&&!0===t)throw new Error("Type ".concat(pe(e)," does not have '\u0275mod' property."));return n}function gt(e){return Array.isArray(e)&&"object"==typeof e[1]}function yt(e){return Array.isArray(e)&&!0===e[1]}function _t(e){return 0!=(8&e.flags)}function mt(e){return 2==(2&e.flags)}function Ct(e){return 1==(1&e.flags)}function kt(e){return null!==e.template}function bt(e){return 0!=(512&e[2])}var wt=void 0;function Et(e){return!!e.listen}var St={createRenderer:function(e,t){return void 0!==wt?wt:"undefined"!=typeof document?document:void 0}};function It(e){for(;Array.isArray(e);)e=e[0];return e}function Ot(e,t){return It(t[e+20])}function At(e,t){return It(t[e.index])}function xt(e,t){return e.data[t+20]}function Tt(e,t){var n=t[e];return gt(n)?n:n[0]}function Vt(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Dt(e){return 128==(128&e[2])}function Nt(e,t){return null===e||null==t?null:e[t]}function Pt(e){e[18]=0}function Mt(e,t){e[5]+=t;for(var n=e,r=e[3];null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}var Ht={lFrame:nn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Rt(){return Ht.bindingsEnabled}function jt(){return Ht.lFrame.lView}function zt(){return Ht.lFrame.tView}function Ft(e){Ht.lFrame.contextLView=e}function Lt(){return Ht.lFrame.previousOrParentTNode}function Bt(e,t){Ht.lFrame.previousOrParentTNode=e,Ht.lFrame.isParent=t}function Ut(){return Ht.lFrame.isParent}function Gt(){Ht.lFrame.isParent=!1}function Zt(){return Ht.checkNoChangesMode}function qt(e){Ht.checkNoChangesMode=e}function Wt(){var e=Ht.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function $t(){return Ht.lFrame.bindingIndex++}function Jt(e){var t=Ht.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Qt(e,t){var n=Ht.lFrame;n.bindingIndex=n.bindingRootIndex=e,Kt(t)}function Kt(e){Ht.lFrame.currentDirectiveIndex=e}function Yt(e){Ht.lFrame.currentQueryIndex=e}function Xt(e,t){var n=tn();Ht.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function en(e,t){var n=tn(),r=e[1];Ht.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=r,n.contextLView=e,n.bindingIndex=r.bindingStartIndex}function tn(){var e=Ht.lFrame,t=null===e?null:e.child;return null===t?nn(e):t}function nn(e){var t={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function rn(){var e=Ht.lFrame;return Ht.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}var on=rn;function sn(){var e=rn();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function an(){return Ht.lFrame.selectedIndex}function un(e){Ht.lFrame.selectedIndex=e}function ln(){var e=Ht.lFrame;return xt(e.tView,e.selectedIndex)}function cn(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[s]<0&&(e[18]+=65536),(o>11>16&&(3&e[2])===t&&(e[2]+=2048,o.call(s)):o.call(s)}var gn=function e(t,n,r){_classCallCheck(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function yn(e,t,n){for(var r=Et(e),i=0;it){s=o-1;break}}}for(;o>16}function En(e,t){for(var n=wn(e),r=t;n>0;)r=r[15],n--;return r}function Sn(e){return"string"==typeof e?e:null==e?"":""+e}function In(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Sn(e)}var On=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ie);function An(e){return{name:"window",target:e.ownerDocument.defaultView}}function xn(e){return e instanceof Function?e():e}var Tn=!0;function Vn(e){var t=Tn;return Tn=e,t}var Dn=0;function Nn(e,t){var n=Mn(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Pn(r.data,e),Pn(t,null),Pn(r.blueprint,null));var i=Hn(e,t),o=e.injectorIndex;if(kn(i))for(var s=bn(i),a=En(i,t),u=a[1].data,l=0;l<8;l++)t[o+l]=a[s+l]|u[s+l];return t[o+8]=i,o}function Pn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Mn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function Hn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=t[6],r=1;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function Rn(e,t,n){!function(e,t,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ne)&&(r=n[Ne]),null==r&&(r=n[Ne]=Dn++);var i=255&r,o=1<3&&void 0!==arguments[3]?arguments[3]:ne.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(Ne)?e[Ne]:void 0;return"number"==typeof t&&t>0?255&t:t}(n);if("function"==typeof o){Xt(t,e);try{var s=o();if(null!=s||r&ne.Optional)return s;throw new Error("No provider for ".concat(In(n),"!"))}finally{on()}}else if("number"==typeof o){if(-1===o)return new Gn(e,t);var a=null,u=Mn(e,t),l=-1,c=r&ne.Host?t[16][6]:null;for((-1===u||r&ne.SkipSelf)&&(l=-1===u?Hn(e,t):t[u+8],Un(r,!1)?(a=t[1],u=bn(l),t=En(l,t)):u=-1);-1!==u;){l=t[u+8];var h=t[1];if(Bn(o,u,h.data)){var f=Fn(u,t,n,a,r,c);if(f!==zn)return f}Un(r,t[1].data[u+8]===c)&&Bn(o,u,t)?(a=h,u=bn(l),t=En(l,t)):u=-1}}}if(r&ne.Optional&&void 0===i&&(i=null),0==(r&(ne.Self|ne.Host))){var d=t[9],v=Le(void 0);try{return d?d.get(n,i,r&ne.Optional):Ge(n,i,r&ne.Optional)}finally{Le(v)}}if(r&ne.Optional)return i;throw new Error("NodeInjector: NOT_FOUND [".concat(In(n),"]"))}var zn={};function Fn(e,t,n,r,i,o){var s=t[1],a=s.data[e+8],u=function(e,t,n,r,i){for(var o=e.providerIndexes,s=t.data,a=65535&o,u=e.directiveStart,l=o>>16,c=i?a+l:e.directiveEnd,h=r?a:a+l;h=u&&f.type===n)return h}if(i){var d=s[u];if(d&&kt(d)&&d.type===n)return u}return null}(a,s,n,null==r?mt(a)&&Tn:r!=s&&3===a.type,i&ne.Host&&o===a);return null!==u?Ln(t,s,u,a):zn}function Ln(e,t,n,r){var i=e[n],o=t.data;if(i instanceof gn){var s=i;if(s.resolving)throw new Error("Circular dep for "+In(o[n]));var a,u=Vn(s.canSeeViewProviders);s.resolving=!0,s.injectImpl&&(a=Le(s.injectImpl)),Xt(e,r);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.onChanges,i=t.onInit,o=t.doCheck;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)),i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{s.injectImpl&&Le(a),Vn(u),s.resolving=!1,on()}}return i}function Bn(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<1?t-1:0),r=1;ro?"":i[c+1].toLowerCase();var f=8&r?h:null;if(f&&-1!==lr(f,l,0)||2&r&&l!==h){if(vr(r))return!1;s=!0}}}}else{if(!s&&!vr(r)&&!vr(u))return!1;if(s&&vr(u))continue;s=!1,r=u|1&r}}return vr(r)||s}function vr(e){return 0==(1&e)}function pr(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""===i||vr(s)||(t+=yr(o,i),i=""),r=s,o=o||!vr(r);n++}return""!==i&&(t+=yr(o,i)),t}var mr={};function Cr(e){var t=e[3];return yt(t)?t[3]:t}function kr(e){return wr(e[13])}function br(e){return wr(e[4])}function wr(e){for(;null!==e&&!yt(e);)e=e[4];return e}function Er(e){Sr(zt(),jt(),an()+e,Zt())}function Sr(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&hn(t,i,n)}else{var o=e.preOrderHooks;null!==o&&fn(t,o,0,n)}un(n)}function Ir(e,t){return e<<17|t<<2}function Or(e){return e>>17&32767}function Ar(e){return 2|e}function xr(e){return(131068&e)>>2}function Tr(e,t){return-131069&e|t<<2}function Vr(e){return 1|e}function Dr(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;r20&&Sr(e,t,0,Zt()),n(r,i)}finally{un(o)}}function Fr(e,t,n){if(_t(t))for(var r=t.directiveEnd,i=t.directiveStart;i2&&void 0!==arguments[2]?arguments[2]:At,r=t.localNames;if(null!==r)for(var i=t.index+1,o=0;o0&&function e(t){for(var n=kr(t);null!==n;n=br(n))for(var r=10;r0&&e(i)}var s=t[1].components;if(null!==s)for(var a=0;a0&&e(u)}}(n)}}function ui(e,t){var n=Tt(t,e),r=n[1];!function(e,t){for(var n=t.length;n0&&(e[n-1][4]=r[4]);var o=Qe(e,10+t);ki(r[1],r,!1,null);var s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Ei(e,t){if(!(256&t[2])){var n=t[11];Et(n)&&n.destroyNode&&Pi(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Ii(e[1],e);for(;t;){var n=null;if(gt(t))n=t[13];else{var r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)gt(t)&&Ii(t[1],t),t=Si(t,e);null===t&&(t=e),gt(t)&&Ii(t[1],t),n=t&&t[4]}t=n}}(t)}}function Si(e,t){var n;return gt(e)&&(n=e[6])&&2===n.type?_i(n,e):e[3]===t?null:e[3]}function Ii(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r=0?r[u]():r[-u].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);t[7]=null}}(e,t);var n=t[6];n&&3===n.type&&Et(t[11])&&t[11].destroy();var r=t[17];if(null!==r&&yt(t[3])){r!==t[3]&&bi(r,t);var i=t[19];null!==i&&i.detachView(e)}}}function Oi(e,t,n,r){Et(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function Ai(e,t,n){Et(e)?e.appendChild(t,n):t.appendChild(n)}function xi(e,t,n,r){null!==r?Oi(e,t,n,r):Ai(e,t,n)}function Ti(e,t){return Et(e)?e.parentNode(t):t.parentNode}function Vi(e,t,n,r){var i=function(e,t,n){for(var r=t.parent;null!=r&&(4===r.type||5===r.type);)r=(t=r).parent;if(null==r){var i=n[6];return 2===i.type?mi(i,n):n[0]}if(t&&5===t.type&&4&t.flags)return At(t,n).parentNode;if(2&r.flags){var o=e.data,s=o[o[r.index].directiveStart].encapsulation;if(s!==nt.ShadowDom&&s!==nt.Native)return null}return At(r,n)}(e,r,t);if(null!=i){var o=t[11],s=function(e,t){if(2===e.type){var n=_i(e,t);return null===n?null:Di(n.indexOf(t,10)-10,n)}return 4===e.type||5===e.type?At(e,t):null}(r.parent||t[6],t);if(Array.isArray(n))for(var a=0;a-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Ei(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){var t,n,r,i;t=this._lView[1],n=this._lView,r=e,(i=pi(n)).push(null),t.firstCreatePass&&function(e){return e.cleanup||(e.cleanup=[])}(t).push(r,i.length-1)}},{key:"markForCheck",value:function(){ci(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){hi(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){qt(!0);try{hi(e,t,n)}finally{qt(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,Pi(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView;return null==e[0]?function e(t,n,r,i){for(var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==r;){var s=n[r.index];if(null!==s&&i.push(It(s)),yt(s))for(var a=10;a1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new Ki(e,n,t||Ji(),r)}var Ki=function(){function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var s=[];n&&$e(n,(function(e){return i.processProvider(e,t,n)})),$e([t],(function(e){return i.processInjectorType(e,[],s)})),this.records.set(Me,eo(void 0,this));var a=this.records.get(Gi);this.scope=null!=a?a.value:null,this.source=o||("object"==typeof t?null:pe(t))}return _createClass(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(e){return e.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ne.Default;this.assertNotDestroyed();var r,i=Fe(this);try{if(!(n&ne.SkipSelf)){var o=this.records.get(e);if(void 0===o){var s=("function"==typeof(r=e)||"object"==typeof r&&r instanceof Pe)&&ae(e);o=s&&this.injectableDefInScope(s)?eo(Yi(e),Zi):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&ne.Self?Ji():this.parent).get(e,t=n&ne.Optional&&t===He?null:t)}catch(a){if("NullInjectorError"===a.name){if((a.ngTempTokenPath=a.ngTempTokenPath||[]).unshift(pe(e)),i)throw a;return function(e,t,n,r){var i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=pe(t);if(Array.isArray(t))i=t.map(pe).join(" -> ");else if("object"==typeof t){var o=[];for(var s in t)if(t.hasOwnProperty(s)){var a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):pe(a)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(Re,"\n "))}("\n"+e.message,i,"R3InjectorError",r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(a,e,0,this.source)}throw a}finally{Fe(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach((function(t){return e.get(t)}))}},{key:"toString",value:function(){var e=[];return this.records.forEach((function(t,n){return e.push(pe(n))})),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=me(e)))return!1;var i=le(e),o=null==i&&e.ngModule||void 0,s=void 0===o?e:o,a=-1!==n.indexOf(s);if(void 0!==o&&(i=le(o)),null==i)return!1;if(null!=i.imports&&!a){var u;n.push(s);try{$e(i.imports,(function(e){r.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))}))}finally{}if(void 0!==u)for(var l=function(e){var t=u[e],n=t.ngModule,i=t.providers;$e(i,(function(e){return r.processProvider(e,n,i||Wi)}))},c=0;c0){var n=function(e,t){for(var n=[],r=0;r2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function to(e){return null!==e&&"object"==typeof e&&je in e}function no(e){return"function"==typeof e}var ro=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=Qi(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)},io=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?ro(e,t,""):ro(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=He,e.NULL=new qe,e.\u0275prov=oe({token:e,providedIn:"any",factory:function(){return Ue(Me)}}),e.__NG_ELEMENT_ID__=-1,e}();function oo(e,t,n){var r=n?e.styles:null,i=n?e.classes:null,o=0;if(null!==t)for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:ne.Default,n=jt();return null==n?Ue(e,t):jn(Lt(),n,me(e),t)}function mo(e,t,n){var r=jt();return fo(r,$t(),t)&&Wr(zt(),ln(),r,e,t,r[11],n,!1),mo}function Co(e,t,n,r,i){var o=i?"class":"style";yi(e,n,t.inputs[o],o,r)}function ko(e,t,n,r){var i=jt(),o=zt(),s=20+e,a=i[11],u=i[s]=Nr(t,a,Ht.lFrame.currentNamespace),l=o.firstCreatePass?function(e,t,n,r,i,o,s){var a=t.consts,u=Nt(a,o),l=Mr(t,n[6],e,3,i,u);return $r(t,n,l,Nt(a,s)),null!==l.attrs&&oo(l,l.attrs,!1),null!==l.mergedAttrs&&oo(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(e,o,i,0,t,n,r):o.data[s];Bt(l,!0);var c=l.mergedAttrs;null!==c&&yn(a,u,c);var h=l.classes;null!==h&&Ri(a,u,h);var f=l.styles;null!==f&&Hi(a,u,f),Vi(o,i,u,l),0===Ht.lFrame.elementDepthCount&&sr(u,i),Ht.lFrame.elementDepthCount++,Ct(l)&&(Lr(o,i,l),Fr(o,l,i)),null!==r&&Br(i,l)}function bo(){var e=Lt();Ut()?Gt():Bt(e=e.parent,!1);var t=e;Ht.lFrame.elementDepthCount--;var n=zt();n.firstCreatePass&&(cn(n,e),_t(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Co(n,t,jt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Co(n,t,jt(),t.stylesWithoutHost,!1)}function wo(e,t,n,r){ko(e,t,n,r),bo()}function Eo(e,t,n){var r=jt(),i=zt(),o=e+20,s=i.firstCreatePass?function(e,t,n,r,i){var o=t.consts,s=Nt(o,r),a=Mr(t,n[6],e,4,"ng-container",s);return null!==s&&oo(a,s,!0),$r(t,n,a,Nt(o,i)),null!==t.queries&&t.queries.elementStart(t,a),a}(e,i,r,t,n):i.data[o];Bt(s,!0);var a=r[o]=r[11].createComment("");Vi(i,r,a,s),sr(a,r),Ct(s)&&(Lr(i,r,s),Fr(i,s,r)),null!=n&&Br(r,s)}function So(){var e=Lt(),t=zt();Ut()?Gt():Bt(e=e.parent,!1),t.firstCreatePass&&(cn(t,e),_t(e)&&t.queries.elementEnd(e))}function Io(){return jt()}function Oo(e){return!!e&&"function"==typeof e.then}function Ao(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=jt(),o=zt(),s=Lt();return function(e,t,n,r,i,o){var s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],a=arguments.length>7?arguments[7]:void 0,u=Ct(r),l=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),c=pi(t),h=!0;if(3===r.type){var f=At(r,t),d=a?a(f):rt,v=d.target||f,p=c.length,g=a?function(e){return a(It(e[r.index])).target}:r.index;if(Et(n)){var y=null;if(!a&&u&&(y=function(e,t,n,r){var i=e.cleanup;if(null!=i)for(var o=0;ou?a[u]:null}"string"==typeof s&&(o+=2)}return null}(e,t,i,r.index)),null!==y)(y.__ngLastListenerFn__||y).__ngNextListenerFn__=o,y.__ngLastListenerFn__=o,h=!1;else{o=To(r,t,o,!1);var _=n.listen(d.name||v,i,o);c.push(o,_),l&&l.push(i,g,p,p+1)}}else o=To(r,t,o,!0),v.addEventListener(i,o,s),c.push(o),l&&l.push(i,g,p,s)}var m,C=r.outputs;if(h&&null!==C&&(m=C[i])){var k=m.length;if(k)for(var b=0;b0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(Ht.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Ht.lFrame.contextLView))[8]}(e)}function Do(e,t,n){return No(e,"",t,"",n),Do}function No(e,t,n,r,i){var o=jt(),s=go(o,t,n,r);return s!==mr&&Wr(zt(),ln(),o,e,s,o[11],i,!1),No}var Po=[];function Mo(e,t,n,r,i){for(var o=e[n+1],s=null===t,a=r?Or(o):xr(o),u=!1;0!==a&&(!1===u||s);){var l=e[a+1];Ho(e[a],t)&&(u=!0,e[a+1]=r?Vr(l):Ar(l)),a=r?Or(l):xr(l)}u&&(e[n+1]=r?Ar(o):Vr(o))}function Ho(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Xe(e,t)>=0}var Ro={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function jo(e){return e.substring(Ro.key,Ro.keyEnd)}function zo(e,t){var n=Ro.textEnd;return n===t?-1:(t=Ro.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,Ro.key=t,n),Fo(e,t,n))}function Fo(e,t,n){for(;t=0;n=zo(t,n))Ke(e,jo(t),!0)}function Uo(e,t){return t>=e.expandoStartIndex}function Go(e,t,n,r){var i=e.data;if(null===i[n+1]){var o=i[an()+20],s=Uo(e,n);Qo(o,r)&&null===t&&!s&&(t=!1),t=function(e,t,n,r){var i=function(e){var t=Ht.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e),o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=qo(n=Zo(null,e,t,n,r),t.attrs,r),o=null);else{var s=t.directiveStylingLast;if(-1===s||e[s]!==i)if(n=Zo(i,e,t,n,r),null===o){var a=function(e,t,n){var r=n?t.classBindings:t.styleBindings;if(0!==xr(r))return e[Or(r)]}(e,t,r);void 0!==a&&Array.isArray(a)&&function(e,t,n,r){e[Or(n?t.classBindings:t.styleBindings)]=r}(e,t,r,a=qo(a=Zo(null,e,t,a[1],r),t.attrs,r))}else o=function(e,t,n){for(var r=void 0,i=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(c=!0)}else l=n;if(i)if(0!==u){var f=Or(e[a+1]);e[r+1]=Ir(f,a),0!==f&&(e[f+1]=Tr(e[f+1],r)),e[a+1]=131071&e[a+1]|r<<17}else e[r+1]=Ir(a,0),0!==a&&(e[a+1]=Tr(e[a+1],r)),a=r;else e[r+1]=Ir(u,0),0===a?a=r:e[u+1]=Tr(e[u+1],r),u=r;c&&(e[r+1]=Ar(e[r+1])),Mo(e,l,r,!0),Mo(e,l,r,!1),function(e,t,n,r,i){var o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Xe(o,t)>=0&&(n[r+1]=Vr(n[r+1]))}(t,l,e,r,o),s=Ir(a,u),o?t.classBindings=s:t.styleBindings=s}(i,o,t,n,s,r)}}function Zo(e,t,n,r,i){var o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){var u=e[i],l=Array.isArray(u),c=l?u[1]:u,h=null===c,f=n[i+1];f===mr&&(f=h?Po:void 0);var d=h?Ye(f,r):c===r?f:void 0;if(l&&!Jo(d)&&(d=Ye(u,r)),Jo(d)&&(a=d,s))return a;var v=e[i+1];i=s?Or(v):xr(v)}if(null!==t){var p=o?t.residualClasses:t.residualStyles;null!=p&&(a=Ye(p,r))}return a}function Jo(e){return void 0!==e}function Qo(e,t){return 0!=(e.flags&(t?16:32))}function Ko(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=jt(),r=zt(),i=e+20,o=r.firstCreatePass?Mr(r,n[6],e,3,null,null):r.data[i],s=n[i]=function(e,t){return Et(t)?t.createText(e):t.createTextNode(e)}(t,n[11]);Vi(r,n,s,o),Bt(o,!1)}function Yo(e){return Xo("",e,""),Yo}function Xo(e,t,n){var r=jt(),i=go(r,e,t,n);return i!==mr&&function(e,t,n){var r=Ot(t,e),i=e[11];Et(i)?i.setValue(r,n):r.textContent=n}(r,an(),i),Xo}function es(e,t,n){!function(e,t,n,r){var i=zt(),o=Jt(2);i.firstUpdatePass&&Go(i,null,o,!0);var s=jt();if(n!==mr&&fo(s,o,n)){var a=i.data[an()+20];if(Qo(a,!0)&&!Uo(i,o)){var u=a.classesWithoutHost;null!==u&&(n=ge(u,n||"")),Co(i,a,s,n,!0)}else!function(e,t,n,r,i,o,s,a){i===mr&&(i=Po);for(var u=0,l=0,c=0=0;r--){var i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=mn(i.hostAttrs,n=mn(n,i.hostAttrs))}}(r)}function rs(e){return e===rt?{}:e===it?[]:e}function is(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function os(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function ss(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,r){t(e,r),n(e,r)}:t}var as=function(){function e(t,n,r){_classCallCheck(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return _createClass(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function us(e){e.type.prototype.ngOnChanges&&(e.setInput=ls,e.onChanges=function(){var e=cs(this),t=e&&e.current;if(t){var n=e.previous;if(n===rt)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}})}function ls(e,t,n,r){var i=cs(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:rt,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],u=s[a];o[a]=new as(u&&u.currentValue,t,s===rt),e[r]=t}function cs(e){return e.__ngSimpleChanges__||null}function hs(e,t,n,r,i){if(e=me(e),Array.isArray(e))for(var o=0;o>16;if(no(e)||!e.multi){var v=new gn(l,i,_o),p=vs(u,t,i?h:h+d,f);-1===p?(Rn(Nn(c,a),s,u),fs(s,e,t.length),t.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(v),a.push(v)):(n[p]=v,a[p]=v)}else{var g=vs(u,t,h+d,f),y=vs(u,t,h,h+d),_=g>=0&&n[g],m=y>=0&&n[y];if(i&&!m||!i&&!_){Rn(Nn(c,a),s,u);var C=function(e,t,n,r,i){var o=new gn(e,n,_o);return o.multi=[],o.index=t,o.componentProviders=0,ds(o,i,r&&!n),o}(i?gs:ps,n.length,i,r,l);!i&&m&&(n[y].providerFactory=C),fs(s,e,t.length,0),t.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(C),a.push(C)}else fs(s,e,g>-1?g:y,ds(n[i?y:g],l,!i&&r));!i&&r&&m&&n[y].componentProviders++}}}function fs(e,t,n,r){var i=no(t);if(i||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var s=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){var a=s.indexOf(n);-1===a?s.push(n,[r,o]):s[a+1].push(r,o)}else s.push(n,o)}}}function ds(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function vs(e,t,n,r){for(var i=n;i1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return function(e,t,n){var r=zt();if(r.firstCreatePass){var i=kt(e);hs(n,r.data,r.blueprint,i,!0),hs(t,r.data,r.blueprint,i,!1)}}(n,r?r(e):e,t)}}}us.ngInherit=!0;var ms=function e(){_classCallCheck(this,e)},Cs=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(pe(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),ks=function(){var e=function e(){_classCallCheck(this,e)};return e.NULL=new Cs,e}(),bs=function(){var e=function e(t){_classCallCheck(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=function(){return ws(e)},e}(),ws=function(e){return Ui(e,Lt(),jt())},Es=function e(){_classCallCheck(this,e)},Ss=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({}),Is=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return Os()},e}(),Os=function(){var e=jt(),t=Tt(Lt().index,e);return function(e){var t=e[11];if(Et(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(gt(t)?t:e)},As=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=oe({token:e,providedIn:"root",factory:function(){return null}}),e}(),xs=new function e(t){_classCallCheck(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}("10.0.2"),Ts=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return lo(e)}},{key:"create",value:function(e){return new Ds(e)}}]),e}(),Vs=function(e,t){return t},Ds=function(){function e(t){_classCallCheck(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Vs}return _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex0;)this.remove(this.length-1)}},{key:"get",value:function(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){var s=o.get(We,null);s&&(i=s)}var a=e.create(o,r,void 0,i);return this.insert(a.hostView,t),a}},{key:"insert",value:function(e,t){var n=e._lView,r=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),yt(n[3])){var i=this.indexOf(e);if(-1!==i)this.detach(i);else{var o=n[3],s=new Fi(o,o[6],o[3]);s.detach(s.indexOf(e))}}var a=this._adjustIndex(t);return function(e,t,n,r){var i=10+r,o=n.length;r>0&&(n[i-1][4]=t),r1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return Ui(t,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new Gn(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var e=Hn(this._hostTNode,this._hostView),t=En(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var r=n.parent.injectorIndex,i=n.parent;null!=i.parent&&r==i.parent.injectorIndex;)i=i.parent;return i}for(var o=wn(e),s=t,a=t[6];o>1;)a=(s=s[15])[6],o--;return a}(e,this._hostView,this._hostTNode);return kn(e)&&null!=n?new Gn(n,t):new Gn(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-10}}]),r}(e));var o=r[n.index];if(yt(o))i=o;else{var s;if(4===n.type)s=It(o);else if(s=r[11].createComment(""),bt(r)){var a=r[11],u=At(n,r);Oi(a,Ti(a,u),s,function(e,t){return Et(e)?e.nextSibling(t):t.nextSibling}(a,u))}else Vi(r[1],r,s,n);r[n.index]=i=si(o,r,s,n),li(r,i)}return new Fi(i,n,r)}(e,t,Lt(),jt())},Js={},Qs=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).ngModule=e,r}return _createClass(n,[{key:"resolveComponentFactory",value:function(e){var t=dt(e);return new Xs(t,this.ngModule)}}]),n}(ks);function Ks(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var Ys=new Pe("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return On}}),Xs=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).componentDef=e,i.ngModule=r,i.componentType=e.type,i.selector=e.selectors.map(_r).join(","),i.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],i.isBoundToModule=!!r,i}return _createClass(n,[{key:"create",value:function(e,t,n,r){var i,o,s=(r=r||this.ngModule)?function(e,t){return{get:function(n,r,i){var o=e.get(n,Js,i);return o!==Js||r===Js?o:t.get(n,r,i)}}}(e,r.injector):e,a=s.get(Es,St),u=s.get(As,null),l=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(Et(e))return e.selectRootElement(t,n===nt.ShadowDom);var r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(l,n,this.componentDef.encapsulation):Nr(c,a.createRenderer(null,this.componentDef),function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),f=this.componentDef.onPush?576:528,d={components:[],scheduler:On,clean:vi,playerHandler:null,flags:0},v=Gr(0,-1,null,1,0,null,null,null,null,null),p=Pr(null,v,d,f,null,null,a,l,u,s);en(p,null);try{var g=function(e,t,n,r,i,o){var s=n[1];n[20]=e;var a=Mr(s,null,0,3,null,null),u=a.mergedAttrs=t.hostAttrs;null!==u&&(oo(a,u,!0),null!==e&&(yn(i,e,u),null!==a.classes&&Ri(i,e,a.classes),null!==a.styles&&Hi(i,e,a.styles)));var l=r.createRenderer(e,t),c=Pr(n,Ur(t),null,t.onPush?64:16,n[20],a,r,l,void 0);return s.firstCreatePass&&(Rn(Nn(a,n),s,t.type),Xr(s,a),ti(a,n.length,1)),li(n,c),n[20]=c}(h,this.componentDef,p,a,l);if(h)if(n)yn(l,h,["ng-version",xs.full]);else{var y=function(e){for(var t=[],n=[],r=1,i=2;r0&&Ri(l,h,m.join(" "))}if(o=xt(v,0),void 0!==t)for(var C=o.projection=[],k=0;k null != ".concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}var aa=new Map,ua=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;_classCallCheck(this,n),(i=t.call(this))._parent=r,i._bootstrapComponents=[],i.injector=_assertThisInitialized(i),i.destroyCbs=[],i.componentFactoryResolver=new Qs(_assertThisInitialized(i));var o=pt(e),s=e[Ve]||null;return s&&sa(s),i._bootstrapComponents=xn(o.bootstrap),i._r3Injector=Qi(e,r,[{provide:We,useValue:_assertThisInitialized(i)},{provide:ks,useValue:i.componentFactoryResolver}],pe(e)),i._r3Injector._resolveInjectorDefTypes(),i.instance=i.get(e),i}return _createClass(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:io.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ne.Default;return e===io||e===We||e===Me?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(We),la=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).moduleType=e,null!==pt(e)&&function e(t){if(null!==t.\u0275mod.id){var n=t.\u0275mod.id;(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(pe(t)," vs ").concat(pe(t.name)))})(n,aa.get(n),t),aa.set(n,t)}var r=t.\u0275mod.imports;r instanceof Function&&(r=r()),r&&r.forEach((function(t){return e(t)}))}(e),r}return _createClass(n,[{key:"create",value:function(e){return new ua(this.moduleType,e)}}]),n}(function(){return function e(){_classCallCheck(this,e)}}());function ca(e,t,n,r){return function(e,t,n,r,i,o){var s=t+n;return fo(e,s,i)?ho(e,s+1,o?r.call(o,i):r(i)):da(e,s+1)}(jt(),Wt(),e,t,n,r)}function ha(e,t,n,r,i){return function(e,t,n,r,i,o,s){var a=t+n;return vo(e,a,i,o)?ho(e,a+2,s?r.call(s,i,o):r(i,o)):da(e,a+2)}(jt(),Wt(),e,t,n,r,i)}function fa(e,t,n,r,i,o){return va(jt(),Wt(),e,t,n,r,i,o)}function da(e,t){var n=e[t];return n===mr?void 0:n}function va(e,t,n,r,i,o,s,a){var u=t+n;return function(e,t,n,r,i){var o=vo(e,t,n,r);return fo(e,t+2,i)||o}(e,u,i,o,s)?ho(e,u+3,a?r.call(a,i,o,s):r(i,o,s)):da(e,u+3)}var pa=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(e=t.call(this)).__isAsync=r,e}return _createClass(n,[{key:"emit",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,r){var i,o=function(e){return null},s=function(){return null};e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},t&&(o=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)}),r&&(s=this.__isAsync?function(){setTimeout((function(){return r()}))}:function(){r()}));var a=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,i,o,s);return e instanceof f&&e.add(a),a}}]),n}(I),ga=new Pe("Application Initializer"),ya=function(){var e=function(){function e(t){var n=this;_classCallCheck(this,e),this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(e,t){n.resolve=e,n.reject=t}))}return _createClass(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(e){return e.timeoutId!==i})),e(r._didWork,r.getPendingTasks())}),t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ue(Ra))},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e}(),Wa=function(){var e=function(){function e(){_classCallCheck(this,e),this._applications=new Map,$a.addToWindow(this)}return _createClass(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return $a.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e}(),$a=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Ja=new Pe("AllowMultipleToken");function Qa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: "+t,i=new Pe(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Ka();if(!o||o.injector.get(Ja,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var s=n.concat(t).concat({provide:i,useValue:!0},{provide:Gi,useValue:"platform"});!function(e){if(Ga&&!Ga.destroyed&&!Ga.injector.get(Ja,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ga=e.get(Ya);var t=e.get(ka,null);t&&t.forEach((function(e){return e()}))}(io.create({providers:s,name:r}))}return function(e){var t=Ka();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function Ka(){return Ga&&!Ga.destroyed?Ga:null}var Ya=function(){var e=function(){function e(t){_classCallCheck(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,i=this,o=(n=t?t.ngZone:void 0,r=t&&t.ngZoneEventCoalescing||!1,"noop"===n?new Za:("zone.js"===n?void 0:n)||new Ra({enableLongStackTrace:tr(),shouldCoalesceEventChangeDetection:r})),s=[{provide:Ra,useValue:o}];return o.run((function(){var t=io.create({providers:s,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(Qn,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return nu(i._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(e){r.handleError(e)}})})),function(e,t,r){try{var o=((s=n.injector.get(ya)).runInitializers(),s.donePromise.then((function(){return sa(n.injector.get(Sa,"en-US")||"en-US"),i._moduleDoBootstrap(n),n})));return Oo(o)?o.catch((function(n){throw t.runOutsideAngular((function(){return e.handleError(n)})),n})):o}catch(a){throw t.runOutsideAngular((function(){return e.handleError(a)})),a}var s}(r,o)}))}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Xa({},n);return function(e,t,n){var r=new la(n);return Promise.resolve(r)}(0,0,e).then((function(e){return t.bootstrapModuleFactory(e,r)}))}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(tu);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((function(e){return t.bootstrap(e)}));else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(pe(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(e){return e.destroy()})),this._destroyListeners.forEach((function(e){return e()})),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ue(io))},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e}();function Xa(e,t){return Array.isArray(t)?t.reduce(Xa,e):Object.assign(Object.assign({},e),t)}var eu,tu=((eu=function(){function e(t,n,r,i,o,s){var a=this;_classCallCheck(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=tr(),this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run((function(){a.tick()}))}});var u=new C((function(e){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular((function(){e.next(a._stable),e.complete()}))})),l=new C((function(e){var t;a._zone.runOutsideAngular((function(){t=a._zone.onStable.subscribe((function(){Ra.assertNotInAngularZone(),Ha((function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,e.next(!0))}))}))}));var n=a._zone.onUnstable.subscribe((function(){Ra.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof s&&(i=t.pop()),null===o&&1===t.length&&t[0]instanceof C?t[0]:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof n?function(i){return i.pipe(e((function(e,r){return z(t(e,r)).pipe(M((function(t,i){return n(e,t,r,i)})))}),r))}:("number"==typeof n&&(r=n),function(e){return e.lift(new F(t,r))})}(B,e)}(i)(function(e,t){return t?j(e,t):new C(x(e))}(t,o))}(u,l.pipe((function(e){return U()((t=J,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,W);return r.source=e,r.subjectFactory=n,r})(e));var t})))}return _createClass(e,[{key:"bootstrap",value:function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof ms?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(We),o=n.create(io.NULL,[],t||n.selector,i);o.onDestroy((function(){r._unloadComponent(o)}));var s=o.injector.get(qa,null);return s&&o.injector.get(Wa).registerApplication(o.location.nativeElement,s),this._loadComponent(o),tr()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=_createForOfIteratorHelper(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(o){n.e(o)}finally{n.f()}if(this._enforceNoNewChanges){var r,i=_createForOfIteratorHelper(this._views);try{for(i.s();!(r=i.n()).done;)r.value.checkNoChanges()}catch(o){i.e(o)}finally{i.f()}}}catch(s){this._zone.runOutsideAngular((function(){return e._exceptionHandler.handleError(s)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;nu(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(wa,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),nu(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(e){return e.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||eu)(Ue(Ra),Ue(Ea),Ue(io),Ue(Qn),Ue(ks),Ue(ya))},eu.\u0275prov=oe({token:eu,factory:eu.\u0275fac}),eu);function nu(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var ru=Qa(null,"core",[{provide:ba,useValue:"unknown"},{provide:Ya,deps:[io]},{provide:Wa,deps:[]},{provide:Ea,deps:[]}]),iu=[{provide:tu,useClass:tu,deps:[Ra,Ea,io,Qn,ks,ya]},{provide:Ys,deps:[Ra],useFactory:function(e){var t=[];return e.onStable.subscribe((function(){for(;t.length;)t.pop()()})),function(e){t.push(e)}}},{provide:ya,useClass:ya,deps:[[new X,ga]]},{provide:Pa,useClass:Pa,deps:[]},ma,{provide:Fs,useFactory:function(){return Us},deps:[]},{provide:Ls,useFactory:function(){return Gs},deps:[]},{provide:Sa,useFactory:function(e){return sa(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new Y(Sa),new X,new te]]},{provide:Ia,useValue:"USD"}],ou=function(){var e=function e(t){_classCallCheck(this,e)};return e.\u0275mod=ct({type:e}),e.\u0275inj=se({factory:function(t){return new(t||e)(Ue(tu))},providers:iu}),e}(),su=null;function au(){return su}var uu,lu,cu,hu,fu=new Pe("DocumentToken"),du=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),vu=function e(){_classCallCheck(this,e)},pu=((lu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).locale=e,r}return _createClass(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=ia(t);if(n)return n;var r=t.split("-")[0];if(n=ia(r))return n;if("en"===r)return na;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[oa.PluralCase]}(t||this.locale)(e)){case du.Zero:return"zero";case du.One:return"one";case du.Two:return"two";case du.Few:return"few";case du.Many:return"many";default:return"other"}}}]),n}(vu)).\u0275fac=function(e){return new(e||lu)(Ue(Sa))},lu.\u0275prov=oe({token:lu,factory:lu.\u0275fac}),lu),gu=((uu=function(){function e(t,n,r,i){_classCallCheck(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachChangedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachRemovedItem((function(e){e.previousValue&&t._toggleClass(e.key,!1)}))}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+pe(e.item));t._toggleClass(e.item,!0)})),e.forEachRemovedItem((function(e){return t._toggleClass(e.item,!1)}))}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!0)})):Object.keys(e).forEach((function(n){return t._toggleClass(n,!!e[n])})))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!1)})):Object.keys(e).forEach((function(e){return t._toggleClass(e,!1)})))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach((function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)}))}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(lo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}()).\u0275fac=function(e){return new(e||uu)(_o(Fs),_o(Ls),_o(bs),_o(Is))},uu.\u0275dir=ft({type:uu,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),uu),yu=function(){function e(t,n,r,i){_classCallCheck(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}return _createClass(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),_u=((cu=function(){function e(t,n,r){_classCallCheck(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation((function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new yu(null,t._ngForOf,-1,-1),null===i?void 0:i),s=new mu(e,o);n.push(s)}else if(null==i)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var a=t._viewContainer.get(r);t._viewContainer.move(a,i);var u=new mu(e,a);n.push(u)}}));for(var r=0;re?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return qu(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return qu(e.value)||Qu.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){return qu(t.value)||!Wu(t.value)?null:t.value.lengthe?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}},{key:"pattern",value:function(t){return t?("string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(qu(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(Yu);return 0==t.length?null:function(e){return el(function(e,t){return t.map((function(t){return t(e)}))}(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(Yu);return 0==t.length?null:function(e){return function(){for(var e=arguments.length,t=new Array(e),n=0;n=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach((function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)}))}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}]),e}()).\u0275fac=function(e){return new(e||ol)},ol.\u0275prov=oe({token:ol,factory:ol.\u0275fac}),ol),hl=((il=function(){function e(t,n,r,i){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this._registry=r,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return _createClass(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(Gu),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}},{key:"_throwNameError",value:function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}}]),e}()).\u0275fac=function(e){return new(e||il)(_o(Is),_o(bs),_o(cl),_o(io))},il.\u0275dir=ft({type:il,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&Ao("change",(function(){return t.onChange()}))("blur",(function(){return t.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[_s([ll])]}),il),fl={provide:Nu,useExisting:_e((function(){return dl})),multi:!0},dl=((sl=function(){function e(t,n){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return _createClass(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||sl)(_o(Is),_o(bs))},sl.\u0275dir=ft({type:sl,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&Ao("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[_s([fl])]}),sl),vl='\n \n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',pl='\n ',gl={provide:Nu,useExisting:_e((function(){return Cl})),multi:!0};function yl(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var _l,ml,Cl=((ml=function(){function e(t,n){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Object.is}return _createClass(e,[{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=yl(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var r=[];if(void 0!==n.selectedOptions)for(var i=n.selectedOptions,o=0;o1?"path: '".concat(e.path.join(" -> "),"'"):e.path[0]?"name: '".concat(e.path,"'"):"unspecified name attribute",new Error("".concat(t," ").concat(n))}function Dl(e){return null!=e?Ku.compose(e.map(tl)):null}function Nl(e){return null!=e?Ku.composeAsync(e.map(nl)):null}var Pl=[Mu,dl,ul,Cl,Il,hl];function Ml(e){var t=Rl(e)?e.validators:e;return Array.isArray(t)?Dl(t):t||null}function Hl(e,t){var n=Rl(t)?t.asyncValidators:e;return Array.isArray(n)?Nl(n):n||null}function Rl(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var jl,zl,Fl,Ll,Bl,Ul,Gl,Zl,ql,Wl,$l=function(){function e(t,n){_classCallCheck(this,e),this.validator=t,this.asyncValidator=n,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return _createClass(e,[{key:"setValidators",value:function(e){this.validator=Ml(e)}},{key:"setAsyncValidators",value:function(e){this.asyncValidator=Hl(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(e){return e.markAllAsTouched()}))}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(e){e.markAsUntouched({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(e){e.markAsPristine({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))})),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!0)}))}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild((function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!1)}))}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild((function(t){return t._updateTreeValidity(e)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=Xu(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){return t.setErrors(n,{emitEvent:e})}))}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var r=e;return t.forEach((function(e){r=r instanceof Ql?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof Kl&&r.at(e)||null})),r}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new pa,this.statusChanges=new pa}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls((function(t){return t.status===e}))}},{key:"_anyControlsDirty",value:function(){return this._anyControls((function(e){return e.dirty}))}},{key:"_anyControlsTouched",value:function(){return this._anyControls((function(e){return e.touched}))}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){Rl(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}}]),e}(),Jl=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(e=t.call(this,Ml(i),Hl(o,i)))._onChange=[],e._applyFormState(r),e._setUpdateStrategy(i),e.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),e._initObservables(),e}return _createClass(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach((function(e){return e(t.value,!1!==n.emitViewToModelChange)})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}($l),Ql=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,Ml(r),Hl(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return _createClass(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach((function(r){t._throwIfControlMissing(r),t.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(e).forEach((function(r){t.controls[r]&&t.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},(function(e,t,n){return e[n]=t instanceof Jl?t.value:t.getRawValue(),e}))}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,(function(e,t){return!!t._syncPendingControls()||e}));return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach((function(n){return e(t.controls[n],n)}))}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild((function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)}))}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))}))}}]),n}($l),Kl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,Ml(r),Hl(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return _createClass(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach((function(e,r){t._throwIfControlMissing(r),t.at(r).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e,r){t.at(r)&&t.at(r).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map((function(e){return e instanceof Jl?e.value:e.getRawValue()}))}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild((function(e){return e._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce((function(e,t){return!!t._syncPendingControls()||e}),!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)}},{key:"_forEachChild",value:function(e){this.controls.forEach((function(t,n){e(t,n)}))}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter((function(t){return t.enabled||e.disabled})).map((function(e){return e.value}))}},{key:"_anyControls",value:function(e){return this.controls.some((function(t){return t.enabled&&e(t)}))}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild((function(t){return e._registerControl(t)}))}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))}))}},{key:"_allControlsDisabled",value:function(){var e,t=_createForOfIteratorHelper(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}($l),Yl={provide:Fu,useExisting:_e((function(){return ec}))},Xl=Promise.resolve(null),ec=((zl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).submitted=!1,i._directives=[],i.ngSubmit=new pa,i.form=new Ql({},Dl(e),Nl(r)),i}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(e){var t=this;Xl.then((function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),xl(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)}))}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;Xl.then((function(){var n,r,i,o=t._findContainer(e.path);o&&o.removeControl(e.name),n=t._directives,r=e,(i=n.indexOf(r))>-1&&n.splice(i,1)}))}},{key:"addFormGroup",value:function(e){var t=this;Xl.then((function(){var n=t._findContainer(e.path),r=new Ql({});(function(e,t){null==e&&Vl(t,"Cannot find control with"),e.validator=Ku.compose([e.validator,t.validator]),e.asyncValidator=Ku.composeAsync([e.asyncValidator,t.asyncValidator])})(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(e){var t=this;Xl.then((function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)}))}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;Xl.then((function(){n.form.get(e.path).setValue(t)}))}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,t=this._directives,this.form._syncPendingControls(),t.forEach((function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})),this.ngSubmit.emit(e),!1;var t}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),n}(Fu)).\u0275fac=function(e){return new(e||zl)(_o($u,10),_o(Ju,10))},zl.\u0275dir=ft({type:zl,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&Ao("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_s([Yl]),ns]}),zl),tc=((jl=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"_checkParentType",value:function(){}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return Al(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return Dl(this._validators)}},{key:"asyncValidator",get:function(){return Nl(this._asyncValidators)}}]),n}(Fu)).\u0275fac=function(e){return nc(e||jl)},jl.\u0275dir=ft({type:jl,features:[ns]}),jl),nc=qn(tc),rc=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"modelParentException",value:function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n \n \n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n \n \n \n
\n ')}},{key:"formGroupNameException",value:function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ".concat(vl,"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ").concat(pl))}},{key:"missingNameException",value:function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')}},{key:"modelGroupParentException",value:function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ".concat(vl,"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ").concat(pl))}}]),e}(),ic={provide:Fu,useExisting:_e((function(){return oc}))},oc=((Fl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this))._parent=e,o._validators=r,o._asyncValidators=i,o}return _createClass(n,[{key:"_checkParentType",value:function(){this._parent instanceof n||this._parent instanceof ec||rc.modelGroupParentException()}}]),n}(tc)).\u0275fac=function(e){return new(e||Fl)(_o(Fu,5),_o($u,10),_o(Ju,10))},Fl.\u0275dir=ft({type:Fl,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[_s([ic]),ns]}),Fl),sc={provide:Gu,useExisting:_e((function(){return uc}))},ac=Promise.resolve(null),uc=((Ul=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var s;return _classCallCheck(this,n),(s=t.call(this)).control=new Jl,s._registered=!1,s.update=new pa,s._parent=e,s._rawValidators=r||[],s._rawAsyncValidators=i||[],s.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t)||Vl(e,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,i=void 0;return t.forEach((function(t){var o;t.constructor===ju?n=t:(o=t,Pl.some((function(e){return o.constructor===e}))?(r&&Vl(e,"More than one built-in value accessor matches form control with"),r=t):(i&&Vl(e,"More than one custom value accessor matches form control with"),i=t))})),i||r||n||(Vl(e,"No valid value accessor for form control with"),null)}(_assertThisInitialized(s),o),s}return _createClass(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){xl(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){!(this._parent instanceof oc)&&this._parent instanceof tc?rc.formGroupNameException():this._parent instanceof oc||this._parent instanceof ec||rc.modelParentException()}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||rc.missingNameException()}},{key:"_updateValue",value:function(e){var t=this;ac.then((function(){t.control.setValue(e,{emitViewToModelChange:!1})}))}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;ac.then((function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()}))}},{key:"path",get:function(){return this._parent?Al(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return Dl(this._rawValidators)}},{key:"asyncValidator",get:function(){return Nl(this._rawAsyncValidators)}}]),n}(Gu)).\u0275fac=function(e){return new(e||Ul)(_o(Fu,9),_o($u,10),_o(Ju,10),_o(Nu,10))},Ul.\u0275dir=ft({type:Ul,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[_s([sc]),ns,us]}),Ul),lc=((Bl=function e(){_classCallCheck(this,e)}).\u0275mod=ct({type:Bl}),Bl.\u0275inj=se({factory:function(e){return new(e||Bl)}}),Bl),cc=((Ll=function e(){_classCallCheck(this,e)}).\u0275mod=ct({type:Ll}),Ll.\u0275inj=se({factory:function(e){return new(e||Ll)},providers:[cl],imports:[lc]}),Ll),hc=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=fc||(fc=document.querySelector("base"))?fc.getAttribute("href"):null;return null==n?null:(t=n,Gl||(Gl=document.createElement("a")),Gl.setAttribute("href",t),"/"===Gl.pathname.charAt(0)?Gl.pathname:"/"+Gl.pathname)}},{key:"resetBaseElement",value:function(){fc=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return function(e,t){t=encodeURIComponent(t);var n,r=_createForOfIteratorHelper(e.split(";"));try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.indexOf("="),s=_slicedToArray(-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],2),a=s[0],u=s[1];if(a.trim()===t)return decodeURIComponent(u)}}catch(l){r.e(l)}finally{r.f()}return null}(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,su||(su=e)}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(function(){return function e(){_classCallCheck(this,e)}}())),fc=null,dc=new Pe("TRANSITION_ID"),vc=[{provide:ga,useFactory:function(e,t,n){return function(){n.get(ya).donePromise.then((function(){var n=au();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter((function(t){return t.getAttribute("ng-transition")===e})).forEach((function(e){return n.remove(e)}))}))}},deps:[dc,fu,io],multi:!0}],pc=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){Ie.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Ie.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Ie.getAllAngularRootElements=function(){return e.getAllRootElements()},Ie.frameworkStabilizers||(Ie.frameworkStabilizers=[]),Ie.frameworkStabilizers.push((function(e){var t=Ie.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach((function(e){e.whenStable(i)}))}))}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?au().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,$a=t}}]),e}(),gc=new Pe("EventManagerPlugins"),yc=((Zl=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach((function(e){return e.manager=r})),this._plugins=t.slice().reverse()}return _createClass(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r-1&&(t.splice(n,1),o+=e+".")})),o+=i,0!=t.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Hc.hasOwnProperty(t)&&(t=Hc[t]))}return Mc[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Pc.forEach((function(r){r!=n&&(0,Rc[r])(e)&&(t+=r+".")})),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded((function(){return t(i)}))}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(_c)).\u0275fac=function(e){return new(e||Oc)(Ue(fu))},Oc.\u0275prov=oe({token:Oc,factory:Oc.\u0275fac}),Oc),zc=Qa(ru,"browser",[{provide:ba,useValue:"browser"},{provide:ka,useValue:function(){hc.makeCurrent(),pc.init()},multi:!0},{provide:fu,useFactory:function(){return function(e){wt=e}(document),document},deps:[]}]),Fc=[[],{provide:Gi,useValue:"root"},{provide:Qn,useFactory:function(){return new Qn},deps:[]},{provide:gc,useClass:Nc,multi:!0,deps:[fu,Ra,ba]},{provide:gc,useClass:jc,multi:!0,deps:[fu]},[],{provide:xc,useClass:xc,deps:[yc,Cc,_a]},{provide:Es,useExisting:xc},{provide:mc,useExisting:Cc},{provide:Cc,useClass:Cc,deps:[fu]},{provide:qa,useClass:qa,deps:[Ra]},{provide:yc,useClass:yc,deps:[gc,Ra]},[]],Lc=((Ac=function(){function e(t){if(_classCallCheck(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return _createClass(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:_a,useValue:t.appId},{provide:dc,useExisting:_a},vc]}}}]),e}()).\u0275mod=ct({type:Ac}),Ac.\u0275inj=se({factory:function(e){return new(e||Ac)(Ue(Ac,12))},providers:Fc,imports:[Ou,ou]}),Ac);"undefined"!=typeof window&&window;var Bc,Uc=((Bc=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"nativeWindow",get:function(){return window}}]),e}()).\u0275fac=function(e){return new(e||Bc)},Bc.\u0275prov=oe({token:Bc,factory:Bc.\u0275fac}),Bc),Gc=function e(){_classCallCheck(this,e),this.riskHotspotsSettings=null,this.coverageInfoSettings=null},Zc=function e(){_classCallCheck(this,e),this.groupingMaximum=0,this.grouping=0,this.historyComparisionDate="",this.historyComparisionType="",this.filter="",this.sortBy="name",this.sortOrder="asc",this.collapseStates=[]},qc=function(){function e(t){_classCallCheck(this,e),this.et="",this.et=t.et,this.cl=t.cl,this.ucl=t.ucl,this.cal=t.cal,this.tl=t.tl,this.lcq=t.lcq,this.cb=t.cb,this.tb=t.tb,this.bcq=t.bcq}return _createClass(e,[{key:"coverageRatioText",get:function(){return 0===this.tl?"-":this.cl+"/"+this.cal}},{key:"branchCoverageRatioText",get:function(){return 0===this.tb?"-":this.cb+"/"+this.tb}}]),e}(),Wc=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"roundNumber",value:function(e,t){return Math.floor(e*Math.pow(10,t))/Math.pow(10,t)}},{key:"getNthOrLastIndexOf",value:function(e,t,n){for(var r=0,i=-1,o=-1;r=this.currentHistoricCoverage.lcq)return!1}else if("branchCoverageIncreaseOnly"===t){var i=this.branchCoverage;if(isNaN(i)||i<=this.currentHistoricCoverage.bcq)return!1}else if("branchCoverageDecreaseOnly"===t){var o=this.branchCoverage;if(isNaN(o)||o>=this.currentHistoricCoverage.bcq)return!1}return!0}},{key:"updateCurrentHistoricCoverage",value:function(e){if(this.currentHistoricCoverage=null,""!==e)for(var t=0;t-1&&null===r,i}return _createClass(n,[{key:"visible",value:function(e,t){if(""!==e&&this.name.toLowerCase().indexOf(e.toLowerCase())>-1)return!0;for(var n=0;n0,this.redVisible=!isNaN(e)&&100-Math.round(e)>0,this.greenClass="covered"+Math.round(e),this.redClass="covered"+(100-Math.round(e))}}]),e}()).\u0275fac=function(e){return new(e||eh)},eh.\u0275cmp=st({type:eh,selectors:[["coverage-bar"]],inputs:{percentage:"percentage"},decls:4,vars:3,consts:[[1,"coverage"],["class","gray covered100",4,"ngIf"],[3,"class",4,"ngIf"],[1,"gray","covered100"]],template:function(e,t){1&e&&(ko(0,"table",0),yo(1,Kc,1,0,"td",1),yo(2,Yc,1,3,"td",2),yo(3,Xc,1,3,"td",2),bo()),2&e&&(Er(1),mo("ngIf",t.grayVisible),Er(1),mo("ngIf",t.greenVisible),Er(1),mo("ngIf",t.redVisible))},directives:[Cu],encapsulation:2,changeDetection:0}),eh),nh=["codeelement-row",""];function rh(e,t){if(1&e&&(ko(0,"th",2),Ko(1),bo()),2&e){var n=Vo();Er(1),Yo(n.element.coveredBranches)}}function ih(e,t){if(1&e&&(ko(0,"th",2),Ko(1),bo()),2&e){var n=Vo();Er(1),Yo(n.element.totalBranches)}}function oh(e,t){if(1&e&&(ko(0,"th",3),Ko(1),bo()),2&e){var n=Vo();mo("title",n.element.branchCoverageRatioText),Er(1),Yo(n.element.branchCoveragePercentage)}}function sh(e,t){if(1&e&&(ko(0,"th",2),wo(1,"coverage-bar",4),bo()),2&e){var n=Vo();Er(1),mo("percentage",n.element.branchCoverage)}}var ah,uh,lh=function(e,t){return{"icon-plus":e,"icon-minus":t}},ch=((ah=function e(){_classCallCheck(this,e),this.element=null,this.collapsed=!1,this.branchCoverageAvailable=!1}).\u0275fac=function(e){return new(e||ah)},ah.\u0275cmp=st({type:ah,selectors:[["","codeelement-row",""]],inputs:{element:"element",collapsed:"collapsed",branchCoverageAvailable:"branchCoverageAvailable"},attrs:nh,decls:20,vars:16,consts:[["href","#",3,"click"],[3,"ngClass"],[1,"right"],[1,"right",3,"title"],[3,"percentage"],["class","right",4,"ngIf"],["class","right",3,"title",4,"ngIf"]],template:function(e,t){1&e&&(ko(0,"th"),ko(1,"a",0),Ao("click",(function(e){return t.element.toggleCollapse(e)})),wo(2,"i",1),Ko(3),bo(),bo(),ko(4,"th",2),Ko(5),bo(),ko(6,"th",2),Ko(7),bo(),ko(8,"th",2),Ko(9),bo(),ko(10,"th",2),Ko(11),bo(),ko(12,"th",3),Ko(13),bo(),ko(14,"th",2),wo(15,"coverage-bar",4),bo(),yo(16,rh,2,1,"th",5),yo(17,ih,2,1,"th",5),yo(18,oh,2,2,"th",6),yo(19,sh,2,1,"th",5)),2&e&&(Er(2),mo("ngClass",ha(13,lh,t.element.collapsed,!t.element.collapsed)),Er(1),Xo(" ",t.element.name,""),Er(2),Yo(t.element.coveredLines),Er(2),Yo(t.element.uncoveredLines),Er(2),Yo(t.element.coverableLines),Er(2),Yo(t.element.totalLines),Er(1),mo("title",t.element.coverageRatioText),Er(1),Yo(t.element.coveragePercentage),Er(2),mo("percentage",t.element.coverage),Er(1),mo("ngIf",t.branchCoverageAvailable),Er(1),mo("ngIf",t.branchCoverageAvailable),Er(1),mo("ngIf",t.branchCoverageAvailable),Er(1),mo("ngIf",t.branchCoverageAvailable))},directives:[gu,th,Cu],encapsulation:2,changeDetection:0}),ah),hh=["coverage-history-chart",""],fh=((uh=function(){function e(){_classCallCheck(this,e),this.path=null,this._historicCoverages=[]}return _createClass(e,[{key:"historicCoverages",get:function(){return this._historicCoverages},set:function(e){if(this._historicCoverages=e,e.length>1){for(var t="",n=0;n1),Er(1),mo("ngIf",null!==n.clazz.currentHistoricCoverage),Er(1),mo("ngIf",null===n.clazz.currentHistoricCoverage)}}function jh(e,t){if(1&e&&(ko(0,"td",2),wo(1,"coverage-bar",5),bo()),2&e){var n=Vo();Er(1),mo("percentage",n.clazz.branchCoverage)}}var zh,Fh=((zh=function(){function e(){_classCallCheck(this,e),this.clazz=null,this.translations={},this.branchCoverageAvailable=!1,this.historyComparisionDate=""}return _createClass(e,[{key:"getClassName",value:function(e,t){return e>t?"lightgreen":e1),Er(1),mo("ngIf",null!==t.clazz.currentHistoricCoverage),Er(1),mo("ngIf",null===t.clazz.currentHistoricCoverage),Er(2),mo("percentage",t.clazz.coverage),Er(1),mo("ngIf",t.branchCoverageAvailable),Er(1),mo("ngIf",t.branchCoverageAvailable),Er(1),mo("ngIf",t.branchCoverageAvailable),Er(1),mo("ngIf",t.branchCoverageAvailable))},directives:[Cu,th,fh,gu],encapsulation:2,changeDetection:0}),zh);function Lh(e,t){if(1&e&&(Eo(0),Ko(1),So()),2&e){var n=Vo(2);Er(1),Yo(n.translations.noGrouping)}}function Bh(e,t){if(1&e&&(Eo(0),Ko(1),So()),2&e){var n=Vo(2);Er(1),Yo(n.translations.byAssembly)}}function Uh(e,t){if(1&e&&(Eo(0),Ko(1),So()),2&e){var n=Vo(2);Er(1),Yo(n.translations.byNamespace+" "+n.settings.grouping)}}function Gh(e,t){if(1&e&&(ko(0,"option",25),Ko(1),bo()),2&e){var n=t.$implicit;mo("value",n),Er(1),Yo(n)}}function Zh(e,t){1&e&&wo(0,"br")}function qh(e,t){if(1&e&&(ko(0,"option",31),Ko(1),bo()),2&e){var n=Vo(4);Er(1),Xo(" ",n.translations.branchCoverageIncreaseOnly," ")}}function Wh(e,t){if(1&e&&(ko(0,"option",32),Ko(1),bo()),2&e){var n=Vo(4);Er(1),Xo(" ",n.translations.branchCoverageDecreaseOnly," ")}}function $h(e,t){if(1&e){var n=Io();ko(0,"div"),ko(1,"select",22),Ao("ngModelChange",(function(e){return Ft(n),Vo(3).settings.historyComparisionType=e})),ko(2,"option",23),Ko(3),bo(),ko(4,"option",26),Ko(5),bo(),ko(6,"option",27),Ko(7),bo(),ko(8,"option",28),Ko(9),bo(),yo(10,qh,2,1,"option",29),yo(11,Wh,2,1,"option",30),bo(),bo()}if(2&e){var r=Vo(3);Er(1),mo("ngModel",r.settings.historyComparisionType),Er(2),Yo(r.translations.filter),Er(2),Yo(r.translations.allChanges),Er(2),Yo(r.translations.lineCoverageIncreaseOnly),Er(2),Yo(r.translations.lineCoverageDecreaseOnly),Er(1),mo("ngIf",r.branchCoverageAvailable),Er(1),mo("ngIf",r.branchCoverageAvailable)}}function Jh(e,t){if(1&e){var n=Io();Eo(0),ko(1,"div"),Ko(2),ko(3,"select",22),Ao("ngModelChange",(function(e){return Ft(n),Vo(2).settings.historyComparisionDate=e}))("ngModelChange",(function(){return Ft(n),Vo(2).updateCurrentHistoricCoverage()})),ko(4,"option",23),Ko(5),bo(),yo(6,Gh,2,2,"option",24),bo(),bo(),yo(7,Zh,1,0,"br",0),yo(8,$h,12,7,"div",0),So()}if(2&e){var r=Vo(2);Er(2),Xo(" ",r.translations.compareHistory," "),Er(1),mo("ngModel",r.settings.historyComparisionDate),Er(2),Yo(r.translations.date),Er(1),mo("ngForOf",r.historicCoverageExecutionTimes),Er(1),mo("ngIf",""!==r.settings.historyComparisionDate),Er(1),mo("ngIf",""!==r.settings.historyComparisionDate)}}function Qh(e,t){1&e&&wo(0,"col",8)}function Kh(e,t){1&e&&wo(0,"col",11)}function Yh(e,t){1&e&&wo(0,"col",12)}function Xh(e,t){1&e&&wo(0,"col",13)}var ef=function(e,t,n){return{"icon-up-dir_active":e,"icon-down-dir_active":t,"icon-down-dir":n}};function tf(e,t){if(1&e){var n=Io();ko(0,"th",19),ko(1,"a",2),Ao("click",(function(e){return Ft(n),Vo(2).updateSorting("branchcoverage",e)})),wo(2,"i",18),Ko(3),bo(),bo()}if(2&e){var r=Vo(2);Er(2),mo("ngClass",fa(2,ef,"branchcoverage"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"branchcoverage"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"branchcoverage"!==r.settings.sortBy)),Er(1),Yo(r.translations.branchCoverage)}}function nf(e,t){if(1&e&&wo(0,"tr",34),2&e){var n=Vo().$implicit,r=Vo(2);mo("element",n)("collapsed",n.collapsed)("branchCoverageAvailable",r.branchCoverageAvailable)}}function rf(e,t){if(1&e&&wo(0,"tr",36),2&e){var n=Vo().$implicit,r=Vo(3);mo("clazz",n)("translations",r.translations)("branchCoverageAvailable",r.branchCoverageAvailable)("historyComparisionDate",r.settings.historyComparisionDate)}}function of(e,t){if(1&e&&(Eo(0),yo(1,rf,1,4,"tr",35),So()),2&e){var n=t.$implicit,r=Vo().$implicit,i=Vo(2);Er(1),mo("ngIf",!r.collapsed&&n.visible(i.settings.filter,i.settings.historyComparisionType))}}function sf(e,t){if(1&e&&wo(0,"tr",39),2&e){var n=Vo().$implicit,r=Vo(5);mo("clazz",n)("translations",r.translations)("branchCoverageAvailable",r.branchCoverageAvailable)("historyComparisionDate",r.settings.historyComparisionDate)}}function af(e,t){if(1&e&&(Eo(0),yo(1,sf,1,4,"tr",38),So()),2&e){var n=t.$implicit,r=Vo(2).$implicit,i=Vo(3);Er(1),mo("ngIf",!r.collapsed&&n.visible(i.settings.filter,i.settings.historyComparisionType))}}function uf(e,t){if(1&e&&(Eo(0),wo(1,"tr",37),yo(2,af,2,1,"ng-container",21),So()),2&e){var n=Vo().$implicit,r=Vo(3);Er(1),mo("element",n)("collapsed",n.collapsed)("branchCoverageAvailable",r.branchCoverageAvailable),Er(1),mo("ngForOf",n.classes)}}function lf(e,t){if(1&e&&(Eo(0),yo(1,uf,3,4,"ng-container",0),So()),2&e){var n=t.$implicit,r=Vo().$implicit,i=Vo(2);Er(1),mo("ngIf",!r.collapsed&&n.visible(i.settings.filter,i.settings.historyComparisionType))}}function cf(e,t){if(1&e&&(Eo(0),yo(1,nf,1,3,"tr",33),yo(2,of,2,1,"ng-container",21),yo(3,lf,2,1,"ng-container",21),So()),2&e){var n=t.$implicit,r=Vo(2);Er(1),mo("ngIf",n.visible(r.settings.filter,r.settings.historyComparisionType)),Er(1),mo("ngForOf",n.classes),Er(1),mo("ngForOf",n.subElements)}}function hf(e,t){if(1&e){var n=Io();ko(0,"div"),ko(1,"div",1),ko(2,"div"),ko(3,"a",2),Ao("click",(function(e){return Ft(n),Vo().collapseAll(e)})),Ko(4),bo(),Ko(5," | "),ko(6,"a",2),Ao("click",(function(e){return Ft(n),Vo().expandAll(e)})),Ko(7),bo(),bo(),ko(8,"div",3),yo(9,Lh,2,1,"ng-container",0),yo(10,Bh,2,1,"ng-container",0),yo(11,Uh,2,1,"ng-container",0),wo(12,"br"),Ko(13),ko(14,"input",4),Ao("ngModelChange",(function(e){return Ft(n),Vo().settings.grouping=e}))("ngModelChange",(function(){return Ft(n),Vo().updateCoverageInfo()})),bo(),bo(),ko(15,"div",3),yo(16,Jh,9,6,"ng-container",0),bo(),ko(17,"div",5),ko(18,"span"),Ko(19),bo(),ko(20,"input",6),Ao("ngModelChange",(function(e){return Ft(n),Vo().settings.filter=e})),bo(),bo(),bo(),ko(21,"table",7),ko(22,"colgroup"),wo(23,"col"),wo(24,"col",8),wo(25,"col",9),wo(26,"col",10),wo(27,"col",11),wo(28,"col",12),wo(29,"col",13),yo(30,Qh,1,0,"col",14),yo(31,Kh,1,0,"col",15),yo(32,Yh,1,0,"col",16),yo(33,Xh,1,0,"col",17),bo(),ko(34,"thead"),ko(35,"tr"),ko(36,"th"),ko(37,"a",2),Ao("click",(function(e){return Ft(n),Vo().updateSorting("name",e)})),wo(38,"i",18),Ko(39),bo(),bo(),ko(40,"th",5),ko(41,"a",2),Ao("click",(function(e){return Ft(n),Vo().updateSorting("covered",e)})),wo(42,"i",18),Ko(43),bo(),bo(),ko(44,"th",5),ko(45,"a",2),Ao("click",(function(e){return Ft(n),Vo().updateSorting("uncovered",e)})),wo(46,"i",18),Ko(47),bo(),bo(),ko(48,"th",5),ko(49,"a",2),Ao("click",(function(e){return Ft(n),Vo().updateSorting("coverable",e)})),wo(50,"i",18),Ko(51),bo(),bo(),ko(52,"th",5),ko(53,"a",2),Ao("click",(function(e){return Ft(n),Vo().updateSorting("total",e)})),wo(54,"i",18),Ko(55),bo(),bo(),ko(56,"th",19),ko(57,"a",2),Ao("click",(function(e){return Ft(n),Vo().updateSorting("coverage",e)})),wo(58,"i",18),Ko(59),bo(),bo(),ko(60,"th",5),ko(61,"a",2),Ao("click",(function(e){return Ft(n),Vo().updateSorting("covered_branches",e)})),wo(62,"i",18),Ko(63),bo(),bo(),ko(64,"th",5),ko(65,"a",2),Ao("click",(function(e){return Ft(n),Vo().updateSorting("total_branches",e)})),wo(66,"i",18),Ko(67),bo(),bo(),yo(68,tf,4,6,"th",20),bo(),bo(),ko(69,"tbody"),yo(70,cf,4,3,"ng-container",21),bo(),bo(),bo()}if(2&e){var r=Vo();Er(4),Yo(r.translations.collapseAll),Er(3),Yo(r.translations.expandAll),Er(2),mo("ngIf",-1===r.settings.grouping),Er(1),mo("ngIf",0===r.settings.grouping),Er(1),mo("ngIf",r.settings.grouping>0),Er(2),Xo(" ",r.translations.grouping," "),Er(1),mo("max",r.settings.groupingMaximum)("ngModel",r.settings.grouping),Er(2),mo("ngIf",r.historicCoverageExecutionTimes.length>0),Er(3),Xo("",r.translations.filter," "),Er(1),mo("ngModel",r.settings.filter),Er(10),mo("ngIf",r.branchCoverageAvailable),Er(1),mo("ngIf",r.branchCoverageAvailable),Er(1),mo("ngIf",r.branchCoverageAvailable),Er(1),mo("ngIf",r.branchCoverageAvailable),Er(5),mo("ngClass",fa(33,ef,"name"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"name"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"name"!==r.settings.sortBy)),Er(1),Yo(r.translations.name),Er(3),mo("ngClass",fa(37,ef,"covered"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"covered"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"covered"!==r.settings.sortBy)),Er(1),Yo(r.translations.covered),Er(3),mo("ngClass",fa(41,ef,"uncovered"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"uncovered"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"uncovered"!==r.settings.sortBy)),Er(1),Yo(r.translations.uncovered),Er(3),mo("ngClass",fa(45,ef,"coverable"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"coverable"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"coverable"!==r.settings.sortBy)),Er(1),Yo(r.translations.coverable),Er(3),mo("ngClass",fa(49,ef,"total"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"total"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"total"!==r.settings.sortBy)),Er(1),Yo(r.translations.total),Er(3),mo("ngClass",fa(53,ef,"coverage"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"coverage"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"coverage"!==r.settings.sortBy)),Er(1),Yo(r.translations.coverage),Er(3),mo("ngClass",fa(57,ef,"covered_branches"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"covered_branches"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"covered_branches"!==r.settings.sortBy)),Er(1),Yo(r.translations.covered),Er(3),mo("ngClass",fa(61,ef,"total_branches"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"total_branches"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"total_branches"!==r.settings.sortBy)),Er(1),Yo(r.translations.total),Er(1),mo("ngIf",r.branchCoverageAvailable),Er(2),mo("ngForOf",r.codeElements)}}var ff,df=((ff=function(){function e(t){_classCallCheck(this,e),this.queryString="",this.historicCoverageExecutionTimes=[],this.branchCoverageAvailable=!1,this.codeElements=[],this.translations={},this.settings=new Zc,this.window=t.nativeWindow}return _createClass(e,[{key:"ngOnInit",value:function(){this.historicCoverageExecutionTimes=this.window.historicCoverageExecutionTimes,this.branchCoverageAvailable=this.window.branchCoverageAvailable,this.translations=this.window.translations;var e=!1;if(void 0!==this.window.history&&void 0!==this.window.history.replaceState&&null!==this.window.history.state&&null!=this.window.history.state.coverageInfoSettings)console.log("Coverage info: Restoring from history",this.window.history.state.coverageInfoSettings),e=!0,this.settings=JSON.parse(JSON.stringify(this.window.history.state.coverageInfoSettings));else{for(var t=0,n=this.window.assemblies,r=0;r-1&&(this.queryString=window.location.href.substr(o)),this.updateCoverageInfo(),e&&this.restoreCollapseState()}},{key:"onDonBeforeUnlodad",value:function(){if(this.saveCollapseState(),void 0!==this.window.history&&void 0!==this.window.history.replaceState){console.log("Coverage info: Updating history",this.settings);var e=null;(e=null!==window.history.state?JSON.parse(JSON.stringify(this.window.history.state)):new Gc).coverageInfoSettings=JSON.parse(JSON.stringify(this.settings)),window.history.replaceState(e,null)}}},{key:"updateCoverageInfo",value:function(){var e=(new Date).getTime(),t=this.window.assemblies,n=[],r=0;if(0===this.settings.grouping)for(var i=0;it&&(r[i].collapsed=e.settings.collapseStates[t]),t++,n(r[i].subElements)}(this.codeElements)}}]),e}()).\u0275fac=function(e){return new(e||ff)(_o(Uc))},ff.\u0275cmp=st({type:ff,selectors:[["coverage-info"]],hostBindings:function(e,t){1&e&&Ao("beforeunload",(function(){return t.onDonBeforeUnlodad()}),!1,An)},decls:1,vars:1,consts:[[4,"ngIf"],[1,"customizebox"],["href","#",3,"click"],[1,"center"],["type","range","step","1","min","-1",3,"max","ngModel","ngModelChange"],[1,"right"],["type","text",3,"ngModel","ngModelChange"],[1,"overview","table-fixed","stripped"],[1,"column90"],[1,"column105"],[1,"column100"],[1,"column70"],[1,"column98"],[1,"column112"],["class","column90",4,"ngIf"],["class","column70",4,"ngIf"],["class","column98",4,"ngIf"],["class","column112",4,"ngIf"],[1,"icon-down-dir",3,"ngClass"],["colspan","2",1,"center"],["class","center","colspan","2",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],["value",""],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["value","allChanges"],["value","lineCoverageIncreaseOnly"],["value","lineCoverageDecreaseOnly"],["value","branchCoverageIncreaseOnly",4,"ngIf"],["value","branchCoverageDecreaseOnly",4,"ngIf"],["value","branchCoverageIncreaseOnly"],["value","branchCoverageDecreaseOnly"],["codeelement-row","",3,"element","collapsed","branchCoverageAvailable",4,"ngIf"],["codeelement-row","",3,"element","collapsed","branchCoverageAvailable"],["class-row","",3,"clazz","translations","branchCoverageAvailable","historyComparisionDate",4,"ngIf"],["class-row","",3,"clazz","translations","branchCoverageAvailable","historyComparisionDate"],["codeelement-row","",1,"namespace",3,"element","collapsed","branchCoverageAvailable"],["class","namespace","class-row","",3,"clazz","translations","branchCoverageAvailable","historyComparisionDate",4,"ngIf"],["class-row","",1,"namespace",3,"clazz","translations","branchCoverageAvailable","historyComparisionDate"]],template:function(e,t){1&e&&yo(0,hf,71,65,"div",0),2&e&&mo("ngIf",t.codeElements.length>0)},directives:[Cu,dl,ju,Zu,uc,gu,_u,Cl,kl,Ol,ch,Fh],encapsulation:2}),ff),vf=function e(){_classCallCheck(this,e),this.assembly="",this.numberOfRiskHotspots=10,this.filter="",this.sortBy="",this.sortOrder="asc"};function pf(e,t){if(1&e&&(ko(0,"option",14),Ko(1),bo()),2&e){var n=t.$implicit;mo("value",n),Er(1),Yo(n)}}function gf(e,t){1&e&&(ko(0,"option",21),Ko(1,"20"),bo())}function yf(e,t){1&e&&(ko(0,"option",22),Ko(1,"50"),bo())}function _f(e,t){1&e&&(ko(0,"option",23),Ko(1,"100"),bo())}function mf(e,t){if(1&e&&(ko(0,"option",14),Ko(1),bo()),2&e){var n=Vo(3);mo("value",n.totalNumberOfRiskHotspots),Er(1),Yo(n.translations.all)}}function Cf(e,t){if(1&e){var n=Io();ko(0,"select",15),Ao("ngModelChange",(function(e){return Ft(n),Vo(2).settings.numberOfRiskHotspots=e})),ko(1,"option",16),Ko(2,"10"),bo(),yo(3,gf,2,0,"option",17),yo(4,yf,2,0,"option",18),yo(5,_f,2,0,"option",19),yo(6,mf,2,2,"option",20),bo()}if(2&e){var r=Vo(2);mo("ngModel",r.settings.numberOfRiskHotspots),Er(3),mo("ngIf",r.totalNumberOfRiskHotspots>10),Er(1),mo("ngIf",r.totalNumberOfRiskHotspots>20),Er(1),mo("ngIf",r.totalNumberOfRiskHotspots>50),Er(1),mo("ngIf",r.totalNumberOfRiskHotspots>100)}}function kf(e,t){1&e&&wo(0,"col",24)}var bf=function(e,t,n){return{"icon-up-dir_active":e,"icon-down-dir_active":t,"icon-down-dir":n}};function wf(e,t){if(1&e){var n=Io();ko(0,"th"),ko(1,"a",11),Ao("click",(function(e){Ft(n);var r=t.index;return Vo(2).updateSorting(""+r,e)})),wo(2,"i",12),Ko(3),bo(),ko(4,"a",25),wo(5,"i",26),bo(),bo()}if(2&e){var r=t.$implicit,i=t.index,o=Vo(2);Er(2),mo("ngClass",fa(3,bf,o.settings.sortBy===""+i&&"desc"===o.settings.sortOrder,o.settings.sortBy===""+i&&"asc"===o.settings.sortOrder,o.settings.sortBy!==""+i)),Er(1),Yo(r.name),Er(1),Do("href",r.explanationUrl,or)}}var Ef=function(e,t){return{lightred:e,lightgreen:t}};function Sf(e,t){if(1&e&&(ko(0,"td",29),Ko(1),bo()),2&e){var n=t.$implicit;mo("ngClass",ha(2,Ef,n.exceeded,!n.exceeded)),Er(1),Yo(n.value)}}function If(e,t){if(1&e&&(ko(0,"tr"),ko(1,"td"),Ko(2),bo(),ko(3,"td"),ko(4,"a",25),Ko(5),bo(),bo(),ko(6,"td",27),ko(7,"a",25),Ko(8),bo(),bo(),yo(9,Sf,2,5,"td",28),bo()),2&e){var n=t.$implicit,r=Vo(2);Er(2),Yo(n.assembly),Er(2),mo("href",n.reportPath+r.queryString,or),Er(1),Yo(n.class),Er(1),mo("title",n.methodName),Er(1),mo("href",n.reportPath+r.queryString+"#file"+n.fileIndex+"_line"+n.line,or),Er(1),Xo(" ",n.methodShortName," "),Er(1),mo("ngForOf",n.metrics)}}function Of(e,t){if(1&e){var n=Io();ko(0,"div"),ko(1,"div",1),ko(2,"div"),ko(3,"select",2),Ao("ngModelChange",(function(e){return Ft(n),Vo().settings.assembly=e}))("ngModelChange",(function(){return Ft(n),Vo().updateRiskHotpots()})),ko(4,"option",3),Ko(5),bo(),yo(6,pf,2,2,"option",4),bo(),bo(),ko(7,"div",5),ko(8,"span"),Ko(9),bo(),yo(10,Cf,7,5,"select",6),bo(),wo(11,"div",5),ko(12,"div",7),ko(13,"span"),Ko(14),bo(),ko(15,"input",8),Ao("ngModelChange",(function(e){return Ft(n),Vo().settings.filter=e}))("ngModelChange",(function(){return Ft(n),Vo().updateRiskHotpots()})),bo(),bo(),bo(),ko(16,"table",9),ko(17,"colgroup"),wo(18,"col"),wo(19,"col"),wo(20,"col"),yo(21,kf,1,0,"col",10),bo(),ko(22,"thead"),ko(23,"tr"),ko(24,"th"),ko(25,"a",11),Ao("click",(function(e){return Ft(n),Vo().updateSorting("assembly",e)})),wo(26,"i",12),Ko(27),bo(),bo(),ko(28,"th"),ko(29,"a",11),Ao("click",(function(e){return Ft(n),Vo().updateSorting("class",e)})),wo(30,"i",12),Ko(31),bo(),bo(),ko(32,"th"),ko(33,"a",11),Ao("click",(function(e){return Ft(n),Vo().updateSorting("method",e)})),wo(34,"i",12),Ko(35),bo(),bo(),yo(36,wf,6,7,"th",13),bo(),bo(),ko(37,"tbody"),yo(38,If,10,7,"tr",13),function(e,t){var n,r=zt();r.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var r=t[n];if("slice"===r.name)return r}throw new Error("The pipe 'slice' could not be found!")}(0,r.pipeRegistry),r.data[59]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(59,n.onDestroy)):n=r.data[59];var i=n.factory||(n.factory=vt(n.type)),o=Le(_o),s=Vn(!1),a=i();Vn(s),Le(o),function(e,t,n,r){59>=e.data.length&&(e.data[59]=null,e.blueprint[59]=null),t[59]=r}(r,jt(),0,a)}(),bo(),bo(),bo()}if(2&e){var r=Vo();Er(3),mo("ngModel",r.settings.assembly),Er(2),Yo(r.translations.assembly),Er(1),mo("ngForOf",r.assemblies),Er(3),Yo(r.translations.top),Er(1),mo("ngIf",r.totalNumberOfRiskHotspots>10),Er(4),Xo("",r.translations.filter," "),Er(1),mo("ngModel",r.settings.filter),Er(6),mo("ngForOf",r.riskHotspotMetrics),Er(5),mo("ngClass",fa(20,bf,"assembly"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"assembly"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"assembly"!==r.settings.sortBy)),Er(1),Yo(r.translations.assembly),Er(3),mo("ngClass",fa(24,bf,"class"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"class"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"class"!==r.settings.sortBy)),Er(1),Yo(r.translations.class),Er(3),mo("ngClass",fa(28,bf,"method"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"method"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"method"!==r.settings.sortBy)),Er(1),Yo(r.translations.method),Er(1),mo("ngForOf",r.riskHotspotMetrics),Er(2),mo("ngForOf",(i=r.riskHotspots,o=r.settings.numberOfRiskHotspots,s=jt(),a=s[59],function(e,t){return uo.isWrapped(t)&&(t=uo.unwrap(t),e[Ht.lFrame.bindingIndex]=mr),t}(s,function(e,t){return e[1].data[59].pure}(s)?va(s,Wt(),16,a.transform,i,0,o,a):a.transform(i,0,o))))}var i,o,s,a}var Af,xf,Tf=((xf=function(){function e(t){_classCallCheck(this,e),this.queryString="",this.riskHotspotMetrics=[],this.riskHotspots=[],this.totalNumberOfRiskHotspots=0,this.assemblies=[],this.translations={},this.settings=new vf,this.window=t.nativeWindow}return _createClass(e,[{key:"ngOnInit",value:function(){this.riskHotspotMetrics=this.window.riskHotspotMetrics,this.translations=this.window.translations,void 0!==this.window.history&&void 0!==this.window.history.replaceState&&null!==this.window.history.state&&null!=this.window.history.state.riskHotspotsSettings&&(console.log("Risk hotspots: Restoring from history",this.window.history.state.riskHotspotsSettings),this.settings=JSON.parse(JSON.stringify(this.window.history.state.riskHotspotsSettings)));var e=window.location.href.indexOf("?");e>-1&&(this.queryString=window.location.href.substr(e)),this.updateRiskHotpots()}},{key:"onDonBeforeUnlodad",value:function(){if(void 0!==this.window.history&&void 0!==this.window.history.replaceState){console.log("Risk hotspots: Updating history",this.settings);var e=null;(e=null!==window.history.state?JSON.parse(JSON.stringify(this.window.history.state)):new Gc).riskHotspotsSettings=JSON.parse(JSON.stringify(this.settings)),window.history.replaceState(e,null)}}},{key:"updateRiskHotpots",value:function(){var e=this.window.riskHotspots;if(this.totalNumberOfRiskHotspots=e.length,0===this.assemblies.length){for(var t=[],n=0;n0)},directives:[Cu,Cl,Zu,uc,kl,Ol,_u,ju,gu],pipes:[Iu],encapsulation:2}),xf),Vf=((Af=function e(){_classCallCheck(this,e)}).\u0275mod=ct({type:Af,bootstrap:[Tf,df]}),Af.\u0275inj=se({factory:function(e){return new(e||Af)},providers:[Uc],imports:[[Lc,cc]]}),Af);(function(){if(er)throw new Error("Cannot enable prod mode after platform setup.");Xn=!1})(),zc().bootstrapModule(Vf).catch((function(e){return console.error(e)}))}},[[0,0]]]);
\ No newline at end of file
+function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _createForOfIteratorHelper(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,e),this.project=t,this.concurrent=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new L(e,this.project,this.concurrent))}}]),e}(),L=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(i=t.call(this,e)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return _createClass(n,[{key:"_next",value:function(e){this.active4&&void 0!==arguments[4]?arguments[4]:new A(e,n,r);i.closed||(t instanceof C?t.subscribe(i):N(t)(i))}(this,e,t,n,r)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyComplete",value:function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(P);function B(e){return e}function U(){return function(e){return e.lift(new Z(e))}}var G,Z=function(){function e(t){_classCallCheck(this,e),this.connectable=t}return _createClass(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var r=new q(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),e}(),q=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).connectable=r,i}return _createClass(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(p),W={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(G=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).source=e,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return _createClass(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new f).add(this.source.subscribe(new $(this.getSubject(),this))),e.closed&&(this._connection=null,e=f.EMPTY)),e}},{key:"refCount",value:function(){return U()(this)}}]),n}(C).prototype)._subscribe},_isComplete:{value:G._isComplete,writable:!0},getSubject:{value:G.getSubject},connect:{value:G.connect},refCount:{value:G.refCount}},$=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).connectable=r,i}return _createClass(n,[{key:"_error",value:function(e){this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(S);function J(){return new I}function Q(e){return{toString:e}.toString()}function K(e,t,n){return Q((function(){var r=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function i(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:ne.Default;if(void 0===ze)throw new Error("inject() must be called from an injection context");return null===ze?Ge(e,void 0,t):ze.get(e,t&ne.Optional?null:void 0,t)}function Ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne.Default;return(ke||Be)(me(e),t)}function Ge(e,t,n){var r=ae(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&ne.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(pe(e),"]"))}function Ze(e){for(var t=[],n=0;n1&&void 0!==arguments[1]?arguments[1]:He;if(t===He){var n=new Error("NullInjectorError: No provider for ".concat(pe(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),We=function e(){_classCallCheck(this,e)};function $e(e,t){e.forEach((function(e){return Array.isArray(e)?$e(e,t):t(e)}))}function Je(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Qe(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ke(e,t,n){var r=Xe(e,t);return r>=0?e[1|r]=n:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r=~r,t,n),r}function Ye(e,t){var n=Xe(e,t);if(n>=0)return e[1|n]}function Xe(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var o=r+(i-r>>1),s=e[o<<1];if(t===s)return o<<1;s>t?i=o:r=o+1}return~(i<<1)}(e,t)}var et,tt=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),nt=((et={})[et.Emulated=0]="Emulated",et[et.Native=1]="Native",et[et.None=2]="None",et[et.ShadowDom=3]="ShadowDom",et),rt={},it=[],ot=0;function st(e){return Q((function(){var t=e.type,n=t.prototype,r={},i={type:t,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===tt.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||it,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||nt.Emulated,id:"c",styles:e.styles||it,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,s=e.features,a=e.pipes;return i.id+=ot++,i.inputs=ht(e.inputs,r),i.outputs=ht(e.outputs),s&&s.forEach((function(e){return e(i)})),i.directiveDefs=o?function(){return("function"==typeof o?o():o).map(at)}:null,i.pipeDefs=a?function(){return("function"==typeof a?a():a).map(ut)}:null,i}))}function at(e){return dt(e)||function(e){return e[Ae]||null}(e)}function ut(e){return function(e){return e[xe]||null}(e)}var lt={};function ct(e){var t={type:e.type,bootstrap:e.bootstrap||it,declarations:e.declarations||it,imports:e.imports||it,exports:e.exports||it,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Q((function(){lt[e.id]=e.type})),t}function ht(e,t){if(null==e)return rt;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var ft=st;function dt(e){return e[Oe]||null}function vt(e,t){return e.hasOwnProperty(De)?e[De]:null}function pt(e,t){var n=e[Te]||null;if(!n&&!0===t)throw new Error("Type ".concat(pe(e)," does not have '\u0275mod' property."));return n}function gt(e){return Array.isArray(e)&&"object"==typeof e[1]}function yt(e){return Array.isArray(e)&&!0===e[1]}function _t(e){return 0!=(8&e.flags)}function mt(e){return 2==(2&e.flags)}function Ct(e){return 1==(1&e.flags)}function kt(e){return null!==e.template}function bt(e){return 0!=(512&e[2])}var wt=void 0;function Et(e){return!!e.listen}var St={createRenderer:function(e,t){return void 0!==wt?wt:"undefined"!=typeof document?document:void 0}};function It(e){for(;Array.isArray(e);)e=e[0];return e}function Ot(e,t){return It(t[e+20])}function At(e,t){return It(t[e.index])}function xt(e,t){return e.data[t+20]}function Tt(e,t){var n=t[e];return gt(n)?n:n[0]}function Vt(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Dt(e){return 128==(128&e[2])}function Nt(e,t){return null===e||null==t?null:e[t]}function Pt(e){e[18]=0}function Mt(e,t){e[5]+=t;for(var n=e,r=e[3];null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}var Ht={lFrame:nn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Rt(){return Ht.bindingsEnabled}function jt(){return Ht.lFrame.lView}function zt(){return Ht.lFrame.tView}function Ft(e){Ht.lFrame.contextLView=e}function Lt(){return Ht.lFrame.previousOrParentTNode}function Bt(e,t){Ht.lFrame.previousOrParentTNode=e,Ht.lFrame.isParent=t}function Ut(){return Ht.lFrame.isParent}function Gt(){Ht.lFrame.isParent=!1}function Zt(){return Ht.checkNoChangesMode}function qt(e){Ht.checkNoChangesMode=e}function Wt(){var e=Ht.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function $t(){return Ht.lFrame.bindingIndex++}function Jt(e){var t=Ht.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Qt(e,t){var n=Ht.lFrame;n.bindingIndex=n.bindingRootIndex=e,Kt(t)}function Kt(e){Ht.lFrame.currentDirectiveIndex=e}function Yt(e){Ht.lFrame.currentQueryIndex=e}function Xt(e,t){var n=tn();Ht.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function en(e,t){var n=tn(),r=e[1];Ht.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=r,n.contextLView=e,n.bindingIndex=r.bindingStartIndex}function tn(){var e=Ht.lFrame,t=null===e?null:e.child;return null===t?nn(e):t}function nn(e){var t={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function rn(){var e=Ht.lFrame;return Ht.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}var on=rn;function sn(){var e=rn();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function an(){return Ht.lFrame.selectedIndex}function un(e){Ht.lFrame.selectedIndex=e}function ln(){var e=Ht.lFrame;return xt(e.tView,e.selectedIndex)}function cn(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[s]<0&&(e[18]+=65536),(o>11>16&&(3&e[2])===t&&(e[2]+=2048,o.call(s)):o.call(s)}var gn=function e(t,n,r){_classCallCheck(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function yn(e,t,n){for(var r=Et(e),i=0;it){s=o-1;break}}}for(;o>16}function En(e,t){for(var n=wn(e),r=t;n>0;)r=r[15],n--;return r}function Sn(e){return"string"==typeof e?e:null==e?"":""+e}function In(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Sn(e)}var On=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ie);function An(e){return{name:"window",target:e.ownerDocument.defaultView}}function xn(e){return e instanceof Function?e():e}var Tn=!0;function Vn(e){var t=Tn;return Tn=e,t}var Dn=0;function Nn(e,t){var n=Mn(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Pn(r.data,e),Pn(t,null),Pn(r.blueprint,null));var i=Hn(e,t),o=e.injectorIndex;if(kn(i))for(var s=bn(i),a=En(i,t),u=a[1].data,l=0;l<8;l++)t[o+l]=a[s+l]|u[s+l];return t[o+8]=i,o}function Pn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Mn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function Hn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=t[6],r=1;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function Rn(e,t,n){!function(e,t,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ne)&&(r=n[Ne]),null==r&&(r=n[Ne]=Dn++);var i=255&r,o=1<3&&void 0!==arguments[3]?arguments[3]:ne.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(Ne)?e[Ne]:void 0;return"number"==typeof t&&t>0?255&t:t}(n);if("function"==typeof o){Xt(t,e);try{var s=o();if(null!=s||r&ne.Optional)return s;throw new Error("No provider for ".concat(In(n),"!"))}finally{on()}}else if("number"==typeof o){if(-1===o)return new Gn(e,t);var a=null,u=Mn(e,t),l=-1,c=r&ne.Host?t[16][6]:null;for((-1===u||r&ne.SkipSelf)&&(l=-1===u?Hn(e,t):t[u+8],Un(r,!1)?(a=t[1],u=bn(l),t=En(l,t)):u=-1);-1!==u;){l=t[u+8];var h=t[1];if(Bn(o,u,h.data)){var f=Fn(u,t,n,a,r,c);if(f!==zn)return f}Un(r,t[1].data[u+8]===c)&&Bn(o,u,t)?(a=h,u=bn(l),t=En(l,t)):u=-1}}}if(r&ne.Optional&&void 0===i&&(i=null),0==(r&(ne.Self|ne.Host))){var d=t[9],v=Le(void 0);try{return d?d.get(n,i,r&ne.Optional):Ge(n,i,r&ne.Optional)}finally{Le(v)}}if(r&ne.Optional)return i;throw new Error("NodeInjector: NOT_FOUND [".concat(In(n),"]"))}var zn={};function Fn(e,t,n,r,i,o){var s=t[1],a=s.data[e+8],u=function(e,t,n,r,i){for(var o=e.providerIndexes,s=t.data,a=65535&o,u=e.directiveStart,l=o>>16,c=i?a+l:e.directiveEnd,h=r?a:a+l;h=u&&f.type===n)return h}if(i){var d=s[u];if(d&&kt(d)&&d.type===n)return u}return null}(a,s,n,null==r?mt(a)&&Tn:r!=s&&3===a.type,i&ne.Host&&o===a);return null!==u?Ln(t,s,u,a):zn}function Ln(e,t,n,r){var i=e[n],o=t.data;if(i instanceof gn){var s=i;if(s.resolving)throw new Error("Circular dep for "+In(o[n]));var a,u=Vn(s.canSeeViewProviders);s.resolving=!0,s.injectImpl&&(a=Le(s.injectImpl)),Xt(e,r);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.onChanges,i=t.onInit,o=t.doCheck;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)),i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{s.injectImpl&&Le(a),Vn(u),s.resolving=!1,on()}}return i}function Bn(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<1?t-1:0),r=1;ro?"":i[c+1].toLowerCase();var f=8&r?h:null;if(f&&-1!==lr(f,l,0)||2&r&&l!==h){if(vr(r))return!1;s=!0}}}}else{if(!s&&!vr(r)&&!vr(u))return!1;if(s&&vr(u))continue;s=!1,r=u|1&r}}return vr(r)||s}function vr(e){return 0==(1&e)}function pr(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var o=!1;i-1)for(n++;n2&&void 0!==arguments[2]&&arguments[2],r=0;r0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""===i||vr(s)||(t+=yr(o,i),i=""),r=s,o=o||!vr(r);n++}return""!==i&&(t+=yr(o,i)),t}var mr={};function Cr(e){var t=e[3];return yt(t)?t[3]:t}function kr(e){return wr(e[13])}function br(e){return wr(e[4])}function wr(e){for(;null!==e&&!yt(e);)e=e[4];return e}function Er(e){Sr(zt(),jt(),an()+e,Zt())}function Sr(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&hn(t,i,n)}else{var o=e.preOrderHooks;null!==o&&fn(t,o,0,n)}un(n)}function Ir(e,t){return e<<17|t<<2}function Or(e){return e>>17&32767}function Ar(e){return 2|e}function xr(e){return(131068&e)>>2}function Tr(e,t){return-131069&e|t<<2}function Vr(e){return 1|e}function Dr(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;r20&&Sr(e,t,0,Zt()),n(r,i)}finally{un(o)}}function Fr(e,t,n){if(_t(t))for(var r=t.directiveEnd,i=t.directiveStart;i2&&void 0!==arguments[2]?arguments[2]:At,r=t.localNames;if(null!==r)for(var i=t.index+1,o=0;o0&&function e(t){for(var n=kr(t);null!==n;n=br(n))for(var r=10;r0&&e(i)}var s=t[1].components;if(null!==s)for(var a=0;a0&&e(u)}}(n)}}function ui(e,t){var n=Tt(t,e),r=n[1];!function(e,t){for(var n=t.length;n0&&(e[n-1][4]=r[4]);var o=Qe(e,10+t);ki(r[1],r,!1,null);var s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Ei(e,t){if(!(256&t[2])){var n=t[11];Et(n)&&n.destroyNode&&Pi(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Ii(e[1],e);for(;t;){var n=null;if(gt(t))n=t[13];else{var r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)gt(t)&&Ii(t[1],t),t=Si(t,e);null===t&&(t=e),gt(t)&&Ii(t[1],t),n=t&&t[4]}t=n}}(t)}}function Si(e,t){var n;return gt(e)&&(n=e[6])&&2===n.type?_i(n,e):e[3]===t?null:e[3]}function Ii(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r=0?r[u]():r[-u].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);t[7]=null}}(e,t);var n=t[6];n&&3===n.type&&Et(t[11])&&t[11].destroy();var r=t[17];if(null!==r&&yt(t[3])){r!==t[3]&&bi(r,t);var i=t[19];null!==i&&i.detachView(e)}}}function Oi(e,t,n,r){Et(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function Ai(e,t,n){Et(e)?e.appendChild(t,n):t.appendChild(n)}function xi(e,t,n,r){null!==r?Oi(e,t,n,r):Ai(e,t,n)}function Ti(e,t){return Et(e)?e.parentNode(t):t.parentNode}function Vi(e,t,n,r){var i=function(e,t,n){for(var r=t.parent;null!=r&&(4===r.type||5===r.type);)r=(t=r).parent;if(null==r){var i=n[6];return 2===i.type?mi(i,n):n[0]}if(t&&5===t.type&&4&t.flags)return At(t,n).parentNode;if(2&r.flags){var o=e.data,s=o[o[r.index].directiveStart].encapsulation;if(s!==nt.ShadowDom&&s!==nt.Native)return null}return At(r,n)}(e,r,t);if(null!=i){var o=t[11],s=function(e,t){if(2===e.type){var n=_i(e,t);return null===n?null:Di(n.indexOf(t,10)-10,n)}return 4===e.type||5===e.type?At(e,t):null}(r.parent||t[6],t);if(Array.isArray(n))for(var a=0;a-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Ei(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){var t,n,r,i;t=this._lView[1],n=this._lView,r=e,(i=pi(n)).push(null),t.firstCreatePass&&function(e){return e.cleanup||(e.cleanup=[])}(t).push(r,i.length-1)}},{key:"markForCheck",value:function(){ci(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){hi(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){qt(!0);try{hi(e,t,n)}finally{qt(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,Pi(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView;return null==e[0]?function e(t,n,r,i){for(var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==r;){var s=n[r.index];if(null!==s&&i.push(It(s)),yt(s))for(var a=10;a1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new Ki(e,n,t||Ji(),r)}var Ki=function(){function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var s=[];n&&$e(n,(function(e){return i.processProvider(e,t,n)})),$e([t],(function(e){return i.processInjectorType(e,[],s)})),this.records.set(Me,eo(void 0,this));var a=this.records.get(Gi);this.scope=null!=a?a.value:null,this.source=o||("object"==typeof t?null:pe(t))}return _createClass(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(e){return e.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ne.Default;this.assertNotDestroyed();var r,i=Fe(this);try{if(!(n&ne.SkipSelf)){var o=this.records.get(e);if(void 0===o){var s=("function"==typeof(r=e)||"object"==typeof r&&r instanceof Pe)&&ae(e);o=s&&this.injectableDefInScope(s)?eo(Yi(e),Zi):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&ne.Self?Ji():this.parent).get(e,t=n&ne.Optional&&t===He?null:t)}catch(a){if("NullInjectorError"===a.name){if((a.ngTempTokenPath=a.ngTempTokenPath||[]).unshift(pe(e)),i)throw a;return function(e,t,n,r){var i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=pe(t);if(Array.isArray(t))i=t.map(pe).join(" -> ");else if("object"==typeof t){var o=[];for(var s in t)if(t.hasOwnProperty(s)){var a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):pe(a)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(Re,"\n "))}("\n"+e.message,i,"R3InjectorError",r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(a,e,0,this.source)}throw a}finally{Fe(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach((function(t){return e.get(t)}))}},{key:"toString",value:function(){var e=[];return this.records.forEach((function(t,n){return e.push(pe(n))})),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=me(e)))return!1;var i=le(e),o=null==i&&e.ngModule||void 0,s=void 0===o?e:o,a=-1!==n.indexOf(s);if(void 0!==o&&(i=le(o)),null==i)return!1;if(null!=i.imports&&!a){var u;n.push(s);try{$e(i.imports,(function(e){r.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))}))}finally{}if(void 0!==u)for(var l=function(e){var t=u[e],n=t.ngModule,i=t.providers;$e(i,(function(e){return r.processProvider(e,n,i||Wi)}))},c=0;c0){var n=function(e,t){for(var n=[],r=0;r2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function to(e){return null!==e&&"object"==typeof e&&je in e}function no(e){return"function"==typeof e}var ro=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=Qi(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)},io=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?ro(e,t,""):ro(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=He,e.NULL=new qe,e.\u0275prov=oe({token:e,providedIn:"any",factory:function(){return Ue(Me)}}),e.__NG_ELEMENT_ID__=-1,e}();function oo(e,t,n){var r=n?e.styles:null,i=n?e.classes:null,o=0;if(null!==t)for(var s=0;s1&&void 0!==arguments[1]?arguments[1]:ne.Default,n=jt();return null==n?Ue(e,t):jn(Lt(),n,me(e),t)}function mo(e,t,n){var r=jt();return fo(r,$t(),t)&&Wr(zt(),ln(),r,e,t,r[11],n,!1),mo}function Co(e,t,n,r,i){var o=i?"class":"style";yi(e,n,t.inputs[o],o,r)}function ko(e,t,n,r){var i=jt(),o=zt(),s=20+e,a=i[11],u=i[s]=Nr(t,a,Ht.lFrame.currentNamespace),l=o.firstCreatePass?function(e,t,n,r,i,o,s){var a=t.consts,u=Nt(a,o),l=Mr(t,n[6],e,3,i,u);return $r(t,n,l,Nt(a,s)),null!==l.attrs&&oo(l,l.attrs,!1),null!==l.mergedAttrs&&oo(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(e,o,i,0,t,n,r):o.data[s];Bt(l,!0);var c=l.mergedAttrs;null!==c&&yn(a,u,c);var h=l.classes;null!==h&&Ri(a,u,h);var f=l.styles;null!==f&&Hi(a,u,f),Vi(o,i,u,l),0===Ht.lFrame.elementDepthCount&&sr(u,i),Ht.lFrame.elementDepthCount++,Ct(l)&&(Lr(o,i,l),Fr(o,l,i)),null!==r&&Br(i,l)}function bo(){var e=Lt();Ut()?Gt():Bt(e=e.parent,!1);var t=e;Ht.lFrame.elementDepthCount--;var n=zt();n.firstCreatePass&&(cn(n,e),_t(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Co(n,t,jt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Co(n,t,jt(),t.stylesWithoutHost,!1)}function wo(e,t,n,r){ko(e,t,n,r),bo()}function Eo(e,t,n){var r=jt(),i=zt(),o=e+20,s=i.firstCreatePass?function(e,t,n,r,i){var o=t.consts,s=Nt(o,r),a=Mr(t,n[6],e,4,"ng-container",s);return null!==s&&oo(a,s,!0),$r(t,n,a,Nt(o,i)),null!==t.queries&&t.queries.elementStart(t,a),a}(e,i,r,t,n):i.data[o];Bt(s,!0);var a=r[o]=r[11].createComment("");Vi(i,r,a,s),sr(a,r),Ct(s)&&(Lr(i,r,s),Fr(i,s,r)),null!=n&&Br(r,s)}function So(){var e=Lt(),t=zt();Ut()?Gt():Bt(e=e.parent,!1),t.firstCreatePass&&(cn(t,e),_t(e)&&t.queries.elementEnd(e))}function Io(){return jt()}function Oo(e){return!!e&&"function"==typeof e.then}function Ao(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=jt(),o=zt(),s=Lt();return function(e,t,n,r,i,o){var s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],a=arguments.length>7?arguments[7]:void 0,u=Ct(r),l=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),c=pi(t),h=!0;if(3===r.type){var f=At(r,t),d=a?a(f):rt,v=d.target||f,p=c.length,g=a?function(e){return a(It(e[r.index])).target}:r.index;if(Et(n)){var y=null;if(!a&&u&&(y=function(e,t,n,r){var i=e.cleanup;if(null!=i)for(var o=0;ou?a[u]:null}"string"==typeof s&&(o+=2)}return null}(e,t,i,r.index)),null!==y)(y.__ngLastListenerFn__||y).__ngNextListenerFn__=o,y.__ngLastListenerFn__=o,h=!1;else{o=To(r,t,o,!1);var _=n.listen(d.name||v,i,o);c.push(o,_),l&&l.push(i,g,p,p+1)}}else o=To(r,t,o,!0),v.addEventListener(i,o,s),c.push(o),l&&l.push(i,g,p,s)}var m,C=r.outputs;if(h&&null!==C&&(m=C[i])){var k=m.length;if(k)for(var b=0;b0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(Ht.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Ht.lFrame.contextLView))[8]}(e)}function Do(e,t,n){return No(e,"",t,"",n),Do}function No(e,t,n,r,i){var o=jt(),s=go(o,t,n,r);return s!==mr&&Wr(zt(),ln(),o,e,s,o[11],i,!1),No}var Po=[];function Mo(e,t,n,r,i){for(var o=e[n+1],s=null===t,a=r?Or(o):xr(o),u=!1;0!==a&&(!1===u||s);){var l=e[a+1];Ho(e[a],t)&&(u=!0,e[a+1]=r?Vr(l):Ar(l)),a=r?Or(l):xr(l)}u&&(e[n+1]=r?Ar(o):Vr(o))}function Ho(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Xe(e,t)>=0}var Ro={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function jo(e){return e.substring(Ro.key,Ro.keyEnd)}function zo(e,t){var n=Ro.textEnd;return n===t?-1:(t=Ro.keyEnd=function(e,t,n){for(;t32;)t++;return t}(e,Ro.key=t,n),Fo(e,t,n))}function Fo(e,t,n){for(;t=0;n=zo(t,n))Ke(e,jo(t),!0)}function Uo(e,t){return t>=e.expandoStartIndex}function Go(e,t,n,r){var i=e.data;if(null===i[n+1]){var o=i[an()+20],s=Uo(e,n);Qo(o,r)&&null===t&&!s&&(t=!1),t=function(e,t,n,r){var i=function(e){var t=Ht.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e),o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=qo(n=Zo(null,e,t,n,r),t.attrs,r),o=null);else{var s=t.directiveStylingLast;if(-1===s||e[s]!==i)if(n=Zo(i,e,t,n,r),null===o){var a=function(e,t,n){var r=n?t.classBindings:t.styleBindings;if(0!==xr(r))return e[Or(r)]}(e,t,r);void 0!==a&&Array.isArray(a)&&function(e,t,n,r){e[Or(n?t.classBindings:t.styleBindings)]=r}(e,t,r,a=qo(a=Zo(null,e,t,a[1],r),t.attrs,r))}else o=function(e,t,n){for(var r=void 0,i=t.directiveEnd,o=1+t.directiveStylingLast;o0)&&(c=!0)}else l=n;if(i)if(0!==u){var f=Or(e[a+1]);e[r+1]=Ir(f,a),0!==f&&(e[f+1]=Tr(e[f+1],r)),e[a+1]=131071&e[a+1]|r<<17}else e[r+1]=Ir(a,0),0!==a&&(e[a+1]=Tr(e[a+1],r)),a=r;else e[r+1]=Ir(u,0),0===a?a=r:e[u+1]=Tr(e[u+1],r),u=r;c&&(e[r+1]=Ar(e[r+1])),Mo(e,l,r,!0),Mo(e,l,r,!1),function(e,t,n,r,i){var o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Xe(o,t)>=0&&(n[r+1]=Vr(n[r+1]))}(t,l,e,r,o),s=Ir(a,u),o?t.classBindings=s:t.styleBindings=s}(i,o,t,n,s,r)}}function Zo(e,t,n,r,i){var o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){var u=e[i],l=Array.isArray(u),c=l?u[1]:u,h=null===c,f=n[i+1];f===mr&&(f=h?Po:void 0);var d=h?Ye(f,r):c===r?f:void 0;if(l&&!Jo(d)&&(d=Ye(u,r)),Jo(d)&&(a=d,s))return a;var v=e[i+1];i=s?Or(v):xr(v)}if(null!==t){var p=o?t.residualClasses:t.residualStyles;null!=p&&(a=Ye(p,r))}return a}function Jo(e){return void 0!==e}function Qo(e,t){return 0!=(e.flags&(t?16:32))}function Ko(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=jt(),r=zt(),i=e+20,o=r.firstCreatePass?Mr(r,n[6],e,3,null,null):r.data[i],s=n[i]=function(e,t){return Et(t)?t.createText(e):t.createTextNode(e)}(t,n[11]);Vi(r,n,s,o),Bt(o,!1)}function Yo(e){return Xo("",e,""),Yo}function Xo(e,t,n){var r=jt(),i=go(r,e,t,n);return i!==mr&&function(e,t,n){var r=Ot(t,e),i=e[11];Et(i)?i.setValue(r,n):r.textContent=n}(r,an(),i),Xo}function es(e,t,n){!function(e,t,n,r){var i=zt(),o=Jt(2);i.firstUpdatePass&&Go(i,null,o,!0);var s=jt();if(n!==mr&&fo(s,o,n)){var a=i.data[an()+20];if(Qo(a,!0)&&!Uo(i,o)){var u=a.classesWithoutHost;null!==u&&(n=ge(u,n||"")),Co(i,a,s,n,!0)}else!function(e,t,n,r,i,o,s,a){i===mr&&(i=Po);for(var u=0,l=0,c=0=0;r--){var i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=mn(i.hostAttrs,n=mn(n,i.hostAttrs))}}(r)}function rs(e){return e===rt?{}:e===it?[]:e}function is(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function os(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function ss(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,r){t(e,r),n(e,r)}:t}var as=function(){function e(t,n,r){_classCallCheck(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return _createClass(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function us(e){e.type.prototype.ngOnChanges&&(e.setInput=ls,e.onChanges=function(){var e=cs(this),t=e&&e.current;if(t){var n=e.previous;if(n===rt)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}})}function ls(e,t,n,r){var i=cs(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:rt,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],u=s[a];o[a]=new as(u&&u.currentValue,t,s===rt),e[r]=t}function cs(e){return e.__ngSimpleChanges__||null}function hs(e,t,n,r,i){if(e=me(e),Array.isArray(e))for(var o=0;o>16;if(no(e)||!e.multi){var v=new gn(l,i,_o),p=vs(u,t,i?h:h+d,f);-1===p?(Rn(Nn(c,a),s,u),fs(s,e,t.length),t.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(v),a.push(v)):(n[p]=v,a[p]=v)}else{var g=vs(u,t,h+d,f),y=vs(u,t,h,h+d),_=g>=0&&n[g],m=y>=0&&n[y];if(i&&!m||!i&&!_){Rn(Nn(c,a),s,u);var C=function(e,t,n,r,i){var o=new gn(e,n,_o);return o.multi=[],o.index=t,o.componentProviders=0,ds(o,i,r&&!n),o}(i?gs:ps,n.length,i,r,l);!i&&m&&(n[y].providerFactory=C),fs(s,e,t.length,0),t.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(C),a.push(C)}else fs(s,e,g>-1?g:y,ds(n[i?y:g],l,!i&&r));!i&&r&&m&&n[y].componentProviders++}}}function fs(e,t,n,r){var i=no(t);if(i||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var s=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){var a=s.indexOf(n);-1===a?s.push(n,[r,o]):s[a+1].push(r,o)}else s.push(n,o)}}}function ds(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function vs(e,t,n,r){for(var i=n;i1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return function(e,t,n){var r=zt();if(r.firstCreatePass){var i=kt(e);hs(n,r.data,r.blueprint,i,!0),hs(t,r.data,r.blueprint,i,!1)}}(n,r?r(e):e,t)}}}us.ngInherit=!0;var ms=function e(){_classCallCheck(this,e)},Cs=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(pe(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),ks=function(){var e=function e(){_classCallCheck(this,e)};return e.NULL=new Cs,e}(),bs=function(){var e=function e(t){_classCallCheck(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=function(){return ws(e)},e}(),ws=function(e){return Ui(e,Lt(),jt())},Es=function e(){_classCallCheck(this,e)},Ss=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({}),Is=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return Os()},e}(),Os=function(){var e=jt(),t=Tt(Lt().index,e);return function(e){var t=e[11];if(Et(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(gt(t)?t:e)},As=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=oe({token:e,providedIn:"root",factory:function(){return null}}),e}(),xs=new function e(t){_classCallCheck(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}("10.0.2"),Ts=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return lo(e)}},{key:"create",value:function(e){return new Ds(e)}}]),e}(),Vs=function(e,t){return t},Ds=function(){function e(t){_classCallCheck(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Vs}return _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex0;)this.remove(this.length-1)}},{key:"get",value:function(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){var s=o.get(We,null);s&&(i=s)}var a=e.create(o,r,void 0,i);return this.insert(a.hostView,t),a}},{key:"insert",value:function(e,t){var n=e._lView,r=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),yt(n[3])){var i=this.indexOf(e);if(-1!==i)this.detach(i);else{var o=n[3],s=new Fi(o,o[6],o[3]);s.detach(s.indexOf(e))}}var a=this._adjustIndex(t);return function(e,t,n,r){var i=10+r,o=n.length;r>0&&(n[i-1][4]=t),r1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return Ui(t,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new Gn(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var e=Hn(this._hostTNode,this._hostView),t=En(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var r=n.parent.injectorIndex,i=n.parent;null!=i.parent&&r==i.parent.injectorIndex;)i=i.parent;return i}for(var o=wn(e),s=t,a=t[6];o>1;)a=(s=s[15])[6],o--;return a}(e,this._hostView,this._hostTNode);return kn(e)&&null!=n?new Gn(n,t):new Gn(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-10}}]),r}(e));var o=r[n.index];if(yt(o))i=o;else{var s;if(4===n.type)s=It(o);else if(s=r[11].createComment(""),bt(r)){var a=r[11],u=At(n,r);Oi(a,Ti(a,u),s,function(e,t){return Et(e)?e.nextSibling(t):t.nextSibling}(a,u))}else Vi(r[1],r,s,n);r[n.index]=i=si(o,r,s,n),li(r,i)}return new Fi(i,n,r)}(e,t,Lt(),jt())},Js={},Qs=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).ngModule=e,r}return _createClass(n,[{key:"resolveComponentFactory",value:function(e){var t=dt(e);return new Xs(t,this.ngModule)}}]),n}(ks);function Ks(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var Ys=new Pe("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return On}}),Xs=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).componentDef=e,i.ngModule=r,i.componentType=e.type,i.selector=e.selectors.map(_r).join(","),i.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],i.isBoundToModule=!!r,i}return _createClass(n,[{key:"create",value:function(e,t,n,r){var i,o,s=(r=r||this.ngModule)?function(e,t){return{get:function(n,r,i){var o=e.get(n,Js,i);return o!==Js||r===Js?o:t.get(n,r,i)}}}(e,r.injector):e,a=s.get(Es,St),u=s.get(As,null),l=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(Et(e))return e.selectRootElement(t,n===nt.ShadowDom);var r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(l,n,this.componentDef.encapsulation):Nr(c,a.createRenderer(null,this.componentDef),function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),f=this.componentDef.onPush?576:528,d={components:[],scheduler:On,clean:vi,playerHandler:null,flags:0},v=Gr(0,-1,null,1,0,null,null,null,null,null),p=Pr(null,v,d,f,null,null,a,l,u,s);en(p,null);try{var g=function(e,t,n,r,i,o){var s=n[1];n[20]=e;var a=Mr(s,null,0,3,null,null),u=a.mergedAttrs=t.hostAttrs;null!==u&&(oo(a,u,!0),null!==e&&(yn(i,e,u),null!==a.classes&&Ri(i,e,a.classes),null!==a.styles&&Hi(i,e,a.styles)));var l=r.createRenderer(e,t),c=Pr(n,Ur(t),null,t.onPush?64:16,n[20],a,r,l,void 0);return s.firstCreatePass&&(Rn(Nn(a,n),s,t.type),Xr(s,a),ti(a,n.length,1)),li(n,c),n[20]=c}(h,this.componentDef,p,a,l);if(h)if(n)yn(l,h,["ng-version",xs.full]);else{var y=function(e){for(var t=[],n=[],r=1,i=2;r0&&Ri(l,h,m.join(" "))}if(o=xt(v,0),void 0!==t)for(var C=o.projection=[],k=0;k null != ".concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}var aa=new Map,ua=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;_classCallCheck(this,n),(i=t.call(this))._parent=r,i._bootstrapComponents=[],i.injector=_assertThisInitialized(i),i.destroyCbs=[],i.componentFactoryResolver=new Qs(_assertThisInitialized(i));var o=pt(e),s=e[Ve]||null;return s&&sa(s),i._bootstrapComponents=xn(o.bootstrap),i._r3Injector=Qi(e,r,[{provide:We,useValue:_assertThisInitialized(i)},{provide:ks,useValue:i.componentFactoryResolver}],pe(e)),i._r3Injector._resolveInjectorDefTypes(),i.instance=i.get(e),i}return _createClass(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:io.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ne.Default;return e===io||e===We||e===Me?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(We),la=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).moduleType=e,null!==pt(e)&&function e(t){if(null!==t.\u0275mod.id){var n=t.\u0275mod.id;(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(pe(t)," vs ").concat(pe(t.name)))})(n,aa.get(n),t),aa.set(n,t)}var r=t.\u0275mod.imports;r instanceof Function&&(r=r()),r&&r.forEach((function(t){return e(t)}))}(e),r}return _createClass(n,[{key:"create",value:function(e){return new ua(this.moduleType,e)}}]),n}(function(){return function e(){_classCallCheck(this,e)}}());function ca(e,t,n,r){return function(e,t,n,r,i,o){var s=t+n;return fo(e,s,i)?ho(e,s+1,o?r.call(o,i):r(i)):da(e,s+1)}(jt(),Wt(),e,t,n,r)}function ha(e,t,n,r,i){return function(e,t,n,r,i,o,s){var a=t+n;return vo(e,a,i,o)?ho(e,a+2,s?r.call(s,i,o):r(i,o)):da(e,a+2)}(jt(),Wt(),e,t,n,r,i)}function fa(e,t,n,r,i,o){return va(jt(),Wt(),e,t,n,r,i,o)}function da(e,t){var n=e[t];return n===mr?void 0:n}function va(e,t,n,r,i,o,s,a){var u=t+n;return function(e,t,n,r,i){var o=vo(e,t,n,r);return fo(e,t+2,i)||o}(e,u,i,o,s)?ho(e,u+3,a?r.call(a,i,o,s):r(i,o,s)):da(e,u+3)}var pa=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(e=t.call(this)).__isAsync=r,e}return _createClass(n,[{key:"emit",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,r){var i,o=function(e){return null},s=function(){return null};e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},t&&(o=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)}),r&&(s=this.__isAsync?function(){setTimeout((function(){return r()}))}:function(){r()}));var a=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,i,o,s);return e instanceof f&&e.add(a),a}}]),n}(I),ga=new Pe("Application Initializer"),ya=function(){var e=function(){function e(t){var n=this;_classCallCheck(this,e),this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(e,t){n.resolve=e,n.reject=t}))}return _createClass(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(e){return e.timeoutId!==i})),e(r._didWork,r.getPendingTasks())}),t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ue(Ra))},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e}(),Wa=function(){var e=function(){function e(){_classCallCheck(this,e),this._applications=new Map,$a.addToWindow(this)}return _createClass(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return $a.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e}(),$a=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Ja=new Pe("AllowMultipleToken");function Qa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: "+t,i=new Pe(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Ka();if(!o||o.injector.get(Ja,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var s=n.concat(t).concat({provide:i,useValue:!0},{provide:Gi,useValue:"platform"});!function(e){if(Ga&&!Ga.destroyed&&!Ga.injector.get(Ja,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ga=e.get(Ya);var t=e.get(ka,null);t&&t.forEach((function(e){return e()}))}(io.create({providers:s,name:r}))}return function(e){var t=Ka();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(i)}}function Ka(){return Ga&&!Ga.destroyed?Ga:null}var Ya=function(){var e=function(){function e(t){_classCallCheck(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,i=this,o=(n=t?t.ngZone:void 0,r=t&&t.ngZoneEventCoalescing||!1,"noop"===n?new Za:("zone.js"===n?void 0:n)||new Ra({enableLongStackTrace:tr(),shouldCoalesceEventChangeDetection:r})),s=[{provide:Ra,useValue:o}];return o.run((function(){var t=io.create({providers:s,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(Qn,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return nu(i._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(e){r.handleError(e)}})})),function(e,t,r){try{var o=((s=n.injector.get(ya)).runInitializers(),s.donePromise.then((function(){return sa(n.injector.get(Sa,"en-US")||"en-US"),i._moduleDoBootstrap(n),n})));return Oo(o)?o.catch((function(n){throw t.runOutsideAngular((function(){return e.handleError(n)})),n})):o}catch(a){throw t.runOutsideAngular((function(){return e.handleError(a)})),a}var s}(r,o)}))}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Xa({},n);return function(e,t,n){var r=new la(n);return Promise.resolve(r)}(0,0,e).then((function(e){return t.bootstrapModuleFactory(e,r)}))}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(tu);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((function(e){return t.bootstrap(e)}));else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(pe(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(e){return e.destroy()})),this._destroyListeners.forEach((function(e){return e()})),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ue(io))},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e}();function Xa(e,t){return Array.isArray(t)?t.reduce(Xa,e):Object.assign(Object.assign({},e),t)}var eu,tu=((eu=function(){function e(t,n,r,i,o,s){var a=this;_classCallCheck(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=tr(),this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run((function(){a.tick()}))}});var u=new C((function(e){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular((function(){e.next(a._stable),e.complete()}))})),l=new C((function(e){var t;a._zone.runOutsideAngular((function(){t=a._zone.onStable.subscribe((function(){Ra.assertNotInAngularZone(),Ha((function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,e.next(!0))}))}))}));var n=a._zone.onUnstable.subscribe((function(){Ra.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof s&&(i=t.pop()),null===o&&1===t.length&&t[0]instanceof C?t[0]:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof n?function(i){return i.pipe(e((function(e,r){return z(t(e,r)).pipe(M((function(t,i){return n(e,t,r,i)})))}),r))}:("number"==typeof n&&(r=n),function(e){return e.lift(new F(t,r))})}(B,e)}(i)(function(e,t){return t?j(e,t):new C(x(e))}(t,o))}(u,l.pipe((function(e){return U()((t=J,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,W);return r.source=e,r.subjectFactory=n,r})(e));var t})))}return _createClass(e,[{key:"bootstrap",value:function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof ms?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(We),o=n.create(io.NULL,[],t||n.selector,i);o.onDestroy((function(){r._unloadComponent(o)}));var s=o.injector.get(qa,null);return s&&o.injector.get(Wa).registerApplication(o.location.nativeElement,s),this._loadComponent(o),tr()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=_createForOfIteratorHelper(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(o){n.e(o)}finally{n.f()}if(this._enforceNoNewChanges){var r,i=_createForOfIteratorHelper(this._views);try{for(i.s();!(r=i.n()).done;)r.value.checkNoChanges()}catch(o){i.e(o)}finally{i.f()}}}catch(s){this._zone.runOutsideAngular((function(){return e._exceptionHandler.handleError(s)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;nu(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(wa,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),nu(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(e){return e.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||eu)(Ue(Ra),Ue(Ea),Ue(io),Ue(Qn),Ue(ks),Ue(ya))},eu.\u0275prov=oe({token:eu,factory:eu.\u0275fac}),eu);function nu(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var ru=Qa(null,"core",[{provide:ba,useValue:"unknown"},{provide:Ya,deps:[io]},{provide:Wa,deps:[]},{provide:Ea,deps:[]}]),iu=[{provide:tu,useClass:tu,deps:[Ra,Ea,io,Qn,ks,ya]},{provide:Ys,deps:[Ra],useFactory:function(e){var t=[];return e.onStable.subscribe((function(){for(;t.length;)t.pop()()})),function(e){t.push(e)}}},{provide:ya,useClass:ya,deps:[[new X,ga]]},{provide:Pa,useClass:Pa,deps:[]},ma,{provide:Fs,useFactory:function(){return Us},deps:[]},{provide:Ls,useFactory:function(){return Gs},deps:[]},{provide:Sa,useFactory:function(e){return sa(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new Y(Sa),new X,new te]]},{provide:Ia,useValue:"USD"}],ou=function(){var e=function e(t){_classCallCheck(this,e)};return e.\u0275mod=ct({type:e}),e.\u0275inj=se({factory:function(t){return new(t||e)(Ue(tu))},providers:iu}),e}(),su=null;function au(){return su}var uu,lu,cu,hu,fu=new Pe("DocumentToken"),du=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),vu=function e(){_classCallCheck(this,e)},pu=((lu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).locale=e,r}return _createClass(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=ia(t);if(n)return n;var r=t.split("-")[0];if(n=ia(r))return n;if("en"===r)return na;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[oa.PluralCase]}(t||this.locale)(e)){case du.Zero:return"zero";case du.One:return"one";case du.Two:return"two";case du.Few:return"few";case du.Many:return"many";default:return"other"}}}]),n}(vu)).\u0275fac=function(e){return new(e||lu)(Ue(Sa))},lu.\u0275prov=oe({token:lu,factory:lu.\u0275fac}),lu),gu=((uu=function(){function e(t,n,r,i){_classCallCheck(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachChangedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachRemovedItem((function(e){e.previousValue&&t._toggleClass(e.key,!1)}))}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+pe(e.item));t._toggleClass(e.item,!0)})),e.forEachRemovedItem((function(e){return t._toggleClass(e.item,!1)}))}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!0)})):Object.keys(e).forEach((function(n){return t._toggleClass(n,!!e[n])})))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!1)})):Object.keys(e).forEach((function(e){return t._toggleClass(e,!1)})))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach((function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)}))}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(lo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}()).\u0275fac=function(e){return new(e||uu)(_o(Fs),_o(Ls),_o(bs),_o(Is))},uu.\u0275dir=ft({type:uu,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),uu),yu=function(){function e(t,n,r,i){_classCallCheck(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}return _createClass(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),_u=((cu=function(){function e(t,n,r){_classCallCheck(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation((function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new yu(null,t._ngForOf,-1,-1),null===i?void 0:i),s=new mu(e,o);n.push(s)}else if(null==i)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var a=t._viewContainer.get(r);t._viewContainer.move(a,i);var u=new mu(e,a);n.push(u)}}));for(var r=0;re?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return qu(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return qu(e.value)||Qu.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){return qu(t.value)||!Wu(t.value)?null:t.value.lengthe?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}},{key:"pattern",value:function(t){return t?("string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(qu(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(Yu);return 0==t.length?null:function(e){return el(function(e,t){return t.map((function(t){return t(e)}))}(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(Yu);return 0==t.length?null:function(e){return function(){for(var e=arguments.length,t=new Array(e),n=0;n=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach((function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)}))}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}]),e}()).\u0275fac=function(e){return new(e||ol)},ol.\u0275prov=oe({token:ol,factory:ol.\u0275fac}),ol),hl=((il=function(){function e(t,n,r,i){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this._registry=r,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return _createClass(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(Gu),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}},{key:"_throwNameError",value:function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')}}]),e}()).\u0275fac=function(e){return new(e||il)(_o(Is),_o(bs),_o(cl),_o(io))},il.\u0275dir=ft({type:il,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&Ao("change",(function(){return t.onChange()}))("blur",(function(){return t.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[_s([ll])]}),il),fl={provide:Nu,useExisting:_e((function(){return dl})),multi:!0},dl=((sl=function(){function e(t,n){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return _createClass(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||sl)(_o(Is),_o(bs))},sl.\u0275dir=ft({type:sl,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&Ao("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[_s([fl])]}),sl),vl='\n \n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',pl='\n ',gl={provide:Nu,useExisting:_e((function(){return Cl})),multi:!0};function yl(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var _l,ml,Cl=((ml=function(){function e(t,n){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Object.is}return _createClass(e,[{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=yl(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var r=[];if(void 0!==n.selectedOptions)for(var i=n.selectedOptions,o=0;o1?"path: '".concat(e.path.join(" -> "),"'"):e.path[0]?"name: '".concat(e.path,"'"):"unspecified name attribute",new Error("".concat(t," ").concat(n))}function Dl(e){return null!=e?Ku.compose(e.map(tl)):null}function Nl(e){return null!=e?Ku.composeAsync(e.map(nl)):null}var Pl=[Mu,dl,ul,Cl,Il,hl];function Ml(e){var t=Rl(e)?e.validators:e;return Array.isArray(t)?Dl(t):t||null}function Hl(e,t){var n=Rl(t)?t.asyncValidators:e;return Array.isArray(n)?Nl(n):n||null}function Rl(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var jl,zl,Fl,Ll,Bl,Ul,Gl,Zl,ql,Wl,$l=function(){function e(t,n){_classCallCheck(this,e),this.validator=t,this.asyncValidator=n,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return _createClass(e,[{key:"setValidators",value:function(e){this.validator=Ml(e)}},{key:"setAsyncValidators",value:function(e){this.asyncValidator=Hl(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(e){return e.markAllAsTouched()}))}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(e){e.markAsUntouched({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(e){e.markAsPristine({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))})),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!0)}))}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild((function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!1)}))}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild((function(t){return t._updateTreeValidity(e)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=Xu(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){return t.setErrors(n,{emitEvent:e})}))}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var r=e;return t.forEach((function(e){r=r instanceof Ql?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof Kl&&r.at(e)||null})),r}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new pa,this.statusChanges=new pa}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls((function(t){return t.status===e}))}},{key:"_anyControlsDirty",value:function(){return this._anyControls((function(e){return e.dirty}))}},{key:"_anyControlsTouched",value:function(){return this._anyControls((function(e){return e.touched}))}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){Rl(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}}]),e}(),Jl=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(e=t.call(this,Ml(i),Hl(o,i)))._onChange=[],e._applyFormState(r),e._setUpdateStrategy(i),e.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),e._initObservables(),e}return _createClass(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach((function(e){return e(t.value,!1!==n.emitViewToModelChange)})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}($l),Ql=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,Ml(r),Hl(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return _createClass(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach((function(r){t._throwIfControlMissing(r),t.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(e).forEach((function(r){t.controls[r]&&t.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},(function(e,t,n){return e[n]=t instanceof Jl?t.value:t.getRawValue(),e}))}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,(function(e,t){return!!t._syncPendingControls()||e}));return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach((function(n){return e(t.controls[n],n)}))}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild((function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)}))}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))}))}}]),n}($l),Kl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,Ml(r),Hl(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return _createClass(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach((function(e,r){t._throwIfControlMissing(r),t.at(r).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e,r){t.at(r)&&t.at(r).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map((function(e){return e instanceof Jl?e.value:e.getRawValue()}))}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild((function(e){return e._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce((function(e,t){return!!t._syncPendingControls()||e}),!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)}},{key:"_forEachChild",value:function(e){this.controls.forEach((function(t,n){e(t,n)}))}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter((function(t){return t.enabled||e.disabled})).map((function(e){return e.value}))}},{key:"_anyControls",value:function(e){return this.controls.some((function(t){return t.enabled&&e(t)}))}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild((function(t){return e._registerControl(t)}))}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))}))}},{key:"_allControlsDisabled",value:function(){var e,t=_createForOfIteratorHelper(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}($l),Yl={provide:Fu,useExisting:_e((function(){return ec}))},Xl=Promise.resolve(null),ec=((zl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).submitted=!1,i._directives=[],i.ngSubmit=new pa,i.form=new Ql({},Dl(e),Nl(r)),i}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(e){var t=this;Xl.then((function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),xl(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)}))}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;Xl.then((function(){var n,r,i,o=t._findContainer(e.path);o&&o.removeControl(e.name),n=t._directives,r=e,(i=n.indexOf(r))>-1&&n.splice(i,1)}))}},{key:"addFormGroup",value:function(e){var t=this;Xl.then((function(){var n=t._findContainer(e.path),r=new Ql({});(function(e,t){null==e&&Vl(t,"Cannot find control with"),e.validator=Ku.compose([e.validator,t.validator]),e.asyncValidator=Ku.composeAsync([e.asyncValidator,t.asyncValidator])})(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(e){var t=this;Xl.then((function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)}))}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;Xl.then((function(){n.form.get(e.path).setValue(t)}))}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,t=this._directives,this.form._syncPendingControls(),t.forEach((function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})),this.ngSubmit.emit(e),!1;var t}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),n}(Fu)).\u0275fac=function(e){return new(e||zl)(_o($u,10),_o(Ju,10))},zl.\u0275dir=ft({type:zl,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&Ao("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_s([Yl]),ns]}),zl),tc=((jl=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"_checkParentType",value:function(){}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return Al(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return Dl(this._validators)}},{key:"asyncValidator",get:function(){return Nl(this._asyncValidators)}}]),n}(Fu)).\u0275fac=function(e){return nc(e||jl)},jl.\u0275dir=ft({type:jl,features:[ns]}),jl),nc=qn(tc),rc=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"modelParentException",value:function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n \n \n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n \n \n \n
\n ')}},{key:"formGroupNameException",value:function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ".concat(vl,"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ").concat(pl))}},{key:"missingNameException",value:function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')}},{key:"modelGroupParentException",value:function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ".concat(vl,"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ").concat(pl))}}]),e}(),ic={provide:Fu,useExisting:_e((function(){return oc}))},oc=((Fl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this))._parent=e,o._validators=r,o._asyncValidators=i,o}return _createClass(n,[{key:"_checkParentType",value:function(){this._parent instanceof n||this._parent instanceof ec||rc.modelGroupParentException()}}]),n}(tc)).\u0275fac=function(e){return new(e||Fl)(_o(Fu,5),_o($u,10),_o(Ju,10))},Fl.\u0275dir=ft({type:Fl,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[_s([ic]),ns]}),Fl),sc={provide:Gu,useExisting:_e((function(){return uc}))},ac=Promise.resolve(null),uc=((Ul=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var s;return _classCallCheck(this,n),(s=t.call(this)).control=new Jl,s._registered=!1,s.update=new pa,s._parent=e,s._rawValidators=r||[],s._rawAsyncValidators=i||[],s.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t)||Vl(e,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,i=void 0;return t.forEach((function(t){var o;t.constructor===ju?n=t:(o=t,Pl.some((function(e){return o.constructor===e}))?(r&&Vl(e,"More than one built-in value accessor matches form control with"),r=t):(i&&Vl(e,"More than one custom value accessor matches form control with"),i=t))})),i||r||n||(Vl(e,"No valid value accessor for form control with"),null)}(_assertThisInitialized(s),o),s}return _createClass(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){xl(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){!(this._parent instanceof oc)&&this._parent instanceof tc?rc.formGroupNameException():this._parent instanceof oc||this._parent instanceof ec||rc.modelParentException()}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||rc.missingNameException()}},{key:"_updateValue",value:function(e){var t=this;ac.then((function(){t.control.setValue(e,{emitViewToModelChange:!1})}))}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;ac.then((function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()}))}},{key:"path",get:function(){return this._parent?Al(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return Dl(this._rawValidators)}},{key:"asyncValidator",get:function(){return Nl(this._rawAsyncValidators)}}]),n}(Gu)).\u0275fac=function(e){return new(e||Ul)(_o(Fu,9),_o($u,10),_o(Ju,10),_o(Nu,10))},Ul.\u0275dir=ft({type:Ul,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[_s([sc]),ns,us]}),Ul),lc=((Bl=function e(){_classCallCheck(this,e)}).\u0275mod=ct({type:Bl}),Bl.\u0275inj=se({factory:function(e){return new(e||Bl)}}),Bl),cc=((Ll=function e(){_classCallCheck(this,e)}).\u0275mod=ct({type:Ll}),Ll.\u0275inj=se({factory:function(e){return new(e||Ll)},providers:[cl],imports:[lc]}),Ll),hc=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=fc||(fc=document.querySelector("base"))?fc.getAttribute("href"):null;return null==n?null:(t=n,Gl||(Gl=document.createElement("a")),Gl.setAttribute("href",t),"/"===Gl.pathname.charAt(0)?Gl.pathname:"/"+Gl.pathname)}},{key:"resetBaseElement",value:function(){fc=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return function(e,t){t=encodeURIComponent(t);var n,r=_createForOfIteratorHelper(e.split(";"));try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.indexOf("="),s=_slicedToArray(-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],2),a=s[0],u=s[1];if(a.trim()===t)return decodeURIComponent(u)}}catch(l){r.e(l)}finally{r.f()}return null}(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,su||(su=e)}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(function(){return function e(){_classCallCheck(this,e)}}())),fc=null,dc=new Pe("TRANSITION_ID"),vc=[{provide:ga,useFactory:function(e,t,n){return function(){n.get(ya).donePromise.then((function(){var n=au();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter((function(t){return t.getAttribute("ng-transition")===e})).forEach((function(e){return n.remove(e)}))}))}},deps:[dc,fu,io],multi:!0}],pc=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){Ie.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Ie.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Ie.getAllAngularRootElements=function(){return e.getAllRootElements()},Ie.frameworkStabilizers||(Ie.frameworkStabilizers=[]),Ie.frameworkStabilizers.push((function(e){var t=Ie.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach((function(e){e.whenStable(i)}))}))}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?au().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,$a=t}}]),e}(),gc=new Pe("EventManagerPlugins"),yc=((Zl=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach((function(e){return e.manager=r})),this._plugins=t.slice().reverse()}return _createClass(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r-1&&(t.splice(n,1),o+=e+".")})),o+=i,0!=t.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Hc.hasOwnProperty(t)&&(t=Hc[t]))}return Mc[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Pc.forEach((function(r){r!=n&&(0,Rc[r])(e)&&(t+=r+".")})),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded((function(){return t(i)}))}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(_c)).\u0275fac=function(e){return new(e||Oc)(Ue(fu))},Oc.\u0275prov=oe({token:Oc,factory:Oc.\u0275fac}),Oc),zc=Qa(ru,"browser",[{provide:ba,useValue:"browser"},{provide:ka,useValue:function(){hc.makeCurrent(),pc.init()},multi:!0},{provide:fu,useFactory:function(){return function(e){wt=e}(document),document},deps:[]}]),Fc=[[],{provide:Gi,useValue:"root"},{provide:Qn,useFactory:function(){return new Qn},deps:[]},{provide:gc,useClass:Nc,multi:!0,deps:[fu,Ra,ba]},{provide:gc,useClass:jc,multi:!0,deps:[fu]},[],{provide:xc,useClass:xc,deps:[yc,Cc,_a]},{provide:Es,useExisting:xc},{provide:mc,useExisting:Cc},{provide:Cc,useClass:Cc,deps:[fu]},{provide:qa,useClass:qa,deps:[Ra]},{provide:yc,useClass:yc,deps:[gc,Ra]},[]],Lc=((Ac=function(){function e(t){if(_classCallCheck(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return _createClass(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:_a,useValue:t.appId},{provide:dc,useExisting:_a},vc]}}}]),e}()).\u0275mod=ct({type:Ac}),Ac.\u0275inj=se({factory:function(e){return new(e||Ac)(Ue(Ac,12))},providers:Fc,imports:[Ou,ou]}),Ac);"undefined"!=typeof window&&window;var Bc,Uc=((Bc=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"nativeWindow",get:function(){return window}}]),e}()).\u0275fac=function(e){return new(e||Bc)},Bc.\u0275prov=oe({token:Bc,factory:Bc.\u0275fac}),Bc),Gc=function e(){_classCallCheck(this,e),this.riskHotspotsSettings=null,this.coverageInfoSettings=null},Zc=function e(){_classCallCheck(this,e),this.groupingMaximum=0,this.grouping=0,this.historyComparisionDate="",this.historyComparisionType="",this.filter="",this.sortBy="name",this.sortOrder="asc",this.collapseStates=[]},qc=function(){function e(t){_classCallCheck(this,e),this.et="",this.et=t.et,this.cl=t.cl,this.ucl=t.ucl,this.cal=t.cal,this.tl=t.tl,this.lcq=t.lcq,this.cb=t.cb,this.tb=t.tb,this.bcq=t.bcq}return _createClass(e,[{key:"coverageRatioText",get:function(){return 0===this.tl?"-":this.cl+"/"+this.cal}},{key:"branchCoverageRatioText",get:function(){return 0===this.tb?"-":this.cb+"/"+this.tb}}]),e}(),Wc=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"roundNumber",value:function(e,t){return Math.floor(e*Math.pow(10,t))/Math.pow(10,t)}},{key:"getNthOrLastIndexOf",value:function(e,t,n){for(var r=0,i=-1,o=-1;r=this.currentHistoricCoverage.lcq)return!1}else if("branchCoverageIncreaseOnly"===t){var i=this.branchCoverage;if(isNaN(i)||i<=this.currentHistoricCoverage.bcq)return!1}else if("branchCoverageDecreaseOnly"===t){var o=this.branchCoverage;if(isNaN(o)||o>=this.currentHistoricCoverage.bcq)return!1}return!0}},{key:"updateCurrentHistoricCoverage",value:function(e){if(this.currentHistoricCoverage=null,""!==e)for(var t=0;t-1&&null===r,i}return _createClass(n,[{key:"visible",value:function(e,t){if(""!==e&&this.name.toLowerCase().indexOf(e.toLowerCase())>-1)return!0;for(var n=0;n0,this.redVisible=!isNaN(e)&&100-Math.round(e)>0,this.greenClass="covered"+Math.round(e),this.redClass="covered"+(100-Math.round(e))}}]),e}()).\u0275fac=function(e){return new(e||eh)},eh.\u0275cmp=st({type:eh,selectors:[["coverage-bar"]],inputs:{percentage:"percentage"},decls:4,vars:3,consts:[[1,"coverage"],["class","gray covered100",4,"ngIf"],[3,"class",4,"ngIf"],[1,"gray","covered100"]],template:function(e,t){1&e&&(ko(0,"table",0),yo(1,Kc,1,0,"td",1),yo(2,Yc,1,3,"td",2),yo(3,Xc,1,3,"td",2),bo()),2&e&&(Er(1),mo("ngIf",t.grayVisible),Er(1),mo("ngIf",t.greenVisible),Er(1),mo("ngIf",t.redVisible))},directives:[Cu],encapsulation:2,changeDetection:0}),eh),nh=["codeelement-row",""];function rh(e,t){if(1&e&&(ko(0,"th",2),Ko(1),bo()),2&e){var n=Vo();Er(1),Yo(n.element.coveredBranches)}}function ih(e,t){if(1&e&&(ko(0,"th",2),Ko(1),bo()),2&e){var n=Vo();Er(1),Yo(n.element.totalBranches)}}function oh(e,t){if(1&e&&(ko(0,"th",3),Ko(1),bo()),2&e){var n=Vo();mo("title",n.element.branchCoverageRatioText),Er(1),Yo(n.element.branchCoveragePercentage)}}function sh(e,t){if(1&e&&(ko(0,"th",2),wo(1,"coverage-bar",4),bo()),2&e){var n=Vo();Er(1),mo("percentage",n.element.branchCoverage)}}var ah,uh,lh=function(e,t){return{"icon-plus":e,"icon-minus":t}},ch=((ah=function e(){_classCallCheck(this,e),this.element=null,this.collapsed=!1,this.branchCoverageAvailable=!1}).\u0275fac=function(e){return new(e||ah)},ah.\u0275cmp=st({type:ah,selectors:[["","codeelement-row",""]],inputs:{element:"element",collapsed:"collapsed",branchCoverageAvailable:"branchCoverageAvailable"},attrs:nh,decls:20,vars:16,consts:[["href","#",3,"click"],[3,"ngClass"],[1,"right"],[1,"right",3,"title"],[3,"percentage"],["class","right",4,"ngIf"],["class","right",3,"title",4,"ngIf"]],template:function(e,t){1&e&&(ko(0,"th"),ko(1,"a",0),Ao("click",(function(e){return t.element.toggleCollapse(e)})),wo(2,"i",1),Ko(3),bo(),bo(),ko(4,"th",2),Ko(5),bo(),ko(6,"th",2),Ko(7),bo(),ko(8,"th",2),Ko(9),bo(),ko(10,"th",2),Ko(11),bo(),ko(12,"th",3),Ko(13),bo(),ko(14,"th",2),wo(15,"coverage-bar",4),bo(),yo(16,rh,2,1,"th",5),yo(17,ih,2,1,"th",5),yo(18,oh,2,2,"th",6),yo(19,sh,2,1,"th",5)),2&e&&(Er(2),mo("ngClass",ha(13,lh,t.element.collapsed,!t.element.collapsed)),Er(1),Xo(" ",t.element.name,""),Er(2),Yo(t.element.coveredLines),Er(2),Yo(t.element.uncoveredLines),Er(2),Yo(t.element.coverableLines),Er(2),Yo(t.element.totalLines),Er(1),mo("title",t.element.coverageRatioText),Er(1),Yo(t.element.coveragePercentage),Er(2),mo("percentage",t.element.coverage),Er(1),mo("ngIf",t.branchCoverageAvailable),Er(1),mo("ngIf",t.branchCoverageAvailable),Er(1),mo("ngIf",t.branchCoverageAvailable),Er(1),mo("ngIf",t.branchCoverageAvailable))},directives:[gu,th,Cu],encapsulation:2,changeDetection:0}),ah),hh=["coverage-history-chart",""],fh=((uh=function(){function e(){_classCallCheck(this,e),this.path=null,this._historicCoverages=[]}return _createClass(e,[{key:"historicCoverages",get:function(){return this._historicCoverages},set:function(e){if(this._historicCoverages=e,e.length>1){for(var t="",n=0;n1),Er(1),mo("ngIf",null!==n.clazz.currentHistoricCoverage),Er(1),mo("ngIf",null===n.clazz.currentHistoricCoverage)}}function jh(e,t){if(1&e&&(ko(0,"td",2),wo(1,"coverage-bar",5),bo()),2&e){var n=Vo();Er(1),mo("percentage",n.clazz.branchCoverage)}}var zh,Fh=((zh=function(){function e(){_classCallCheck(this,e),this.clazz=null,this.translations={},this.branchCoverageAvailable=!1,this.historyComparisionDate=""}return _createClass(e,[{key:"getClassName",value:function(e,t){return e>t?"lightgreen":e1),Er(1),mo("ngIf",null!==t.clazz.currentHistoricCoverage),Er(1),mo("ngIf",null===t.clazz.currentHistoricCoverage),Er(2),mo("percentage",t.clazz.coverage),Er(1),mo("ngIf",t.branchCoverageAvailable),Er(1),mo("ngIf",t.branchCoverageAvailable),Er(1),mo("ngIf",t.branchCoverageAvailable),Er(1),mo("ngIf",t.branchCoverageAvailable))},directives:[Cu,th,fh,gu],encapsulation:2,changeDetection:0}),zh);function Lh(e,t){if(1&e&&(Eo(0),Ko(1),So()),2&e){var n=Vo(2);Er(1),Yo(n.translations.noGrouping)}}function Bh(e,t){if(1&e&&(Eo(0),Ko(1),So()),2&e){var n=Vo(2);Er(1),Yo(n.translations.byAssembly)}}function Uh(e,t){if(1&e&&(Eo(0),Ko(1),So()),2&e){var n=Vo(2);Er(1),Yo(n.translations.byNamespace+" "+n.settings.grouping)}}function Gh(e,t){if(1&e&&(ko(0,"option",26),Ko(1),bo()),2&e){var n=t.$implicit;mo("value",n),Er(1),Yo(n)}}function Zh(e,t){1&e&&wo(0,"br")}function qh(e,t){if(1&e&&(ko(0,"option",32),Ko(1),bo()),2&e){var n=Vo(4);Er(1),Xo(" ",n.translations.branchCoverageIncreaseOnly," ")}}function Wh(e,t){if(1&e&&(ko(0,"option",33),Ko(1),bo()),2&e){var n=Vo(4);Er(1),Xo(" ",n.translations.branchCoverageDecreaseOnly," ")}}function $h(e,t){if(1&e){var n=Io();ko(0,"div"),ko(1,"select",23),Ao("ngModelChange",(function(e){return Ft(n),Vo(3).settings.historyComparisionType=e})),ko(2,"option",24),Ko(3),bo(),ko(4,"option",27),Ko(5),bo(),ko(6,"option",28),Ko(7),bo(),ko(8,"option",29),Ko(9),bo(),yo(10,qh,2,1,"option",30),yo(11,Wh,2,1,"option",31),bo(),bo()}if(2&e){var r=Vo(3);Er(1),mo("ngModel",r.settings.historyComparisionType),Er(2),Yo(r.translations.filter),Er(2),Yo(r.translations.allChanges),Er(2),Yo(r.translations.lineCoverageIncreaseOnly),Er(2),Yo(r.translations.lineCoverageDecreaseOnly),Er(1),mo("ngIf",r.branchCoverageAvailable),Er(1),mo("ngIf",r.branchCoverageAvailable)}}function Jh(e,t){if(1&e){var n=Io();Eo(0),ko(1,"div"),Ko(2),ko(3,"select",23),Ao("ngModelChange",(function(e){return Ft(n),Vo(2).settings.historyComparisionDate=e}))("ngModelChange",(function(){return Ft(n),Vo(2).updateCurrentHistoricCoverage()})),ko(4,"option",24),Ko(5),bo(),yo(6,Gh,2,2,"option",25),bo(),bo(),yo(7,Zh,1,0,"br",0),yo(8,$h,12,7,"div",0),So()}if(2&e){var r=Vo(2);Er(2),Xo(" ",r.translations.compareHistory," "),Er(1),mo("ngModel",r.settings.historyComparisionDate),Er(2),Yo(r.translations.date),Er(1),mo("ngForOf",r.historicCoverageExecutionTimes),Er(1),mo("ngIf",""!==r.settings.historyComparisionDate),Er(1),mo("ngIf",""!==r.settings.historyComparisionDate)}}function Qh(e,t){1&e&&wo(0,"col",8)}function Kh(e,t){1&e&&wo(0,"col",11)}function Yh(e,t){1&e&&wo(0,"col",12)}function Xh(e,t){1&e&&wo(0,"col",13)}var ef=function(e,t,n){return{"icon-up-dir_active":e,"icon-down-dir_active":t,"icon-down-dir":n}};function tf(e,t){if(1&e){var n=Io();ko(0,"th",5),ko(1,"a",2),Ao("click",(function(e){return Ft(n),Vo(2).updateSorting("covered_branches",e)})),wo(2,"i",18),Ko(3),bo(),bo()}if(2&e){var r=Vo(2);Er(2),mo("ngClass",fa(2,ef,"covered_branches"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"covered_branches"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"covered_branches"!==r.settings.sortBy)),Er(1),Yo(r.translations.covered)}}function nf(e,t){if(1&e){var n=Io();ko(0,"th",5),ko(1,"a",2),Ao("click",(function(e){return Ft(n),Vo(2).updateSorting("total_branches",e)})),wo(2,"i",18),Ko(3),bo(),bo()}if(2&e){var r=Vo(2);Er(2),mo("ngClass",fa(2,ef,"total_branches"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"total_branches"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"total_branches"!==r.settings.sortBy)),Er(1),Yo(r.translations.total)}}function rf(e,t){if(1&e){var n=Io();ko(0,"th",19),ko(1,"a",2),Ao("click",(function(e){return Ft(n),Vo(2).updateSorting("branchcoverage",e)})),wo(2,"i",18),Ko(3),bo(),bo()}if(2&e){var r=Vo(2);Er(2),mo("ngClass",fa(2,ef,"branchcoverage"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"branchcoverage"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"branchcoverage"!==r.settings.sortBy)),Er(1),Yo(r.translations.branchCoverage)}}function of(e,t){if(1&e&&wo(0,"tr",35),2&e){var n=Vo().$implicit,r=Vo(2);mo("element",n)("collapsed",n.collapsed)("branchCoverageAvailable",r.branchCoverageAvailable)}}function sf(e,t){if(1&e&&wo(0,"tr",37),2&e){var n=Vo().$implicit,r=Vo(3);mo("clazz",n)("translations",r.translations)("branchCoverageAvailable",r.branchCoverageAvailable)("historyComparisionDate",r.settings.historyComparisionDate)}}function af(e,t){if(1&e&&(Eo(0),yo(1,sf,1,4,"tr",36),So()),2&e){var n=t.$implicit,r=Vo().$implicit,i=Vo(2);Er(1),mo("ngIf",!r.collapsed&&n.visible(i.settings.filter,i.settings.historyComparisionType))}}function uf(e,t){if(1&e&&wo(0,"tr",40),2&e){var n=Vo().$implicit,r=Vo(5);mo("clazz",n)("translations",r.translations)("branchCoverageAvailable",r.branchCoverageAvailable)("historyComparisionDate",r.settings.historyComparisionDate)}}function lf(e,t){if(1&e&&(Eo(0),yo(1,uf,1,4,"tr",39),So()),2&e){var n=t.$implicit,r=Vo(2).$implicit,i=Vo(3);Er(1),mo("ngIf",!r.collapsed&&n.visible(i.settings.filter,i.settings.historyComparisionType))}}function cf(e,t){if(1&e&&(Eo(0),wo(1,"tr",38),yo(2,lf,2,1,"ng-container",22),So()),2&e){var n=Vo().$implicit,r=Vo(3);Er(1),mo("element",n)("collapsed",n.collapsed)("branchCoverageAvailable",r.branchCoverageAvailable),Er(1),mo("ngForOf",n.classes)}}function hf(e,t){if(1&e&&(Eo(0),yo(1,cf,3,4,"ng-container",0),So()),2&e){var n=t.$implicit,r=Vo().$implicit,i=Vo(2);Er(1),mo("ngIf",!r.collapsed&&n.visible(i.settings.filter,i.settings.historyComparisionType))}}function ff(e,t){if(1&e&&(Eo(0),yo(1,of,1,3,"tr",34),yo(2,af,2,1,"ng-container",22),yo(3,hf,2,1,"ng-container",22),So()),2&e){var n=t.$implicit,r=Vo(2);Er(1),mo("ngIf",n.visible(r.settings.filter,r.settings.historyComparisionType)),Er(1),mo("ngForOf",n.classes),Er(1),mo("ngForOf",n.subElements)}}function df(e,t){if(1&e){var n=Io();ko(0,"div"),ko(1,"div",1),ko(2,"div"),ko(3,"a",2),Ao("click",(function(e){return Ft(n),Vo().collapseAll(e)})),Ko(4),bo(),Ko(5," | "),ko(6,"a",2),Ao("click",(function(e){return Ft(n),Vo().expandAll(e)})),Ko(7),bo(),bo(),ko(8,"div",3),yo(9,Lh,2,1,"ng-container",0),yo(10,Bh,2,1,"ng-container",0),yo(11,Uh,2,1,"ng-container",0),wo(12,"br"),Ko(13),ko(14,"input",4),Ao("ngModelChange",(function(e){return Ft(n),Vo().settings.grouping=e}))("ngModelChange",(function(){return Ft(n),Vo().updateCoverageInfo()})),bo(),bo(),ko(15,"div",3),yo(16,Jh,9,6,"ng-container",0),bo(),ko(17,"div",5),ko(18,"span"),Ko(19),bo(),ko(20,"input",6),Ao("ngModelChange",(function(e){return Ft(n),Vo().settings.filter=e})),bo(),bo(),bo(),ko(21,"table",7),ko(22,"colgroup"),wo(23,"col"),wo(24,"col",8),wo(25,"col",9),wo(26,"col",10),wo(27,"col",11),wo(28,"col",12),wo(29,"col",13),yo(30,Qh,1,0,"col",14),yo(31,Kh,1,0,"col",15),yo(32,Yh,1,0,"col",16),yo(33,Xh,1,0,"col",17),bo(),ko(34,"thead"),ko(35,"tr"),ko(36,"th"),ko(37,"a",2),Ao("click",(function(e){return Ft(n),Vo().updateSorting("name",e)})),wo(38,"i",18),Ko(39),bo(),bo(),ko(40,"th",5),ko(41,"a",2),Ao("click",(function(e){return Ft(n),Vo().updateSorting("covered",e)})),wo(42,"i",18),Ko(43),bo(),bo(),ko(44,"th",5),ko(45,"a",2),Ao("click",(function(e){return Ft(n),Vo().updateSorting("uncovered",e)})),wo(46,"i",18),Ko(47),bo(),bo(),ko(48,"th",5),ko(49,"a",2),Ao("click",(function(e){return Ft(n),Vo().updateSorting("coverable",e)})),wo(50,"i",18),Ko(51),bo(),bo(),ko(52,"th",5),ko(53,"a",2),Ao("click",(function(e){return Ft(n),Vo().updateSorting("total",e)})),wo(54,"i",18),Ko(55),bo(),bo(),ko(56,"th",19),ko(57,"a",2),Ao("click",(function(e){return Ft(n),Vo().updateSorting("coverage",e)})),wo(58,"i",18),Ko(59),bo(),bo(),yo(60,tf,4,6,"th",20),yo(61,nf,4,6,"th",20),yo(62,rf,4,6,"th",21),bo(),bo(),ko(63,"tbody"),yo(64,ff,4,3,"ng-container",22),bo(),bo(),bo()}if(2&e){var r=Vo();Er(4),Yo(r.translations.collapseAll),Er(3),Yo(r.translations.expandAll),Er(2),mo("ngIf",-1===r.settings.grouping),Er(1),mo("ngIf",0===r.settings.grouping),Er(1),mo("ngIf",r.settings.grouping>0),Er(2),Xo(" ",r.translations.grouping," "),Er(1),mo("max",r.settings.groupingMaximum)("ngModel",r.settings.grouping),Er(2),mo("ngIf",r.historicCoverageExecutionTimes.length>0),Er(3),Xo("",r.translations.filter," "),Er(1),mo("ngModel",r.settings.filter),Er(10),mo("ngIf",r.branchCoverageAvailable),Er(1),mo("ngIf",r.branchCoverageAvailable),Er(1),mo("ngIf",r.branchCoverageAvailable),Er(1),mo("ngIf",r.branchCoverageAvailable),Er(5),mo("ngClass",fa(31,ef,"name"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"name"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"name"!==r.settings.sortBy)),Er(1),Yo(r.translations.name),Er(3),mo("ngClass",fa(35,ef,"covered"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"covered"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"covered"!==r.settings.sortBy)),Er(1),Yo(r.translations.covered),Er(3),mo("ngClass",fa(39,ef,"uncovered"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"uncovered"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"uncovered"!==r.settings.sortBy)),Er(1),Yo(r.translations.uncovered),Er(3),mo("ngClass",fa(43,ef,"coverable"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"coverable"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"coverable"!==r.settings.sortBy)),Er(1),Yo(r.translations.coverable),Er(3),mo("ngClass",fa(47,ef,"total"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"total"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"total"!==r.settings.sortBy)),Er(1),Yo(r.translations.total),Er(3),mo("ngClass",fa(51,ef,"coverage"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"coverage"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"coverage"!==r.settings.sortBy)),Er(1),Yo(r.translations.coverage),Er(1),mo("ngIf",r.branchCoverageAvailable),Er(1),mo("ngIf",r.branchCoverageAvailable),Er(1),mo("ngIf",r.branchCoverageAvailable),Er(2),mo("ngForOf",r.codeElements)}}var vf,pf=((vf=function(){function e(t){_classCallCheck(this,e),this.queryString="",this.historicCoverageExecutionTimes=[],this.branchCoverageAvailable=!1,this.codeElements=[],this.translations={},this.settings=new Zc,this.window=t.nativeWindow}return _createClass(e,[{key:"ngOnInit",value:function(){this.historicCoverageExecutionTimes=this.window.historicCoverageExecutionTimes,this.branchCoverageAvailable=this.window.branchCoverageAvailable,this.translations=this.window.translations;var e=!1;if(void 0!==this.window.history&&void 0!==this.window.history.replaceState&&null!==this.window.history.state&&null!=this.window.history.state.coverageInfoSettings)console.log("Coverage info: Restoring from history",this.window.history.state.coverageInfoSettings),e=!0,this.settings=JSON.parse(JSON.stringify(this.window.history.state.coverageInfoSettings));else{for(var t=0,n=this.window.assemblies,r=0;r-1&&(this.queryString=window.location.href.substr(o)),this.updateCoverageInfo(),e&&this.restoreCollapseState()}},{key:"onDonBeforeUnlodad",value:function(){if(this.saveCollapseState(),void 0!==this.window.history&&void 0!==this.window.history.replaceState){console.log("Coverage info: Updating history",this.settings);var e=null;(e=null!==window.history.state?JSON.parse(JSON.stringify(this.window.history.state)):new Gc).coverageInfoSettings=JSON.parse(JSON.stringify(this.settings)),window.history.replaceState(e,null)}}},{key:"updateCoverageInfo",value:function(){var e=(new Date).getTime(),t=this.window.assemblies,n=[],r=0;if(0===this.settings.grouping)for(var i=0;it&&(r[i].collapsed=e.settings.collapseStates[t]),t++,n(r[i].subElements)}(this.codeElements)}}]),e}()).\u0275fac=function(e){return new(e||vf)(_o(Uc))},vf.\u0275cmp=st({type:vf,selectors:[["coverage-info"]],hostBindings:function(e,t){1&e&&Ao("beforeunload",(function(){return t.onDonBeforeUnlodad()}),!1,An)},decls:1,vars:1,consts:[[4,"ngIf"],[1,"customizebox"],["href","#",3,"click"],[1,"center"],["type","range","step","1","min","-1",3,"max","ngModel","ngModelChange"],[1,"right"],["type","text",3,"ngModel","ngModelChange"],[1,"overview","table-fixed","stripped"],[1,"column90"],[1,"column105"],[1,"column100"],[1,"column70"],[1,"column98"],[1,"column112"],["class","column90",4,"ngIf"],["class","column70",4,"ngIf"],["class","column98",4,"ngIf"],["class","column112",4,"ngIf"],[1,"icon-down-dir",3,"ngClass"],["colspan","2",1,"center"],["class","right",4,"ngIf"],["class","center","colspan","2",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],["value",""],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["value","allChanges"],["value","lineCoverageIncreaseOnly"],["value","lineCoverageDecreaseOnly"],["value","branchCoverageIncreaseOnly",4,"ngIf"],["value","branchCoverageDecreaseOnly",4,"ngIf"],["value","branchCoverageIncreaseOnly"],["value","branchCoverageDecreaseOnly"],["codeelement-row","",3,"element","collapsed","branchCoverageAvailable",4,"ngIf"],["codeelement-row","",3,"element","collapsed","branchCoverageAvailable"],["class-row","",3,"clazz","translations","branchCoverageAvailable","historyComparisionDate",4,"ngIf"],["class-row","",3,"clazz","translations","branchCoverageAvailable","historyComparisionDate"],["codeelement-row","",1,"namespace",3,"element","collapsed","branchCoverageAvailable"],["class","namespace","class-row","",3,"clazz","translations","branchCoverageAvailable","historyComparisionDate",4,"ngIf"],["class-row","",1,"namespace",3,"clazz","translations","branchCoverageAvailable","historyComparisionDate"]],template:function(e,t){1&e&&yo(0,df,65,55,"div",0),2&e&&mo("ngIf",t.codeElements.length>0)},directives:[Cu,dl,ju,Zu,uc,gu,_u,Cl,kl,Ol,ch,Fh],encapsulation:2}),vf),gf=function e(){_classCallCheck(this,e),this.assembly="",this.numberOfRiskHotspots=10,this.filter="",this.sortBy="",this.sortOrder="asc"};function yf(e,t){if(1&e&&(ko(0,"option",14),Ko(1),bo()),2&e){var n=t.$implicit;mo("value",n),Er(1),Yo(n)}}function _f(e,t){1&e&&(ko(0,"option",21),Ko(1,"20"),bo())}function mf(e,t){1&e&&(ko(0,"option",22),Ko(1,"50"),bo())}function Cf(e,t){1&e&&(ko(0,"option",23),Ko(1,"100"),bo())}function kf(e,t){if(1&e&&(ko(0,"option",14),Ko(1),bo()),2&e){var n=Vo(3);mo("value",n.totalNumberOfRiskHotspots),Er(1),Yo(n.translations.all)}}function bf(e,t){if(1&e){var n=Io();ko(0,"select",15),Ao("ngModelChange",(function(e){return Ft(n),Vo(2).settings.numberOfRiskHotspots=e})),ko(1,"option",16),Ko(2,"10"),bo(),yo(3,_f,2,0,"option",17),yo(4,mf,2,0,"option",18),yo(5,Cf,2,0,"option",19),yo(6,kf,2,2,"option",20),bo()}if(2&e){var r=Vo(2);mo("ngModel",r.settings.numberOfRiskHotspots),Er(3),mo("ngIf",r.totalNumberOfRiskHotspots>10),Er(1),mo("ngIf",r.totalNumberOfRiskHotspots>20),Er(1),mo("ngIf",r.totalNumberOfRiskHotspots>50),Er(1),mo("ngIf",r.totalNumberOfRiskHotspots>100)}}function wf(e,t){1&e&&wo(0,"col",24)}var Ef=function(e,t,n){return{"icon-up-dir_active":e,"icon-down-dir_active":t,"icon-down-dir":n}};function Sf(e,t){if(1&e){var n=Io();ko(0,"th"),ko(1,"a",11),Ao("click",(function(e){Ft(n);var r=t.index;return Vo(2).updateSorting(""+r,e)})),wo(2,"i",12),Ko(3),bo(),ko(4,"a",25),wo(5,"i",26),bo(),bo()}if(2&e){var r=t.$implicit,i=t.index,o=Vo(2);Er(2),mo("ngClass",fa(3,Ef,o.settings.sortBy===""+i&&"desc"===o.settings.sortOrder,o.settings.sortBy===""+i&&"asc"===o.settings.sortOrder,o.settings.sortBy!==""+i)),Er(1),Yo(r.name),Er(1),Do("href",r.explanationUrl,or)}}var If=function(e,t){return{lightred:e,lightgreen:t}};function Of(e,t){if(1&e&&(ko(0,"td",29),Ko(1),bo()),2&e){var n=t.$implicit;mo("ngClass",ha(2,If,n.exceeded,!n.exceeded)),Er(1),Yo(n.value)}}function Af(e,t){if(1&e&&(ko(0,"tr"),ko(1,"td"),Ko(2),bo(),ko(3,"td"),ko(4,"a",25),Ko(5),bo(),bo(),ko(6,"td",27),ko(7,"a",25),Ko(8),bo(),bo(),yo(9,Of,2,5,"td",28),bo()),2&e){var n=t.$implicit,r=Vo(2);Er(2),Yo(n.assembly),Er(2),mo("href",n.reportPath+r.queryString,or),Er(1),Yo(n.class),Er(1),mo("title",n.methodName),Er(1),mo("href",n.reportPath+r.queryString+"#file"+n.fileIndex+"_line"+n.line,or),Er(1),Xo(" ",n.methodShortName," "),Er(1),mo("ngForOf",n.metrics)}}function xf(e,t){if(1&e){var n=Io();ko(0,"div"),ko(1,"div",1),ko(2,"div"),ko(3,"select",2),Ao("ngModelChange",(function(e){return Ft(n),Vo().settings.assembly=e}))("ngModelChange",(function(){return Ft(n),Vo().updateRiskHotpots()})),ko(4,"option",3),Ko(5),bo(),yo(6,yf,2,2,"option",4),bo(),bo(),ko(7,"div",5),ko(8,"span"),Ko(9),bo(),yo(10,bf,7,5,"select",6),bo(),wo(11,"div",5),ko(12,"div",7),ko(13,"span"),Ko(14),bo(),ko(15,"input",8),Ao("ngModelChange",(function(e){return Ft(n),Vo().settings.filter=e}))("ngModelChange",(function(){return Ft(n),Vo().updateRiskHotpots()})),bo(),bo(),bo(),ko(16,"table",9),ko(17,"colgroup"),wo(18,"col"),wo(19,"col"),wo(20,"col"),yo(21,wf,1,0,"col",10),bo(),ko(22,"thead"),ko(23,"tr"),ko(24,"th"),ko(25,"a",11),Ao("click",(function(e){return Ft(n),Vo().updateSorting("assembly",e)})),wo(26,"i",12),Ko(27),bo(),bo(),ko(28,"th"),ko(29,"a",11),Ao("click",(function(e){return Ft(n),Vo().updateSorting("class",e)})),wo(30,"i",12),Ko(31),bo(),bo(),ko(32,"th"),ko(33,"a",11),Ao("click",(function(e){return Ft(n),Vo().updateSorting("method",e)})),wo(34,"i",12),Ko(35),bo(),bo(),yo(36,Sf,6,7,"th",13),bo(),bo(),ko(37,"tbody"),yo(38,Af,10,7,"tr",13),function(e,t){var n,r=zt();r.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var r=t[n];if("slice"===r.name)return r}throw new Error("The pipe 'slice' could not be found!")}(0,r.pipeRegistry),r.data[59]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(59,n.onDestroy)):n=r.data[59];var i=n.factory||(n.factory=vt(n.type)),o=Le(_o),s=Vn(!1),a=i();Vn(s),Le(o),function(e,t,n,r){59>=e.data.length&&(e.data[59]=null,e.blueprint[59]=null),t[59]=r}(r,jt(),0,a)}(),bo(),bo(),bo()}if(2&e){var r=Vo();Er(3),mo("ngModel",r.settings.assembly),Er(2),Yo(r.translations.assembly),Er(1),mo("ngForOf",r.assemblies),Er(3),Yo(r.translations.top),Er(1),mo("ngIf",r.totalNumberOfRiskHotspots>10),Er(4),Xo("",r.translations.filter," "),Er(1),mo("ngModel",r.settings.filter),Er(6),mo("ngForOf",r.riskHotspotMetrics),Er(5),mo("ngClass",fa(20,Ef,"assembly"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"assembly"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"assembly"!==r.settings.sortBy)),Er(1),Yo(r.translations.assembly),Er(3),mo("ngClass",fa(24,Ef,"class"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"class"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"class"!==r.settings.sortBy)),Er(1),Yo(r.translations.class),Er(3),mo("ngClass",fa(28,Ef,"method"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"method"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"method"!==r.settings.sortBy)),Er(1),Yo(r.translations.method),Er(1),mo("ngForOf",r.riskHotspotMetrics),Er(2),mo("ngForOf",(i=r.riskHotspots,o=r.settings.numberOfRiskHotspots,s=jt(),a=s[59],function(e,t){return uo.isWrapped(t)&&(t=uo.unwrap(t),e[Ht.lFrame.bindingIndex]=mr),t}(s,function(e,t){return e[1].data[59].pure}(s)?va(s,Wt(),16,a.transform,i,0,o,a):a.transform(i,0,o))))}var i,o,s,a}var Tf,Vf,Df=((Vf=function(){function e(t){_classCallCheck(this,e),this.queryString="",this.riskHotspotMetrics=[],this.riskHotspots=[],this.totalNumberOfRiskHotspots=0,this.assemblies=[],this.translations={},this.settings=new gf,this.window=t.nativeWindow}return _createClass(e,[{key:"ngOnInit",value:function(){this.riskHotspotMetrics=this.window.riskHotspotMetrics,this.translations=this.window.translations,void 0!==this.window.history&&void 0!==this.window.history.replaceState&&null!==this.window.history.state&&null!=this.window.history.state.riskHotspotsSettings&&(console.log("Risk hotspots: Restoring from history",this.window.history.state.riskHotspotsSettings),this.settings=JSON.parse(JSON.stringify(this.window.history.state.riskHotspotsSettings)));var e=window.location.href.indexOf("?");e>-1&&(this.queryString=window.location.href.substr(e)),this.updateRiskHotpots()}},{key:"onDonBeforeUnlodad",value:function(){if(void 0!==this.window.history&&void 0!==this.window.history.replaceState){console.log("Risk hotspots: Updating history",this.settings);var e=null;(e=null!==window.history.state?JSON.parse(JSON.stringify(this.window.history.state)):new Gc).riskHotspotsSettings=JSON.parse(JSON.stringify(this.settings)),window.history.replaceState(e,null)}}},{key:"updateRiskHotpots",value:function(){var e=this.window.riskHotspots;if(this.totalNumberOfRiskHotspots=e.length,0===this.assemblies.length){for(var t=[],n=0;n0)},directives:[Cu,Cl,Zu,uc,kl,Ol,_u,ju,gu],pipes:[Iu],encapsulation:2}),Vf),Nf=((Tf=function e(){_classCallCheck(this,e)}).\u0275mod=ct({type:Tf,bootstrap:[Df,pf]}),Tf.\u0275inj=se({factory:function(e){return new(e||Tf)},providers:[Uc],imports:[[Lc,cc]]}),Tf);(function(){if(er)throw new Error("Cannot enable prod mode after platform setup.");Xn=!1})(),zc().bootstrapModule(Nf).catch((function(e){return console.error(e)}))}},[[0,0]]]);
\ No newline at end of file