text: !function(t){function e(t,e,o){return 4===arguments.length?n.apply(this,arguments):void r(t,{declarative:!0,deps:e,declare:o})}function n(t,e,n,o){r(t,{declarative:!1,deps:e,executingRequire:n,execute:o})}function r(t,e){e.name=t,t in d||(d[t]=e),e.normalizedDeps=e.deps}function o(t,e){if(e[t.groupIndex]=e[t.groupIndex]||[],-1==v.call(e[t.groupIndex],t)){e[t.groupIndex].push(t);for(var n=0,r=t.normalizedDeps.length;r>n;n++){var i=t.normalizedDeps[n],s=d[i];if(s&&!s.evaluated){var a=t.groupIndex+(s.declarative!=t.declarative);if(void 0===s.groupIndex||s.groupIndex<a){if(void 0!==s.groupIndex&&(e[s.groupIndex].splice(v.call(e[s.groupIndex],s),1),0==e[s.groupIndex].length))throw new TypeError("Mixed dependency cycle detected");s.groupIndex=a}o(s,e)}}}}function i(t){var e=d[t];e.groupIndex=0;var n=[];o(e,n);for(var r=!!e.declarative==n.length%2,i=n.length-1;i>=0;i--){for(var s=n[i],u=0;u<s.length;u++){var l=s[u];r?a(l):c(l)}r=!r}}function s(t){return g[t]||(g[t]={name:t,dependencies:[],exports:{},importers:[]})}function a(e){if(!e.module){var n=e.module=s(e.name),r=e.module.exports,o=e.declare.call(t,function(t,e){if(n.locked=!0,"object"==typeof t)for(var o in t)r[o]=t[o];else r[t]=e;for(var i=0,s=n.importers.length;s>i;i++){var a=n.importers[i];if(!a.locked)for(var u=0;u<a.dependencies.length;++u)a.dependencies[u]===n&&a.setters[u](r)}return n.locked=!1,e},{id:e.name});n.setters=o.setters,n.execute=o.execute;for(var i=0,u=e.normalizedDeps.length;u>i;i++){var c,l=e.normalizedDeps[i],p=d[l],h=g[l];h?c=h.exports:p&&!p.declarative?c=p.esModule:p?(a(p),h=p.module,c=h.exports):c=f(l),h&&h.importers?(h.importers.push(n),n.dependencies.push(h)):n.dependencies.push(null),n.setters[i]&&n.setters[i](c)}}}function u(t){var e,n=d[t];if(n)n.declarative?h(t,[]):n.evaluated||c(n),e=n.module.exports;else if(e=f(t),!e)throw new Error("Unable to load dependency "+t+".");return(!n||n.declarative)&&e&&e.__useDefault?e.default:e}function c(e){if(!e.module){var n={},r=e.module={exports:n,id:e.name};if(!e.executingRequire)for(var o=0,i=e.normalizedDeps.length;i>o;o++){var s=e.normalizedDeps[o],a=d[s];a&&c(a)}e.evaluated=!0;var p=e.execute.call(t,function(t){for(var n=0,r=e.deps.length;r>n;n++)if(e.deps[n]==t)return u(e.normalizedDeps[n]);throw new TypeError("Module "+t+" not declared as a dependency.")},n,r);void 0!==typeof p&&(r.exports=p),n=r.exports,n&&n.__esModule?e.esModule=n:e.esModule=l(n)}}function l(e){var n={};if(("object"==typeof e||"function"==typeof e)&&e!==t)if(y)for(var r in e)"default"!==r&&p(n,e,r);else{var o=e&&e.hasOwnProperty;for(var r in e)"default"===r||o&&!e.hasOwnProperty(r)||(n[r]=e[r])}return n.default=e,m(n,"__useDefault",{value:!0}),n}function p(t,e,n){try{var r;(r=Object.getOwnPropertyDescriptor(e,n))&&m(t,n,r)}catch(r){return t[n]=e[n],!1}}function h(e,n){var r=d[e];if(r&&!r.evaluated&&r.declarative){n.push(e);for(var o=0,i=r.normalizedDeps.length;i>o;o++){var s=r.normalizedDeps[o];-1==v.call(n,s)&&(d[s]?h(s,n):f(s))}r.evaluated||(r.evaluated=!0,r.module.execute.call(t))}}function f(t){if(b[t])return b[t];if("@node/"==t.substr(0,6))return b[t]=l(_(t.substr(6)));var e=d[t];if(!e)throw"Module "+t+" not present.";return i(t),h(t,[]),d[t]=void 0,e.declarative&&m(e.module.exports,"__esModule",{value:!0}),b[t]=e.declarative?e.module.exports:e.esModule}var d={},v=Array.prototype.indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(this[e]===t)return e;return-1},y=!0;try{Object.getOwnPropertyDescriptor({a:0},"a")}catch(t){y=!1}var m;!function(){try{Object.defineProperty({},"a",{})&&(m=Object.defineProperty)}catch(t){m=function(t,e,n){try{t[e]=n.value||n.get.call(t)}catch(t){}}}}();var g={},_="undefined"!=typeof System&&System._nodeRequire||"undefined"!=typeof require&&require.resolve&&"undefined"!=typeof process&&require,b={"@empty":{}};return function(t,r,o,i){return function(s){s(function(s){for(var a={_nodeRequire:_,register:e,registerDynamic:n,get:f,set:function(t,e){b[t]=e},newModule:function(t){return t}},u=0;u<r.length;u++)(function(t,e){e&&e.__esModule?b[t]=e:b[t]=l(e)})(r[u],arguments[u]);i(a);var c=f(t[0]);if(t.length>1)for(var u=1;u<t.length;u++)f(t[u]);return o?c.default:c})}}}("undefined"!=typeof self?self:global)(["1"],[],!0,function(t){var e=this.require,n=this.exports,r=this.module;!function(e){function n(t,e){t=t.replace(a,"");var n=t.match(l),r=(n[1].split(",")[e]||"require").replace(p,""),o=h[r]||(h[r]=new RegExp(u+r+c,"g"));o.lastIndex=0;for(var i,s=[];i=o.exec(t);)s.push(i[2]||i[3]);return s}function r(t,e,n,o){if("object"==typeof t&&!(t instanceof Array))return r.apply(null,Array.prototype.splice.call(arguments,1,arguments.length-1));if("string"==typeof t&&"function"==typeof e&&(t=[t]),!(t instanceof Array)){if("string"==typeof t){var s=i.get(t);return s.__useDefault?s.default:s}throw new TypeError("Invalid require")}for(var a=[],u=0;u<t.length;u++)a.push(i.import(t[u],o));Promise.all(a).then(function(t){e&&e.apply(null,t)},n)}function o(t,o,a){"string"!=typeof t&&(a=o,o=t,t=null),o instanceof Array||(a=o,o=["require","exports","module"].splice(0,a.length)),"function"!=typeof a&&(a=function(t){return function(){return t}}(a)),void 0===o[o.length-1]&&o.pop();var u,c,l;-1!=(u=s.call(o,"require"))&&(o.splice(u,1),t||(o=o.concat(n(a.toString(),u)))),-1!=(c=s.call(o,"exports"))&&o.splice(c,1),-1!=(l=s.call(o,"module"))&&o.splice(l,1);var p={name:t,deps:o,execute:function(t,n,s){for(var p=[],h=0;h<o.length;h++)p.push(t(o[h]));s.uri=s.id,s.config=function(){},-1!=l&&p.splice(l,0,s),-1!=c&&p.splice(c,0,n),-1!=u&&p.splice(u,0,function(e,n,o){return"string"==typeof e&&"function"!=typeof n?t(e):r.call(i,e,n,o,s.id)});var f=a.apply(-1==c?e:n,p);return"undefined"==typeof f&&s&&(f=s.exports),"undefined"!=typeof f?f:void 0}};if(t)f.anonDefine||f.isBundle?f.anonDefine&&f.anonDefine.name&&(f.anonDefine=null):f.anonDefine=p,f.isBundle=!0,i.registerDynamic(p.name,p.deps,!1,p.execute);else{if(f.anonDefine&&!f.anonDefine.name)throw new Error("Multiple anonymous defines in module "+t);f.anonDefine=p}}var i=t,s=Array.prototype.indexOf||function(t){for(var e=0,n=this.length;n>e;e++)if(this[e]===t)return e;return-1},a=/(\/\*([\s\S]*?)\*\/|([^:]|^)\/\/(.*)$)/gm,u="(?:^|[^$_a-zA-Z\\xA0-\\uFFFF.])",c="\\s*\\(\\s*(\"([^\"]+)\"|'([^']+)')\\s*\\)",l=/\(([^\)]*)\)/,p=/^\s+|\s+$/g,h={};o.amd={};var f={isBundle:!1,anonDefine:null};i.amdDefine=o,i.amdRequire=r}("undefined"!=typeof self?self:global),function(){var o=t.amdDefine;!function(t,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/core")):"function"==typeof o&&o.amd?o("2",["exports","3"],i):i((t.ng=t.ng||{},t.ng.compiler=t.ng.compiler||{}),t.ng.core)}(this,function(t,e){"use strict";function n(t,e,n){void 0===n&&(n=null);var r=[],o=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=o(t);e&&r.push(e)}),r}function r(t){if(":"!=t[0])return[null,t];var e=t.indexOf(":",1);if(e==-1)throw new Error('Unsupported format "'+t+'" expecting ":namespace:name"');return[t.slice(1,e),t.slice(e+1)]}function o(t){return null===t?null:r(t)[0]}function i(t,e){return t?":"+t+":"+e:e}function s(t){return ho[t.toLowerCase()]||fo}function a(t){return t.replace(wo,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function u(t,e){return l(t,":",e)}function c(t,e){return l(t,".",e)}function l(t,e,n){var r=t.indexOf(e);return r==-1?n:[t.slice(0,r).trim(),t.slice(r+1).trim()]}function p(t,e,n){return Array.isArray(t)?e.visitArray(t,n):v(t)?e.visitStringMap(t,n):null==t||"string"==typeof t||"number"==typeof t||"boolean"==typeof t?e.visitPrimitive(t,n):e.visitOther(t,n)}function h(t){var e=Error(t);return e[So]=!0,e}function f(t){return t[So]}function d(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function v(t){return"object"==typeof t&&null!==t&&Object.getPrototypeOf(t)===xo}function y(t){for(var e="",n=0;n<t.length;n++){var r=t.charCodeAt(n);if(r>=55296&&r<=56319&&t.length>n+1){var o=t.charCodeAt(n+1);o>=56320&&o<=57343&&(n++,r=(r-55296<<10)+o-56320+65536)}r<=127?e+=String.fromCharCode(r):r<=2047?e+=String.fromCharCode(r>>6&31|192,63&r|128):r<=65535?e+=String.fromCharCode(r>>12|224,r>>6&63|128,63&r|128):r<=2097151&&(e+=String.fromCharCode(r>>18&7|240,r>>12&63|128,r>>6&63|128,63&r|128))}return e}function m(t){return t.replace(/\W/g,"_")}function g(t){if(!t||!t.reference)return null;var n=t.reference;if(n instanceof ao)return n.name;if(n.__anonymousType)return n.__anonymousType;var r=e.ɵstringify(n);return r.indexOf("(")>=0?(r="anonymous_"+Vo++,n.__anonymousType=r):r=m(r),r}function _(t){var n=t.reference;return n instanceof ao?n.filePath:e.ɵreflector.importUri(n)}function b(t,e){return"View_"+g({reference:t})+"_"+e}function w(t){return"RenderType_"+g({reference:t})}function C(t){return"HostView_"+g({reference:t})}function E(t){return"Wrapper_"+g({reference:t})}function S(t){return g({reference:t})+"NgFactory"}function x(t){return null!=t.value?m(t.value):g(t.identifier)}function P(t){return null!=t.identifier?t.identifier.reference:t.value}function T(t,n,r){var o=yo.parse(n.selector)[0].getMatchingElementTemplate();return Bo.create({isHost:!0,type:{reference:t,diDeps:[],lifecycleHooks:[]},template:new Ho({encapsulation:e.ViewEncapsulation.None,template:o,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0}),changeDetection:e.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[],componentViewType:r,rendererType:{id:"__Host__",encapsulation:e.ViewEncapsulation.None,styles:[],data:{}}})}function A(t){return t||[]}function O(t){return t.reduce(function(t,e){var n=Array.isArray(e)?O(e):e;return t.concat(n)},[])}function M(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function R(t,e,n){var r;return r=n.isInline?e.type.reference instanceof ao?e.type.reference.filePath+"."+e.type.reference.name+".html":g(t)+"/"+g(e.type)+".html":n.templateUrl,M(r)}function k(t,e){var n=t.moduleUrl.split(/\/\\/g),r=n[n.length-1];return M("css/"+e+r+".ngstyle.js")}function I(t){return M(g(t.type)+"/module.ngfactory.js")}function N(t,e){return M(g(t)+"/"+g(e.type)+".ngfactory.js")}function D(t){return t>=Ci&&t<=Ti||t==bs}function j(t){return Xi<=t&&t<=$i}function L(t){return t>=as&&t<=ys||t>=Zi&&t<=es}function V(t){return t>=as&&t<=cs||t>=Zi&&t<=Ji||j(t)}function F(){return function(t){return t}}function U(t,n){if(e.isDevMode()&&null!=n){if(!Array.isArray(n))throw new Error("Expected '"+t+"' to be an array of strings.");for(var r=0;r<n.length;r+=1)if("string"!=typeof n[r])throw new Error("Expected '"+t+"' to be an array of strings.")}}function H(t,n){if(!(null==n||Array.isArray(n)&&2==n.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(e.isDevMode()&&null!=n){var r=n[0],o=n[1];Cs.forEach(function(t){if(t.test(r)||t.test(o))throw new Error("['"+r+"', '"+o+"'] contains unusable interpolation symbol.")})}}function B(t,e){return new As(t,xs.Character,e,String.fromCharCode(e))}function q(t,e){return new As(t,xs.Identifier,0,e)}function z(t,e){return new As(t,xs.Keyword,0,e)}function G(t,e){return new As(t,xs.Operator,0,e)}function W(t,e){return new As(t,xs.String,0,e)}function K(t,e){return new As(t,xs.Number,e,"")}function Q(t,e){return new As(t,xs.Error,0,e)}function X(t){return as<=t&&t<=ys||Zi<=t&&t<=es||t==ss||t==Ri}function $(t){if(0==t.length)return!1;var e=new Ms(t);if(!X(e.peek))return!1;for(e.advance();e.peek!==wi;){if(!Z(e.peek))return!1;e.advance()}return!0}function Z(t){return L(t)||j(t)||t==ss||t==Ri}function Y(t){return t==us||t==Yi}function J(t){return t==Ui||t==Vi}function tt(t){return t===Ni||t===Oi||t===ws}function et(t){switch(t){case ls:return Ei;case cs:return xi;case ps:return Pi;case hs:return Ci;case ds:return Si;default:return t}}function nt(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function rt(t){var e=d(t.start)+"([\\s\\S]*?)"+d(t.end);return new RegExp(e,"g")}function ot(t,e){var n=_(e),r=null!=n?"in "+t+" "+g(e)+" in "+n:"in "+t+" "+g(e),o=new Ls("",r);return new Vs(new js(o,null,null,null),new js(o,null,null,null))}function it(t,e,n){void 0===n&&(n=null);var r=[],o=t.visit?function(e){return t.visit(e,n)||e.visit(t,n)}:function(e){return e.visit(t,n)};return e.forEach(function(t){var e=o(t);e&&r.push(e)}),r}function st(t,e,n,r,o){return void 0===r&&(r=!1),void 0===o&&(o=Ss),new Js(new Ls(t,e),n,r,o).tokenize()}function at(t){var e=t===wi?"EOF":String.fromCharCode(t);return'Unexpected character "'+e+'"'}function ut(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or  "&#x<hex>;" syntax'}function ct(t){return!D(t)||t===wi}function lt(t){return D(t)||t===Ki||t===Bi||t===Ni||t===Oi||t===Wi}function pt(t){return(t<as||ys<t)&&(t<Zi||es<t)&&(t<Xi||t>$i)}function ht(t){return t==zi||t==wi||!V(t)}function ft(t){return t==zi||t==wi||!L(t)}function dt(t,e,n){var r=!!n&&t.indexOf(n.start,e)==e;return t.charCodeAt(e)==ms&&!r}function vt(t){return t===Wi||L(t)}function yt(t,e){return mt(t)==mt(e)}function mt(t){return t>=as&&t<=ys?t-as+Zi:t}function gt(t){for(var e,n=[],r=0;r<t.length;r++){var o=t[r];e&&e.type==Ks.TEXT&&o.type==Ks.TEXT?(e.parts[0]+=o.parts[0],e.sourceSpan.end=o.sourceSpan.end):(e=o,n.push(e))}return n}function _t(t,e){return t.length>0&&t[t.length-1]===e}function bt(t){var e=new ya(va,t);return function(t,n,r,o){return e.toI18nMessage(t,n,r,o)}}function wt(t){return t.split(ma)[1]}function Ct(t,e,n,r){var o=new Pa(n,r);return o.extract(t,e)}function Et(t,e,n,r,o){var i=new Pa(r,o);return i.merge(t,e,n)}function St(t){return t instanceof Ws&&t.value&&t.value.startsWith("i18n")}function xt(t){return t instanceof Ws&&t.value&&"/i18n"===t.value}function Pt(t){return t.attrs.find(function(t){return t.name===_a})||null}function Tt(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(Ea),n=t.indexOf(Ca),r=e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],o=r[0],i=r[1],s=n>-1?[o.slice(0,n),o.slice(n+1)]:["",o],a=s[0],u=s[1];return{meaning:a,description:u,id:i}}function At(t){return Aa}function Ot(t){return t.id||kt(Rt(t.nodes).join("")+("["+t.meaning+"]"))}function Mt(t){if(t.id)return t.id;var e=new ka,n=t.nodes.map(function(t){return t.visit(e,null)});return Dt(n.join(""),t.meaning)}function Rt(t){return t.map(function(t){return t.visit(Ra,null)})}function kt(t){var e=y(t),n=zt(e,Ia.Big),r=8*e.length,o=new Array(80),i=[1732584193,4023233417,2562383102,271733878,3285377520],s=i[0],a=i[1],u=i[2],c=i[3],l=i[4];n[r>>5]|=128<<24-r%32,n[(r+64>>9<<4)+15]=r;for(var p=0;p<n.length;p+=16){for(var h=[s,a,u,c,l],f=h[0],d=h[1],v=h[2],m=h[3],g=h[4],_=0;_<80;_++){_<16?o[_]=n[p+_]:o[_]=Bt(o[_-3]^o[_-8]^o[_-14]^o[_-16],1);var b=It(_,a,u,c),w=b[0],C=b[1],E=[Bt(s,5),w,l,C,o[_]].reduce(Vt);S=[c,u,Bt(a,30),s,E],l=S[0],c=S[1],u=S[2],a=S[3],s=S[4]}x=[Vt(s,f),Vt(a,d),Vt(u,v),Vt(c,m),Vt(l,g)],s=x[0],a=x[1],u=x[2],c=x[3],l=x[4]}return Xt(Kt([s,a,u,c,l]));var S,x}function It(t,e,n,r){return t<20?[e&n|~e&r,1518500249]:t<40?[e^n^r,1859775393]:t<60?[e&n|e&r|n&r,2400959708]:[e^n^r,3395469782]}function Nt(t){var e=y(t),n=[jt(e,0),jt(e,102072)],r=n[0],o=n[1];return 0!=r||0!=o&&1!=o||(r=319790063^r,o^=-1801410264),[r,o]}function Dt(t,e){var n=Nt(t),r=n[0],o=n[1];if(e){var i=Nt(e),s=i[0],a=i[1];u=Ut(qt([r,o],1),[s,a]),r=u[0],o=u[1]}return $t(Kt([2147483647&r,o]));var u}function jt(t,e){var n,r=[2654435769,2654435769],o=r[0],i=r[1],s=t.length;for(n=0;n+12<=s;n+=12)o=Vt(o,Wt(t,n,Ia.Little)),i=Vt(i,Wt(t,n+4,Ia.Little)),e=Vt(e,Wt(t,n+8,Ia.Little)),a=Lt([o,i,e]),o=a[0],i=a[1],e=a[2];return o=Vt(o,Wt(t,n,Ia.Little)),i=Vt(i,Wt(t,n+4,Ia.Little)),e=Vt(e,s),e=Vt(e,Wt(t,n+8,Ia.Little)<<8),Lt([o,i,e])[2];var a}function Lt(t){var e=t[0],n=t[1],r=t[2];return e=Ht(e,n),e=Ht(e,r),e^=r>>>13,n=Ht(n,r),n=Ht(n,e),n^=e<<8,r=Ht(r,e),r=Ht(r,n),r^=n>>>13,e=Ht(e,n),e=Ht(e,r),e^=r>>>12,n=Ht(n,r),n=Ht(n,e),n^=e<<16,r=Ht(r,e),r=Ht(r,n),r^=n>>>5,e=Ht(e,n),e=Ht(e,r),e^=r>>>3,n=Ht(n,r),n=Ht(n,e),n^=e<<10,r=Ht(r,e),r=Ht(r,n),r^=n>>>15,[e,n,r]}function Vt(t,e){return Ft(t,e)[1]}function Ft(t,e){var n=(65535&t)+(65535&e),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function Ut(t,e){var n=t[0],r=t[1],o=e[0],i=e[1],s=Ft(r,i),a=s[0],u=s[1],c=Vt(Vt(n,o),a);return[c,u]}function Ht(t,e){var n=(65535&t)-(65535&e),r=(t>>16)-(e>>16)+(n>>16);return r<<16|65535&n}function Bt(t,e){return t<<e|t>>>32-e}function qt(t,e){var n=t[0],r=t[1],o=n<<e|r>>>32-e,i=r<<e|n>>>32-e;return[o,i]}function zt(t,e){for(var n=Array(t.length+3>>>2),r=0;r<n.length;r++)n[r]=Wt(t,4*r,e);return n}function Gt(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function Wt(t,e,n){var r=0;if(n===Ia.Big)for(var o=0;o<4;o++)r+=Gt(t,e+o)<<24-8*o;else for(var o=0;o<4;o++)r+=Gt(t,e+o)<<8*o;return r}function Kt(t){return t.reduce(function(t,e){return t+Qt(e)},"")}function Qt(t){for(var e="",n=0;n<4;n++)e+=String.fromCharCode(t>>>8*(3-n)&255);return e}function Xt(t){for(var e="",n=0;n<t.length;n++){var r=Gt(t,n);e+=(r>>>4).toString(16)+(15&r).toString(16)}return e.toLowerCase()}function $t(t){for(var e="",n="1",r=t.length-1;r>=0;r--)e=Zt(e,Yt(Gt(t,r),n)),n=Yt(256,n);return e.split("").reverse().join("")}function Zt(t,e){for(var n="",r=Math.max(t.length,e.length),o=0,i=0;o<r||i;o++){var s=i+ +(t[o]||0)+ +(e[o]||0);s>=10?(i=1,n+=s-10):(i=0,n+=s)}return n}function Yt(t,e){for(var n="",r=e;0!==t;t>>>=1)1&t&&(n=Zt(n,r)),r=Zt(r,r);return n}function Jt(t){return t.map(function(t){return t.visit(La)}).join("")}function te(t){return qa.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function ee(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}function ne(t){return Mt(t)}function re(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}function oe(t,e,n){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var r=n();return Object.defineProperty(t,e,{enumerable:!0,value:r}),r},set:function(t){throw new Error("Could not overwrite an XTB translation")}})}function ie(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new au;case"xtb":return new fu;case"xliff":case"xlf":default:return new Ya}}function se(t,e,n){return void 0===e&&(e=null),void 0===n&&(n="src"),null==e?"@angular/"+t:"@angular/"+t+"/"+n+"/"+e}function ae(t){var n=t.name;return e.ɵreflector.resolveIdentifier(n,t.moduleUrl,null,t.runtime)}function ue(t){return{reference:ae(t)}}function ce(t){return{identifier:t}}function le(t){return ce(ue(t))}function pe(t){var e=new xu;return new Eu(it(e,t),e.isExpanded,e.errors)}function he(t,e){var n=t.cases.map(function(t){Cu.indexOf(t.value)!=-1||t.value.match(/^=\d+$/)||e.push(new Su(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+Cu.join(", ")));var n=pe(t.expression);return e.push.apply(e,n.errors),new Gs("ng-template",[new zs("ngPluralCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new zs("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new Gs("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function fe(t,e){var n=t.cases.map(function(t){var n=pe(t.expression);return e.push.apply(e,n.errors),"other"===t.value?new Gs("ng-template",[new zs("ngSwitchDefault","",t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Gs("ng-template",[new zs("ngSwitchCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new zs("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new Gs("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function de(t,e){var n=e.useExisting,r=e.useValue,o=e.deps;return{token:t.token,useClass:t.useClass,useExisting:n,useFactory:t.useFactory,useValue:r,deps:o,multi:t.multi}}function ve(t,e){var n=e.eager,r=e.providers;return new ro(t.token,t.multiProvider,t.eager||n,r,t.providerType,t.lifecycleHooks,t.sourceSpan)}function ye(t,e,n){var r=new Map;t.forEach(function(t){var o={token:{identifier:t.type},useClass:t.type};me([o],t.isComponent?oo.Component:oo.Directive,!0,e,n,r)});var o=t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent}));return o.forEach(function(t){me(t.providers,oo.PublicService,!1,e,n,r),me(t.viewProviders,oo.PrivateService,!1,e,n,r)}),r}function me(t,e,n,r,o,i){t.forEach(function(t){var s=i.get(P(t.token));if(null!=s&&!!s.multiProvider!=!!t.multi&&o.push(new Pu("Mixing multi and non multi provider is not possible for token "+x(s.token),r)),s)t.multi||(s.providers.length=0),s.providers.push(t);else{var a=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[],u=!(t.useClass||t.useExisting||t.useFactory);s=new ro(t.token,t.multi,n||u,[t],e,a,r),i.set(P(t.token),s)}})}function ge(t){var e=1,n=new Map;return t.viewQueries&&t.viewQueries.forEach(function(t){return be(n,{meta:t,queryId:e++})}),n}function _e(t,e){var n=t,r=new Map;return e.forEach(function(t,e){t.queries&&t.queries.forEach(function(t){return be(r,{meta:t,queryId:n++})})}),r}function be(t,e){e.meta.selectors.forEach(function(n){var r=t.get(P(n));r||(r=[],t.set(P(n),r)),r.push(e)})}function we(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(Nu);return null===e||"package"==e[1]||"asset"==e[1]}function Ce(t,e,n){var r=[],o=n.replace(Iu,"").replace(ku,function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i=n[1]||n[2];return we(i)?(r.push(t.resolve(e,i)),""):n[0]});return new Ru(o,r)}function Ee(t){return"@"==t[0]}function Se(t,n,r,o){var i=[];return yo.parse(n).forEach(function(e){var n=e.element?[e.element]:t.allKnownElementNames(),s=new Set(e.notSelectors.filter(function(t){return t.isElementSelector()}).map(function(t){return t.element})),a=n.filter(function(t){return!s.has(t)});i.push.apply(i,a.map(function(e){return t.securityContext(e,r,o)}))}),0===i.length?[e.SecurityContext.NONE]:Array.from(new Set(i)).sort()}function xe(t){var e=null,n=null,o=null,i=!1,s=null;t.attrs.forEach(function(t){var r=t.name.toLowerCase();r==zu?e=t.value:r==Qu?n=t.value:r==Ku?o=t.value:t.name==Yu?i=!0:t.name==Ju&&t.value.length>0&&(s=t.value)}),e=Pe(e);var a=t.name.toLowerCase(),u=tc.OTHER;return r(a)[1]==Gu?u=tc.NG_CONTENT:a==$u?u=tc.STYLE:a==Zu?u=tc.SCRIPT:a==Wu&&o==Xu&&(u=tc.STYLESHEET),new ec(u,e,n,i,s)}function Pe(t){return null===t||0===t.length?"*":t}function Te(t){return function(e){return t.indexOf(e.msg)===-1||(wc[e.msg]=(wc[e.msg]||0)+1,wc[e.msg]<=1)}}function Ae(t){return t.trim().split(/\s+/g)}function Oe(t,e){var n=new yo,o=r(t)[1];n.setElement(o);for(var i=0;i<e.length;i++){var s=e[i][0],a=r(s)[1],u=e[i][1];if(n.addAttribute(a,u),s.toLowerCase()==mc){var c=Ae(u);c.forEach(function(t){return n.addClassName(t)})}}return n}function Me(t){return t instanceof Hs&&0==t.value.trim().length}function Re(t){var e=new Map;return t.forEach(function(t){e.get(t.type.reference)||e.set(t.type.reference,t)}),Array.from(e.values())}function ke(t){return t instanceof mi&&(t=t.ast),t instanceof Yo}function Ie(t,e,n){var o=r(t.name)[1];return o===fc||(o.toLowerCase()===dc?!(!e||o.toLowerCase()!==dc||(n(_c,t.sourceSpan),0)):void 0)}function Ne(){return new Nc}function De(){return new Nc(".")}function je(t){var e=Ve(t);return e&&e[jc.Scheme]||""}function Le(t,e,n,r,o,i,s){var a=[];return null!=t&&a.push(t+":"),null!=n&&(a.push("//"),null!=e&&a.push(e+"@"),a.push(n),null!=r&&a.push(":"+r)),null!=o&&a.push(o),null!=i&&a.push("?"+i),null!=s&&a.push("#"+s),a.join("")}function Ve(t){return t.match(Dc)}function Fe(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",n="/"===t[t.length-1]?"/":"",r=t.split("/"),o=[],i=0,s=0;s<r.length;s++){var a=r[s];switch(a){case"":case".":break;case"..":o.length>0?o.pop():i++;break;default:o.push(a)}}if(""==e){for(;i-- >0;)o.unshift("..");0===o.length&&o.push(".")}return e+o.join("/")+n}function Ue(t){var e=t[jc.Path];return e=null==e?"":Fe(e),t[jc.Path]=e,Le(t[jc.Scheme],t[jc.UserInfo],t[jc.Domain],t[jc.Port],e,t[jc.QueryData],t[jc.Fragment])}function He(t,e){var n=Ve(encodeURI(e)),r=Ve(t);if(null!=n[jc.Scheme])return Ue(n);n[jc.Scheme]=r[jc.Scheme];for(var o=jc.Scheme;o<=jc.Port;o++)null==n[o]&&(n[o]=r[o]);if("/"==n[jc.Path][0])return Ue(n);var i=r[jc.Path];null==i&&(i="/");var s=i.lastIndexOf("/");return i=i.substring(0,s+1)+n[jc.Path],n[jc.Path]=i,Ue(n)}function Be(t){return t instanceof e.Directive}function qe(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null}function ze(t){var e=Ke(t);return e[0]+".ngfactory"+e[1]}function Ge(t){return t.replace(Hc,".")}function We(t){return Hc.test(t)}function Ke(t){if(t.endsWith(".d.ts"))return[t.slice(0,-5),".ts"];var e=t.lastIndexOf(".");return e!==-1?[t.substring(0,e),t.substring(e)]:[t,""]}function Qe(t){var e=t.replace(Uc,"");return e+".ngsummary.json"}function Xe(t,n){return e.ɵreflector.hasLifecycleHook(n,$e(t))}function $e(t){switch(t){case e.ɵLifecycleHooks.OnInit:return"ngOnInit";case e.ɵLifecycleHooks.OnDestroy:return"ngOnDestroy";case e.ɵLifecycleHooks.DoCheck:return"ngDoCheck";case e.ɵLifecycleHooks.OnChanges:return"ngOnChanges";case e.ɵLifecycleHooks.AfterContentInit:return"ngAfterContentInit";case e.ɵLifecycleHooks.AfterContentChecked:return"ngAfterContentChecked";case e.ɵLifecycleHooks.AfterViewInit:return"ngAfterViewInit";case e.ɵLifecycleHooks.AfterViewChecked:return"ngAfterViewChecked"}}function Ze(t){return t instanceof e.NgModule}function Ye(t){return t instanceof e.Pipe}function Je(t,n){if(void 0===n&&(n=[]),t)for(var r=0;r<t.length;r++){var o=e.resolveForwardRef(t[r]);Array.isArray(o)?Je(o,n):n.push(o)}return n}function tn(t){return t?Array.from(new Set(t)):[]}function en(t){return tn(Je(t))}function nn(t){return t instanceof ao||t instanceof e.Type}function rn(t,e,n){if(e instanceof ao)return t.resourceUri(e);var r=n.moduleId;if("string"==typeof r){var o=je(r);return o?r:"package:"+r+bo}if(null!==r&&void 0!==r)throw h('moduleId should be a string in "'+sn(e)+"\". See https://goo.gl/wIDDiL for more information.\nIf you're using Webpack you should inline the template and the styles, see https://goo.gl/X2J8zc.");return t.importUri(e)}function on(t,e){p(t,new Kc,e)}function sn(t){return t instanceof ao?t.name+" in "+t.filePath:e.ɵstringify(t)}function an(t){var n=Error("Can't compile synchronously as "+e.ɵstringify(t)+" is still being loaded!");return n[e.ɵERROR_COMPONENT_TYPE]=t,n}function un(t){var e=new Xl;return e.visitAllStatements(t,null),e.varNames}function cn(t,e){if(!e)return t;var n=new $l(e);return t.visitStatement(n,null)}function ln(t,e){if(!e)return t;var n=new $l(e);return t.visitExpression(n,null)}function pn(t,e,n){return void 0===e&&(e=null),new al(t,e,n)}function hn(t,e,n){return void 0===e&&(e=null),new yl(t,null,e,n)}function fn(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),null!=t?dn(hn(t,e),n):null}function dn(t,e){return void 0===e&&(e=null),null!=t?new Yc(t,e):null}function vn(t,e,n){return void 0===e&&(e=null),new xl(t,e,n)}function yn(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=!1),new Tl(t.map(function(t){return new Pl(t[0],t[1],n)}),e)}function mn(t,e){return new gl(t,e)}function gn(t,e,n,r){return void 0===n&&(n=null),new wl(t,e,n,r)}function _n(t,e,n){return void 0===e&&(e=null),new vl(t,e,n)}function bn(t){var e=t.parentArgs||[],n=t.parent?[Ml.callFn(e).toStmt()]:[],r=wn(Array.isArray(t.builders)?t.builders:[t.builders]),o=new Hl(null,t.ctorParams||[],n.concat(r.ctorStmts));return new ql(t.name,t.parent,r.fields,r.getters,o,r.methods,t.modifiers||[],t.sourceSpan)}function wn(t){return{fields:[].concat.apply([],t.map(function(t){return t.fields||[]})),methods:[].concat.apply([],t.map(function(t){return t.methods||[]})),getters:[].concat.apply([],t.map(function(t){return t.getters||[]})),ctorStmts:[].concat.apply([],t.map(function(t){return t.ctorStmts||[]}))}}function Cn(t,e){return void 0===e&&(e=null),p(t,new Yl,e)}function En(t){return null!=t.value?_n(t.value):hn(t.identifier)}function Sn(t){var e="";t=y(t);for(var n=0;n<t.length;){var r=t.charCodeAt(n++),o=t.charCodeAt(n++),i=t.charCodeAt(n++);e+=Pn(r>>2),e+=Pn((3&r)<<4|(isNaN(o)?0:o>>4)),e+=isNaN(o)?"=":Pn((15&o)<<2|i>>6),e+=isNaN(o)||isNaN(i)?"=":Pn(63&i)}return e}function xn(t){t=t<0?(-t<<1)+1:t<<1;var e="";do{var n=31&t;t>>=5,t>0&&(n=32|n),e+=Pn(n)}while(t>0);return e}function Pn(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return up[t]}function Tn(t,e,n){if(void 0===n&&(n=!0),null==t)return null;var r=t.replace(cp,function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]}),o=n||!lp.test(r);return o?"'"+r+"'":r}function An(t){for(var e="",n=0;n<t;n++)e+=pp;return e}function On(t){var e=new _p(mp,{fileNameToModuleName:function(t,e){return t},getImportAs:function(t){return null},getTypeArity:function(t){return null}}),n=vp.createRoot([]),r=Array.isArray(t)?t:[t];return r.forEach(function(t){if(t instanceof Nl)t.visitStatement(e,n);else if(t instanceof il)t.visitExpression(e,n);else{if(!(t instanceof Xc))throw new Error("Don't know how to print debug info for "+t);t.visitType(e,n)}}),n.toSource()}function Mn(t,e){for(var n=0,r=e;n<r.length;n++){var o=r[n];bp[o.toLowerCase()]=t}}function Rn(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}function kn(t){return t.replace(Wp,"")}function In(t){var e=t.match(Kp);return e?e[0]:""}function Nn(t,e){var n=Dn(t),r=0;return n.escapedString.replace(Qp,function(){for(var t=[],o=0;o<arguments.length;o++)t[o]=arguments[o];var i=t[2],s="",a=t[4],u="";a&&a.startsWith("{"+Yp)&&(s=n.blocks[r++],a=a.substring(Yp.length+1),u="{");var c=e(new Jp(i,s));return""+t[1]+c.selector+t[3]+u+c.content+a})}function Dn(t){for(var e=t.split(Xp),n=[],r=[],o=0,i=[],s=0;s<e.length;s++){var a=e[s];a==Zp&&o--,o>0?i.push(a):(i.length>0&&(r.push(i.join("")),n.push(Yp),i=[]),n.push(a)),a==$p&&o++}return i.length>0&&(r.push(i.join("")),n.push(Yp)),new th(n.join(""),r)}function jn(t){var e="styles";return t&&(e+="_"+g(t.type)),e}function Ln(t,e,n,r){t||(t=new dh);var o=Vn({createLiteralArrayConverter:function(t){return function(t){return vn(t)}},createLiteralMapConverter:function(t){return function(e){return yn(t.map(function(t,n){return[t,e[n]]}))}},createPipeConverter:function(t){throw new Error("Illegal State: Actions are not allowed to contain pipes. Pipe: "+t)}},n),i=new fh(t,e,r),s=[];Kn(o.visit(i,ph.Statement),s),qn(i.temporaryCount,r,s);var a=s.length-1,u=null;if(a>=0){var c=s[a],l=$n(c);l&&(u=Xn(r),s[a]=u.set(l.cast(el).notIdentical(_n(!1))).toDeclStmt(null,[Il.Final]))}return new ch(s,u)}function Vn(t,e){return Un(t,e)}function Fn(t,e,n,r){t||(t=new dh);var o=Qn(r),i=[],s=new fh(t,e,r),a=n.visit(s,ph.Expression);if(s.temporaryCount)for(var u=0;u<s.temporaryCount;u++)i.push(Bn(r,u));return i.push(o.set(a).toDeclStmt(null,[Il.Final])),new lh(i,o)}function Un(t,e){var n=new hh(t);return e.visit(n)}function Hn(t,e){return"tmp_"+t+"_"+e}function Bn(t,e){return new Dl(Hn(t,e),Rl)}function qn(t,e,n){for(var r=t-1;r>=0;r--)n.unshift(Bn(e,r))}function zn(t,e){if(t!==ph.Statement)throw new Error("Expected a statement, but saw "+e)}function Gn(t,e){if(t!==ph.Expression)throw new Error("Expected an expression, but saw "+e)}function Wn(t,e){return t===ph.Statement?e.toStmt():e}function Kn(t,e){Array.isArray(t)?t.forEach(function(t){return Kn(t,e)}):e.push(t)}function Qn(t){return pn("currVal_"+t)}function Xn(t){return pn("pd_"+t)}function $n(t){return t instanceof Ll?t.expr:t instanceof Vl?t.value:null}function Zn(t){return t.multiProvider?Yn(t.providers):Jn(t.providerType,t.providers[0]);
  }function Yn(t){function e(t,e){return e.map(function(e,o){var i="p"+t+"_"+o;return r.push(new bl(i,el)),n.push(er(e)),pn(i)})}var n=[],r=[],o=t.map(function(t,n){var r;if(t.useClass){var o=e(n,t.deps||t.useClass.diDeps);r=hn(t.useClass).instantiate(o)}else if(t.useFactory){var o=e(n,t.deps||t.useFactory.diDeps);r=hn(t.useFactory).callFn(o)}else if(t.useExisting){var o=e(n,[{token:t.useExisting}]);r=o[0]}else r=Cn(t.useValue);return r}),i=gn(r,[new Vl(vn(o))],nl);return{providerExpr:i,flags:512,depsExpr:vn(n)}}function Jn(t,e){var n,r,o;t===oo.Directive||t===oo.Component?(n=hn(e.useClass),r=8192,o=e.deps||e.useClass.diDeps):e.useClass?(n=hn(e.useClass),r=256,o=e.deps||e.useClass.diDeps):e.useFactory?(n=hn(e.useFactory),r=512,o=e.deps||e.useFactory.diDeps):e.useExisting?(n=Rl,r=1024,o=[{token:e.useExisting}]):(n=Cn(e.useValue),r=128,o=[]);var i=vn(o.map(function(t){return er(t)}));return{providerExpr:n,flags:r,depsExpr:i}}function tr(t){return t.identifier?hn(t.identifier):_n(t.value)}function er(t){var e=t.isValue?Cn(t.value):tr(t.token),n=0;return t.isSkipSelf&&(n|=1),t.isOptional&&(n|=2),t.isValue&&(n|=8),0===n?e:vn([_n(n),e])}function nr(t){var e=t[t.length-1];return e instanceof to?e.hasViewContainer:e instanceof Jr?e.name===_h&&e.children.length?nr(e.children):e.hasViewContainer:e instanceof io}function rr(t){var n=0;switch(t){case e.ɵLifecycleHooks.AfterContentChecked:n=1048576;break;case e.ɵLifecycleHooks.AfterContentInit:n=524288;break;case e.ɵLifecycleHooks.AfterViewChecked:n=4194304;break;case e.ɵLifecycleHooks.AfterViewInit:n=2097152;break;case e.ɵLifecycleHooks.DoCheck:n=131072;break;case e.ɵLifecycleHooks.OnChanges:n=262144;break;case e.ɵLifecycleHooks.OnDestroy:n=65536;break;case e.ɵLifecycleHooks.OnInit:n=32768}return n}function or(t,e){switch(t.type){case so.Attribute:return vn([_n(1),_n(t.name),_n(t.securityContext)]);case so.Property:return vn([_n(8),_n(t.name),_n(t.securityContext)]);case so.Animation:var n=8|(e&&e.directive.isComponent?32:16);return vn([_n(n),_n("@"+t.name),_n(t.securityContext)]);case so.Class:return vn([_n(2),_n(t.name),Rl]);case so.Style:return vn([_n(4),_n(t.name),_n(t.unit)])}}function ir(t){var e=Object.create(null);return t.attrs.forEach(function(t){e[t.name]=t.value}),t.directives.forEach(function(t){Object.keys(t.directive.hostAttributes).forEach(function(n){var r=t.directive.hostAttributes[n],o=e[n];e[n]=null!=o?sr(n,o,r):r})}),vn(Object.keys(e).sort().map(function(t){return vn([_n(t),_n(e[t])])}))}function sr(t,e,n){return t==yh||t==mh?e+" "+n:n}function ar(t,e){return e.length>10?Sh.callFn([Eh,_n(t),_n(1),vn(e)]):Sh.callFn([Eh,_n(t),_n(0)].concat(e))}function ur(t,e,n){return hn(ue(wu.unwrapValue)).callFn([Eh,_n(t),_n(e),n])}function cr(t,e){return void 0===e&&(e=new Map),t.forEach(function(t){var n,r=new Set,o=new Set;t instanceof Jr?(cr(t.children,e),t.children.forEach(function(t){var n=e.get(t);n.staticQueryIds.forEach(function(t){return r.add(t)}),n.dynamicQueryIds.forEach(function(t){return o.add(t)})}),n=t.queryMatches):t instanceof to&&(cr(t.children,e),t.children.forEach(function(t){var n=e.get(t);n.staticQueryIds.forEach(function(t){return o.add(t)}),n.dynamicQueryIds.forEach(function(t){return o.add(t)})}),n=t.queryMatches),n&&n.forEach(function(t){return r.add(t.queryId)}),o.forEach(function(t){return r.delete(t)}),e.set(t,{staticQueryIds:r,dynamicQueryIds:o})}),e}function lr(t){var e=new Set,n=new Set;return Array.from(t.values()).forEach(function(t){t.staticQueryIds.forEach(function(t){return e.add(t)}),t.dynamicQueryIds.forEach(function(t){return n.add(t)})}),n.forEach(function(t){return e.delete(t)}),{staticQueryIds:e,dynamicQueryIds:n}}function pr(t){var e=t.find(function(t){return t.directive.isComponent});if(e&&e.directive.entryComponents.length){var n=e.directive.entryComponents.map(function(t){return hn({reference:t.componentFactory})}),r=le(wu.ComponentFactoryResolver),o={diDeps:[{isValue:!0,value:vn(n)},{token:r,isSkipSelf:!0,isOptional:!0},{token:le(wu.NgModuleRef)}],lifecycleHooks:[],reference:ae(wu.CodegenComponentFactoryResolver)};return new ro(r,(!1),(!0),[{token:r,multi:!1,useClass:o}],oo.PrivateService,[],e.sourceSpan)}return null}function hr(t,e){return t.isAnimation?{name:"@"+t.name+"."+t.phase,target:e&&e.directive.isComponent?"component":null}:t}function fr(t,e,n){var r=0;return r|=!n||!t.staticQueryIds.has(e)&&t.dynamicQueryIds.has(e)?268435456:134217728}function dr(t,e,n,r){var o=new Mh(e,t);n.forEach(function(t){return o.addOrMergeSummary({symbol:t.symbol,metadata:t.metadata})});for(var i=0;i<o.symbols.length;i++){var s=o.symbols[i];if(t.isLibraryFile(s.filePath)){var a=t.resolveSummary(s);if(!a){var u=e.resolveSymbol(s);u&&(a={symbol:u.symbol,metadata:u.metadata})}a&&o.addOrMergeSummary(a)}}return r.forEach(function(e){if(o.addOrMergeSummary({symbol:e.type.reference,metadata:{__symbolic:"class"},type:e}),e.summaryKind===Fo.NgModule){var n=e;n.exportedDirectives.concat(n.exportedPipes).forEach(function(e){var n=e.reference;if(t.isLibraryFile(n.filePath)){var r=t.resolveSummary(n);r&&o.addOrMergeSummary(r)}})}}),o.serialize()}function vr(t,e){var n=new Rh(t);return n.deserialize(e)}function yr(t,e,n){return e.dependencies.forEach(function(e){e.valuePlaceholder.reference=t.getStaticSymbol(mr(e.moduleUrl,e.isShimmed,n),e.name)}),e.statements}function mr(t,e,n){return""+t+(e?".shim":"")+".ngstyle"+n}function gr(t){if(!t.isComponent)throw new Error("Could not compile '"+g(t.type)+"' because it is not a component.")}function _r(t,e,n){var r=Er(t,e,n),o=r.ngModules,i=r.symbolsMissingModule;return wr(t,o,i,n)}function br(t,e,n){var r=_r(t,e,n);if(r.symbolsMissingModule&&r.symbolsMissingModule.length){var o=r.symbolsMissingModule.map(function(t){return"Cannot determine the module for class "+t.name+" in "+t.filePath+"! Add "+t.name+" to the NgModule to fix it."});throw h(o.join("\n"))}return r}function wr(t,e,n,r){var o=new Map;e.forEach(function(t){return o.set(t.type.reference,t)});var i=new Map,s=new Map,a=new Map,u=new Map,c=new Map,l=new Set;t.forEach(function(t){var e=t.filePath;l.add(e),r.isInjectable(t)&&c.set(e,(c.get(e)||[]).concat(t))}),e.forEach(function(t){var e=t.type.reference.filePath;l.add(e),s.set(e,(s.get(e)||[]).concat(t.type.reference)),t.declaredDirectives.forEach(function(e){var n=e.reference.filePath;l.add(n),a.set(n,(a.get(n)||[]).concat(e.reference)),i.set(e.reference,t)}),t.declaredPipes.forEach(function(e){var n=e.reference.filePath;l.add(n),u.set(n,(u.get(n)||[]).concat(e.reference)),i.set(e.reference,t)})});var p=[];return l.forEach(function(t){var e=a.get(t)||[],n=u.get(t)||[],r=s.get(t)||[],o=c.get(t)||[];p.push({srcUrl:t,directives:e,pipes:n,ngModules:r,injectables:o})}),{ngModuleByPipeOrDirective:i,files:p,ngModules:e,symbolsMissingModule:n}}function Cr(t,e,n){var r=[];return e.filter(function(t){return n.isSourceFile(t)}).forEach(function(e){t.getSymbolsOf(e).forEach(function(e){var n=t.resolveSymbol(e),o=n.metadata;o&&"error"!=o.__symbolic&&r.push(n.symbol)})}),r}function Er(t,e,n){var r=new Map,o=[],i=new Set,s=function(t){if(r.has(t)||!e.isSourceFile(t.filePath))return!1;var o=n.getNgModuleMetadata(t,!1);return o&&(r.set(o.type.reference,o),o.declaredDirectives.forEach(function(t){return i.add(t.reference)}),o.declaredPipes.forEach(function(t){return i.add(t.reference)}),o.transitiveModule.modules.forEach(function(t){return s(t.reference)})),!!o};t.forEach(function(t){s(t)||!n.isDirective(t)&&!n.isPipe(t)||o.push(t)});var a=o.filter(function(t){return!i.has(t)});return{ngModules:Array.from(r.values()),symbolsMissingModule:a}}function Sr(t){return"object"==typeof t&&t.name&&t.filePath}function xr(t){return t&&"ignore"==t.__symbolic}function Pr(t){switch(t.message){case"Reference to non-exported class":if(t.context&&t.context.className)return"Reference to a non-exported class "+t.context.className+". Consider exporting the class";break;case"Variable not initialized":return"Only initialized variables and constants can be referenced because the value of this variable is needed by the template compiler";case"Destructuring not supported":return"Referencing an exported destructured variable or constant is not supported by the template compiler. Consider simplifying this to avoid destructuring";case"Could not resolve type":if(t.context&&t.context.typeName)return"Could not resolve type "+t.context.typeName;break;case"Function call not supported":var e=t.context&&t.context.name?"Calling function '"+t.context.name+"', f":"F";return e+"unction calls are not supported. Consider replacing the function or lambda with a reference to an exported function";case"Reference to a local symbol":if(t.context&&t.context.name)return"Reference to a local (non-exported) symbol '"+t.context.name+"'. Consider exporting the symbol"}return t.message}function Tr(t){return"Error encountered resolving symbol values statically. "+Pr(t)}function Ar(t,e){if(!t)return{};var n={};return Object.keys(t).forEach(function(r){var o=e(t[r],r);xr(o)||(Dh.test(r)?Object.defineProperty(n,r,{enumerable:!1,configurable:!0,value:o}):n[r]=o)}),n}function Or(t){return null===t||"function"!=typeof t&&"object"!=typeof t}function Mr(t,e,n,r){var o=new Error(t);return o.fileName=e,o.line=n,o.column=r,o}function Rr(t){return t.startsWith("___")?t.substr(1):t}function kr(t,n){var r=n.translations||"",o=De(),i=new uo,s=new qh(t,i),a=new Bh(t,i,s),u=new Lh(a);Ih.install(u);var c=new e.ɵConsole,l=new _u(new yu,r,n.i18nFormat,e.MissingTranslationStrategy.Warning,c),p=new Ko({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1,enableLegacyTemplate:n.enableLegacyTemplate!==!1}),h=new Lc({get:function(e){return t.loadResource(e)}},o,l,p),f=new Is(new Ts),d=new Tp,v=new xc(p,f,d,l,c,[]),y=new Wc(p,new Bc(u),new Fc(u),new qc(u),s,d,h,c,i,u),m={getImportAs:function(t){return a.getImportAs(t)},fileNameToModuleName:function(e,n){return t.fileNameToModuleName(e,n)},getTypeArity:function(t){return a.getTypeArity(t)}},g=new wh(p,d),_=new kh(p,t,y,v,new ah(o),g,new ep,new gp(m),s,n.locale,n.i18nFormat,n.genFilePreamble,a);return{compiler:_,reflector:u}}function Ir(t,e){var n=t.concat([new Vl(vn(e.map(function(t){return pn(t)})))]),r=new zh(null,null,null,new Map),o=new Wh,i=o.visitAllStatements(n,r);return null!=i?i.value:null}function Nr(t,e,n,r,o){for(var i=r.createChildWihtLocalVars(),s=0;s<t.length;s++)i.vars.set(t[s],e[s]);var a=o.visitAllStatements(n,i);return a?a.value:null}function Dr(t,e,n){var r={};t.getters.forEach(function(o){r[o.name]={configurable:!1,get:function(){var r=new zh(e,this,t.name,e.vars);return Nr([],[],o.body,r,n)}}}),t.methods.forEach(function(o){var i=o.params.map(function(t){return t.name});r[o.name]={writable:!1,configurable:!1,value:function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];var a=new zh(e,this,t.name,e.vars);return Nr(i,r,o.body,a,n)}}});var o=t.constructorMethod.params.map(function(t){return t.name}),i=function(){for(var r=this,i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];var a=new zh(e,this,t.name,e.vars);t.fields.forEach(function(t){r[t.name]=void 0}),Nr(o,i,t.constructorMethod.body,a,n)},s=t.parent?t.parent.visitExpression(n,e):Object;return i.prototype=Object.create(s.prototype,r),i}function jr(t,e,n,r){return function(){for(var o=[],i=0;i<arguments.length;i++)o[i]=arguments[i];return Nr(t,o,e,n,r)}}function Lr(t,n,r){var o=n.toSource()+"\n//# sourceURL="+t,i=[],s=[];for(var a in r)i.push(a),s.push(r[a]);if(e.isDevMode()){var u=(new(Function.bind.apply(Function,[void 0].concat(i.concat("return null;"))))).toString(),c=u.slice(0,u.indexOf("return null;")).split("\n").length-1;o+="\n"+n.toSourceMapGenerator(t,t,c).toJsComment()}return(new(Function.bind.apply(Function,[void 0].concat(i.concat(o))))).apply(void 0,s)}function Vr(t,e,n){var r=new $h,o=vp.createRoot(n),i=new Vl(vn(n.map(function(t){return pn(t)})));return r.visitAllStatements(e.concat([i]),o),Lr(t,o,r.getArgs())}function Fr(t){if(!t.isComponent)throw new Error("Could not compile '"+g(t.type)+"' because it is not a component.")}function Ur(){e.ɵreflector.reflectionCapabilities=new e.ɵReflectionCapabilities}function Hr(t){return{useJit:Br(t.map(function(t){return t.useJit})),defaultEncapsulation:Br(t.map(function(t){return t.defaultEncapsulation})),providers:qr(t.map(function(t){return t.providers})),missingTranslation:Br(t.map(function(t){return t.missingTranslation}))}}function Br(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e]}function qr(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}var zr=function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Gr=new e.Version("4.0.0"),Wr=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Kr=function(){function t(t,e,n){this.value=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitBoundText(this,e)},t}(),Qr=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitAttr(this,e)},t}(),Xr=function(){function t(t,e,n,r,o,i){this.name=t,this.type=e,this.securityContext=n,this.value=r,this.unit=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===so.Animation},enumerable:!0,configurable:!0}),t}(),$r=function(){function t(t,e,n,r,o){this.name=t,this.target=e,this.phase=n,this.handler=r,this.sourceSpan=o}return t.calcFullName=function(t,e,n){return e?e+":"+t:n?"@"+t+"."+n:t},t.prototype.visit=function(t,e){return t.visitEvent(this,e)},Object.defineProperty(t.prototype,"fullName",{get:function(){return t.calcFullName(this.name,this.target,this.phase)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return!!this.phase},enumerable:!0,configurable:!0}),t}(),Zr=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitReference(this,e)},t}(),Yr=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitVariable(this,e)},t}(),Jr=function(){function t(t,e,n,r,o,i,s,a,u,c,l,p,h){this.name=t,this.attrs=e,this.inputs=n,this.outputs=r,this.references=o,this.directives=i,this.providers=s,this.hasViewContainer=a,this.queryMatches=u,this.children=c,this.ngContentIndex=l,this.sourceSpan=p,this.endSourceSpan=h}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),to=function(){function t(t,e,n,r,o,i,s,a,u,c,l){this.attrs=t,this.outputs=e,this.references=n,this.variables=r,this.directives=o,this.providers=i,this.hasViewContainer=s,this.queryMatches=a,this.children=u,this.ngContentIndex=c,this.sourceSpan=l}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),eo=function(){function t(t,e,n,r){this.directiveName=t,this.templateName=e,this.value=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitDirectiveProperty(this,e)},t}(),no=function(){function t(t,e,n,r,o,i){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=o,this.sourceSpan=i}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),ro=function(){function t(t,e,n,r,o,i,s){this.token=t,this.multiProvider=e,this.eager=n,this.providers=r,this.providerType=o,this.lifecycleHooks=i,this.sourceSpan=s}return t.prototype.visit=function(t,e){return null},t}(),oo={};oo.PublicService=0,oo.PrivateService=1,oo.Component=2,oo.Directive=3,oo.Builtin=4,oo[oo.PublicService]="PublicService",oo[oo.PrivateService]="PrivateService",oo[oo.Component]="Component",oo[oo.Directive]="Directive",oo[oo.Builtin]="Builtin";var io=function(){function t(t,e,n){this.index=t,this.ngContentIndex=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitNgContent(this,e)},t}(),so={};so.Property=0,so.Attribute=1,so.Class=2,so.Style=3,so.Animation=4,so[so.Property]="Property",so[so.Attribute]="Attribute",so[so.Class]="Class",so[so.Style]="Style",so[so.Animation]="Animation";var ao=function(){function t(t,e,n){this.filePath=t,this.name=e,this.members=n}return t.prototype.assertNoMembers=function(){if(this.members.length)throw new Error("Illegal state: symbol without members expected, but got "+JSON.stringify(this)+".")},t}(),uo=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,n){n=n||[];var r=n.length?"."+n.join("."):"",o='"'+t+'".'+e+r,i=this.cache.get(o);return i||(i=new ao(t,e,n),this.cache.set(o,i)),i},t}(),co={};co.RAW_TEXT=0,co.ESCAPABLE_RAW_TEXT=1,co.PARSABLE_DATA=2,co[co.RAW_TEXT]="RAW_TEXT",co[co.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",co[co.PARSABLE_DATA]="PARSABLE_DATA";var lo={Aacute:"Á",aacute:"á",Acirc:"Â",acirc:"â",acute:"´",AElig:"Æ",aelig:"æ",Agrave:"À",agrave:"à",alefsym:"ℵ",Alpha:"Α",alpha:"α",amp:"&",and:"∧",ang:"∠",apos:"'",Aring:"Å",aring:"å",asymp:"≈",Atilde:"Ã",atilde:"ã",Auml:"Ä",auml:"ä",bdquo:"„",Beta:"Β",beta:"β",brvbar:"¦",bull:"•",cap:"∩",Ccedil:"Ç",ccedil:"ç",cedil:"¸",cent:"¢",Chi:"Χ",chi:"χ",circ:"ˆ",clubs:"♣",cong:"≅",copy:"©",crarr:"↵",cup:"∪",curren:"¤",dagger:"†",Dagger:"‡",darr:"↓",dArr:"⇓",deg:"°",Delta:"Δ",delta:"δ",diams:"♦",divide:"÷",Eacute:"É",eacute:"é",Ecirc:"Ê",ecirc:"ê",Egrave:"È",egrave:"è",empty:"∅",emsp:" ",ensp:" ",Epsilon:"Ε",epsilon:"ε",equiv:"≡",Eta:"Η",eta:"η",ETH:"Ð",eth:"ð",Euml:"Ë",euml:"ë",euro:"€",exist:"∃",fnof:"ƒ",forall:"∀",frac12:"½",frac14:"¼",frac34:"¾",frasl:"⁄",Gamma:"Γ",gamma:"γ",ge:"≥",gt:">",harr:"↔",hArr:"⇔",hearts:"♥",hellip:"…",Iacute:"Í",iacute:"í",Icirc:"Î",icirc:"î",iexcl:"¡",Igrave:"Ì",igrave:"ì",image:"ℑ",infin:"∞",int:"∫",Iota:"Ι",iota:"ι",iquest:"¿",isin:"∈",Iuml:"Ï",iuml:"ï",Kappa:"Κ",kappa:"κ",Lambda:"Λ",lambda:"λ",lang:"⟨",laquo:"«",larr:"←",lArr:"⇐",lceil:"⌈",ldquo:"“",le:"≤",lfloor:"⌊",lowast:"∗",loz:"◊",lrm:"‎",lsaquo:"‹",lsquo:"‘",lt:"<",macr:"¯",mdash:"—",micro:"µ",middot:"·",minus:"−",Mu:"Μ",mu:"μ",nabla:"∇",nbsp:" ",ndash:"–",ne:"≠",ni:"∋",not:"¬",notin:"∉",nsub:"⊄",Ntilde:"Ñ",ntilde:"ñ",Nu:"Ν",nu:"ν",Oacute:"Ó",oacute:"ó",Ocirc:"Ô",ocirc:"ô",OElig:"Œ",oelig:"œ",Ograve:"Ò",ograve:"ò",oline:"‾",Omega:"Ω",omega:"ω",Omicron:"Ο",omicron:"ο",oplus:"⊕",or:"∨",ordf:"ª",ordm:"º",Oslash:"Ø",oslash:"ø",Otilde:"Õ",otilde:"õ",otimes:"⊗",Ouml:"Ö",ouml:"ö",para:"¶",permil:"‰",perp:"⊥",Phi:"Φ",phi:"φ",Pi:"Π",pi:"π",piv:"ϖ",plusmn:"±",pound:"£",prime:"′",Prime:"″",prod:"∏",prop:"∝",Psi:"Ψ",psi:"ψ",quot:'"',radic:"√",rang:"⟩",raquo:"»",rarr:"→",rArr:"⇒",rceil:"⌉",rdquo:"”",real:"ℜ",reg:"®",rfloor:"⌋",Rho:"Ρ",rho:"ρ",rlm:"‏",rsaquo:"›",rsquo:"’",sbquo:"‚",Scaron:"Š",scaron:"š",sdot:"⋅",sect:"§",shy:"­",Sigma:"Σ",sigma:"σ",sigmaf:"ς",sim:"∼",spades:"♠",sub:"⊂",sube:"⊆",sum:"∑",sup:"⊃",sup1:"¹",sup2:"²",sup3:"³",supe:"⊇",szlig:"ß",Tau:"Τ",tau:"τ",there4:"∴",Theta:"Θ",theta:"θ",thetasym:"ϑ",thinsp:" ",THORN:"Þ",thorn:"þ",tilde:"˜",times:"×",trade:"™",Uacute:"Ú",uacute:"ú",uarr:"↑",uArr:"⇑",Ucirc:"Û",ucirc:"û",Ugrave:"Ù",ugrave:"ù",uml:"¨",upsih:"ϒ",Upsilon:"Υ",upsilon:"υ",Uuml:"Ü",uuml:"ü",weierp:"℘",Xi:"Ξ",xi:"ξ",Yacute:"Ý",yacute:"ý",yen:"¥",yuml:"ÿ",Yuml:"Ÿ",Zeta:"Ζ",zeta:"ζ",zwj:"‍",zwnj:"‌"},po=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=e.requiredParents,o=e.implicitNamespacePrefix,i=e.contentType,s=void 0===i?co.PARSABLE_DATA:i,a=e.closedByParent,u=void 0!==a&&a,c=e.isVoid,l=void 0!==c&&c,p=e.ignoreFirstLf,h=void 0!==p&&p,f=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,n&&n.length>0&&n.forEach(function(t){return f.closedByChildren[t]=!0}),this.isVoid=l,this.closedByParent=u||l,r&&r.length>0&&(this.requiredParents={},this.parentToAdd=r[0],r.forEach(function(t){return f.requiredParents[t]=!0})),this.implicitNamespacePrefix=o,this.contentType=s,this.ignoreFirstLf=h}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase(),n="template"===e||"ng-template"===t;return!n&&1!=this.requiredParents[e]},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}(),ho={base:new po({isVoid:!0}),meta:new po({isVoid:!0}),area:new po({isVoid:!0}),embed:new po({isVoid:!0}),link:new po({isVoid:!0}),img:new po({isVoid:!0}),input:new po({isVoid:!0}),param:new po({isVoid:!0}),hr:new po({isVoid:!0}),br:new po({isVoid:!0}),source:new po({isVoid:!0}),track:new po({isVoid:!0}),wbr:new po({isVoid:!0}),p:new po({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new po({closedByChildren:["tbody","tfoot"]}),tbody:new po({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new po({closedByChildren:["tbody"],closedByParent:!0}),tr:new po({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new po({closedByChildren:["td","th"],closedByParent:!0}),th:new po({closedByChildren:["td","th"],closedByParent:!0}),col:new po({requiredParents:["colgroup"],isVoid:!0}),svg:new po({implicitNamespacePrefix:"svg"}),math:new po({implicitNamespacePrefix:"math"}),li:new po({closedByChildren:["li"],closedByParent:!0}),dt:new po({closedByChildren:["dt","dd"]}),dd:new po({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new po({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new po({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new po({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new po({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new po({closedByChildren:["optgroup"],closedByParent:!0}),option:new po({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new po({ignoreFirstLf:!0}),listing:new po({ignoreFirstLf:!0}),style:new po({contentType:co.RAW_TEXT}),script:new po({contentType:co.RAW_TEXT}),title:new po({contentType:co.ESCAPABLE_RAW_TEXT}),textarea:new po({contentType:co.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},fo=new po,vo=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),yo=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var n,r=[],o=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},i=new t,s=i,a=!1;for(vo.lastIndex=0;n=vo.exec(e);){if(n[1]){if(a)throw new Error("Nesting :not is not allowed in a selector");a=!0,s=new t,i.notSelectors.push(s)}if(n[2]&&s.setElement(n[2]),n[3]&&s.addClassName(n[3]),n[4]&&s.addAttribute(n[4],n[6]),n[7]&&(a=!1,s=i),n[8]){if(a)throw new Error("Multiple selectors in :not are not supported");o(r,i),i=s=new t}}return o(r,i),r},t.prototype.isElementSelector=function(){return this.hasElementSelector()&&0==this.classNames.length&&0==this.attrs.length&&0===this.notSelectors.length},t.prototype.hasElementSelector=function(){return!!this.element},t.prototype.setElement=function(t){void 0===t&&(t=null),this.element=t},t.prototype.getMatchingElementTemplate=function(){for(var t=this.element||"div",e=this.classNames.length>0?' class="'+this.classNames.join(" ")+'"':"",n="",r=0;r<this.attrs.length;r+=2){var o=this.attrs[r],i=""!==this.attrs[r+1]?'="'+this.attrs[r+1]+'"':"";n+=" "+o+i}return s(t).isVoid?"<"+t+e+n+"/>":"<"+t+e+n+"></"+t+">"},t.prototype.addAttribute=function(t,e){void 0===e&&(e=""),this.attrs.push(t,e&&e.toLowerCase()||"")},t.prototype.addClassName=function(t){this.classNames.push(t.toLowerCase())},t.prototype.toString=function(){var t=this.element||"";if(this.classNames&&this.classNames.forEach(function(e){return t+="."+e}),this.attrs)for(var e=0;e<this.attrs.length;e+=2){var n=this.attrs[e],r=this.attrs[e+1];t+="["+n+(r?"="+r:"")+"]"}return this.notSelectors.forEach(function(e){return t+=":not("+e+")"}),t},t}(),mo=function(){function t(){this._elementMap=new Map,this._elementPartialMap=new Map,this._classMap=new Map,this._classPartialMap=new Map,this._attrValueMap=new Map,this._attrValuePartialMap=new Map,this._listContexts=[]}return t.createNotMatcher=function(e){var n=new t;return n.addSelectables(e,null),n},t.prototype.addSelectables=function(t,e){var n=null;t.length>1&&(n=new go(t),this._listContexts.push(n));for(var r=0;r<t.length;r++)this._addSelectable(t[r],e,n)},t.prototype._addSelectable=function(t,e,n){var r=this,o=t.element,i=t.classNames,s=t.attrs,a=new _o(t,e,n);if(o){var u=0===s.length&&0===i.length;u?this._addTerminal(r._elementMap,o,a):r=this._addPartial(r._elementPartialMap,o)}if(i)for(var c=0;c<i.length;c++){var u=0===s.length&&c===i.length-1,l=i[c];u?this._addTerminal(r._classMap,l,a):r=this._addPartial(r._classPartialMap,l)}if(s)for(var c=0;c<s.length;c+=2){var u=c===s.length-2,p=s[c],h=s[c+1];if(u){var f=r._attrValueMap,d=f.get(p);d||(d=new Map,f.set(p,d)),this._addTerminal(d,h,a)}else{var v=r._attrValuePartialMap,y=v.get(p);y||(y=new Map,v.set(p,y)),r=this._addPartial(y,h)}}},t.prototype._addTerminal=function(t,e,n){var r=t.get(e);r||(r=[],t.set(e,r)),r.push(n)},t.prototype._addPartial=function(e,n){var r=e.get(n);return r||(r=new t,e.set(n,r)),r},t.prototype.match=function(t,e){for(var n=!1,r=t.element,o=t.classNames,i=t.attrs,s=0;s<this._listContexts.length;s++)this._listContexts[s].alreadyMatched=!1;if(n=this._matchTerminal(this._elementMap,r,t,e)||n,n=this._matchPartial(this._elementPartialMap,r,t,e)||n,o)for(var s=0;s<o.length;s++){var a=o[s];n=this._matchTerminal(this._classMap,a,t,e)||n,n=this._matchPartial(this._classPartialMap,a,t,e)||n}if(i)for(var s=0;s<i.length;s+=2){var u=i[s],c=i[s+1],l=this._attrValueMap.get(u);c&&(n=this._matchTerminal(l,"",t,e)||n),n=this._matchTerminal(l,c,t,e)||n;var p=this._attrValuePartialMap.get(u);c&&(n=this._matchPartial(p,"",t,e)||n),n=this._matchPartial(p,c,t,e)||n}return n},t.prototype._matchTerminal=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var o=t.get(e)||[],i=t.get("*");if(i&&(o=o.concat(i)),0===o.length)return!1;for(var s,a=!1,u=0;u<o.length;u++)s=o[u],a=s.finalize(n,r)||a;return a},t.prototype._matchPartial=function(t,e,n,r){if(!t||"string"!=typeof e)return!1;var o=t.get(e);return!!o&&o.match(n,r)},t}(),go=function(){function t(t){this.selectors=t,this.alreadyMatched=!1}return t}(),_o=function(){function t(t,e,n){this.selector=t,this.cbContext=e,this.listContext=n,this.notSelectors=t.notSelectors}return t.prototype.finalize=function(t,e){var n=!0;if(this.notSelectors.length>0&&(!this.listContext||!this.listContext.alreadyMatched)){var r=mo.createNotMatcher(this.notSelectors);n=!r.match(t,null)}return!n||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n},t}(),bo="",wo=/-+([a-z0-9])/g,Co=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return t.map(function(t){return p(t,n,e)})},t.prototype.visitStringMap=function(t,e){var n=this,r={};return Object.keys(t).forEach(function(o){r[o]=p(t[o],n,e)}),r},t.prototype.visitPrimitive=function(t,e){return t},t.prototype.visitOther=function(t,e){return t},t}(),Eo=function(){function t(t,e){void 0===e&&(e=null),this.syncResult=t,this.asyncResult=e,e||(this.asyncResult=Promise.resolve(t))}return t}(),So="ngSyntaxError",xo=Object.getPrototypeOf({}),Po=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/,To=function(){function t(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.name=t,this.definitions=e}return t}(),Ao=function(){function t(){}return t}(),Oo=function(t){function e(e,n){var r=t.call(this)||this;return r.stateNameExpr=e,r.styles=n,r}return zr(e,t),e}(Ao),Mo=function(t){function e(e,n){var r=t.call(this)||this;return r.stateChangeExpr=e,r.steps=n,r}return zr(e,t),e}(Ao),Ro=function(){function t(){}return t}(),ko=function(t){function e(e){void 0===e&&(e=[]);var n=t.call(this)||this;return n.steps=e,n}return zr(e,t),e}(Ro),Io=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this)||this;return r.offset=e,r.styles=n,r}return zr(e,t),e}(Ro),No=function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=null);var r=t.call(this)||this;return r.timings=e,r.styles=n,r}return zr(e,t),e}(Ro),Do=function(t){function e(e){void 0===e&&(e=null);var n=t.call(this)||this;return n.steps=e,n}return zr(e,t),e}(Ro),jo=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return zr(e,t),e}(Do),Lo=function(t){function e(e){return void 0===e&&(e=null),t.call(this,e)||this}return zr(e,t),e}(Do),Vo=0,Fo={};Fo.Pipe=0,Fo.Directive=1,Fo.NgModule=2,Fo.Injectable=3,Fo[Fo.Pipe]="Pipe",Fo[Fo.Directive]="Directive",Fo[Fo.NgModule]="NgModule",Fo[Fo.Injectable]="Injectable";var Uo=function(){function t(t){var e=void 0===t?{}:t,n=e.moduleUrl,r=e.styles,o=e.styleUrls;this.moduleUrl=n,this.styles=A(r),this.styleUrls=A(o)}return t}(),Ho=function(){function t(t){var e=void 0===t?{}:t,n=e.encapsulation,r=e.template,o=e.templateUrl,i=e.styles,s=e.styleUrls,a=e.externalStylesheets,u=e.animations,c=e.ngContentSelectors,l=e.interpolation,p=e.isInline;if(this.encapsulation=n,this.template=r,this.templateUrl=o,this.styles=A(i),this.styleUrls=A(s),this.externalStylesheets=A(a),this.animations=u?O(u):[],this.ngContentSelectors=c||[],l&&2!=l.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=l,this.isInline=p}return t.prototype.toSummary=function(){return{animations:this.animations.map(function(t){return t.name}),ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Bo=function(){function t(t){var e=void 0===t?{}:t,n=e.isHost,r=e.type,o=e.isComponent,i=e.selector,s=e.exportAs,a=e.changeDetection,u=e.inputs,c=e.outputs,l=e.hostListeners,p=e.hostProperties,h=e.hostAttributes,f=e.providers,d=e.viewProviders,v=e.queries,y=e.viewQueries,m=e.entryComponents,g=e.template,_=e.componentViewType,b=e.rendererType,w=e.componentFactory;this.isHost=!!n,this.type=r,this.isComponent=o,this.selector=i,this.exportAs=s,this.changeDetection=a,this.inputs=u,this.outputs=c,this.hostListeners=l,this.hostProperties=p,this.hostAttributes=h,this.providers=A(f),this.viewProviders=A(d),this.queries=A(v),this.viewQueries=A(y),this.entryComponents=A(m),this.template=g,this.componentViewType=_,this.rendererType=b,this.componentFactory=w}return t.create=function(e){var n=void 0===e?{}:e,r=n.isHost,o=n.type,i=n.isComponent,s=n.selector,a=n.exportAs,c=n.changeDetection,l=n.inputs,p=n.outputs,h=n.host,f=n.providers,d=n.viewProviders,v=n.queries,y=n.viewQueries,m=n.entryComponents,g=n.template,_=n.componentViewType,b=n.rendererType,w=n.componentFactory,C={},E={},S={};null!=h&&Object.keys(h).forEach(function(t){var e=h[t],n=t.match(Po);null===n?S[t]=e:null!=n[1]?E[n[1]]=e:null!=n[2]&&(C[n[2]]=e)});var x={};null!=l&&l.forEach(function(t){var e=u(t,[t,t]);x[e[0]]=e[1]});var P={};return null!=p&&p.forEach(function(t){var e=u(t,[t,t]);P[e[0]]=e[1]}),new t({isHost:r,type:o,isComponent:!!i,selector:s,exportAs:a,changeDetection:c,inputs:x,outputs:P,hostListeners:C,hostProperties:E,hostAttributes:S,providers:f,viewProviders:d,queries:v,viewQueries:y,entryComponents:m,template:g,componentViewType:_,rendererType:b,componentFactory:w})},t.prototype.toSummary=function(){return{summaryKind:Fo.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),
  componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}},t}(),qo=function(){function t(t){var e=void 0===t?{}:t,n=e.type,r=e.name,o=e.pure;this.type=n,this.name=r,this.pure=!!o}return t.prototype.toSummary=function(){return{summaryKind:Fo.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),zo=function(){function t(t){var e=void 0===t?{}:t,n=e.type,r=e.providers,o=e.declaredDirectives,i=e.exportedDirectives,s=e.declaredPipes,a=e.exportedPipes,u=e.entryComponents,c=e.bootstrapComponents,l=e.importedModules,p=e.exportedModules,h=e.schemas,f=e.transitiveModule,d=e.id;this.type=n,this.declaredDirectives=A(o),this.exportedDirectives=A(i),this.declaredPipes=A(s),this.exportedPipes=A(a),this.providers=A(r),this.entryComponents=A(u),this.bootstrapComponents=A(c),this.importedModules=A(l),this.exportedModules=A(p),this.schemas=A(h),this.id=d,this.transitiveModule=f}return t.prototype.toSummary=function(){return{summaryKind:Fo.NgModule,type:this.type,entryComponents:this.transitiveModule.entryComponents,providers:this.transitiveModule.providers,modules:this.transitiveModule.modules,exportedDirectives:this.transitiveModule.exportedDirectives,exportedPipes:this.transitiveModule.exportedPipes}},t}(),Go=function(){function t(){this.directivesSet=new Set,this.directives=[],this.exportedDirectivesSet=new Set,this.exportedDirectives=[],this.pipesSet=new Set,this.pipes=[],this.exportedPipesSet=new Set,this.exportedPipes=[],this.modulesSet=new Set,this.modules=[],this.entryComponentsSet=new Set,this.entryComponents=[],this.providers=[]}return t.prototype.addProvider=function(t,e){this.providers.push({provider:t,module:e})},t.prototype.addDirective=function(t){this.directivesSet.has(t.reference)||(this.directivesSet.add(t.reference),this.directives.push(t))},t.prototype.addExportedDirective=function(t){this.exportedDirectivesSet.has(t.reference)||(this.exportedDirectivesSet.add(t.reference),this.exportedDirectives.push(t))},t.prototype.addPipe=function(t){this.pipesSet.has(t.reference)||(this.pipesSet.add(t.reference),this.pipes.push(t))},t.prototype.addExportedPipe=function(t){this.exportedPipesSet.has(t.reference)||(this.exportedPipesSet.add(t.reference),this.exportedPipes.push(t))},t.prototype.addModule=function(t){this.modulesSet.has(t.reference)||(this.modulesSet.add(t.reference),this.modules.push(t))},t.prototype.addEntryComponent=function(t){this.entryComponentsSet.has(t.componentType)||(this.entryComponentsSet.add(t.componentType),this.entryComponents.push(t))},t}(),Wo=function(){function t(t,e){var n=e.useClass,r=e.useValue,o=e.useExisting,i=e.useFactory,s=e.deps,a=e.multi;this.token=t,this.useClass=n,this.useValue=r,this.useExisting=o,this.useFactory=i,this.dependencies=s,this.multi=!!a}return t}(),Ko=function(){function t(t){var n=void 0===t?{}:t,r=n.defaultEncapsulation,o=void 0===r?e.ViewEncapsulation.Emulated:r,i=n.useJit,s=void 0===i||i,a=n.missingTranslation,u=n.enableLegacyTemplate;this.defaultEncapsulation=o,this.useJit=s,this.missingTranslation=a,this.enableLegacyTemplate=u!==!1}return t}(),Qo=function(){function t(t,e,n,r){this.input=e,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+t+" "+n+" ["+e+"] in "+r}return t}(),Xo=function(){function t(t,e){this.start=t,this.end=e}return t}(),$o=function(){function t(t){this.span=t}return t.prototype.visit=function(t,e){return void 0===e&&(e=null),null},t.prototype.toString=function(){return"AST"},t}(),Zo=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.prefix=n,i.uninterpretedExpression=r,i.location=o,i}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitQuote(this,e)},e.prototype.toString=function(){return"Quote"},e}($o),Yo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}($o),Jo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}($o),ti=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}($o),ei=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.condition=n,i.trueExp=r,i.falseExp=o,i}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}($o),ni=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}($o),ri=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i.value=o,i}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}($o),oi=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}($o),ii=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.obj=n,o.key=r,o}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}($o),si=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.obj=n,i.key=r,i.value=o,i}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}($o),ai=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.exp=n,i.name=r,i.args=o,i}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}($o),ui=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}($o),ci=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}($o),li=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keys=n,o.values=r,o}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}($o),pi=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.strings=n,o.expressions=r,o}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}($o),hi=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.operation=n,i.left=r,i.right=o,i}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}($o),fi=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}($o),di=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i.args=o,i}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}($o),vi=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i.args=o,i}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}($o),yi=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.target=n,o.args=r,o}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}($o),mi=function(t){function e(e,n,r,o){var i=t.call(this,new Xo(0,null==n?0:n.length))||this;return i.ast=e,i.source=n,i.location=r,i.errors=o,i}return zr(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),this.ast.visit(t,e)},e.prototype.toString=function(){return this.source+" in "+this.location},e}($o),gi=function(){function t(t,e,n,r,o){this.span=t,this.key=e,this.keyIsVar=n,this.name=r,this.expression=o}return t}(),_i=function(){function t(){}return t.prototype.visitBinary=function(t,e){return t.left.visit(this),t.right.visit(this),null},t.prototype.visitChain=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this),null},t.prototype.visitPipe=function(t,e){return t.exp.visit(this),this.visitAll(t.args,e),null},t.prototype.visitFunctionCall=function(t,e){return t.target.visit(this),this.visitAll(t.args,e),null},t.prototype.visitImplicitReceiver=function(t,e){return null},t.prototype.visitInterpolation=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitKeyedRead=function(t,e){return t.obj.visit(this),t.key.visit(this),null},t.prototype.visitKeyedWrite=function(t,e){return t.obj.visit(this),t.key.visit(this),t.value.visit(this),null},t.prototype.visitLiteralArray=function(t,e){return this.visitAll(t.expressions,e)},t.prototype.visitLiteralMap=function(t,e){return this.visitAll(t.values,e)},t.prototype.visitLiteralPrimitive=function(t,e){return null},t.prototype.visitMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitPrefixNot=function(t,e){return t.expression.visit(this),null},t.prototype.visitPropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitPropertyWrite=function(t,e){return t.receiver.visit(this),t.value.visit(this),null},t.prototype.visitSafePropertyRead=function(t,e){return t.receiver.visit(this),null},t.prototype.visitSafeMethodCall=function(t,e){return t.receiver.visit(this),this.visitAll(t.args,e)},t.prototype.visitAll=function(t,e){var n=this;return t.forEach(function(t){return t.visit(n,e)}),null},t.prototype.visitQuote=function(t,e){return null},t}(),bi=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t,e){return t},t.prototype.visitInterpolation=function(t,e){return new pi(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t,e){return new ui(t.span,t.value)},t.prototype.visitPropertyRead=function(t,e){return new ni(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t,e){return new ri(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t,e){return new oi(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t,e){return new di(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t,e){return new vi(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t,e){return new yi(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t,e){return new ci(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t,e){return new li(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t,e){return new hi(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t,e){return new fi(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t,e){return new ei(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t,e){return new ai(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t,e){return new ii(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t,e){return new si(t.span,t.obj.visit(this),t.key.visit(this),t.value.visit(this))},t.prototype.visitAll=function(t){for(var e=new Array(t.length),n=0;n<t.length;++n)e[n]=t[n].visit(this);return e},t.prototype.visitChain=function(t,e){return new ti(t.span,this.visitAll(t.expressions))},t.prototype.visitQuote=function(t,e){return new Zo(t.span,t.prefix,t.uninterpretedExpression,t.location)},t}(),wi=0,Ci=9,Ei=10,Si=11,xi=12,Pi=13,Ti=32,Ai=33,Oi=34,Mi=35,Ri=36,ki=37,Ii=38,Ni=39,Di=40,ji=41,Li=42,Vi=43,Fi=44,Ui=45,Hi=46,Bi=47,qi=58,zi=59,Gi=60,Wi=61,Ki=62,Qi=63,Xi=48,$i=57,Zi=65,Yi=69,Ji=70,ts=88,es=90,ns=91,rs=92,os=93,is=94,ss=95,as=97,us=101,cs=102,ls=110,ps=114,hs=116,fs=117,ds=118,vs=120,ys=122,ms=123,gs=124,_s=125,bs=160,ws=96,Cs=[/^\s*$/,/[<>]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//],Es=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(H("interpolation",e),new t(e[0],e[1])):Ss},t}(),Ss=new Es("{{","}}"),xs={};xs.Character=0,xs.Identifier=1,xs.Keyword=2,xs.String=3,xs.Operator=4,xs.Number=5,xs.Error=6,xs[xs.Character]="Character",xs[xs.Identifier]="Identifier",xs[xs.Keyword]="Keyword",xs[xs.String]="String",xs[xs.Operator]="Operator",xs[xs.Number]="Number",xs[xs.Error]="Error";var Ps=["var","let","as","null","undefined","true","false","if","else","this"],Ts=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new Ms(t),n=[],r=e.scanToken();null!=r;)n.push(r),r=e.scanToken();return n},t}();Ts.decorators=[{type:F}],Ts.ctorParameters=function(){return[]};var As=function(){function t(t,e,n,r){this.index=t,this.type=e,this.numValue=n,this.strValue=r}return t.prototype.isCharacter=function(t){return this.type==xs.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==xs.Number},t.prototype.isString=function(){return this.type==xs.String},t.prototype.isOperator=function(t){return this.type==xs.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==xs.Identifier},t.prototype.isKeyword=function(){return this.type==xs.Keyword},t.prototype.isKeywordLet=function(){return this.type==xs.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==xs.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==xs.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==xs.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==xs.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==xs.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==xs.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==xs.Error},t.prototype.toNumber=function(){return this.type==xs.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case xs.Character:case xs.Identifier:case xs.Keyword:case xs.Operator:case xs.String:case xs.Error:return this.strValue;case xs.Number:return this.numValue.toString();default:return null}},t}(),Os=new As((-1),xs.Character,0,""),Ms=function(){function t(t){this.input=t,this.peek=0,this.index=-1,this.length=t.length,this.advance()}return t.prototype.advance=function(){this.peek=++this.index>=this.length?wi:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,n=this.peek,r=this.index;n<=Ti;){if(++r>=e){n=wi;break}n=t.charCodeAt(r)}if(this.peek=n,this.index=r,r>=e)return null;if(X(n))return this.scanIdentifier();if(j(n))return this.scanNumber(r);var o=r;switch(n){case Hi:return this.advance(),j(this.peek)?this.scanNumber(o):B(o,Hi);case Di:case ji:case ms:case _s:case ns:case os:case Fi:case qi:case zi:return this.scanCharacter(o,n);case Ni:case Oi:return this.scanString();case Mi:case Vi:case Ui:case Li:case Bi:case ki:case is:return this.scanOperator(o,String.fromCharCode(n));case Qi:return this.scanComplexOperator(o,"?",Hi,".");case Gi:case Ki:return this.scanComplexOperator(o,String.fromCharCode(n),Wi,"=");case Ai:case Wi:return this.scanComplexOperator(o,String.fromCharCode(n),Wi,"=",Wi,"=");case Ii:return this.scanComplexOperator(o,"&",Ii,"&");case gs:return this.scanComplexOperator(o,"|",gs,"|");case bs:for(;D(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error("Unexpected character ["+String.fromCharCode(n)+"]",0)},t.prototype.scanCharacter=function(t,e){return this.advance(),B(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),G(t,e)},t.prototype.scanComplexOperator=function(t,e,n,r,o,i){this.advance();var s=e;return this.peek==n&&(this.advance(),s+=r),null!=o&&this.peek==o&&(this.advance(),s+=i),G(t,s)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();Z(this.peek);)this.advance();var e=this.input.substring(t,this.index);return Ps.indexOf(e)>-1?z(t,e):q(t,e)},t.prototype.scanNumber=function(t){var e=this.index===t;for(this.advance();;){if(j(this.peek));else if(this.peek==Hi)e=!1;else{if(!Y(this.peek))break;if(this.advance(),J(this.peek)&&this.advance(),!j(this.peek))return this.error("Invalid exponent",-1);e=!1}this.advance()}var n=this.input.substring(t,this.index),r=e?nt(n):parseFloat(n);return K(t,r)},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var n="",r=this.index,o=this.input;this.peek!=e;)if(this.peek==rs){n+=o.substring(r,this.index),this.advance();var i=void 0;if(this.peek=this.peek,this.peek==fs){var s=o.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(s))return this.error("Invalid unicode escape [\\u"+s+"]",0);i=parseInt(s,16);for(var a=0;a<5;a++)this.advance()}else i=et(this.peek),this.advance();n+=String.fromCharCode(i),r=this.index}else{if(this.peek==wi)return this.error("Unterminated quote",0);this.advance()}var u=o.substring(r,this.index);return this.advance(),W(t,n+u)},t.prototype.error=function(t,e){var n=this.index+e;return Q(n,"Lexer Error: "+t+" at column "+n+" in expression ["+this.input+"]")},t}(),Rs=function(){function t(t,e,n){this.strings=t,this.expressions=e,this.offsets=n}return t}(),ks=function(){function t(t,e,n){this.templateBindings=t,this.warnings=e,this.errors=n}return t}(),Is=function(){function t(t){this._lexer=t,this.errors=[]}return t.prototype.parseAction=function(t,e,n){void 0===n&&(n=Ss),this._checkNoInterpolation(t,e,n);var r=this._stripComments(t),o=this._lexer.tokenize(this._stripComments(t)),i=new Ns(t,e,o,r.length,(!0),this.errors,t.length-r.length).parseChain();return new mi(i,t,e,this.errors)},t.prototype.parseBinding=function(t,e,n){void 0===n&&(n=Ss);var r=this._parseBindingAst(t,e,n);return new mi(r,t,e,this.errors)},t.prototype.parseSimpleBinding=function(t,e,n){void 0===n&&(n=Ss);var r=this._parseBindingAst(t,e,n),o=Ds.check(r);return o.length>0&&this._reportError("Host binding expression cannot contain "+o.join(" "),t,e),new mi(r,t,e,this.errors)},t.prototype._reportError=function(t,e,n,r){this.errors.push(new Qo(t,e,n,r))},t.prototype._parseBindingAst=function(t,e,n){var r=this._parseQuote(t,e);if(null!=r)return r;this._checkNoInterpolation(t,e,n);var o=this._stripComments(t),i=this._lexer.tokenize(o);return new Ns(t,e,i,o.length,(!1),this.errors,t.length-o.length).parseChain()},t.prototype._parseQuote=function(t,e){if(null==t)return null;var n=t.indexOf(":");if(n==-1)return null;var r=t.substring(0,n).trim();if(!$(r))return null;var o=t.substring(n+1);return new Zo(new Xo(0,t.length),r,o,e)},t.prototype.parseTemplateBindings=function(t,e,n){var r=this._lexer.tokenize(e);if(t){var o=this._lexer.tokenize(t).map(function(t){return t.index=0,t});r.unshift.apply(r,o)}return new Ns(e,n,r,e.length,(!1),this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,n){void 0===n&&(n=Ss);var r=this.splitInterpolation(t,e,n);if(null==r)return null;for(var o=[],i=0;i<r.expressions.length;++i){var s=r.expressions[i],a=this._stripComments(s),u=this._lexer.tokenize(this._stripComments(r.expressions[i])),c=new Ns(t,e,u,a.length,(!1),this.errors,r.offsets[i]+(s.length-a.length)).parseChain();o.push(c)}return new mi(new pi(new Xo(0,null==t?0:t.length),r.strings,o),t,e,this.errors)},t.prototype.splitInterpolation=function(t,e,n){void 0===n&&(n=Ss);var r=rt(n),o=t.split(r);if(o.length<=1)return null;for(var i=[],s=[],a=[],u=0,c=0;c<o.length;c++){var l=o[c];c%2===0?(i.push(l),u+=l.length):l.trim().length>0?(u+=n.start.length,s.push(l),a.push(u),u+=l.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(o,c,n)+" in",e),s.push("$implict"),a.push(u))}return new Rs(i,s,a)},t.prototype.wrapLiteralPrimitive=function(t,e){return new mi(new ui(new Xo(0,null==t?0:t.length),t),t,e,this.errors)},t.prototype._stripComments=function(t){var e=this._commentStart(t);return null!=e?t.substring(0,e).trim():t},t.prototype._commentStart=function(t){for(var e=null,n=0;n<t.length-1;n++){var r=t.charCodeAt(n),o=t.charCodeAt(n+1);if(r===Bi&&o==Bi&&null==e)return n;e===r?e=null:null==e&&tt(r)&&(e=r)}return null},t.prototype._checkNoInterpolation=function(t,e,n){var r=rt(n),o=t.split(r);o.length>1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(o,1,n)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,n){for(var r="",o=0;o<e;o++)r+=o%2===0?t[o]:""+n.start+t[o]+n.end;return r.length},t}();Is.decorators=[{type:F}],Is.ctorParameters=function(){return[{type:Ts}]};var Ns=function(){function t(t,e,n,r,o,i,s){this.input=t,this.location=e,this.tokens=n,this.inputLength=r,this.parseAction=o,this.errors=i,this.offset=s,this.rparensExpected=0,this.rbracketsExpected=0,this.rbracesExpected=0,this.index=0}return t.prototype.peek=function(t){var e=this.index+t;return e<this.tokens.length?this.tokens[e]:Os},Object.defineProperty(t.prototype,"next",{get:function(){return this.peek(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inputIndex",{get:function(){return this.index<this.tokens.length?this.next.index+this.offset:this.inputLength+this.offset},enumerable:!0,configurable:!0}),t.prototype.span=function(t){return new Xo(t,this.inputIndex)},t.prototype.advance=function(){this.index++},t.prototype.optionalCharacter=function(t){return!!this.next.isCharacter(t)&&(this.advance(),!0)},t.prototype.peekKeywordLet=function(){return this.next.isKeywordLet()},t.prototype.peekKeywordAs=function(){return this.next.isKeywordAs()},t.prototype.expectCharacter=function(t){this.optionalCharacter(t)||this.error("Missing expected "+String.fromCharCode(t))},t.prototype.optionalOperator=function(t){return!!this.next.isOperator(t)&&(this.advance(),!0)},t.prototype.expectOperator=function(t){this.optionalOperator(t)||this.error("Missing expected operator "+t)},t.prototype.expectIdentifierOrKeyword=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier or keyword"),"")},t.prototype.expectIdentifierOrKeywordOrString=function(){var t=this.next;return t.isIdentifier()||t.isKeyword()||t.isString()?(this.advance(),t.toString()):(this.error("Unexpected token "+t+", expected identifier, keyword, or string"),"")},t.prototype.parseChain=function(){for(var t=[],e=this.inputIndex;this.index<this.tokens.length;){var n=this.parsePipe();if(t.push(n),this.optionalCharacter(zi))for(this.parseAction||this.error("Binding expression cannot contain chained expression");this.optionalCharacter(zi););else this.index<this.tokens.length&&this.error("Unexpected token '"+this.next+"'")}return 0==t.length?new Yo(this.span(e)):1==t.length?t[0]:new ti(this.span(e),t)},t.prototype.parsePipe=function(){var t=this.parseExpression();if(this.optionalOperator("|")){this.parseAction&&this.error("Cannot have a pipe in an action expression");do{for(var e=this.expectIdentifierOrKeyword(),n=[];this.optionalCharacter(qi);)n.push(this.parseExpression());t=new ai(this.span(t.span.start),t,e,n)}while(this.optionalOperator("|"))}return t},t.prototype.parseExpression=function(){return this.parseConditional()},t.prototype.parseConditional=function(){var t=this.inputIndex,e=this.parseLogicalOr();if(this.optionalOperator("?")){var n=this.parsePipe(),r=void 0;if(this.optionalCharacter(qi))r=this.parsePipe();else{var o=this.inputIndex,i=this.input.substring(t,o);this.error("Conditional expression "+i+" requires all 3 expressions"),r=new Yo(this.span(t))}return new ei(this.span(t),e,n,r)}return e},t.prototype.parseLogicalOr=function(){for(var t=this.parseLogicalAnd();this.optionalOperator("||");){var e=this.parseLogicalAnd();t=new hi(this.span(t.span.start),"||",t,e)}return t},t.prototype.parseLogicalAnd=function(){for(var t=this.parseEquality();this.optionalOperator("&&");){var e=this.parseEquality();t=new hi(this.span(t.span.start),"&&",t,e)}return t},t.prototype.parseEquality=function(){for(var t=this.parseRelational();this.next.type==xs.Operator;){var e=this.next.strValue;switch(e){case"==":case"===":case"!=":case"!==":this.advance();var n=this.parseRelational();t=new hi(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseRelational=function(){for(var t=this.parseAdditive();this.next.type==xs.Operator;){var e=this.next.strValue;switch(e){case"<":case">":case"<=":case">=":this.advance();var n=this.parseAdditive();t=new hi(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==xs.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var n=this.parseMultiplicative();t=new hi(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==xs.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();t=new hi(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==xs.Operator){var t=this.inputIndex,e=this.next.strValue,n=void 0;switch(e){case"+":return this.advance(),this.parsePrefix();case"-":return this.advance(),n=this.parsePrefix(),new hi(this.span(t),e,new ui(new Xo(t,t),0),n);case"!":return this.advance(),n=this.parsePrefix(),new fi(this.span(t),n)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(Hi))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(ns)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(os),this.optionalOperator("=")){var n=this.parseConditional();t=new si(this.span(t.span.start),t,e,n)}else t=new ii(this.span(t.span.start),t,e)}else{if(!this.optionalCharacter(Di))return t;this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(ji),t=new yi(this.span(t.span.start),t,r)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(Di)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(ji),e}if(this.next.isKeywordNull())return this.advance(),new ui(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new ui(this.span(t),(void 0));if(this.next.isKeywordTrue())return this.advance(),new ui(this.span(t),(!0));if(this.next.isKeywordFalse())return this.advance(),new ui(this.span(t),(!1));if(this.next.isKeywordThis())return this.advance(),new Jo(this.span(t));if(this.optionalCharacter(ns)){this.rbracketsExpected++;var n=this.parseExpressionList(os);return this.rbracketsExpected--,this.expectCharacter(os),new ci(this.span(t),n)}if(this.next.isCharacter(ms))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Jo(this.span(t)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new ui(this.span(t),r)}if(this.next.isString()){var o=this.next.toString();return this.advance(),new ui(this.span(t),o)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new Yo(this.span(t))):(this.error("Unexpected token "+this.next),new Yo(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do e.push(this.parsePipe());while(this.optionalCharacter(Fi));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],n=this.inputIndex;if(this.expectCharacter(ms),!this.optionalCharacter(_s)){this.rbracesExpected++;do{var r=this.expectIdentifierOrKeywordOrString();t.push(r),this.expectCharacter(qi),e.push(this.parsePipe())}while(this.optionalCharacter(Fi));this.rbracesExpected--,this.expectCharacter(_s)}return new li(this.span(n),t,e)},t.prototype.parseAccessMemberOrMethodCall=function(t,e){void 0===e&&(e=!1);var n=t.span.start,r=this.expectIdentifierOrKeyword();if(this.optionalCharacter(Di)){this.rparensExpected++;var o=this.parseCallArguments();this.expectCharacter(ji),this.rparensExpected--;var i=this.span(n);return e?new vi(i,t,r,o):new di(i,t,r,o)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Yo(this.span(n))):new oi(this.span(n),t,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Yo(this.span(n));var s=this.parseConditional();return new ri(this.span(n),t,r,s)}return new ni(this.span(n),t,r)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(ji))return[];var t=[];do t.push(this.parsePipe());while(this.optionalCharacter(Fi));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do t+=this.expectIdentifierOrKeywordOrString(),e=this.optionalOperator("-"),e&&(t+="-");while(e);return t.toString()},t.prototype.parseTemplateBindings=function(){for(var t=[],e=null,n=[];this.index<this.tokens.length;){var r=this.inputIndex,o=this.peekKeywordLet();o&&this.advance();var i=this.expectTemplateBindingKey(),s=i;o||(null==e?e=s:s=e+s[0].toUpperCase()+s.substring(1)),this.optionalCharacter(qi);var a=null,u=null;if(o)a=this.optionalOperator("=")?this.expectTemplateBindingKey():"$implicit";else if(this.peekKeywordAs()){var c=this.inputIndex;this.advance(),a=i,s=this.expectTemplateBindingKey(),o=!0}else if(this.next!==Os&&!this.peekKeywordLet()){var l=this.inputIndex,p=this.parsePipe(),h=this.input.substring(l-this.offset,this.inputIndex-this.offset);u=new mi(p,h,this.location,this.errors)}if(t.push(new gi(this.span(r),s,o,a,u)),this.peekKeywordAs()&&!o){var c=this.inputIndex;this.advance();var f=this.expectTemplateBindingKey();t.push(new gi(this.span(c),f,(!0),s,null))}this.optionalCharacter(zi)||this.optionalCharacter(Fi)}return new ks(t,n,this.errors)},t.prototype.error=function(t,e){void 0===e&&(e=null),this.errors.push(new Qo(t,this.input,this.locationText(e),this.location)),this.skip()},t.prototype.locationText=function(t){return void 0===t&&(t=null),null==t&&(t=this.index),t<this.tokens.length?"at column "+(this.tokens[t].index+1)+" in":"at the end of the expression"},t.prototype.skip=function(){for(var t=this.next;this.index<this.tokens.length&&!t.isCharacter(zi)&&(this.rparensExpected<=0||!t.isCharacter(ji))&&(this.rbracesExpected<=0||!t.isCharacter(_s))&&(this.rbracketsExpected<=0||!t.isCharacter(os));)this.next.isError()&&this.errors.push(new Qo(this.next.toString(),this.input,this.locationText(),this.location)),this.advance(),t=this.next},t}(),Ds=function(){function t(){this.errors=[]}return t.check=function(e){var n=new t;return e.visit(n),n.errors},t.prototype.visitImplicitReceiver=function(t,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitLiteralArray=function(t,e){this.visitAll(t.expressions)},t.prototype.visitLiteralMap=function(t,e){this.visitAll(t.values)},t.prototype.visitBinary=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitPipe=function(t,e){this.errors.push("pipes");
  },t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitAll=function(t){var e=this;return t.map(function(t){return t.visit(e)})},t.prototype.visitChain=function(t,e){},t.prototype.visitQuote=function(t,e){},t}(),js=function(){function t(t,e,n,r){this.file=t,this.offset=e,this.line=n,this.col=r}return t.prototype.toString=function(){return null!=this.offset?this.file.url+"@"+this.line+":"+this.col:this.file.url},t.prototype.moveBy=function(e){for(var n=this.file.content,r=n.length,o=this.offset,i=this.line,s=this.col;o>0&&e<0;){o--,e++;var a=n.charCodeAt(o);if(a==Ei){i--;var u=n.substr(0,o-1).lastIndexOf(String.fromCharCode(Ei));s=u>0?o-u:o}else s--}for(;o<r&&e>0;){var a=n.charCodeAt(o);o++,e--,a==Ei?(i++,s=0):s++}return new t(this.file,o,i,s)},t.prototype.getContext=function(t,e){var n=this.file.content,r=this.offset;if(null!=r){r>n.length-1&&(r=n.length-1);for(var o=r,i=0,s=0;i<t&&r>0&&(r--,i++,"\n"!=n[r]||++s!=e););for(i=0,s=0;i<t&&o<n.length-1&&(o++,i++,"\n"!=n[o]||++s!=e););return{before:n.substring(r,this.offset),after:n.substring(this.offset,o+1)}}return null},t}(),Ls=function(){function t(t,e){this.content=t,this.url=e}return t}(),Vs=function(){function t(t,e,n){void 0===n&&(n=null),this.start=t,this.end=e,this.details=n}return t.prototype.toString=function(){return this.start.file.content.substring(this.start.offset,this.end.offset)},t}(),Fs={};Fs.WARNING=0,Fs.ERROR=1,Fs[Fs.WARNING]="WARNING",Fs[Fs.ERROR]="ERROR";var Us=function(){function t(t,e,n){void 0===n&&(n=Fs.ERROR),this.span=t,this.msg=e,this.level=n}return t.prototype.toString=function(){var t=this.span.start.getContext(100,3),e=t?' ("'+t.before+"["+Fs[this.level]+" ->]"+t.after+'")':"",n=this.span.details?", "+this.span.details:"";return""+this.msg+e+": "+this.span.start+n},t}(),Hs=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Bs=function(){function t(t,e,n,r,o){this.switchValue=t,this.type=e,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),qs=function(){function t(t,e,n,r,o){this.value=t,this.expression=e,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),zs=function(){function t(t,e,n,r){this.name=t,this.value=e,this.sourceSpan=n,this.valueSpan=r}return t.prototype.visit=function(t,e){return t.visitAttribute(this,e)},t}(),Gs=function(){function t(t,e,n,r,o,i){this.name=t,this.attrs=e,this.children=n,this.sourceSpan=r,this.startSourceSpan=o,this.endSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),Ws=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}(),Ks={};Ks.TAG_OPEN_START=0,Ks.TAG_OPEN_END=1,Ks.TAG_OPEN_END_VOID=2,Ks.TAG_CLOSE=3,Ks.TEXT=4,Ks.ESCAPABLE_RAW_TEXT=5,Ks.RAW_TEXT=6,Ks.COMMENT_START=7,Ks.COMMENT_END=8,Ks.CDATA_START=9,Ks.CDATA_END=10,Ks.ATTR_NAME=11,Ks.ATTR_VALUE=12,Ks.DOC_TYPE=13,Ks.EXPANSION_FORM_START=14,Ks.EXPANSION_CASE_VALUE=15,Ks.EXPANSION_CASE_EXP_START=16,Ks.EXPANSION_CASE_EXP_END=17,Ks.EXPANSION_FORM_END=18,Ks.EOF=19,Ks[Ks.TAG_OPEN_START]="TAG_OPEN_START",Ks[Ks.TAG_OPEN_END]="TAG_OPEN_END",Ks[Ks.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",Ks[Ks.TAG_CLOSE]="TAG_CLOSE",Ks[Ks.TEXT]="TEXT",Ks[Ks.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",Ks[Ks.RAW_TEXT]="RAW_TEXT",Ks[Ks.COMMENT_START]="COMMENT_START",Ks[Ks.COMMENT_END]="COMMENT_END",Ks[Ks.CDATA_START]="CDATA_START",Ks[Ks.CDATA_END]="CDATA_END",Ks[Ks.ATTR_NAME]="ATTR_NAME",Ks[Ks.ATTR_VALUE]="ATTR_VALUE",Ks[Ks.DOC_TYPE]="DOC_TYPE",Ks[Ks.EXPANSION_FORM_START]="EXPANSION_FORM_START",Ks[Ks.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",Ks[Ks.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",Ks[Ks.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",Ks[Ks.EXPANSION_FORM_END]="EXPANSION_FORM_END",Ks[Ks.EOF]="EOF";var Qs=function(){function t(t,e,n){this.type=t,this.parts=e,this.sourceSpan=n}return t}(),Xs=function(t){function e(e,n,r){var o=t.call(this,r,e)||this;return o.tokenType=n,o}return zr(e,t),e}(Us),$s=function(){function t(t,e){this.tokens=t,this.errors=e}return t}(),Zs=/\r\n?/g,Ys=function(){function t(t){this.error=t}return t}(),Js=function(){function t(t,e,n,r){void 0===r&&(r=Ss),this._file=t,this._getTagDefinition=e,this._tokenizeIcu=n,this._interpolationConfig=r,this._peek=-1,this._nextPeek=-1,this._index=-1,this._line=0,this._column=-1,this._expansionCaseStack=[],this._inInterpolation=!1,this.tokens=[],this.errors=[],this._input=t.content,this._length=t.content.length,this._advance()}return t.prototype._processCarriageReturns=function(t){return t.replace(Zs,"\n")},t.prototype.tokenize=function(){for(;this._peek!==wi;){var t=this._getLocation();try{this._attemptCharCode(Gi)?this._attemptCharCode(Ai)?this._attemptCharCode(ns)?this._consumeCdata(t):this._attemptCharCode(Ui)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(Bi)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(t){if(!(t instanceof Ys))throw t;this.errors.push(t.error)}}return this._beginToken(Ks.EOF),this._endToken([]),new $s(gt(this.tokens),this.errors)},t.prototype._tokenizeExpansionForm=function(){if(dt(this._input,this._index,this._interpolationConfig))return this._consumeExpansionFormStart(),!0;if(vt(this._peek)&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._peek===_s){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1},t.prototype._getLocation=function(){return new js(this._file,this._index,this._line,this._column)},t.prototype._getSpan=function(t,e){return void 0===t&&(t=this._getLocation()),void 0===e&&(e=this._getLocation()),new Vs(t,e)},t.prototype._beginToken=function(t,e){void 0===e&&(e=this._getLocation()),this._currentTokenStart=e,this._currentTokenType=t},t.prototype._endToken=function(t,e){void 0===e&&(e=this._getLocation());var n=new Qs(this._currentTokenType,t,new Vs(this._currentTokenStart,e));return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n},t.prototype._createError=function(t,e){this._isInExpansionForm()&&(t+=' (Do you have an unescaped "{" in your template? Use "{{ \'{\' }}") to escape it.)');var n=new Xs(t,this._currentTokenType,e);return this._currentTokenStart=null,this._currentTokenType=null,new Ys(n)},t.prototype._advance=function(){if(this._index>=this._length)throw this._createError(at(wi),this._getSpan());this._peek===Ei?(this._line++,this._column=0):this._peek!==Ei&&this._peek!==Pi&&this._column++,this._index++,this._peek=this._index>=this._length?wi:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?wi:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t&&(this._advance(),!0)},t.prototype._attemptCharCodeCaseInsensitive=function(t){return!!yt(this._peek,t)&&(this._advance(),!0)},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(at(this._peek),this._getSpan(e,e))},t.prototype._attemptStr=function(t){var e=t.length;if(this._index+e>this._length)return!1;for(var n=this._savePosition(),r=0;r<e;r++)if(!this._attemptCharCode(t.charCodeAt(r)))return this._restorePosition(n),!1;return!0},t.prototype._attemptStrCaseInsensitive=function(t){for(var e=0;e<t.length;e++)if(!this._attemptCharCodeCaseInsensitive(t.charCodeAt(e)))return!1;return!0},t.prototype._requireStr=function(t){var e=this._getLocation();if(!this._attemptStr(t))throw this._createError(at(this._peek),this._getSpan(e))},t.prototype._attemptCharCodeUntilFn=function(t){for(;!t(this._peek);)this._advance()},t.prototype._requireCharCodeUntilFn=function(t,e){var n=this._getLocation();if(this._attemptCharCodeUntilFn(t),this._index-n.offset<e)throw this._createError(at(this._peek),this._getSpan(n,n))},t.prototype._attemptUntilChar=function(t){for(;this._peek!==t;)this._advance()},t.prototype._readChar=function(t){if(t&&this._peek===Ii)return this._decodeEntity();var e=this._index;return this._advance(),this._input[e]},t.prototype._decodeEntity=function(){var t=this._getLocation();if(this._advance(),!this._attemptCharCode(Mi)){var e=this._savePosition();if(this._attemptCharCodeUntilFn(ft),this._peek!=zi)return this._restorePosition(e),"&";this._advance();var n=this._input.substring(t.offset+1,this._index-1),r=lo[n];if(!r)throw this._createError(ut(n),this._getSpan(t));return r}var o=this._attemptCharCode(vs)||this._attemptCharCode(ts),i=this._getLocation().offset;if(this._attemptCharCodeUntilFn(ht),this._peek!=zi)throw this._createError(at(this._peek),this._getSpan());this._advance();var s=this._input.substring(i,this._index-1);try{var a=parseInt(s,o?16:10);return String.fromCharCode(a)}catch(e){var u=this._input.substring(t.offset+1,this._index-1);throw this._createError(ut(u),this._getSpan(t))}},t.prototype._consumeRawText=function(t,e,n){var r,o=this._getLocation();this._beginToken(t?Ks.ESCAPABLE_RAW_TEXT:Ks.RAW_TEXT,o);for(var i=[];r=this._getLocation(),!this._attemptCharCode(e)||!n();)for(this._index>r.offset&&i.push(this._input.substring(r.offset,this._index));this._peek!==e;)i.push(this._readChar(t));return this._endToken([this._processCarriageReturns(i.join(""))],r)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(Ks.COMMENT_START,t),this._requireCharCode(Ui),this._endToken([]);var n=this._consumeRawText(!1,Ui,function(){return e._attemptStr("->")});this._beginToken(Ks.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(Ks.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,os,function(){return e._attemptStr("]>")});this._beginToken(Ks.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(Ks.DOC_TYPE,t),this._attemptUntilChar(Ki),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t=this._index,e=null;this._peek!==qi&&!pt(this._peek);)this._advance();var n;this._peek===qi?(this._advance(),e=this._input.substring(t,this._index-1),n=this._index):n=t,this._requireCharCodeUntilFn(lt,this._index===n?1:0);var r=this._input.substring(n,this._index);return[e,r]},t.prototype._consumeTagOpen=function(t){var e,n,r=this._savePosition();try{if(!L(this._peek))throw this._createError(at(this._peek),this._getSpan());var o=this._index;for(this._consumeTagOpenStart(t),e=this._input.substring(o,this._index),n=e.toLowerCase(),this._attemptCharCodeUntilFn(ct);this._peek!==Bi&&this._peek!==Ki;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(ct),this._attemptCharCode(Wi)&&(this._attemptCharCodeUntilFn(ct),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(ct);this._consumeTagOpenEnd()}catch(e){if(e instanceof Ys)return this._restorePosition(r),this._beginToken(Ks.TEXT,t),void this._endToken(["<"]);throw e}var i=this._getTagDefinition(e).contentType;i===co.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):i===co.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var n=this,r=this._consumeRawText(e,Gi,function(){return!!n._attemptCharCode(Bi)&&(n._attemptCharCodeUntilFn(ct),!!n._attemptStrCaseInsensitive(t)&&(n._attemptCharCodeUntilFn(ct),n._attemptCharCode(Ki)))});this._beginToken(Ks.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(Ks.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(Ks.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){this._beginToken(Ks.ATTR_VALUE);var t;if(this._peek===Ni||this._peek===Oi){var e=this._peek;this._advance();for(var n=[];this._peek!==e;)n.push(this._readChar(!0));t=n.join(""),this._advance()}else{var r=this._index;this._requireCharCodeUntilFn(lt,1),t=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(Bi)?Ks.TAG_OPEN_END_VOID:Ks.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(Ki),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(Ks.TAG_CLOSE,t),this._attemptCharCodeUntilFn(ct);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(ct),this._requireCharCode(Ki),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(Ks.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(ms),this._endToken([]),this._expansionCaseStack.push(Ks.EXPANSION_FORM_START),this._beginToken(Ks.RAW_TEXT,this._getLocation());var t=this._readUntil(Fi);this._endToken([t],this._getLocation()),this._requireCharCode(Fi),this._attemptCharCodeUntilFn(ct),this._beginToken(Ks.RAW_TEXT,this._getLocation());var e=this._readUntil(Fi);this._endToken([e],this._getLocation()),this._requireCharCode(Fi),this._attemptCharCodeUntilFn(ct)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(Ks.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(ms).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(ct),this._beginToken(Ks.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(ms),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(ct),this._expansionCaseStack.push(Ks.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(Ks.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(_s),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(ct),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(Ks.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(_s),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(Ks.TEXT,t);var e=[];do this._interpolationConfig&&this._attemptStr(this._interpolationConfig.start)?(e.push(this._interpolationConfig.start),this._inInterpolation=!0):this._interpolationConfig&&this._inInterpolation&&this._attemptStr(this._interpolationConfig.end)?(e.push(this._interpolationConfig.end),this._inInterpolation=!1):e.push(this._readChar(!0));while(!this._isTextEnd());this._endToken([this._processCarriageReturns(e.join(""))])},t.prototype._isTextEnd=function(){if(this._peek===Gi||this._peek===wi)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(dt(this._input,this._index,this._interpolationConfig))return!0;if(this._peek===_s&&this._isInExpansionCase())return!0}return!1},t.prototype._savePosition=function(){return[this._peek,this._index,this._column,this._line,this.tokens.length]},t.prototype._readUntil=function(t){var e=this._index;return this._attemptUntilChar(t),this._input.substring(e,this._index)},t.prototype._restorePosition=function(t){this._peek=t[0],this._index=t[1],this._column=t[2],this._line=t[3];var e=t[4];e<this.tokens.length&&(this.tokens=this.tokens.slice(0,e))},t.prototype._isInExpansionCase=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Ks.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===Ks.EXPANSION_FORM_START},t}(),ta=function(t){function e(e,n,r){var o=t.call(this,n,r)||this;return o.elementName=e,o}return zr(e,t),e.create=function(t,n,r){return new e(t,n,r)},e}(Us),ea=function(){function t(t,e){this.rootNodes=t,this.errors=e}return t}(),na=function(){function t(t){this.getTagDefinition=t}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=Ss);var o=st(t,e,this.getTagDefinition,n,r),i=new ra(o.tokens,this.getTagDefinition).build();return new ea(i.rootNodes,o.errors.concat(i.errors))},t}(),ra=function(){function t(t,e){this.tokens=t,this.getTagDefinition=e,this._index=-1,this._rootNodes=[],this._errors=[],this._elementStack=[],this._advance()}return t.prototype.build=function(){for(;this._peek.type!==Ks.EOF;)this._peek.type===Ks.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===Ks.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===Ks.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===Ks.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===Ks.TEXT||this._peek.type===Ks.RAW_TEXT||this._peek.type===Ks.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===Ks.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new ea(this._rootNodes,this._errors)},t.prototype._advance=function(){var t=this._peek;return this._index<this.tokens.length-1&&this._index++,this._peek=this.tokens[this._index],t},t.prototype._advanceIf=function(t){return this._peek.type===t?this._advance():null},t.prototype._consumeCdata=function(t){this._consumeText(this._advance()),this._advanceIf(Ks.CDATA_END)},t.prototype._consumeComment=function(t){var e=this._advanceIf(Ks.RAW_TEXT);this._advanceIf(Ks.COMMENT_END);var n=null!=e?e.parts[0].trim():null;this._addToParent(new Ws(n,t.sourceSpan))},t.prototype._consumeExpansion=function(t){for(var e=this._advance(),n=this._advance(),r=[];this._peek.type===Ks.EXPANSION_CASE_VALUE;){var o=this._parseExpansionCase();if(!o)return;r.push(o)}if(this._peek.type!==Ks.EXPANSION_FORM_END)return void this._errors.push(ta.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '}'."));var i=new Vs(t.sourceSpan.start,this._peek.sourceSpan.end);this._addToParent(new Bs(e.parts[0],n.parts[0],r,i,e.sourceSpan)),this._advance()},t.prototype._parseExpansionCase=function(){var e=this._advance();if(this._peek.type!==Ks.EXPANSION_CASE_EXP_START)return this._errors.push(ta.create(null,this._peek.sourceSpan,"Invalid ICU message. Missing '{'.")),null;var n=this._advance(),r=this._collectExpansionExpTokens(n);if(!r)return null;var o=this._advance();r.push(new Qs(Ks.EOF,[],o.sourceSpan));var i=new t(r,this.getTagDefinition).build();if(i.errors.length>0)return this._errors=this._errors.concat(i.errors),null;var s=new Vs(e.sourceSpan.start,o.sourceSpan.end),a=new Vs(n.sourceSpan.start,o.sourceSpan.end);return new qs(e.parts[0],i.rootNodes,s,e.sourceSpan,a)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],n=[Ks.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==Ks.EXPANSION_FORM_START&&this._peek.type!==Ks.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===Ks.EXPANSION_CASE_EXP_END){if(!_t(n,Ks.EXPANSION_CASE_EXP_START))return this._errors.push(ta.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return e}if(this._peek.type===Ks.EXPANSION_FORM_END){if(!_t(n,Ks.EXPANSION_FORM_START))return this._errors.push(ta.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===Ks.EOF)return this._errors.push(ta.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;e.push(this._advance())}},t.prototype._consumeText=function(t){var e=t.parts[0];if(e.length>0&&"\n"==e[0]){var n=this._getParentElement();null!=n&&0==n.children.length&&this.getTagDefinition(n.name).ignoreFirstLf&&(e=e.substring(1))}e.length>0&&this._addToParent(new Hs(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){if(this._elementStack.length>0){var t=this._elementStack[this._elementStack.length-1];this.getTagDefinition(t.name).isVoid&&this._elementStack.pop()}},t.prototype._consumeStartTag=function(t){for(var e=t.parts[0],n=t.parts[1],r=[];this._peek.type===Ks.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(e,n,this._getParentElement()),s=!1;if(this._peek.type===Ks.TAG_OPEN_END_VOID){this._advance(),s=!0;var a=this.getTagDefinition(i);a.canSelfClose||null!==o(i)||a.isVoid||this._errors.push(ta.create(i,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===Ks.TAG_OPEN_END&&(this._advance(),s=!1);var u=this._peek.sourceSpan.start,c=new Vs(t.sourceSpan.start,u),l=new Gs(i,r,[],c,c,null);this._pushElement(l),s&&(this._popElement(i),l.endSourceSpan=c)},t.prototype._pushElement=function(t){if(this._elementStack.length>0){var e=this._elementStack[this._elementStack.length-1];this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop()}var n=this.getTagDefinition(t.name),r=this._getParentElementSkippingContainers(),o=r.parent,i=r.container;if(o&&n.requireExtraParent(o.name)){var s=new Gs(n.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(o,i,s)}this._addToParent(t),this._elementStack.push(t)},t.prototype._consumeEndTag=function(t){var e=this._getElementFullName(t.parts[0],t.parts[1],this._getParentElement());if(this._getParentElement()&&(this._getParentElement().endSourceSpan=t.sourceSpan),this.getTagDefinition(e).isVoid)this._errors.push(ta.create(e,t.sourceSpan,'Void elements do not have end tags "'+t.parts[1]+'"'));else if(!this._popElement(e)){var n='Unexpected closing tag "'+e+'". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags';this._errors.push(ta.create(e,t.sourceSpan,n))}},t.prototype._popElement=function(t){for(var e=this._elementStack.length-1;e>=0;e--){var n=this._elementStack[e];if(n.name==t)return this._elementStack.splice(e,this._elementStack.length-e),!0;if(!this.getTagDefinition(n.name).closedByParent)return!1}return!1},t.prototype._consumeAttr=function(t){var e,n=i(t.parts[0],t.parts[1]),r=t.sourceSpan.end,o="";if(this._peek.type===Ks.ATTR_VALUE){var s=this._advance();o=s.parts[0],r=s.sourceSpan.end,e=s.sourceSpan}return new zs(n,o,new Vs(t.sourceSpan.start,r),e)},t.prototype._getParentElement=function(){return this._elementStack.length>0?this._elementStack[this._elementStack.length-1]:null},t.prototype._getParentElementSkippingContainers=function(){for(var t=null,e=this._elementStack.length-1;e>=0;e--){if("ng-container"!==this._elementStack[e].name)return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:this._elementStack[this._elementStack.length-1],container:t}},t.prototype._addToParent=function(t){var e=this._getParentElement();null!=e?e.children.push(t):this._rootNodes.push(t)},t.prototype._insertBeforeContainer=function(t,e,n){if(e){if(t){var r=t.children.indexOf(e);t.children[r]=n}else this._rootNodes.push(n);n.children.push(e),this._elementStack.splice(this._elementStack.indexOf(e),0,n)}else this._addToParent(n),this._elementStack.push(n)},t.prototype._getElementFullName=function(t,e,n){return null==t&&(t=this.getTagDefinition(e).implicitNamespacePrefix,null==t&&null!=n&&(t=o(n.name))),i(t,e)},t}(),oa=function(){function t(t,e,n,r,o,i){this.nodes=t,this.placeholders=e,this.placeholderToMessage=n,this.meaning=r,this.description=o,this.id=i}return t}(),ia=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),sa=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),aa=function(){function t(t,e,n,r){this.expression=t,this.type=e,this.cases=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitIcu(this,e)},t}(),ua=function(){function t(t,e,n,r,o,i,s){this.tag=t,this.attrs=e,this.startName=n,this.closeName=r,this.children=o,this.isVoid=i,this.sourceSpan=s}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),ca=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitPlaceholder(this,e)},t}(),la=function(){function t(t,e,n){this.value=t,this.name=e,this.sourceSpan=n}return t.prototype.visit=function(t,e){return t.visitIcuPlaceholder(this,e)},t}(),pa=function(){function t(){}return t.prototype.visitText=function(t,e){return new ia(t.value,t.sourceSpan)},t.prototype.visitContainer=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new sa(r,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var n=this,r={};Object.keys(t.cases).forEach(function(o){return r[o]=t.cases[o].visit(n,e)});var o=new aa(t.expression,t.type,r,t.sourceSpan);return o.expressionPlaceholder=t.expressionPlaceholder,o},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new ua(t.tag,t.attrs,t.startName,t.closeName,r,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t,e){return new ca(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t,e){return new la(t.value,t.name,t.sourceSpan)},t}(),ha=function(){function t(){}return t.prototype.visitText=function(t,e){},t.prototype.visitContainer=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitIcu=function(t,e){var n=this;Object.keys(t.cases).forEach(function(e){t.cases[e].visit(n)})},t.prototype.visitTagPlaceholder=function(t,e){var n=this;t.children.forEach(function(t){return t.visit(n)})},t.prototype.visitPlaceholder=function(t,e){},t.prototype.visitIcuPlaceholder=function(t,e){},t}(),fa={A:"LINK",B:"BOLD_TEXT",BR:"LINE_BREAK",EM:"EMPHASISED_TEXT",H1:"HEADING_LEVEL1",H2:"HEADING_LEVEL2",H3:"HEADING_LEVEL3",H4:"HEADING_LEVEL4",H5:"HEADING_LEVEL5",H6:"HEADING_LEVEL6",HR:"HORIZONTAL_RULE",I:"ITALIC_TEXT",LI:"LIST_ITEM",LINK:"MEDIA_LINK",OL:"ORDERED_LIST",P:"PARAGRAPH",Q:"QUOTATION",S:"STRIKETHROUGH_TEXT",SMALL:"SMALL_TEXT",SUB:"SUBSTRIPT",SUP:"SUPERSCRIPT",TBODY:"TABLE_BODY",TD:"TABLE_CELL",TFOOT:"TABLE_FOOTER",TH:"TABLE_HEADER_CELL",THEAD:"TABLE_HEADER",TR:"TABLE_ROW",TT:"MONOSPACED_TEXT",U:"UNDERLINED_TEXT",UL:"UNORDERED_LIST"},da=function(){function t(){this._placeHolderNameCounts={},this._signatureToName={}}return t.prototype.getStartTagPlaceholderName=function(t,e,n){var r=this._hashTag(t,e,n);if(this._signatureToName[r])return this._signatureToName[r];var o=t.toUpperCase(),i=fa[o]||"TAG_"+o,s=this._generateUniqueName(n?i:"START_"+i);return this._signatureToName[r]=s,s},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var n=t.toUpperCase(),r=fa[n]||"TAG_"+n,o=this._generateUniqueName("CLOSE_"+r);return this._signatureToName[e]=o,o},t.prototype.getPlaceholderName=function(t,e){var n=t.toUpperCase(),r="PH: "+n+"="+e;if(this._signatureToName[r])return this._signatureToName[r];var o=this._generateUniqueName(n);return this._signatureToName[r]=o,o},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,n){var r="<"+t,o=Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join(""),i=n?"/>":"></"+t+">";return r+o+i},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){var e=this._placeHolderNameCounts.hasOwnProperty(t);if(!e)return this._placeHolderNameCounts[t]=1,t;var n=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=n+1,t+"_"+n},t}(),va=new Is(new Ts),ya=function(){function t(t,e){this._expressionParser=t,this._interpolationConfig=e}return t.prototype.toI18nMessage=function(t,e,n,r){this._isIcu=1==t.length&&t[0]instanceof Bs,this._icuDepth=0,this._placeholderRegistry=new da,this._placeholderToContent={},this._placeholderToMessage={};var o=it(this,t,{});return new oa(o,this._placeholderToContent,this._placeholderToMessage,e,n,r)},t.prototype.visitElement=function(t,e){var n=it(this,t.children),r={};t.attrs.forEach(function(t){r[t.name]=t.value});var o=s(t.name).isVoid,i=this._placeholderRegistry.getStartTagPlaceholderName(t.name,r,o);this._placeholderToContent[i]=t.sourceSpan.toString();var a="";return o||(a=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[a]="</"+t.name+">"),new ua(t.name,r,i,a,n,o,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){return this._visitTextWithInterpolation(t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitExpansion=function(e,n){var r=this;this._icuDepth++;var o={},i=new aa(e.switchValue,e.type,o,e.sourceSpan);if(e.cases.forEach(function(t){o[t.value]=new sa(t.expression.map(function(t){return t.visit(r,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var s=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return i.expressionPlaceholder=s,this._placeholderToContent[s]=e.switchValue,i}var a=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),u=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[a]=u.toI18nMessage([e],"","",""),new la(i,a,e.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Unreachable code")},t.prototype._visitTextWithInterpolation=function(t,e){var n=this._expressionParser.splitInterpolation(t,e.start.toString(),this._interpolationConfig);if(!n)return new ia(t,e);for(var r=[],o=new sa(r,e),i=this._interpolationConfig,s=i.start,a=i.end,u=0;u<n.strings.length-1;u++){var c=n.expressions[u],l=wt(c)||"INTERPOLATION",p=this._placeholderRegistry.getPlaceholderName(l,c);n.strings[u].length&&r.push(new ia(n.strings[u],e)),r.push(new ca(c,p,e)),this._placeholderToContent[p]=s+c+a}var h=n.strings.length-1;return n.strings[h].length&&r.push(new ia(n.strings[h],e)),o},t}(),ma=/\/\/[\s\S]*i18n[\s\S]*\([\s\S]*ph[\s\S]*=[\s\S]*"([\s\S]*?)"[\s\S]*\)/g,ga=function(t){function e(e,n){return t.call(this,e,n)||this}return zr(e,t),e}(Us),_a="i18n",ba="i18n-",wa=/^i18n:?/,Ca="|",Ea="@@",Sa=function(){function t(t,e){this.messages=t,this.errors=e}return t}(),xa={};xa.Extract=0,xa.Merge=1,xa[xa.Extract]="Extract",xa[xa.Merge]="Merge";var Pa=function(){function t(t,e){this._implicitTags=t,this._implicitAttrs=e}return t.prototype.extract=function(t,e){var n=this;return this._init(xa.Extract,e),t.forEach(function(t){return t.visit(n,null)}),this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new Sa(this._messages,this._errors)},t.prototype.merge=function(t,e,n){this._init(xa.Merge,n),this._translations=e;var r=new Gs("wrapper",[],t,null,null,null),o=r.visit(this,null);return this._inI18nBlock&&this._reportError(t[t.length-1],"Unclosed block"),new ea(o.children,this._errors)},t.prototype.visitExpansionCase=function(t,e){var n=it(this,t.expression,e);if(this._mode===xa.Merge)return new qs(t.value,n,t.sourceSpan,t.valueSourceSpan,t.expSourceSpan)},t.prototype.visitExpansion=function(t,e){this._mayBeAddBlockChildren(t);var n=this._inIcu;this._inIcu||(this._isInTranslatableSection&&this._addMessage([t]),this._inIcu=!0);var r=it(this,t.cases,e);return this._mode===xa.Merge&&(t=new Bs(t.switchValue,t.type,r,t.sourceSpan,t.switchValueSourceSpan)),this._inIcu=n,t},t.prototype.visitComment=function(t,e){var n=St(t);if(n&&this._isInTranslatableSection)return void this._reportError(t,"Could not start a block inside a translatable section");var r=xt(t);if(r&&!this._inI18nBlock)return void this._reportError(t,"Trying to close an unopened block");if(!this._inI18nNode&&!this._inIcu)if(this._inI18nBlock){if(r){if(this._depth==this._blockStartDepth){this._closeTranslatableSection(t,this._blockChildren),
  this._inI18nBlock=!1;var o=this._addMessage(this._blockChildren,this._blockMeaningAndDesc),i=this._translateMessage(t,o);return it(this,i)}return void this._reportError(t,"I18N blocks should not cross element boundaries")}}else n&&(this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(wa,"").trim(),this._openTranslatableSection(t))},t.prototype.visitText=function(t,e){return this._isInTranslatableSection&&this._mayBeAddBlockChildren(t),t},t.prototype.visitElement=function(t,e){var n=this;this._mayBeAddBlockChildren(t),this._depth++;var r,o=this._inI18nNode,i=this._inImplicitNode,s=[],a=Pt(t),u=a?a.value:"",c=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,l=!i&&c;if(this._inImplicitNode=i||c,this._isInTranslatableSection||this._inIcu)(a||l)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==xa.Extract&&it(this,t.children);else{if(a||l){this._inI18nNode=!0;var p=this._addMessage(t.children,u);r=this._translateMessage(t,p)}if(this._mode==xa.Extract){var h=a||l;h&&this._openTranslatableSection(t),it(this,t.children),h&&this._closeTranslatableSection(t,t.children)}}if(this._mode===xa.Merge){var f=r||t.children;f.forEach(function(t){var r=t.visit(n,e);r&&!n._isInTranslatableSection&&(s=s.concat(r))})}if(this._visitAttributesOf(t),this._depth--,this._inI18nNode=o,this._inImplicitNode=i,this._mode===xa.Merge){var d=this._translateAttributes(t);return new Gs(t.name,d,s,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}},t.prototype.visitAttribute=function(t,e){throw new Error("unreachable code")},t.prototype._init=function(t,e){this._mode=t,this._inI18nBlock=!1,this._inI18nNode=!1,this._depth=0,this._inIcu=!1,this._msgCountAtSectionStart=void 0,this._errors=[],this._messages=[],this._inImplicitNode=!1,this._createI18nMessage=bt(e)},t.prototype._visitAttributesOf=function(t){var e=this,n={},r=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith(ba)}).forEach(function(t){return n[t.name.slice(ba.length)]=t.value}),t.attrs.forEach(function(t){t.name in n?e._addMessage([t],n[t.name]):r.some(function(e){return t.name===e})&&e._addMessage([t])})},t.prototype._addMessage=function(t,e){if(!(0==t.length||1==t.length&&t[0]instanceof zs&&!t[0].value)){var n=Tt(e),r=n.meaning,o=n.description,i=n.id,s=this._createI18nMessage(t,r,o,i);return this._messages.push(s),s}},t.prototype._translateMessage=function(t,e){if(e&&this._mode===xa.Merge){var n=this._translations.get(e);if(n)return n;this._reportError(t,'Translation unavailable for message id="'+this._translations.digest(e)+'"')}return[]},t.prototype._translateAttributes=function(t){var e=this,n=t.attrs,r={};n.forEach(function(t){t.name.startsWith(ba)&&(r[t.name.slice(ba.length)]=Tt(t.value))});var o=[];return n.forEach(function(n){if(n.name!==_a&&!n.name.startsWith(ba))if(n.value&&""!=n.value&&r.hasOwnProperty(n.name)){var i=r[n.name],s=i.meaning,a=i.description,u=i.id,c=e._createI18nMessage([n],s,a,u),l=e._translations.get(c);if(l)if(0==l.length)o.push(new zs(n.name,"",n.sourceSpan));else if(l[0]instanceof Hs){var p=l[0].value;o.push(new zs(n.name,p,n.sourceSpan))}else e._reportError(t,'Unexpected translation for attribute "'+n.name+'" (id="'+(u||e._translations.digest(c))+'")');else e._reportError(t,'Translation unavailable for attribute "'+n.name+'" (id="'+(u||e._translations.digest(c))+'")')}else o.push(n)}),o},t.prototype._mayBeAddBlockChildren=function(t){this._inI18nBlock&&!this._inIcu&&this._depth==this._blockStartDepth&&this._blockChildren.push(t)},t.prototype._openTranslatableSection=function(t){this._isInTranslatableSection?this._reportError(t,"Unexpected section start"):this._msgCountAtSectionStart=this._messages.length},Object.defineProperty(t.prototype,"_isInTranslatableSection",{get:function(){return void 0!==this._msgCountAtSectionStart},enumerable:!0,configurable:!0}),t.prototype._closeTranslatableSection=function(t,e){if(!this._isInTranslatableSection)return void this._reportError(t,"Unexpected section end");var n=this._msgCountAtSectionStart,r=e.reduce(function(t,e){return t+(e instanceof Ws?0:1)},0);if(1==r)for(var o=this._messages.length-1;o>=n;o--){var i=this._messages[o].nodes;if(!(1==i.length&&i[0]instanceof ia)){this._messages.splice(o,1);break}}this._msgCountAtSectionStart=void 0},t.prototype._reportError=function(t,e){this._errors.push(new ga(t.sourceSpan,e))},t}(),Ta=function(){function t(){this.closedByParent=!1,this.contentType=co.PARSABLE_DATA,this.isVoid=!1,this.ignoreFirstLf=!1,this.canSelfClose=!0}return t.prototype.requireExtraParent=function(t){return!1},t.prototype.isClosedByChild=function(t){return!1},t}(),Aa=new Ta,Oa=function(t){function e(){return t.call(this,At)||this}return zr(e,t),e.prototype.parse=function(e,n,r){return void 0===r&&(r=!1),t.prototype.parse.call(this,e,n,r,null)},e}(na),Ma=function(){function t(){}return t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var n=this;return"["+t.children.map(function(t){return t.visit(n)}).join(", ")+"]"},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.expression+", "+t.type+", "+r.join(", ")+"}"},t.prototype.visitTagPlaceholder=function(t,e){var n=this;return t.isVoid?'<ph tag name="'+t.startName+'"/>':'<ph tag name="'+t.startName+'">'+t.children.map(function(t){return t.visit(n)}).join(", ")+'</ph name="'+t.closeName+'">'},t.prototype.visitPlaceholder=function(t,e){return t.value?'<ph name="'+t.name+'">'+t.value+"</ph>":'<ph name="'+t.name+'"/>'},t.prototype.visitIcuPlaceholder=function(t,e){return'<ph icu name="'+t.name+'">'+t.value.visit(this)+"</ph>"},t}(),Ra=new Ma,ka=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),e.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"});return"{"+t.type+", "+r.join(", ")+"}"},e}(Ma),Ia={};Ia.Little=0,Ia.Big=1,Ia[Ia.Little]="Little",Ia[Ia.Big]="Big";var Na=function(){function t(){}return t.prototype.write=function(t,e){},t.prototype.load=function(t,e){},t.prototype.digest=function(t){},t.prototype.createNameMapper=function(t){return null},t}(),Da=function(t){function e(e,n){var r=t.call(this)||this;return r.mapName=n,r.internalToPublic={},r.publicToNextId={},r.publicToInternal={},e.nodes.forEach(function(t){return t.visit(r)}),r}return zr(e,t),e.prototype.toPublicName=function(t){return this.internalToPublic.hasOwnProperty(t)?this.internalToPublic[t]:null},e.prototype.toInternalName=function(t){return this.publicToInternal.hasOwnProperty(t)?this.publicToInternal[t]:null},e.prototype.visitText=function(t,e){return null},e.prototype.visitTagPlaceholder=function(e,n){this.visitPlaceholderName(e.startName),t.prototype.visitTagPlaceholder.call(this,e,n),this.visitPlaceholderName(e.closeName)},e.prototype.visitPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitIcuPlaceholder=function(t,e){this.visitPlaceholderName(t.name)},e.prototype.visitPlaceholderName=function(t){if(t&&!this.internalToPublic.hasOwnProperty(t)){var e=this.mapName(t);if(this.publicToInternal.hasOwnProperty(e)){var n=this.publicToNextId[e];this.publicToNextId[e]=n+1,e=e+"_"+n}else this.publicToNextId[e]=1;this.internalToPublic[t]=e,this.publicToInternal[e]=t}},e}(ha),ja=function(){function t(){}return t.prototype.visitTag=function(t){var e=this,n=this._serializeAttributes(t.attrs);if(0==t.children.length)return"<"+t.name+n+"/>";var r=t.children.map(function(t){return t.visit(e)});return"<"+t.name+n+">"+r.join("")+"</"+t.name+">"},t.prototype.visitText=function(t){return t.value},t.prototype.visitDeclaration=function(t){return"<?xml"+this._serializeAttributes(t.attrs)+" ?>"},t.prototype._serializeAttributes=function(t){var e=Object.keys(t).map(function(e){return e+'="'+t[e]+'"'}).join(" ");return e.length>0?" "+e:""},t.prototype.visitDoctype=function(t){return"<!DOCTYPE "+t.rootTag+" [\n"+t.dtd+"\n]>"},t}(),La=new ja,Va=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(n){e.attrs[n]=te(t[n])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),Fa=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),Ua=function(){function t(t,e,n){void 0===e&&(e={}),void 0===n&&(n=[]);var r=this;this.name=t,this.children=n,this.attrs={},Object.keys(e).forEach(function(t){r.attrs[t]=te(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),Ha=function(){function t(t){this.value=te(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),Ba=function(t){function e(e){return void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))||this}return zr(e,t),e}(Ha),qa=[[/&/g,"&amp;"],[/"/g,"&quot;"],[/'/g,"&apos;"],[/</g,"&lt;"],[/>/g,"&gt;"]],za="1.2",Ga="urn:oasis:names:tc:xliff:document:1.2",Wa="en",Ka="x",Qa="file",Xa="source",$a="target",Za="trans-unit",Ya=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),e.prototype.write=function(t,e){var n=new Ja,r=[];t.forEach(function(t){var e=new Ua(Za,{id:t.id,datatype:"html"});e.children.push(new Ba(8),new Ua(Xa,{},n.serialize(t.nodes)),new Ba(8),new Ua($a)),t.description&&e.children.push(new Ba(8),new Ua("note",{priority:"1",from:"description"},[new Ha(t.description)])),t.meaning&&e.children.push(new Ba(8),new Ua("note",{priority:"1",from:"meaning"},[new Ha(t.meaning)])),e.children.push(new Ba(6)),r.push(new Ba(6),e)});var o=new Ua("body",{},r.concat([new Ba(4)])),i=new Ua("file",{"source-language":e||Wa,datatype:"plaintext",original:"ng2.template"},[new Ba(4),o,new Ba(2)]),s=new Ua("xliff",{version:za,xmlns:Ga},[new Ba(2),i,new Ba]);return Jt([new Va({version:"1.0",encoding:"UTF-8"}),new Ba,s,new Ba])},e.prototype.load=function(t,e){var n=new tu,r=n.parse(t,e),o=r.locale,i=r.mlNodesByMsgId,s=r.errors,a={},u=new eu;if(Object.keys(i).forEach(function(t){var e=u.convert(i[t]),n=e.i18nNodes,r=e.errors;s.push.apply(s,r),a[t]=n}),s.length)throw new Error("xliff parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Ot(t)},e}(Na),Ja=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ha(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){if(this._isInIcu)throw new Error("xliff does not support nested ICU messages");this._isInIcu=!0;var n=[];return this._isInIcu=!1,n},t.prototype.visitTagPlaceholder=function(t,e){var n=ee(t.tag),r=new Ua(Ka,{id:t.startName,ctype:n});if(t.isVoid)return[r];var o=new Ua(Ka,{id:t.closeName,ctype:n});return[r].concat(this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t,e){return[new Ua(Ka,{id:t.name})]},t.prototype.visitIcuPlaceholder=function(t,e){return[new Ua(Ka,{id:t.name})]},t.prototype.serialize=function(t){var e=this;return this._isInIcu=!1,[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),tu=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlNodes=[],this._mlNodesByMsgId={};var n=(new Oa).parse(t,e,!1);return this._errors=n.errors,it(this,n.rootNodes,null),{mlNodesByMsgId:this._mlNodesByMsgId,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case Za:this._unitMlNodes=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._mlNodesByMsgId.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(it(this,t.children,null),this._unitMlNodes?this._mlNodesByMsgId[r]=this._unitMlNodes:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,"<"+Za+'> misses the "id" attribute');break;case Xa:break;case $a:this._unitMlNodes=t.children;break;case Qa:var o=t.attrs.find(function(t){return"target-language"===t.name});o&&(this._locale=o.value),it(this,t.children,null);break;default:it(this,t.children,null)}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ga(t.sourceSpan,e))},t}(),eu=function(){function t(){}return t.prototype.convert=function(t){return this._errors=[],{i18nNodes:it(this,t),errors:this._errors}},t.prototype.visitText=function(t,e){return new ia(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){if(t.name===Ka){var n=t.attrs.find(function(t){return"id"===t.name});if(n)return new ca("",n.value,t.sourceSpan);this._addError(t,"<"+Ka+'> misses the "id" attribute')}else this._addError(t,"Unexpected tag")},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ga(t.sourceSpan,e))},t}(),nu="messagebundle",ru="msg",ou="ph",iu="ex",su='<!ELEMENT messagebundle (msg)*>\n<!ATTLIST messagebundle class CDATA #IMPLIED>\n\n<!ELEMENT msg (#PCDATA|ph|source)*>\n<!ATTLIST msg id CDATA #IMPLIED>\n<!ATTLIST msg seq CDATA #IMPLIED>\n<!ATTLIST msg name CDATA #IMPLIED>\n<!ATTLIST msg desc CDATA #IMPLIED>\n<!ATTLIST msg meaning CDATA #IMPLIED>\n<!ATTLIST msg obsolete (obsolete) #IMPLIED>\n<!ATTLIST msg xml:space (default|preserve) "default">\n<!ATTLIST msg is_hidden CDATA #IMPLIED>\n\n<!ELEMENT source (#PCDATA)>\n\n<!ELEMENT ph (#PCDATA|ex)*>\n<!ATTLIST ph name CDATA #REQUIRED>\n\n<!ELEMENT ex (#PCDATA)>',au=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),e.prototype.write=function(t,e){var n=new cu,r=new uu,o=new Ua(nu);return t.forEach(function(t){var e={id:t.id};t.description&&(e.desc=t.description),t.meaning&&(e.meaning=t.meaning),o.children.push(new Ba(2),new Ua(ru,e,r.serialize(t.nodes)))}),o.children.push(new Ba),Jt([new Va({version:"1.0",encoding:"UTF-8"}),new Ba,new Fa(nu,su),new Ba,n.addDefaultExamples(o),new Ba])},e.prototype.load=function(t,e){throw new Error("Unsupported")},e.prototype.digest=function(t){return ne(t)},e.prototype.createNameMapper=function(t){return new Da(t,re)},e}(Na),uu=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ha(t.value)]},t.prototype.visitContainer=function(t,e){var n=this,r=[];return t.children.forEach(function(t){return r.push.apply(r,t.visit(n))}),r},t.prototype.visitIcu=function(t,e){var n=this,r=[new Ha("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Ha(e+" {")].concat(t.cases[e].visit(n),[new Ha("} ")]))}),r.push(new Ha("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=new Ua(iu,{},[new Ha("<"+t.tag+">")]),r=new Ua(ou,{name:t.startName},[n]);if(t.isVoid)return[r];var o=new Ua(iu,{},[new Ha("</"+t.tag+">")]),i=new Ua(ou,{name:t.closeName},[o]);return[r].concat(this.serialize(t.children),[i])},t.prototype.visitPlaceholder=function(t,e){return[new Ua(ou,{name:t.name})]},t.prototype.visitIcuPlaceholder=function(t,e){return[new Ua(ou,{name:t.name})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),cu=function(){function t(){}return t.prototype.addDefaultExamples=function(t){return t.visit(this),t},t.prototype.visitTag=function(t){var e=this;if(t.name===ou){if(!t.children||0==t.children.length){var n=new Ha(t.attrs.name||"...");t.children=[new Ua(iu,{},[n])]}}else t.children&&t.children.forEach(function(t){return t.visit(e)})},t.prototype.visitText=function(t){},t.prototype.visitDeclaration=function(t){},t.prototype.visitDoctype=function(t){},t}(),lu="translationbundle",pu="translation",hu="ph",fu=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),e.prototype.write=function(t,e){throw new Error("Unsupported")},e.prototype.load=function(t,e){var n=new du,r=n.parse(t,e),o=r.locale,i=r.msgIdToHtml,s=r.errors,a={},u=new vu;if(Object.keys(i).forEach(function(t){var n=function(){var n=u.convert(i[t],e),r=n.i18nNodes,o=n.errors;if(o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return r};oe(a,t,n)}),s.length)throw new Error("xtb parse errors:\n"+s.join("\n"));return{locale:o,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return ne(t)},e.prototype.createNameMapper=function(t){return new Da(t,re)},e}(Na),du=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._msgIdToHtml={};var n=(new Oa).parse(t,e,!1);return this._errors=n.errors,it(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case lu:this._bundleDepth++,this._bundleDepth>1&&this._addError(t,"<"+lu+"> elements can not be nested");var n=t.attrs.find(function(t){return"lang"===t.name});n&&(this._locale=n.value),it(this,t.children,null),this._bundleDepth--;break;case pu:var r=t.attrs.find(function(t){return"id"===t.name});if(r){var o=r.value;if(this._msgIdToHtml.hasOwnProperty(o))this._addError(t,"Duplicated translations for msg "+o);else{var i=t.startSourceSpan.end.offset,s=t.endSourceSpan.start.offset,a=t.startSourceSpan.start.file.content,u=a.slice(i,s);this._msgIdToHtml[o]=u}}else this._addError(t,"<"+pu+'> misses the "id" attribute');break;default:this._addError(t,"Unexpected tag")}},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){},t.prototype.visitExpansionCase=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ga(t.sourceSpan,e))},t}(),vu=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Oa).parse(t,e,!0);this._errors=n.errors;var r=this._errors.length>0||0==n.rootNodes.length?[]:it(this,n.rootNodes);return{i18nNodes:r,errors:this._errors}},t.prototype.visitText=function(t,e){return new ia(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){var n={};return it(this,t.cases).forEach(function(e){n[e.value]=new sa(e.nodes,t.sourceSpan)}),new aa(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:it(this,t.expression)}},t.prototype.visitElement=function(t,e){if(t.name===hu){var n=t.attrs.find(function(t){return"name"===t.name});if(n)return new ca("",n.value,t.sourceSpan);this._addError(t,"<"+hu+'> misses the "name" attribute')}else this._addError(t,"Unexpected tag")},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new ga(t.sourceSpan,e))},t}(),yu=function(t){function e(){return t.call(this,s)||this}return zr(e,t),e.prototype.parse=function(e,n,r,o){return void 0===r&&(r=!1),void 0===o&&(o=Ss),t.prototype.parse.call(this,e,n,r,o)},e}(na);yu.decorators=[{type:F}],yu.ctorParameters=function(){return[]};var mu=function(){function t(t,n,r,o,i,s){void 0===t&&(t={}),void 0===i&&(i=e.MissingTranslationStrategy.Warning),this._i18nNodesByMsgId=t,this.digest=r,this.mapperFactory=o,this._i18nToHtml=new gu(t,n,r,o,i,s)}return t.load=function(e,n,r,o,i){var s=r.load(e,n),a=s.locale,u=s.i18nNodesByMsgId,c=function(t){return r.digest(t)},l=function(t){return r.createNameMapper(t)};return new t(u,a,c,l,o,i)},t.prototype.get=function(t){var e=this._i18nToHtml.convert(t);if(e.errors.length)throw new Error(e.errors.join("\n"));return e.nodes},t.prototype.has=function(t){return this.digest(t)in this._i18nNodesByMsgId},t}(),gu=function(){function t(t,e,n,r,o,i){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._locale=e,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=o,this._console=i,this._contextStack=[],this._errors=[]}return t.prototype.convert=function(t){this._contextStack.length=0,this._errors.length=0;var e=this._convertToText(t),n=t.nodes[0].sourceSpan.start.file.url,r=(new yu).parse(e,n,!0);return{nodes:r.rootNodes,errors:this._errors.concat(r.errors)}},t.prototype.visitText=function(t,e){return t.value},t.prototype.visitContainer=function(t,e){var n=this;return t.children.map(function(t){return t.visit(n)}).join("")},t.prototype.visitIcu=function(t,e){var n=this,r=Object.keys(t.cases).map(function(e){return e+" {"+t.cases[e].visit(n)+"}"}),o=this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression;return"{"+o+", "+t.type+", "+r.join(" ")+"}"},t.prototype.visitPlaceholder=function(t,e){var n=this._mapper(t.name);return this._srcMsg.placeholders.hasOwnProperty(n)?this._srcMsg.placeholders[n]:this._srcMsg.placeholderToMessage.hasOwnProperty(n)?this._convertToText(this._srcMsg.placeholderToMessage[n]):(this._addError(t,'Unknown placeholder "'+t.name+'"'),"")},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=""+t.tag,o=Object.keys(t.attrs).map(function(e){return e+'="'+t.attrs[e]+'"'}).join(" ");if(t.isVoid)return"<"+r+" "+o+"/>";var i=t.children.map(function(t){return t.visit(n)}).join("");return"<"+r+" "+o+">"+i+"</"+r+">"},t.prototype.visitIcuPlaceholder=function(t,e){return this._convertToText(this._srcMsg.placeholderToMessage[t.name])},t.prototype._convertToText=function(t){var n,r=this,o=this._digest(t),i=this._mapperFactory?this._mapperFactory(t):null;if(this._contextStack.push({msg:this._srcMsg,mapper:this._mapper}),this._srcMsg=t,this._i18nNodesByMsgId.hasOwnProperty(o))n=this._i18nNodesByMsgId[o],this._mapper=function(t){return i?i.toInternalName(t):t};else{if(this._missingTranslationStrategy===e.MissingTranslationStrategy.Error){var s=this._locale?' for locale "'+this._locale+'"':"";this._addError(t.nodes[0],'Missing translation for message "'+o+'"'+s)}else if(this._console&&this._missingTranslationStrategy===e.MissingTranslationStrategy.Warning){var s=this._locale?' for locale "'+this._locale+'"':"";this._console.warn('Missing translation for message "'+o+'"'+s)}n=t.nodes,this._mapper=function(t){return t}}var a=n.map(function(t){return t.visit(r)}).join(""),u=this._contextStack.pop();return this._srcMsg=u.msg,this._mapper=u.mapper,a},t.prototype._addError=function(t,e){this._errors.push(new ga(t.sourceSpan,e))},t}(),_u=function(){function t(t,n,r,o,i){if(void 0===o&&(o=e.MissingTranslationStrategy.Warning),this._htmlParser=t,n){var s=ie(r);this._translationBundle=mu.load(n,"i18n",s,o,i)}}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=Ss);var o=this._htmlParser.parse(t,e,n,r);return this._translationBundle?o.errors.length?new ea(o.rootNodes,o.errors):Et(o.rootNodes,this._translationBundle,r,[],{}):o},t}(),bu=se("core"),wu=function(){function t(){}return t}();wu.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleUrl:bu,runtime:e.ANALYZE_FOR_ENTRY_COMPONENTS},wu.ElementRef={name:"ElementRef",moduleUrl:bu,runtime:e.ElementRef},wu.NgModuleRef={name:"NgModuleRef",moduleUrl:bu,runtime:e.NgModuleRef},wu.ViewContainerRef={name:"ViewContainerRef",moduleUrl:bu,runtime:e.ViewContainerRef},wu.ChangeDetectorRef={name:"ChangeDetectorRef",moduleUrl:bu,runtime:e.ChangeDetectorRef},wu.QueryList={name:"QueryList",moduleUrl:bu,runtime:e.QueryList},wu.TemplateRef={name:"TemplateRef",moduleUrl:bu,runtime:e.TemplateRef},wu.CodegenComponentFactoryResolver={name:"ɵCodegenComponentFactoryResolver",moduleUrl:bu,runtime:e.ɵCodegenComponentFactoryResolver},wu.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleUrl:bu,runtime:e.ComponentFactoryResolver},wu.ComponentFactory={name:"ComponentFactory",moduleUrl:bu,runtime:e.ComponentFactory},wu.ComponentRef={name:"ComponentRef",moduleUrl:bu,runtime:e.ComponentRef},wu.NgModuleFactory={name:"NgModuleFactory",moduleUrl:bu,runtime:e.NgModuleFactory},wu.NgModuleInjector={name:"ɵNgModuleInjector",moduleUrl:bu,runtime:e.ɵNgModuleInjector},wu.RegisterModuleFactoryFn={name:"ɵregisterModuleFactory",moduleUrl:bu,runtime:e.ɵregisterModuleFactory},wu.Injector={name:"Injector",moduleUrl:bu,runtime:e.Injector},wu.ViewEncapsulation={name:"ViewEncapsulation",moduleUrl:bu,runtime:e.ViewEncapsulation},wu.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleUrl:bu,runtime:e.ChangeDetectionStrategy},wu.SecurityContext={name:"SecurityContext",moduleUrl:bu,runtime:e.SecurityContext},wu.LOCALE_ID={name:"LOCALE_ID",moduleUrl:bu,runtime:e.LOCALE_ID},wu.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleUrl:bu,runtime:e.TRANSLATIONS_FORMAT},wu.inlineInterpolate={name:"ɵinlineInterpolate",moduleUrl:bu,runtime:e.ɵinlineInterpolate},wu.interpolate={name:"ɵinterpolate",moduleUrl:bu,runtime:e.ɵinterpolate},wu.EMPTY_ARRAY={name:"ɵEMPTY_ARRAY",moduleUrl:bu,runtime:e.ɵEMPTY_ARRAY},wu.EMPTY_MAP={name:"ɵEMPTY_MAP",moduleUrl:bu,runtime:e.ɵEMPTY_MAP},wu.Renderer={name:"Renderer",moduleUrl:bu,runtime:e.Renderer},wu.viewDef={name:"ɵvid",moduleUrl:bu,runtime:e.ɵvid},wu.elementDef={name:"ɵeld",moduleUrl:bu,runtime:e.ɵeld},wu.anchorDef={name:"ɵand",moduleUrl:bu,runtime:e.ɵand},wu.textDef={name:"ɵted",moduleUrl:bu,runtime:e.ɵted},wu.directiveDef={name:"ɵdid",moduleUrl:bu,runtime:e.ɵdid},wu.providerDef={name:"ɵprd",moduleUrl:bu,runtime:e.ɵprd},wu.queryDef={name:"ɵqud",moduleUrl:bu,runtime:e.ɵqud},wu.pureArrayDef={name:"ɵpad",moduleUrl:bu,runtime:e.ɵpad},wu.pureObjectDef={name:"ɵpod",moduleUrl:bu,runtime:e.ɵpod},wu.purePipeDef={name:"ɵppd",moduleUrl:bu,runtime:e.ɵppd},wu.pipeDef={name:"ɵpid",moduleUrl:bu,runtime:e.ɵpid},wu.nodeValue={name:"ɵnov",moduleUrl:bu,runtime:e.ɵnov},wu.ngContentDef={name:"ɵncd",moduleUrl:bu,runtime:e.ɵncd},wu.unwrapValue={name:"ɵunv",moduleUrl:bu,runtime:e.ɵunv},wu.createRendererType2={name:"ɵcrt",moduleUrl:bu,runtime:e.ɵcrt},wu.RendererType2={name:"RendererType2",moduleUrl:bu,runtime:null},wu.ViewDefinition={name:"ɵViewDefinition",moduleUrl:bu,runtime:null},wu.createComponentFactory={name:"ɵccf",moduleUrl:bu,runtime:e.ɵccf};var Cu=["zero","one","two","few","many","other"],Eu=function(){function t(t,e,n){this.nodes=t,this.expanded=e,this.errors=n}return t}(),Su=function(t){function e(e,n){return t.call(this,e,n)||this}return zr(e,t),e}(Us),xu=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t,e){return new Gs(t.name,t.attrs,it(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return t},t.prototype.visitText=function(t,e){return t},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return this.isExpanded=!0,"plural"==t.type?he(t,this.errors):fe(t,this.errors)},t.prototype.visitExpansionCase=function(t,e){throw new Error("Should not be reached")},t}(),Pu=function(t){function e(e,n){return t.call(this,n,e)||this}return zr(e,t),e}(Us),Tu=function(){function t(t){var e=this;this.component=t,this.errors=[],this.viewQueries=ge(t),this.viewProviders=new Map,t.viewProviders.forEach(function(t){null==e.viewProviders.get(P(t.token))&&e.viewProviders.set(P(t.token),!0)})}return t}(),Au=function(){function t(t,e,n,r,o,i,s,a,u){var c=this;this.viewContext=t,this._parent=e,this._isViewRoot=n,this._directiveAsts=r,this._sourceSpan=u,this._transformedProviders=new Map,this._seenProviders=new Map,this._hasViewContainer=!1,this._queriedTokens=new Map,this._attrs={},o.forEach(function(t){return c._attrs[t.name]=t.value});var l=r.map(function(t){return t.directive});if(this._allProviders=ye(l,u,t.errors),this._contentQueries=_e(a,l),Array.from(this._allProviders.values()).forEach(function(t){c._addQueryReadsTo(t.token,t.token,c._queriedTokens)}),s){var p=le(wu.TemplateRef);this._addQueryReadsTo(p,p,this._queriedTokens)}i.forEach(function(t){var e=t.value||le(wu.ElementRef);c._addQueryReadsTo({value:t.name},e,c._queriedTokens)}),this._queriedTokens.get(ae(wu.ViewContainerRef))&&(this._hasViewContainer=!0),Array.from(this._allProviders.values()).forEach(function(t){var e=t.eager||c._queriedTokens.get(P(t.token));e&&c._getOrCreateLocalProvider(t.providerType,t.token,!0)})}return t.prototype.afterElement=function(){var t=this;Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.providerType,e.token,!1)})},Object.defineProperty(t.prototype,"transformProviders",{get:function(){return Array.from(this._transformedProviders.values())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedDirectiveAsts",{get:function(){var t=this.transformProviders.map(function(t){return t.token.identifier}),e=this._directiveAsts.slice();return e.sort(function(e,n){return t.indexOf(e.directive.type)-t.indexOf(n.directive.type)}),e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"transformedHasViewContainer",{get:function(){return this._hasViewContainer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryMatches",{get:function(){var t=[];return this._queriedTokens.forEach(function(e){t.push.apply(t,e)}),t},enumerable:!0,configurable:!0}),t.prototype._addQueryReadsTo=function(t,e,n){this._getQueriesFor(t).forEach(function(t){var r=t.meta.read||e,o=P(r),i=n.get(o);i||(i=[],n.set(o,i)),i.push({queryId:t.queryId,value:r})})},t.prototype._getQueriesFor=function(t){for(var e,n=[],r=this,o=0;null!==r;)e=r._contentQueries.get(P(t)),e&&n.push.apply(n,e.filter(function(t){return t.meta.descendants||o<=1})),r._directiveAsts.length>0&&o++,r=r._parent;return e=this.viewContext.viewQueries.get(P(t)),e&&n.push.apply(n,e),n},t.prototype._getOrCreateLocalProvider=function(t,e,n){var r=this,o=this._allProviders.get(P(e));if(!o||(t===oo.Directive||t===oo.PublicService)&&o.providerType===oo.PrivateService||(t===oo.PrivateService||t===oo.PublicService)&&o.providerType===oo.Builtin)return null;var i=this._transformedProviders.get(P(e));if(i)return i;if(null!=this._seenProviders.get(P(e)))return this.viewContext.errors.push(new Pu("Cannot instantiate cyclic dependency! "+x(e),this._sourceSpan)),null;this._seenProviders.set(P(e),!0);var s=o.providers.map(function(t){var e,i=t.useValue,s=t.useExisting;if(null!=t.useExisting){var a=r._getDependency(o.providerType,{token:t.useExisting},n);null!=a.token?s=a.token:(s=null,i=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;e=u.map(function(t){return r._getDependency(o.providerType,t,n)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;e=u.map(function(t){return r._getDependency(o.providerType,t,n)})}return de(t,{useExisting:s,useValue:i,deps:e})});return i=ve(o,{eager:n,providers:s}),this._transformedProviders.set(P(e),i),i},t.prototype._getLocalDependency=function(t,e,n){if(void 0===n&&(n=null),e.isAttribute){var r=this._attrs[e.token.value];return{isValue:!0,value:null==r?null:r}}if(null!=e.token){if(t===oo.Directive||t===oo.Component){if(P(e.token)===ae(wu.Renderer)||P(e.token)===ae(wu.ElementRef)||P(e.token)===ae(wu.ChangeDetectorRef)||P(e.token)===ae(wu.TemplateRef))return e;P(e.token)===ae(wu.ViewContainerRef)&&(this._hasViewContainer=!0)}if(P(e.token)===ae(wu.Injector))return e;if(null!=this._getOrCreateLocalProvider(t,e.token,n))return e}return null},t.prototype._getDependency=function(t,e,n){void 0===n&&(n=null);var r=this,o=n,i=null;if(e.isSkipSelf||(i=this._getLocalDependency(t,e,n)),e.isSelf)!i&&e.isOptional&&(i={isValue:!0,value:null});else{for(;!i&&r._parent;){var s=r;r=r._parent,s._isViewRoot&&(o=!1),i=r._getLocalDependency(oo.PublicService,e,o)}i||(i=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===P(e.token)||null!=this.viewContext.viewProviders.get(P(e.token))?e:e.isOptional?i={isValue:!0,value:null}:null)}return i||this.viewContext.errors.push(new Pu("No provider for "+x(e.token),this._sourceSpan)),i},t}(),Ou=function(){function t(t,e,n){
  var r=this;this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,t.transitiveModule.modules.forEach(function(t){var e={token:{identifier:t},useClass:t};me([e],oo.PublicService,!0,n,r._errors,r._allProviders)}),me(t.transitiveModule.providers.map(function(t){return t.provider}).concat(e),oo.PublicService,!1,n,this._errors,this._allProviders)}return t.prototype.parse=function(){var t=this;if(Array.from(this._allProviders.values()).forEach(function(e){t._getOrCreateLocalProvider(e.token,e.eager)}),this._errors.length>0){var e=this._errors.join("\n");throw new Error("Provider parse errors:\n"+e)}return Array.from(this._transformedProviders.values())},t.prototype._getOrCreateLocalProvider=function(t,e){var n=this,r=this._allProviders.get(P(t));if(!r)return null;var o=this._transformedProviders.get(P(t));if(o)return o;if(null!=this._seenProviders.get(P(t)))return this._errors.push(new Pu("Cannot instantiate cyclic dependency! "+x(t),r.sourceSpan)),null;this._seenProviders.set(P(t),!0);var i=r.providers.map(function(t){var o,i=t.useValue,s=t.useExisting;if(null!=t.useExisting){var a=n._getDependency({token:t.useExisting},e,r.sourceSpan);null!=a.token?s=a.token:(s=null,i=a.value)}else if(t.useFactory){var u=t.deps||t.useFactory.diDeps;o=u.map(function(t){return n._getDependency(t,e,r.sourceSpan)})}else if(t.useClass){var u=t.deps||t.useClass.diDeps;o=u.map(function(t){return n._getDependency(t,e,r.sourceSpan)})}return de(t,{useExisting:s,useValue:i,deps:o})});return o=ve(r,{eager:e,providers:i}),this._transformedProviders.set(P(t),o),o},t.prototype._getDependency=function(t,e,n){void 0===e&&(e=null);var r=!1;t.isSkipSelf||null==t.token||(P(t.token)===ae(wu.Injector)||P(t.token)===ae(wu.ComponentFactoryResolver)?r=!0:null!=this._getOrCreateLocalProvider(t.token,e)&&(r=!0));var o=t;return t.isSelf&&!r&&(t.isOptional?o={isValue:!0,value:null}:this._errors.push(new Pu("No provider for "+x(t.token),n))),o},t}(),Mu=function(){function t(){}return t.prototype.hasProperty=function(t,e,n){},t.prototype.hasElement=function(t,e){},t.prototype.securityContext=function(t,e,n){},t.prototype.allKnownElementNames=function(){},t.prototype.getMappedPropName=function(t){},t.prototype.getDefaultComponentElementName=function(){},t.prototype.validateProperty=function(t){},t.prototype.validateAttribute=function(t){},t.prototype.normalizeAnimationStyleProperty=function(t){},t.prototype.normalizeAnimationStyleValue=function(t,e,n){},t}(),Ru=function(){function t(t,e){this.style=t,this.styleUrls=e}return t}(),ku=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,Iu=/\/\*.+?\*\//g,Nu=/^([^:\/?#]+):/,Du=".",ju="attr",Lu="class",Vu="style",Fu="animate-",Uu={};Uu.DEFAULT=0,Uu.LITERAL_ATTR=1,Uu.ANIMATION=2,Uu[Uu.DEFAULT]="DEFAULT",Uu[Uu.LITERAL_ATTR]="LITERAL_ATTR",Uu[Uu.ANIMATION]="ANIMATION";var Hu=function(){function t(t,e,n,r){this.name=t,this.expression=e,this.type=n,this.sourceSpan=r}return Object.defineProperty(t.prototype,"isLiteral",{get:function(){return this.type===Uu.LITERAL_ATTR},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isAnimation",{get:function(){return this.type===Uu.ANIMATION},enumerable:!0,configurable:!0}),t}(),Bu=function(){function t(t,e,n,r,o){var i=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=n,this._targetErrors=o,this.pipesByName=new Map,this._usedPipes=new Map,r.forEach(function(t){return i.pipesByName.set(t.name,t)})}return t.prototype.getUsedPipes=function(){return Array.from(this._usedPipes.values())},t.prototype.createDirectiveHostPropertyAsts=function(t,e,n){var r=this;if(t.hostProperties){var o=[];return Object.keys(t.hostProperties).forEach(function(e){var i=t.hostProperties[e];"string"==typeof i?r.parsePropertyBinding(e,i,!0,n,[],o):r._reportError('Value of the host property binding "'+e+'" needs to be a string representing an expression but got "'+i+'" ('+typeof i+")",n)}),o.map(function(t){return r.createElementPropertyAst(e,t)})}},t.prototype.createDirectiveHostEventAsts=function(t,e){var n=this;if(t.hostListeners){var r=[];return Object.keys(t.hostListeners).forEach(function(o){var i=t.hostListeners[o];"string"==typeof i?n.parseEvent(o,i,e,[],r):n._reportError('Value of the host listener "'+o+'" needs to be a string representing an expression but got "'+i+'" ('+typeof i+")",e)}),r}},t.prototype.parseInterpolation=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseInterpolation(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),this._checkPipes(r,e),r}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype.parseInlineTemplateBinding=function(t,e,n,r,o,i){for(var s=this._parseTemplateBindings(t,e,n),a=0;a<s.length;a++){var u=s[a];u.keyIsVar?i.push(new Yr(u.key,u.name,n)):u.expression?this._parsePropertyAst(u.key,u.expression,n,r,o):(r.push([u.key,""]),this.parseLiteralAttr(u.key,null,n,r,o))}},t.prototype._parseTemplateBindings=function(t,e,n){var r=this,o=n.start.toString();try{var i=this._exprParser.parseTemplateBindings(t,e,o);return this._reportExpressionParserErrors(i.errors,n),i.templateBindings.forEach(function(t){t.expression&&r._checkPipes(t.expression,n)}),i.warnings.forEach(function(t){r._reportError(t,n,Fs.WARNING)}),i.templateBindings}catch(t){return this._reportError(""+t,n),[]}},t.prototype.parseLiteralAttr=function(t,e,n,r,o){Ee(t)?(t=t.substring(1),e&&this._reportError('Assigning animation triggers via @prop="exp" attributes with an expression is invalid. Use property bindings (e.g. [@prop]="exp") or use an attribute without a value (e.g. @prop) instead.',n,Fs.ERROR),this._parseAnimation(t,e,n,r,o)):o.push(new Hu(t,this._exprParser.wrapLiteralPrimitive(e,""),Uu.LITERAL_ATTR,n))},t.prototype.parsePropertyBinding=function(t,e,n,r,o,i){var s=!1;t.startsWith(Fu)?(s=!0,t=t.substring(Fu.length)):Ee(t)&&(s=!0,t=t.substring(1)),s?this._parseAnimation(t,e,r,o,i):this._parsePropertyAst(t,this._parseBinding(e,n,r),r,o,i)},t.prototype.parsePropertyInterpolation=function(t,e,n,r,o){var i=this.parseInterpolation(e,n);return!!i&&(this._parsePropertyAst(t,i,n,r,o),!0)},t.prototype._parsePropertyAst=function(t,e,n,r,o){r.push([t,e.source]),o.push(new Hu(t,e,Uu.DEFAULT,n))},t.prototype._parseAnimation=function(t,e,n,r,o){var i=this._parseBinding(e||"null",!1,n);r.push([t,i.source]),o.push(new Hu(t,i,Uu.ANIMATION,n))},t.prototype._parseBinding=function(t,e,n){var r=n.start.toString();try{var o=e?this._exprParser.parseSimpleBinding(t,r,this._interpolationConfig):this._exprParser.parseBinding(t,r,this._interpolationConfig);return o&&this._reportExpressionParserErrors(o.errors,n),this._checkPipes(o,n),o}catch(t){return this._reportError(""+t,n),this._exprParser.wrapLiteralPrimitive("ERROR",r)}},t.prototype.createElementPropertyAst=function(t,n){if(n.isAnimation)return new Xr(n.name,so.Animation,e.SecurityContext.NONE,n.expression,null,n.sourceSpan);var r,o,s=null,a=null,u=n.name.split(Du);if(u.length>1)if(u[0]==ju){a=u[1],this._validatePropertyOrAttributeName(a,n.sourceSpan,!0),o=Se(this._schemaRegistry,t,a,!0);var c=a.indexOf(":");if(c>-1){var l=a.substring(0,c),p=a.substring(c+1);a=i(l,p)}r=so.Attribute}else u[0]==Lu?(a=u[1],r=so.Class,o=[e.SecurityContext.NONE]):u[0]==Vu&&(s=u.length>2?u[2]:null,a=u[1],r=so.Style,o=[e.SecurityContext.STYLE]);return null===a&&(a=this._schemaRegistry.getMappedPropName(n.name),o=Se(this._schemaRegistry,t,a,!1),r=so.Property,this._validatePropertyOrAttributeName(a,n.sourceSpan,!1)),new Xr(a,r,o[0],n.expression,s,n.sourceSpan)},t.prototype.parseEvent=function(t,e,n,r,o){Ee(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,n,o)):this._parseEvent(t,e,n,r,o)},t.prototype._parseAnimationEvent=function(t,e,n,r){var o=c(t,[t,""]),i=o[0],s=o[1].toLowerCase();if(s)switch(s){case"start":case"done":var a=this._parseAction(e,n);r.push(new $r(i,null,s,a,n));break;default:this._reportError('The provided animation output phase value "'+s+'" for "@'+i+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+i+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseEvent=function(t,e,n,r,o){var i=u(t,[null,t]),s=i[0],a=i[1],c=this._parseAction(e,n);r.push([t,c.source]),o.push(new $r(a,s,null,c,n))},t.prototype._parseAction=function(t,e){var n=e.start.toString();try{var r=this._exprParser.parseAction(t,n,this._interpolationConfig);return r&&this._reportExpressionParserErrors(r.errors,e),!r||r.ast instanceof Yo?(this._reportError("Empty expressions are not allowed",e),this._exprParser.wrapLiteralPrimitive("ERROR",n)):(this._checkPipes(r,e),r)}catch(t){return this._reportError(""+t,e),this._exprParser.wrapLiteralPrimitive("ERROR",n)}},t.prototype._reportError=function(t,e,n){void 0===n&&(n=Fs.ERROR),this._targetErrors.push(new Us(e,t,n))},t.prototype._reportExpressionParserErrors=function(t,e){for(var n=0,r=t;n<r.length;n++){var o=r[n];this._reportError(o.message,e)}},t.prototype._checkPipes=function(t,e){var n=this;if(t){var r=new qu;t.visit(r),r.pipes.forEach(function(t,r){var o=n.pipesByName.get(r);o?n._usedPipes.set(r,o):n._reportError("The pipe '"+r+"' could not be found",new Vs(e.start.moveBy(t.span.start),e.start.moveBy(t.span.end)))})}},t.prototype._validatePropertyOrAttributeName=function(t,e,n){var r=n?this._schemaRegistry.validateAttribute(t):this._schemaRegistry.validateProperty(t);r.error&&this._reportError(r.msg,e,Fs.ERROR)},t}(),qu=function(t){function e(){var e=t.apply(this,arguments)||this;return e.pipes=new Map,e}return zr(e,t),e.prototype.visitPipe=function(t,e){return this.pipes.set(t.name,t),t.exp.visit(this),this.visitAll(t.args,e),null},e}(_i),zu="select",Gu="ng-content",Wu="link",Ku="rel",Qu="href",Xu="stylesheet",$u="style",Zu="script",Yu="ngNonBindable",Ju="ngProjectAs",tc={};tc.NG_CONTENT=0,tc.STYLE=1,tc.STYLESHEET=2,tc.SCRIPT=3,tc.OTHER=4,tc[tc.NG_CONTENT]="NG_CONTENT",tc[tc.STYLE]="STYLE",tc[tc.STYLESHEET]="STYLESHEET",tc[tc.SCRIPT]="SCRIPT",tc[tc.OTHER]="OTHER";var ec=function(){function t(t,e,n,r,o){this.type=t,this.selectAttr=e,this.hrefAttr=n,this.nonBindable=r,this.projectAs=o}return t}(),nc=/^(?:(?:(?:(bind-)|(let-)|(ref-|#)|(on-)|(bindon-)|(@))(.+))|\[\(([^\)]+)\)\]|\[([^\]]+)\]|\(([^\)]+)\))$/,rc=1,oc=2,ic=3,sc=4,ac=5,uc=6,cc=7,lc=8,pc=9,hc=10,fc="ng-template",dc="template",vc="template",yc="*",mc="class",gc=yo.parse("*")[0],_c="The <template> element is deprecated. Use <ng-template> instead",bc="The template attribute is deprecated. Use an ng-template element instead.",wc={},Cc=new e.InjectionToken("TemplateTransforms"),Ec=function(t){function e(e,n,r){return t.call(this,n,e,r)||this}return zr(e,t),e}(Us),Sc=function(){function t(t,e,n){this.templateAst=t,this.usedPipes=e,this.errors=n}return t}(),xc=function(){function t(t,e,n,r,o,i){this._config=t,this._exprParser=e,this._schemaRegistry=n,this._htmlParser=r,this._console=o,this.transforms=i}return t.prototype.parse=function(t,e,n,r,o,i){var s=this.tryParse(t,e,n,r,o,i),a=s.errors.filter(function(t){return t.level===Fs.WARNING}).filter(Te([bc,_c])),u=s.errors.filter(function(t){return t.level===Fs.ERROR});if(a.length>0&&this._console.warn("Template parse warnings:\n"+a.join("\n")),u.length>0){var c=u.join("\n");throw h("Template parse errors:\n"+c)}return{template:s.templateAst,pipes:s.usedPipes}},t.prototype.tryParse=function(t,e,n,r,o,i){return this.tryParseHtml(this.expandHtml(this._htmlParser.parse(e,i,!0,this.getInterpolationConfig(t))),t,e,n,r,o,i)},t.prototype.tryParseHtml=function(t,e,r,o,i,s,a){var u,c=t.errors,l=[];if(t.rootNodes.length>0){var p=Re(o),h=Re(i),f=new Tu(e),d=void 0;e.template&&e.template.interpolation&&(d={start:e.template.interpolation[0],end:e.template.interpolation[1]});var v=new Bu(this._exprParser,d,this._schemaRegistry,h,c),y=new Pc(this._config,f,p,v,this._schemaRegistry,s,c);u=it(y,t.rootNodes,Mc),c.push.apply(c,f.errors),l.push.apply(l,v.getUsedPipes())}else u=[];return this._assertNoReferenceDuplicationOnTemplate(u,c),c.length>0?new Sc(u,l,c):(this.transforms&&this.transforms.forEach(function(t){u=n(t,u)}),new Sc(u,l,c))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var n=t.errors;if(0==n.length||e){var r=pe(t.rootNodes);n.push.apply(n,r.errors),t=new ea(r.nodes,n)}return t},t.prototype.getInterpolationConfig=function(t){if(t.template)return Es.fromArray(t.template.interpolation)},t.prototype._assertNoReferenceDuplicationOnTemplate=function(t,e){var n=[];t.filter(function(t){return!!t.references}).forEach(function(t){return t.references.forEach(function(t){var r=t.name;if(n.indexOf(r)<0)n.push(r);else{var o=new Ec('Reference "#'+r+'" is defined several times',t.sourceSpan,Fs.ERROR);e.push(o)}})})},t}();xc.decorators=[{type:F}],xc.ctorParameters=function(){return[{type:Ko},{type:Is},{type:Mu},{type:_u},{type:e.ɵConsole},{type:Array,decorators:[{type:e.Optional},{type:e.Inject,args:[Cc]}]}]};var Pc=function(){function t(t,e,n,r,o,i,s){var a=this;this.config=t,this.providerViewContext=e,this._bindingParser=r,this._schemaRegistry=o,this._schemas=i,this._targetErrors=s,this.selectorMatcher=new mo,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=e.component.viewQueries.length+1,n.forEach(function(t,e){var n=yo.parse(t.selector);a.selectorMatcher.addSelectables(n,t),a.directivesIndex.set(t,e)})}return t.prototype.visitExpansion=function(t,e){return null},t.prototype.visitExpansionCase=function(t,e){return null},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(gc),r=this._bindingParser.parseInterpolation(t.value,t.sourceSpan);return r?new Kr(r,n,t.sourceSpan):new Wr(t.value,n,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return new Qr(t.name,t.value,t.sourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitElement=function(t,e){var n=this,r=this.contentQueryStartId,o=t.name,i=xe(t);if(i.type===tc.SCRIPT||i.type===tc.STYLE)return null;if(i.type===tc.STYLESHEET&&we(i.hrefAttr))return null;var s=[],a=[],u=[],c=[],l=[],p=[],h=[],f=[],d=!1,v=[],y=Ie(t,this.config.enableLegacyTemplate,function(t,e){return n._reportError(t,e,Fs.WARNING)});t.attrs.forEach(function(t){var e,r,o=n._parseAttr(y,t,s,a,l,u,c),i=n._normalizeAttributeName(t.name);n.config.enableLegacyTemplate&&i==vc?(n._reportError(bc,t.sourceSpan,Fs.WARNING),e=t.value):i.startsWith(yc)&&(e=t.value,r=i.substring(yc.length)+":");var m=null!=e;m&&(d&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),d=!0,n._bindingParser.parseInlineTemplateBinding(r,e,t.sourceSpan,h,p,f)),o||m||(v.push(n.visitAttribute(t,null)),s.push([t.name,t.value]))});var m=Oe(o,s),g=this._parseDirectives(this.selectorMatcher,m),_=g.directives,b=g.matchElement,w=[],C=new Set,E=this._createDirectiveAsts(y,t.name,_,a,u,t.sourceSpan,w,C),S=this._createElementPropertyAsts(t.name,a,C),x=e.isTemplateElement||d,P=new Au(this.providerViewContext,e.providerContext,x,E,v,w,y,r,t.sourceSpan),T=it(i.nonBindable?Rc:this,t.children,Oc.create(y,E,y?e.providerContext:P));P.afterElement();var A,O=null!=i.projectAs?yo.parse(i.projectAs)[0]:m,M=e.findNgContentIndex(O);if(i.type===tc.NG_CONTENT)t.children&&!t.children.every(Me)&&this._reportError("<ng-content> element cannot have content.",t.sourceSpan),A=new io((this.ngContentCount++),d?null:M,t.sourceSpan);else if(y)this._assertAllEventsPublishedByDirectives(E,l),this._assertNoComponentsNorElementBindingsOnTemplate(E,S,t.sourceSpan),A=new to(v,l,w,c,P.transformedDirectiveAsts,P.transformProviders,P.transformedHasViewContainer,P.queryMatches,T,d?null:M,t.sourceSpan);else{this._assertElementExists(b,t),this._assertOnlyOneComponent(E,t.sourceSpan);var R=d?null:e.findNgContentIndex(O);A=new Jr(o,v,S,l,w,P.transformedDirectiveAsts,P.transformProviders,P.transformedHasViewContainer,P.queryMatches,T,d?null:R,t.sourceSpan,t.endSourceSpan)}if(d){var k=this.contentQueryStartId,I=Oe(dc,h),N=this._parseDirectives(this.selectorMatcher,I).directives,D=new Set,j=this._createDirectiveAsts(!0,t.name,N,p,[],t.sourceSpan,[],D),L=this._createElementPropertyAsts(t.name,p,D);this._assertNoComponentsNorElementBindingsOnTemplate(j,L,t.sourceSpan);var V=new Au(this.providerViewContext,e.providerContext,e.isTemplateElement,j,[],[],(!0),k,t.sourceSpan);V.afterElement(),A=new to([],[],[],f,V.transformedDirectiveAsts,V.transformProviders,V.transformedHasViewContainer,V.queryMatches,[A],M,t.sourceSpan)}return A},t.prototype._parseAttr=function(t,e,n,r,o,i,s){var a=this._normalizeAttributeName(e.name),u=e.value,c=e.sourceSpan,l=a.match(nc),p=!1;if(null!==l)if(p=!0,null!=l[rc])this._bindingParser.parsePropertyBinding(l[cc],u,!1,c,n,r);else if(l[oc])if(t){var h=l[cc];this._parseVariable(h,u,c,s)}else this._reportError('"let-" is only supported on template elements.',c);else if(l[ic]){var h=l[cc];this._parseReference(h,u,c,i)}else l[sc]?this._bindingParser.parseEvent(l[cc],u,c,n,o):l[ac]?(this._bindingParser.parsePropertyBinding(l[cc],u,!1,c,n,r),this._parseAssignmentEvent(l[cc],u,c,n,o)):l[uc]?this._bindingParser.parseLiteralAttr(a,u,c,n,r):l[lc]?(this._bindingParser.parsePropertyBinding(l[lc],u,!1,c,n,r),this._parseAssignmentEvent(l[lc],u,c,n,o)):l[pc]?this._bindingParser.parsePropertyBinding(l[pc],u,!1,c,n,r):l[hc]&&this._bindingParser.parseEvent(l[hc],u,c,n,o);else p=this._bindingParser.parsePropertyInterpolation(a,u,c,n,r);return p||this._bindingParser.parseLiteralAttr(a,u,c,n,r),p},t.prototype._normalizeAttributeName=function(t){return/^data-/i.test(t)?t.substring(5):t},t.prototype._parseVariable=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in variable names',n),r.push(new Yr(t,e,n))},t.prototype._parseReference=function(t,e,n,r){t.indexOf("-")>-1&&this._reportError('"-" is not allowed in reference names',n),r.push(new Ac(t,e,n))},t.prototype._parseAssignmentEvent=function(t,e,n,r,o){this._bindingParser.parseEvent(t+"Change",e+"=$event",n,r,o)},t.prototype._parseDirectives=function(t,e){var n=this,r=new Array(this.directivesIndex.size),o=!1;return t.match(e,function(t,e){r[n.directivesIndex.get(e)]=e,o=o||t.hasElementSelector()}),{directives:r.filter(function(t){return!!t}),matchElement:o}},t.prototype._createDirectiveAsts=function(t,e,n,r,o,i,s,a){var u=this,c=new Set,l=null,p=n.map(function(t){var n=new Vs(i.start,i.end,"Directive "+g(t.type));t.isComponent&&(l=t);var p=[],h=u._bindingParser.createDirectiveHostPropertyAsts(t,e,n);h=u._checkPropertiesInSchema(e,h);var f=u._bindingParser.createDirectiveHostEventAsts(t,n);u._createDirectivePropertyAsts(t.inputs,r,p,a),o.forEach(function(e){(0===e.value.length&&t.isComponent||t.exportAs==e.value)&&(s.push(new Zr(e.name,ce(t.type),e.sourceSpan)),c.add(e.name))});var d=u.contentQueryStartId;return u.contentQueryStartId+=t.queries.length,new no(t,p,h,f,d,n)});return o.forEach(function(e){if(e.value.length>0)c.has(e.name)||u._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!l){var n=null;t&&(n=le(wu.TemplateRef)),s.push(new Zr(e.name,n,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,n,r){if(t){var o=new Map;e.forEach(function(t){var e=o.get(t.name);e&&!e.isLiteral||o.set(t.name,t)}),Object.keys(t).forEach(function(e){var i=t[e],s=o.get(i);s&&(r.add(s.name),ke(s.expression)||n.push(new eo(e,s.name,s.expression,s.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var r=this,o=[];return e.forEach(function(e){e.isLiteral||n.has(e.name)||o.push(r._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,o)},t.prototype._findComponentDirectives=function(t){return t.filter(function(t){return t.directive.isComponent})},t.prototype._findComponentDirectiveNames=function(t){return this._findComponentDirectives(t).map(function(t){return g(t.directive.type)})},t.prototype._assertOnlyOneComponent=function(t,e){var n=this._findComponentDirectiveNames(t);n.length>1&&this._reportError("More than one component matched on this element.\nMake sure that only one component's selector can match a given element.\nConflicting components: "+n.join(","),e)},t.prototype._assertElementExists=function(t,e){var n=e.name.replace(/^:xhtml:/,"");if(!t&&!this._schemaRegistry.hasElement(n,this._schemas)){var r="'"+n+"' is not a known element:\n";r+="1. If '"+n+"' is an Angular component, then verify that it is part of this module.\n",r+=n.indexOf("-")>-1?"2. If '"+n+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":"2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(r,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,n){var r=this,o=this._findComponentDirectiveNames(t);o.length>0&&this._reportError("Components on an embedded template: "+o.join(","),n),e.forEach(function(t){r._reportError("Property binding "+t.name+' not used by any directive on an embedded template. Make sure that the property name is spelled correctly and all directives are listed in the "@NgModule.declarations".',n)})},t.prototype._assertAllEventsPublishedByDirectives=function(t,e){var n=this,r=new Set;t.forEach(function(t){Object.keys(t.directive.outputs).forEach(function(e){var n=t.directive.outputs[e];r.add(n)})}),e.forEach(function(t){null==t.target&&r.has(t.name)||n._reportError("Event binding "+t.fullName+' not emitted by any directive on an embedded template. Make sure that the event name is spelled correctly and all directives are listed in the "@NgModule.declarations".',t.sourceSpan)})},t.prototype._checkPropertiesInSchema=function(t,e){var n=this;return e.filter(function(e){if(e.type===so.Property&&!n._schemaRegistry.hasProperty(t,e.name,n._schemas)){var r="Can't bind to '"+e.name+"' since it isn't a known property of '"+t+"'.";t.startsWith("ng-")?r+="\n1. If '"+e.name+"' is an Angular directive, then add 'CommonModule' to the '@NgModule.imports' of this component.\n2. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.":t.indexOf("-")>-1&&(r+="\n1. If '"+t+"' is an Angular component and it has '"+e.name+"' input, then verify that it is part of this module."+("\n2. If '"+t+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.")+"\n3. To allow any property add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component."),n._reportError(r,e.sourceSpan)}return!ke(e.value)})},t.prototype._reportError=function(t,e,n){void 0===n&&(n=Fs.ERROR),this._targetErrors.push(new Us(e,t,n))},t}(),Tc=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=xe(t);if(n.type===tc.SCRIPT||n.type===tc.STYLE||n.type===tc.STYLESHEET)return null;var r=t.attrs.map(function(t){return[t.name,t.value]}),o=Oe(t.name,r),i=e.findNgContentIndex(o),s=it(this,t.children,Mc);return new Jr(t.name,it(this,t.attrs),[],[],[],[],[],(!1),[],s,i,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return new Qr(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(gc);return new Wr(t.value,n,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),Ac=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t}(),Oc=function(){function t(t,e,n,r){this.isTemplateElement=t,this._ngContentIndexMatcher=e,this._wildcardNgContentIndex=n,this.providerContext=r}return t.create=function(e,n,r){var o=new mo,i=null,s=n.find(function(t){return t.directive.isComponent});if(s)for(var a=s.directive.template.ngContentSelectors,u=0;u<a.length;u++){var c=a[u];"*"===c?i=u:o.addSelectables(yo.parse(a[u]),u)}return new t(e,o,i,r)},t.prototype.findNgContentIndex=function(t){var e=[];return this._ngContentIndexMatcher.match(t,function(t,n){e.push(n)}),e.sort(),null!=this._wildcardNgContentIndex&&e.push(this._wildcardNgContentIndex),e.length>0?e[0]:null},t}(),Mc=new Oc((!0),new mo,null,null),Rc=new Tc,kc=function(){function t(){}return t.prototype.get=function(t){return null},t}(),Ic={provide:e.PACKAGE_ROOT_URL,useValue:"/"},Nc=function(){function t(t){void 0===t&&(t=null),this._packagePrefix=t}return t.prototype.resolve=function(t,e){var n=e;null!=t&&t.length>0&&(n=He(t,n));var r=Ve(n),o=this._packagePrefix;if(null!=o&&null!=r&&"package"==r[jc.Scheme]){var i=r[jc.Path];return o=o.replace(/\/+$/,""),i=i.replace(/^\/+/,""),o+"/"+i}return n},t}();Nc.decorators=[{type:F}],Nc.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.PACKAGE_ROOT_URL]}]}]};var Dc=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),jc={};jc.Scheme=1,jc.UserInfo=2,jc.Domain=3,jc.Port=4,jc.Path=5,jc.QueryData=6,jc.Fragment=7,jc[jc.Scheme]="Scheme",jc[jc.UserInfo]="UserInfo",jc[jc.Domain]="Domain",jc[jc.Port]="Port",jc[jc.Path]="Path",jc[jc.QueryData]="QueryData",jc[jc.Fragment]="Fragment";var Lc=function(){function t(t,e,n,r){this._resourceLoader=t,this._urlResolver=e,this._htmlParser=n,this._config=r,this._resourceLoaderCache=new Map}return t.prototype.clearCache=function(){this._resourceLoaderCache.clear()},t.prototype.clearCacheFor=function(t){var e=this;t.isComponent&&(this._resourceLoaderCache.delete(t.template.templateUrl),t.template.externalStylesheets.forEach(function(t){e._resourceLoaderCache.delete(t.moduleUrl)}))},t.prototype._fetch=function(t){var e=this._resourceLoaderCache.get(t);return e||(e=this._resourceLoader.get(t),this._resourceLoaderCache.set(t,e)),e},t.prototype.normalizeTemplate=function(t){var n,r=this,o=null;if(null!=t.template){if("string"!=typeof t.template)throw h("The template specified for component "+e.ɵstringify(t.componentType)+" is not a string");o=this.normalizeTemplateSync(t),n=Promise.resolve(o)}else{if(!t.templateUrl)throw h("No template specified for component "+e.ɵstringify(t.componentType));if("string"!=typeof t.templateUrl)throw h("The templateUrl specified for component "+e.ɵstringify(t.componentType)+" is not a string");n=this.normalizeTemplateAsync(t)}return o&&0===o.styleUrls.length?new Eo(o):new Eo(null,n.then(function(t){return r.normalizeExternalStylesheets(t)}))},t.prototype.normalizeTemplateSync=function(t){return this.normalizeLoadedTemplate(t,t.template,t.moduleUrl)},t.prototype.normalizeTemplateAsync=function(t){var e=this,n=this._urlResolver.resolve(t.moduleUrl,t.templateUrl);return this._fetch(n).then(function(r){return e.normalizeLoadedTemplate(t,r,n)})},t.prototype.normalizeLoadedTemplate=function(t,n,r){var o=!!t.template,i=Es.fromArray(t.interpolation),s=this._htmlParser.parse(n,R({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:o,templateUrl:r}),!0,i);if(s.errors.length>0){var a=s.errors.join("\n");throw h("Template parse errors:\n"+a)}var u=this.normalizeStylesheet(new Uo({styles:t.styles,styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})),c=new Vc;it(c,s.rootNodes);var l=this.normalizeStylesheet(new Uo({styles:c.styles,styleUrls:c.styleUrls,moduleUrl:r})),p=t.encapsulation;null==p&&(p=this._config.defaultEncapsulation);var f=u.styles.concat(l.styles),d=u.styleUrls.concat(l.styleUrls);return p===e.ViewEncapsulation.Emulated&&0===f.length&&0===d.length&&(p=e.ViewEncapsulation.None),new Ho({encapsulation:p,template:n,templateUrl:r,styles:f,styleUrls:d,ngContentSelectors:c.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:o})},t.prototype.normalizeExternalStylesheets=function(t){return this._loadMissingExternalStylesheets(t.styleUrls).then(function(e){return new Ho({encapsulation:t.encapsulation,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,externalStylesheets:e,ngContentSelectors:t.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:t.isInline})})},t.prototype._loadMissingExternalStylesheets=function(t,e){var n=this;return void 0===e&&(e=new Map),Promise.all(t.filter(function(t){return!e.has(t)}).map(function(t){return n._fetch(t).then(function(r){var o=n.normalizeStylesheet(new Uo({styles:[r],moduleUrl:t}));return e.set(t,o),n._loadMissingExternalStylesheets(o.styleUrls,e)})})).then(function(t){return Array.from(e.values())})},t.prototype.normalizeStylesheet=function(t){var e=this,n=t.styleUrls.filter(we).map(function(n){return e._urlResolver.resolve(t.moduleUrl,n)}),r=t.styles.map(function(r){var o=Ce(e._urlResolver,t.moduleUrl,r);return n.push.apply(n,o.styleUrls),o.style});return new Uo({styles:r,styleUrls:n,moduleUrl:t.moduleUrl})},t}();Lc.decorators=[{type:F}],Lc.ctorParameters=function(){return[{type:kc},{type:Nc},{type:yu},{type:Ko}]};var Vc=function(){function t(){this.ngContentSelectors=[],this.styles=[],this.styleUrls=[],this.ngNonBindableStackCount=0}return t.prototype.visitElement=function(t,e){var n=xe(t);switch(n.type){case tc.NG_CONTENT:0===this.ngNonBindableStackCount&&this.ngContentSelectors.push(n.selectAttr);break;case tc.STYLE:var r="";t.children.forEach(function(t){t instanceof Hs&&(r+=t.value)}),this.styles.push(r);break;case tc.STYLESHEET:this.styleUrls.push(n.hrefAttr)}return n.nonBindable&&this.ngNonBindableStackCount++,it(this,t.children),n.nonBindable&&this.ngNonBindableStackCount--,null},t.prototype.visitExpansion=function(t,e){it(this,t.cases)},t.prototype.visitExpansionCase=function(t,e){it(this,t.expression)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return null},t.prototype.visitText=function(t,e){return null},t}(),Fc=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isDirective=function(t){var n=this._reflector.annotations(e.resolveForwardRef(t));return n&&n.some(Be)},t.prototype.resolve=function(t,n){void 0===n&&(n=!0);var r=this._reflector.annotations(e.resolveForwardRef(t));if(r){var o=qe(r,Be);if(o){var i=this._reflector.propMetadata(t);return this._mergeWithPropertyMetadata(o,i,t)}}if(n)throw new Error("No Directive annotation found on "+e.ɵstringify(t));return null},t.prototype._mergeWithPropertyMetadata=function(t,n,r){var o=[],i=[],s={},a={};return Object.keys(n).forEach(function(t){var r=qe(n[t],function(t){return t instanceof e.Input});r&&(r.bindingPropertyName?o.push(t+": "+r.bindingPropertyName):o.push(t));var u=qe(n[t],function(t){return t instanceof e.Output});u&&(u.bindingPropertyName?i.push(t+": "+u.bindingPropertyName):i.push(t));var c=n[t].filter(function(t){return t&&t instanceof e.HostBinding});c.forEach(function(e){if(e.hostPropertyName){var n=e.hostPropertyName[0];if("("===n)throw new Error("@HostBinding can not bind to events. Use @HostListener instead.");if("["===n)throw new Error("@HostBinding parameter should be a property name, 'class.<name>', or 'attr.<name>'.");s["["+e.hostPropertyName+"]"]=t}else s["["+t+"]"]=t});var l=n[t].filter(function(t){return t&&t instanceof e.HostListener});l.forEach(function(e){var n=e.args||[];s["("+e.eventName+")"]=t+"("+n.join(",")+")"});var p=qe(n[t],function(t){return t instanceof e.Query});p&&(a[t]=p)}),this._merge(t,o,i,s,a,r)},t.prototype._extractPublicName=function(t){return u(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,n=[],r=t.length-1;r>=0;r--){var o=t[r],i=this._extractPublicName(o);e.has(i)||(e.add(i),n.push(o))}return n.reverse()},t.prototype._merge=function(t,n,r,o,i,s){var a=this._dedupeBindings(t.inputs?t.inputs.concat(n):n),u=this._dedupeBindings(t.outputs?t.outputs.concat(r):r),c=t.host?e.ɵmerge(t.host,o):o,l=t.queries?e.ɵmerge(t.queries,i):i;return t instanceof e.Component?new e.Component({selector:t.selector,inputs:a,outputs:u,host:c,exportAs:t.exportAs,moduleId:t.moduleId,queries:l,
  changeDetection:t.changeDetection,providers:t.providers,viewProviders:t.viewProviders,entryComponents:t.entryComponents,template:t.template,templateUrl:t.templateUrl,styles:t.styles,styleUrls:t.styleUrls,encapsulation:t.encapsulation,animations:t.animations,interpolation:t.interpolation}):new e.Directive({selector:t.selector,inputs:a,outputs:u,host:c,exportAs:t.exportAs,queries:l,providers:t.providers})},t}();Fc.decorators=[{type:F}],Fc.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var Uc=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,Hc=/\.ngfactory\./,Bc=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(Ze)},t.prototype.resolve=function(t,n){void 0===n&&(n=!0);var r=qe(this._reflector.annotations(t),Ze);if(r)return r;if(n)throw new Error("No NgModule metadata found for '"+e.ɵstringify(t)+"'.");return null},t}();Bc.decorators=[{type:F}],Bc.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var qc=function(){function t(t){void 0===t&&(t=e.ɵreflector),this._reflector=t}return t.prototype.isPipe=function(t){var n=this._reflector.annotations(e.resolveForwardRef(t));return n&&n.some(Ye)},t.prototype.resolve=function(t,n){void 0===n&&(n=!0);var r=this._reflector.annotations(e.resolveForwardRef(t));if(r){var o=qe(r,Ye);if(o)return o}if(n)throw new Error("No Pipe decorator found on "+e.ɵstringify(t));return null},t}();qc.decorators=[{type:F}],qc.ctorParameters=function(){return[{type:e.ɵReflectorReader}]};var zc=function(){function t(){}return t.prototype.isLibraryFile=function(t){return!1},t.prototype.getLibraryFileName=function(t){return null},t.prototype.resolveSummary=function(t){return null},t.prototype.getSymbolsOf=function(t){return[]},t.prototype.getImportAs=function(t){return t},t}();zc.decorators=[{type:F}],zc.ctorParameters=function(){return[]};var Gc=new e.InjectionToken("ErrorCollector"),Wc=function(){function t(t,n,r,o,i,s,a,u,c,l,p){void 0===l&&(l=e.ɵreflector),this._config=t,this._ngModuleResolver=n,this._directiveResolver=r,this._pipeResolver=o,this._summaryResolver=i,this._schemaRegistry=s,this._directiveNormalizer=a,this._console=u,this._staticSymbolCache=c,this._reflector=l,this._errorCollector=p,this._nonNormalizedDirectiveCache=new Map,this._directiveCache=new Map,this._summaryCache=new Map,this._pipeCache=new Map,this._ngModuleCache=new Map,this._ngModuleOfTypes=new Map}return t.prototype.clearCacheFor=function(t){var e=this._directiveCache.get(t);this._directiveCache.delete(t),this._nonNormalizedDirectiveCache.delete(t),this._summaryCache.delete(t),this._pipeCache.delete(t),this._ngModuleOfTypes.delete(t),this._ngModuleCache.clear(),e&&this._directiveNormalizer.clearCacheFor(e)},t.prototype.clearCache=function(){this._directiveCache.clear(),this._nonNormalizedDirectiveCache.clear(),this._summaryCache.clear(),this._pipeCache.clear(),this._ngModuleCache.clear(),this._ngModuleOfTypes.clear(),this._directiveNormalizer.clearCache()},t.prototype._createProxyClass=function(t,n){var r=null,o=function(){if(!r)throw new Error("Illegal state: Class "+n+" for type "+e.ɵstringify(t)+" is not compiled yet!");return r.apply(this,arguments)};return o.setDelegate=function(t){r=t,o.prototype=t.prototype},o.overriddenName=n,o},t.prototype.getGeneratedClass=function(t,e){return t instanceof ao?this._staticSymbolCache.get(ze(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,b(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,C(t))},t.prototype.getHostComponentType=function(t){var e=g({reference:t})+"_Host";if(t instanceof ao)return this._staticSymbolCache.get(t.filePath,e);var n=function(){};return n.overriddenName=e,n},t.prototype.getRendererType=function(t){return t instanceof ao?this._staticSymbolCache.get(ze(t.filePath),w(t)):{}},t.prototype.getComponentFactory=function(t,n,r,o){if(n instanceof ao)return this._staticSymbolCache.get(ze(n.filePath),S(n));var i=this.getHostComponentViewClass(n);return e.ɵccf(t,n,i,r,o,[])},t.prototype.initComponentFactory=function(t,e){t instanceof ao||(n=t.ngContentSelectors).push.apply(n,e);var n},t.prototype._loadSummary=function(t,e){var n=this._summaryCache.get(t);if(!n){var r=this._summaryResolver.resolveSummary(t);n=r?r.type:null,this._summaryCache.set(t,n)}return n&&n.summaryKind===e?n:null},t.prototype._loadDirectiveMetadata=function(t,n,r){var o=this;if(!this._directiveCache.has(n)){n=e.resolveForwardRef(n);var i=this.getNonNormalizedDirectiveMetadata(n),s=i.annotation,a=i.metadata,u=function(t){var e=new Bo({type:a.type,isComponent:a.isComponent,selector:a.selector,exportAs:a.exportAs,changeDetection:a.changeDetection,inputs:a.inputs,outputs:a.outputs,hostListeners:a.hostListeners,hostProperties:a.hostProperties,hostAttributes:a.hostAttributes,providers:a.providers,viewProviders:a.viewProviders,queries:a.queries,viewQueries:a.viewQueries,entryComponents:a.entryComponents,componentViewType:a.componentViewType,rendererType:a.rendererType,componentFactory:a.componentFactory,template:t});return t&&o.initComponentFactory(a.componentFactory,t.ngContentSelectors),o._directiveCache.set(n,e),o._summaryCache.set(n,e.toSummary()),e};if(a.isComponent){var c=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:n,moduleUrl:rn(this._reflector,n,s),encapsulation:a.template.encapsulation,template:a.template.template,templateUrl:a.template.templateUrl,styles:a.template.styles,styleUrls:a.template.styleUrls,animations:a.template.animations,interpolation:a.template.interpolation});return c.syncResult?(u(c.syncResult),null):r?(this._reportError(an(n),n),null):c.asyncResult.then(u)}return u(null),null}},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var n=this;if(t=e.resolveForwardRef(t),!t)return null;var r=this._nonNormalizedDirectiveCache.get(t);if(r)return r;var o=this._directiveResolver.resolve(t,!1);if(!o)return null;var i;if(o instanceof e.Component){U("styles",o.styles),U("styleUrls",o.styleUrls),H("interpolation",o.interpolation);var s=o.animations;i=new Ho({encapsulation:o.encapsulation,template:o.template,templateUrl:o.templateUrl,styles:o.styles,styleUrls:o.styleUrls,animations:s,interpolation:o.interpolation,isInline:!!o.template})}var a=null,u=[],c=[],l=o.selector;o instanceof e.Component?(a=o.changeDetection,o.viewProviders&&(u=this._getProvidersMetadata(o.viewProviders,c,'viewProviders for "'+sn(t)+'"',[],t)),o.entryComponents&&(c=en(o.entryComponents).map(function(t){return n._getEntryComponentMetadata(t)}).concat(c)),l||(l=this._schemaRegistry.getDefaultComponentElementName())):l||(this._reportError(h("Directive "+sn(t)+" has no selector, please add it!"),t),l="error");var p=[];null!=o.providers&&(p=this._getProvidersMetadata(o.providers,c,'providers for "'+sn(t)+'"',[],t));var f=[],d=[];null!=o.queries&&(f=this._getQueriesMetadata(o.queries,!1,t),d=this._getQueriesMetadata(o.queries,!0,t));var v=Bo.create({selector:l,exportAs:o.exportAs,isComponent:!!i,type:this._getTypeMetadata(t),template:i,changeDetection:a,inputs:o.inputs,outputs:o.outputs,host:o.host,providers:p,viewProviders:u,queries:f,viewQueries:d,entryComponents:c,componentViewType:i?this.getComponentViewClass(t):void 0,rendererType:i?this.getRendererType(t):void 0,componentFactory:void 0});return i&&(v.componentFactory=this.getComponentFactory(l,t,v.inputs,v.outputs)),r={metadata:v,annotation:o},this._nonNormalizedDirectiveCache.set(t,r),r},t.prototype.getDirectiveMetadata=function(t){var e=this._directiveCache.get(t);return e||this._reportError(h("Illegal state: getDirectiveMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Directive "+sn(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,Fo.Directive);return e||this._reportError(h("Illegal state: Could not load the summary for directive "+sn(t)+"."),t),e},t.prototype.isDirective=function(t){return this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return this._pipeResolver.isPipe(t)},t.prototype.getNgModuleSummary=function(t){var e=this._loadSummary(t,Fo.NgModule);if(!e){var n=this.getNgModuleMetadata(t,!1);e=n?n.toSummary():null,e&&this._summaryCache.set(t,e)}return e},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var o=this.getNgModuleMetadata(t,n),i=[];return o&&(o.declaredDirectives.forEach(function(n){var o=r._loadDirectiveMetadata(t,n.reference,e);o&&i.push(o)}),o.declaredPipes.forEach(function(t){return r._loadPipeMetadata(t.reference)})),Promise.all(i)},t.prototype.getNgModuleMetadata=function(t,n){var r=this;void 0===n&&(n=!0),t=e.resolveForwardRef(t);var o=this._ngModuleCache.get(t);if(o)return o;var i=this._ngModuleResolver.resolve(t,n);if(!i)return null;var s=[],a=[],u=[],c=[],l=[],p=[],f=[],d=[],v=[];i.imports&&en(i.imports).forEach(function(e){var n;if(nn(e))n=e;else if(e&&e.ngModule){var o=e;n=o.ngModule,o.providers&&p.push.apply(p,r._getProvidersMetadata(o.providers,f,"provider for the NgModule '"+sn(n)+"'",[],e))}if(!n)return void r._reportError(h("Unexpected value '"+sn(e)+"' imported by the module '"+sn(t)+"'"),t);if(!r._checkSelfImport(t,n)){var i=r.getNgModuleSummary(n);return i?void c.push(i):void r._reportError(h("Unexpected "+r._getTypeDescriptor(e)+" '"+sn(e)+"' imported by the module '"+sn(t)+"'. Please add a @NgModule annotation."),t)}}),i.exports&&en(i.exports).forEach(function(e){if(!nn(e))return void r._reportError(h("Unexpected value '"+sn(e)+"' exported by the module '"+sn(t)+"'"),t);var n=r.getNgModuleSummary(e);n?l.push(n):a.push(r._getIdentifierMetadata(e))});var y=this._getTransitiveNgModuleMetadata(c,l);i.declarations&&en(i.declarations).forEach(function(e){if(!nn(e))return void r._reportError(h("Unexpected value '"+sn(e)+"' declared by the module '"+sn(t)+"'"),t);var n=r._getIdentifierMetadata(e);if(r._directiveResolver.isDirective(e))y.addDirective(n),s.push(n),r._addTypeToModule(e,t);else{if(!r._pipeResolver.isPipe(e))return void r._reportError(h("Unexpected "+r._getTypeDescriptor(e)+" '"+sn(e)+"' declared by the module '"+sn(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);y.addPipe(n),y.pipes.push(n),u.push(n),r._addTypeToModule(e,t)}});var m=[],g=[];return a.forEach(function(e){y.directivesSet.has(e.reference)?(m.push(e),y.addExportedDirective(e)):y.pipesSet.has(e.reference)?(g.push(e),y.addExportedPipe(e)):r._reportError(h("Can't export "+r._getTypeDescriptor(e.reference)+" "+sn(e.reference)+" from "+sn(t)+" as it was neither declared nor imported!"),t)}),i.providers&&p.push.apply(p,this._getProvidersMetadata(i.providers,f,"provider for the NgModule '"+sn(t)+"'",[],t)),i.entryComponents&&f.push.apply(f,en(i.entryComponents).map(function(t){return r._getEntryComponentMetadata(t)})),i.bootstrap&&en(i.bootstrap).forEach(function(e){return nn(e)?void d.push(r._getIdentifierMetadata(e)):void r._reportError(h("Unexpected value '"+sn(e)+"' used in the bootstrap property of module '"+sn(t)+"'"),t)}),f.push.apply(f,d.map(function(t){return r._getEntryComponentMetadata(t.reference)})),i.schemas&&v.push.apply(v,en(i.schemas)),o=new zo({type:this._getTypeMetadata(t),providers:p,entryComponents:f,bootstrapComponents:d,schemas:v,declaredDirectives:s,exportedDirectives:m,declaredPipes:u,exportedPipes:g,importedModules:c,exportedModules:l,transitiveModule:y,id:i.id}),f.forEach(function(t){return y.addEntryComponent(t)}),p.forEach(function(t){return y.addProvider(t,o.type)}),y.addModule(o.type),this._ngModuleCache.set(t,o),o},t.prototype._checkSelfImport=function(t,e){return t===e&&(this._reportError(h("'"+sn(t)+"' module can't import itself"),t),!0)},t.prototype._getTypeDescriptor=function(t){return this._directiveResolver.isDirective(t)?"directive":this._pipeResolver.isPipe(t)?"pipe":this._ngModuleResolver.isNgModule(t)?"module":t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var n=this._ngModuleOfTypes.get(t);n&&n!==e&&this._reportError(h("Type "+sn(t)+" is part of the declarations of 2 modules: "+sn(n)+" and "+sn(e)+"! "+("Please consider moving "+sn(t)+" to a higher module that imports "+sn(n)+" and "+sn(e)+". ")+("You can also create a new NgModule that exports and includes "+sn(t)+" then import that NgModule in "+sn(n)+" and "+sn(e)+".")),e),this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var n=new Go,r=new Map;return t.concat(e).forEach(function(t){t.modules.forEach(function(t){return n.addModule(t)}),t.entryComponents.forEach(function(t){return n.addEntryComponent(t)});var e=new Set;t.providers.forEach(function(t){var o=P(t.provider.token),i=r.get(o);i||(i=new Set,r.set(o,i));var s=t.module.reference;!e.has(o)&&i.has(s)||(i.add(s),e.add(o),n.addProvider(t.provider,t.module))})}),e.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addExportedDirective(t)}),t.exportedPipes.forEach(function(t){return n.addExportedPipe(t)})}),t.forEach(function(t){t.exportedDirectives.forEach(function(t){return n.addDirective(t)}),t.exportedPipes.forEach(function(t){return n.addPipe(t)})}),n},t.prototype._getIdentifierMetadata=function(t){return t=e.resolveForwardRef(t),{reference:t}},t.prototype.isInjectable=function(t){var n=this._reflector.annotations(t);return n.some(function(t){return t.constructor===e.Injectable})},t.prototype.getInjectableSummary=function(t){return{summaryKind:Fo.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,Fo.Injectable);return n?n.type:this._getTypeMetadata(t,e)},t.prototype._getTypeMetadata=function(t,n,r){void 0===n&&(n=null),void 0===r&&(r=!0);var o=this._getIdentifierMetadata(t);return{reference:o.reference,diDeps:this._getDependenciesMetadata(o.reference,n,r),lifecycleHooks:e.ɵLIFECYCLE_HOOKS_VALUES.filter(function(t){return Xe(t,o.reference)})}},t.prototype._getFactoryMetadata=function(t,n){return void 0===n&&(n=null),t=e.resolveForwardRef(t),{reference:t,diDeps:this._getDependenciesMetadata(t,n)}},t.prototype.getPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||this._reportError(h("Illegal state: getPipeMetadata can only be called after loadNgModuleDirectiveAndPipeMetadata for a module that declares it. Pipe "+sn(t)+"."),t),e},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,Fo.Pipe);return e||this._reportError(h("Illegal state: Could not load the summary for pipe "+sn(t)+"."),t),e},t.prototype.getOrLoadPipeMetadata=function(t){var e=this._pipeCache.get(t);return e||(e=this._loadPipeMetadata(t)),e},t.prototype._loadPipeMetadata=function(t){t=e.resolveForwardRef(t);var n=this._pipeResolver.resolve(t),r=new qo({type:this._getTypeMetadata(t),name:n.name,pure:n.pure});return this._pipeCache.set(t,r),this._summaryCache.set(t,r.toSummary()),r},t.prototype._getDependenciesMetadata=function(t,n,r){var o=this;void 0===r&&(r=!0);var i=!1,s=n||this._reflector.parameters(t)||[],a=s.map(function(t){var n=!1,r=!1,s=!1,a=!1,u=!1,c=null;return Array.isArray(t)?t.forEach(function(t){t instanceof e.Host?r=!0:t instanceof e.Self?s=!0:t instanceof e.SkipSelf?a=!0:t instanceof e.Optional?u=!0:t instanceof e.Attribute?(n=!0,c=t.attributeName):t instanceof e.Inject?c=t.token:t instanceof e.InjectionToken?c=t:nn(t)&&null==c&&(c=t)}):c=t,null==c?(i=!0,null):{isAttribute:n,isHost:r,isSelf:s,isSkipSelf:a,isOptional:u,token:o._getTokenMetadata(c)}});if(i){var u=a.map(function(t){return t?sn(t.token):"?"}).join(", "),c="Can't resolve all parameters for "+sn(t)+": ("+u+").";r?this._reportError(h(c),t):this._console.warn("Warning: "+c+" This will become an error in Angular v5.x")}return a},t.prototype._getTokenMetadata=function(t){t=e.resolveForwardRef(t);var n;return n="string"==typeof t?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,n,r,o,i){var s=this;return void 0===o&&(o=[]),t.forEach(function(a,u){if(Array.isArray(a))s._getProvidersMetadata(a,n,r,o);else{a=e.resolveForwardRef(a);var c=void 0;if(a&&"object"==typeof a&&a.hasOwnProperty("provide"))s._validateProvider(a),c=new Wo(a.provide,a);else if(nn(a))c=new Wo(a,{useClass:a});else if(void 0===a)s._reportError(h("Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files."));else{var l=t.reduce(function(t,e,n){return n<u?t.push(""+sn(e)):n==u?t.push("?"+sn(e)+"?"):n==u+1&&t.push("..."),t},[]).join(", ");s._reportError(h("Invalid "+(r?r:"provider")+" - only instances of Provider and Type are allowed, got: ["+l+"]"),i)}c.token===ae(wu.ANALYZE_FOR_ENTRY_COMPONENTS)?n.push.apply(n,s._getEntryComponentsFromProvider(c,i)):o.push(s.getProviderMetadata(c))}}),o},t.prototype._validateProvider=function(t){t.hasOwnProperty("useClass")&&null==t.useClass&&this._reportError(h("Invalid provider for "+sn(t.provide)+". useClass cannot be "+t.useClass+".\n           Usually it happens when:\n           1. There's a circular dependency (might be caused by using index.ts (barrel) files).\n           2. Class was used before it was declared. Use forwardRef in this case."))},t.prototype._getEntryComponentsFromProvider=function(t,e){var n=this,r=[],o=[];return t.useFactory||t.useExisting||t.useClass?(this._reportError(h("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports useValue!"),e),[]):t.multi?(on(t.useValue,o),o.forEach(function(t){var e=n._getEntryComponentMetadata(t.reference,!1);e&&r.push(e)}),r):(this._reportError(h("The ANALYZE_FOR_ENTRY_COMPONENTS token only supports 'multi = true'!"),e),[])},t.prototype._getEntryComponentMetadata=function(t,e){void 0===e&&(e=!0);var n=this.getNonNormalizedDirectiveMetadata(t);if(n&&n.metadata.isComponent)return{componentType:t,componentFactory:n.metadata.componentFactory};var r=this._loadSummary(t,Fo.Directive);if(r&&r.isComponent)return{componentType:t,componentFactory:r.componentFactory};if(e)throw h(t.name+" cannot be used as an entry component.")},t.prototype.getProviderMetadata=function(t){var e,n=null,r=null,o=this._getTokenMetadata(t.token);return t.useClass?(n=this._getInjectableMetadata(t.useClass,t.dependencies),e=n.diDeps,t.token===t.useClass&&(o={identifier:n})):t.useFactory&&(r=this._getFactoryMetadata(t.useFactory,t.dependencies),e=r.diDeps),{token:o,useClass:n,useValue:t.useValue,useFactory:r,useExisting:t.useExisting?this._getTokenMetadata(t.useExisting):null,deps:e,multi:t.multi}},t.prototype._getQueriesMetadata=function(t,e,n){var r=this,o=[];return Object.keys(t).forEach(function(i){var s=t[i];s.isViewQuery===e&&o.push(r._getQueryMetadata(s,i,n))}),o},t.prototype._queryVarBindings=function(t){return t.split(/\s*,\s*/)},t.prototype._getQueryMetadata=function(t,e,n){var r,o=this;return"string"==typeof t.selector?r=this._queryVarBindings(t.selector).map(function(t){return o._getTokenMetadata(t)}):(t.selector||this._reportError(h("Can't construct a query for the property \""+e+'" of "'+sn(n)+"\" since the query selector wasn't defined."),n),r=[this._getTokenMetadata(t.selector)]),{selectors:r,first:t.first,descendants:t.descendants,propertyName:e,read:t.read?this._getTokenMetadata(t.read):null}},t.prototype._reportError=function(t,e,n){if(!this._errorCollector)throw t;this._errorCollector(t,e),n&&this._errorCollector(t,n)},t}();Wc.decorators=[{type:F}],Wc.ctorParameters=function(){return[{type:Ko},{type:Bc},{type:Fc},{type:qc},{type:zc},{type:Mu},{type:Lc},{type:e.ɵConsole},{type:uo,decorators:[{type:e.Optional}]},{type:e.ɵReflectorReader},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[Gc]}]}]};var Kc=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),e.prototype.visitOther=function(t,e){e.push({reference:t})},e}(Co),Qc={};Qc.Const=0,Qc[Qc.Const]="Const";var Xc=function(){function t(t){void 0===t&&(t=null),this.modifiers=t,t||(this.modifiers=[])}return t.prototype.visitType=function(t,e){},t.prototype.hasModifier=function(t){return this.modifiers.indexOf(t)!==-1},t}(),$c={};$c.Dynamic=0,$c.Bool=1,$c.String=2,$c.Int=3,$c.Number=4,$c.Function=5,$c.Inferred=6,$c[$c.Dynamic]="Dynamic",$c[$c.Bool]="Bool",$c[$c.String]="String",$c[$c.Int]="Int",$c[$c.Number]="Number",$c[$c.Function]="Function",$c[$c.Inferred]="Inferred";var Zc=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.name=e,r}return zr(e,t),e.prototype.visitType=function(t,e){return t.visitBuiltintType(this,e)},e}(Xc),Yc=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.value=e,r}return zr(e,t),e.prototype.visitType=function(t,e){return t.visitExpressionType(this,e)},e}(Xc),Jc=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.of=e,r}return zr(e,t),e.prototype.visitType=function(t,e){return t.visitArrayType(this,e)},e}(Xc),tl=function(t){function e(e,n){void 0===n&&(n=null);var r=t.call(this,n)||this;return r.valueType=e,r}return zr(e,t),e.prototype.visitType=function(t,e){return t.visitMapType(this,e)},e}(Xc),el=new Zc($c.Dynamic),nl=new Zc($c.Inferred),rl=new Zc($c.Bool),ol=(new Zc($c.Int),new Zc($c.Number),new Zc($c.String),new Zc($c.Function),{});ol.Equals=0,ol.NotEquals=1,ol.Identical=2,ol.NotIdentical=3,ol.Minus=4,ol.Plus=5,ol.Divide=6,ol.Multiply=7,ol.Modulo=8,ol.And=9,ol.Or=10,ol.Lower=11,ol.LowerEquals=12,ol.Bigger=13,ol.BiggerEquals=14,ol[ol.Equals]="Equals",ol[ol.NotEquals]="NotEquals",ol[ol.Identical]="Identical",ol[ol.NotIdentical]="NotIdentical",ol[ol.Minus]="Minus",ol[ol.Plus]="Plus",ol[ol.Divide]="Divide",ol[ol.Multiply]="Multiply",ol[ol.Modulo]="Modulo",ol[ol.And]="And",ol[ol.Or]="Or",ol[ol.Lower]="Lower",ol[ol.LowerEquals]="LowerEquals",ol[ol.Bigger]="Bigger",ol[ol.BiggerEquals]="BiggerEquals";var il=function(){function t(t,e){this.type=t,this.sourceSpan=e}return t.prototype.visitExpression=function(t,e){},t.prototype.prop=function(t,e){return new El(this,t,null,e)},t.prototype.key=function(t,e,n){return void 0===e&&(e=null),new Sl(this,t,e,n)},t.prototype.callMethod=function(t,e,n){return new hl(this,t,e,null,n)},t.prototype.callFn=function(t,e){return new fl(this,t,null,e)},t.prototype.instantiate=function(t,e,n){return void 0===e&&(e=null),new dl(this,t,e,n)},t.prototype.conditional=function(t,e,n){return void 0===e&&(e=null),new ml(this,t,e,null,n)},t.prototype.equals=function(t,e){return new Cl(ol.Equals,this,t,null,e)},t.prototype.notEquals=function(t,e){return new Cl(ol.NotEquals,this,t,null,e)},t.prototype.identical=function(t,e){return new Cl(ol.Identical,this,t,null,e)},t.prototype.notIdentical=function(t,e){return new Cl(ol.NotIdentical,this,t,null,e)},t.prototype.minus=function(t,e){return new Cl(ol.Minus,this,t,null,e)},t.prototype.plus=function(t,e){return new Cl(ol.Plus,this,t,null,e)},t.prototype.divide=function(t,e){return new Cl(ol.Divide,this,t,null,e)},t.prototype.multiply=function(t,e){return new Cl(ol.Multiply,this,t,null,e)},t.prototype.modulo=function(t,e){return new Cl(ol.Modulo,this,t,null,e)},t.prototype.and=function(t,e){return new Cl(ol.And,this,t,null,e)},t.prototype.or=function(t,e){return new Cl(ol.Or,this,t,null,e)},t.prototype.lower=function(t,e){return new Cl(ol.Lower,this,t,null,e)},t.prototype.lowerEquals=function(t,e){return new Cl(ol.LowerEquals,this,t,null,e)},t.prototype.bigger=function(t,e){return new Cl(ol.Bigger,this,t,null,e)},t.prototype.biggerEquals=function(t,e){return new Cl(ol.BiggerEquals,this,t,null,e)},t.prototype.isBlank=function(t){return this.equals(kl,t)},t.prototype.cast=function(t,e){return new _l(this,t,e)},t.prototype.toStmt=function(){return new Ll(this)},t}(),sl={};sl.This=0,sl.Super=1,sl.CatchError=2,sl.CatchStack=3,sl[sl.This]="This",sl[sl.Super]="Super",sl[sl.CatchError]="CatchError",sl[sl.CatchStack]="CatchStack";var al=function(t){function e(e,n,r){void 0===n&&(n=null);var o=t.call(this,n,r)||this;return"string"==typeof e?(o.name=e,o.builtin=null):(o.name=null,o.builtin=e),o}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadVarExpr(this,e)},e.prototype.set=function(t){return new ul(this.name,t,null,this.sourceSpan)},e}(il),ul=function(t){function e(e,n,r,o){void 0===r&&(r=null);var i=t.call(this,r||n.type,o)||this;return i.name=e,i.value=n,i}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteVarExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===t&&(t=null),void 0===e&&(e=null),new Dl(this.name,this.value,t,e,this.sourceSpan)},e}(il),cl=function(t){function e(e,n,r,o,i){void 0===o&&(o=null);var s=t.call(this,o||r.type,i)||this;return s.receiver=e,s.index=n,s.value=r,s}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitWriteKeyExpr(this,e)},e}(il),ll=function(t){function e(e,n,r,o,i){void 0===o&&(o=null);var s=t.call(this,o||r.type,i)||this;return s.receiver=e,s.name=n,s.value=r,s}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitWritePropExpr(this,e)},e}(il),pl={};pl.ConcatArray=0,pl.SubscribeObservable=1,pl.Bind=2,pl[pl.ConcatArray]="ConcatArray",pl[pl.SubscribeObservable]="SubscribeObservable",pl[pl.Bind]="Bind";var hl=function(t){function e(e,n,r,o,i){void 0===o&&(o=null);var s=t.call(this,o,i)||this;return s.receiver=e,s.args=r,"string"==typeof n?(s.name=n,s.builtin=null):(s.name=null,s.builtin=n),s}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeMethodExpr(this,e)},e}(il),fl=function(t){function e(e,n,r,o){void 0===r&&(r=null);var i=t.call(this,r,o)||this;return i.fn=e,i.args=n,i}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitInvokeFunctionExpr(this,e)},e}(il),dl=function(t){function e(e,n,r,o){var i=t.call(this,r,o)||this;return i.classExpr=e,i.args=n,i}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitInstantiateExpr(this,e)},e}(il),vl=function(t){function e(e,n,r){void 0===n&&(n=null);var o=t.call(this,n,r)||this;return o.value=e,o}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralExpr(this,e)},e}(il),yl=function(t){function e(e,n,r,o){void 0===n&&(n=null),void 0===r&&(r=null);var i=t.call(this,n,o)||this;return i.value=e,i.typeParams=r,i}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitExternalExpr(this,e)},e}(il),ml=function(t){function e(e,n,r,o,i){void 0===r&&(r=null),void 0===o&&(o=null);var s=t.call(this,o||n.type,i)||this;return s.condition=e,s.falseCase=r,s.trueCase=n,s}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitConditionalExpr(this,e)},e}(il),gl=function(t){function e(e,n){var r=t.call(this,rl,n)||this;return r.condition=e,r}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitNotExpr(this,e)},e}(il),_l=function(t){function e(e,n,r){var o=t.call(this,n,r)||this;return o.value=e,o}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitCastExpr(this,e)},e}(il),bl=function(){function t(t,e){void 0===e&&(e=null),this.name=t,this.type=e}return t}(),wl=function(t){function e(e,n,r,o){void 0===r&&(r=null);var i=t.call(this,r,o)||this;return i.params=e,i.statements=n,i}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitFunctionExpr(this,e)},e.prototype.toDeclStmt=function(t,e){return void 0===e&&(e=null),new jl(t,this.params,this.statements,this.type,e,this.sourceSpan)},e}(il),Cl=function(t){function e(e,n,r,o,i){void 0===o&&(o=null);var s=t.call(this,o||n.type,i)||this;return s.operator=e,s.rhs=r,s.lhs=n,s}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitBinaryOperatorExpr(this,e)},e}(il),El=function(t){function e(e,n,r,o){void 0===r&&(r=null);var i=t.call(this,r,o)||this;return i.receiver=e,i.name=n,i}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadPropExpr(this,e)},e.prototype.set=function(t){return new ll(this.receiver,this.name,t,null,this.sourceSpan)},e}(il),Sl=function(t){function e(e,n,r,o){void 0===r&&(r=null);var i=t.call(this,r,o)||this;return i.receiver=e,i.index=n,i}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitReadKeyExpr(this,e)},e.prototype.set=function(t){return new cl(this.receiver,this.index,t,null,this.sourceSpan)},e}(il),xl=function(t){function e(e,n,r){void 0===n&&(n=null);var o=t.call(this,n,r)||this;return o.entries=e,o}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralArrayExpr(this,e)},e}(il),Pl=function(){function t(t,e,n){void 0===n&&(n=!1),this.key=t,this.value=e,this.quoted=n}return t}(),Tl=function(t){function e(e,n,r){void 0===n&&(n=null);var o=t.call(this,n,r)||this;return o.entries=e,o.valueType=null,n&&(o.valueType=n.valueType),o}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitLiteralMapExpr(this,e)},e}(il),Al=function(t){function e(e,n){var r=t.call(this,e[e.length-1].type,n)||this;return r.parts=e,r}return zr(e,t),e.prototype.visitExpression=function(t,e){return t.visitCommaExpr(this,e)},e}(il),Ol=new al(sl.This),Ml=new al(sl.Super),Rl=(new al(sl.CatchError),new al(sl.CatchStack),new vl(null,null)),kl=new vl(null,nl),Il={};Il.Final=0,Il.Private=1,Il[Il.Final]="Final",Il[Il.Private]="Private";var Nl=function(){function t(t,e){void 0===t&&(t=null),this.modifiers=t,this.sourceSpan=e,t||(this.modifiers=[])}return t.prototype.visitStatement=function(t,e){},t.prototype.hasModifier=function(t){return this.modifiers.indexOf(t)!==-1},t}(),Dl=function(t){function e(e,n,r,o,i){void 0===r&&(r=null),void 0===o&&(o=null);var s=t.call(this,o,i)||this;return s.name=e,s.value=n,s.type=r||n.type,s}return zr(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareVarStmt(this,e)},e}(Nl),jl=function(t){function e(e,n,r,o,i,s){void 0===o&&(o=null),void 0===i&&(i=null);var a=t.call(this,i,s)||this;return a.name=e,a.params=n,a.statements=r,a.type=o,a}return zr(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareFunctionStmt(this,e)},e}(Nl),Ll=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.expr=e,r}return zr(e,t),e.prototype.visitStatement=function(t,e){return t.visitExpressionStmt(this,e)},e}(Nl),Vl=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.value=e,r}return zr(e,t),e.prototype.visitStatement=function(t,e){return t.visitReturnStmt(this,e)},e}(Nl),Fl=function(){function t(t,e){void 0===t&&(t=null),this.type=t,this.modifiers=e,e||(this.modifiers=[])}return t.prototype.hasModifier=function(t){return this.modifiers.indexOf(t)!==-1},t}(),Ul=function(t){function e(e,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var o=t.call(this,n,r)||this;return o.name=e,o}return zr(e,t),e}(Fl),Hl=function(t){function e(e,n,r,o,i){void 0===o&&(o=null),void 0===i&&(i=null);var s=t.call(this,o,i)||this;return s.name=e,s.params=n,s.body=r,s}return zr(e,t),e}(Fl),Bl=function(t){function e(e,n,r,o){void 0===r&&(r=null),void 0===o&&(o=null);var i=t.call(this,r,o)||this;return i.name=e,i.body=n,i}return zr(e,t),e}(Fl),ql=function(t){function e(e,n,r,o,i,s,a,u){void 0===a&&(a=null);var c=t.call(this,a,u)||this;return c.name=e,c.parent=n,c.fields=r,c.getters=o,c.constructorMethod=i,c.methods=s,c}return zr(e,t),e.prototype.visitStatement=function(t,e){return t.visitDeclareClassStmt(this,e)},e}(Nl),zl=function(t){function e(e,n,r,o){void 0===r&&(r=[]);var i=t.call(this,null,o)||this;return i.condition=e,i.trueCase=n,i.falseCase=r,i}return zr(e,t),e.prototype.visitStatement=function(t,e){return t.visitIfStmt(this,e)},e}(Nl),Gl=function(t){function e(e,n,r){var o=t.call(this,null,r)||this;return o.bodyStmts=e,o.catchStmts=n,o}return zr(e,t),e.prototype.visitStatement=function(t,e){return t.visitTryCatchStmt(this,e)},e}(Nl),Wl=function(t){function e(e,n){var r=t.call(this,null,n)||this;return r.error=e,r}return zr(e,t),e.prototype.visitStatement=function(t,e){return t.visitThrowStmt(this,e)},e}(Nl),Kl=function(){function t(){}return t.prototype.transformExpr=function(t,e){return t},t.prototype.transformStmt=function(t,e){
  return t},t.prototype.visitReadVarExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitWriteVarExpr=function(t,e){return this.transformExpr(new ul(t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWriteKeyExpr=function(t,e){return this.transformExpr(new cl(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitWritePropExpr=function(t,e){return this.transformExpr(new ll(t.receiver.visitExpression(this,e),t.name,t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeMethodExpr=function(t,e){var n=t.builtin||t.name;return this.transformExpr(new hl(t.receiver.visitExpression(this,e),n,this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInvokeFunctionExpr=function(t,e){return this.transformExpr(new fl(t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitInstantiateExpr=function(t,e){return this.transformExpr(new dl(t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitExternalExpr=function(t,e){return this.transformExpr(t,e)},t.prototype.visitConditionalExpr=function(t,e){return this.transformExpr(new ml(t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitNotExpr=function(t,e){return this.transformExpr(new gl(t.condition.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCastExpr=function(t,e){return this.transformExpr(new _l(t.value.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitFunctionExpr=function(t,e){return this.transformExpr(new wl(t.params,this.visitAllStatements(t.statements,e),t.type,t.sourceSpan),e)},t.prototype.visitBinaryOperatorExpr=function(t,e){return this.transformExpr(new Cl(t.operator,t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitReadPropExpr=function(t,e){return this.transformExpr(new El(t.receiver.visitExpression(this,e),t.name,t.type,t.sourceSpan),e)},t.prototype.visitReadKeyExpr=function(t,e){return this.transformExpr(new Sl(t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralArrayExpr=function(t,e){return this.transformExpr(new xl(this.visitAllExpressions(t.entries,e),t.type,t.sourceSpan),e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r=t.entries.map(function(t){return new Pl(t.key,t.value.visitExpression(n,e),t.quoted)}),o=new tl(t.valueType);return this.transformExpr(new Tl(r,o,t.sourceSpan),e)},t.prototype.visitCommaExpr=function(t,e){return this.transformExpr(new Al(this.visitAllExpressions(t.parts,e),t.sourceSpan),e)},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return this.transformStmt(new Dl(t.name,t.value.visitExpression(this,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.transformStmt(new jl(t.name,t.params,this.visitAllStatements(t.statements,e),t.type,t.modifiers,t.sourceSpan),e)},t.prototype.visitExpressionStmt=function(t,e){return this.transformStmt(new Ll(t.expr.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitReturnStmt=function(t,e){return this.transformStmt(new Vl(t.value.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitDeclareClassStmt=function(t,e){var n=this,r=t.parent.visitExpression(this,e),o=t.getters.map(function(t){return new Bl(t.name,n.visitAllStatements(t.body,e),t.type,t.modifiers)}),i=t.constructorMethod&&new Hl(t.constructorMethod.name,t.constructorMethod.params,this.visitAllStatements(t.constructorMethod.body,e),t.constructorMethod.type,t.constructorMethod.modifiers),s=t.methods.map(function(t){return new Hl(t.name,t.params,n.visitAllStatements(t.body,e),t.type,t.modifiers)});return this.transformStmt(new ql(t.name,r,t.fields,o,i,s,t.modifiers,t.sourceSpan),e)},t.prototype.visitIfStmt=function(t,e){return this.transformStmt(new zl(t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t.sourceSpan),e)},t.prototype.visitTryCatchStmt=function(t,e){return this.transformStmt(new Gl(this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t.sourceSpan),e)},t.prototype.visitThrowStmt=function(t,e){return this.transformStmt(new Wl(t.error.visitExpression(this,e),t.sourceSpan),e)},t.prototype.visitCommentStmt=function(t,e){return this.transformStmt(t,e)},t.prototype.visitAllStatements=function(t,e){var n=this;return t.map(function(t){return t.visitStatement(n,e)})},t}(),Ql=function(){function t(){}return t.prototype.visitReadVarExpr=function(t,e){return t},t.prototype.visitWriteVarExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitWriteKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitWritePropExpr=function(t,e){return t.receiver.visitExpression(this,e),t.value.visitExpression(this,e),t},t.prototype.visitInvokeMethodExpr=function(t,e){return t.receiver.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitInstantiateExpr=function(t,e){return t.classExpr.visitExpression(this,e),this.visitAllExpressions(t.args,e),t},t.prototype.visitLiteralExpr=function(t,e){return t},t.prototype.visitExternalExpr=function(t,e){return t},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e),t.trueCase.visitExpression(this,e),t.falseCase.visitExpression(this,e),t},t.prototype.visitNotExpr=function(t,e){return t.condition.visitExpression(this,e),t},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitFunctionExpr=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitBinaryOperatorExpr=function(t,e){return t.lhs.visitExpression(this,e),t.rhs.visitExpression(this,e),t},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),t},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),t.index.visitExpression(this,e),t},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e),t},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return t.entries.forEach(function(t){return t.value.visitExpression(n,e)}),t},t.prototype.visitCommaExpr=function(t,e){this.visitAllExpressions(t.parts,e)},t.prototype.visitAllExpressions=function(t,e){var n=this;t.forEach(function(t){return t.visitExpression(n,e)})},t.prototype.visitDeclareVarStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareFunctionStmt=function(t,e){return this.visitAllStatements(t.statements,e),t},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),t},t.prototype.visitReturnStmt=function(t,e){return t.value.visitExpression(this,e),t},t.prototype.visitDeclareClassStmt=function(t,e){var n=this;return t.parent.visitExpression(this,e),t.getters.forEach(function(t){return n.visitAllStatements(t.body,e)}),t.constructorMethod&&this.visitAllStatements(t.constructorMethod.body,e),t.methods.forEach(function(t){return n.visitAllStatements(t.body,e)}),t},t.prototype.visitIfStmt=function(t,e){return t.condition.visitExpression(this,e),this.visitAllStatements(t.trueCase,e),this.visitAllStatements(t.falseCase,e),t},t.prototype.visitTryCatchStmt=function(t,e){return this.visitAllStatements(t.bodyStmts,e),this.visitAllStatements(t.catchStmts,e),t},t.prototype.visitThrowStmt=function(t,e){return t.error.visitExpression(this,e),t},t.prototype.visitCommentStmt=function(t,e){return t},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}(),Xl=function(t){function e(){var e=t.apply(this,arguments)||this;return e.varNames=new Set,e}return zr(e,t),e.prototype.visitDeclareFunctionStmt=function(t,e){return t},e.prototype.visitDeclareClassStmt=function(t,e){return t},e.prototype.visitReadVarExpr=function(t,e){return this.varNames.add(t.name),null},e}(Ql),$l=function(t){function e(e){var n=t.call(this)||this;return n.sourceSpan=e,n}return zr(e,t),e.prototype._clone=function(t){var e=Object.create(t.constructor.prototype);for(var n in t)e[n]=t[n];return e},e.prototype.transformExpr=function(t,e){return t.sourceSpan||(t=this._clone(t),t.sourceSpan=this.sourceSpan),t},e.prototype.transformStmt=function(t,e){return t.sourceSpan||(t=this._clone(t),t.sourceSpan=this.sourceSpan),t},e}(Kl),Zl="$quoted$",Yl=function(){function t(){}return t.prototype.visitArray=function(t,e){var n=this;return vn(t.map(function(t){return p(t,n,null)}),e)},t.prototype.visitStringMap=function(t,e){var n=this,r=[],o=new Set(t&&t[Zl]);return Object.keys(t).forEach(function(e){r.push(new Pl(e,p(t[e],n,null),o.has(e)))}),new Tl(r,e)},t.prototype.visitPrimitive=function(t,e){return _n(t,e)},t.prototype.visitOther=function(t,e){return t instanceof il?t:hn({reference:t})},t}(),Jl=function(){function t(t){this.compType=t}return t}(),tp=function(){function t(t,e,n){this.statements=t,this.ngModuleFactoryVar=e,this.dependencies=n}return t}(),ep=function(){function t(){}return t.prototype.compile=function(t,e){var n=ot("NgModule",t.type),r=[],o=[],i=t.transitiveModule.entryComponents.map(function(e){return t.bootstrapComponents.some(function(t){return t.reference===e.componentType})&&o.push({reference:e.componentFactory}),r.push(new Jl(e.componentType)),{reference:e.componentFactory}}),s=new np(t,i,o,n),a=new Ou(t,e,n);a.parse().forEach(function(t){return s.addProvider(t)});var u=s.build(),c=g(t.type)+"NgFactory",l=pn(c).set(hn(ue(wu.NgModuleFactory)).instantiate([pn(u.name),hn(t.type)],fn(ue(wu.NgModuleFactory),[fn(t.type)],[Qc.Const]))).toDeclStmt(null,[Il.Final]),p=[u,l];if(t.id){var h=hn(ue(wu.RegisterModuleFactoryFn)).callFn([_n(t.id),pn(c)]).toStmt();p.push(h)}return new tp(p,c,r)},t}();ep.decorators=[{type:F}],ep.ctorParameters=function(){return[]};var np=function(){function t(t,e,n,r){this._ngModuleMeta=t,this._entryComponentFactories=e,this._bootstrapComponentFactories=n,this._sourceSpan=r,this.fields=[],this.getters=[],this.methods=[],this.ctorStmts=[],this._lazyProps=new Map,this._tokens=[],this._instances=new Map,this._createStmts=[],this._destroyStmts=[]}return t.prototype.addProvider=function(t){var n=this,r=t.providers.map(function(t){return n._getProviderValue(t)}),o="_"+x(t.token)+"_"+this._instances.size,i=this._createProviderProperty(o,t,r,t.multiProvider,t.eager);if(t.lifecycleHooks.indexOf(e.ɵLifecycleHooks.OnDestroy)!==-1){var s=i.callMethod("ngOnDestroy",[]);t.eager||(s=this._lazyProps.get(i.name).and(s)),this._destroyStmts.push(s.toStmt())}this._tokens.push(t.token),this._instances.set(P(t.token),i)},t.prototype.build=function(){var t=this,e=this._tokens.map(function(e){var n=t._instances.get(P(e));return new zl(op.token.identical(En(e)),[new Vl(n)])}),n=[new Hl("createInternal",[],this._createStmts.concat(new Vl(this._instances.get(this._ngModuleMeta.type.reference))),fn(this._ngModuleMeta.type)),new Hl("getInternal",[new bl(op.token.name,el),new bl(op.notFoundResult.name,el)],e.concat([new Vl(op.notFoundResult)]),el),new Hl("destroyInternal",[],this._destroyStmts)],r=[pn(rp.parent.name),vn(this._entryComponentFactories.map(function(t){return hn(t)})),vn(this._bootstrapComponentFactories.map(function(t){return hn(t)}))],o=g(this._ngModuleMeta.type)+"Injector";return bn({name:o,ctorParams:[new bl(rp.parent.name,fn(ue(wu.Injector)))],parent:hn(ue(wu.NgModuleInjector),[fn(this._ngModuleMeta.type)]),parentArgs:r,builders:[{methods:n},this]})},t.prototype._getProviderValue=function(t){var e,n=this;if(null!=t.useExisting)e=this._getDependency({token:t.useExisting});else if(null!=t.useFactory){var r=t.deps||t.useFactory.diDeps,o=r.map(function(t){return n._getDependency(t)});e=hn(t.useFactory).callFn(o)}else if(null!=t.useClass){var r=t.deps||t.useClass.diDeps,o=r.map(function(t){return n._getDependency(t)});e=hn(t.useClass).instantiate(o,fn(t.useClass))}else e=Cn(t.useValue);return e},t.prototype._createProviderProperty=function(t,e,n,r,o){var i,s;if(r?(i=vn(n),s=new Jc(el)):(i=n[0],s=n[0].type),s||(s=el),o)this.fields.push(new Ul(t,s)),this._createStmts.push(Ol.prop(t).set(i).toStmt());else{var a=Ol.prop("_"+t);this.fields.push(new Ul(a.name,s));var u=[new zl(a.isBlank(),[a.set(i).toStmt()]),new Vl(a)];this.getters.push(new Bl(t,u,s)),this._lazyProps.set(t,a)}return Ol.prop(t)},t.prototype._getDependency=function(t){var e=null;if(t.isValue&&(e=_n(t.value)),t.isSkipSelf||(t.token&&(P(t.token)===ae(wu.Injector)?e=Ol:P(t.token)===ae(wu.ComponentFactoryResolver)&&(e=Ol.prop("componentFactoryResolver"))),e||(e=this._instances.get(P(t.token)))),!e){var n=[En(t.token)];t.isOptional&&n.push(Rl),e=rp.parent.callMethod("get",n)}return e},t}(),rp=function(){function t(){}return t}();rp.parent=Ol.prop("parent");var op=function(){function t(){}return t}();op.token=pn("token"),op.notFoundResult=pn("notFoundResult");var ip=3,sp="# sourceMappingURL=data:application/json;base64,",ap=function(){function t(t){void 0===t&&(t=null),this.file=t,this.sourcesContent=new Map,this.lines=[],this.lastCol0=0,this.hasMappings=!1}return t.prototype.addSource=function(t,e){return void 0===e&&(e=null),this.sourcesContent.has(t)||this.sourcesContent.set(t,e),this},t.prototype.addLine=function(){return this.lines.push([]),this.lastCol0=0,this},t.prototype.addMapping=function(t,e,n,r){if(!this.currentLine)throw new Error("A line must be added before mappings can be added");if(null!=e&&!this.sourcesContent.has(e))throw new Error('Unknown source file "'+e+'"');if(null==t)throw new Error("The column in the generated code must be provided");if(t<this.lastCol0)throw new Error("Mapping should be added in output order");if(e&&(null==n||null==r))throw new Error("The source location must be provided when a source url is provided");return this.hasMappings=!0,this.lastCol0=t,this.currentLine.push({col0:t,sourceUrl:e,sourceLine0:n,sourceCol0:r}),this},Object.defineProperty(t.prototype,"currentLine",{get:function(){return this.lines.slice(-1)[0]},enumerable:!0,configurable:!0}),t.prototype.toJSON=function(){var t=this;if(!this.hasMappings)return null;var e=new Map,n=[],r=[];Array.from(this.sourcesContent.keys()).forEach(function(o,i){e.set(o,i),n.push(o),r.push(t.sourcesContent.get(o)||null)});var o="",i=0,s=0,a=0,u=0;return this.lines.forEach(function(t){i=0,o+=t.map(function(t){var n=xn(t.col0-i);return i=t.col0,null!=t.sourceUrl&&(n+=xn(e.get(t.sourceUrl)-s),s=e.get(t.sourceUrl),n+=xn(t.sourceLine0-a),a=t.sourceLine0,n+=xn(t.sourceCol0-u),u=t.sourceCol0),n}).join(","),o+=";"}),o=o.slice(0,-1),{file:this.file||"",version:ip,sourceRoot:"",sources:n,sourcesContent:r,mappings:o}},t.prototype.toJsComment=function(){return this.hasMappings?"//"+sp+Sn(JSON.stringify(this,null,0)):""},t}(),up="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cp=/'|\\|\n|\r|\$/g,lp=/^[$A-Z_][0-9A-Z_$]*$/i,pp="  ",hp=pn("error"),fp=pn("stack"),dp=function(){function t(t){this.indent=t,this.parts=[],this.srcSpans=[]}return t}(),vp=function(){function t(t,e){this._exportedVars=t,this._indent=e,this._classes=[],this._lines=[new dp(e)]}return t.createRoot=function(e){return new t(e,0)},Object.defineProperty(t.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),t.prototype.isExportedVar=function(t){return this._exportedVars.indexOf(t)!==-1},t.prototype.println=function(t,e){void 0===e&&(e=""),this.print(t,e,!0)},t.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},t.prototype.print=function(t,e,n){void 0===n&&(n=!1),e.length>0&&(this._currentLine.parts.push(e),this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),n&&this._lines.push(new dp(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this._currentLine.indent=this._indent},t.prototype.decIndent=function(){this._indent--,this._currentLine.indent=this._indent},t.prototype.pushClass=function(t){this._classes.push(t)},t.prototype.popClass=function(){return this._classes.pop()},Object.defineProperty(t.prototype,"currentClass",{get:function(){return this._classes.length>0?this._classes[this._classes.length-1]:null},enumerable:!0,configurable:!0}),t.prototype.toSource=function(){return this.sourceLines.map(function(t){return t.parts.length>0?An(t.indent)+t.parts.join(""):""}).join("\n")},t.prototype.toSourceMapGenerator=function(t,e,n){void 0===n&&(n=0);for(var r=new ap(e),o=!1,i=function(){o||(r.addSource(t," ").addMapping(0,t,0,0),o=!0)},s=0;s<n;s++)r.addLine(),i();return this.sourceLines.forEach(function(t,e){r.addLine();for(var n=t.srcSpans,s=t.parts,a=t.indent*pp.length,u=0;u<n.length&&!n[u];)a+=s[u].length,u++;for(u<n.length&&0===e&&0===a?o=!0:i();u<n.length;){var c=n[u],l=c.start.file,p=c.start.line,h=c.start.col;for(r.addSource(l.url,l.content).addMapping(a,l.url,p,h),a+=s[u].length,u++;u<n.length&&(c===n[u]||!n[u]);)a+=s[u].length,u++}}),r},Object.defineProperty(t.prototype,"sourceLines",{get:function(){return this._lines.length&&0===this._lines[this._lines.length-1].parts.length?this._lines.slice(0,-1):this._lines},enumerable:!0,configurable:!0}),t}(),yp=function(){function t(t){this._escapeDollarInStrings=t}return t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitReturnStmt=function(t,e){return e.print(t,"return "),t.value.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCastExpr=function(t,e){},t.prototype.visitDeclareClassStmt=function(t,e){},t.prototype.visitIfStmt=function(t,e){e.print(t,"if ("),t.condition.visitExpression(this,e),e.print(t,") {");var n=null!=t.falseCase&&t.falseCase.length>0;return t.trueCase.length<=1&&!n?(e.print(t," "),this.visitAllStatements(t.trueCase,e),e.removeEmptyLastLine(),e.print(t," ")):(e.println(),e.incIndent(),this.visitAllStatements(t.trueCase,e),e.decIndent(),n&&(e.println(t,"} else {"),e.incIndent(),this.visitAllStatements(t.falseCase,e),e.decIndent())),e.println(t,"}"),null},t.prototype.visitTryCatchStmt=function(t,e){},t.prototype.visitThrowStmt=function(t,e){return e.print(t,"throw "),t.error.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCommentStmt=function(t,e){var n=t.comment.split("\n");return n.forEach(function(n){e.println(t,"// "+n)}),null},t.prototype.visitDeclareVarStmt=function(t,e){},t.prototype.visitWriteVarExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),e.print(t,t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWriteKeyExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"] = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitWritePropExpr=function(t,e){var n=e.lineIsEmpty();return n||e.print(t,"("),t.receiver.visitExpression(this,e),e.print(t,"."+t.name+" = "),t.value.visitExpression(this,e),n||e.print(t,")"),null},t.prototype.visitInvokeMethodExpr=function(t,e){t.receiver.visitExpression(this,e);var n=t.name;return null!=t.builtin&&(n=this.getBuiltinMethodName(t.builtin),null==n)?null:(e.print(t,"."+n+"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null)},t.prototype.getBuiltinMethodName=function(t){},t.prototype.visitInvokeFunctionExpr=function(t,e){return t.fn.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case sl.Super:n="super";break;case sl.This:n="this";break;case sl.CatchError:n=hp.name;break;case sl.CatchStack:n=fp.name;break;default:throw new Error("Unknown builtin variable "+t.builtin)}return e.print(t,n),null},t.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),t.classExpr.visitExpression(this,e),e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},t.prototype.visitLiteralExpr=function(t,e){var n=t.value;return"string"==typeof n?e.print(t,Tn(n,this._escapeDollarInStrings)):e.print(t,""+n),null},t.prototype.visitExternalExpr=function(t,e){},t.prototype.visitConditionalExpr=function(t,e){return e.print(t,"("),t.condition.visitExpression(this,e),e.print(t,"? "),t.trueCase.visitExpression(this,e),e.print(t,": "),t.falseCase.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitNotExpr=function(t,e){return e.print(t,"!"),t.condition.visitExpression(this,e),null},t.prototype.visitFunctionExpr=function(t,e){},t.prototype.visitDeclareFunctionStmt=function(t,e){},t.prototype.visitBinaryOperatorExpr=function(t,e){var n;switch(t.operator){case ol.Equals:n="==";break;case ol.Identical:n="===";break;case ol.NotEquals:n="!=";break;case ol.NotIdentical:n="!==";break;case ol.And:n="&&";break;case ol.Or:n="||";break;case ol.Plus:n="+";break;case ol.Minus:n="-";break;case ol.Divide:n="/";break;case ol.Multiply:n="*";break;case ol.Modulo:n="%";break;case ol.Lower:n="<";break;case ol.LowerEquals:n="<=";break;case ol.Bigger:n=">";break;case ol.BiggerEquals:n=">=";break;default:throw new Error("Unknown operator "+t.operator)}return e.print(t,"("),t.lhs.visitExpression(this,e),e.print(t," "+n+" "),t.rhs.visitExpression(this,e),e.print(t,")"),null},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"."),e.print(t,t.name),null},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e),e.print(t,"["),t.index.visitExpression(this,e),e.print(t,"]"),null},t.prototype.visitLiteralArrayExpr=function(t,e){var n=t.entries.length>1;return e.print(t,"[",n),e.incIndent(),this.visitAllExpressions(t.entries,e,",",n),e.decIndent(),e.print(t,"]",n),null},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r=t.entries.length>1;return e.print(t,"{",r),e.incIndent(),this.visitAllObjects(function(r){e.print(t,Tn(r.key,n._escapeDollarInStrings,r.quoted)+": "),r.value.visitExpression(n,e)},t.entries,e,",",r),e.decIndent(),e.print(t,"}",r),null},t.prototype.visitCommaExpr=function(t,e){return e.print(t,"("),this.visitAllExpressions(t.parts,e,","),e.print(t,")"),null},t.prototype.visitAllExpressions=function(t,e,n,r){var o=this;void 0===r&&(r=!1),this.visitAllObjects(function(t){return t.visitExpression(o,e)},t,e,n,r)},t.prototype.visitAllObjects=function(t,e,n,r,o){void 0===o&&(o=!1);for(var i=0;i<e.length;i++)i>0&&n.print(null,r,o),t(e[i]);o&&n.println()},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}(),mp="/debug/lib",gp=function(){function t(t){this._importResolver=t}return t.prototype.emitStatements=function(t,e,n,r,o){var i=this;void 0===o&&(o="");var s=new _p(e,this._importResolver),a=vp.createRoot(r);s.visitAllStatements(n,a);var u=o?o.split("\n"):[];s.reexports.forEach(function(t,n){var r=t.map(function(t){return t.name+" as "+t.as}).join(",");u.push("export {"+r+"} from '"+i._importResolver.fileNameToModuleName(n,e)+"';")}),s.importsWithPrefixes.forEach(function(t,n){u.push("imp"+("ort * as "+t+" from '"+i._importResolver.fileNameToModuleName(n,e)+"';"))});var c=a.toSourceMapGenerator(t,e,u.length).toJsComment(),l=u.concat([a.toSource(),c]);return c&&l.push(""),l.join("\n")},t}(),_p=function(t){function e(e,n){var r=t.call(this,!1)||this;return r._genFilePath=e,r._importResolver=n,r.typeExpression=0,r.importsWithPrefixes=new Map,r.reexports=new Map,r}return zr(e,t),e.prototype.visitType=function(t,e,n){void 0===n&&(n="any"),null!=t?(this.typeExpression++,t.visitType(this,e),this.typeExpression--):e.print(null,n)},e.prototype.visitLiteralExpr=function(e,n){var r=e.value;return null==r&&e.type!=nl?(n.print(e,"("+r+" as any)"),null):t.prototype.visitLiteralExpr.call(this,e,n)},e.prototype.visitLiteralArrayExpr=function(e,n){0===e.entries.length&&n.print(e,"(");var r=t.prototype.visitLiteralArrayExpr.call(this,e,n);return 0===e.entries.length&&n.print(e," as any[])"),r},e.prototype.visitExternalExpr=function(t,e){return this._visitIdentifier(t.value,t.typeParams,e),null},e.prototype.visitDeclareVarStmt=function(t,e){if(e.isExportedVar(t.name)&&t.value instanceof yl&&!t.type){var n=this._resolveStaticSymbol(t.value.value),r=n.name,o=n.filePath,i=n.members;if(0===i.length&&o!==this._genFilePath){var s=this.reexports.get(o);return s||(s=[],this.reexports.set(o,s)),s.push({name:r,as:t.name}),null}}return e.isExportedVar(t.name)&&e.print(t,"export "),t.hasModifier(Il.Final)?e.print(t,"const"):e.print(t,"var"),e.print(t," "+t.name),this._printColonType(t.type,e),e.print(t," = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return e.print(t,"(<"),t.type.visitType(this,e),e.print(t,">"),t.value.visitExpression(this,e),e.print(t,")"),null},e.prototype.visitInstantiateExpr=function(t,e){return e.print(t,"new "),this.typeExpression++,t.classExpr.visitExpression(this,e),this.typeExpression--,e.print(t,"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null},e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),e.isExportedVar(t.name)&&e.print(t,"export "),e.print(t,"class "+t.name),null!=t.parent&&(e.print(t," extends "),this.typeExpression++,t.parent.visitExpression(this,e),this.typeExpression--),e.println(t," {"),e.incIndent(),t.fields.forEach(function(t){return n._visitClassField(t,e)}),null!=t.constructorMethod&&this._visitClassConstructor(t,e),t.getters.forEach(function(t){return n._visitClassGetter(t,e)}),t.methods.forEach(function(t){return n._visitClassMethod(t,e)}),e.decIndent(),e.println(t,"}"),e.popClass(),null},e.prototype._visitClassField=function(t,e){t.hasModifier(Il.Private)&&e.print(null,"/*private*/ "),e.print(null,t.name),this._printColonType(t.type,e),e.println(null,";")},e.prototype._visitClassGetter=function(t,e){t.hasModifier(Il.Private)&&e.print(null,"private "),e.print(null,"get "+t.name+"()"),this._printColonType(t.type,e),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype._visitClassConstructor=function(t,e){e.print(t,"constructor("),this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.constructorMethod.body,e),e.decIndent(),e.println(t,"}")},e.prototype._visitClassMethod=function(t,e){t.hasModifier(Il.Private)&&e.print(null,"private "),e.print(null,t.name+"("),this._visitParams(t.params,e),e.print(null,")"),this._printColonType(t.type,e,"void"),e.println(null," {"),e.incIndent(),this.visitAllStatements(t.body,e),e.decIndent(),e.println(null,"}")},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," => {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.isExportedVar(t.name)&&e.print(t,"export "),e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.print(t,")"),this._printColonType(t.type,e,"void"),e.println(t," {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+hp.name+") {"),e.incIndent();var n=[fp.set(hp.prop("stack")).toDeclStmt(null,[Il.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitBuiltintType=function(t,e){var n;switch(t.name){case $c.Bool:n="boolean";break;case $c.Dynamic:n="any";break;case $c.Function:n="Function";break;case $c.Number:n="number";break;case $c.Int:n="number";break;case $c.String:n="string";break;default:throw new Error("Unsupported builtin type "+t.name)}return e.print(null,n),null},e.prototype.visitExpressionType=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitArrayType=function(t,e){return this.visitType(t.of,e),e.print(null,"[]"),null},e.prototype.visitMapType=function(t,e){return e.print(null,"{[key: string]:"),this.visitType(t.valueType,e),e.print(null,"}"),null},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case pl.ConcatArray:e="concat";break;case pl.SubscribeObservable:e="subscribe";break;case pl.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e.prototype._visitParams=function(t,e){var n=this;this.visitAllObjects(function(t){e.print(null,t.name),n._printColonType(t.type,e)},t,e,",")},e.prototype._resolveStaticSymbol=function(t){var e=t.reference;if(!(e instanceof ao))throw new Error("Internal error: unknown identifier "+JSON.stringify(t));var n=this._importResolver.getTypeArity(e)||void 0,r=this._importResolver.getImportAs(e)||e;return{name:r.name,filePath:r.filePath,members:r.members,arity:n}},e.prototype._visitIdentifier=function(t,e,n){var r=this,o=this._resolveStaticSymbol(t),i=o.name,s=o.filePath,a=o.members,u=o.arity;if(s!=this._genFilePath){var c=this.importsWithPrefixes.get(s);null==c&&(c="import"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(s,c)),n.print(null,c+".")}if(a.length?(n.print(null,i),n.print(null,"."),n.print(null,a.join("."))):n.print(null,i),this.typeExpression>0){var l=e&&e.length||0,p=(u||0)-l;if(l>0||p>0){if(n.print(null,"<"),l>0&&this.visitAllObjects(function(t){return t.visitType(r,n)},e,n,","),p>0)for(var h=0;h<p;h++)(h>0||l>0)&&n.print(null,","),n.print(null,"any");n.print(null,">")}}},e.prototype._printColonType=function(t,e,n){t!==nl&&(e.print(null,":"),this.visitType(t,e,n))},e}(yp),bp={};Mn(e.SecurityContext.HTML,["iframe|srcdoc","*|innerHTML","*|outerHTML"]),Mn(e.SecurityContext.STYLE,["*|style"]),Mn(e.SecurityContext.URL,["*|formAction","area|href","area|ping","audio|src","a|href","a|ping","blockquote|cite","body|background","del|cite","form|action","img|src","img|srcset","input|src","ins|cite","q|cite","source|src","source|srcset","track|src","video|poster","video|src"]),Mn(e.SecurityContext.RESOURCE_URL,["applet|code","applet|codebase","base|href","embed|src","frame|src","head|profile","html|manifest","iframe|src","link|href","media|src","object|codebase","object|data","script|src"]);var wp="boolean",Cp="number",Ep="string",Sp="object",xp=["[Element]|textContent,%classList,className,id,innerHTML,*beforecopy,*beforecut,*beforepaste,*copy,*cut,*paste,*search,*selectstart,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerHTML,#scrollLeft,#scrollTop","[HTMLElement]^[Element]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","abbr,address,article,aside,b,bdi,bdo,cite,code,dd,dfn,dt,em,figcaption,figure,footer,header,i,kbd,main,mark,nav,noscript,rb,rp,rt,rtc,ruby,s,samp,section,small,strong,sub,sup,u,var,wbr^[HTMLElement]|accessKey,contentEditable,dir,!draggable,!hidden,innerText,lang,*abort,*beforecopy,*beforecut,*beforepaste,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*copy,*cuechange,*cut,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*message,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*mozfullscreenchange,*mozfullscreenerror,*mozpointerlockchange,*mozpointerlockerror,*paste,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*search,*seeked,*seeking,*select,*selectstart,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,*webglcontextcreationerror,*webglcontextlost,*webglcontextrestored,*webkitfullscreenchange,*webkitfullscreenerror,*wheel,outerText,!spellcheck,%style,#tabIndex,title,!translate","media^[HTMLElement]|!autoplay,!controls,%crossOrigin,#currentTime,!defaultMuted,#defaultPlaybackRate,!disableRemotePlayback,!loop,!muted,*encrypted,#playbackRate,preload,src,%srcObject,#volume",":svg:^[HTMLElement]|*abort,*blur,*cancel,*canplay,*canplaythrough,*change,*click,*close,*contextmenu,*cuechange,*dblclick,*drag,*dragend,*dragenter,*dragleave,*dragover,*dragstart,*drop,*durationchange,*emptied,*ended,*error,*focus,*input,*invalid,*keydown,*keypress,*keyup,*load,*loadeddata,*loadedmetadata,*loadstart,*mousedown,*mouseenter,*mouseleave,*mousemove,*mouseout,*mouseover,*mouseup,*mousewheel,*pause,*play,*playing,*progress,*ratechange,*reset,*resize,*scroll,*seeked,*seeking,*select,*show,*stalled,*submit,*suspend,*timeupdate,*toggle,*volumechange,*waiting,%style,#tabIndex",":svg:graphics^:svg:|",":svg:animation^:svg:|*begin,*end,*repeat",":svg:geometry^:svg:|",":svg:componentTransferFunction^:svg:|",":svg:gradient^:svg:|",":svg:textContent^:svg:graphics|",":svg:textPositioning^:svg:textContent|","a^[HTMLElement]|charset,coords,download,hash,host,hostname,href,hreflang,name,password,pathname,ping,port,protocol,referrerPolicy,rel,rev,search,shape,target,text,type,username","area^[HTMLElement]|alt,coords,hash,host,hostname,href,!noHref,password,pathname,ping,port,protocol,referrerPolicy,search,shape,target,username","audio^media|","br^[HTMLElement]|clear","base^[HTMLElement]|href,target","body^[HTMLElement]|aLink,background,bgColor,link,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,text,vLink","button^[HTMLElement]|!autofocus,!disabled,formAction,formEnctype,formMethod,!formNoValidate,formTarget,name,type,value","canvas^[HTMLElement]|#height,#width","content^[HTMLElement]|select","dl^[HTMLElement]|!compact","datalist^[HTMLElement]|","details^[HTMLElement]|!open","dialog^[HTMLElement]|!open,returnValue","dir^[HTMLElement]|!compact","div^[HTMLElement]|align","embed^[HTMLElement]|align,height,name,src,type,width","fieldset^[HTMLElement]|!disabled,name","font^[HTMLElement]|color,face,size","form^[HTMLElement]|acceptCharset,action,autocomplete,encoding,enctype,method,name,!noValidate,target","frame^[HTMLElement]|frameBorder,longDesc,marginHeight,marginWidth,name,!noResize,scrolling,src","frameset^[HTMLElement]|cols,*beforeunload,*blur,*error,*focus,*hashchange,*languagechange,*load,*message,*offline,*online,*pagehide,*pageshow,*popstate,*rejectionhandled,*resize,*scroll,*storage,*unhandledrejection,*unload,rows","hr^[HTMLElement]|align,color,!noShade,size,width","head^[HTMLElement]|","h1,h2,h3,h4,h5,h6^[HTMLElement]|align","html^[HTMLElement]|version","iframe^[HTMLElement]|align,!allowFullscreen,frameBorder,height,longDesc,marginHeight,marginWidth,name,referrerPolicy,%sandbox,scrolling,src,srcdoc,width","img^[HTMLElement]|align,alt,border,%crossOrigin,#height,#hspace,!isMap,longDesc,lowsrc,name,referrerPolicy,sizes,src,srcset,useMap,#vspace,#width","input^[HTMLElement]|accept,align,alt,autocapitalize,autocomplete,!autofocus,!checked,!defaultChecked,defaultValue,dirName,!disabled,%files,formAction,formEnctype,formMethod,!formNoValidate,formTarget,#height,!incremental,!indeterminate,max,#maxLength,min,#minLength,!multiple,name,pattern,placeholder,!readOnly,!required,selectionDirection,#selectionEnd,#selectionStart,#size,src,step,type,useMap,value,%valueAsDate,#valueAsNumber,#width","keygen^[HTMLElement]|!autofocus,challenge,!disabled,keytype,name","li^[HTMLElement]|type,#value","label^[HTMLElement]|htmlFor","legend^[HTMLElement]|align","link^[HTMLElement]|as,charset,%crossOrigin,!disabled,href,hreflang,integrity,media,rel,%relList,rev,%sizes,target,type","map^[HTMLElement]|name","marquee^[HTMLElement]|behavior,bgColor,direction,height,#hspace,#loop,#scrollAmount,#scrollDelay,!trueSpeed,#vspace,width","menu^[HTMLElement]|!compact","meta^[HTMLElement]|content,httpEquiv,name,scheme","meter^[HTMLElement]|#high,#low,#max,#min,#optimum,#value","ins,del^[HTMLElement]|cite,dateTime","ol^[HTMLElement]|!compact,!reversed,#start,type","object^[HTMLElement]|align,archive,border,code,codeBase,codeType,data,!declare,height,#hspace,name,standby,type,useMap,#vspace,width","optgroup^[HTMLElement]|!disabled,label","option^[HTMLElement]|!defaultSelected,!disabled,label,!selected,text,value","output^[HTMLElement]|defaultValue,%htmlFor,name,value","p^[HTMLElement]|align","param^[HTMLElement]|name,type,value,valueType","picture^[HTMLElement]|","pre^[HTMLElement]|#width","progress^[HTMLElement]|#max,#value","q,blockquote,cite^[HTMLElement]|","script^[HTMLElement]|!async,charset,%crossOrigin,!defer,event,htmlFor,integrity,src,text,type","select^[HTMLElement]|!autofocus,!disabled,#length,!multiple,name,!required,#selectedIndex,#size,value","shadow^[HTMLElement]|","source^[HTMLElement]|media,sizes,src,srcset,type","span^[HTMLElement]|","style^[HTMLElement]|!disabled,media,type","caption^[HTMLElement]|align","th,td^[HTMLElement]|abbr,align,axis,bgColor,ch,chOff,#colSpan,headers,height,!noWrap,#rowSpan,scope,vAlign,width","col,colgroup^[HTMLElement]|align,ch,chOff,#span,vAlign,width","table^[HTMLElement]|align,bgColor,border,%caption,cellPadding,cellSpacing,frame,rules,summary,%tFoot,%tHead,width","tr^[HTMLElement]|align,bgColor,ch,chOff,vAlign","tfoot,thead,tbody^[HTMLElement]|align,ch,chOff,vAlign","template^[HTMLElement]|","textarea^[HTMLElement]|autocapitalize,!autofocus,#cols,defaultValue,dirName,!disabled,#maxLength,#minLength,name,placeholder,!readOnly,!required,#rows,selectionDirection,#selectionEnd,#selectionStart,value,wrap","title^[HTMLElement]|text","track^[HTMLElement]|!default,kind,label,src,srclang","ul^[HTMLElement]|!compact,type","unknown^[HTMLElement]|","video^media|#height,poster,#width",":svg:a^:svg:graphics|",":svg:animate^:svg:animation|",":svg:animateMotion^:svg:animation|",":svg:animateTransform^:svg:animation|",":svg:circle^:svg:geometry|",":svg:clipPath^:svg:graphics|",":svg:cursor^:svg:|",":svg:defs^:svg:graphics|",":svg:desc^:svg:|",":svg:discard^:svg:|",":svg:ellipse^:svg:geometry|",":svg:feBlend^:svg:|",":svg:feColorMatrix^:svg:|",":svg:feComponentTransfer^:svg:|",":svg:feComposite^:svg:|",":svg:feConvolveMatrix^:svg:|",":svg:feDiffuseLighting^:svg:|",":svg:feDisplacementMap^:svg:|",":svg:feDistantLight^:svg:|",":svg:feDropShadow^:svg:|",":svg:feFlood^:svg:|",":svg:feFuncA^:svg:componentTransferFunction|",":svg:feFuncB^:svg:componentTransferFunction|",":svg:feFuncG^:svg:componentTransferFunction|",":svg:feFuncR^:svg:componentTransferFunction|",":svg:feGaussianBlur^:svg:|",":svg:feImage^:svg:|",":svg:feMerge^:svg:|",":svg:feMergeNode^:svg:|",":svg:feMorphology^:svg:|",":svg:feOffset^:svg:|",":svg:fePointLight^:svg:|",":svg:feSpecularLighting^:svg:|",":svg:feSpotLight^:svg:|",":svg:feTile^:svg:|",":svg:feTurbulence^:svg:|",":svg:filter^:svg:|",":svg:foreignObject^:svg:graphics|",":svg:g^:svg:graphics|",":svg:image^:svg:graphics|",":svg:line^:svg:geometry|",":svg:linearGradient^:svg:gradient|",":svg:mpath^:svg:|",":svg:marker^:svg:|",":svg:mask^:svg:|",":svg:metadata^:svg:|",":svg:path^:svg:geometry|",":svg:pattern^:svg:|",":svg:polygon^:svg:geometry|",":svg:polyline^:svg:geometry|",":svg:radialGradient^:svg:gradient|",":svg:rect^:svg:geometry|",":svg:svg^:svg:graphics|#currentScale,#zoomAndPan",":svg:script^:svg:|type",":svg:set^:svg:animation|",":svg:stop^:svg:|",":svg:style^:svg:|!disabled,media,title,type",":svg:switch^:svg:graphics|",":svg:symbol^:svg:|",":svg:tspan^:svg:textPositioning|",":svg:text^:svg:textPositioning|",":svg:textPath^:svg:textContent|",":svg:title^:svg:|",":svg:use^:svg:graphics|",":svg:view^:svg:|#zoomAndPan","data^[HTMLElement]|value","menuitem^[HTMLElement]|type,label,icon,!disabled,!checked,radiogroup,!default","summary^[HTMLElement]|","time^[HTMLElement]|dateTime"],Pp={
  class:"className",for:"htmlFor",formaction:"formAction",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Tp=function(t){function n(){var e=t.call(this)||this;return e._schema={},xp.forEach(function(t){var n={},r=t.split("|"),o=r[0],i=r[1],s=i.split(","),a=o.split("^"),u=a[0],c=a[1];u.split(",").forEach(function(t){return e._schema[t.toLowerCase()]=n});var l=c&&e._schema[c.toLowerCase()];l&&Object.keys(l).forEach(function(t){n[t]=l[t]}),s.forEach(function(t){if(t.length>0)switch(t[0]){case"*":break;case"!":n[t.substring(1)]=wp;break;case"#":n[t.substring(1)]=Cp;break;case"%":n[t.substring(1)]=Sp;break;default:n[t]=Ep}})}),e}return zr(n,t),n.prototype.hasProperty=function(t,n,r){if(r.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if("ng-container"===t||"ng-content"===t)return!1;if(r.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}var o=this._schema[t.toLowerCase()]||this._schema.unknown;return!!o[n]},n.prototype.hasElement=function(t,n){if(n.some(function(t){return t.name===e.NO_ERRORS_SCHEMA.name}))return!0;if(t.indexOf("-")>-1){if("ng-container"===t||"ng-content"===t)return!0;if(n.some(function(t){return t.name===e.CUSTOM_ELEMENTS_SCHEMA.name}))return!0}return!!this._schema[t.toLowerCase()]},n.prototype.securityContext=function(t,n,r){r&&(n=this.getMappedPropName(n)),t=t.toLowerCase(),n=n.toLowerCase();var o=bp[t+"|"+n];return o?o:(o=bp["*|"+n],o?o:e.SecurityContext.NONE)},n.prototype.getMappedPropName=function(t){return Pp[t]||t},n.prototype.getDefaultComponentElementName=function(){return"ng-component"},n.prototype.validateProperty=function(t){if(t.toLowerCase().startsWith("on")){var e="Binding to event property '"+t+"' is disallowed for security reasons, "+("please use ("+t.slice(2)+")=...")+("\nIf '"+t+"' is a directive input, make sure the directive is imported by the")+" current module.";return{error:!0,msg:e}}return{error:!1}},n.prototype.validateAttribute=function(t){if(t.toLowerCase().startsWith("on")){var e="Binding to event attribute '"+t+"' is disallowed for security reasons, "+("please use ("+t.slice(2)+")=...");return{error:!0,msg:e}}return{error:!1}},n.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},n.prototype.normalizeAnimationStyleProperty=function(t){return a(t)},n.prototype.normalizeAnimationStyleValue=function(t,e,n){var r="",o=n.toString().trim(),i=null;if(Rn(t)&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&(i="Please provide a CSS unit value for "+e+":"+n)}return{error:i,value:o+r}},n}(Mu);Tp.decorators=[{type:F}],Tp.ctorParameters=function(){return[]};var Ap=function(){function t(){this.strictStyling=!0}return t.prototype.shimCssText=function(t,e,n){void 0===n&&(n="");var r=In(t);return t=kn(t),t=this._insertDirectives(t),this._scopeCssText(t,e,n)+r},t.prototype._insertDirectives=function(t){return t=this._insertPolyfillDirectivesInCssText(t),this._insertPolyfillRulesInCssText(t)},t.prototype._insertPolyfillDirectivesInCssText=function(t){return t.replace(Mp,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[2]+"{"})},t.prototype._insertPolyfillRulesInCssText=function(t){return t.replace(Rp,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var n=t[0].replace(t[1],"").replace(t[2],"");return t[4]+n})},t.prototype._scopeCssText=function(t,e,n){var r=this._extractUnscopedRulesFromCssText(t);return t=this._insertPolyfillHostInCssText(t),t=this._convertColonHost(t),t=this._convertColonHostContext(t),t=this._convertShadowDOMSelectors(t),e&&(t=this._scopeSelectors(t,e,n)),t=t+"\n"+r,t.trim()},t.prototype._extractUnscopedRulesFromCssText=function(t){var e,n="";for(kp.lastIndex=0;null!==(e=kp.exec(t));){var r=e[0].replace(e[2],"").replace(e[1],e[4]);n+=r+"\n\n"}return n},t.prototype._convertColonHost=function(t){return this._convertColonRule(t,jp,this._colonHostPartReplacer)},t.prototype._convertColonHostContext=function(t){return this._convertColonRule(t,Lp,this._colonHostContextPartReplacer)},t.prototype._convertColonRule=function(t,e,n){return t.replace(e,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(t[2]){for(var r=t[2].split(","),o=[],i=0;i<r.length;i++){var s=r[i].trim();if(!s)break;o.push(n(Vp,s,t[3]))}return o.join(",")}return Vp+t[3]})},t.prototype._colonHostContextPartReplacer=function(t,e,n){return e.indexOf(Ip)>-1?this._colonHostPartReplacer(t,e,n):t+e+n+", "+e+" "+t+n},t.prototype._colonHostPartReplacer=function(t,e,n){return t+e.replace(Ip,"")+n},t.prototype._convertShadowDOMSelectors=function(t){return Up.reduce(function(t,e){return t.replace(e," ")},t)},t.prototype._scopeSelectors=function(t,e,n){var r=this;return Nn(t,function(t){var o=t.selector,i=t.content;return"@"!=t.selector[0]?o=r._scopeSelector(t.selector,e,n,r.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(i=r._scopeSelectors(t.content,e,n)),new Jp(o,i)})},t.prototype._scopeSelector=function(t,e,n,r){var o=this;return t.split(",").map(function(t){return t.trim().split(Hp)}).map(function(t){var i=t[0],s=t.slice(1),a=function(t){return o._selectorNeedsScoping(t,e)?r?o._applyStrictSelectorScope(t,e,n):o._applySelectorScope(t,e,n):t};return[a(i)].concat(s).join(" ")}).join(", ")},t.prototype._selectorNeedsScoping=function(t,e){var n=this._makeScopeMatcher(e);return!n.test(t)},t.prototype._makeScopeMatcher=function(t){var e=/\[/g,n=/\]/g;return t=t.replace(e,"\\[").replace(n,"\\]"),new RegExp("^("+t+")"+Bp,"m")},t.prototype._applySelectorScope=function(t,e,n){return this._applySimpleSelectorScope(t,e,n)},t.prototype._applySimpleSelectorScope=function(t,e,n){if(qp.lastIndex=0,qp.test(t)){var r=this.strictStyling?"["+n+"]":e;return t.replace(Fp,function(t,e){return e.replace(/([^:]*)(:*)(.*)/,function(t,e,n,o){return e+r+n+o})}).replace(qp,r+" ")}return e+" "+t},t.prototype._applyStrictSelectorScope=function(t,e,n){var r=this,o=/\[is=([^\]]*)\]/g;e=e.replace(o,function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e[0]});var i="["+e+"]",s=function(t){var o=t.trim();if(!o)return"";if(t.indexOf(Vp)>-1)o=r._applySimpleSelectorScope(t,e,n);else{var s=t.replace(qp,"");if(s.length>0){var a=s.match(/([^:]*)(:*)(.*)/);a&&(o=a[1]+i+a[2]+a[3])}}return o},a=new Op(t);t=a.content();for(var u,c="",l=0,p=/( |>|\+|~(?!=))\s*/g,h=t.indexOf(Vp);null!==(u=p.exec(t));){var f=u[1],d=t.slice(l,u.index).trim(),v=l>=h?s(d):d;c+=v+" "+f+" ",l=p.lastIndex}return c+=s(t.substring(l)),a.restore(c)},t.prototype._insertPolyfillHostInCssText=function(t){return t.replace(Gp,Np).replace(zp,Ip)},t}(),Op=function(){function t(t){var e=this;this.placeholders=[],this.index=0,t=t.replace(/(\[[^\]]*\])/g,function(t,n){var r="__ph-"+e.index+"__";return e.placeholders.push(n),e.index++,r}),this._content=t.replace(/(:nth-[-\w]+)(\([^)]+\))/g,function(t,n,r){var o="__ph-"+e.index+"__";return e.placeholders.push(r),e.index++,n+o})}return t.prototype.restore=function(t){var e=this;return t.replace(/__ph-(\d+)__/g,function(t,n){return e.placeholders[+n]})},t.prototype.content=function(){return this._content},t}(),Mp=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Rp=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,kp=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Ip="-shadowcsshost",Np="-shadowcsscontext",Dp=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",jp=new RegExp("("+Ip+Dp,"gim"),Lp=new RegExp("("+Np+Dp,"gim"),Vp=Ip+"-no-combinator",Fp=/-shadowcsshost-no-combinator([^\s]*)/,Up=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Hp=/(?:>>>)|(?:\/deep\/)/g,Bp="([>\\s~+[.,{:][\\s\\S]*)?$",qp=/-shadowcsshost/gim,zp=/:host/gim,Gp=/:host-context/gim,Wp=/\/\*\s*[\s\S]*?\*\//g,Kp=/\/\*\s*#\s*sourceMappingURL=[\s\S]+?\*\//,Qp=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,Xp=/([{}])/g,$p="{",Zp="}",Yp="%BLOCK%",Jp=function(){function t(t,e){this.selector=t,this.content=e}return t}(),th=function(){function t(t,e){this.escapedString=t,this.blocks=e}return t}(),eh="%COMP%",nh="_nghost-"+eh,rh="_ngcontent-"+eh,oh=function(){function t(t,e,n,r){this.name=t,this.moduleUrl=e,this.isShimmed=n,this.valuePlaceholder=r}return t}(),ih=function(){function t(t,e){this.componentStylesheet=t,this.externalStylesheets=e}return t}(),sh=function(){function t(t,e,n,r,o){this.statements=t,this.stylesVar=e,this.dependencies=n,this.isShimmed=r,this.meta=o}return t}(),ah=function(){function t(t){this._urlResolver=t,this._shadowCss=new Ap}return t.prototype.compileComponent=function(t){var e=this,n=[],r=this._compileStyles(t,new Uo({styles:t.template.styles,styleUrls:t.template.styleUrls,moduleUrl:_(t.type)}),!0);return t.template.externalStylesheets.forEach(function(r){var o=e._compileStyles(t,r,!1);n.push(o)}),new ih(r,n)},t.prototype._compileStyles=function(t,n,r){for(var o=this,i=t.template.encapsulation===e.ViewEncapsulation.Emulated,s=n.styles.map(function(t){return _n(o._shimIfNeeded(t,i))}),a=[],u=0;u<n.styleUrls.length;u++){var c={reference:null};a.push(new oh(jn(null),n.styleUrls[u],i,c)),s.push(new yl(c))}var l=jn(r?t:null),p=pn(l).set(vn(s,new Jc(el,[Qc.Const]))).toDeclStmt(null,[Il.Final]);return new sh([p],l,a,i,n)},t.prototype._shimIfNeeded=function(t,e){return e?this._shadowCss.shimCssText(t,rh,nh):t},t}();ah.decorators=[{type:F}],ah.ctorParameters=function(){return[{type:Nc}]};var uh=function(){function t(){}return t}();uh.event=pn("$event");var ch=function(){function t(t,e){this.stmts=t,this.allowDefault=e}return t}(),lh=function(){function t(t,e){this.stmts=t,this.currValExpr=e}return t}(),ph={};ph.Statement=0,ph.Expression=1,ph[ph.Statement]="Statement",ph[ph.Expression]="Expression";var hh=function(t){function e(e){var n=t.call(this)||this;return n._converterFactory=e,n}return zr(e,t),e.prototype.visitPipe=function(t,e){var n=this,r=[t.exp].concat(t.args).map(function(t){return t.visit(n,e)});return new vh(t.span,r,this._converterFactory.createPipeConverter(t.name,r.length))},e.prototype.visitLiteralArray=function(t,e){var n=this,r=t.expressions.map(function(t){return t.visit(n,e)});return new vh(t.span,r,this._converterFactory.createLiteralArrayConverter(t.expressions.length))},e.prototype.visitLiteralMap=function(t,e){var n=this,r=t.values.map(function(t){return t.visit(n,e)});return new vh(t.span,r,this._converterFactory.createLiteralMapConverter(t.keys))},e}(bi),fh=function(){function t(t,e,n){this._localResolver=t,this._implicitReceiver=e,this.bindingId=n,this._nodeMap=new Map,this._resultMap=new Map,this._currentTemporary=0,this.temporaryCount=0}return t.prototype.visitBinary=function(t,e){var n;switch(t.operation){case"+":n=ol.Plus;break;case"-":n=ol.Minus;break;case"*":n=ol.Multiply;break;case"/":n=ol.Divide;break;case"%":n=ol.Modulo;break;case"&&":n=ol.And;break;case"||":n=ol.Or;break;case"==":n=ol.Equals;break;case"!=":n=ol.NotEquals;break;case"===":n=ol.Identical;break;case"!==":n=ol.NotIdentical;break;case"<":n=ol.Lower;break;case">":n=ol.Bigger;break;case"<=":n=ol.LowerEquals;break;case">=":n=ol.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return Wn(e,new Cl(n,this.visit(t.left,ph.Expression),this.visit(t.right,ph.Expression)))},t.prototype.visitChain=function(t,e){return zn(e,t),this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){var n=this.visit(t.condition,ph.Expression);return Wn(e,n.conditional(this.visit(t.trueExp,ph.Expression),this.visit(t.falseExp,ph.Expression)))},t.prototype.visitPipe=function(t,e){throw new Error("Illegal state: Pipes should have been converted into functions. Pipe: "+t.name)},t.prototype.visitFunctionCall=function(t,e){var n,r=this.visitAll(t.args,ph.Expression);return n=t instanceof vh?t.converter(r):this.visit(t.target,ph.Expression).callFn(r),Wn(e,n)},t.prototype.visitImplicitReceiver=function(t,e){return Gn(e,t),this._implicitReceiver},t.prototype.visitInterpolation=function(t,e){Gn(e,t);for(var n=[_n(t.expressions.length)],r=0;r<t.strings.length-1;r++)n.push(_n(t.strings[r])),n.push(this.visit(t.expressions[r],ph.Expression));return n.push(_n(t.strings[t.strings.length-1])),t.expressions.length<=9?hn(ue(wu.inlineInterpolate)).callFn(n):hn(ue(wu.interpolate)).callFn([n[0],vn(n.slice(1))])},t.prototype.visitKeyedRead=function(t,e){var n=this.leftMostSafeNode(t);return n?this.convertSafeAccess(t,n,e):Wn(e,this.visit(t.obj,ph.Expression).key(this.visit(t.key,ph.Expression)))},t.prototype.visitKeyedWrite=function(t,e){var n=this.visit(t.obj,ph.Expression),r=this.visit(t.key,ph.Expression),o=this.visit(t.value,ph.Expression);return Wn(e,n.key(r).set(o))},t.prototype.visitLiteralArray=function(t,e){throw new Error("Illegal State: literal arrays should have been converted into functions")},t.prototype.visitLiteralMap=function(t,e){throw new Error("Illegal State: literal maps should have been converted into functions")},t.prototype.visitLiteralPrimitive=function(t,e){return Wn(e,_n(t.value))},t.prototype._getLocal=function(t){return this._localResolver.getLocal(t)},t.prototype.visitMethodCall=function(t,e){var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=this.visitAll(t.args,ph.Expression),o=null,i=this.visit(t.receiver,ph.Expression);if(i===this._implicitReceiver){var s=this._getLocal(t.name);s&&(o=s.callFn(r))}return null==o&&(o=i.callMethod(t.name,r)),Wn(e,o)},t.prototype.visitPrefixNot=function(t,e){return Wn(e,mn(this.visit(t.expression,ph.Expression)))},t.prototype.visitPropertyRead=function(t,e){var n=this.leftMostSafeNode(t);if(n)return this.convertSafeAccess(t,n,e);var r=null,o=this.visit(t.receiver,ph.Expression);return o===this._implicitReceiver&&(r=this._getLocal(t.name)),null==r&&(r=o.prop(t.name)),Wn(e,r)},t.prototype.visitPropertyWrite=function(t,e){var n=this.visit(t.receiver,ph.Expression);if(n===this._implicitReceiver){var r=this._getLocal(t.name);if(r)throw new Error("Cannot assign to a reference or variable!")}return Wn(e,n.prop(t.name).set(this.visit(t.value,ph.Expression)))},t.prototype.visitSafePropertyRead=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitSafeMethodCall=function(t,e){return this.convertSafeAccess(t,this.leftMostSafeNode(t),e)},t.prototype.visitAll=function(t,e){var n=this;return t.map(function(t){return n.visit(t,e)})},t.prototype.visitQuote=function(t,e){throw new Error("Quotes are not supported for evaluation!")},t.prototype.visit=function(t,e){var n=this._resultMap.get(t);return n?n:(this._nodeMap.get(t)||t).visit(this,e)},t.prototype.convertSafeAccess=function(t,e,n){var r,o=this.visit(e.receiver,ph.Expression);this.needsTemporary(e.receiver)&&(r=this.allocateTemporary(),o=r.set(o),this._resultMap.set(e.receiver,r));var i=o.isBlank();e instanceof vi?this._nodeMap.set(e,new di(e.span,e.receiver,e.name,e.args)):this._nodeMap.set(e,new ni(e.span,e.receiver,e.name));var s=this.visit(t,ph.Expression);return this._nodeMap.delete(e),r&&this.releaseTemporary(r),Wn(n,i.conditional(_n(null),s))},t.prototype.leftMostSafeNode=function(t){var e=this,n=function(t,n){return(e._nodeMap.get(n)||n).visit(t)};return t.visit({visitBinary:function(t){return null},visitChain:function(t){return null},visitConditional:function(t){return null},visitFunctionCall:function(t){return null},visitImplicitReceiver:function(t){return null},visitInterpolation:function(t){return null},visitKeyedRead:function(t){return n(this,t.obj)},visitKeyedWrite:function(t){return null},visitLiteralArray:function(t){return null},visitLiteralMap:function(t){return null},visitLiteralPrimitive:function(t){return null},visitMethodCall:function(t){return n(this,t.receiver)},visitPipe:function(t){return null},visitPrefixNot:function(t){return null},visitPropertyRead:function(t){return n(this,t.receiver)},visitPropertyWrite:function(t){return null},visitQuote:function(t){return null},visitSafeMethodCall:function(t){return n(this,t.receiver)||t},visitSafePropertyRead:function(t){return n(this,t.receiver)||t}})},t.prototype.needsTemporary=function(t){var e=this,n=function(t,n){return n&&(e._nodeMap.get(n)||n).visit(t)},r=function(t,e){return e.some(function(e){return n(t,e)})};return t.visit({visitBinary:function(t){return n(this,t.left)||n(this,t.right)},visitChain:function(t){return!1},visitConditional:function(t){return n(this,t.condition)||n(this,t.trueExp)||n(this,t.falseExp)},visitFunctionCall:function(t){return!0},visitImplicitReceiver:function(t){return!1},visitInterpolation:function(t){return r(this,t.expressions)},visitKeyedRead:function(t){return!1},visitKeyedWrite:function(t){return!1},visitLiteralArray:function(t){return!0},visitLiteralMap:function(t){return!0},visitLiteralPrimitive:function(t){return!1},visitMethodCall:function(t){return!0},visitPipe:function(t){return!0},visitPrefixNot:function(t){return n(this,t.expression)},visitPropertyRead:function(t){return!1},visitPropertyWrite:function(t){return!1},visitQuote:function(t){return!1},visitSafeMethodCall:function(t){return!0},visitSafePropertyRead:function(t){return!1}})},t.prototype.allocateTemporary=function(){var t=this._currentTemporary++;return this.temporaryCount=Math.max(this._currentTemporary,this.temporaryCount),new al(Hn(this.bindingId,t))},t.prototype.releaseTemporary=function(t){if(this._currentTemporary--,t.name!=Hn(this.bindingId,this._currentTemporary))throw new Error("Temporary "+t.name+" released out of order")},t}(),dh=function(){function t(){}return t.prototype.getLocal=function(t){return t===uh.event.name?uh.event:null},t}(),vh=function(t){function e(e,n,r){var o=t.call(this,e,null,n)||this;return o.args=n,o.converter=r,o}return zr(e,t),e}(yi),yh="class",mh="style",gh="$implicit",_h="ng-container",bh=function(){function t(t,e,n){this.statements=t,this.viewClassVar=e,this.rendererTypeVar=n}return t}(),wh=function(){function t(t,e){this._genConfigNext=t,this._schemaRegistry=e}return t.prototype.compileComponent=function(t,e,n,r){var o,i=0,s=cr(e),a=[];if(!t.isHost){var u=[];t.template.animations&&t.template.animations.length&&u.push(new Pl("animation",Cn(t.template.animations),(!0)));var c=pn(w(t.type.reference));o=c.name,a.push(c.set(hn(ue(wu.createRendererType2)).callFn([new Tl([new Pl("encapsulation",_n(t.template.encapsulation)),new Pl("styles",n),new Pl("data",new Tl(u))])])).toDeclStmt(fn(ue(wu.RendererType2)),[Il.Final]))}var l=function(e){var n=i++;return new Ah(e,t,n,r,s,l)},p=l(null);return p.visitAll([],e),a.push.apply(a,p.build()),new bh(a,p.viewName,o)},t}();wh.decorators=[{type:F}],wh.ctorParameters=function(){return[{type:Ko},{type:Mu}]};var Ch=pn("l"),Eh=pn("v"),Sh=pn("ck"),xh=pn("co"),Ph=pn("en"),Th=pn("ad"),Ah=function(){function t(t,e,n,r,o,i){this.parent=t,this.component=e,this.embeddedViewIndex=n,this.usedPipes=r,this.staticQueryIds=o,this.viewBuilderFactory=i,this.nodes=[],this.purePipeNodeIndices=Object.create(null),this.refNodeIndices=Object.create(null),this.variables=[],this.children=[],this.compType=this.embeddedViewIndex>0?el:fn(this.component.type)}return Object.defineProperty(t.prototype,"viewName",{get:function(){return b(this.component.type.reference,this.embeddedViewIndex)},enumerable:!0,configurable:!0}),t.prototype.visitAll=function(t,e){var r=this;if(this.variables=t,this.parent||this.usedPipes.forEach(function(t){t.pure&&(r.purePipeNodeIndices[t.name]=r._createPipe(null,t))}),!this.parent){var o=lr(this.staticQueryIds);this.component.viewQueries.forEach(function(t,e){var n=e+1,i=t.first?0:1,s=67108864|fr(o,n,t.first);r.nodes.push(function(){return{sourceSpan:null,nodeFlags:s,nodeDef:hn(ue(wu.queryDef)).callFn([_n(s),_n(n),new Tl([new Pl(t.propertyName,_n(i))])])}})})}n(this,e),this.parent&&(0===e.length||nr(e))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:hn(ue(wu.anchorDef)).callFn([_n(0),Rl,Rl,_n(0)])}})},t.prototype.build=function(t){void 0===t&&(t=[]),this.children.forEach(function(e){return e.build(t)});var n=this._createNodeExpressions(),r=n.updateRendererStmts,o=n.updateDirectivesStmts,i=n.nodeDefExprs,s=this._createUpdateFn(r),a=this._createUpdateFn(o),u=0;this.parent||this.component.changeDetection!==e.ChangeDetectionStrategy.OnPush||(u|=2);var c=new jl(this.viewName,[new bl(Ch.name)],[new Vl(hn(ue(wu.viewDef)).callFn([_n(u),vn(i),a,s]))],fn(ue(wu.ViewDefinition)));return t.push(c),t},t.prototype._createUpdateFn=function(t){var e;if(t.length>0){var n=[];!this.component.isHost&&un(t).has(xh.name)&&n.push(xh.set(Eh.prop("component")).toDeclStmt(this.compType)),e=gn([new bl(Sh.name,nl),new bl(Eh.name,nl)],n.concat(t),nl)}else e=Rl;return e},t.prototype.visitNgContent=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:4,nodeDef:hn(ue(wu.ngContentDef)).callFn([_n(t.ngContentIndex),_n(t.index)])}})},t.prototype.visitText=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:hn(ue(wu.textDef)).callFn([_n(t.ngContentIndex),vn([_n(t.value)])])}})},t.prototype.visitBoundText=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var o=t.value,i=o.ast,s=i.expressions.map(function(e,o){return n._preprocessUpdateExpression({nodeIndex:r,bindingIndex:o,sourceSpan:t.sourceSpan,context:xh,value:e})});this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:hn(ue(wu.textDef)).callFn([_n(t.ngContentIndex),vn(i.strings.map(function(t){return _n(t)}))]),updateRenderer:s}}},t.prototype.visitEmbeddedTemplate=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var o=this._visitElementOrTemplate(r,t),i=o.flags,s=o.queryMatchesExpr,a=o.hostEvents,u=this.viewBuilderFactory(this);this.children.push(u),u.visitAll(t.variables,t.children);var c=this.nodes.length-r-1;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|i,nodeDef:hn(ue(wu.anchorDef)).callFn([_n(i),s,_n(t.ngContentIndex),_n(c),n._createElementHandleEventFn(r,a),pn(u.viewName)])}}},t.prototype.visitElement=function(t,e){var r=this,o=this.nodes.length;this.nodes.push(null);var i=t.name;t.name===_h&&(i=null);var s=this._visitElementOrTemplate(o,t),a=s.flags,u=s.usedEvents,c=s.queryMatchesExpr,l=s.hostBindings,p=s.hostEvents,h=[],f=[],d=[];if(i){var v=t.inputs.map(function(t){return{context:xh,inputAst:t,dirAst:null}}).concat(l);v.length&&(f=v.map(function(t,e){return r._preprocessUpdateExpression({context:t.context,nodeIndex:o,bindingIndex:e,sourceSpan:t.inputAst.sourceSpan,value:t.inputAst.value})}),h=v.map(function(t){return or(t.inputAst,t.dirAst)})),d=u.map(function(t){var e=t[0],n=t[1];return vn([_n(e),_n(n)])})}n(this,t.children);var y=this.nodes.length-o-1,m=t.directives.find(function(t){return t.directive.isComponent}),g=Rl,_=Rl;m&&(_=hn({reference:m.directive.componentViewType}),g=hn({reference:m.directive.rendererType})),this.nodes[o]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|a,nodeDef:hn(ue(wu.elementDef)).callFn([_n(a),c,_n(t.ngContentIndex),_n(y),_n(i),i?ir(t):Rl,h.length?vn(h):Rl,d.length?vn(d):Rl,r._createElementHandleEventFn(o,p),_,g]),updateRenderer:f}}},t.prototype._visitElementOrTemplate=function(t,n){var r=this,o=0;n.hasViewContainer&&(o|=8388608);var i=new Map;n.outputs.forEach(function(t){var n=hr(t,null),r=n.name,o=n.target;i.set(e.ɵelementEventFullName(o,r),[o,r])}),n.directives.forEach(function(t){t.hostEvents.forEach(function(n){var r=hr(n,t),o=r.name,s=r.target;i.set(e.ɵelementEventFullName(s,o),[s,o])})});var s=[],a=[],u=pr(n.directives);u&&this._visitProvider(u,n.queryMatches),n.providers.forEach(function(e,o){var u,c;if(n.directives.forEach(function(t,n){t.directive.type.reference===P(e.token)&&(u=t,c=n)}),u){var l=r._visitDirective(e,u,c,t,n.references,n.queryMatches,i,r.staticQueryIds.get(n)),p=l.hostBindings,h=l.hostEvents;s.push.apply(s,p),a.push.apply(a,h)}else r._visitProvider(e,n.queryMatches)});var c=[];return n.queryMatches.forEach(function(t){var e;P(t.value)===ae(wu.ElementRef)?e=0:P(t.value)===ae(wu.ViewContainerRef)?e=3:P(t.value)===ae(wu.TemplateRef)&&(e=2),null!=e&&c.push(vn([_n(t.queryId),_n(e)]))}),n.references.forEach(function(e){var n;e.value?P(e.value)===ae(wu.TemplateRef)&&(n=2):n=1,null!=n&&(r.refNodeIndices[e.name]=t,c.push(vn([_n(e.name),_n(n)])))}),n.outputs.forEach(function(t){a.push({context:xh,eventAst:t,dirAst:null})}),{flags:o,usedEvents:Array.from(i.values()),queryMatchesExpr:c.length?vn(c):Rl,hostBindings:s,hostEvents:a}},t.prototype._visitDirective=function(t,e,n,r,o,i,s,a){var u=this,c=this.nodes.length;this.nodes.push(null),e.directive.queries.forEach(function(t,n){var r=e.contentQueryStartId+n,o=33554432|fr(a,r,t.first),i=t.first?0:1;u.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:o,nodeDef:hn(ue(wu.queryDef)).callFn([_n(o),_n(r),new Tl([new Pl(t.propertyName,_n(i))])])}})});var l=this.nodes.length-c-1,p=this._visitProviderOrDirective(t,i),h=p.flags,f=p.queryMatchExprs,d=p.providerExpr,v=p.depsExpr;o.forEach(function(e){e.value&&P(e.value)===P(t.token)&&(u.refNodeIndices[e.name]=c,f.push(vn([_n(e.name),_n(4)])))}),e.directive.isComponent&&(h|=16384);var y=e.inputs.map(function(t,e){var n=vn([_n(e),_n(t.directiveName)]);return new Pl(t.directiveName,n,(!1))}),m=[],g=e.directive;Object.keys(g.outputs).forEach(function(t){var e=g.outputs[t];s.has(e)&&m.push(new Pl(t,_n(e),(!1)))});var _=[];(e.inputs.length||(163840&h)>0)&&(_=e.inputs.map(function(t,e){return u._preprocessUpdateExpression({nodeIndex:c,bindingIndex:e,sourceSpan:t.sourceSpan,context:xh,value:t.value})}));var b=hn(ue(wu.nodeValue)).callFn([Eh,_n(c)]),w=e.hostProperties.map(function(t){return{context:b,dirAst:e,inputAst:t}}),C=e.hostEvents.map(function(t){return{context:b,eventAst:t,dirAst:e}});return this.nodes[c]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:8192|h,nodeDef:hn(ue(wu.directiveDef)).callFn([_n(h),f.length?vn(f):Rl,_n(l),d,v,y.length?new Tl(y):Rl,m.length?new Tl(m):Rl]),updateDirectives:_,directive:e.directive.type}},{hostBindings:w,hostEvents:C}},t.prototype._visitProvider=function(t,e){var n=this.nodes.length;this.nodes.push(null);var r=this._visitProviderOrDirective(t,e),o=r.flags,i=r.queryMatchExprs,s=r.providerExpr,a=r.depsExpr;this.nodes[n]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:o,nodeDef:hn(ue(wu.providerDef)).callFn([_n(o),i.length?vn(i):Rl,tr(t.token),s,a])}}},t.prototype._visitProviderOrDirective=function(t,n){var r=0;t.eager||(r|=2048),t.providerType===oo.PrivateService&&(r|=4096),t.lifecycleHooks.forEach(function(n){n!==e.ɵLifecycleHooks.OnDestroy&&t.providerType!==oo.Directive&&t.providerType!==oo.Component||(r|=rr(n))});var o=[];n.forEach(function(e){P(e.value)===P(t.token)&&o.push(vn([_n(e.queryId),_n(4)]))});var i=Zn(t),s=i.providerExpr,a=i.depsExpr,u=i.flags;return{flags:r|u,queryMatchExprs:o,providerExpr:s,depsExpr:a}},t.prototype.getLocal=function(t){if(t==uh.event.name)return uh.event;for(var e=Eh,n=this;n;n=n.parent,e=e.prop("parent")){var r=n.refNodeIndices[t];if(null!=r)return hn(ue(wu.nodeValue)).callFn([e,_n(r)]);var o=n.variables.find(function(e){return e.name===t});if(o){var i=o.value||gh;return e.prop("context").prop(i)}}return null},t.prototype.createLiteralArrayConverter=function(t,e){if(0===e){var n=hn(ue(wu.EMPTY_ARRAY));return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:16,nodeDef:hn(ue(wu.pureArrayDef)).callFn([_n(e)])}}),function(t){return ar(r,t)}},t.prototype.createLiteralMapConverter=function(t,e){if(0===e.length){var n=hn(ue(wu.EMPTY_MAP));return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:32,nodeDef:hn(ue(wu.pureObjectDef)).callFn([vn(e.map(function(t){return _n(t)}))])}}),function(t){return ar(r,t)}},t.prototype.createPipeConverter=function(t,e,n){var r=this.usedPipes.find(function(t){return t.name===e});if(r.pure){var o=this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:64,nodeDef:hn(ue(wu.purePipeDef)).callFn([_n(n)])}});for(var i=Eh,s=this;s.parent;)s=s.parent,i=i.prop("parent");var a=s.purePipeNodeIndices[e],u=hn(ue(wu.nodeValue)).callFn([i,_n(a)]);return function(e){return ur(t.nodeIndex,t.bindingIndex,ar(o,[u].concat(e)))}}var c=this._createPipe(t.sourceSpan,r),l=hn(ue(wu.nodeValue)).callFn([Eh,_n(c)]);return function(e){return ur(t.nodeIndex,t.bindingIndex,l.callMethod("transform",e))}},t.prototype._createPipe=function(t,n){var r=this.nodes.length,o=0;n.type.lifecycleHooks.forEach(function(t){t===e.ɵLifecycleHooks.OnDestroy&&(o|=rr(t))});var i=n.type.diDeps.map(er);return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:8,nodeDef:hn(ue(wu.pipeDef)).callFn([_n(o),hn(n.type),vn(i)])}}),r},t.prototype._preprocessUpdateExpression=function(t){var e=this;return{nodeIndex:t.nodeIndex,bindingIndex:t.bindingIndex,sourceSpan:t.sourceSpan,context:t.context,value:Vn({createLiteralArrayConverter:function(n){return e.createLiteralArrayConverter(t.sourceSpan,n)},createLiteralMapConverter:function(n){return e.createLiteralMapConverter(t.sourceSpan,n)},createPipeConverter:function(n,r){return e.createPipeConverter(t,n,r)}},t.value)}},t.prototype._createNodeExpressions=function(){function t(t,r,o,i){var s=[],a=o.map(function(t){var r=t.sourceSpan,o=t.context,i=t.value,a=""+n++,u=o===xh?e:null,c=Fn(u,o,i,a),l=c.stmts,p=c.currValExpr;return s.push.apply(s,l.map(function(t){return cn(t,r)})),ln(p,r)});return(o.length||i)&&s.push(cn(ar(t,a).toStmt(),r)),s}var e=this,n=0,r=[],o=[],i=this.nodes.map(function(e,n){var i=e(),s=i.nodeDef,a=i.nodeFlags,u=i.updateDirectives,c=i.updateRenderer,l=i.sourceSpan;c&&r.push.apply(r,t(n,l,c,!1)),u&&o.push.apply(o,t(n,l,u,(163840&a)>0));var p=3&a?new Al([Ch.callFn([]).callFn([]),s]):s;return ln(p,l)});return{updateRendererStmts:r,updateDirectivesStmts:o,nodeDefExprs:i}},t.prototype._createElementHandleEventFn=function(t,n){var r=this,o=[],i=0;n.forEach(function(t){var n=t.context,s=t.eventAst,a=t.dirAst,u=""+i++,c=n===xh?r:null,l=Ln(c,n,s.handler,u),p=l.stmts,h=l.allowDefault,f=p;h&&f.push(Th.set(h.and(Th)).toStmt());var d=hr(s,a),v=d.target,y=d.name,m=e.ɵelementEventFullName(v,y);o.push(cn(new zl(_n(m).identical(Ph),f),s.sourceSpan))});var s;if(o.length>0){var a=[Th.set(_n(!0)).toDeclStmt(rl)];!this.component.isHost&&un(o).has(xh.name)&&a.push(xh.set(Eh.prop("component")).toDeclStmt(this.compType)),s=gn([new bl(Eh.name,nl),new bl(Ph.name,nl),new bl(uh.event.name,nl)],a.concat(o,[new Vl(Th)]),nl)}else s=Rl;return s},t.prototype.visitDirective=function(t,e){},t.prototype.visitDirectiveProperty=function(t,e){},t.prototype.visitReference=function(t,e){},t.prototype.visitVariable=function(t,e){},t.prototype.visitEvent=function(t,e){},t.prototype.visitElementProperty=function(t,e){},t.prototype.visitAttr=function(t,e){},t}(),Oh=function(){function t(t,e,n){this.srcFileUrl=t,this.genFileUrl=e,this.source=n}return t}(),Mh=function(t){function e(e,n){var r=t.call(this)||this;return r.symbolResolver=e,r.summaryResolver=n,r.symbols=[],r.indexBySymbol=new Map,r.processedSummaryBySymbol=new Map,r.processedSummaries=[],r}return zr(e,t),e.prototype.addOrMergeSummary=function(t){var e=t.metadata;e&&"class"===e.__symbolic&&(e={__symbolic:"class",statics:e.statics,arity:e.arity});var n=this.processedSummaryBySymbol.get(t.symbol);n||(n=this.processValue({symbol:t.symbol}),this.processedSummaries.push(n),this.processedSummaryBySymbol.set(t.symbol,n)),null==n.metadata&&null!=e&&(n.metadata=this.processValue(e)),null==n.type&&null!=t.type&&(n.type=this.processValue(t.type))},e.prototype.serialize=function(){var t=this,e=[],n=JSON.stringify({summaries:this.processedSummaries,symbols:this.symbols.map(function(n,r){n.assertNoMembers();var o;return t.summaryResolver.isLibraryFile(n.filePath)&&(o=n.name+"_"+r,e.push({symbol:n,exportAs:o})),{__symbol:r,name:n.name,filePath:t.summaryResolver.getLibraryFileName(n.filePath),importAs:o};
  })});return{json:n,exportAs:e}},e.prototype.processValue=function(t){return p(t,this,null)},e.prototype.visitOther=function(t,e){if(t instanceof ao){var n=this.symbolResolver.getStaticSymbol(t.filePath,t.name),r=this.indexBySymbol.get(n);return null==r&&(r=this.indexBySymbol.size,this.indexBySymbol.set(n,r),this.symbols.push(n)),{__symbol:r,members:t.members}}},e}(Co),Rh=function(t){function e(e){var n=t.call(this)||this;return n.symbolCache=e,n}return zr(e,t),e.prototype.deserialize=function(t){var e=this,n=JSON.parse(t),r=[];this.symbols=[],n.symbols.forEach(function(t){var n=e.symbolCache.get(t.filePath,t.name);e.symbols.push(n),t.importAs&&r.push({symbol:n,importAs:t.importAs})});var o=p(n.summaries,this,null);return{summaries:o,importAs:r}},e.prototype.visitStringMap=function(e,n){if("__symbol"in e){var r=this.symbols[e.__symbol],o=e.members;return o.length?this.symbolCache.get(r.filePath,r.name,o):r}return t.prototype.visitStringMap.call(this,e,n)},e}(Co),kh=function(){function t(t,e,n,r,o,i,s,a,u,c,l,p,h){this._config=t,this._host=e,this._metadataResolver=n,this._templateParser=r,this._styleCompiler=o,this._viewCompiler=i,this._ngModuleCompiler=s,this._outputEmitter=a,this._summaryResolver=u,this._localeId=c,this._translationFormat=l,this._genFilePreamble=p,this._symbolResolver=h}return t.prototype.clearCache=function(){this._metadataResolver.clearCache()},t.prototype.compileAll=function(t){var e=this,n=Cr(this._symbolResolver,t,this._host),r=br(n,this._host,this._metadataResolver),o=r.ngModuleByPipeOrDirective,i=r.files,s=r.ngModules;return Promise.all(s.map(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=i.map(function(t){return e._compileSrcFile(t.srcUrl,o,t.directives,t.pipes,t.ngModules,t.injectables)});return O(t)})},t.prototype._compileSrcFile=function(t,e,n,r,o,i){var s=this,a=Ke(t)[1],u=[],c=[],l=[];if(l.push(this._createSummary(t,n,r,o,i,u,c)),c.push.apply(c,o.map(function(t){return s._compileModule(t,u)})),n.forEach(function(n){var r=s._metadataResolver.getDirectiveMetadata(n);if(!r.isComponent)return Promise.resolve(null);var o=e.get(n);if(!o)throw new Error("Internal Error: cannot determine the module for component "+g(r.type)+"!");gr(r);var i=s._styleCompiler.compileComponent(r);i.externalStylesheets.forEach(function(e){l.push(s._codgenStyles(t,e,a))});var p=s._compileComponent(r,o,o.transitiveModule.directives,i.componentStylesheet,a,u);c.push(s._compileComponentFactory(r,o,a,u),p.viewClassVar,p.compRenderTypeVar)}),u.length>0){var p=this._codegenSourceModule(t,ze(t),u,c);l.unshift(p)}return l},t.prototype._createSummary=function(t,e,n,r,o,i,s){var a=this,u=this._symbolResolver.getSymbolsOf(t).map(function(t){return a._symbolResolver.resolveSymbol(t)}),c=r.map(function(t){return a._metadataResolver.getNgModuleSummary(t)}).concat(e.map(function(t){return a._metadataResolver.getDirectiveSummary(t)}),n.map(function(t){return a._metadataResolver.getPipeSummary(t)}),o.map(function(t){return a._metadataResolver.getInjectableSummary(t)})),l=dr(this._summaryResolver,this._symbolResolver,u,c),p=l.json,h=l.exportAs;return h.forEach(function(t){i.push(pn(t.exportAs).set(hn({reference:t.symbol})).toDeclStmt()),s.push(t.exportAs)}),new Oh(t,Qe(t),p)},t.prototype._compileModule=function(t,e){var n=this._metadataResolver.getNgModuleMetadata(t),r=[];this._localeId&&r.push({token:le(wu.LOCALE_ID),useValue:this._localeId}),this._translationFormat&&r.push({token:le(wu.TRANSLATIONS_FORMAT),useValue:this._translationFormat});var o=this._ngModuleCompiler.compile(n,r);return e.push.apply(e,o.statements),o.ngModuleFactoryVar},t.prototype._compileComponentFactory=function(t,e,n,r){var o=this._metadataResolver.getHostComponentType(t.type.reference),i=T(o,t,this._metadataResolver.getHostComponentViewClass(o)),s=this._compileComponent(i,e,[t.type],null,n,r).viewClassVar,a=S(t.type.reference),u=[];for(var c in t.inputs){var l=t.inputs[c];u.push(new Pl(c,_n(l),(!1)))}var p=[];for(var c in t.outputs){var l=t.outputs[c];p.push(new Pl(c,_n(l),(!1)))}return r.push(pn(a).set(hn(ue(wu.createComponentFactory)).callFn([_n(t.selector),hn(t.type),pn(s),new Tl(u),new Tl(p),vn(t.template.ngContentSelectors.map(function(t){return _n(t)}))])).toDeclStmt(fn(ue(wu.ComponentFactory),[fn(t.type)],[Qc.Const]),[Il.Final])),a},t.prototype._compileComponent=function(t,e,n,r,o,i){var s=this,a=n.map(function(t){return s._metadataResolver.getDirectiveSummary(t.reference)}),u=e.transitiveModule.pipes.map(function(t){return s._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(t,t.template.template,a,u,e.schemas,R(e.type,t,t.template)),l=c.template,p=c.pipes,h=r?pn(r.stylesVar):vn([]),f=this._viewCompiler.compileComponent(t,l,h,p);return r&&i.push.apply(i,yr(this._symbolResolver,r,o)),i.push.apply(i,f.statements),{viewClassVar:f.viewClassVar,compRenderTypeVar:f.rendererTypeVar}},t.prototype._codgenStyles=function(t,e,n){return yr(this._symbolResolver,e,n),this._codegenSourceModule(t,mr(e.meta.moduleUrl,e.isShimmed,n),e.statements,[e.stylesVar])},t.prototype._codegenSourceModule=function(t,e,n,r){return new Oh(t,e,this._outputEmitter.emitStatements(M(t),e,n,r,this._genFilePreamble))},t}(),Ih=function(){function t(t){this.staticDelegate=t,this.dynamicDelegate=new e.ɵReflectionCapabilities}return t.install=function(n){e.ɵreflector.updateCapabilities(new t(n))},t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return this.dynamicDelegate.factory(t)},t.prototype.hasLifecycleHook=function(t,e){return Sr(t)?this.staticDelegate.hasLifecycleHook(t,e):this.dynamicDelegate.hasLifecycleHook(t,e)},t.prototype.parameters=function(t){return Sr(t)?this.staticDelegate.parameters(t):this.dynamicDelegate.parameters(t)},t.prototype.annotations=function(t){return Sr(t)?this.staticDelegate.annotations(t):this.dynamicDelegate.annotations(t)},t.prototype.propMetadata=function(t){return Sr(t)?this.staticDelegate.propMetadata(t):this.dynamicDelegate.propMetadata(t)},t.prototype.getter=function(t){return this.dynamicDelegate.getter(t)},t.prototype.setter=function(t){return this.dynamicDelegate.setter(t)},t.prototype.method=function(t){return this.dynamicDelegate.method(t)},t.prototype.importUri=function(t){return this.staticDelegate.importUri(t)},t.prototype.resourceUri=function(t){return this.staticDelegate.resourceUri(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return this.staticDelegate.resolveIdentifier(t,e,n)},t.prototype.resolveEnum=function(t,e){return Sr(t)?this.staticDelegate.resolveEnum(t,e):null},t}(),Nh="@angular/core",Dh=/^\$.*\$$/,jh={__symbolic:"ignore"},Lh=function(){function t(t,e,n,r){void 0===e&&(e=[]),void 0===n&&(n=[]);var o=this;this.symbolResolver=t,this.errorRecorder=r,this.annotationCache=new Map,this.propertyCache=new Map,this.parameterCache=new Map,this.methodCache=new Map,this.conversionMap=new Map,this.initializeConversionMap(),e.forEach(function(t){return o._registerDecoratorOrConstructor(o.getStaticSymbol(t.filePath,t.name),t.ctor)}),n.forEach(function(t){return o._registerFunction(o.getStaticSymbol(t.filePath,t.name),t.fn)})}return t.prototype.importUri=function(t){var e=this.findSymbolDeclaration(t);return e?e.filePath:null},t.prototype.resourceUri=function(t){var e=this.findSymbolDeclaration(t);return this.symbolResolver.getResourcePath(e)},t.prototype.resolveIdentifier=function(t,e,n){var r=this.getStaticSymbol(e,t),o=this.findDeclaration(e,t);return r!=o&&this.symbolResolver.recordImportAs(o,r),n&&n.length?this.getStaticSymbol(o.filePath,o.name,n):o},t.prototype.findDeclaration=function(t,e,n){return this.findSymbolDeclaration(this.symbolResolver.getSymbolByModule(t,e,n))},t.prototype.findSymbolDeclaration=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata instanceof ao?this.findSymbolDeclaration(e.metadata):t},t.prototype.resolveEnum=function(t,e){var n=t,r=(n.members||[]).concat(e);return this.getStaticSymbol(n.filePath,n.name,r)},t.prototype.annotations=function(t){var e=this.annotationCache.get(t);if(!e){e=[];var n=this.getTypeMetadata(t);if(n.extends){var r=this.trySimplify(t,n.extends);if(r&&r instanceof ao){var o=this.annotations(r);e.push.apply(e,o)}}if(n.decorators){var i=this.simplify(t,n.decorators);e.push.apply(e,i)}this.annotationCache.set(t,e.filter(function(t){return!!t}))}return e},t.prototype.propMetadata=function(t){var e=this,n=this.propertyCache.get(t);if(!n){var r=this.getTypeMetadata(t);if(n={},r.extends){var o=this.simplify(t,r.extends);if(o instanceof ao){var i=this.propMetadata(o);Object.keys(i).forEach(function(t){n[t]=i[t]})}}var s=r.members||{};Object.keys(s).forEach(function(r){var o=s[r],i=o.find(function(t){return"property"==t.__symbolic||"method"==t.__symbolic}),a=[];n[r]&&a.push.apply(a,n[r]),n[r]=a,i&&i.decorators&&a.push.apply(a,e.simplify(t,i.decorators))}),this.propertyCache.set(t,n)}return n},t.prototype.parameters=function(t){if(!(t instanceof ao))return this.reportError(new Error("parameters received "+JSON.stringify(t)+" which is not a StaticSymbol"),t),[];try{var e=this.parameterCache.get(t);if(!e){var n=this.getTypeMetadata(t),r=n?n.members:null,o=r?r.__ctor__:null;if(o){var i=o.find(function(t){return"constructor"==t.__symbolic}),s=this.simplify(t,i.parameters||[]),a=this.simplify(t,i.parameterDecorators||[]);e=[],s.forEach(function(t,n){var r=[];t&&r.push(t);var o=a?a[n]:null;o&&r.push.apply(r,o),e.push(r)})}else if(n.extends){var u=this.simplify(t,n.extends);u instanceof ao&&(e=this.parameters(u))}e||(e=[]),this.parameterCache.set(t,e)}return e}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype._methodNames=function(t){var e=this.methodCache.get(t);if(!e){var n=this.getTypeMetadata(t);if(e={},n.extends){var r=this.simplify(t,n.extends);if(r instanceof ao){var o=this._methodNames(r);Object.keys(o).forEach(function(t){e[t]=o[t]})}}var i=n.members||{};Object.keys(i).forEach(function(t){var n=i[t],r=n.some(function(t){return"method"==t.__symbolic});e[t]=e[t]||r}),this.methodCache.set(t,e)}return e},t.prototype.hasLifecycleHook=function(t,e){t instanceof ao||this.reportError(new Error("hasLifecycleHook received "+JSON.stringify(t)+" which is not a StaticSymbol"),t);try{return!!this._methodNames(t)[e]}catch(e){throw console.error("Failed on type "+JSON.stringify(t)+" with error "+e),e}},t.prototype._registerDecoratorOrConstructor=function(t,e){this.conversionMap.set(t,function(t,n){return new(e.bind.apply(e,[void 0].concat(n)))})},t.prototype._registerFunction=function(t,e){this.conversionMap.set(t,function(t,n){return e.apply(void 0,n)})},t.prototype.initializeConversionMap=function(){this.injectionToken=this.findDeclaration(Nh,"InjectionToken"),this.opaqueToken=this.findDeclaration(Nh,"OpaqueToken"),this._registerDecoratorOrConstructor(this.findDeclaration(Nh,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(Nh,"Injectable"),e.Injectable),this._registerDecoratorOrConstructor(this.findDeclaration(Nh,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(Nh,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(Nh,"Inject"),e.Inject),this._registerDecoratorOrConstructor(this.findDeclaration(Nh,"Optional"),e.Optional),this._registerDecoratorOrConstructor(this.findDeclaration(Nh,"Attribute"),e.Attribute),this._registerDecoratorOrConstructor(this.findDeclaration(Nh,"ContentChild"),e.ContentChild),this._registerDecoratorOrConstructor(this.findDeclaration(Nh,"ContentChildren"),e.ContentChildren),this._registerDecoratorOrConstructor(this.findDeclaration(Nh,"ViewChild"),e.ViewChild),this._registerDecoratorOrConstructor(this.findDeclaration(Nh,"ViewChildren"),e.ViewChildren),this._registerDecoratorOrConstructor(this.findDeclaration(Nh,"Input"),e.Input),this._registerDecoratorOrConstructor(this.findDeclaration(Nh,"Output"),e.Output),this._registerDecoratorOrConstructor(this.findDeclaration(Nh,"Pipe"),e.Pipe),this._registerDecoratorOrConstructor(this.findDeclaration(Nh,"HostBinding"),e.HostBinding),this._registerDecoratorOrConstructor(this.findDeclaration(Nh,"HostListener"),e.HostListener),this._registerDecoratorOrConstructor(this.findDeclaration(Nh,"Directive"),e.Directive),this._registerDecoratorOrConstructor(this.findDeclaration(Nh,"Component"),e.Component),this._registerDecoratorOrConstructor(this.findDeclaration(Nh,"NgModule"),e.NgModule),this._registerDecoratorOrConstructor(this.findDeclaration(Nh,"Host"),e.Host),this._registerDecoratorOrConstructor(this.findDeclaration(Nh,"Self"),e.Self),this._registerDecoratorOrConstructor(this.findDeclaration(Nh,"SkipSelf"),e.SkipSelf),this._registerDecoratorOrConstructor(this.findDeclaration(Nh,"Optional"),e.Optional),this._registerFunction(this.findDeclaration(Nh,"trigger"),e.trigger),this._registerFunction(this.findDeclaration(Nh,"state"),e.state),this._registerFunction(this.findDeclaration(Nh,"transition"),e.transition),this._registerFunction(this.findDeclaration(Nh,"style"),e.style),this._registerFunction(this.findDeclaration(Nh,"animate"),e.animate),this._registerFunction(this.findDeclaration(Nh,"keyframes"),e.keyframes),this._registerFunction(this.findDeclaration(Nh,"sequence"),e.sequence),this._registerFunction(this.findDeclaration(Nh,"group"),e.group)},t.prototype.getStaticSymbol=function(t,e,n){return this.symbolResolver.getStaticSymbol(t,e,n)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.trySimplify=function(t,e){var n=this.errorRecorder;this.errorRecorder=function(t,e){};var r=this.simplify(t,e);return this.errorRecorder=n,r},t.prototype.simplify=function(t,e){function n(t,e,r){function a(t){var e=o.symbolResolver.resolveSymbol(t);return e?e.metadata:null}function u(e,o,a){if(o&&"function"==o.__symbolic){if(s.get(e))throw new Error("Recursion not supported");s.set(e,!0);try{var u=o.value;if(u&&(0!=r||"error"!=u.__symbolic)){var l=o.parameters,p=o.defaults;a=a.map(function(e){return n(t,e,r+1)}).map(function(t){return xr(t)?void 0:t}),p&&p.length>a.length&&a.push.apply(a,p.slice(a.length).map(function(t){return c(t)}));for(var h=Vh.build(),f=0;f<l.length;f++)h.define(l[f],a[f]);var d,v=i;try{i=h.done(),d=n(e,u,r+1)}finally{i=v}return d}}finally{s.delete(e)}}return 0===r?jh:c({__symbolic:"error",message:"Function call not supported",context:e})}function c(e){if(Or(e))return e;if(e instanceof Array){for(var s=[],l=0,p=e;l<p.length;l++){var h=p[l];if(h&&"spread"===h.__symbolic){var f=c(h.expression);if(Array.isArray(f)){for(var d=0,v=f;d<v.length;d++){var y=v[d];s.push(y)}continue}}var m=c(h);xr(m)||s.push(m)}return s}if(e instanceof ao){if(e===o.injectionToken||e===o.opaqueToken||o.conversionMap.has(e))return e;var g=e,_=a(g);return _?n(g,_,r+1):g}if(e){if(e.__symbolic){var g=void 0;switch(e.__symbolic){case"binop":var b=c(e.left);if(xr(b))return b;var w=c(e.right);if(xr(w))return w;switch(e.operator){case"&&":return b&&w;case"||":return b||w;case"|":return b|w;case"^":return b^w;case"&":return b&w;case"==":return b==w;case"!=":return b!=w;case"===":return b===w;case"!==":return b!==w;case"<":return b<w;case">":return b>w;case"<=":return b<=w;case">=":return b>=w;case"<<":return b<<w;case">>":return b>>w;case"+":return b+w;case"-":return b-w;case"*":return b*w;case"/":return b/w;case"%":return b%w}return null;case"if":var C=c(e.condition);return c(C?e.thenExpression:e.elseExpression);case"pre":var E=c(e.operand);if(xr(E))return E;switch(e.operator){case"+":return E;case"-":return-E;case"!":return!E;case"~":return~E}return null;case"index":var S=c(e.expression),x=c(e.index);return S&&Or(x)?S[x]:null;case"select":var P=e.member,T=t,A=c(e.expression);if(A instanceof ao){var O=A.members.concat(P);T=o.getStaticSymbol(A.filePath,A.name,O);var _=a(T);return _?n(T,_,r+1):T}return A&&Or(P)?n(T,A[P],r+1):null;case"reference":var M=e.name,R=i.resolve(M);if(R!=Vh.missing)return R;break;case"class":return t;case"function":return t;case"new":case"call":if(g=n(t,e.expression,r+1),g instanceof ao){if(g===o.injectionToken||g===o.opaqueToken)return t;var k=e.arguments||[],I=o.conversionMap.get(g);if(I){var N=k.map(function(e){return n(t,e,r+1)}).map(function(t){return xr(t)?void 0:t});return I(t,N)}var D=a(g);return u(g,D,k)}break;case"error":var j=Tr(e);return e.line?(j=j+" (position "+(e.line+1)+":"+(e.character+1)+" in the original .ts file)",o.reportError(Mr(j,t.filePath,e.line,e.character),t)):o.reportError(new Error(j),t),jh;case"ignore":return e}return null}return Ar(e,function(t,e){return c(t)})}return jh}try{return c(e)}catch(e){var l=t.members.length?"."+t.members.join("."):"",p=e.message+", resolving symbol "+t.name+l+" in "+t.filePath;if(e.fileName)throw Mr(p,e.fileName,e.line,e.column);throw h(p)}}var r=this,o=this,i=Vh.empty,s=new Map,a=function(t,e,o){try{return n(t,e,o)}catch(e){r.reportError(e,t)}},u=this.errorRecorder?a(t,e,0):n(t,e,0);if(!xr(u))return u},t.prototype.getTypeMetadata=function(t){var e=this.symbolResolver.resolveSymbol(t);return e&&e.metadata?e.metadata:{__symbolic:"class"}},t}(),Vh=function(){function t(){}return t.prototype.resolve=function(t){},t.build=function(){var e=new Map;return{define:function(t,n){return e.set(t,n),this},done:function(){return e.size>0?new Fh(e):t.empty}}},t}();Vh.missing={},Vh.empty={resolve:function(t){return Vh.missing}};var Fh=function(t){function e(e){var n=t.call(this)||this;return n.bindings=e,n}return zr(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):Vh.missing},e}(Vh),Uh=function(){function t(t,e){this.symbol=t,this.metadata=e}return t}(),Hh=3,Bh=function(){function t(t,e,n,r){this.host=t,this.staticSymbolCache=e,this.summaryResolver=n,this.errorRecorder=r,this.metadataCache=new Map,this.resolvedSymbols=new Map,this.resolvedFilePaths=new Set,this.importAs=new Map,this.symbolResourcePaths=new Map}return t.prototype.resolveSymbol=function(t){if(t.members.length>0)return this._resolveSymbolMembers(t);var e=this.resolvedSymbols.get(t);return e?e:(e=this._resolveSymbolFromSummary(t))?e:(this._createSymbolsOf(t.filePath),e=this.resolvedSymbols.get(t))},t.prototype.getImportAs=function(t){if(t.members.length){var e=this.getStaticSymbol(t.filePath,t.name),n=this.getImportAs(e);return n?this.getStaticSymbol(n.filePath,n.name,t.members):null}var r=this.summaryResolver.getImportAs(t);return r||(r=this.importAs.get(t)),r},t.prototype.getResourcePath=function(t){return this.symbolResourcePaths.get(t)||t.filePath},t.prototype.getTypeArity=function(t){if(We(t.filePath))return null;for(var e=this.resolveSymbol(t);e&&e.metadata instanceof ao;)e=this.resolveSymbol(e.metadata);return e&&e.metadata&&e.metadata.arity||null},t.prototype.recordImportAs=function(t,e){t.assertNoMembers(),e.assertNoMembers(),this.importAs.set(t,e)},t.prototype._resolveSymbolMembers=function(t){var e=t.members,n=this.resolveSymbol(this.getStaticSymbol(t.filePath,t.name));if(!n)return null;var r=n.metadata;if(r instanceof ao)return new Uh(t,this.getStaticSymbol(r.filePath,r.name,e));if(!r||"class"!==r.__symbolic){for(var o=r,i=0;i<e.length&&o;i++)o=o[e[i]];return new Uh(t,o)}return r.statics&&1===e.length?new Uh(t,r.statics[e[0]]):null},t.prototype._resolveSymbolFromSummary=function(t){var e=this.summaryResolver.resolveSummary(t);return e?new Uh(t,e.metadata):null},t.prototype.getStaticSymbol=function(t,e,n){return this.staticSymbolCache.get(t,e,n)},t.prototype.getSymbolsOf=function(t){var e=new Set(this.summaryResolver.getSymbolsOf(t));return this._createSymbolsOf(t),this.resolvedSymbols.forEach(function(n){n.symbol.filePath===t&&e.add(n.symbol)}),Array.from(e)},t.prototype._createSymbolsOf=function(t){var e=this;if(!this.resolvedFilePaths.has(t)){this.resolvedFilePaths.add(t);var n=[],r=this.getModuleMetadata(t);if(r.metadata){var o=new Set(Object.keys(r.metadata).map(Rr)),i=r.origins||{};Object.keys(r.metadata).forEach(function(s){var a=r.metadata[s],u=Rr(s),c=e.getStaticSymbol(t,u),l=void 0;r.importAs&&(l=e.getStaticSymbol(r.importAs,u),e.recordImportAs(c,l));var p=i.hasOwnProperty(s)&&i[s];if(p){var h=e.resolveModule(p,t);h?e.symbolResourcePaths.set(c,h):e.reportError(new Error("Couldn't resolve original symbol for "+p+" from "+t),null)}n.push(e.createResolvedSymbol(c,t,o,a))})}if(r.exports)for(var s=function(r){if(r.export)r.export.forEach(function(o){var i;i="string"==typeof o?o:o.as,i=Rr(i);var s=i;"string"!=typeof o&&(s=Rr(o.name));var a=e.resolveModule(r.from,t);if(a){var u=e.getStaticSymbol(a,s),c=e.getStaticSymbol(t,i);n.push(e.createExport(c,u))}});else{var o=a.resolveModule(r.from,t);if(o){var i=a.getSymbolsOf(o);i.forEach(function(r){var o=e.getStaticSymbol(t,r.name);n.push(e.createExport(o,r))})}}},a=this,u=0,c=r.exports;u<c.length;u++){var l=c[u];s(l)}n.forEach(function(t){return e.resolvedSymbols.set(t.symbol,t)})}},t.prototype.createResolvedSymbol=function(t,e,n,r){var o=this,i=function(r){function i(){return null!==r&&r.apply(this,arguments)||this}return zr(i,r),i.prototype.visitStringMap=function(i,s){var a=i.__symbolic;if("function"===a){var u=s.length;s.push.apply(s,i.parameters||[]);var c=r.prototype.visitStringMap.call(this,i,s);return s.length=u,c}if("reference"!==a)return r.prototype.visitStringMap.call(this,i,s);var l=i.module,p=i.name?Rr(i.name):i.name;if(!p)return null;var h=void 0;return l?(h=o.resolveModule(l,t.filePath),h?o.getStaticSymbol(h,p):{__symbolic:"error",message:"Could not resolve "+l+" relative to "+t.filePath+"."}):s.indexOf(p)>=0?{__symbolic:"reference",name:p}:n.has(p)?o.getStaticSymbol(e,p):void 0},i}(Co),s=p(r,new i,[]);return s instanceof ao?this.createExport(t,s):new Uh(t,s)},t.prototype.createExport=function(t,e){return t.assertNoMembers(),e.assertNoMembers(),this.summaryResolver.isLibraryFile(t.filePath)&&this.importAs.set(e,this.getImportAs(t)||t),new Uh(t,e)},t.prototype.reportError=function(t,e,n){if(!this.errorRecorder)throw t;this.errorRecorder(t,e&&e.filePath||n)},t.prototype.getModuleMetadata=function(t){var e=this.metadataCache.get(t);if(!e){var n=this.host.getMetadataFor(t);if(n){var r=-1;n.forEach(function(t){t.version>r&&(r=t.version,e=t)})}if(e||(e={__symbolic:"module",version:Hh,module:t,metadata:{}}),e.version!=Hh){var o=2==e.version?"Unsupported metadata version "+e.version+" for module "+t+". This module should be compiled with a newer version of ngc":"Metadata version mismatch for module "+t+", found version "+e.version+", expected "+Hh;this.reportError(new Error(o),null)}this.metadataCache.set(t,e)}return e},t.prototype.getSymbolByModule=function(t,e,n){var r=this.resolveModule(t,n);return r?this.getStaticSymbol(r,e):(this.reportError(new Error("Could not resolve module "+t+(n?" relative to $ {\n            containingFile\n          } ":"")),null),this.getStaticSymbol("ERROR:"+t,e))},t.prototype.resolveModule=function(t,e){try{return this.host.moduleNameToFileName(t,e)}catch(n){console.error("Could not resolve module '"+t+"' relative to file "+e),this.reportError(n,null,e)}},t}(),qh=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Set,this.importAs=new Map}return t.prototype.isLibraryFile=function(t){return!this.host.isSourceFile(Ge(t))},t.prototype.getLibraryFileName=function(t){return this.host.getOutputFileName(t)},t.prototype.resolveSummary=function(t){t.assertNoMembers();var e=this.summaryCache.get(t);return e||(this._loadSummaryFile(t.filePath),e=this.summaryCache.get(t)),e},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t),Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t})},t.prototype.getImportAs=function(t){return t.assertNoMembers(),this.importAs.get(t)},t.prototype._loadSummaryFile=function(t){var e=this;if(!this.loadedFilePaths.has(t)&&(this.loadedFilePaths.add(t),this.isLibraryFile(t))){var n=Qe(t),r=void 0;try{r=this.host.loadSummary(n)}catch(t){throw console.error("Error loading summary file "+n),t}if(r){var o=vr(this.staticSymbolCache,r),i=o.summaries,s=o.importAs;i.forEach(function(t){return e.summaryCache.set(t.symbol,t)}),s.forEach(function(n){e.importAs.set(n.symbol,e.staticSymbolCache.get(ze(t),n.importAs))})}}},t}(),zh=function(){function t(t,e,n,r){this.parent=t,this.instance=e,this.className=n,this.vars=r}return t.prototype.createChildWihtLocalVars=function(){return new t(this,this.instance,this.className,new Map)},t}(),Gh=function(){function t(t){this.value=t}return t}(),Wh=function(){function t(){}return t.prototype.debugAst=function(t){return On(t)},t.prototype.visitDeclareVarStmt=function(t,e){return e.vars.set(t.name,t.value.visitExpression(this,e)),null},t.prototype.visitWriteVarExpr=function(t,e){for(var n=t.value.visitExpression(this,e),r=e;null!=r;){if(r.vars.has(t.name))return r.vars.set(t.name,n),n;r=r.parent}throw new Error("Not declared variable "+t.name)},t.prototype.visitReadVarExpr=function(t,e){var n=t.name;if(null!=t.builtin)switch(t.builtin){case sl.Super:return e.instance.__proto__;case sl.This:return e.instance;case sl.CatchError:n=Kh;break;case sl.CatchStack:n=Qh;break;default:throw new Error("Unknown builtin variable "+t.builtin)}for(var r=e;null!=r;){if(r.vars.has(n))return r.vars.get(n);r=r.parent}throw new Error("Not declared variable "+n)},t.prototype.visitWriteKeyExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.index.visitExpression(this,e),o=t.value.visitExpression(this,e);return n[r]=o,o},t.prototype.visitWritePropExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.value.visitExpression(this,e);return n[t.name]=r,r},t.prototype.visitInvokeMethodExpr=function(t,e){var n,r=t.receiver.visitExpression(this,e),o=this.visitAllExpressions(t.args,e);if(null!=t.builtin)switch(t.builtin){case pl.ConcatArray:n=r.concat.apply(r,o);break;case pl.SubscribeObservable:n=r.subscribe({next:o[0]});break;case pl.Bind:n=r.bind.apply(r,o);break;default:throw new Error("Unknown builtin method "+t.builtin)}else n=r[t.name].apply(r,o);return n},t.prototype.visitInvokeFunctionExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.fn;if(r instanceof al&&r.builtin===sl.Super)return e.instance.constructor.prototype.constructor.apply(e.instance,n),null;var o=t.fn.visitExpression(this,e);return o.apply(null,n)},t.prototype.visitReturnStmt=function(t,e){return new Gh(t.value.visitExpression(this,e))},t.prototype.visitDeclareClassStmt=function(t,e){var n=Dr(t,e,this);return e.vars.set(t.name,n),null},t.prototype.visitExpressionStmt=function(t,e){return t.expr.visitExpression(this,e)},t.prototype.visitIfStmt=function(t,e){var n=t.condition.visitExpression(this,e);return n?this.visitAllStatements(t.trueCase,e):null!=t.falseCase?this.visitAllStatements(t.falseCase,e):null},t.prototype.visitTryCatchStmt=function(t,e){try{return this.visitAllStatements(t.bodyStmts,e)}catch(r){var n=e.createChildWihtLocalVars();return n.vars.set(Kh,r),n.vars.set(Qh,r.stack),this.visitAllStatements(t.catchStmts,n)}},t.prototype.visitThrowStmt=function(t,e){throw t.error.visitExpression(this,e)},t.prototype.visitCommentStmt=function(t,e){return null},t.prototype.visitInstantiateExpr=function(t,e){var n=this.visitAllExpressions(t.args,e),r=t.classExpr.visitExpression(this,e);return new(r.bind.apply(r,[void 0].concat(n)))},t.prototype.visitLiteralExpr=function(t,e){return t.value},t.prototype.visitExternalExpr=function(t,e){return t.value.reference},t.prototype.visitConditionalExpr=function(t,e){return t.condition.visitExpression(this,e)?t.trueCase.visitExpression(this,e):null!=t.falseCase?t.falseCase.visitExpression(this,e):null},t.prototype.visitNotExpr=function(t,e){return!t.condition.visitExpression(this,e)},t.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e)},t.prototype.visitFunctionExpr=function(t,e){var n=t.params.map(function(t){return t.name});return jr(n,t.statements,e,this)},t.prototype.visitDeclareFunctionStmt=function(t,e){var n=t.params.map(function(t){return t.name});return e.vars.set(t.name,jr(n,t.statements,e,this)),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n=this,r=function(){return t.lhs.visitExpression(n,e)},o=function(){return t.rhs.visitExpression(n,e)};switch(t.operator){case ol.Equals:return r()==o();case ol.Identical:return r()===o();case ol.NotEquals:return r()!=o();case ol.NotIdentical:return r()!==o();case ol.And:return r()&&o();case ol.Or:return r()||o();case ol.Plus:return r()+o();case ol.Minus:return r()-o();case ol.Divide:return r()/o();case ol.Multiply:return r()*o();case ol.Modulo:return r()%o();case ol.Lower:return r()<o();case ol.LowerEquals:return r()<=o();case ol.Bigger:return r()>o();case ol.BiggerEquals:return r()>=o();default:throw new Error("Unknown operator "+t.operator)}},t.prototype.visitReadPropExpr=function(t,e){var n,r=t.receiver.visitExpression(this,e);return n=r[t.name]},t.prototype.visitReadKeyExpr=function(t,e){var n=t.receiver.visitExpression(this,e),r=t.index.visitExpression(this,e);return n[r]},t.prototype.visitLiteralArrayExpr=function(t,e){return this.visitAllExpressions(t.entries,e)},t.prototype.visitLiteralMapExpr=function(t,e){var n=this,r={};return t.entries.forEach(function(t){return r[t.key]=t.value.visitExpression(n,e)}),r},t.prototype.visitCommaExpr=function(t,e){var n=this.visitAllExpressions(t.parts,e);return n[n.length-1]},t.prototype.visitAllExpressions=function(t,e){var n=this;return t.map(function(t){return t.visitExpression(n,e)})},t.prototype.visitAllStatements=function(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=r.visitStatement(this,e);if(o instanceof Gh)return o}return null},t}(),Kh="error",Qh="stack",Xh=function(t){function e(){return t.call(this,!1)||this}return zr(e,t),e.prototype.visitDeclareClassStmt=function(t,e){var n=this;return e.pushClass(t),this._visitClassConstructor(t,e),null!=t.parent&&(e.print(t,t.name+".prototype = Object.create("),t.parent.visitExpression(this,e),e.println(t,".prototype);")),t.getters.forEach(function(r){return n._visitClassGetter(t,r,e)}),t.methods.forEach(function(r){return n._visitClassMethod(t,r,e)}),e.popClass(),null},e.prototype._visitClassConstructor=function(t,e){e.print(t,"function "+t.name+"("),null!=t.constructorMethod&&this._visitParams(t.constructorMethod.params,e),e.println(t,") {"),e.incIndent(),null!=t.constructorMethod&&t.constructorMethod.body.length>0&&(e.println(t,"var self = this;"),this.visitAllStatements(t.constructorMethod.body,e)),e.decIndent(),e.println(t,"}")},e.prototype._visitClassGetter=function(t,e,n){n.println(t,"Object.defineProperty("+t.name+".prototype, '"+e.name+"', { get: function() {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"}});")},e.prototype._visitClassMethod=function(t,e,n){n.print(t,t.name+".prototype."+e.name+" = function("),this._visitParams(e.params,n),n.println(t,") {"),n.incIndent(),e.body.length>0&&(n.println(t,"var self = this;"),this.visitAllStatements(e.body,n)),n.decIndent(),n.println(t,"};")},e.prototype.visitReadVarExpr=function(e,n){if(e.builtin===sl.This)n.print(e,"self");else{if(e.builtin===sl.Super)throw new Error("'super' needs to be handled at a parent ast node, not at the variable level!");t.prototype.visitReadVarExpr.call(this,e,n)}return null},e.prototype.visitDeclareVarStmt=function(t,e){return e.print(t,"var "+t.name+" = "),t.value.visitExpression(this,e),e.println(t,";"),null},e.prototype.visitCastExpr=function(t,e){return t.value.visitExpression(this,e),null},e.prototype.visitInvokeFunctionExpr=function(e,n){var r=e.fn;return r instanceof al&&r.builtin===sl.Super?(n.currentClass.parent.visitExpression(this,n),n.print(e,".call(this"),e.args.length>0&&(n.print(e,", "),this.visitAllExpressions(e.args,n,",")),n.print(e,")")):t.prototype.visitInvokeFunctionExpr.call(this,e,n),null},e.prototype.visitFunctionExpr=function(t,e){return e.print(t,"function("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),
  this.visitAllStatements(t.statements,e),e.decIndent(),e.print(t,"}"),null},e.prototype.visitDeclareFunctionStmt=function(t,e){return e.print(t,"function "+t.name+"("),this._visitParams(t.params,e),e.println(t,") {"),e.incIndent(),this.visitAllStatements(t.statements,e),e.decIndent(),e.println(t,"}"),null},e.prototype.visitTryCatchStmt=function(t,e){e.println(t,"try {"),e.incIndent(),this.visitAllStatements(t.bodyStmts,e),e.decIndent(),e.println(t,"} catch ("+hp.name+") {"),e.incIndent();var n=[fp.set(hp.prop("stack")).toDeclStmt(null,[Il.Final])].concat(t.catchStmts);return this.visitAllStatements(n,e),e.decIndent(),e.println(t,"}"),null},e.prototype._visitParams=function(t,e){this.visitAllObjects(function(t){return e.print(null,t.name)},t,e,",")},e.prototype.getBuiltinMethodName=function(t){var e;switch(t){case pl.ConcatArray:e="concat";break;case pl.SubscribeObservable:e="subscribe";break;case pl.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(yp),$h=function(t){function e(){var e=t.apply(this,arguments)||this;return e._evalArgNames=[],e._evalArgValues=[],e}return zr(e,t),e.prototype.getArgs=function(){for(var t={},e=0;e<this._evalArgNames.length;e++)t[this._evalArgNames[e]]=this._evalArgValues[e];return t},e.prototype.visitExternalExpr=function(t,e){var n=t.value.reference,r=this._evalArgValues.indexOf(n);if(r===-1){r=this._evalArgValues.length,this._evalArgValues.push(n);var o=g(t.value)||"val";this._evalArgNames.push("jit_"+o+r)}return e.print(t,this._evalArgNames[r]),null},e}(Xh),Zh=function(){function t(t,e,n,r,o,i,s,a){this._injector=t,this._metadataResolver=e,this._templateParser=n,this._styleCompiler=r,this._viewCompiler=o,this._ngModuleCompiler=i,this._compilerConfig=s,this._console=a,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._sharedStylesheetCount=0}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._compileModuleAndComponents(t,!0).syncResult},t.prototype.compileModuleAsync=function(t){return this._compileModuleAndComponents(t,!1).asyncResult},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._compileModuleAndAllComponents(t,!0).syncResult},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._compileModuleAndAllComponents(t,!1).asyncResult},t.prototype.getNgContentSelectors=function(t){this._console.warn("Compiler.getNgContentSelectors is deprecated. Use ComponentFactory.ngContentSelectors instead!");var n=this._compiledTemplateCache.get(t);if(!n)throw new Error("The component "+e.ɵstringify(t)+" is not yet compiled!");return n.compMeta.template.ngContentSelectors},t.prototype._compileModuleAndComponents=function(t,e){var n=this,r=this._loadModules(t,e),o=function(){return n._compileComponents(t,null),n._compileModule(t)};return e?new Eo(o()):new Eo(null,r.then(o))},t.prototype._compileModuleAndAllComponents=function(t,n){var r=this,o=this._loadModules(t,n),i=function(){var n=[];return r._compileComponents(t,n),new e.ModuleWithComponentFactories(r._compileModule(t),n)};return n?new Eo(i()):new Eo(null,o.then(i))},t.prototype._loadModules=function(t,e){var n=this,r=[],o=this._metadataResolver.getNgModuleMetadata(t);return o.transitiveModule.modules.forEach(function(t){r.push(n._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.reference,e))}),Promise.all(r)},t.prototype._compileModule=function(t){var n=this,r=this._compiledNgModuleCache.get(t);if(!r){var o=this._metadataResolver.getNgModuleMetadata(t),i=[this._metadataResolver.getProviderMetadata(new Wo(e.Compiler,{useFactory:function(){return new Jh(n,o.type.reference)}}))],s=this._ngModuleCompiler.compile(o,i);r=this._compilerConfig.useJit?Vr(I(o),s.statements,[s.ngModuleFactoryVar])[0]:Ir(s.statements,[s.ngModuleFactoryVar])[0],this._compiledNgModuleCache.set(o.type.reference,r)}return r},t.prototype._compileComponents=function(t,e){var n=this,r=this._metadataResolver.getNgModuleMetadata(t),o=new Map,i=new Set;r.transitiveModule.modules.forEach(function(t){var r=n._metadataResolver.getNgModuleMetadata(t.reference);r.declaredDirectives.forEach(function(t){o.set(t.reference,r);var s=n._metadataResolver.getDirectiveMetadata(t.reference);if(s.isComponent&&(i.add(n._createCompiledTemplate(s,r)),e)){var a=n._createCompiledHostTemplate(s.type.reference,r);i.add(a),e.push(s.componentFactory)}})}),r.transitiveModule.modules.forEach(function(t){var e=n._metadataResolver.getNgModuleMetadata(t.reference);e.declaredDirectives.forEach(function(t){var e=n._metadataResolver.getDirectiveMetadata(t.reference);e.isComponent&&e.entryComponents.forEach(function(t){var e=o.get(t.componentType);i.add(n._createCompiledHostTemplate(t.componentType,e))})}),e.entryComponents.forEach(function(t){var e=o.get(t.componentType);i.add(n._createCompiledHostTemplate(t.componentType,e))})}),i.forEach(function(t){return n._compileTemplate(t)})},t.prototype.clearCacheFor=function(t){this._compiledNgModuleCache.delete(t),this._metadataResolver.clearCacheFor(t),this._compiledHostTemplateCache.delete(t);var e=this._compiledTemplateCache.get(t);e&&this._compiledTemplateCache.delete(t)},t.prototype.clearCache=function(){this._metadataResolver.clearCache(),this._compiledTemplateCache.clear(),this._compiledHostTemplateCache.clear(),this._compiledNgModuleCache.clear()},t.prototype._createCompiledHostTemplate=function(t,n){if(!n)throw new Error("Component "+e.ɵstringify(t)+" is not part of any NgModule or the module has not been imported into your module.");var r=this._compiledHostTemplateCache.get(t);if(!r){var o=this._metadataResolver.getDirectiveMetadata(t);Fr(o);var i=o.componentFactory,s=this._metadataResolver.getHostComponentType(t),a=T(s,o,e.ɵgetComponentViewDefinitionFactory(i));r=new Yh((!0),o.type,a,n,[o.type]),this._compiledHostTemplateCache.set(t,r)}return r},t.prototype._createCompiledTemplate=function(t,e){var n=this._compiledTemplateCache.get(t.type.reference);return n||(Fr(t),n=new Yh((!1),t.type,t,e,e.transitiveModule.directives),this._compiledTemplateCache.set(t.type.reference,n)),n},t.prototype._compileTemplate=function(t){var e=this;if(!t.isCompiled){var n=t.compMeta,r=new Map,o=this._styleCompiler.compileComponent(n);o.externalStylesheets.forEach(function(t){r.set(t.meta.moduleUrl,t)}),this._resolveStylesCompileResult(o.componentStylesheet,r);var i,s,a=t.directives.map(function(t){return e._metadataResolver.getDirectiveSummary(t.reference)}),u=t.ngModule.transitiveModule.pipes.map(function(t){return e._metadataResolver.getPipeSummary(t.reference)}),c=this._templateParser.parse(n,n.template.template,a,u,t.ngModule.schemas,R(t.ngModule.type,t.compMeta,t.compMeta.template)),l=c.template,p=c.pipes,h=this._viewCompiler.compileComponent(n,l,pn(o.componentStylesheet.stylesVar),p),f=o.componentStylesheet.statements.concat(h.statements),d=n.isHost?[h.viewClassVar]:[h.viewClassVar,h.rendererTypeVar];this._compilerConfig.useJit?(y=Vr(N(t.ngModule.type,t.compMeta),f,d),i=y[0],s=y[1]):(v=Ir(f,d),i=v[0],s=v[1]),t.compiled(i,s);var v,y}},t.prototype._resolveStylesCompileResult=function(t,e){var n=this;t.dependencies.forEach(function(t,r){var o=e.get(t.moduleUrl),i=n._resolveAndEvalStylesCompileResult(o,e);t.valuePlaceholder.reference=i})},t.prototype._resolveAndEvalStylesCompileResult=function(t,e){return this._resolveStylesCompileResult(t,e),this._compilerConfig.useJit?Vr(k(t.meta,this._sharedStylesheetCount++),t.statements,[t.stylesVar])[0]:Ir(t.statements,[t.stylesVar])[0]},t}();Zh.decorators=[{type:F}],Zh.ctorParameters=function(){return[{type:e.Injector},{type:Wc},{type:xc},{type:ah},{type:wh},{type:ep},{type:Ko},{type:e.ɵConsole}]};var Yh=function(){function t(t,e,n,r,o){this.isHost=t,this.compType=e,this.compMeta=n,this.ngModule=r,this.directives=o,this._viewClass=null,this.isCompiled=!1}return t.prototype.compiled=function(t,e){this._viewClass=t,this.compMeta.componentViewType.setDelegate(t);for(var n in e)this.compMeta.rendererType[n]=e[n];this.isCompiled=!0},t}(),Jh=function(){function t(t,e){this._delegate=t,this._ngModule=e}return Object.defineProperty(t.prototype,"_injector",{get:function(){return this._delegate.injector},enumerable:!0,configurable:!0}),t.prototype.compileModuleSync=function(t){return this._delegate.compileModuleSync(t)},t.prototype.compileModuleAsync=function(t){return this._delegate.compileModuleAsync(t)},t.prototype.compileModuleAndAllComponentsSync=function(t){return this._delegate.compileModuleAndAllComponentsSync(t)},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._delegate.compileModuleAndAllComponentsAsync(t)},t.prototype.getNgContentSelectors=function(t){return this._delegate.getNgContentSelectors(t)},t.prototype.clearCache=function(){this._delegate.clearCache()},t.prototype.clearCacheFor=function(t){this._delegate.clearCacheFor(t)},t}(),tf=function(){function t(t,e,n,r){void 0===r&&(r=null),this._htmlParser=t,this._implicitTags=e,this._implicitAttrs=n,this._locale=r,this._messages=[]}return t.prototype.updateFromTemplate=function(t,e,n){var r=this._htmlParser.parse(t,e,!0,n);if(r.errors.length)return r.errors;var o=Ct(r.rootNodes,n,this._implicitTags,this._implicitAttrs);if(o.errors.length)return o.errors;(i=this._messages).push.apply(i,o.messages);var i},t.prototype.getMessages=function(){return this._messages},t.prototype.write=function(t){var e={},n=new ef;this._messages.forEach(function(n){var r=t.digest(n);e.hasOwnProperty(r)||(e[r]=n)});var r=Object.keys(e).map(function(r){var o=t.createNameMapper(e[r]),i=e[r],s=o?n.convert(i.nodes,o):i.nodes;return new oa(s,{},{},i.meaning,i.description,r)});return t.write(r,this._locale)},t}(),ef=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return zr(e,t),e.prototype.convert=function(t,e){var n=this;return e?t.map(function(t){return t.visit(n,e)}):t},e.prototype.visitTagPlaceholder=function(t,e){var n=this,r=e.toPublicName(t.startName),o=t.closeName?e.toPublicName(t.closeName):t.closeName,i=t.children.map(function(t){return t.visit(n,e)});return new ua(t.tag,t.attrs,r,o,i,t.isVoid,t.sourceSpan)},e.prototype.visitPlaceholder=function(t,e){return new ca(t.value,e.toPublicName(t.name),t.sourceSpan)},e.prototype.visitIcuPlaceholder=function(t,e){return new la(t.value,e.toPublicName(t.name),t.sourceSpan)},e}(pa),nf=function(){function t(t,e,n,r){this.host=t,this.staticSymbolResolver=e,this.messageBundle=n,this.metadataResolver=r}return t.prototype.extract=function(t){var e=this,n=Cr(this.staticSymbolResolver,t,this.host),r=br(n,this.host,this.metadataResolver),o=r.files,i=r.ngModules;return Promise.all(i.map(function(t){return e.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=[];if(o.forEach(function(n){var r=[];n.directives.forEach(function(t){var n=e.metadataResolver.getDirectiveMetadata(t);n&&n.isComponent&&r.push(n)}),r.forEach(function(r){var o=r.template.template,i=Es.fromArray(r.template.interpolation);t.push.apply(t,e.messageBundle.updateFromTemplate(o,n.srcUrl,i))})}),t.length)throw new Error(t.map(function(t){return t.toString()}).join("\n"));return e.messageBundle})},t.create=function(n,r){var o=new _u(new yu),i=De(),s=new uo,a=new qh(n,s),u=new Bh(n,s,a),c=new Lh(u);Ih.install(c);var l=new Ko({defaultEncapsulation:e.ViewEncapsulation.Emulated,useJit:!1}),p=new Lc({get:function(t){return n.loadResource(t)}},i,o,l),h=new Tp,f=new Wc(l,new Bc(c),new Fc(c),new qc(c),a,h,p,new e.ɵConsole,s,c),d=new tf(o,[],{},r),v=new t(n,u,d,f);return{extractor:v,staticReflector:c}},t}(),rf={get:function(t){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+t+'"')}},of=new e.InjectionToken("HtmlParser"),sf=[{provide:e.ɵReflector,useValue:e.ɵreflector},{provide:e.ɵReflectorReader,useExisting:e.ɵReflector},{provide:kc,useValue:rf},zc,e.ɵConsole,Ts,Is,{provide:of,useClass:yu},{provide:_u,useFactory:function(t,e,n,r,o){return new _u(t,e,n,r.missingTranslation,o)},deps:[of,[new e.Optional,new e.Inject(e.TRANSLATIONS)],[new e.Optional,new e.Inject(e.TRANSLATIONS_FORMAT)],[Ko],[e.ɵConsole]]},{provide:yu,useExisting:_u},xc,Lc,Wc,Ic,ah,wh,ep,{provide:Ko,useValue:new Ko},Zh,{provide:e.Compiler,useExisting:Zh},Tp,{provide:Mu,useExisting:Tp},Nc,Fc,qc,Bc],af=function(){function t(t){var n={useDebug:e.isDevMode(),useJit:!0,defaultEncapsulation:e.ViewEncapsulation.Emulated,missingTranslation:e.MissingTranslationStrategy.Warning,enableLegacyTemplate:!0};this._defaultOptions=[n].concat(t)}return t.prototype.createCompiler=function(t){void 0===t&&(t=[]);var n=Hr(this._defaultOptions.concat(t)),r=e.ReflectiveInjector.resolveAndCreate([sf,{provide:Ko,useFactory:function(){return new Ko({useJit:n.useJit,defaultEncapsulation:n.defaultEncapsulation,missingTranslation:n.missingTranslation,enableLegacyTemplate:n.enableLegacyTemplate})},deps:[]},n.providers]);return r.get(e.Compiler)},t}();af.decorators=[{type:F}],af.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Inject,args:[e.COMPILER_OPTIONS]}]}]};var uf=e.createPlatformFactory(e.platformCore,"coreDynamic",[{provide:e.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:e.CompilerFactory,useClass:af},{provide:e.PLATFORM_INITIALIZER,useValue:Ur,multi:!0}]),cf=function(){function t(){}return t.prototype.fileNameToModuleName=function(t,e){},t.prototype.getImportAs=function(t){},t.prototype.getTypeArity=function(t){},t}();t.VERSION=Gr,t.TEMPLATE_TRANSFORMS=Cc,t.CompilerConfig=Ko,t.JitCompiler=Zh,t.DirectiveResolver=Fc,t.PipeResolver=qc,t.NgModuleResolver=Bc,t.DEFAULT_INTERPOLATION_CONFIG=Ss,t.InterpolationConfig=Es,t.NgModuleCompiler=ep,t.ViewCompiler=wh,t.isSyntaxError=f,t.syntaxError=h,t.TextAst=Wr,t.BoundTextAst=Kr,t.AttrAst=Qr,t.BoundElementPropertyAst=Xr,t.BoundEventAst=$r,t.ReferenceAst=Zr,t.VariableAst=Yr,t.ElementAst=Jr,t.EmbeddedTemplateAst=to,t.BoundDirectivePropertyAst=eo,t.DirectiveAst=no,t.ProviderAst=ro,t.ProviderAstType=oo,t.NgContentAst=io,t.PropertyBindingType=so,t.templateVisitAll=n,t.CompileAnimationEntryMetadata=To,t.CompileAnimationStateMetadata=Ao,t.CompileAnimationStateDeclarationMetadata=Oo,t.CompileAnimationStateTransitionMetadata=Mo,t.CompileAnimationMetadata=Ro,t.CompileAnimationKeyframesSequenceMetadata=ko,t.CompileAnimationStyleMetadata=Io,t.CompileAnimationAnimateMetadata=No,t.CompileAnimationWithStepsMetadata=Do,t.CompileAnimationSequenceMetadata=jo,t.CompileAnimationGroupMetadata=Lo,t.identifierName=g,t.identifierModuleUrl=_,t.viewClassName=b,t.rendererTypeName=w,t.hostViewClassName=C,t.dirWrapperClassName=E,t.componentFactoryName=S,t.CompileSummaryKind=Fo,t.tokenName=x,t.tokenReference=P,t.CompileStylesheetMetadata=Uo,t.CompileTemplateMetadata=Ho,t.CompileDirectiveMetadata=Bo,t.createHostComponentMeta=T,t.CompilePipeMetadata=qo,t.CompileNgModuleMetadata=zo,t.TransitiveCompileNgModuleMetadata=Go,t.ProviderMeta=Wo,t.flatten=O,t.sourceUrl=M,t.templateSourceUrl=R,t.sharedStylesheetJitUrl=k,t.ngModuleJitUrl=I,t.templateJitUrl=N,t.createAotCompiler=kr,t.AotCompiler=kh,t.analyzeNgModules=_r,t.analyzeAndValidateNgModules=br,t.extractProgramSymbols=Cr,t.GeneratedFile=Oh,t.StaticReflector=Lh,t.StaticAndDynamicReflectionCapabilities=Ih,t.StaticSymbol=ao,t.StaticSymbolCache=uo,t.ResolvedStaticSymbol=Uh,t.StaticSymbolResolver=Bh,t.unescapeIdentifier=Rr,t.AotSummaryResolver=qh,t.SummaryResolver=zc,t.COMPILER_PROVIDERS=sf,t.JitCompilerFactory=af,t.platformCoreDynamic=uf,t.createUrlResolverWithoutPackagePrefix=Ne,t.createOfflineCompileUrlResolver=De,t.DEFAULT_PACKAGE_URL_PROVIDER=Ic,t.UrlResolver=Nc,t.getUrlScheme=je,t.ResourceLoader=kc,t.ElementSchemaRegistry=Mu,t.Extractor=nf,t.I18NHtmlParser=_u,t.MessageBundle=tf,t.Serializer=Na,t.Xliff=Ya,t.Xmb=au,t.Xtb=fu,t.DirectiveNormalizer=Lc,t.ParserError=Qo,t.ParseSpan=Xo,t.AST=$o,t.Quote=Zo,t.EmptyExpr=Yo,t.ImplicitReceiver=Jo,t.Chain=ti,t.Conditional=ei,t.PropertyRead=ni,t.PropertyWrite=ri,t.SafePropertyRead=oi,t.KeyedRead=ii,t.KeyedWrite=si,t.BindingPipe=ai,t.LiteralPrimitive=ui,t.LiteralArray=ci,t.LiteralMap=li,t.Interpolation=pi,t.Binary=hi,t.PrefixNot=fi,t.MethodCall=di,t.SafeMethodCall=vi,t.FunctionCall=yi,t.ASTWithSource=mi,t.TemplateBinding=gi,t.RecursiveAstVisitor=_i,t.AstTransformer=bi,t.TokenType=xs,t.Lexer=Ts,t.Token=As,t.EOF=Os,t.isIdentifier=$,t.isQuote=tt,t.SplitInterpolation=Rs,t.TemplateBindingParseResult=ks,t.Parser=Is,t._ParseAST=Ns,t.ERROR_COLLECTOR_TOKEN=Gc,t.CompileMetadataResolver=Wc,t.componentModuleUrl=rn,t.Text=Hs,t.Expansion=Bs,t.ExpansionCase=qs,t.Attribute=zs,t.Element=Gs,t.Comment=Ws,t.visitAll=it,t.ParseTreeResult=ea,t.TreeError=ta,t.HtmlParser=yu,t.HtmlTagDefinition=po,t.getHtmlTagDefinition=s,t.TagContentType=co,t.splitNsName=r,t.getNsPrefix=o,t.mergeNsAndName=i,t.NAMED_ENTITIES=lo,t.ImportResolver=cf,t.debugOutputAstAsTypeScript=On,t.TypeScriptEmitter=gp,t.ParseLocation=js,t.ParseSourceFile=Ls,t.ParseSourceSpan=Vs,t.ParseErrorLevel=Fs,t.ParseError=Us,t.typeSourceSpan=ot,t.DomElementSchemaRegistry=Tp,t.CssSelector=yo,t.SelectorMatcher=mo,t.SelectorListContext=go,t.SelectorContext=_o,t.StylesCompileDependency=oh,t.StylesCompileResult=ih,t.CompiledStylesheet=sh,t.StyleCompiler=ah,t.TemplateParseError=Ec,t.TemplateParseResult=Sc,t.TemplateParser=xc,t.splitClasses=Ae,t.createElementCssSelector=Oe,t.removeSummaryDuplicates=Re,Object.defineProperty(t,"__esModule",{value:!0})})}(),function(){var o=t.amdDefine;!function(t,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/compiler"),e("@angular/core"),e("@angular/common"),e("@angular/platform-browser")):"function"==typeof o&&o.amd?o("4",["exports","2","3","5","6"],i):i((t.ng=t.ng||{},t.ng.platformBrowserDynamic=t.ng.platformBrowserDynamic||{}),t.ng.compiler,t.ng.core,t.ng.common,t.ng.platformBrowser)}(this,function(t,e,n,r,o){"use strict";var i=function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e.prototype.get=function(t){var e,n,r=new Promise(function(t,r){e=t,n=r}),o=new XMLHttpRequest;return o.open("GET",t,!0),o.responseType="text",o.onload=function(){var r=o.response||o.responseText,i=1223===o.status?204:o.status;0===i&&(i=r?200:0),200<=i&&i<=300?e(r):n("Failed to load "+t)},o.onerror=function(){n("Failed to load "+t)},o.send(),r},e}(e.ResourceLoader);s.decorators=[{type:n.Injectable}],s.ctorParameters=function(){return[]};var a=[o.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS,{provide:n.COMPILER_OPTIONS,useValue:{providers:[{provide:e.ResourceLoader,useClass:s}]},multi:!0},{provide:n.PLATFORM_ID,useValue:r.ɵPLATFORM_BROWSER_ID}],u=function(t){function e(){var e=t.call(this)||this;if(e._cache=n.ɵglobal.$templateCache,null==e._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.");return e}return i(e,t),e.prototype.get=function(t){return this._cache.hasOwnProperty(t)?Promise.resolve(this._cache[t]):Promise.reject("CachedResourceLoader: Did not find cached template for "+t)},e}(e.ResourceLoader),c=new n.Version("4.0.0"),l=[{provide:e.ResourceLoader,useClass:u}],p=n.createPlatformFactory(e.platformCoreDynamic,"browserDynamic",a);t.RESOURCE_CACHE_PROVIDER=l,t.platformBrowserDynamic=p,t.VERSION=c,t.ɵINTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS=a,t.ɵResourceLoaderImpl=s,Object.defineProperty(t,"__esModule",{value:!0})})}(),t.registerDynamic("7",["8"],!0,function(t,e,n){"use strict";var r=(this||self,t("8"));return e._throw=r.ErrorObservable.create,n.exports}),t.registerDynamic("9",["a","7"],!0,function(t,e,n){"use strict";var r=(this||self,t("a")),o=t("7");return r.Observable.throw=o._throw,n.exports}),t.registerDynamic("b",["a","c"],!0,function(t,e,n){"use strict";var r=(this||self,t("a")),o=t("c");return r.Observable.prototype.map=o.map,n.exports}),t.registerDynamic("d",["a","e"],!0,function(t,e,n){"use strict";var r=(this||self,t("a")),o=t("e");return r.Observable.prototype.catch=o._catch,r.Observable.prototype._catch=o._catch,n.exports}),t.registerDynamic("f",["9","b","d"],!0,function(t,e,n){"use strict";return this||self,Object.defineProperty(e,"__esModule",{value:!0}),t("9"),t("b"),t("d"),n.exports}),t.registerDynamic("10",["3","11","f","12"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=t("3"),s=t("11");t("f");var a=t("12"),u=function(){function t(t){this.api=t,console.log("api config: message.request is",t.getConfig("message.request")),console.log("Environment config",s.Config)}return t}();return u=r([i.Component({moduleId:n.id,selector:"sd-app",template:"<sd-toolbar></sd-toolbar> <sd-navbar></sd-navbar> <router-outlet></router-outlet>",styles:[":host{-webkit-flex:1 1 100%;-ms-flex:1 1 100%;flex:1 1 100%;display:-webkit-flex;display:-ms-flexbox;display:flex;-webkit-flex-flow:column;-ms-flex-flow:column;flex-flow:column}"]}),o("design:paramtypes",[a.ApiConfig])],u),e.AppComponent=u,n.exports}),t.registerDynamic("13",["3","14"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s});Object.defineProperty(e,"__esModule",{value:!0});var o=t("3"),i=t("14"),s=function(){function t(){}return t}();return s=r([o.NgModule({imports:[i.RouterModule.forRoot([])],exports:[i.RouterModule]})],s),e.AppRoutingModule=s,n.exports}),t.registerDynamic("15",["3"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s});Object.defineProperty(e,"__esModule",{value:!0});var o=t("3"),i=function(){function t(){}return t}();return i=r([o.Component({moduleId:n.id,selector:"sd-about",template:'<p>Angular Seed is a starter project that implements best practices in coding, building and testing Angular apps.</p>  <h2>Features</h2> <ul>   <li>Ready to go, statically typed build system using Gulp for working with TypeScript.</li>   <li>Production and development builds.</li>   <li>Sample unit tests with Jasmine and Karma including code coverage via Istanbul.</li>   <li>End-to-end tests with Protractor.</li>   <li>Development server with live reload.</li>   <li>TypeScript definition management using Types.</li>   <li>Basic Service Worker, which implements "Cache then network strategy".</li> </ul>',styles:[":host{display:block;padding:0 16px}h2{font-size:20px;font-weight:500;letter-spacing:.005em;margin-bottom:0;margin-top:.83em}"]})],i),e.AboutComponent=i,n.exports}),t.registerDynamic("16",["3","14","15"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s});Object.defineProperty(e,"__esModule",{value:!0});var o=t("3"),i=t("14"),s=t("15"),a=function(){function t(){}return t}();return a=r([o.NgModule({imports:[i.RouterModule.forChild([{path:"about",component:s.AboutComponent}])],exports:[i.RouterModule]})],a),e.AboutRoutingModule=a,n.exports}),t.registerDynamic("17",["3","5","15","16"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s});Object.defineProperty(e,"__esModule",{value:!0});var o=t("3"),i=t("5"),s=t("15"),a=t("16"),u=function(){function t(){}return t}();return u=r([o.NgModule({imports:[i.CommonModule,a.AboutRoutingModule],declarations:[s.AboutComponent],exports:[s.AboutComponent]})],u),e.AboutModule=u,n.exports}),t.registerDynamic("18",["3","19"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=t("3"),s=t("19"),a=function(){function t(t){this.nameListService=t,this.newName="",this.names=[]}return t.prototype.ngOnInit=function(){this.getNames()},t.prototype.getNames=function(){var t=this;this.nameListService.get().subscribe(function(e){return t.names=e},function(e){return t.errorMessage=e})},t.prototype.addName=function(){return this.names.push(this.newName),this.newName="",!1},t}();return a=r([i.Component({moduleId:n.id,selector:"sd-home",template:'<p>Howdy! Here\'s a list of awesome computer scientists. Do you know any others? Add to the list yourself.</p>  <form (submit)="addName()">   <input [(ngModel)]="newName" name="newName" placeholder="Awesome Computer Scientist">   <button type="submit">Add</button> </form>  <ul>   <li *ngFor="let name of names">{{name}}</li> </ul>',styles:[":host{display:block;padding:0 16px}input{width:250px}ul{list-style-type:none;padding:0 0 0 8px}"]}),o("design:paramtypes",[s.NameListService])],a),e.HomeComponent=a,n.exports}),t.registerDynamic("1a",["3","14","18","1b"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s});Object.defineProperty(e,"__esModule",{value:!0});var o=t("3"),i=t("14"),s=t("18"),a=t("1b"),u=function(){function t(){}return t}();return u=r([o.NgModule({imports:[i.RouterModule.forChild([{path:"",component:s.HomeComponent,canActivate:[a.StubApiGuard]}])],exports:[i.RouterModule]})],u),e.HomeRoutingModule=u,n.exports}),t.registerDynamic("1c",["3","18","1a","1d","19"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s});Object.defineProperty(e,"__esModule",{value:!0});var o=t("3"),i=t("18"),s=t("1a"),a=t("1d"),u=t("19"),c=function(){function t(){}return t}();return c=r([o.NgModule({imports:[s.HomeRoutingModule,a.SharedModule],declarations:[i.HomeComponent],exports:[i.HomeComponent],providers:[u.NameListService]})],c),e.HomeModule=c,n.exports}),t.registerDynamic("1e",["a","1f","20","21","22"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=t("a"),i=t("1f"),s=t("20"),a=t("21"),u=t("22"),c=function(t){function e(e,n){t.call(this),this.sources=e,this.resultSelector=n}return r(e,t),e.create=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];if(null===t||0===arguments.length)return new i.EmptyObservable;var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&s.isArray(t[0])&&(t=t[0]),0===t.length?new i.EmptyObservable:new e(t,r)},e.prototype._subscribe=function(t){return new l(t,this.sources,this.resultSelector)},e}(o.Observable);e.ForkJoinObservable=c;var l=function(t){function e(e,n,r){t.call(this,e),this.sources=n,this.resultSelector=r,this.completed=0,this.haveValues=0;var o=n.length;this.total=o,this.values=new Array(o);for(var i=0;i<o;i++){var s=n[i],u=a.subscribeToResult(this,s,null,i);u&&(u.outerIndex=i,this.add(u))}}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.values[n]=e,o._hasValue||(o._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this,r=n.haveValues,o=n.resultSelector,i=n.values,s=i.length;if(!t._hasValue)return void e.complete();if(this.completed++,this.completed===s){if(r===s){var a=o?o.apply(this,i):i;e.next(a)}e.complete()}},e}(u.OuterSubscriber);return n.exports}),t.registerDynamic("23",["1e"],!0,function(t,e,n){"use strict";var r=(this||self,t("1e"));return e.forkJoin=r.ForkJoinObservable.create,n.exports}),function(){var o=t.amdDefine;!function(t,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/core"),e("rxjs/observable/forkJoin"),e("rxjs/observable/fromPromise"),e("rxjs/operator/map"),e("@angular/platform-browser")):"function"==typeof o&&o.amd?o("24",["exports","3","23","25","c","6"],i):i((t.ng=t.ng||{},t.ng.forms=t.ng.forms||{}),t.ng.core,t.Rx.Observable,t.Rx.Observable,t.Rx.Observable.prototype,t.ng.platformBrowser)}(this,function(t,e,n,r,o,i){"use strict";function s(t){return null==t||0===t.length}function a(t){return null!=t}function u(t){var n=e.ɵisPromise(t)?r.fromPromise(t):t;if(!e.ɵisObservable(n))throw new Error("Expected validator to return Promise or Observable.");return n}function c(t,e){return e.map(function(e){return e(t)})}function l(t,e){return e.map(function(e){return e(t)})}function p(t){var n=t.reduce(function(t,n){return null!=n?e.ɵmerge(t,n):t},{});return 0===Object.keys(n).length?null:n}function h(){var t=i.ɵgetDOM()?i.ɵgetDOM().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}function f(t){return t.validate?function(e){return t.validate(e)}:t}function d(t){return t.validate?function(e){return t.validate(e)}:t}function v(){throw new Error("unimplemented")}function y(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function m(t){return t.split(":")[0]}function g(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function _(t){return t.split(":")[0]}function b(t,e){return e.path.concat([t])}function w(t,e){t||x(e,"Cannot find control with"),e.valueAccessor||x(e,"No value accessor for form control with"),t.validator=B.compose([t.validator,e.validator]),t.asyncValidator=B.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),e.valueAccessor.registerOnChange(function(n){e.viewToModelUpdate(n),t.markAsDirty(),t.setValue(n,{emitModelToViewChange:!1})}),e.valueAccessor.registerOnTouched(function(){return t.markAsTouched()}),
  t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)}),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function C(t,e){e.valueAccessor.registerOnChange(function(){return S(e)}),e.valueAccessor.registerOnTouched(function(){return S(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}function E(t,e){null==t&&x(e,"Cannot find control with"),t.validator=B.compose([t.validator,e.validator]),t.asyncValidator=B.composeAsync([t.asyncValidator,e.asyncValidator])}function S(t){return x(t,"There is no FormControl instance attached to form control element with")}function x(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function P(t){return null!=t?B.compose(t.map(f)):null}function T(t){return null!=t?B.composeAsync(t.map(d)):null}function A(t,n){if(!t.hasOwnProperty("model"))return!1;var r=t.model;return!!r.isFirstChange()||!e.ɵlooseIdentical(n,r.currentValue)}function O(t){return ct.some(function(e){return t.constructor===e})}function M(t,e){if(!e)return null;var n,r,o;return e.forEach(function(e){e.constructor===Q?n=e:O(e)?(r&&x(t,"More than one built-in value accessor matches form control with"),r=e):(o&&x(t,"More than one custom value accessor matches form control with"),o=e)}),o?o:r?r:n?n:(x(t,"No valid value accessor for form control with"),null)}function R(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(n)),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof wt?t.controls[e]||null:t instanceof Ct?t.at(e)||null:null},t))}function k(t){return Array.isArray(t)?P(t):t}function I(t){return Array.isArray(t)?T(t):t}function N(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function D(t){return!(t instanceof Ft||t instanceof Lt||t instanceof Ht)}var j=function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},L=function(){function t(){}return Object.defineProperty(t.prototype,"control",{get:function(){throw new Error("unimplemented")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return void 0===e&&(e=null),!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return void 0===e&&(e=null),this.control?this.control.getError(t,e):null},t}(),V=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(L),F=new e.InjectionToken("NgValidators"),U=new e.InjectionToken("NgAsyncValidators"),H=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+\/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,B=function(){function t(){}return t.required=function(t){return s(t.value)?{required:!0}:null},t.requiredTrue=function(t){return t.value===!0?null:{required:!0}},t.email=function(t){return H.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(s(e.value))return null;var n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}},t.maxLength=function(t){return function(e){var n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){if(!e)return t.nullValidator;var n,r;return"string"==typeof e?(r="^"+e+"$",n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(s(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(a);return 0==e.length?null:function(t){return p(c(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(a);return 0==e.length?null:function(t){var r=l(t,e).map(u);return o.map.call(n.forkJoin(r),p)}},t}(),q=new e.InjectionToken("NgValueAccessor"),z={provide:q,useExisting:e.forwardRef(function(){return G}),multi:!0},G=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();G.decorators=[{type:e.Directive,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[z]}]}],G.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]};var W={provide:q,useExisting:e.forwardRef(function(){return Q}),multi:!0},K=new e.InjectionToken("CompositionEventMode"),Q=function(){function t(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!h())}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}();Q.decorators=[{type:e.Directive,args:[{selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)"},providers:[W]}]}],Q.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[K]}]}]};var X={provide:q,useExisting:e.forwardRef(function(){return $}),multi:!0},$=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setElementProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();$.decorators=[{type:e.Directive,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[X]}]}],$.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]};var Z=function(t){function e(){var e=t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return j(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return v()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return v()},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){},e}(L),Y={provide:q,useExisting:e.forwardRef(function(){return tt}),multi:!0},J=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t}();J.decorators=[{type:e.Injectable}],J.ctorParameters=function(){return[]};var tt=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(Z),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setElementProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=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: <input type="radio" formControlName="food" name="food">\n    ')},t}();tt.decorators=[{type:e.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[Y]}]}],tt.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef},{type:J},{type:e.Injector}]},tt.propDecorators={name:[{type:e.Input}],formControlName:[{type:e.Input}],value:[{type:e.Input}]};var et={provide:q,useExisting:e.forwardRef(function(){return nt}),multi:!0},nt=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t}();nt.decorators=[{type:e.Directive,args:[{selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[et]}]}],nt.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]};var rt={provide:q,useExisting:e.forwardRef(function(){return ot}),multi:!0},ot=function(){function t(t,n){this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=e.ɵlooseIdentical}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setElementProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=y(e,t);this._renderer.setElementProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=n,t(e._getOptionValue(n))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e<n.length;e++){var r=n[e];if(this._compareWith(this._optionMap.get(r),t))return r}return null},t.prototype._getOptionValue=function(t){var e=m(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}();ot.decorators=[{type:e.Directive,args:[{selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[rt]}]}],ot.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]},ot.propDecorators={compareWith:[{type:e.Input}]};var it=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(y(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setElementProperty(this._element.nativeElement,"value",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();it.decorators=[{type:e.Directive,args:[{selector:"option"}]}],it.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer},{type:ot,decorators:[{type:e.Optional},{type:e.Host}]}]},it.propDecorators={ngValue:[{type:e.Input,args:["ngValue"]}],value:[{type:e.Input,args:["value"]}]};var st={provide:q,useExisting:e.forwardRef(function(){return at}),multi:!0},at=function(){function t(t,n){this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=e.ɵlooseIdentical}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e=this;this.value=t;var n;if(Array.isArray(t)){var r=t.map(function(t){return e._getOptionId(t)});n=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else n=function(t,e){t._setSelected(!1)};this._optionMap.forEach(n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i<o.length;i++){var s=o.item(i),a=e._getOptionValue(s.value);r.push(a)}else for(var o=n.options,i=0;i<o.length;i++){var s=o.item(i);if(s.selected){var a=e._getOptionValue(s.value);r.push(a)}}e.value=r,t(r)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setElementProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(t){var e=(this._idCounter++).toString();return this._optionMap.set(e,t),e},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e<n.length;e++){var r=n[e];if(this._compareWith(this._optionMap.get(r)._value,t))return r}return null},t.prototype._getOptionValue=function(t){var e=_(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t},t}();at.decorators=[{type:e.Directive,args:[{selector:"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",host:{"(change)":"onChange($event.target)","(blur)":"onTouched()"},providers:[st]}]}],at.ctorParameters=function(){return[{type:e.Renderer},{type:e.ElementRef}]},at.propDecorators={compareWith:[{type:e.Input}]};var ut=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._value=t,this._setElementValue(g(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._select?(this._value=t,this._setElementValue(g(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setElementProperty(this._element.nativeElement,"value",t)},t.prototype._setSelected=function(t){this._renderer.setElementProperty(this._element.nativeElement,"selected",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();ut.decorators=[{type:e.Directive,args:[{selector:"option"}]}],ut.ctorParameters=function(){return[{type:e.ElementRef},{type:e.Renderer},{type:at,decorators:[{type:e.Optional},{type:e.Host}]}]},ut.propDecorators={ngValue:[{type:e.Input,args:["ngValue"]}],value:[{type:e.Input,args:["value"]}]};var ct=[G,nt,$,ot,at,tt],lt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return b(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return P(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return T(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(V),pt=function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}(),ht={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},ft=function(t){function e(e){return t.call(this,e)||this}return j(e,t),e}(pt);ft.decorators=[{type:e.Directive,args:[{selector:"[formControlName],[ngModel],[formControl]",host:ht}]}],ft.ctorParameters=function(){return[{type:Z,decorators:[{type:e.Self}]}]};var dt=function(t){function e(e){return t.call(this,e)||this}return j(e,t),e}(pt);dt.decorators=[{type:e.Directive,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:ht}]}],dt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Self}]}]};var vt="VALID",yt="INVALID",mt="PENDING",gt="DISABLED",_t=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this._pristine=!0,this._touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this._status===vt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this._status===yt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this._status==mt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._status===gt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this._status!==gt},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this._errors},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this._pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this._valueChanges},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this._statusChanges},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=k(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=I(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=!0,this._parent&&!e&&this._parent.markAsTouched({onlySelf:e})},t.prototype.markAsUntouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!e&&this._parent._updateTouched({onlySelf:e})},t.prototype.markAsDirty=function(t){var e=(void 0===t?{}:t).onlySelf;this._pristine=!1,this._parent&&!e&&this._parent.markAsDirty({onlySelf:e})},t.prototype.markAsPristine=function(t){var e=(void 0===t?{}:t).onlySelf;this._pristine=!0,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!e&&this._parent._updatePristine({onlySelf:e})},t.prototype.markAsPending=function(t){var e=(void 0===t?{}:t).onlySelf;this._status=mt,this._parent&&!e&&this._parent.markAsPending({onlySelf:e})},t.prototype.disable=function(t){var e=void 0===t?{}:t,n=e.onlySelf,r=e.emitEvent;this._status=gt,this._errors=null,this._forEachChild(function(t){t.disable({onlySelf:!0})}),this._updateValue(),r!==!1&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._updateAncestors(n),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){var e=void 0===t?{}:t,n=e.onlySelf,r=e.emitEvent;this._status=vt,this._forEachChild(function(t){t.enable({onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:r}),this._updateAncestors(n),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t&&(this._parent.updateValueAndValidity(),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.setValue=function(t,e){},t.prototype.patchValue=function(t,e){},t.prototype.reset=function(t,e){},t.prototype.updateValueAndValidity=function(t){var e=void 0===t?{}:t,n=e.onlySelf,r=e.emitEvent;this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this._errors=this._runValidator(),this._status=this._calculateStatus(),this._status!==vt&&this._status!==mt||this._runAsyncValidator(r)),r!==!1&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._parent&&!n&&this._parent.updateValueAndValidity({onlySelf:n,emitEvent:r})},t.prototype._updateTreeValidity=function(t){var e=(void 0===t?{emitEvent:!0}:t).emitEvent;this._forEachChild(function(t){return t._updateTreeValidity({emitEvent:e})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e})},t.prototype._setInitialStatus=function(){this._status=this._allControlsDisabled()?gt:vt},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this._status=mt;var n=u(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return e.setErrors(n,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){var n=(void 0===e?{}:e).emitEvent;this._errors=t,this._updateControlsErrors(n!==!1)},t.prototype.get=function(t){return R(this,t,".")},t.prototype.getError=function(t,e){void 0===e&&(e=null);var n=e?this.get(e):this;return n&&n._errors?n._errors[t]:null},t.prototype.hasError=function(t,e){return void 0===e&&(e=null),!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this._status=this._calculateStatus(),t&&this._statusChanges.emit(this._status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this._valueChanges=new e.EventEmitter,this._statusChanges=new e.EventEmitter},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?gt:this._errors?yt:this._anyControlsHaveStatus(mt)?mt:this._anyControlsHaveStatus(yt)?yt:vt},t.prototype._updateValue=function(){},t.prototype._forEachChild=function(t){},t.prototype._anyControls=function(t){},t.prototype._allControlsDisabled=function(){},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls(function(e){return e.status===t})},t.prototype._anyControlsDirty=function(){return this._anyControls(function(t){return t.dirty})},t.prototype._anyControlsTouched=function(){return this._anyControls(function(t){return t.touched})},t.prototype._updatePristine=function(t){var e=(void 0===t?{}:t).onlySelf;this._pristine=!this._anyControlsDirty(),this._parent&&!e&&this._parent._updatePristine({onlySelf:e})},t.prototype._updateTouched=function(t){var e=(void 0===t?{}:t).onlySelf;this._touched=this._anyControlsTouched(),this._parent&&!e&&this._parent._updateTouched({onlySelf:e})},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t}(),bt=function(t){function e(e,n,r){void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null);var o=t.call(this,k(n),I(r))||this;return o._onChange=[],o._applyFormState(e),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return j(e,t),e.prototype.setValue=function(t,e){var n=this,r=void 0===e?{}:e,o=r.onlySelf,i=r.emitEvent,s=r.emitModelToViewChange,a=r.emitViewToModelChange;this._value=t,this._onChange.length&&s!==!1&&this._onChange.forEach(function(t){return t(n._value,a!==!1)}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null);var n=void 0===e?{}:e,r=n.onlySelf,o=n.emitEvent;this._applyFormState(t),this.markAsPristine({onlySelf:r}),this.markAsUntouched({onlySelf:r}),this.setValue(this._value,{onlySelf:r,emitEvent:o})},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this._value=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this._value=t;
  },e}(_t),wt=function(t){function e(e,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var o=t.call(this,n,r)||this;return o.controls=e,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return j(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this,r=void 0===e?{}:e,o=r.onlySelf,i=r.emitEvent;this._checkAllValuesPresent(t),Object.keys(t).forEach(function(e){n._throwIfControlMissing(e),n.controls[e].setValue(t[e],{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},e.prototype.patchValue=function(t,e){var n=this,r=void 0===e?{}:e,o=r.onlySelf,i=r.emitEvent;Object.keys(t).forEach(function(e){n.controls[e]&&n.controls[e].patchValue(t[e],{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},e.prototype.reset=function(t,e){void 0===t&&(t={});var n=void 0===e?{}:e,r=n.onlySelf,o=n.emitEvent;this._forEachChild(function(e,n){e.reset(t[n],{onlySelf:!0,emitEvent:o})}),this.updateValueAndValidity({onlySelf:r,emitEvent:o}),this._updatePristine({onlySelf:r}),this._updateTouched({onlySelf:r})},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof bt?e.value:e.getRawValue(),t})},e.prototype._throwIfControlMissing=function(t){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[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})},e.prototype._updateValue=function(){this._value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild(function(r,o){n=n||e.contains(o)&&t(r)}),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e})},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild(function(t,r){n=e(n,t,r)}),n},e.prototype._allControlsDisabled=function(){for(var t=0,e=Object.keys(this.controls);t<e.length;t++){var n=e[t];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(_t),Ct=function(t){function e(e,n,r){void 0===n&&(n=null),void 0===r&&(r=null);var o=t.call(this,n,r)||this;return o.controls=e,o._initObservables(),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return j(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this,r=void 0===e?{}:e,o=r.onlySelf,i=r.emitEvent;this._checkAllValuesPresent(t),t.forEach(function(t,e){n._throwIfControlMissing(e),n.at(e).setValue(t,{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},e.prototype.patchValue=function(t,e){var n=this,r=void 0===e?{}:e,o=r.onlySelf,i=r.emitEvent;t.forEach(function(t,e){n.at(e)&&n.at(e).patchValue(t,{onlySelf:!0,emitEvent:i})}),this.updateValueAndValidity({onlySelf:o,emitEvent:i})},e.prototype.reset=function(t,e){void 0===t&&(t=[]);var n=void 0===e?{}:e,r=n.onlySelf,o=n.emitEvent;this._forEachChild(function(e,n){e.reset(t[n],{onlySelf:!0,emitEvent:o})}),this.updateValueAndValidity({onlySelf:r,emitEvent:o}),this._updatePristine({onlySelf:r}),this._updateTouched({onlySelf:r})},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof bt?t.value:t.getRawValue()})},e.prototype._throwIfControlMissing=function(t){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(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this._value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){for(var t=0,e=this.controls;t<e.length;t++){var n=e[t];if(n.enabled)return!1}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(_t),Et={provide:V,useExisting:e.forwardRef(function(){return xt})},St=Promise.resolve(null),xt=function(t){function n(n,r){var o=t.call(this)||this;return o._submitted=!1,o.ngSubmit=new e.EventEmitter,o.form=new wt({},P(n),T(r)),o}return j(n,t),Object.defineProperty(n.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),n.prototype.addControl=function(t){var e=this;St.then(function(){var n=e._findContainer(t.path);t._control=n.registerControl(t.name,t.control),w(t.control,t),t.control.updateValueAndValidity({emitEvent:!1})})},n.prototype.getControl=function(t){return this.form.get(t.path)},n.prototype.removeControl=function(t){var e=this;St.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},n.prototype.addFormGroup=function(t){var e=this;St.then(function(){var n=e._findContainer(t.path),r=new wt({});E(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},n.prototype.removeFormGroup=function(t){var e=this;St.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},n.prototype.getFormGroup=function(t){return this.form.get(t.path)},n.prototype.updateModel=function(t,e){var n=this;St.then(function(){var r=n.form.get(t.path);r.setValue(e)})},n.prototype.setValue=function(t){this.control.setValue(t)},n.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},n.prototype.onReset=function(){this.resetForm()},n.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},n.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},n}(V);xt.decorators=[{type:e.Directive,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[Et],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],xt.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[F]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]}]};var Pt={formControlName:'\n    <div [formGroup]="myGroup">\n      <input formControlName="firstName">\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       firstName: new FormControl()\n    });',formGroupName:'\n    <div [formGroup]="myGroup">\n       <div formGroupName="person">\n          <input formControlName="firstName">\n       </div>\n    </div>\n\n    In your class:\n\n    this.myGroup = new FormGroup({\n       person: new FormGroup({ firstName: new FormControl() })\n    });',formArrayName:'\n    <div [formGroup]="myGroup">\n      <div formArrayName="cities">\n        <div *ngFor="let city of cityArray.controls; index as i">\n          <input [formControlName]="i">\n        </div>\n      </div>\n    </div>\n\n    In your class:\n\n    this.cityArray = new FormArray([new FormControl(\'SF\')]);\n    this.myGroup = new FormGroup({\n      cities: this.cityArray\n    });',ngModelGroup:'\n    <form>\n       <div ngModelGroup="person">\n          <input [(ngModel)]="person.name" name="firstName">\n       </div>\n    </form>',ngModelWithFormGroup:'\n    <div [formGroup]="myGroup">\n       <input formControlName="firstName">\n       <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n    </div>\n  '},Tt=function(){function t(){}return t.modelParentException=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      '+Pt.formControlName+"\n\n      Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n      Example:\n\n      "+Pt.ngModelWithFormGroup)},t.formGroupNameException=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      "+Pt.formGroupName+"\n\n      Option 2:  Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n      "+Pt.ngModelGroup)},t.missingNameException=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: <input [(ngModel)]="person.firstName" name="first">\n      Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},t.modelGroupParentException=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      "+Pt.formGroupName+"\n\n      Option 2:  Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n      "+Pt.ngModelGroup)},t}(),At={provide:V,useExisting:e.forwardRef(function(){return Ot})},Ot=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return j(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof xt||Tt.modelGroupParentException()},e}(lt);Ot.decorators=[{type:e.Directive,args:[{selector:"[ngModelGroup]",providers:[At],exportAs:"ngModelGroup"}]}],Ot.ctorParameters=function(){return[{type:V,decorators:[{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[F]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]}]},Ot.propDecorators={name:[{type:e.Input,args:["ngModelGroup"]}]};var Mt={provide:Z,useExisting:e.forwardRef(function(){return kt})},Rt=Promise.resolve(null),kt=function(t){function n(n,r,o,i){var s=t.call(this)||this;return s._control=new bt,s._registered=!1,s.update=new e.EventEmitter,s._parent=n,s._rawValidators=r||[],s._rawAsyncValidators=o||[],s.valueAccessor=M(s,i),s}return j(n,t),n.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),A(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},n.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(n.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return this._parent?b(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return P(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return T(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),n.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},n.prototype._setUpControl=function(){this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},n.prototype._isStandalone=function(){return!this._parent||this.options&&this.options.standalone},n.prototype._setUpStandalone=function(){w(this._control,this),this._control.updateValueAndValidity({emitEvent:!1})},n.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},n.prototype._checkParentType=function(){!(this._parent instanceof Ot)&&this._parent instanceof lt?Tt.formGroupNameException():this._parent instanceof Ot||this._parent instanceof xt||Tt.modelParentException()},n.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Tt.missingNameException()},n.prototype._updateValue=function(t){var e=this;Rt.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},n.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;Rt.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},n}(Z);kt.decorators=[{type:e.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Mt],exportAs:"ngModel"}]}],kt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[F]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[q]}]}]},kt.propDecorators={name:[{type:e.Input}],isDisabled:[{type:e.Input,args:["disabled"]}],model:[{type:e.Input,args:["ngModel"]}],options:[{type:e.Input,args:["ngModelOptions"]}],update:[{type:e.Output,args:["ngModelChange"]}]};var It=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+Pt.formControlName)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n       that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n       Option 1:  Update the parent to be formGroupName (reactive form strategy)\n\n        '+Pt.formGroupName+"\n\n        Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n        "+Pt.ngModelGroup)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n       Example:\n\n       "+Pt.formControlName)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive.  You'll want to add a formGroup\n      directive and pass it an existing FormGroup instance (you can create one in your class).\n\n      Example:\n\n      "+Pt.formGroupName)},t.arrayParentException=function(){throw new Error("formArrayName must be used with a parent formGroup directive.  You'll want to add a formGroup\n       directive and pass it an existing FormGroup instance (you can create one in your class).\n\n        Example:\n\n        "+Pt.formArrayName)},t.disabledAttrWarning=function(){console.warn("\n      It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n      when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n      you. We recommend using this approach to avoid 'changed after checked' errors.\n       \n      Example: \n      form = new FormGroup({\n        first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n        last: new FormControl('Drew', Validators.required)\n      });\n    ")},t}(),Nt={provide:Z,useExisting:e.forwardRef(function(){return Dt})},Dt=function(t){function n(n,r,o){var i=t.call(this)||this;return i.update=new e.EventEmitter,i._rawValidators=n||[],i._rawAsyncValidators=r||[],i.valueAccessor=M(i,o),i}return j(n,t),Object.defineProperty(n.prototype,"isDisabled",{set:function(t){It.disabledAttrWarning()},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(w(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),A(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(n.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return P(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return T(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),n.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},n.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},n}(Z);Dt.decorators=[{type:e.Directive,args:[{selector:"[formControl]",providers:[Nt],exportAs:"ngForm"}]}],Dt.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[F]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[q]}]}]},Dt.propDecorators={form:[{type:e.Input,args:["formControl"]}],model:[{type:e.Input,args:["ngModel"]}],update:[{type:e.Output,args:["ngModelChange"]}],isDisabled:[{type:e.Input,args:["disabled"]}]};var jt={provide:V,useExisting:e.forwardRef(function(){return Lt})},Lt=function(t){function n(n,r){var o=t.call(this)||this;return o._validators=n,o._asyncValidators=r,o._submitted=!1,o.directives=[],o.form=null,o.ngSubmit=new e.EventEmitter,o}return j(n,t),n.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(n.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),n.prototype.addControl=function(t){var e=this.form.get(t.path);return w(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},n.prototype.getControl=function(t){return this.form.get(t.path)},n.prototype.removeControl=function(t){N(this.directives,t)},n.prototype.addFormGroup=function(t){var e=this.form.get(t.path);E(e,t),e.updateValueAndValidity({emitEvent:!1})},n.prototype.removeFormGroup=function(t){},n.prototype.getFormGroup=function(t){return this.form.get(t.path)},n.prototype.addFormArray=function(t){var e=this.form.get(t.path);E(e,t),e.updateValueAndValidity({emitEvent:!1})},n.prototype.removeFormArray=function(t){},n.prototype.getFormArray=function(t){return this.form.get(t.path)},n.prototype.updateModel=function(t,e){var n=this.form.get(t.path);n.setValue(e)},n.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},n.prototype.onReset=function(){this.resetForm()},n.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},n.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e._control!==n&&(C(e._control,e),n&&w(n,e),e._control=n)}),this.form._updateTreeValidity({emitEvent:!1})},n.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},n.prototype._updateValidators=function(){var t=P(this._validators);this.form.validator=B.compose([this.form.validator,t]);var e=T(this._asyncValidators);this.form.asyncValidator=B.composeAsync([this.form.asyncValidator,e])},n.prototype._checkFormPresent=function(){this.form||It.missingFormException()},n}(V);Lt.decorators=[{type:e.Directive,args:[{selector:"[formGroup]",providers:[jt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],Lt.ctorParameters=function(){return[{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[F]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]}]},Lt.propDecorators={form:[{type:e.Input,args:["formGroup"]}],ngSubmit:[{type:e.Output}]};var Vt={provide:V,useExisting:e.forwardRef(function(){return Ft})},Ft=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return j(e,t),e.prototype._checkParentType=function(){D(this._parent)&&It.groupParentException()},e}(lt);Ft.decorators=[{type:e.Directive,args:[{selector:"[formGroupName]",providers:[Vt]}]}],Ft.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[F]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]}]},Ft.propDecorators={name:[{type:e.Input,args:["formGroupName"]}]};var Ut={provide:V,useExisting:e.forwardRef(function(){return Ht})},Ht=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return j(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return b(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return P(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return T(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){D(this._parent)&&It.arrayParentException()},e}(V);Ht.decorators=[{type:e.Directive,args:[{selector:"[formArrayName]",providers:[Ut]}]}],Ht.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[F]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]}]},Ht.propDecorators={name:[{type:e.Input,args:["formArrayName"]}]};var Bt={provide:Z,useExisting:e.forwardRef(function(){return qt})},qt=function(t){function n(n,r,o,i){var s=t.call(this)||this;return s._added=!1,s.update=new e.EventEmitter,s._parent=n,s._rawValidators=r||[],s._rawAsyncValidators=o||[],s.valueAccessor=M(s,i),s}return j(n,t),Object.defineProperty(n.prototype,"isDisabled",{set:function(t){It.disabledAttrWarning()},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),A(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},n.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},n.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(n.prototype,"path",{get:function(){return b(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return P(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return T(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),n.prototype._checkParentType=function(){!(this._parent instanceof Ft)&&this._parent instanceof lt?It.ngModelGroupException():this._parent instanceof Ft||this._parent instanceof Lt||this._parent instanceof Ht||It.controlParentException()},n.prototype._setUpControl=function(){this._checkParentType(),this._control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},n}(Z);qt.decorators=[{type:e.Directive,args:[{selector:"[formControlName]",providers:[Bt]}]}],qt.ctorParameters=function(){return[{type:V,decorators:[{type:e.Optional},{type:e.Host},{type:e.SkipSelf}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[F]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[U]}]},{type:Array,decorators:[{type:e.Optional},{type:e.Self},{type:e.Inject,args:[q]}]}]},qt.propDecorators={name:[{type:e.Input,args:["formControlName"]}],model:[{type:e.Input,args:["ngModel"]}],update:[{type:e.Output,args:["ngModelChange"]}],isDisabled:[{type:e.Input,args:["disabled"]}]};var zt={provide:F,useExisting:e.forwardRef(function(){return Wt}),multi:!0},Gt={provide:F,useExisting:e.forwardRef(function(){return Kt}),multi:!0},Wt=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&t!==!1&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?B.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();Wt.decorators=[{type:e.Directive,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[zt],host:{"[attr.required]":'required ? "" : null'}}]}],Wt.ctorParameters=function(){return[]},Wt.propDecorators={required:[{type:e.Input}]};var Kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.validate=function(t){return this.required?B.requiredTrue(t):null},e}(Wt);Kt.decorators=[{type:e.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[Gt],host:{"[attr.required]":'required ? "" : null'}}]}],Kt.ctorParameters=function(){return[]};var Qt={provide:F,useExisting:e.forwardRef(function(){return Xt}),multi:!0},Xt=function(){function t(){}return Object.defineProperty(t.prototype,"email",{set:function(t){this._enabled=""===t||t===!0||"true"===t,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this._enabled?B.email(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();Xt.decorators=[{type:e.Directive,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[Qt]}]}],Xt.ctorParameters=function(){return[]},Xt.propDecorators={email:[{type:e.Input}]};var $t={provide:F,useExisting:e.forwardRef(function(){return Zt}),multi:!0},Zt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null==this.minlength?null:this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=B.minLength(parseInt(this.minlength,10))},t}();Zt.decorators=[{type:e.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[$t],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],Zt.ctorParameters=function(){return[]},Zt.propDecorators={minlength:[{type:e.Input}]};var Yt={provide:F,useExisting:e.forwardRef(function(){return Jt}),multi:!0},Jt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null!=this.maxlength?this._validator(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=B.maxLength(parseInt(this.maxlength,10))},t}();Jt.decorators=[{type:e.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[Yt],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],Jt.ctorParameters=function(){return[]},Jt.propDecorators={maxlength:[{type:e.Input}]};var te={provide:F,useExisting:e.forwardRef(function(){return ee}),multi:!0},ee=function(){function t(){}return t.prototype.ngOnChanges=function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return this._validator(t)},t.prototype.registerOnValidatorChange=function(t){
  this._onChange=t},t.prototype._createValidator=function(){this._validator=B.pattern(this.pattern)},t}();ee.decorators=[{type:e.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[te],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],ee.ctorParameters=function(){return[]},ee.propDecorators={pattern:[{type:e.Input}]};var ne=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),r=null!=e?e.validator:null,o=null!=e?e.asyncValidator:null;return new wt(n,r,o)},t.prototype.control=function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),new bt(t,e,n)},t.prototype.array=function(t,e,n){var r=this;void 0===e&&(e=null),void 0===n&&(n=null);var o=t.map(function(t){return r._createControl(t)});return new Ct(o,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach(function(r){n[r]=e._createControl(t[r])}),n},t.prototype._createControl=function(t){if(t instanceof bt||t instanceof wt||t instanceof Ct)return t;if(Array.isArray(t)){var e=t[0],n=t.length>1?t[1]:null,r=t.length>2?t[2]:null;return this.control(e,n,r)}return this.control(t)},t}();ne.decorators=[{type:e.Injectable}],ne.ctorParameters=function(){return[]};var re=new e.Version("4.0.0"),oe=function(){function t(){}return t}();oe.decorators=[{type:e.Directive,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],oe.ctorParameters=function(){return[]};var ie=[oe,it,ut,Q,$,nt,G,ot,at,tt,ft,dt,Wt,Zt,Jt,ee,Kt,Xt],se=[kt,Ot,xt],ae=[Dt,Lt,qt,Ft,Ht],ue=function(){function t(){}return t}();ue.decorators=[{type:e.NgModule,args:[{declarations:ie,exports:ie}]}],ue.ctorParameters=function(){return[]};var ce=function(){function t(){}return t}();ce.decorators=[{type:e.NgModule,args:[{declarations:se,providers:[J],exports:[ue,se]}]}],ce.ctorParameters=function(){return[]};var le=function(){function t(){}return t}();le.decorators=[{type:e.NgModule,args:[{declarations:[ae],providers:[ne,J],exports:[ue,ae]}]}],le.ctorParameters=function(){return[]},t.AbstractControlDirective=L,t.AbstractFormGroupDirective=lt,t.CheckboxControlValueAccessor=G,t.ControlContainer=V,t.NG_VALUE_ACCESSOR=q,t.COMPOSITION_BUFFER_MODE=K,t.DefaultValueAccessor=Q,t.NgControl=Z,t.NgControlStatus=ft,t.NgControlStatusGroup=dt,t.NgForm=xt,t.NgModel=kt,t.NgModelGroup=Ot,t.RadioControlValueAccessor=tt,t.FormControlDirective=Dt,t.FormControlName=qt,t.FormGroupDirective=Lt,t.FormArrayName=Ht,t.FormGroupName=Ft,t.NgSelectOption=it,t.SelectControlValueAccessor=ot,t.SelectMultipleControlValueAccessor=at,t.CheckboxRequiredValidator=Kt,t.EmailValidator=Xt,t.MaxLengthValidator=Jt,t.MinLengthValidator=Zt,t.PatternValidator=ee,t.RequiredValidator=Wt,t.FormBuilder=ne,t.AbstractControl=_t,t.FormArray=Ct,t.FormControl=bt,t.FormGroup=wt,t.NG_ASYNC_VALIDATORS=U,t.NG_VALIDATORS=F,t.Validators=B,t.VERSION=re,t.FormsModule=ce,t.ReactiveFormsModule=le,t.ɵba=ue,t.ɵz=ae,t.ɵx=ie,t.ɵy=se,t.ɵa=z,t.ɵb=W,t.ɵc=pt,t.ɵd=ht,t.ɵe=Et,t.ɵf=Mt,t.ɵg=At,t.ɵbf=oe,t.ɵbb=X,t.ɵbc=$,t.ɵh=Y,t.ɵi=J,t.ɵbd=et,t.ɵbe=nt,t.ɵj=Nt,t.ɵk=Bt,t.ɵl=jt,t.ɵn=Ut,t.ɵm=Vt,t.ɵo=rt,t.ɵq=ut,t.ɵp=st,t.ɵs=Gt,t.ɵt=Qt,t.ɵv=Yt,t.ɵu=$t,t.ɵw=te,t.ɵr=zt,Object.defineProperty(t,"__esModule",{value:!0})})}(),t.registerDynamic("26",["3"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s});Object.defineProperty(e,"__esModule",{value:!0});var o=t("3"),i=function(){function t(){}return t}();return i=r([o.Component({moduleId:n.id,selector:"sd-toolbar",template:'<h1>Angular Seed</h1> <div class="more"></div>',styles:[":host{background-color:#106cc8;color:hsla(0,0%,100%,.87);display:block;height:48px;padding:0 16px}h1{display:inline;font-size:20px;font-weight:400;letter-spacing:.1px;line-height:48px}.more{background:url(assets/svg/more.svg);float:right;height:24px;margin-top:12px;width:24px}"]})],i),e.ToolbarComponent=i,n.exports}),t.registerDynamic("27",["3","28"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=t("3"),s=t("28"),a=function(){function t(t){this._router=t}return t.prototype.go=function(t){this._router.go(t)},t}();return a=r([i.Component({moduleId:n.id,selector:"sd-navbar",template:"<nav>   <a (click)=\"go('/')\">HOME</a>   <a (click)=\"go('/about')\">ABOUT</a>   <a (click)=\"go('/stubapi')\">Stub & API</a> </nav>",styles:[":host{border:0 solid #e1e1e1;border-bottom-width:1px;display:block;height:48px;padding:0 16px}nav a{color:#8f8f8f;font-size:14px;font-weight:500;line-height:48px;margin-right:20px;text-decoration:none;vertical-align:middle;cursor:pointer}nav a.router-link-active{color:#106cc8}"]}),o("design:paramtypes",[s.RouterService])],a),e.NavbarComponent=a,n.exports}),t.registerDynamic("19",["3","29","a"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=t("3"),s=t("29"),a=t("a"),u=function(){function t(t){this.http=t}return t.prototype.get=function(){return this.http.get("assets/data.json").map(function(t){return t.json()}).catch(this.handleError)},t.prototype.handleError=function(t){var e=t.message?t.message:t.status?t.status+" - "+t.statusText:"Server error";return console.error(e),a.Observable.throw(e)},t}();return u=r([i.Injectable(),o("design:paramtypes",[s.Http])],u),e.NameListService=u,n.exports}),t.registerDynamic("28",["3","14"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=t("3"),s=t("14"),a=function(){function t(t){this._router=t}return t.prototype.go=function(t){var e={};window.location.search&&(e=this.parse(window.location.search)),this._router.navigate([t],{queryParams:e})},t.prototype.parse=function(t){var e={};return 0===t.indexOf("?")&&(t=t.split("?")[1]),t.split("&").forEach(function(t){var n=t.replace(/\+/g," ").split("="),r=n.shift(),o=n.length>0?n.join("="):void 0;r=decodeURIComponent(r),o=void 0===o?null:decodeURIComponent(o),void 0===e[r]?e[r]=o:Array.isArray(e[r])?e[r].push(o):e[r]=[e[r],o]}),e},t}();return a=r([i.Injectable(),o("design:paramtypes",[s.Router])],a),e.RouterService=a,n.exports}),t.registerDynamic("1d",["3","5","24","14","26","27","19","28","2a","2b","12"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s});Object.defineProperty(e,"__esModule",{value:!0});var o=t("3"),i=t("5"),s=t("24"),a=t("14"),u=t("26"),c=t("27"),l=t("19"),p=t("28"),h=t("2a"),f=t("2b"),d=t("12"),v=y=function(){function t(){}return t.forRoot=function(){return{ngModule:y,providers:[l.NameListService,p.RouterService,h.StorageService,f.RestfulService,d.ApiConfig]}},t}();v=y=r([o.NgModule({imports:[i.CommonModule,a.RouterModule],declarations:[u.ToolbarComponent,c.NavbarComponent],exports:[u.ToolbarComponent,c.NavbarComponent,i.CommonModule,s.FormsModule,a.RouterModule]})],v),e.SharedModule=v;var y;return n.exports}),t.registerDynamic("2c",["2d","2e"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=t("2d"),i=t("2e"),s=function(t){function e(e){t.call(this),this._value=e}return r(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new i.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(o.Subject);return e.BehaviorSubject=s,n.exports}),t.registerDynamic("2f",["30","a","31"],!0,function(t,e,n){"use strict";function r(t){var e=t[l.$$iterator];if(!e&&"string"==typeof t)return new h(t);if(!e&&void 0!==t.length)return new f(t);if(!e)throw new TypeError("object is not iterable");return t[l.$$iterator]()}function o(t){var e=+t.length;return isNaN(e)?0:0!==e&&i(e)?(e=s(e)*Math.floor(Math.abs(e)),e<=0?0:e>d?d:e):e}function i(t){return"number"==typeof t&&u.root.isFinite(t)}function s(t){var e=+t;return 0===e?e:isNaN(e)?e:e<0?-1:1}var a=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),u=t("30"),c=t("a"),l=t("31"),p=function(t){function e(e,n){if(t.call(this),this.scheduler=n,null==e)throw new Error("iterator cannot be null.");this.iterator=r(e)}return a(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.hasError,r=t.iterator,o=t.subscriber;if(n)return void o.error(t.error);var i=r.next();return i.done?void o.complete():(o.next(i.value),t.index=e+1,o.closed?void("function"==typeof r.return&&r.return()):void this.schedule(t))},e.prototype._subscribe=function(t){var n=0,r=this,o=r.iterator,i=r.scheduler;if(i)return i.schedule(e.dispatch,0,{index:n,iterator:o,subscriber:t});for(;;){var s=o.next();if(s.done){t.complete();break}if(t.next(s.value),t.closed){"function"==typeof o.return&&o.return();break}}},e}(c.Observable);e.IteratorObservable=p;var h=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=t.length),this.str=t,this.idx=e,this.len=n}return t.prototype[l.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),f=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=o(t)),this.arr=t,this.idx=e,this.len=n}return t.prototype[l.$$iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},t}(),d=Math.pow(2,53)-1;return n.exports}),t.registerDynamic("32",["a","33","1f"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=t("a"),i=t("33"),s=t("1f"),a=function(t){function e(e,n){t.call(this),this.arrayLike=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){var r=t.length;return 0===r?new s.EmptyObservable:1===r?new i.ScalarObservable(t[0],n):new e(t,n)},e.dispatch=function(t){var e=t.arrayLike,n=t.index,r=t.length,o=t.subscriber;if(!o.closed){if(n>=r)return void o.complete();o.next(e[n]),t.index=n+1,this.schedule(t)}},e.prototype._subscribe=function(t){var n=0,r=this,o=r.arrayLike,i=r.scheduler,s=o.length;if(i)return i.schedule(e.dispatch,0,{arrayLike:o,index:n,length:s,subscriber:t});for(var a=0;a<s&&!t.closed;a++)t.next(o[a]);t.complete()},e}(o.Observable);return e.ArrayLikeObservable=a,n.exports}),t.registerDynamic("34",["a"],!0,function(t,e,n){"use strict";var r=(this||self,t("a")),o=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){var r=this.kind;switch(r){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){var t=this.kind;switch(t){case"N":return r.Observable.of(this.value);case"E":return r.Observable.throw(this.error);case"C":return r.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return"undefined"!=typeof e?new t("N",e):this.undefinedValueNotification},t.createError=function(e){return new t("E",(void 0),e)},t.createComplete=function(){return this.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",(void 0)),t}();return e.Notification=o,n.exports}),t.registerDynamic("35",["36","34"],!0,function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=0),this.lift(new a(t,e))}var o=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=t("36"),s=t("34");e.observeOn=r;var a=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.scheduler,this.delay))},t}();e.ObserveOnOperator=a;var u=function(t){function e(e,n,r){void 0===r&&(r=0),t.call(this,e),this.scheduler=n,this.delay=r}return o(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new c(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(s.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(s.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(s.Notification.createComplete())},e}(i.Subscriber);e.ObserveOnSubscriber=u;var c=function(){function t(t,e){this.notification=t,this.destination=e}return t}();return e.ObserveOnMessage=c,n.exports}),t.registerDynamic("37",["20","38","39","3a","2f","3b","32","31","a","35","3c"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=t("20"),i=t("38"),s=t("39"),a=t("3a"),u=t("2f"),c=t("3b"),l=t("32"),p=t("31"),h=t("a"),f=t("35"),d=t("3c"),v=function(t){function e(e,n){t.call(this,null),this.ish=e,this.scheduler=n}return r(e,t),e.create=function(t,n){if(null!=t){if("function"==typeof t[d.$$observable])return t instanceof h.Observable&&!n?t:new e(t,n);if(o.isArray(t))return new c.ArrayObservable(t,n);if(s.isPromise(t))return new a.PromiseObservable(t,n);if("function"==typeof t[p.$$iterator]||"string"==typeof t)return new u.IteratorObservable(t,n);if(i.isArrayLike(t))return new l.ArrayLikeObservable(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,n=this.scheduler;return null==n?e[d.$$observable]().subscribe(t):e[d.$$observable]().subscribe(new f.ObserveOnSubscriber(t,n,0))},e}(h.Observable);return e.FromObservable=v,n.exports}),t.registerDynamic("3d",["37"],!0,function(t,e,n){"use strict";var r=(this||self,t("37"));return e.from=r.FromObservable.create,n.exports}),t.registerDynamic("3e",["3b"],!0,function(t,e,n){"use strict";var r=(this||self,t("3b"));return e.of=r.ArrayObservable.of,n.exports}),t.registerDynamic("3f",["40"],!0,function(t,e,n){"use strict";function r(t,e){return this.lift(new o.MergeMapOperator(t,e,1))}var o=(this||self,t("40"));return e.concatMap=r,n.exports}),t.registerDynamic("41",["36"],!0,function(t,e,n){"use strict";function r(t,e){return this.lift(new s(t,e,this))}var o=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=t("36");e.every=r;var s=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg,this.source))},t}(),a=function(t){function e(e,n,r,o){t.call(this,e),this.predicate=n,this.thisArg=r,this.source=o,this.index=0,this.thisArg=r||this}return o(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(i.Subscriber);return n.exports}),t.registerDynamic("42",["36","43"],!0,function(t,e,n){"use strict";function r(t,e,n){return this.lift(new a(t,e,n,this))}var o=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=t("36"),s=t("43");e.first=r;var a=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,n,r,o,i){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=o,this.source=i,this.index=0,this.hasCompleted=!1,this._emitted=!1}return o(e,t),e.prototype._next=function(t){var e=this.index++;this.predicate?this._tryPredicate(t,e):this._emit(t,e)},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}n&&this._emit(t,e)},e.prototype._emit=function(t,e){return this.resultSelector?void this._tryResultSelector(t,e):void this._emitFinal(t)},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this._emitFinal(n)},e.prototype._emitFinal=function(t){var e=this.destination;this._emitted||(this._emitted=!0,e.next(t),e.complete(),this.hasCompleted=!0)},e.prototype._complete=function(){var t=this.destination;this.hasCompleted||"undefined"==typeof this.defaultValue?this.hasCompleted||t.error(new s.EmptyError):(t.next(this.defaultValue),t.complete())},e}(i.Subscriber);return n.exports}),t.registerDynamic("c",["36"],!0,function(t,e,n){"use strict";function r(t,e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return this.lift(new s(t,e))}var o=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=t("36");e.map=r;var s=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))},t}();e.MapOperator=s;var a=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.count=0,this.thisArg=r||this}return o(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(i.Subscriber);return n.exports}),t.registerDynamic("40",["21","22"],!0,function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof e&&(n=e,e=null),this.lift(new a(t,e,n))}var o=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=t("21"),s=t("22");e.mergeMap=r;var a=function(){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector,this.concurrent))},t}();e.MergeMapOperator=a;var u=function(t){function e(e,n,r,o){void 0===o&&(o=Number.POSITIVE_INFINITY),t.call(this,e),this.project=n,this.resultSelector=r,this.concurrent=o,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return o(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){this.add(i.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,o){this.resultSelector?this._notifyResultSelector(t,e,n,r):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,n,r){var o;try{o=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(o)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(s.OuterSubscriber);return e.MergeMapSubscriber=u,n.exports}),t.registerDynamic("44",["36"],!0,function(t,e,n){"use strict";function r(t,e){var n=!1;return arguments.length>=2&&(n=!0),this.lift(new s(t,e,n))}var o=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=t("36");e.reduce=r;var s=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.accumulator,this.seed,this.hasSeed))},t}();e.ReduceOperator=s;var a=function(t){function e(e,n,r,o){t.call(this,e),this.accumulator=n,this.hasSeed=o,this.index=0,this.hasValue=!1,this.acc=r,this.hasSeed||this.index++}return o(e,t),e.prototype._next=function(t){this.hasValue||(this.hasValue=this.hasSeed)?this._tryReduce(t):(this.acc=t,this.hasValue=!0)},e.prototype._tryReduce=function(t){var e;try{e=this.accumulator(this.acc,t,this.index++)}catch(t){return void this.destination.error(t)}this.acc=e},e.prototype._complete=function(){(this.hasValue||this.hasSeed)&&this.destination.next(this.acc),this.destination.complete()},e}(i.Subscriber);return e.ReduceSubscriber=a,n.exports}),t.registerDynamic("e",["22","21"],!0,function(t,e,n){"use strict";function r(t){var e=new a(t),n=this.lift(e);return e.caught=n}var o=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=t("22"),s=t("21");e._catch=r;var a=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.selector,this.caught))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.selector=n,this.caught=r}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(s.subscribeToResult(this,n))}},e}(i.OuterSubscriber);return n.exports}),t.registerDynamic("45",["46"],!0,function(t,e,n){"use strict";function r(){return this.lift(new o.MergeAllOperator(1))}var o=(this||self,t("46"));return e.concatAll=r,n.exports}),t.registerDynamic("3a",["30","a"],!0,function(t,e,n){"use strict";function r(t){var e=t.value,n=t.subscriber;n.closed||(n.next(e),n.complete())}function o(t){var e=t.err,n=t.subscriber;n.closed||n.error(e)}var i=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),s=t("30"),a=t("a"),u=function(t){function e(e,n){t.call(this),this.promise=e,this.scheduler=n}return i(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=this.promise,i=this.scheduler;if(null==i)this._isScalar?t.closed||(t.next(this.value),t.complete()):n.then(function(n){e.value=n,e._isScalar=!0,t.closed||(t.next(n),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){s.root.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return i.schedule(r,0,{value:this.value,subscriber:t})}else n.then(function(n){e.value=n,e._isScalar=!0,t.closed||t.add(i.schedule(r,0,{value:n,subscriber:t}))},function(e){t.closed||t.add(i.schedule(o,0,{err:e,subscriber:t}))}).then(null,function(t){s.root.setTimeout(function(){throw t})})},e}(a.Observable);return e.PromiseObservable=u,n.exports}),t.registerDynamic("25",["3a"],!0,function(t,e,n){"use strict";var r=(this||self,t("3a"));return e.fromPromise=r.PromiseObservable.create,n.exports}),t.registerDynamic("43",[],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=function(t){function e(){var e=t.call(this,"no elements in sequence");this.name=e.name="EmptyError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);return e.EmptyError=o,n.exports}),t.registerDynamic("47",["36","43"],!0,function(t,e,n){"use strict";function r(t,e,n){return this.lift(new a(t,e,n,this))}var o=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=t("36"),s=t("43");e.last=r;var a=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,n,r,o,i){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=o,this.source=i,this.hasValue=!1,this.index=0,"undefined"!=typeof o&&(this.lastValue=o,this.hasValue=!0)}return o(e,t),e.prototype._next=function(t){var e=this.index++;if(this.predicate)this._tryPredicate(t,e);else{if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}if(n){if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this.lastValue=n,this.hasValue=!0},e.prototype._complete=function(){var t=this.destination;this.hasValue?(t.next(this.lastValue),t.complete()):t.error(new s.EmptyError)},e}(i.Subscriber);return n.exports}),t.registerDynamic("48",["36"],!0,function(t,e,n){"use strict";function r(t,e){return this.lift(new s(t,e))}var o=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=t("36");e.filter=r;var s=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.thisArg=r,this.count=0,this.predicate=n}return o(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(i.Subscriber);return n.exports}),function(){var o=t.amdDefine;!function(t,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/common"),e("@angular/core"),e("rxjs/BehaviorSubject"),e("rxjs/Subject"),e("rxjs/observable/from"),e("rxjs/observable/of"),e("rxjs/operator/concatMap"),e("rxjs/operator/every"),e("rxjs/operator/first"),e("rxjs/operator/map"),e("rxjs/operator/mergeMap"),e("rxjs/operator/reduce"),e("rxjs/Observable"),e("rxjs/operator/catch"),e("rxjs/operator/concatAll"),e("rxjs/util/EmptyError"),e("rxjs/observable/fromPromise"),e("rxjs/operator/last"),e("rxjs/operator/mergeAll"),e("@angular/platform-browser"),e("rxjs/operator/filter")):"function"==typeof o&&o.amd?o("14",["exports","5","3","2c","2d","3d","3e","3f","41","42","c","40","44","a","e","45","43","25","47","46","6","48"],i):i((t.ng=t.ng||{},t.ng.router=t.ng.router||{}),t.ng.common,t.ng.core,t.Rx,t.Rx,t.Rx.Observable,t.Rx.Observable,t.Rx.Observable.prototype,t.Rx.Observable.prototype,t.Rx.Observable.prototype,t.Rx.Observable.prototype,t.Rx.Observable.prototype,t.Rx.Observable.prototype,t.Rx,t.Rx.Observable.prototype,t.Rx.Observable.prototype,t.Rx,t.Rx.Observable,t.Rx.Observable.prototype,t.Rx.Observable.prototype,t.ng.platformBrowser,t.Rx.Observable.prototype)}(this,function(t,e,n,r,o,i,s,a,u,c,l,p,h,f,d,v,y,m,g,_,b,w){"use strict";function C(t){return new Fe(t)}function E(t){var e=Error("NavigationCancelingError: "+t);return e[Ue]=!0,e}function S(t){return t[Ue]}function x(t,e,n){for(var r=n.path,o=r.split("/"),i={},s=[],a=0,u=0;u<o.length;++u){if(a>=t.length)return null;var c=t[a],l=o[u],p=l.startsWith(":");if(!p&&l!==c.path)return null;p&&(i[l.substring(1)]=c),s.push(c),a++}return"full"===n.pathMatch&&(e.hasChildren()||a<t.length)?null:{consumed:s,posParams:i}}function P(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!T(t[n],e[n]))return!1;return!0}function T(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var o,i=0;i<n.length;i++)if(o=n[i],t[o]!==e[o])return!1;return!0}function A(t){for(var e=[],n=0;n<t.length;++n)for(var r=0;r<t[n].length;++r)e.push(t[n][r]);return e}function O(t){return t.length>0?t[t.length-1]:null}function M(t,e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);return n}function R(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function k(t,e){var n=[],r={};if(R(t,function(t,o){o===Ve&&n.push(l.map.call(e(o,t),function(t){return r[o]=t,t}))}),R(t,function(t,o){o!==Ve&&n.push(l.map.call(e(o,t),function(t){return r[o]=t,t}))}),n.length>0){var o=v.concatAll.call(s.of.apply(void 0,n)),i=g.last.call(o);return l.map.call(i,function(){return r})}return s.of(r);
  }function I(t){var e=_.mergeAll.call(t);return u.every.call(e,function(t){return t===!0})}function N(t){return n.ɵisObservable(t)?t:n.ɵisPromise(t)?m.fromPromise(t):s.of(t)}function D(){return new ze(new Ge([],{}),{},null)}function j(t,e,n){return n?L(t.queryParams,e.queryParams)&&V(t.root,e.root):F(t.queryParams,e.queryParams)&&U(t.root,e.root)}function L(t,e){return T(t,e)}function V(t,e){if(!q(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var n in e.children){if(!t.children[n])return!1;if(!V(t.children[n],e.children[n]))return!1}return!0}function F(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}function U(t,e){return H(t,e,e.segments)}function H(t,e,n){if(t.segments.length>n.length){var r=t.segments.slice(0,n.length);return!!q(r,n)&&!e.hasChildren()}if(t.segments.length===n.length){if(!q(t.segments,n))return!1;for(var o in e.children){if(!t.children[o])return!1;if(!U(t.children[o],e.children[o]))return!1}return!0}var r=n.slice(0,t.segments.length),i=n.slice(t.segments.length);return!!q(t.segments,r)&&!!t.children[Ve]&&H(t.children[Ve],e,i)}function B(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n){if(t[n].path!==e[n].path)return!1;if(!T(t[n].parameters,e[n].parameters))return!1}return!0}function q(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(t[n].path!==e[n].path)return!1;return!0}function z(t,e){var n=[];return R(t.children,function(t,r){r===Ve&&(n=n.concat(e(t,r)))}),R(t.children,function(t,r){r!==Ve&&(n=n.concat(e(t,r)))}),n}function G(t){return t.segments.map(function(t){return X(t)}).join("/")}function W(t,e){if(t.hasChildren()&&e){var n=t.children[Ve]?W(t.children[Ve],!1):"",r=[];return R(t.children,function(t,e){e!==Ve&&r.push(e+":"+W(t,!1))}),r.length>0?n+"("+r.join("//")+")":""+n}if(t.hasChildren()&&!e){var o=z(t,function(e,n){return n===Ve?[W(t.children[Ve],!1)]:[n+":"+W(e,!1)]});return G(t)+"/("+o.join("//")+")"}return G(t)}function K(t){return encodeURIComponent(t)}function Q(t){return decodeURIComponent(t)}function X(t){return""+K(t.path)+$(t.parameters)}function $(t){return Y(t).map(function(t){return";"+K(t.first)+"="+K(t.second)}).join("")}function Z(t){var e=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return K(e)+"="+K(t)}).join("&"):K(e)+"="+K(n)});return e.length?"?"+e.join("&"):""}function Y(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(new Xe(n,t[n]));return e}function J(t){$e.lastIndex=0;var e=t.match($e);return e?e[0]:""}function tt(t){Ze.lastIndex=0;var e=t.match($e);return e?e[0]:""}function et(t){Ye.lastIndex=0;var e=t.match(Ye);return e?e[0]:""}function nt(t){return new f.Observable(function(e){return e.error(new tn(t))})}function rt(t){return new f.Observable(function(e){return e.error(new en(t))})}function ot(t){return new f.Observable(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}function it(t){return new f.Observable(function(e){return e.error(E("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}function st(t,e,n,r,o){return new nn(t,e,n,r,o).apply()}function at(t,e){var n=e.canLoad;if(!n||0===n.length)return s.of(!0);var r=l.map.call(i.from(n),function(n){var r=t.get(n);return N(r.canLoad?r.canLoad(e):r(e))});return I(r)}function ut(t,e,n){var r={matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}};if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var o=e.matcher||x,i=o(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:r}function ct(t,e,n,r){if(n.length>0&&ft(t,n,r)){var o=new Ge(e,ht(r,new Ge(n,t.children)));return{segmentGroup:lt(o),slicedSegments:[]}}if(0===n.length&&dt(t,n,r)){var o=new Ge(t.segments,pt(t,n,r,t.children));return{segmentGroup:lt(o),slicedSegments:n}}return{segmentGroup:t,slicedSegments:n}}function lt(t){if(1===t.numberOfChildren&&t.children[Ve]){var e=t.children[Ve];return new Ge(t.segments.concat(e.segments),e.children)}return t}function pt(t,e,n,r){for(var o={},i=0,s=n;i<s.length;i++){var a=s[i];vt(t,e,a)&&!r[yt(a)]&&(o[yt(a)]=new Ge([],{}))}return M(r,o)}function ht(t,e){var n={};n[Ve]=e;for(var r=0,o=t;r<o.length;r++){var i=o[r];""===i.path&&yt(i)!==Ve&&(n[yt(i)]=new Ge([],{}))}return n}function ft(t,e,n){return n.filter(function(n){return vt(t,e,n)&&yt(n)!==Ve}).length>0}function dt(t,e,n){return n.filter(function(n){return vt(t,e,n)}).length>0}function vt(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function yt(t){return t.outlet?t.outlet:Ve}function mt(t,e){void 0===e&&(e="");for(var n=0;n<t.length;n++){var r=t[n],o=_t(e,r);gt(r,o)}}function gt(t,e){if(!t)throw new Error("\n      Invalid configuration of route '"+e+"': Encountered undefined route.\n      The reason might be an extra comma.\n\n      Example:\n      const routes: Routes = [\n        { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n        { path: 'dashboard',  component: DashboardComponent },, << two commas\n        { path: 'detail/:id', component: HeroDetailComponent }\n      ];\n    ");if(Array.isArray(t))throw new Error("Invalid configuration of route '"+e+"': Array cannot be specified");if(!t.component&&t.outlet&&t.outlet!==Ve)throw new Error("Invalid configuration of route '"+e+"': a componentless route cannot have a named outlet set");if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '"+e+"': redirectTo and children cannot be used together");if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': redirectTo and loadChildren cannot be used together");if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': children and loadChildren cannot be used together");if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '"+e+"': redirectTo and component cannot be used together");if(t.path&&t.matcher)throw new Error("Invalid configuration of route '"+e+"': path and matcher cannot be used together");if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '"+e+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '"+e+"': routes must have either a path or a matcher specified");if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '"+e+"': path cannot start with a slash");if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch){var n="The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.";throw new Error("Invalid configuration of route '{path: \""+e+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. "+n)}if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+e+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&mt(t.children,e)}function _t(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function bt(t,e){if(t===e.value)return e;for(var n=0,r=e.children;n<r.length;n++){var o=r[n],i=bt(t,o);if(i)return i}return null}function wt(t,e,n){if(n.push(e),t===e.value)return n;for(var r=0,o=e.children;r<o.length;r++){var i=o[r],s=n.slice(0),a=wt(t,i,s);if(a.length>0)return a}return[]}function Ct(t,e){var n=Et(t,e),o=new r.BehaviorSubject([new We("",{})]),i=new r.BehaviorSubject({}),s=new r.BehaviorSubject({}),a=new r.BehaviorSubject({}),u=new r.BehaviorSubject(""),c=new an(o,i,a,u,s,Ve,e,n.root);return c.snapshot=n.root,new sn(new on(c,[]),n)}function Et(t,e){var n={},r={},o={},i="",s=new un([],n,o,i,r,Ve,e,null,t.root,(-1),{});return new cn("",new on(s,[]))}function St(t){for(var e=t.pathFromRoot,n=e.length-1;n>=1;){var r=e[n],o=e[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(o.component)break;n--}}return e.slice(n).reduce(function(t,e){var n=M(t.params,e.params),r=M(t.data,e.data),o=M(t.resolve,e._resolvedData);return{params:n,data:r,resolve:o}},{params:{},data:{},resolve:{}})}function xt(t,e){e.value._routerState=t,e.children.forEach(function(e){return xt(t,e)})}function Pt(t){var e=t.children.length>0?" { "+t.children.map(Pt).join(", ")+" } ":"";return""+t.value+e}function Tt(t){if(t.snapshot){var e=t.snapshot;t.snapshot=t._futureSnapshot,T(e.queryParams,t._futureSnapshot.queryParams)||t.queryParams.next(t._futureSnapshot.queryParams),e.fragment!==t._futureSnapshot.fragment&&t.fragment.next(t._futureSnapshot.fragment),T(e.params,t._futureSnapshot.params)||t.params.next(t._futureSnapshot.params),P(e.url,t._futureSnapshot.url)||t.url.next(t._futureSnapshot.url),T(e.data,t._futureSnapshot.data)||t.data.next(t._futureSnapshot.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function At(t,e){var n=T(t.params,e.params)&&B(t.url,e.url),r=!t.parent!=!e.parent;return n&&!r&&(!t.parent||At(t.parent,e.parent))}function Ot(t,e,n){var r=Mt(t,e._root,n?n._root:void 0);return new sn(r,e)}function Mt(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){var r=n.value;r._futureSnapshot=e.value;var o=kt(t,e,n);return new on(r,o)}if(t.retrieve(e.value)){var i=t.retrieve(e.value).route;return Rt(e,i),i}var r=It(e.value),o=e.children.map(function(e){return Mt(t,e)});return new on(r,o)}function Rt(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(var n=0;n<t.children.length;++n)Rt(t.children[n],e.children[n])}function kt(t,e,n){return e.children.map(function(e){for(var r=0,o=n.children;r<o.length;r++){var i=o[r];if(t.shouldReuseRoute(i.value.snapshot,e.value))return Mt(t,e,i)}return Mt(t,e)})}function It(t){return new an(new r.BehaviorSubject(t.url),new r.BehaviorSubject(t.params),new r.BehaviorSubject(t.queryParams),new r.BehaviorSubject(t.fragment),new r.BehaviorSubject(t.data),t.outlet,t.component,t)}function Nt(t,e,n,r,o){if(0===n.length)return jt(e.root,e.root,e,r,o);var i=Vt(n);if(i.toRoot())return jt(e.root,new Ge([],{}),e,r,o);var s=Ft(i,e,t),a=s.processChildren?zt(s.segmentGroup,s.index,i.commands):qt(s.segmentGroup,s.index,i.commands);return jt(s.segmentGroup,a,e,r,o)}function Dt(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function jt(t,e,n,r,o){var i={};return r&&R(r,function(t,e){i[e]=Array.isArray(t)?t.map(function(t){return""+t}):""+t}),n.root===t?new ze(e,i,o):new ze(Lt(n.root,t,e),i,o)}function Lt(t,e,n){var r={};return R(t.children,function(t,o){t===e?r[o]=n:r[o]=Lt(t,e,n)}),new Ge(t.segments,r)}function Vt(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ln((!0),0,t);var e=0,n=!1,r=t.reduce(function(t,r,o){if("object"==typeof r&&null!=r){if(r.outlets){var i={};return R(r.outlets,function(t,e){i[e]="string"==typeof t?t.split("/"):t}),t.concat([{outlets:i}])}if(r.segmentPath)return t.concat([r.segmentPath])}return"string"!=typeof r?t.concat([r]):0===o?(r.split("/").forEach(function(r,o){0==o&&"."===r||(0==o&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):t.concat([r])},[]);return new ln(n,e,r)}function Ft(t,e,n){if(t.isAbsolute)return new pn(e.root,(!0),0);if(n.snapshot._lastPathIndex===-1)return new pn(n.snapshot._urlSegment,(!0),0);var r=Dt(t.commands[0])?0:1,o=n.snapshot._lastPathIndex+r;return Ut(n.snapshot._urlSegment,o,t.numberOfDoubleDots)}function Ut(t,e,n){for(var r=t,o=e,i=n;i>o;){if(i-=o,r=r.parent,!r)throw new Error("Invalid number of '../'");o=r.segments.length}return new pn(r,(!1),o-i)}function Ht(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Ve]:""+t}function Bt(t){return"object"!=typeof t[0]?(e={},e[Ve]=t,e):void 0===t[0].outlets?(n={},n[Ve]=t,n):t[0].outlets;var e,n}function qt(t,e,n){if(t||(t=new Ge([],{})),0===t.segments.length&&t.hasChildren())return zt(t,e,n);var r=Gt(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){var i=new Ge(t.segments.slice(0,r.pathIndex),{});return i.children[Ve]=new Ge(t.segments.slice(r.pathIndex),t.children),zt(i,0,o)}return r.match&&0===o.length?new Ge(t.segments,{}):r.match&&!t.hasChildren()?Wt(t,e,n):r.match?zt(t,0,o):Wt(t,e,n)}function zt(t,e,n){if(0===n.length)return new Ge(t.segments,{});var r=Bt(n),o={};return R(r,function(n,r){null!==n&&(o[r]=qt(t.children[r],e,n))}),R(t.children,function(t,e){void 0===r[e]&&(o[e]=t)}),new Ge(t.segments,o)}function Gt(t,e,n){for(var r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o<t.segments.length;){if(r>=n.length)return i;var s=t.segments[o],a=Ht(n[r]),u=r<n.length-1?n[r+1]:null;if(o>0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!Xt(a,u,s))return i;r+=2}else{if(!Xt(a,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}function Wt(t,e,n){for(var r=t.segments.slice(0,e),o=0;o<n.length;){if("object"==typeof n[o]&&void 0!==n[o].outlets){var i=Kt(n[o].outlets);return new Ge(r,i)}if(0===o&&Dt(n[0])){var s=t.segments[e];r.push(new We(s.path,n[0])),o++}else{var a=Ht(n[o]),u=o<n.length-1?n[o+1]:null;a&&u&&Dt(u)?(r.push(new We(a,Qt(u))),o+=2):(r.push(new We(a,{})),o++)}}return new Ge(r,{})}function Kt(t){var e={};return R(t,function(t,n){null!==t&&(e[n]=Wt(new Ge([],{}),0,t))}),e}function Qt(t){var e={};return R(t,function(t,n){return e[n]=""+t}),e}function Xt(t,e,n){return t==n.path&&T(e,n.parameters)}function $t(t,e,n,r){return new fn(t,e,n,r).recognize()}function Zt(t){t.sort(function(t,e){return t.value.outlet===Ve?-1:e.value.outlet===Ve?1:t.value.outlet.localeCompare(e.value.outlet)})}function Yt(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}function Jt(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new hn;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=e.matcher||x,o=r(n,t,e);if(!o)throw new hn;var i={};R(o.posParams,function(t,e){i[e]=t.path});var s=M(i,o.consumed[o.consumed.length-1].parameters);return{consumedSegments:o.consumed,lastChild:o.consumed.length,parameters:s}}function te(t){var e={};t.forEach(function(t){var n=e[t.value.outlet];if(n){var r=n.url.map(function(t){return t.toString()}).join("/"),o=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+o+"'.")}e[t.value.outlet]=t.value})}function ee(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function ne(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function re(t,e,n,r){if(n.length>0&&se(t,n,r)){var o=new Ge(e,ie(t,e,r,new Ge(n,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&ae(t,n,r)){var o=new Ge(t.segments,oe(t,n,r,t.children));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}var o=new Ge(t.segments,t.children);return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}function oe(t,e,n,r){for(var o={},i=0,s=n;i<s.length;i++){var a=s[i];if(ue(t,e,a)&&!r[ce(a)]){var u=new Ge([],{});u._sourceSegment=t,u._segmentIndexShift=t.segments.length,o[ce(a)]=u}}return M(r,o)}function ie(t,e,n,r){var o={};o[Ve]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(var i=0,s=n;i<s.length;i++){var a=s[i];if(""===a.path&&ce(a)!==Ve){var u=new Ge([],{});u._sourceSegment=t,u._segmentIndexShift=e.length,o[ce(a)]=u}}return o}function se(t,e,n){return n.filter(function(n){return ue(t,e,n)&&ce(n)!==Ve}).length>0}function ae(t,e,n){return n.filter(function(n){return ue(t,e,n)}).length>0}function ue(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function ce(t){return t.outlet?t.outlet:Ve}function le(t){return t.data?t.data:{}}function pe(t){return t.resolve?t.resolve:{}}function he(t){throw t}function fe(t){return s.of(null)}function de(t){Tt(t.value),t.children.forEach(de)}function ve(t){for(var e=t.parent;e;){var n=e._routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null;e=e.parent}return null}function ye(t){if(!t)return null;for(var e=t.parent;e;){var n=e._routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;e=e.parent}return null}function me(t){return t?t.children.reduce(function(t,e){return t[e.value.outlet]=e,t},{}):{}}function ge(t,e){var n=t._outlets[e.outlet];if(!n){var r=e.component.name;throw e.outlet===Ve?new Error("Cannot find primary outlet to load '"+r+"'"):new Error("Cannot find the outlet "+e.outlet+" to load '"+r+"'")}return n}function _e(t){for(var e=0;e<t.length;e++){var n=t[e];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+e)}}function be(t){return""===t||!!t}function we(){return new n.NgProbeToken("Router",gn)}function Ce(t,n,r){return void 0===r&&(r={}),r.useHash?new e.HashLocationStrategy(t,n):new e.PathLocationStrategy(t,n)}function Ee(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function Se(t){return[{provide:n.ANALYZE_FOR_ENTRY_COMPONENTS,multi:!0,useValue:t},{provide:He,multi:!0,useValue:t}]}function xe(t,e,n,r,o,i,s,a,u,c,l){void 0===u&&(u={});var p=new gn(null,e,n,r,o,i,s,A(a));if(c&&(p.urlHandlingStrategy=c),l&&(p.routeReuseStrategy=l),u.errorHandler&&(p.errorHandler=u.errorHandler),u.enableTracing){var h=b.ɵgetDOM();p.events.subscribe(function(t){h.logGroup("Router Event: "+t.constructor.name),h.log(t.toString()),h.log(t),h.logGroupEnd()})}return p}function Pe(t){return t.routerState.root}function Te(t){return t.appInitializer.bind(t)}function Ae(t){return t.bootstrapListener.bind(t)}function Oe(){return[Vn,{provide:n.APP_INITIALIZER,multi:!0,useFactory:Te,deps:[Vn]},{provide:Fn,useFactory:Ae,deps:[Vn]},{provide:n.APP_BOOTSTRAP_LISTENER,multi:!0,useExisting:Fn}]}var Me=function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Re=function(){function t(t,e){this.id=t,this.url=e}return t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}(),ke=function(){function t(t,e,n){this.id=t,this.url=e,this.urlAfterRedirects=n}return t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(),Ie=function(){function t(t,e,n){this.id=t,this.url=e,this.reason=n}return t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(),Ne=function(){function t(t,e,n){this.id=t,this.url=e,this.error=n}return t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(),De=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),je=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),Le=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),Ve="primary",Fe=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}(),Ue="ngNavigationCancelingError",He=new n.InjectionToken("ROUTES"),Be=function(){function t(t,e){this.routes=t,this.module=e}return t}(),qe=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;this.onLoadStartListener&&this.onLoadStartListener(e);var r=this.loadModuleFactory(e.loadChildren);return l.map.call(r,function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new Be(A(o.injector.get(He)),o)})},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?m.fromPromise(this.loader.load(t)):p.mergeMap.call(N(t()),function(t){return t instanceof n.NgModuleFactory?s.of(t):m.fromPromise(e.compiler.compileModuleAsync(t))})},t}(),ze=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=C(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return(new Qe).serialize(this)},t}(),Ge=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,R(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return G(this)},t}(),We=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=C(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return X(this)},t}(),Ke=function(){function t(){}return t.prototype.parse=function(t){},t.prototype.serialize=function(t){},t}(),Qe=function(){function t(){}return t.prototype.parse=function(t){var e=new Je(t);return new ze(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e="/"+W(t.root,!0),n=Z(t.queryParams),r=null!==t.fragment&&void 0!==t.fragment?"#"+encodeURI(t.fragment):"";return""+e+n+r},t}(),Xe=function(){function t(t,e){this.first=t,this.second=e}return t}(),$e=/^[^\/()?;=&#]+/,Ze=/^[^=?&#]+/,Ye=/^[^?&#]+/,Je=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.capture=function(t){if(!this.remaining.startsWith(t))throw new Error('Expected "'+t+'".');this.remaining=this.remaining.substring(t.length)},t.prototype.parseRootSegment=function(){return this.remaining.startsWith("/")&&this.capture("/"),""===this.remaining||this.remaining.startsWith("?")||this.remaining.startsWith("#")?new Ge([],{}):new Ge([],this.parseChildren())},t.prototype.parseChildren=function(){if(0==this.remaining.length)return{};this.peekStartsWith("/")&&this.capture("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegments());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegments());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Ve]=new Ge(t,e)),n},t.prototype.parseSegments=function(){var t=J(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");this.capture(t);var e={};return this.peekStartsWith(";")&&(e=this.parseMatrixParams()),new We(Q(t),e)},t.prototype.parseQueryParams=function(){var t={};if(this.peekStartsWith("?"))for(this.capture("?"),this.parseQueryParam(t);this.remaining.length>0&&this.peekStartsWith("&");)this.capture("&"),this.parseQueryParam(t);return t},t.prototype.parseFragment=function(){return this.peekStartsWith("#")?decodeURI(this.remaining.substring(1)):null},t.prototype.parseMatrixParams=function(){for(var t={};this.remaining.length>0&&this.peekStartsWith(";");)this.capture(";"),this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=J(this.remaining);if(e){this.capture(e);var n="";if(this.peekStartsWith("=")){this.capture("=");var r=J(this.remaining);r&&(n=r,this.capture(n))}t[Q(e)]=Q(n)}},t.prototype.parseQueryParam=function(t){var e=tt(this.remaining);if(e){this.capture(e);var n="";if(this.peekStartsWith("=")){this.capture("=");var r=et(this.remaining);r&&(n=r,this.capture(n))}var o=Q(e),i=Q(n);if(t.hasOwnProperty(o)){var s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.peekStartsWith(")")&&this.remaining.length>0;){var n=J(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Ve);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[Ve]:new Ge([],i),this.peekStartsWith("//")&&this.capture("//")}return this.capture(")"),e},t}(),tn=function(){function t(t){void 0===t&&(t=null),this.segmentGroup=t}return t}(),en=function(){function t(t){this.urlTree=t}return t}(),nn=function(){function t(t,e,r,o,i){this.configLoader=e,this.urlSerializer=r,this.urlTree=o,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(n.NgModuleRef)}return t.prototype.apply=function(){var t=this,e=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Ve),n=l.map.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return d._catch.call(n,function(e){if(e instanceof en)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof tn)throw t.noMatchError(e);throw e})},t.prototype.match=function(t){var e=this,n=this.expandSegmentGroup(this.ngModule,this.config,t.root,Ve),r=l.map.call(n,function(n){return e.createUrlTree(n,t.queryParams,t.fragment)});return d._catch.call(r,function(t){if(t instanceof tn)throw e.noMatchError(t);throw t})},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r=t.segments.length>0?new Ge([],(o={},o[Ve]=t,o)):t;return new ze(r,e,n);var o},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?l.map.call(this.expandChildren(t,e,n),function(t){return new Ge([],t)}):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return k(n.children,function(n,o){return r.expandSegmentGroup(t,e,o,n)})},t.prototype.expandSegment=function(t,e,n,r,o,i){var a=this,u=s.of.apply(void 0,n),p=l.map.call(u,function(u){var c=a.expandSegmentAgainstRoute(t,e,n,u,r,o,i);return d._catch.call(c,function(t){if(t instanceof tn)return s.of(null);throw t})}),h=v.concatAll.call(p),f=c.first.call(h,function(t){return!!t});return d._catch.call(f,function(t,n){if(t instanceof y.EmptyError){if(a.noLeftoversInUrl(e,r,o))return s.of(new Ge([],{}));throw new tn(e)}throw t})},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,o,i,s){return yt(r)!==i?nt(e):void 0===r.redirectTo||s&&this.allowRedirects?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):nt(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?rt(i):p.mergeMap.call(this.lineralizeSegments(n,i),function(n){var i=new Ge(n,{});return o.expandSegment(t,i,e,n,r,!1)})},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var s=this,a=ut(e,r,o),u=a.matched,c=a.consumedSegments,l=a.lastChild,h=a.positionalParamSegments;if(!u)return nt(e);var f=this.applyRedirectCommands(c,r.redirectTo,h);return r.redirectTo.startsWith("/")?rt(f):p.mergeMap.call(this.lineralizeSegments(r,f),function(r){return s.expandSegment(t,e,n,r.concat(o.slice(l)),i,!1)})},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var o=this;if("**"===n.path)return n.loadChildren?l.map.call(this.configLoader.load(t.injector,n),function(t){return n._loadedConfig=t,new Ge(r,{})}):s.of(new Ge(r,{}));var i=ut(e,n,r),a=i.matched,u=i.consumedSegments,c=i.lastChild;if(!a)return nt(e);var h=r.slice(c),f=this.getChildConfig(t,n);return p.mergeMap.call(f,function(t){var n=t.module,r=t.routes,i=ct(e,u,h,r),a=i.segmentGroup,c=i.slicedSegments;if(0===c.length&&a.hasChildren()){var p=o.expandChildren(n,r,a);return l.map.call(p,function(t){return new Ge(u,t)})}if(0===r.length&&0===c.length)return s.of(new Ge(u,{}));var f=o.expandSegment(n,a,r,c,Ve,!0);return l.map.call(f,function(t){return new Ge(u.concat(t.segments),t.children)})})},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?s.of(new Be(e.children,t)):e.loadChildren?p.mergeMap.call(at(t.injector,e),function(r){return r?e._loadedConfig?s.of(e._loadedConfig):l.map.call(n.configLoader.load(t.injector,e),function(t){return e._loadedConfig=t,t}):it(e)}):s.of(new Be([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return s.of(n);if(r.numberOfChildren>1||!r.children[Ve])return ot(t.redirectTo);r=r.children[Ve]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var o=this.createSegmentGroup(t,e.root,n,r);return new ze(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return R(t,function(t,r){n[r]=t.startsWith(":")?e[t.substring(1)]:t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var o=this,i=this.createSegments(t,e.segments,n,r),s={};return R(e.children,function(e,i){s[i]=o.createSegmentGroup(t,e,n,r)}),new Ge(i,s)},t.prototype.createSegments=function(t,e,n,r){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,r):o.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){for(var n=0,r=0,o=e;r<o.length;r++){var i=o[r];if(i.path===t.path)return e.splice(n),i;n++}return t},t}(),rn=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=bt(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=bt(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=wt(t,this._root,[]);if(e.length<2)return[];var n=e[e.length-2].children.map(function(t){return t.value});return n.filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return wt(t,this._root,[]).map(function(t){
  return t.value})},t}(),on=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}(),sn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,xt(r,e),r}return Me(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(rn),an=function(){function t(t,e,n,r,o,i,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=s,this._futureSnapshot=a}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=l.map.call(this.params,function(t){return C(t)})),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=l.map.call(this.queryParams,function(t){return C(t)})),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}(),un=function(){function t(t,e,n,r,o,i,s,a,u,c,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=s,this._routeConfig=a,this._urlSegment=u,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=C(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=C(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){var t=this.url.map(function(t){return t.toString()}).join("/"),e=this._routeConfig?this._routeConfig.path:"";return"Route(url:'"+t+"', path:'"+e+"')"},t}(),cn=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,xt(r,n),r}return Me(e,t),e.prototype.toString=function(){return Pt(this._root)},e}(rn),ln=function(){function t(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&Dt(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==O(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),pn=function(){function t(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}return t}(),hn=function(){function t(){}return t}(),fn=function(){function t(t,e,n,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r}return t.prototype.recognize=function(){try{var t=re(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,Ve),n=new un([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},Ve,this.rootComponentType,null,this.urlTree.root,(-1),{}),r=new on(n,e),o=new cn(this.url,r);return this.inheriteParamsAndData(o._root),s.of(o)}catch(t){return new f.Observable(function(e){return e.error(t)})}},t.prototype.inheriteParamsAndData=function(t){var e=this,n=t.value,r=St(n);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheriteParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n=this,r=z(e,function(e,r){return n.processSegmentGroup(t,e,r)});return te(r),Zt(r),r},t.prototype.processSegment=function(t,e,n,r){for(var o=0,i=t;o<i.length;o++){var s=i[o];try{return this.processSegmentAgainstRoute(s,e,n,r)}catch(t){if(!(t instanceof hn))throw t}}if(this.noLeftoversInUrl(e,n,r))return[];throw new hn},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new hn;if((t.outlet?t.outlet:Ve)!==r)throw new hn;if("**"===t.path){var o=n.length>0?O(n).parameters:{},i=new un(n,o,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,le(t),r,t.component,t,ee(e),ne(e)+n.length,pe(t));return[new on(i,[])]}var s=Jt(e,t,n),a=s.consumedSegments,u=s.parameters,c=s.lastChild,l=n.slice(c),p=Yt(t),h=re(e,a,l,p),f=h.segmentGroup,d=h.slicedSegments,v=new un(a,u,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,le(t),r,t.component,t,ee(e),ne(e)+a.length,pe(t));if(0===d.length&&f.hasChildren()){var y=this.processChildren(p,f);return[new on(v,y)]}if(0===p.length&&0===d.length)return[new on(v,[])];var y=this.processSegment(p,f,d,Ve);return[new on(v,y)]},t}(),dn=function(){function t(){this._outlets={}}return t.prototype.registerOutlet=function(t,e){this._outlets[t]=e},t.prototype.removeOutlet=function(t){this._outlets[t]=void 0},t}(),vn=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){},t.prototype.extract=function(t){},t.prototype.merge=function(t,e){},t}(),yn=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}(),mn=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),gn=function(){function t(t,e,i,s,a,u,c,l){var p=this;this.rootComponentType=t,this.urlSerializer=e,this.outletMap=i,this.location=s,this.config=l,this.navigations=new r.BehaviorSubject(null),this.routerEvents=new o.Subject,this.navigationId=0,this.errorHandler=he,this.navigated=!1,this.hooks={beforePreactivation:fe,afterPreactivation:fe},this.urlHandlingStrategy=new yn,this.routeReuseStrategy=new mn;var h=function(t){return p.triggerEvent(new je(t))},f=function(t){return p.triggerEvent(new Le(t))};this.ngModule=a.get(n.NgModuleRef),this.resetConfig(l),this.currentUrlTree=D(),this.rawUrlTree=this.currentUrlTree,this.configLoader=new qe(u,c,h,f),this.currentRouterState=Ct(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.currentRouterState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(Zone.current.wrap(function(e){var n=t.urlSerializer.parse(e.url),r="popstate"===e.type?"popstate":"hashchange";setTimeout(function(){t.scheduleNavigation(n,r,{replaceUrl:!0})},0)})))},Object.defineProperty(t.prototype,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.routerEvents.next(t)},t.prototype.resetConfig=function(t){mt(t),this.config=t},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){var r=void 0===e?{}:e,o=r.relativeTo,i=r.queryParams,s=r.fragment,a=r.preserveQueryParams,u=r.queryParamsHandling,c=r.preserveFragment;n.isDevMode()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var l=o||this.routerState.root,p=c?this.currentUrlTree.fragment:s,h=null;if(u)switch(u){case"merge":h=M(this.currentUrlTree.queryParams,i);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=i}else h=a?this.currentUrlTree.queryParams:i;return Nt(l,this.currentUrlTree,t,h,p)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof ze?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),_e(t),"object"==typeof e.queryParams&&null!==e.queryParams&&(e.queryParams=this.removeEmptyProps(e.queryParams)),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){return this.urlSerializer.parse(t)},t.prototype.isActive=function(t,e){if(t instanceof ze)return j(this.currentUrlTree,t,e);var n=this.urlSerializer.parse(t);return j(this.currentUrlTree,n,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return null!==r&&void 0!==r&&(e[n]=r),e},{})},t.prototype.processNavigations=function(){var t=this;a.concatMap.call(this.navigations,function(e){return e?(t.executeScheduledNavigation(e),e.promise.catch(function(){})):s.of(null)}).subscribe(function(){})},t.prototype.scheduleNavigation=function(t,e,n){var r=this.navigations.value;if(r&&"imperative"!==e&&"imperative"===r.source&&r.rawUrl.toString()===t.toString())return null;if(r&&"hashchange"==e&&"popstate"===r.source&&r.rawUrl.toString()===t.toString())return null;var o=null,i=null,s=new Promise(function(t,e){o=t,i=e}),a=++this.navigationId;return this.navigations.next({id:a,source:e,rawUrl:t,extras:n,resolve:o,reject:i,promise:s}),s.catch(function(t){return Promise.reject(t)})},t.prototype.executeScheduledNavigation=function(t){var e=this,n=t.id,r=t.rawUrl,o=t.extras,i=t.resolve,s=t.reject,a=this.urlHandlingStrategy.extract(r),u=!this.navigated||a.toString()!==this.currentUrlTree.toString();u&&this.urlHandlingStrategy.shouldProcessUrl(r)?(this.routerEvents.next(new Re(n,this.serializeUrl(a))),Promise.resolve().then(function(t){return e.runNavigate(a,r,o.skipLocationChange,o.replaceUrl,n,null)}).then(i,s)):u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.routerEvents.next(new Re(n,this.serializeUrl(a))),Promise.resolve().then(function(t){return e.runNavigate(a,r,!1,!1,n,Ct(a,e.rootComponentType).snapshot)}).then(i,s)):(this.rawUrlTree=r,i(null))},t.prototype.runNavigate=function(t,e,n,r,o,i){var a=this;return o!==this.navigationId?(this.location.go(this.urlSerializer.serialize(this.currentUrlTree)),this.routerEvents.next(new Ie(o,this.serializeUrl(t),"Navigation ID "+o+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(u,c){var h;if(i)h=s.of({appliedUrl:t,snapshot:i});else{var f=a.ngModule.injector,d=st(f,a.configLoader,a.urlSerializer,t,a.config);h=p.mergeMap.call(d,function(e){return l.map.call($t(a.rootComponentType,a.config,e,a.serializeUrl(e)),function(n){return a.routerEvents.next(new De(o,a.serializeUrl(t),a.serializeUrl(e),n)),{appliedUrl:e,snapshot:n}})})}var v,y,m=p.mergeMap.call(h,function(t){return l.map.call(a.hooks.beforePreactivation(t.snapshot),function(){return t})}),g=l.map.call(m,function(t){var e=t.appliedUrl,n=t.snapshot,r=a.ngModule.injector;return v=new wn(n,a.currentRouterState.snapshot,r),v.traverse(a.outletMap),{appliedUrl:e,snapshot:n}}),_=p.mergeMap.call(g,function(t){var e=t.appliedUrl,n=t.snapshot;return a.navigationId!==o?s.of(!1):l.map.call(v.checkGuards(),function(t){return{appliedUrl:e,snapshot:n,shouldActivate:t}})}),b=p.mergeMap.call(_,function(t){return a.navigationId!==o?s.of(!1):t.shouldActivate?l.map.call(v.resolveData(),function(){return t}):s.of(t)}),w=p.mergeMap.call(b,function(t){return l.map.call(a.hooks.afterPreactivation(t.snapshot),function(){return t})}),C=l.map.call(w,function(t){var e=t.appliedUrl,n=t.snapshot,r=t.shouldActivate;if(r){var o=Ot(a.routeReuseStrategy,n,a.currentRouterState);return{appliedUrl:e,state:o,shouldActivate:r}}return{appliedUrl:e,state:null,shouldActivate:r}}),E=a.currentRouterState,x=a.currentUrlTree;C.forEach(function(t){var i=t.appliedUrl,s=t.state,u=t.shouldActivate;if(!u||o!==a.navigationId)return void(y=!1);if(a.currentUrlTree=i,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.currentRouterState=s,!n){var c=a.urlSerializer.serialize(a.rawUrlTree);a.location.isCurrentPathEqualTo(c)||r?a.location.replaceState(c):a.location.go(c)}new Cn(a.routeReuseStrategy,s,E).activate(a.outletMap),y=!0}).then(function(){y?(a.navigated=!0,a.routerEvents.next(new ke(o,a.serializeUrl(t),a.serializeUrl(a.currentUrlTree))),u(!0)):(a.resetUrlToCurrentUrlTree(),a.routerEvents.next(new Ie(o,a.serializeUrl(t),"")),u(!1))},function(n){if(S(n))a.resetUrlToCurrentUrlTree(),a.navigated=!0,a.routerEvents.next(new Ie(o,a.serializeUrl(t),n.message)),u(!1);else{a.routerEvents.next(new Ne(o,a.serializeUrl(t),n));try{u(a.errorHandler(n))}catch(t){c(t)}}a.currentRouterState=E,a.currentUrlTree=x,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.location.replaceState(a.serializeUrl(a.rawUrlTree))})})},t.prototype.resetUrlToCurrentUrlTree=function(){var t=this.urlSerializer.serialize(this.rawUrlTree);this.location.replaceState(t)},t}(),_n=function(){function t(t){this.path=t}return Object.defineProperty(t.prototype,"route",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t}(),bn=function(){function t(t,e){this.component=t,this.route=e}return t}(),wn=function(){function t(t,e,n){this.future=t,this.curr=e,this.moduleInjector=n,this.checks=[]}return t.prototype.traverse=function(t){var e=this.future._root,n=this.curr?this.curr._root:null;this.traverseChildRoutes(e,n,t,[e.value])},t.prototype.checkGuards=function(){var t=this;if(0===this.checks.length)return s.of(!0);var e=i.from(this.checks),n=p.mergeMap.call(e,function(e){if(e instanceof _n)return I(i.from([t.runCanActivateChild(e.path),t.runCanActivate(e.route)]));if(e instanceof bn){var n=e;return t.runCanDeactivate(n.component,n.route)}throw new Error("Cannot be reached")});return u.every.call(n,function(t){return t===!0})},t.prototype.resolveData=function(){var t=this;if(0===this.checks.length)return s.of(null);var e=i.from(this.checks),n=a.concatMap.call(e,function(e){return e instanceof _n?t.runResolve(e.route):s.of(null)});return h.reduce.call(n,function(t,e){return t})},t.prototype.traverseChildRoutes=function(t,e,n,r){var o=this,i=me(e);t.children.forEach(function(t){o.traverseRoutes(t,i[t.value.outlet],n,r.concat([t.value])),delete i[t.value.outlet]}),R(i,function(t,e){return o.deactiveRouteAndItsChildren(t,n._outlets[e])})},t.prototype.traverseRoutes=function(t,e,n,r){var o=t.value,i=e?e.value:null,s=n?n._outlets[t.value.outlet]:null;i&&o._routeConfig===i._routeConfig?(this.shouldRunGuardsAndResolvers(i,o,o._routeConfig.runGuardsAndResolvers)?this.checks.push(new bn(s.component,i),new _n(r)):(o.data=i.data,o._resolvedData=i._resolvedData),o.component?this.traverseChildRoutes(t,e,s?s.outletMap:null,r):this.traverseChildRoutes(t,e,n,r)):(i&&this.deactiveRouteAndItsChildren(e,s),this.checks.push(new _n(r)),o.component?this.traverseChildRoutes(t,null,s?s.outletMap:null,r):this.traverseChildRoutes(t,null,n,r))},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!At(t,e)||!T(t.queryParams,e.queryParams);case"paramsChange":default:return!At(t,e)}},t.prototype.deactiveRouteAndItsChildren=function(t,e){var n=this,r=me(t),o=t.value;R(r,function(t,r){o.component?e?n.deactiveRouteAndItsChildren(t,e.outletMap._outlets[r]):n.deactiveRouteAndItsChildren(t,null):n.deactiveRouteAndItsChildren(t,e)}),o.component&&e&&e.isActivated?this.checks.push(new bn(e.component,o)):this.checks.push(new bn(null,o))},t.prototype.runCanActivate=function(t){var e=this,n=t._routeConfig?t._routeConfig.canActivate:null;if(!n||0===n.length)return s.of(!0);var r=l.map.call(i.from(n),function(n){var r,o=e.getToken(n,t);return r=N(o.canActivate?o.canActivate(t,e.future):o(t,e.future)),c.first.call(r)});return I(r)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t});return I(l.map.call(i.from(r),function(t){var r=l.map.call(i.from(t.guards),function(r){var o,i=e.getToken(r,t.node);return o=N(i.canActivateChild?i.canActivateChild(n,e.future):i(n,e.future)),c.first.call(o)});return I(r)}))},t.prototype.extractCanActivateChild=function(t){var e=t._routeConfig?t._routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e._routeConfig?e._routeConfig.canDeactivate:null;if(!r||0===r.length)return s.of(!0);var o=p.mergeMap.call(i.from(r),function(r){var o,i=n.getToken(r,e);return o=N(i.canDeactivate?i.canDeactivate(t,e,n.curr,n.future):i(t,e,n.curr,n.future)),c.first.call(o)});return u.every.call(o,function(t){return t===!0})},t.prototype.runResolve=function(t){var e=t._resolve;return l.map.call(this.resolveNode(e,t),function(e){return t._resolvedData=e,t.data=M(t.data,St(t).resolve),null})},t.prototype.resolveNode=function(t,e){var n=this;return k(t,function(t,r){var o=n.getToken(r,e);return N(o.resolve?o.resolve(e,n.future):o(e,n.future))})},t.prototype.getToken=function(t,e){var n=ye(e),r=n?n.module.injector:this.moduleInjector;return r.get(t)},t}(),Cn=function(){function t(t,e,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=n}return t.prototype.activate=function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),Tt(this.futureState.root),this.activateChildRoutes(e,n,t)},t.prototype.deactivateChildRoutes=function(t,e,n){var r=this,o=me(e);t.children.forEach(function(t){r.deactivateRoutes(t,o[t.value.outlet],n),delete o[t.value.outlet]}),R(o,function(t,e){return r.deactiveRouteAndItsChildren(t,n)})},t.prototype.activateChildRoutes=function(t,e,n){var r=this,o=me(e);t.children.forEach(function(t){r.activateRoutes(t,o[t.value.outlet],n)})},t.prototype.deactivateRoutes=function(t,e,n){var r=t.value,o=e?e.value:null;if(r===o)if(r.component){var i=ge(n,r);this.deactivateChildRoutes(t,e,i.outletMap)}else this.deactivateChildRoutes(t,e,n);else o&&this.deactiveRouteAndItsChildren(e,n)},t.prototype.activateRoutes=function(t,e,n){var r=t.value,o=e?e.value:null;if(r===o)if(Tt(r),r.component){var i=ge(n,r);this.activateChildRoutes(t,e,i.outletMap)}else this.activateChildRoutes(t,e,n);else if(r.component){Tt(r);var i=ge(n,t.value);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),i.attach(s.componentRef,s.route.value),de(s.route)}else{var a=new dn;this.placeComponentIntoOutlet(a,r,i),this.activateChildRoutes(t,null,a)}}else Tt(r),this.activateChildRoutes(t,null,n)},t.prototype.placeComponentIntoOutlet=function(t,e,n){var r=ve(e.snapshot),o=r?r.module.componentFactoryResolver:null;n.activateWith(e,o,t)},t.prototype.deactiveRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactiveRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var n=ge(e,t.value),r=n.detach();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t})},t.prototype.deactiveRouteAndOutlet=function(t,e){var n=this,r=me(t),o=null;try{o=ge(e,t.value)}catch(t){return}var i=o.outletMap;R(r,function(r,o){t.value.component?n.deactiveRouteAndItsChildren(r,i):n.deactiveRouteAndItsChildren(r,e)}),o&&o.isActivated&&o.deactivate()},t}(),En=function(){function t(t,e,n,r,o){this.router=t,this.route=e,this.commands=[],null==n&&r.setElementAttribute(o.nativeElement,"tabindex","0")}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){null!=t?this.commands=Array.isArray(t)?t:[t]:this.commands=[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){n.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:be(this.skipLocationChange),replaceUrl:be(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:be(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:be(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();En.decorators=[{type:n.Directive,args:[{selector:":not(a)[routerLink]"}]}],En.ctorParameters=function(){return[{type:gn},{type:an},{type:void 0,decorators:[{type:n.Attribute,args:["tabindex"]}]},{type:n.Renderer},{type:n.ElementRef}]},En.propDecorators={queryParams:[{type:n.Input}],fragment:[{type:n.Input}],queryParamsHandling:[{type:n.Input}],preserveFragment:[{type:n.Input}],skipLocationChange:[{type:n.Input}],replaceUrl:[{type:n.Input}],routerLink:[{type:n.Input}],preserveQueryParams:[{type:n.Input}],onClick:[{type:n.HostListener,args:["click"]}]};var Sn=function(){function t(t,e,n){var r=this;this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(function(t){t instanceof ke&&r.updateTargetUrlAndHref()})}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){null!=t?this.commands=Array.isArray(t)?t:[t]:this.commands=[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){n.isDevMode()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,n){if(0!==t||e||n)return!0;if("string"==typeof this.target&&"_self"!=this.target)return!0;var r={skipLocationChange:be(this.skipLocationChange),replaceUrl:be(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,r),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:be(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:be(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();Sn.decorators=[{type:n.Directive,args:[{selector:"a[routerLink]"}]}],Sn.ctorParameters=function(){return[{type:gn},{type:an},{type:e.LocationStrategy}]},Sn.propDecorators={target:[{type:n.HostBinding,args:["attr.target"]},{type:n.Input}],queryParams:[{type:n.Input}],fragment:[{type:n.Input}],queryParamsHandling:[{type:n.Input}],preserveFragment:[{type:n.Input}],skipLocationChange:[{type:n.Input}],replaceUrl:[{type:n.Input}],href:[{type:n.HostBinding}],routerLink:[{type:n.Input}],preserveQueryParams:[{type:n.Input}],onClick:[{type:n.HostListener,args:["click",["$event.button","$event.ctrlKey","$event.metaKey"]]}]};var xn=function(){function t(t,e,n,r){var o=this;this.router=t,this.element=e,this.renderer=n,this.cdr=r,this.classes=[],this.active=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(function(t){t instanceof ke&&o.update()})}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this.active},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this.links.changes.subscribe(function(e){return t.update()}),this.linksWithHrefs.changes.subscribe(function(e){return t.update()}),this.update()},Object.defineProperty(t.prototype,"routerLinkActive",{set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(function(t){return!!t})},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.update=function(){var t=this;if(this.links&&this.linksWithHrefs&&this.router.navigated){var e=this.hasActiveLinks();this.active!==e&&(this.active=e,this.classes.forEach(function(n){return t.renderer.setElementClass(t.element.nativeElement,n,e)}),this.cdr.detectChanges())}},t.prototype.isLinkActive=function(t){var e=this;return function(n){return t.isActive(n.urlTree,e.routerLinkActiveOptions.exact)}},t.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},t}();xn.decorators=[{type:n.Directive,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],xn.ctorParameters=function(){return[{type:gn},{type:n.ElementRef},{type:n.Renderer},{type:n.ChangeDetectorRef}]},xn.propDecorators={links:[{type:n.ContentChildren,args:[En,{descendants:!0}]}],linksWithHrefs:[{type:n.ContentChildren,args:[Sn,{descendants:!0}]}],routerLinkActiveOptions:[{type:n.Input}],routerLinkActive:[{type:n.Input}]};var Pn=function(){function t(t,e,r,o){this.parentOutletMap=t,this.location=e,this.resolver=r,this.name=o,this.activateEvents=new n.EventEmitter,this.deactivateEvents=new n.EventEmitter,t.registerOutlet(o?o:Ve,this)}return t.prototype.ngOnDestroy=function(){this.parentOutletMap.removeOutlet(this.name?this.name:Ve)},Object.defineProperty(t.prototype,"locationInjector",{get:function(){return this.location.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locationFactoryResolver",{get:function(){return this.resolver},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activate=function(t,e,r,o,i){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=i,this._activatedRoute=t;var s=t._futureSnapshot,a=s._routeConfig.component,u=e.resolveComponentFactory(a),c=n.ReflectiveInjector.fromResolvedProviders(o,r);this.activated=this.location.createComponent(u,this.location.length,c,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},t.prototype.activateWith=function(t,e,n){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this.outletMap=n,this._activatedRoute=t;var r=t._futureSnapshot,o=r._routeConfig.component;e=e||this.resolver;var i=e.resolveComponentFactory(o),s=new Tn(t,n,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s,[]),this.activated.changeDetectorRef.detectChanges(),this.activateEvents.emit(this.activated.instance)},t}();Pn.decorators=[{type:n.Directive,args:[{selector:"router-outlet"}]}],Pn.ctorParameters=function(){return[{type:dn},{type:n.ViewContainerRef},{type:n.ComponentFactoryResolver},{type:void 0,decorators:[{type:n.Attribute,args:["name"]}]}]},Pn.propDecorators={activateEvents:[{type:n.Output,args:["activate"]}],deactivateEvents:[{type:n.Output,args:["deactivate"]}]};var Tn=function(){function t(t,e,n){this.route=t,this.map=e,this.parent=n}return t.prototype.get=function(t,e){return t===an?this.route:t===dn?this.map:this.parent.get(t,e)},t}(),An=function(){function t(){}return t.prototype.shouldDetach=function(t){},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){},t.prototype.retrieve=function(t){},t.prototype.shouldReuseRoute=function(t,e){},t}(),On=function(){function t(){}return t.prototype.preload=function(t,e){},t}(),Mn=function(){function t(){}return t.prototype.preload=function(t,e){return d._catch.call(e(),function(){return s.of(null)})},t}(),Rn=function(){function t(){}return t.prototype.preload=function(t,e){return s.of(null)},t}(),kn=function(){function t(t,e,n,r,o){this.router=t,this.injector=r,this.preloadingStrategy=o;var i=function(e){return t.triggerEvent(new je(e))},s=function(e){return t.triggerEvent(new Le(e))};this.loader=new qe(e,n,i,s)}return t.prototype.setUpPreloading=function(){var t=this,e=w.filter.call(this.router.events,function(t){return t instanceof ke});this.subscription=a.concatMap.call(e,function(){return t.preload()}).subscribe(function(){})},t.prototype.preload=function(){var t=this.injector.get(n.NgModuleRef);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){for(var n=[],r=0,o=e;r<o.length;r++){var s=o[r];if(s.loadChildren&&!s.canLoad&&s._loadedConfig){var a=s._loadedConfig;n.push(this.processRoutes(a.module,a.routes))}else s.loadChildren&&!s.canLoad?n.push(this.preloadConfig(t,s)):s.children&&n.push(this.processRoutes(t,s.children))}return _.mergeAll.call(i.from(n))},t.prototype.preloadConfig=function(t,e){var n=this;return this.preloadingStrategy.preload(e,function(){var r=n.loader.load(t.injector,e);return p.mergeMap.call(r,function(t){var r=e;return r._loadedConfig=t,n.processRoutes(t.module,t.routes)})})},t}();kn.decorators=[{type:n.Injectable}],kn.ctorParameters=function(){return[{type:gn},{type:n.NgModuleFactoryLoader
  },{type:n.Compiler},{type:n.Injector},{type:On}]};var In=[Pn,En,Sn,xn],Nn=new n.InjectionToken("ROUTER_CONFIGURATION"),Dn=new n.InjectionToken("ROUTER_FORROOT_GUARD"),jn=[e.Location,{provide:Ke,useClass:Qe},{provide:gn,useFactory:xe,deps:[n.ApplicationRef,Ke,dn,e.Location,n.Injector,n.NgModuleFactoryLoader,n.Compiler,He,Nn,[vn,new n.Optional],[An,new n.Optional]]},dn,{provide:an,useFactory:Pe,deps:[gn]},{provide:n.NgModuleFactoryLoader,useClass:n.SystemJsNgModuleLoader},kn,Rn,Mn,{provide:Nn,useValue:{enableTracing:!1}}],Ln=function(){function t(t,e){}return t.forRoot=function(r,o){return{ngModule:t,providers:[jn,Se(r),{provide:Dn,useFactory:Ee,deps:[[gn,new n.Optional,new n.SkipSelf]]},{provide:Nn,useValue:o?o:{}},{provide:e.LocationStrategy,useFactory:Ce,deps:[e.PlatformLocation,[new n.Inject(e.APP_BASE_HREF),new n.Optional],Nn]},{provide:On,useExisting:o&&o.preloadingStrategy?o.preloadingStrategy:Rn},{provide:n.NgProbeToken,multi:!0,useFactory:we},Oe()]}},t.forChild=function(e){return{ngModule:t,providers:[Se(e)]}},t}();Ln.decorators=[{type:n.NgModule,args:[{declarations:In,exports:In}]}],Ln.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Optional},{type:n.Inject,args:[Dn]}]},{type:gn,decorators:[{type:n.Optional}]}]};var Vn=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new o.Subject}return t.prototype.appInitializer=function(){var t=this,n=this.injector.get(e.LOCATION_INITIALIZED,Promise.resolve(null));return n.then(function(){var e=null,n=new Promise(function(t){return e=t}),r=t.injector.get(gn),o=t.injector.get(Nn);if(t.isLegacyDisabled(o)||t.isLegacyEnabled(o))e(!0);else if("disabled"===o.initialNavigation)r.setUpLocationChangeListener(),e(!0);else{if("enabled"!==o.initialNavigation)throw new Error("Invalid initialNavigation options: '"+o.initialNavigation+"'");r.hooks.afterPreactivation=function(){return t.initNavigation?s.of(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()}return n})},t.prototype.bootstrapListener=function(t){var e=this.injector.get(Nn),r=this.injector.get(kn),o=this.injector.get(gn),i=this.injector.get(n.ApplicationRef);t===i.components[0]&&(this.isLegacyEnabled(e)?o.initialNavigation():this.isLegacyDisabled(e)&&o.setUpLocationChangeListener(),r.setUpPreloading(),o.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},t.prototype.isLegacyEnabled=function(t){return"legacy_enabled"===t.initialNavigation||t.initialNavigation===!0||void 0===t.initialNavigation},t.prototype.isLegacyDisabled=function(t){return"legacy_disabled"===t.initialNavigation||t.initialNavigation===!1},t}();Vn.decorators=[{type:n.Injectable}],Vn.ctorParameters=function(){return[{type:n.Injector}]};var Fn=new n.InjectionToken("Router Initializer"),Un=new n.Version("4.0.0");t.RouterLink=En,t.RouterLinkWithHref=Sn,t.RouterLinkActive=xn,t.RouterOutlet=Pn,t.NavigationCancel=Ie,t.NavigationEnd=ke,t.NavigationError=Ne,t.NavigationStart=Re,t.RouteConfigLoadEnd=Le,t.RouteConfigLoadStart=je,t.RoutesRecognized=De,t.RouteReuseStrategy=An,t.Router=gn,t.ROUTES=He,t.ROUTER_CONFIGURATION=Nn,t.ROUTER_INITIALIZER=Fn,t.RouterModule=Ln,t.provideRoutes=Se,t.RouterOutletMap=dn,t.NoPreloading=Rn,t.PreloadAllModules=Mn,t.PreloadingStrategy=On,t.RouterPreloader=kn,t.ActivatedRoute=an,t.ActivatedRouteSnapshot=un,t.RouterState=sn,t.RouterStateSnapshot=cn,t.PRIMARY_OUTLET=Ve,t.convertToParamMap=C,t.UrlHandlingStrategy=vn,t.DefaultUrlSerializer=Qe,t.UrlSegment=We,t.UrlSegmentGroup=Ge,t.UrlSerializer=Ke,t.UrlTree=ze,t.VERSION=Un,t.ɵROUTER_PROVIDERS=jn,t.ɵflatten=A,t.ɵa=Dn,t.ɵg=Vn,t.ɵh=Te,t.ɵi=Ae,t.ɵd=Ee,t.ɵc=Ce,t.ɵj=Oe,t.ɵf=Pe,t.ɵb=we,t.ɵe=xe,t.ɵk=rn,t.ɵl=on,Object.defineProperty(t,"__esModule",{value:!0})})}(),t.registerDynamic("11",[],!0,function(t,e,n){"use strict";return this||self,Object.defineProperty(e,"__esModule",{value:!0}),e.Config=JSON.parse('{"API":"https://demo.com","ENV":"PROD"}'),n.exports}),t.registerDynamic("2a",["3"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s});Object.defineProperty(e,"__esModule",{value:!0});var o=t("3"),i=function(){function t(){}return t.prototype.setItem=function(t,e,n){void 0===n&&(n=!1);var r=this._getStore(n);r.setItem("__tm__"+t,JSON.stringify(e))},t.prototype.getItem=function(t,e){void 0===e&&(e=!1);var n=this._getStore(e),r=n.getItem("__tm__"+t);return r?JSON.parse(r):null},t.prototype._getStore=function(t){return t?sessionStorage:localStorage},t}();return i=r([o.Injectable()],i),e.StorageService=i,n.exports}),t.registerDynamic("12",["3","11","2a"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=t("3"),s=t("11"),a=t("2a"),u=function(){function t(t){this._storage=t,this._targetApi={mode:"dev","session.timeout":36e5},this._apis={stub:{"message.request":"/stubs/message.json","login.request":"/stubs/login.json","logout.request":"/stubs/logout.json"},live:{"server.push.host":"","server.push.port":"","message.request":"/api/message","login.request":"/auth/login","logout.request":"/auth/logout"}},this._initData()}return t.prototype.getConfig=function(t){var e=this._targetApi[t];return e||(e=this._targetApi[t]),e&&e.url?e.url:e},t.prototype._initData=function(){var t,e;"DEV"===s.Config.ENV&&(t=this._storage.getItem("proxy-target"),t&&"stubs"===t&&(e=!0),location.search.indexOf("proxy=")>=0&&"stubs"!==location.search.split("=")[1]&&(e=!1)),~location.search.indexOf("proxy=stubs")||e?(this._targetApi=this._apis.stub,this._targetApi.stub=!0):(this._targetApi=this._apis.live,this._targetApi.stub=!1)},t}();return u=r([i.Injectable(),o("design:paramtypes",[a.StorageService])],u),e.ApiConfig=u,n.exports}),function(){var o=t.amdDefine;!function(t,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/core")):"function"==typeof o&&o.amd?o("5",["exports","3"],i):i((t.ng=t.ng||{},t.ng.common=t.ng.common||{}),t.ng.core)}(this,function(t,e){"use strict";function n(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}function r(t){return t.replace(/\/index.html$/,"")}function o(t,e,n){var r="="+t;if(e.indexOf(r)>-1)return r;if(r=n.getPluralCategory(t),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function i(t,e){"string"==typeof e&&(e=parseInt(e,10));var n=e,r=n.toString().replace(/^[^.]*\.?/,""),o=Math.floor(Math.abs(n)),i=r.length,s=parseInt(r,10),a=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0,u=t.split("-")[0].toLowerCase();switch(u){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?B.One:B.Other;case"agq":case"bas":case"cu":case"dav":case"dje":case"dua":case"dyo":case"ebu":case"ewo":case"guz":case"kam":case"khq":case"ki":case"kln":case"kok":case"ksf":case"lrc":case"lu":case"luo":case"luy":case"mer":case"mfe":case"mgh":case"mua":case"mzn":case"nmg":case"nus":case"qu":case"rn":case"rw":case"sbp":case"twq":case"vai":case"yav":case"yue":case"zgh":case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?B.One:B.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===o||1===n?B.One:B.Other;case"ar":return 0===n?B.Zero:1===n?B.One:2===n?B.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?B.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?B.Many:B.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===o&&0===i?B.One:B.Other;case"be":return n%10===1&&n%100!==11?B.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?B.Few:n%10===0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?B.Many:B.Other;case"br":return n%10===1&&n%100!==11&&n%100!==71&&n%100!==91?B.One:n%10===2&&n%100!==12&&n%100!==72&&n%100!==92?B.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10===9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?B.Few:0!==n&&n%1e6===0?B.Many:B.Other;case"bs":case"hr":case"sr":return 0===i&&o%10===1&&o%100!==11||s%10===1&&s%100!==11?B.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)||s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)?B.Few:B.Other;case"cs":case"sk":return 1===o&&0===i?B.One:o===Math.floor(o)&&o>=2&&o<=4&&0===i?B.Few:0!==i?B.Many:B.Other;case"cy":return 0===n?B.Zero:1===n?B.One:2===n?B.Two:3===n?B.Few:6===n?B.Many:B.Other;case"da":return 1===n||0!==a&&(0===o||1===o)?B.One:B.Other;case"dsb":case"hsb":return 0===i&&o%100===1||s%100===1?B.One:0===i&&o%100===2||s%100===2?B.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&o%100<=4||s%100===Math.floor(s%100)&&s%100>=3&&s%100<=4?B.Few:B.Other;case"ff":case"fr":case"hy":case"kab":return 0===o||1===o?B.One:B.Other;case"fil":return 0===i&&(1===o||2===o||3===o)||0===i&&o%10!==4&&o%10!==6&&o%10!==9||0!==i&&s%10!==4&&s%10!==6&&s%10!==9?B.One:B.Other;case"ga":return 1===n?B.One:2===n?B.Two:n===Math.floor(n)&&n>=3&&n<=6?B.Few:n===Math.floor(n)&&n>=7&&n<=10?B.Many:B.Other;case"gd":return 1===n||11===n?B.One:2===n||12===n?B.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?B.Few:B.Other;case"gv":return 0===i&&o%10===1?B.One:0===i&&o%10===2?B.Two:0!==i||o%100!==0&&o%100!==20&&o%100!==40&&o%100!==60&&o%100!==80?0!==i?B.Many:B.Other:B.Few;case"he":return 1===o&&0===i?B.One:2===o&&0===i?B.Two:0!==i||n>=0&&n<=10||n%10!==0?B.Other:B.Many;case"is":return 0===a&&o%10===1&&o%100!==11||0!==a?B.One:B.Other;case"ksh":return 0===n?B.Zero:1===n?B.One:B.Other;case"kw":case"naq":case"se":case"smn":return 1===n?B.One:2===n?B.Two:B.Other;case"lag":return 0===n?B.Zero:0!==o&&1!==o||0===n?B.Other:B.One;case"lt":return n%10!==1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?B.Few:0!==s?B.Many:B.Other:B.One;case"lv":case"prg":return n%10===0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===i&&s%100===Math.floor(s%100)&&s%100>=11&&s%100<=19?B.Zero:n%10===1&&n%100!==11||2===i&&s%10===1&&s%100!==11||2!==i&&s%10===1?B.One:B.Other;case"mk":return 0===i&&o%10===1||s%10===1?B.One:B.Other;case"mt":return 1===n?B.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?B.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?B.Many:B.Other;case"pl":return 1===o&&0===i?B.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)?B.Few:0===i&&1!==o&&o%10===Math.floor(o%10)&&o%10>=0&&o%10<=1||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&o%10<=9||0===i&&o%100===Math.floor(o%100)&&o%100>=12&&o%100<=14?B.Many:B.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?B.One:B.Other;case"ro":return 1===o&&0===i?B.One:0!==i||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?B.Few:B.Other;case"ru":case"uk":return 0===i&&o%10===1&&o%100!==11?B.One:0===i&&o%10===Math.floor(o%10)&&o%10>=2&&o%10<=4&&!(o%100>=12&&o%100<=14)?B.Few:0===i&&o%10===0||0===i&&o%10===Math.floor(o%10)&&o%10>=5&&o%10<=9||0===i&&o%100===Math.floor(o%100)&&o%100>=11&&o%100<=14?B.Many:B.Other;case"shi":return 0===o||1===n?B.One:n===Math.floor(n)&&n>=2&&n<=10?B.Few:B.Other;case"si":return 0===n||1===n||0===o&&1===s?B.One:B.Other;case"sl":return 0===i&&o%100===1?B.One:0===i&&o%100===2?B.Two:0===i&&o%100===Math.floor(o%100)&&o%100>=3&&o%100<=4||0!==i?B.Few:B.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?B.One:B.Other;default:return B.Other}}function s(t){return t.name||typeof t}function a(t,n){return Error("InvalidPipeArgument: '"+n+"' for pipe '"+e.ɵstringify(t)+"'")}function u(t){return t?t[0].toUpperCase()+t.substr(1).toLowerCase():t}function c(t){return function(e,n){var r=t(e,n);return 1==r.length?"0"+r:r}}function l(t){return function(e,n){return t(e,n).split(" ")[1]}}function p(t){return function(e,n){return t(e,n).split(" ")[0]}}function h(t,e,n){return new Intl.DateTimeFormat(e,n).format(t).replace(/[\u200e\u200f]/g,"")}function f(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,n){var r=h(t,n,e);return r?r.substring(3):""}}function d(t,e){return t.hour12=e,t}function v(t,e){var n={};return n[t]=2===e?"2-digit":"numeric",n}function y(t,e){var n={};return e<4?n[t]=e>1?"short":"narrow":n[t]="long",n}function m(t){return Object.assign.apply(Object,[{}].concat(t))}function g(t){return function(e,n){return h(e,n,t)}}function _(t,e,n){var r=mt[t];if(r)return r(e,n);var o=t,i=_t.get(o);if(!i){i=[];var s=void 0;for(yt.exec(t);t;)s=yt.exec(t),s?(i=i.concat(s.slice(1)),t=i.pop()):(i.push(t),t=null);_t.set(o,i)}return i.reduce(function(t,r){var o=gt[r];return t+(o?o(e,n):b(r))},"")}function b(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}function w(t,e,n,r,o,i,s){if(void 0===i&&(i=null),void 0===s&&(s=!1),null==n)return null;if(n="string"==typeof n&&E(n)?+n:n,"number"!=typeof n)throw a(t,n);var u,c,l;if(r!==dt.Currency&&(u=1,c=0,l=3),o){var p=o.match(wt);if(null===p)throw new Error(o+" is not a valid digit info for number pipes");null!=p[1]&&(u=C(p[1])),null!=p[3]&&(c=C(p[3])),null!=p[5]&&(l=C(p[5]))}return vt.format(n,e,r,{minimumIntegerDigits:u,minimumFractionDigits:c,maximumFractionDigits:l,currency:i,currencyAsSymbol:s})}function C(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function E(t){return!isNaN(t-parseFloat(t))}function S(t){return null==t||""===t}function x(t){return t instanceof Date&&!isNaN(t.valueOf())}function P(t){var e=new Date(0),n=0,r=0,o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=T(t[9]+t[10]),r=T(t[9]+t[11])),o.call(e,T(t[1]),T(t[2])-1,T(t[3]));var s=T(t[4]||"0")-n,a=T(t[5]||"0")-r,u=T(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,s,a,u,c),e}function T(t){return parseInt(t,10)}function A(t){return t===Nt}function O(t){return t===Dt}function M(t){return t===jt}function R(t){return t===Lt}var k=function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},I=function(){function t(){}return t.prototype.getBaseHrefFromDOM=function(){},t.prototype.onPopState=function(t){},t.prototype.onHashChange=function(t){},Object.defineProperty(t.prototype,"pathname",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"search",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.replaceState=function(t,e,n){},t.prototype.pushState=function(t,e,n){},t.prototype.forward=function(){},t.prototype.back=function(){},t}(),N=new e.InjectionToken("Location Initialized"),D=function(){function t(){}return t.prototype.path=function(t){},t.prototype.prepareExternalUrl=function(t){},t.prototype.pushState=function(t,e,n,r){},t.prototype.replaceState=function(t,e,n,r){},t.prototype.forward=function(){},t.prototype.back=function(){},t.prototype.onPopState=function(t){},t.prototype.getBaseHref=function(){},t}(),j=new e.InjectionToken("appBaseHref"),L=function(){function t(n){var o=this;this._subject=new e.EventEmitter,this._platformStrategy=n;var i=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(r(i)),this._platformStrategy.onPopState(function(t){o._subject.emit({url:o.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(n(this._baseHref,r(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e){void 0===e&&(e=""),this._platformStrategy.pushState(null,"",t,e)},t.prototype.replaceState=function(t,e){void 0===e&&(e=""),this._platformStrategy.replaceState(null,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){return t.replace(/\/$/,"")},t}();L.decorators=[{type:e.Injectable}],L.ctorParameters=function(){return[{type:D}]};var V=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return k(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=L.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+L.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+L.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(D);V.decorators=[{type:e.Injectable}],V.ctorParameters=function(){return[{type:I},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[j]}]}]};var F=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return k(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return L.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+L.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+L.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+L.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(D);F.decorators=[{type:e.Injectable}],F.ctorParameters=function(){return[{type:I},{type:void 0,decorators:[{type:e.Optional},{type:e.Inject,args:[j]}]}]};var U=function(){function t(){}return t.prototype.getPluralCategory=function(t){},t}(),H=function(t){function e(e){var n=t.call(this)||this;return n.locale=e,n}return k(e,t),e.prototype.getPluralCategory=function(t){var e=i(this.locale,t);switch(e){case B.Zero:return"zero";case B.One:return"one";case B.Two:return"two";case B.Few:return"few";case B.Many:return"many";default:return"other"}},e}(U);H.decorators=[{type:e.Injectable}],H.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var B={};B.Zero=0,B.One=1,B.Two=2,B.Few=3,B.Many=4,B.Other=5,B[B.Zero]="Zero",B[B.One]="One",B[B.Two]="Two",B[B.Few]="Few",B[B.Many]="Many",B[B.Other]="Other";var q=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(e.ɵisListLikeIterable(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var n=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+e.ɵstringify(t.item));n._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return n._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(n){return e._toggleClass(n,!t)})},t.prototype._applyClasses=function(t,e){var n=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return n._toggleClass(t,!e)}):Object.keys(t).forEach(function(r){null!=t[r]&&n._toggleClass(r,!e)}))},t.prototype._toggleClass=function(t,e){var n=this;t=t.trim(),t&&t.split(/\s+/g).forEach(function(t){n._renderer.setElementClass(n._ngEl.nativeElement,t,!!e)})},t}();q.decorators=[{type:e.Directive,args:[{selector:"[ngClass]"}]}],q.ctorParameters=function(){return[{type:e.IterableDiffers},{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},q.propDecorators={klass:[{type:e.Input,args:["class"]}],ngClass:[{type:e.Input}]};var z=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var n=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var r=n.get(e.NgModuleRef);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(r.injector)}else this._moduleRef=null;var o=this._moduleRef?this._moduleRef.componentFactoryResolver:n.get(e.ComponentFactoryResolver),i=o.resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,n,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t}();z.decorators=[{type:e.Directive,args:[{selector:"[ngComponentOutlet]"}]}],z.ctorParameters=function(){return[{type:e.ViewContainerRef}]},z.propDecorators={ngComponentOutlet:[{type:e.Input}],ngComponentOutletInjector:[{type:e.Input}],ngComponentOutletContent:[{type:e.Input}],ngComponentOutletNgModuleFactory:[{type:e.Input}]};var G=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2===0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),W=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){e.isDevMode()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+s(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new G(null,e.ngForOf,null,null),o),s=new K(t,i);n.push(s)}else if(null==o)e._viewContainer.remove(r);else{var i=e._viewContainer.get(r);e._viewContainer.move(i,o);var s=new K(t,i);n.push(s)}});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var r=0,o=this._viewContainer.length;r<o;r++){var i=this._viewContainer.get(r);i.context.index=r,i.context.count=o}t.forEachIdentityChange(function(t){var n=e._viewContainer.get(t.currentIndex);n.context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t}();W.decorators=[{type:e.Directive,args:[{selector:"[ngFor][ngForOf]"}]}],W.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:e.IterableDiffers}]},W.propDecorators={ngForOf:[{type:e.Input}],ngForTrackBy:[{type:e.Input}],ngForTemplate:[{type:e.Input}]};var K=function(){function t(t,e){this.record=t,this.view=e}return t}(),Q=W,X=function(){function t(t,e){this._viewContainer=t,this._context=new $,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},t}();X.decorators=[{type:e.Directive,args:[{selector:"[ngIf]"}]}],X.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef}]},X.propDecorators={ngIf:[{type:e.Input}],ngIfThen:[{type:e.Input}],ngIfElse:[{type:e.Input}]};var $=function(){function t(){this.$implicit=null,this.ngIf=null}return t}(),Z=function(){function t(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}return t.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},t.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},t}(),Y=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++){var n=this._defaultViews[e];n.enforceState(t)}}},t}();Y.decorators=[{type:e.Directive,args:[{selector:"[ngSwitch]"}]}],Y.ctorParameters=function(){return[]},Y.propDecorators={ngSwitch:[{type:e.Input}]};var J=function(){function t(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new Z(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t}();J.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchCase]"}]}],J.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:Y,decorators:[{type:e.Host}]}]},J.propDecorators={ngSwitchCase:[{type:e.Input}]};var tt=function(){function t(t,e,n){n._addDefault(new Z(t,e))}return t}();tt.decorators=[{type:e.Directive,args:[{selector:"[ngSwitchDefault]"}]}],tt.ctorParameters=function(){return[{type:e.ViewContainerRef},{type:e.TemplateRef},{type:Y,decorators:[{type:e.Host}]}]};var et=function(){function t(t){this._localization=t,this._caseViews={}}return Object.defineProperty(t.prototype,"ngPlural",{set:function(t){this._switchValue=t,this._updateView()},enumerable:!0,configurable:!0}),t.prototype.addCase=function(t,e){this._caseViews[t]=e},t.prototype._updateView=function(){this._clearViews();var t=Object.keys(this._caseViews),e=o(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])},t.prototype._clearViews=function(){
  this._activeView&&this._activeView.destroy()},t.prototype._activateView=function(t){t&&(this._activeView=t,this._activeView.create())},t}();et.decorators=[{type:e.Directive,args:[{selector:"[ngPlural]"}]}],et.ctorParameters=function(){return[{type:U}]},et.propDecorators={ngPlural:[{type:e.Input}]};var nt=function(){function t(t,e,n,r){this.value=t;var o=!isNaN(Number(t));r.addCase(o?"="+t:t,new Z(n,e))}return t}();nt.decorators=[{type:e.Directive,args:[{selector:"[ngPluralCase]"}]}],nt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Attribute,args:["ngPluralCase"]}]},{type:e.TemplateRef},{type:e.ViewContainerRef},{type:et,decorators:[{type:e.Host}]}]};var rt=function(){function t(t,e,n){this._differs=t,this._ngEl=e,this._renderer=n}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this;t.forEachRemovedItem(function(t){return e._setStyle(t.key,null)}),t.forEachAddedItem(function(t){return e._setStyle(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._setStyle(t.key,t.currentValue)})},t.prototype._setStyle=function(t,e){var n=t.split("."),r=n[0],o=n[1];e=null!=e&&o?""+e+o:e,this._renderer.setElementStyle(this._ngEl.nativeElement,r,e)},t}();rt.decorators=[{type:e.Directive,args:[{selector:"[ngStyle]"}]}],rt.ctorParameters=function(){return[{type:e.KeyValueDiffers},{type:e.ElementRef},{type:e.Renderer}]},rt.propDecorators={ngStyle:[{type:e.Input}]};var ot=function(){function t(t){this._viewContainerRef=t}return Object.defineProperty(t.prototype,"ngOutletContext",{set:function(t){this.ngTemplateOutletContext=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))},t}();ot.decorators=[{type:e.Directive,args:[{selector:"[ngTemplateOutlet]"}]}],ot.ctorParameters=function(){return[{type:e.ViewContainerRef}]},ot.propDecorators={ngTemplateOutletContext:[{type:e.Input}],ngTemplateOutlet:[{type:e.Input}],ngOutletContext:[{type:e.Input}]};var it=[q,z,W,X,ot,rt,Y,J,tt,et,nt],st=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.subscribe({next:e,error:function(t){throw t}})},t.prototype.dispose=function(t){t.unsubscribe()},t.prototype.onDestroy=function(t){t.unsubscribe()},t}(),at=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(t){},t.prototype.onDestroy=function(t){},t}(),ut=new at,ct=new st,lt=function(){function t(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return t.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},t.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,e.WrappedValue.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},t.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(n){return e._updateLatestValue(t,n)})},t.prototype._selectStrategy=function(n){if(e.ɵisPromise(n))return ut;if(e.ɵisObservable(n))return ct;throw a(t,n)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t}();lt.decorators=[{type:e.Pipe,args:[{name:"async",pure:!1}]}],lt.ctorParameters=function(){return[{type:e.ChangeDetectorRef}]};var pt=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.toLowerCase()},t}();pt.decorators=[{type:e.Pipe,args:[{name:"lowercase"}]}],pt.ctorParameters=function(){return[]};var ht=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.split(/\b/g).map(function(t){return u(t)}).join("")},t}();ht.decorators=[{type:e.Pipe,args:[{name:"titlecase"}]}],ht.ctorParameters=function(){return[]};var ft=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw a(t,e);return e.toUpperCase()},t}();ft.decorators=[{type:e.Pipe,args:[{name:"uppercase"}]}],ft.ctorParameters=function(){return[]};var dt={};dt.Decimal=0,dt.Percent=1,dt.Currency=2,dt[dt.Decimal]="Decimal",dt[dt.Percent]="Percent",dt[dt.Currency]="Currency";var vt=function(){function t(){}return t.format=function(t,e,n,r){var o=void 0===r?{}:r,i=o.minimumIntegerDigits,s=o.minimumFractionDigits,a=o.maximumFractionDigits,u=o.currency,c=o.currencyAsSymbol,l=void 0!==c&&c,p={minimumIntegerDigits:i,minimumFractionDigits:s,maximumFractionDigits:a,style:dt[n].toLowerCase()};return n==dt.Currency&&(p.currency=u,p.currencyDisplay=l?"symbol":"code"),new Intl.NumberFormat(e,p).format(t)},t}(),yt=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,mt={yMMMdjms:g(m([v("year",1),y("month",3),v("day",1),v("hour",1),v("minute",1),v("second",1)])),yMdjm:g(m([v("year",1),v("month",1),v("day",1),v("hour",1),v("minute",1)])),yMMMMEEEEd:g(m([v("year",1),y("month",4),y("weekday",4),v("day",1)])),yMMMMd:g(m([v("year",1),y("month",4),v("day",1)])),yMMMd:g(m([v("year",1),y("month",3),v("day",1)])),yMd:g(m([v("year",1),v("month",1),v("day",1)])),jms:g(m([v("hour",1),v("second",1),v("minute",1)])),jm:g(m([v("hour",1),v("minute",1)]))},gt={yyyy:g(v("year",4)),yy:g(v("year",2)),y:g(v("year",1)),MMMM:g(y("month",4)),MMM:g(y("month",3)),MM:g(v("month",2)),M:g(v("month",1)),LLLL:g(y("month",4)),L:g(y("month",1)),dd:g(v("day",2)),d:g(v("day",1)),HH:c(p(g(d(v("hour",2),!1)))),H:p(g(d(v("hour",1),!1))),hh:c(p(g(d(v("hour",2),!0)))),h:p(g(d(v("hour",1),!0))),jj:g(v("hour",2)),j:g(v("hour",1)),mm:c(g(v("minute",2))),m:g(v("minute",1)),ss:c(g(v("second",2))),s:g(v("second",1)),sss:g(v("second",3)),EEEE:g(y("weekday",4)),EEE:g(y("weekday",3)),EE:g(y("weekday",2)),E:g(y("weekday",1)),a:l(g(d(v("hour",1),!0))),Z:f("short"),z:f("long"),ww:g({}),w:g({}),G:g(y("era",1)),GG:g(y("era",2)),GGG:g(y("era",3)),GGGG:g(y("era",4))},_t=new Map,bt=function(){function t(){}return t.format=function(t,e,n){return _(n,t,e)},t}(),wt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Ct=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return void 0===n&&(n=null),w(t,this._locale,e,dt.Decimal,n)},t}();Ct.decorators=[{type:e.Pipe,args:[{name:"number"}]}],Ct.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Et=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return void 0===n&&(n=null),w(t,this._locale,e,dt.Percent,n)},t}();Et.decorators=[{type:e.Pipe,args:[{name:"percent"}]}],Et.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var St=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,r,o){return void 0===n&&(n="USD"),void 0===r&&(r=!1),void 0===o&&(o=null),w(t,this._locale,e,dt.Currency,o,n,r)},t}();St.decorators=[{type:e.Pipe,args:[{name:"currency"}]}],St.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var xt=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Pt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){void 0===n&&(n="mediumDate");var r;if(S(e)||e!==e)return null;if("string"==typeof e&&(e=e.trim()),x(e))r=e;else if(E(e))r=new Date(parseFloat(e));else if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var o=e.split("-").map(function(t){return parseInt(t,10)}),i=o[0],s=o[1],u=o[2];r=new Date(i,s-1,u)}else r=new Date(e);if(!x(r)){var c=void 0;if("string"!=typeof e||!(c=e.match(xt)))throw a(t,e);r=P(c)}return bt.format(r,this._locale,t._ALIASES[n]||n)},t}();Pt._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},Pt.decorators=[{type:e.Pipe,args:[{name:"date",pure:!0}]}],Pt.ctorParameters=function(){return[{type:void 0,decorators:[{type:e.Inject,args:[e.LOCALE_ID]}]}]};var Tt=/#/g,At=function(){function t(t){this._localization=t}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||null===n)throw a(t,n);var r=o(e,Object.keys(n),this._localization);return n[r].replace(Tt,e.toString())},t}();At.decorators=[{type:e.Pipe,args:[{name:"i18nPlural",pure:!0}]}],At.ctorParameters=function(){return[{type:U}]};var Ot=function(){function t(){}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw a(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""},t}();Ot.decorators=[{type:e.Pipe,args:[{name:"i18nSelect",pure:!0}]}],Ot.ctorParameters=function(){return[]};var Mt=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t}();Mt.decorators=[{type:e.Pipe,args:[{name:"json",pure:!1}]}],Mt.ctorParameters=function(){return[]};var Rt=function(){function t(){}return t.prototype.transform=function(e,n,r){if(null==e)return e;if(!this.supports(e))throw a(t,e);return e.slice(n,r)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t}();Rt.decorators=[{type:e.Pipe,args:[{name:"slice",pure:!1}]}],Rt.ctorParameters=function(){return[]};var kt=[lt,ft,pt,Mt,Rt,Ct,Et,ht,St,Pt,At,Ot],It=function(){function t(){}return t}();It.decorators=[{type:e.NgModule,args:[{declarations:[it,kt],exports:[it,kt],providers:[{provide:U,useClass:H}]}]}],It.ctorParameters=function(){return[]};var Nt="browser",Dt="server",jt="browserWorkerApp",Lt="browserWorkerUi",Vt=new e.Version("4.0.0");t.NgLocaleLocalization=H,t.NgLocalization=U,t.CommonModule=It,t.NgClass=q,t.NgFor=Q,t.NgForOf=W,t.NgForOfContext=G,t.NgIf=X,t.NgIfContext=$,t.NgPlural=et,t.NgPluralCase=nt,t.NgStyle=rt,t.NgSwitch=Y,t.NgSwitchCase=J,t.NgSwitchDefault=tt,t.NgTemplateOutlet=ot,t.NgComponentOutlet=z,t.AsyncPipe=lt,t.DatePipe=Pt,t.I18nPluralPipe=At,t.I18nSelectPipe=Ot,t.JsonPipe=Mt,t.LowerCasePipe=pt,t.CurrencyPipe=St,t.DecimalPipe=Ct,t.PercentPipe=Et,t.SlicePipe=Rt,t.UpperCasePipe=ft,t.TitleCasePipe=ht,t.ɵPLATFORM_BROWSER_ID=Nt,t.ɵPLATFORM_SERVER_ID=Dt,t.ɵPLATFORM_WORKER_APP_ID=jt,t.ɵPLATFORM_WORKER_UI_ID=Lt,t.isPlatformBrowser=A,t.isPlatformServer=O,t.isPlatformWorkerApp=M,t.isPlatformWorkerUi=R,t.VERSION=Vt,t.PlatformLocation=I,t.LOCATION_INITIALIZED=N,t.LocationStrategy=D,t.APP_BASE_HREF=j,t.HashLocationStrategy=V,t.PathLocationStrategy=F,t.Location=L,t.ɵa=it,t.ɵb=kt,Object.defineProperty(t,"__esModule",{value:!0})})}(),function(){var o=t.amdDefine;!function(t,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/common"),e("@angular/core")):"function"==typeof o&&o.amd?o("6",["exports","5","3"],i):i((t.ng=t.ng||{},t.ng.platformBrowser=t.ng.platformBrowser||{}),t.ng.common,t.ng.core)}(this,function(t,e,n){"use strict";function r(){return L}function o(t){L||(L=t)}function i(){return W||(W=document.querySelector("base"))?W.getAttribute("href"):null}function s(t){return z||(z=document.createElement("a")),z.setAttribute("href",t),"/"===z.pathname.charAt(0)?z.pathname:"/"+z.pathname}function a(t,e){e=encodeURIComponent(e);for(var n=0,r=t.split(";");n<r.length;n++){var o=r[n],i=o.indexOf("="),s=i==-1?[o,""]:[o.slice(0,i),o.slice(i+1)],a=s[0],u=s[1];if(a.trim()===e)return decodeURIComponent(u)}return null}function u(t,e,n){for(var r=e.split("."),o=t;r.length>1;){var i=r.shift();o=o.hasOwnProperty(i)&&null!=o[i]?o[i]:o[i]={}}void 0!==o&&null!==o||(o={}),o[r.shift()]=n}function c(){return!!window.history.pushState}function l(t,e){var n=function(){var n=r(),o=Array.prototype.slice.apply(n.querySelectorAll(e,"style[ng-transition]"));o.filter(function(e){return n.getAttribute(e,"ng-transition")===t}).forEach(function(t){return n.remove(t)})};return n}function p(t){return n.getDebugNode(t)}function h(t,e){var o=(t||[]).concat(e||[]);return r().setGlobalVar(et,p),r().setGlobalVar(nt,n.ɵmerge(tt,f(o||[]))),function(){return p}}function f(t){return t.reduce(function(t,e){return t[e.name]=e.token,t},{})}function d(t){return dt.replace(pt,t)}function v(t){return ft.replace(pt,t)}function y(t,e,n){for(var r=0;r<e.length;r++){var o=e[r];Array.isArray(o)?y(t,o,n):(o=o.replace(pt,t),n.push(o))}return n}function m(t){return function(e){var n=t(e);n===!1&&(e.preventDefault(),e.returnValue=!1)}}function g(t,e){if(t.charCodeAt(0)===mt)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}function _(t){return t=String(t),t.match(At)||t.match(Ot)?t:(n.isDevMode()&&r().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function b(t){return t=String(t),t.split(",").map(function(t){return _(t.trim())}).join(", ")}function w(){if(Mt)return Mt;Rt=r();var t=Rt.createElement("template");if("content"in t)return t;var e=Rt.createHtmlDocument();if(Mt=Rt.querySelector(e,"body"),null==Mt){var n=Rt.createElement("html",e);Mt=Rt.createElement("body",e),Rt.appendChild(n,Mt),Rt.appendChild(e,n)}return Mt}function C(t){for(var e={},n=0,r=t.split(",");n<r.length;n++){var o=r[n];e[o]=!0}return e}function E(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n={},r=0,o=t;r<o.length;r++){var i=o[r];for(var s in i)i.hasOwnProperty(s)&&(n[s]=!0)}return n}function S(t,e){if(e&&Rt.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+Rt.getOuterHTML(t));return e}function x(t){return t.replace(/&/g,"&amp;").replace(zt,function(t){var e=t.charCodeAt(0),n=t.charCodeAt(1);return"&#"+(1024*(e-55296)+(n-56320)+65536)+";"}).replace(Gt,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function P(t){Rt.attributeMap(t).forEach(function(e,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||Rt.removeAttribute(t,n)});for(var e=0,n=Rt.childNodesAsList(t);e<n.length;e++){var r=n[e];Rt.isElementNode(r)&&P(r)}}function T(t,e){try{var r=w(),o=e?String(e):"",i=5,s=o;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,o=s,Rt.setInnerHTML(r,o),t.documentMode&&P(r),s=Rt.getInnerHTML(r)}while(o!==s);for(var a=new qt,u=a.sanitizeChildren(Rt.getTemplateContent(r)||r),c=Rt.getTemplateContent(r)||r,l=0,p=Rt.childNodesAsList(c);l<p.length;l++){var h=p[l];Rt.removeChild(c,h)}return n.isDevMode()&&a.sanitizedSomething&&Rt.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),u}catch(t){throw Mt=null,t}}function A(t){for(var e=!0,n=!0,r=0;r<t.length;r++){var o=t.charAt(r);"'"===o&&n?e=!e:'"'===o&&e&&(n=!n)}return e&&n}function O(t){if(t=String(t).trim(),!t)return"";var e=t.match(Jt);return e&&_(e[1])===e[1]||t.match(Yt)&&A(t)?t:(n.isDevMode()&&r().log("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}function M(){G.makeCurrent(),Y.init()}function R(){return new n.ErrorHandler}function k(){return document}function I(t){return r().setGlobalVar(ve,new de(t)),t}function N(){r().setGlobalVar(ve,null)}var D,j=function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},L=null,V=function(){function t(){this.resourceLoaderType=null}return t.prototype.hasProperty=function(t,e){},t.prototype.setProperty=function(t,e,n){},t.prototype.getProperty=function(t,e){},t.prototype.invoke=function(t,e,n){},t.prototype.logError=function(t){},t.prototype.log=function(t){},t.prototype.logGroup=function(t){},t.prototype.logGroupEnd=function(){},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t.prototype.contains=function(t,e){},t.prototype.parse=function(t){},t.prototype.querySelector=function(t,e){},t.prototype.querySelectorAll=function(t,e){},t.prototype.on=function(t,e,n){},t.prototype.onAndCancel=function(t,e,n){},t.prototype.dispatchEvent=function(t,e){},t.prototype.createMouseEvent=function(t){},t.prototype.createEvent=function(t){},t.prototype.preventDefault=function(t){},t.prototype.isPrevented=function(t){},t.prototype.getInnerHTML=function(t){},t.prototype.getTemplateContent=function(t){},t.prototype.getOuterHTML=function(t){},t.prototype.nodeName=function(t){},t.prototype.nodeValue=function(t){},t.prototype.type=function(t){},t.prototype.content=function(t){},t.prototype.firstChild=function(t){},t.prototype.nextSibling=function(t){},t.prototype.parentElement=function(t){},t.prototype.childNodes=function(t){},t.prototype.childNodesAsList=function(t){},t.prototype.clearNodes=function(t){},t.prototype.appendChild=function(t,e){},t.prototype.removeChild=function(t,e){},t.prototype.replaceChild=function(t,e,n){},t.prototype.remove=function(t){},t.prototype.insertBefore=function(t,e,n){},t.prototype.insertAllBefore=function(t,e,n){},t.prototype.insertAfter=function(t,e,n){},t.prototype.setInnerHTML=function(t,e){},t.prototype.getText=function(t){},t.prototype.setText=function(t,e){},t.prototype.getValue=function(t){},t.prototype.setValue=function(t,e){},t.prototype.getChecked=function(t){},t.prototype.setChecked=function(t,e){},t.prototype.createComment=function(t){},t.prototype.createTemplate=function(t){},t.prototype.createElement=function(t,e){},t.prototype.createElementNS=function(t,e,n){},t.prototype.createTextNode=function(t,e){},t.prototype.createScriptTag=function(t,e,n){},t.prototype.createStyleElement=function(t,e){},t.prototype.createShadowRoot=function(t){},t.prototype.getShadowRoot=function(t){},t.prototype.getHost=function(t){},t.prototype.getDistributedNodes=function(t){},t.prototype.clone=function(t){},t.prototype.getElementsByClassName=function(t,e){},t.prototype.getElementsByTagName=function(t,e){},t.prototype.classList=function(t){},t.prototype.addClass=function(t,e){},t.prototype.removeClass=function(t,e){},t.prototype.hasClass=function(t,e){},t.prototype.setStyle=function(t,e,n){},t.prototype.removeStyle=function(t,e){},t.prototype.getStyle=function(t,e){},t.prototype.hasStyle=function(t,e,n){},t.prototype.tagName=function(t){},t.prototype.attributeMap=function(t){},t.prototype.hasAttribute=function(t,e){},t.prototype.hasAttributeNS=function(t,e,n){},t.prototype.getAttribute=function(t,e){},t.prototype.getAttributeNS=function(t,e,n){},t.prototype.setAttribute=function(t,e,n){},t.prototype.setAttributeNS=function(t,e,n,r){},t.prototype.removeAttribute=function(t,e){},t.prototype.removeAttributeNS=function(t,e,n){},t.prototype.templateAwareRoot=function(t){},t.prototype.createHtmlDocument=function(){},t.prototype.getBoundingClientRect=function(t){},t.prototype.getTitle=function(t){},t.prototype.setTitle=function(t,e){},t.prototype.elementMatches=function(t,e){},t.prototype.isTemplateElement=function(t){},t.prototype.isTextNode=function(t){},t.prototype.isCommentNode=function(t){},t.prototype.isElementNode=function(t){},t.prototype.hasShadowRoot=function(t){},t.prototype.isShadowRoot=function(t){},t.prototype.importIntoDoc=function(t){},t.prototype.adoptNode=function(t){},t.prototype.getHref=function(t){},t.prototype.getEventKey=function(t){},t.prototype.resolveAndSetHref=function(t,e,n){},t.prototype.supportsDOMEvents=function(){},t.prototype.supportsNativeShadowDOM=function(){},t.prototype.getGlobalEventTarget=function(t,e){},t.prototype.getHistory=function(){},t.prototype.getLocation=function(){},t.prototype.getBaseHref=function(t){},t.prototype.resetBaseElement=function(){},t.prototype.getUserAgent=function(){},t.prototype.setData=function(t,e,n){},t.prototype.getComputedStyle=function(t){},t.prototype.getData=function(t,e){},t.prototype.setGlobalVar=function(t,e){},t.prototype.supportsWebAnimation=function(){},t.prototype.performanceNow=function(){},t.prototype.getAnimationPrefix=function(){},t.prototype.getTransitionEnd=function(){},t.prototype.supportsAnimation=function(){},t.prototype.supportsCookies=function(){},t.prototype.getCookie=function(t){},t.prototype.setCookie=function(t,e){},t}(),F=function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],o=0;o<r.length;o++)if(null!=e.getStyle(n,r[o]+"AnimationName")){e._animationPrefix="-"+r[o].toLowerCase()+"-";break}var i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(i).forEach(function(t){null!=e.getStyle(n,t)&&(e._transitionEnd=i[t])})}catch(t){e._animationPrefix=null,e._transitionEnd=null}return e}return j(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,n){t.href=null==n?e:e+"/../"+n},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},e}(V),U={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},H=3,B={"\b":"Backspace","\t":"Tab","":"Delete","":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},q={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","":"NumLock"};n.ɵglobal.Node&&(D=n.ɵglobal.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var z,G=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){o(new e)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){t[e].apply(t,n)},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return U},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return D.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=document.createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&t instanceof HTMLTemplateElement?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r<e.length;r++)n[r]=e[r];return n},e.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},e.prototype.appendChild=function(t,e){t.appendChild(e)},e.prototype.removeChild=function(t,e){t.removeChild(e)},e.prototype.replaceChild=function(t,e,n){t.replaceChild(e,n)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.insertBefore=function(t,e,n){t.insertBefore(n,e)},e.prototype.insertAllBefore=function(t,e,n){n.forEach(function(n){return t.insertBefore(n,e)})},e.prototype.insertAfter=function(t,e,n){t.insertBefore(n,e.nextSibling)},e.prototype.setInnerHTML=function(t,e){t.innerHTML=e},e.prototype.getText=function(t){return t.textContent},e.prototype.setText=function(t,e){t.textContent=e},e.prototype.getValue=function(t){return t.value},e.prototype.setValue=function(t,e){t.value=e},e.prototype.getChecked=function(t){return t.checked},e.prototype.setChecked=function(t,e){t.checked=e},e.prototype.createComment=function(t){return document.createComment(t)},e.prototype.createTemplate=function(t){var e=document.createElement("template");return e.innerHTML=t,e},e.prototype.createElement=function(t,e){return void 0===e&&(e=document),e.createElement(t)},e.prototype.createElementNS=function(t,e,n){return void 0===n&&(n=document),n.createElementNS(t,e)},e.prototype.createTextNode=function(t,e){return void 0===e&&(e=document),e.createTextNode(t)},e.prototype.createScriptTag=function(t,e,n){void 0===n&&(n=document);var r=n.createElement("SCRIPT");return r.setAttribute(t,e),r},e.prototype.createStyleElement=function(t,e){void 0===e&&(e=document);var n=e.createElement("style");return this.appendChild(n,this.createTextNode(t)),n},e.prototype.createShadowRoot=function(t){return t.createShadowRoot()},e.prototype.getShadowRoot=function(t){return t.shadowRoot},e.prototype.getHost=function(t){return t.host},e.prototype.clone=function(t){return t.cloneNode(!0)},e.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},e.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},e.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},e.prototype.addClass=function(t,e){t.classList.add(e)},e.prototype.removeClass=function(t,e){t.classList.remove(e)},e.prototype.hasClass=function(t,e){return t.classList.contains(e)},e.prototype.setStyle=function(t,e,n){t.style[e]=n},e.prototype.removeStyle=function(t,e){t.style[e]=""},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.hasStyle=function(t,e,n){void 0===n&&(n=null);var r=this.getStyle(t,e)||"";return n?r==n:r.length>0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r<n.length;r++){var o=n[r];e.set(o.name,o.value)}return e},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.hasAttributeNS=function(t,e,n){return t.hasAttributeNS(e,n)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)},e.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},e.prototype.setAttributeNS=function(t,e,n,r){t.setAttributeNS(e,n,r)},e.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},e.prototype.removeAttributeNS=function(t,e,n){t.removeAttributeNS(e,n)},e.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},e.prototype.getTitle=function(t){return document.title},e.prototype.setTitle=function(t,e){document.title=e||""},e.prototype.elementMatches=function(t,e){return t instanceof HTMLElement&&(t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e))},e.prototype.isTemplateElement=function(t){return t instanceof HTMLElement&&"TEMPLATE"==t.nodeName},e.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},e.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},e.prototype.adoptNode=function(t){return document.adoptNode(t)},e.prototype.getHref=function(t){return t.href},e.prototype.getEventKey=function(t){var e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),t.location===H&&q.hasOwnProperty(e)&&(e=q[e]))}return B[e]||e},e.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?document:"body"===e?document.body:void 0},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(t){var e=i();return null==e?null:s(e)},e.prototype.resetBaseElement=function(){W=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.setData=function(t,e,n){this.setAttribute(t,"data-"+e,n)},e.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},e.prototype.getComputedStyle=function(t){return getComputedStyle(t)},e.prototype.setGlobalVar=function(t,e){u(n.ɵglobal,t,e)},e.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return a(document.cookie,t)},e.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},e}(F),W=null,K=new n.InjectionToken("DocumentToken"),Q=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return j(e,t),e.prototype._init=function(){this._location=r().getLocation(),this._history=r().getHistory()},Object.defineProperty(e.prototype,"location",{get:function(){return this._location},enumerable:!0,configurable:!0}),e.prototype.getBaseHrefFromDOM=function(){return r().getBaseHref(this._doc)},e.prototype.onPopState=function(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1);
  },Object.defineProperty(e.prototype,"pathname",{get:function(){return this._location.pathname},set:function(t){this._location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this._location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this._location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){c()?this._history.pushState(t,e,n):this._location.hash=n},e.prototype.replaceState=function(t,e,n){c()?this._history.replaceState(t,e,n):this._location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e}(e.PlatformLocation);Q.decorators=[{type:n.Injectable}],Q.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[K]}]}]};var X=function(){function t(t){this._doc=t,this._dom=r()}return t.prototype.addTag=function(t,e){return void 0===e&&(e=!1),t?this._getOrCreateElement(t,e):null},t.prototype.addTags=function(t,e){var n=this;return void 0===e&&(e=!1),t?t.reduce(function(t,r){return r&&t.push(n._getOrCreateElement(r,e)),t},[]):[]},t.prototype.getTag=function(t){return t?this._dom.querySelector(this._doc,"meta["+t+"]"):null},t.prototype.getTags=function(t){if(!t)return[];var e=this._dom.querySelectorAll(this._doc,"meta["+t+"]");return e?[].slice.call(e):[]},t.prototype.updateTag=function(t,e){if(!t)return null;e=e||this._parseSelector(t);var n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)},t.prototype.removeTag=function(t){this.removeTagElement(this.getTag(t))},t.prototype.removeTagElement=function(t){t&&this._dom.remove(t)},t.prototype._getOrCreateElement=function(t,e){if(void 0===e&&(e=!1),!e){var n=this._parseSelector(t),r=this.getTag(n);if(r&&this._containsAttributes(t,r))return r}var o=this._dom.createElement("meta");this._setMetaElementAttributes(t,o);var i=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(i,o),o},t.prototype._setMetaElementAttributes=function(t,e){var n=this;return Object.keys(t).forEach(function(r){return n._dom.setAttribute(e,r,t[r])}),e},t.prototype._parseSelector=function(t){var e=t.name?"name":"property";return e+'="'+t[e]+'"'},t.prototype._containsAttributes=function(t,e){var n=this;return Object.keys(t).every(function(r){return n._dom.getAttribute(e,r)===t[r]})},t}();X.decorators=[{type:n.Injectable}],X.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[K]}]}]};var $=new n.InjectionToken("TRANSITION_ID"),Z=[{provide:n.APP_INITIALIZER,useFactory:l,deps:[$,K],multi:!0}],Y=function(){function t(){}return t.init=function(){n.setTestabilityGetter(new t)},t.prototype.addToWindow=function(t){n.ɵglobal.getAngularTestability=function(e,n){void 0===n&&(n=!0);var r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},n.ɵglobal.getAllAngularTestabilities=function(){return t.getAllTestabilities()},n.ɵglobal.getAllAngularRootElements=function(){return t.getAllRootElements()};var e=function(t){var e=n.ɵglobal.getAllAngularTestabilities(),r=e.length,o=!1,i=function(e){o=o||e,r--,0==r&&t(o)};e.forEach(function(t){t.whenStable(i)})};n.ɵglobal.frameworkStabilizers||(n.ɵglobal.frameworkStabilizers=[]),n.ɵglobal.frameworkStabilizers.push(e)},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var o=t.getTestability(e);return null!=o?o:n?r().isShadowRoot(e)?this.findTestabilityInTree(t,r().getHost(e),!0):this.findTestabilityInTree(t,r().parentElement(e),!0):null},t}(),J=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return r().getTitle(this._doc)},t.prototype.setTitle=function(t){r().setTitle(this._doc,t)},t}();J.decorators=[{type:n.Injectable}],J.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[K]}]}]};var tt={ApplicationRef:n.ApplicationRef,NgZone:n.NgZone},et="ng.probe",nt="ng.coreTokens",rt=function(){function t(t,e){this.name=t,this.token=e}return t}(),ot=[{provide:n.APP_INITIALIZER,useFactory:h,deps:[[rt,new n.Optional],[n.NgProbeToken,new n.Optional]],multi:!0}],it=new n.InjectionToken("EventManagerPlugins"),st=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=n}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){var r=this._findPluginFor(e);return r.addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){var r=this._findPluginFor(e);return r.addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r<n.length;r++){var o=n[r];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error("No event manager plugin found for event "+t)},t}();st.decorators=[{type:n.Injectable}],st.ctorParameters=function(){return[{type:Array,decorators:[{type:n.Inject,args:[it]}]},{type:n.NgZone}]};var at=function(){function t(t){this._doc=t}return t.prototype.supports=function(t){},t.prototype.addEventListener=function(t,e,n){},t.prototype.addGlobalEventListener=function(t,e,n){var o=r().getGlobalEventTarget(this._doc,t);if(!o)throw new Error("Unsupported event target "+o+" for event "+e);return this.addEventListener(o,e,n)},t}(),ut=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))}),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(t){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t}();ut.decorators=[{type:n.Injectable}],ut.ctorParameters=function(){return[]};var ct=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return j(e,t),e.prototype._addStylesToHost=function(t,e){var n=this;t.forEach(function(t){var r=n._doc.createElement("style");r.textContent=t,n._styleNodes.add(e.appendChild(r))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes.delete(t)},e.prototype.onStylesAdded=function(t){var e=this;this._hostNodes.forEach(function(n){return e._addStylesToHost(t,n)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return r().remove(t)})},e}(ut);ct.decorators=[{type:n.Injectable}],ct.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[K]}]}]};var lt={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},pt=/%COMP%/g,ht="%COMP%",ft="_nghost-"+ht,dt="_ngcontent-"+ht,vt=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new yt(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case n.ViewEncapsulation.Emulated:var r=this.rendererByCompId.get(e.id);return r||(r=new gt(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,r)),r.applyToHost(t),r;case n.ViewEncapsulation.Native:return new _t(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var o=y(e.id,e.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t}();vt.decorators=[{type:n.Injectable}],vt.ctorParameters=function(){return[{type:st},{type:ct}]};var yt=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(lt[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t){var e="string"==typeof t?document.querySelector(t):t;if(!e)throw new Error('The selector "'+t+'" did not match any elements');return e.textContent="",e},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,r){if(r){e=r+":"+e;var o=lt[r];o?t.setAttributeNS(o,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var r=lt[n];r?t.removeAttributeNS(r,e):t.removeAttribute(n+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,r,o){o&n.RendererStyleFlags2.DashCase?t.style.setProperty(e,r,o&n.RendererStyleFlags2.Important?"important":""):t.style[e]=r},t.prototype.removeStyle=function(t,e,r){r&n.RendererStyleFlags2.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){g(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return g(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,m(n)):this.eventManager.addEventListener(t,e,m(n))},t}(),mt="@".charCodeAt(0),gt=function(t){function e(e,n,r){var o=t.call(this,e)||this;o.component=r;var i=y(r.id,r.styles,[]);return n.addStyles(i),o.contentAttr=d(r.id),o.hostAttr=v(r.id),o}return j(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var r=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,r,this.contentAttr,""),r},e}(yt),_t=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;i.sharedStylesHost=n,i.hostEl=r,i.component=o,i.shadowRoot=r.createShadowRoot(),i.sharedStylesHost.addHost(i.shadowRoot);for(var s=y(o.id,o.styles,[]),a=0;a<s.length;a++){var u=document.createElement("style");u.textContent=s[a],i.shadowRoot.appendChild(u)}return i}return j(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,r){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,r)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(yt),bt=function(t){function e(e){return t.call(this,e)||this}return j(e,t),e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,n){return t.addEventListener(e,n,!1),function(){return t.removeEventListener(e,n,!1)}},e}(at);bt.decorators=[{type:n.Injectable}],bt.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[K]}]}]};var wt={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},Ct=new n.InjectionToken("HammerGestureConfig"),Et=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var e=new Hammer(t);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(var n in this.overrides)e.get(n).set(this.overrides[n]);return e},t}();Et.decorators=[{type:n.Injectable}],Et.ctorParameters=function(){return[]};var St=function(t){function e(e,n){var r=t.call(this,e)||this;return r._config=n,r}return j(e,t),e.prototype.supports=function(t){if(!wt.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+t+" event");return!0},e.prototype.addEventListener=function(t,e,n){var r=this,o=this.manager.getZone();return e=e.toLowerCase(),o.runOutsideAngular(function(){var i=r._config.buildHammer(t),s=function(t){o.runGuarded(function(){n(t)})};return i.on(e,s),function(){return i.off(e,s)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e}(at);St.decorators=[{type:n.Injectable}],St.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[K]}]},{type:Et,decorators:[{type:n.Inject,args:[Ct]}]}]};var xt=["alt","control","meta","shift"],Pt={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Tt=function(t){function e(e){return t.call(this,e)||this}return j(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,o){var i=e.parseEventName(n),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return r().onAndCancel(t,i.domEventName,s)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=e._normalizeKey(n.pop()),i="";if(xt.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=o,0!=n.length||0===o.length)return null;var s={};return s.domEventName=r,s.fullKey=i,s},e.getEventFullKey=function(t){var e="",n=r().getEventKey(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),xt.forEach(function(r){if(r!=n){var o=Pt[r];o(t)&&(e+=r+".")}}),e+=n},e.eventCallback=function(t,n,r){return function(o){e.getEventFullKey(o)===t&&r.runGuarded(function(){return n(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(at);Tt.decorators=[{type:n.Injectable}],Tt.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[K]}]}]};var At=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,Ot=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,Mt=null,Rt=null,kt=C("area,br,col,hr,img,wbr"),It=C("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Nt=C("rp,rt"),Dt=E(Nt,It),jt=E(It,C("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Lt=E(Nt,C("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Vt=E(kt,jt,Lt,Dt),Ft=C("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ut=C("srcset"),Ht=C("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Bt=E(Ft,Ut,Ht),qt=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(Rt.isElementNode(e)?this.startElement(e):Rt.isTextNode(e)?this.chars(Rt.nodeValue(e)):this.sanitizedSomething=!0,Rt.firstChild(e))e=Rt.firstChild(e);else for(;e;){Rt.isElementNode(e)&&this.endElement(e);var n=S(e,Rt.nextSibling(e));if(n){e=n;break}e=S(e,Rt.parentElement(e))}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,n=Rt.nodeName(t).toLowerCase();return Vt.hasOwnProperty(n)?(this.buf.push("<"),this.buf.push(n),Rt.attributeMap(t).forEach(function(t,n){var r=n.toLowerCase();return Bt.hasOwnProperty(r)?(Ft[r]&&(t=_(t)),Ut[r]&&(t=b(t)),e.buf.push(" "),e.buf.push(n),e.buf.push('="'),e.buf.push(x(t)),void e.buf.push('"')):void(e.sanitizedSomething=!0)}),void this.buf.push(">")):void(this.sanitizedSomething=!0)},t.prototype.endElement=function(t){var e=Rt.nodeName(t).toLowerCase();Vt.hasOwnProperty(e)&&!kt.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(x(t))},t}(),zt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Gt=/([^\#-~ |!])/g,Wt="[-,.\"'%_!# a-zA-Z0-9]+",Kt="(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?",Qt="(?:rgb|hsl)a?",Xt="(?:repeating-)?(?:linear|radial)-gradient",$t="(?:calc|attr)",Zt="\\([-0-9.%, #a-zA-Z]+\\)",Yt=new RegExp("^("+Wt+"|"+("(?:"+Kt+"|"+Qt+"|"+Xt+"|"+$t+")")+(Zt+")$"),"g"),Jt=/^url\(([^)]+)\)$/,te=function(){function t(){}return t.prototype.sanitize=function(t,e){},t.prototype.bypassSecurityTrustHtml=function(t){},t.prototype.bypassSecurityTrustStyle=function(t){},t.prototype.bypassSecurityTrustScript=function(t){},t.prototype.bypassSecurityTrustUrl=function(t){},t.prototype.bypassSecurityTrustResourceUrl=function(t){},t}(),ee=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return j(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case n.SecurityContext.NONE:return e;case n.SecurityContext.HTML:return e instanceof re?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),T(this._doc,String(e)));case n.SecurityContext.STYLE:return e instanceof oe?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),O(e));case n.SecurityContext.SCRIPT:if(e instanceof ie)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case n.SecurityContext.URL:return e instanceof ae||e instanceof se?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),_(String(e)));case n.SecurityContext.RESOURCE_URL:if(e instanceof ae)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof ne)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new re(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new oe(t)},e.prototype.bypassSecurityTrustScript=function(t){return new ie(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new se(t)},e.prototype.bypassSecurityTrustResourceUrl=function(t){return new ae(t)},e}(te);ee.decorators=[{type:n.Injectable}],ee.ctorParameters=function(){return[{type:void 0,decorators:[{type:n.Inject,args:[K]}]}]};var ne=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.getTypeName=function(){},t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),re=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(ne),oe=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"Style"},e}(ne),ie=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"Script"},e}(ne),se=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"URL"},e}(ne),ae=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return j(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(ne),ue=[{provide:n.PLATFORM_ID,useValue:e.ɵPLATFORM_BROWSER_ID},{provide:n.PLATFORM_INITIALIZER,useValue:M,multi:!0},{provide:e.PlatformLocation,useClass:Q},{provide:K,useFactory:k,deps:[]}],ce=[{provide:n.Sanitizer,useExisting:te},{provide:te,useClass:ee}],le=n.createPlatformFactory(n.platformCore,"browser",ue),pe=function(){function t(t){if(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 t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:n.APP_ID,useValue:e.appId},{provide:$,useExisting:n.APP_ID},Z]}},t}();pe.decorators=[{type:n.NgModule,args:[{providers:[ce,{provide:n.ErrorHandler,useFactory:R,deps:[]},{provide:it,useClass:bt,multi:!0},{provide:it,useClass:Tt,multi:!0},{provide:it,useClass:St,multi:!0},{provide:Ct,useClass:Et},vt,{provide:n.RendererFactory2,useExisting:vt},{provide:ut,useExisting:ct},ct,n.Testability,st,ot,X,J],exports:[e.CommonModule,n.ApplicationModule]}]}],pe.ctorParameters=function(){return[{type:pe,decorators:[{type:n.Optional},{type:n.SkipSelf}]}]};var he="undefined"!=typeof window&&window||{},fe=function(){function t(t,e){this.msPerTick=t,this.numTicks=e}return t}(),de=function(){function t(t){this.appRef=t.injector.get(n.ApplicationRef)}return t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n="Change Detection",o=null!=he.console.profile;e&&o&&he.console.profile(n);for(var i=r().performanceNow(),s=0;s<5||r().performanceNow()-i<500;)this.appRef.tick(),s++;var a=r().performanceNow();e&&o&&he.console.profileEnd(n);var u=(a-i)/s;return he.console.log("ran "+s+" change detection cycles"),he.console.log(u.toFixed(2)+" ms per check"),new fe(u,s)},t}(),ve="ng.profiler",ye=function(){function t(){}return t.all=function(){return function(t){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement&&r().elementMatches(e.nativeElement,t)}},t.directive=function(t){return function(e){return e.providerTokens.indexOf(t)!==-1}},t}(),me=new n.Version("4.0.0");t.BrowserModule=pe,t.platformBrowser=le,t.Meta=X,t.Title=J,t.disableDebugTools=N,t.enableDebugTools=I,t.By=ye,t.NgProbeToken=rt,t.DOCUMENT=K,t.EVENT_MANAGER_PLUGINS=it,t.EventManager=st,t.HAMMER_GESTURE_CONFIG=Ct,t.HammerGestureConfig=Et,t.DomSanitizer=te,t.VERSION=me,t.ɵBROWSER_SANITIZATION_PROVIDERS=ce,t.ɵINTERNAL_BROWSER_PLATFORM_PROVIDERS=ue,t.ɵinitDomAdapter=M,t.ɵBrowserDomAdapter=G,t.ɵsetValueOnPath=u,t.ɵBrowserPlatformLocation=Q,t.ɵTRANSITION_ID=$,t.ɵBrowserGetTestability=Y,t.ɵELEMENT_PROBE_PROVIDERS=ot,t.ɵDomAdapter=V,t.ɵgetDOM=r,t.ɵsetRootDomAdapter=o,t.ɵDomRendererFactory2=vt,t.ɵNAMESPACE_URIS=lt,t.ɵflattenStyles=y,t.ɵshimContentAttribute=d,t.ɵshimHostAttribute=v,t.ɵDomEventsPlugin=bt,t.ɵHammerGesturesPlugin=St,t.ɵKeyEventsPlugin=Tt,t.ɵDomSharedStylesHost=ct,t.ɵSharedStylesHost=ut,t.ɵb=k,t.ɵa=R,t.ɵh=F,t.ɵg=Z,t.ɵf=l,t.ɵc=h,t.ɵd=at,t.ɵe=ee,Object.defineProperty(t,"__esModule",{value:!0})})}(),function(){var o=t.amdDefine;!function(t,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("@angular/core"),e("rxjs/Observable"),e("@angular/platform-browser")):"function"==typeof o&&o.amd?o("29",["exports","3","a","6"],i):i((t.ng=t.ng||{},t.ng.http=t.ng.http||{}),t.ng.core,t.Rx,t.ng.platformBrowser)}(this,function(t,e,n,r){"use strict";function o(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return m.Get;case"POST":return m.Post;case"PUT":return m.Put;case"DELETE":return m.Delete;case"OPTIONS":return m.Options;case"HEAD":return m.Head;case"PATCH":return m.Patch}throw new Error('Invalid request method. The method "'+t+'" is not supported.')}function i(t){return"responseURL"in t?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):void 0}function s(t){for(var e=new Uint16Array(t.length),n=0,r=t.length;n<r;n++)e[n]=t.charCodeAt(n);return e.buffer}function a(t){void 0===t&&(t="");var e=new Map;if(t.length>0){var n=t.split("&");n.forEach(function(t){var n=t.indexOf("="),r=n==-1?[t,""]:[t.slice(0,n),t.slice(n+1)],o=r[0],i=r[1],s=e.get(o)||[];s.push(i),e.set(o,s)})}return e}function u(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function c(){var t="object"==typeof window?window:{};return null===D&&(D=t[N]={}),D}function l(t,e){return t.createConnection(e).response}function p(t,e,n,r){var o=t;return e?o.merge(new K({method:e.method||n,url:e.url||r,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType})):o.merge(new K({method:n,url:r}))}function h(){return new G}function f(t,e){return new et(t,e)}function d(t,e){return new nt(t,e)}var v=function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},y=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}();y.decorators=[{type:e.Injectable}],y.ctorParameters=function(){return[]};var m={};m.Get=0,m.Post=1,m.Put=2,m.Delete=3,m.Options=4,m.Head=5,m.Patch=6,m[m.Get]="Get",m[m.Post]="Post",m[m.Put]="Put",m[m.Delete]="Delete",m[m.Options]="Options",m[m.Head]="Head",m[m.Patch]="Patch";var g={};g.Unsent=0,g.Open=1,g.HeadersReceived=2,g.Loading=3,g.Done=4,g.Cancelled=5,g[g.Unsent]="Unsent",g[g.Open]="Open",g[g.HeadersReceived]="HeadersReceived",g[g.Loading]="Loading",g[g.Done]="Done",g[g.Cancelled]="Cancelled";var _={};_.Basic=0,_.Cors=1,_.Default=2,_.Error=3,_.Opaque=4,_[_.Basic]="Basic",_[_.Cors]="Cors",_[_.Default]="Default",_[_.Error]="Error",_[_.Opaque]="Opaque";var b={};b.NONE=0,b.JSON=1,b.FORM=2,b.FORM_DATA=3,b.TEXT=4,b.BLOB=5,b.ARRAY_BUFFER=6,b[b.NONE]="NONE",b[b.JSON]="JSON",b[b.FORM]="FORM",b[b.FORM_DATA]="FORM_DATA",b[b.TEXT]="TEXT",b[b.BLOB]="BLOB",b[b.ARRAY_BUFFER]="ARRAY_BUFFER";var w={};w.Text=0,w.Json=1,w.ArrayBuffer=2,w.Blob=3,w[w.Text]="Text",w[w.Json]="Json",w[w.ArrayBuffer]="ArrayBuffer",w[w.Blob]="Blob";var C=function(){function t(e){var n=this;if(this._headers=new Map,this._normalizedNames=new Map,e)return e instanceof t?void e.forEach(function(t,e){t.forEach(function(t){return n.append(e,t)})}):void Object.keys(e).forEach(function(t){var r=Array.isArray(e[t])?e[t]:[e[t]];n.delete(t),r.forEach(function(e){return n.append(t,e)})})}return t.fromResponseHeaderString=function(e){var n=new t;return e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var r=t.slice(0,e),o=t.slice(e+1).trim();n.set(r,o)}}),n},t.prototype.append=function(t,e){var n=this.getAll(t);null===n?this.set(t,e):n.push(e)},t.prototype.delete=function(t){var e=t.toLowerCase();this._normalizedNames.delete(e),this._headers.delete(e)},t.prototype.forEach=function(t){var e=this;this._headers.forEach(function(n,r){return t(n,e._normalizedNames.get(r),e._headers)})},t.prototype.get=function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null},t.prototype.has=function(t){return this._headers.has(t.toLowerCase())},t.prototype.keys=function(){return Array.from(this._normalizedNames.values())},t.prototype.set=function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)},t.prototype.values=function(){return Array.from(this._headers.values())},t.prototype.toJSON=function(){var t=this,e={};return this._headers.forEach(function(n,r){var o=[];n.forEach(function(t){return o.push.apply(o,t.split(","))}),e[t._normalizedNames.get(r)]=o}),e},t.prototype.getAll=function(t){return this.has(t)?this._headers.get(t.toLowerCase()):null},t.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},t.prototype.mayBeSetNormalizedName=function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)},t}(),E=function(){function t(t){var e=void 0===t?{}:t,n=e.body,r=e.status,o=e.headers,i=e.statusText,s=e.type,a=e.url;this.body=null!=n?n:null,this.status=null!=r?r:null,this.headers=null!=o?o:null,this.statusText=null!=i?i:null,this.type=null!=s?s:null,this.url=null!=a?a:null}return t.prototype.merge=function(e){return new t({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})},t}(),S=function(t){function e(){return t.call(this,{status:200,statusText:"Ok",type:_.Default,headers:new C})||this}return v(e,t),e}(E);S.decorators=[{type:e.Injectable}],S.ctorParameters=function(){return[]};var x=function(){function t(){}return t.prototype.createConnection=function(t){},t}(),P=function(){function t(){}return t}(),T=function(){function t(){}return t.prototype.configureRequest=function(t){},t}(),A=function(t){return t>=200&&t<300},O=function(){function t(){}return t.prototype.encodeKey=function(t){return u(t)},t.prototype.encodeValue=function(t){return u(t)},t}(),M=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new O),this.rawParams=t,this.queryEncoder=e,this.paramsMap=a(t)}return t.prototype.clone=function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e},t.prototype.has=function(t){return this.paramsMap.has(t)},t.prototype.get=function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null},t.prototype.getAll=function(t){return this.paramsMap.get(t)||[]},t.prototype.set=function(t,e){if(void 0===e||null===e)return void this.delete(t);var n=this.paramsMap.get(t)||[];n.length=0,n.push(e),this.paramsMap.set(t,n)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0,r.push(t[0]),e.paramsMap.set(n,r)})},t.prototype.append=function(t,e){if(void 0!==e&&null!==e){var n=this.paramsMap.get(t)||[];n.push(e),this.paramsMap.set(t,n)}},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){for(var r=e.paramsMap.get(n)||[],o=0;o<t.length;++o)r.push(t[o]);e.paramsMap.set(n,r)})},t.prototype.replaceAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0;for(var o=0;o<t.length;++o)r.push(t[o]);e.paramsMap.set(n,r)})},t.prototype.toString=function(){var t=this,e=[];return this.paramsMap.forEach(function(n,r){n.forEach(function(n){return e.push(t.queryEncoder.encodeKey(r)+"="+t.queryEncoder.encodeValue(n))})}),e.join("&")},t.prototype.delete=function(t){this.paramsMap.delete(t)},t}(),R=function(){function t(){}return t.prototype.json=function(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body},t.prototype.text=function(){return this._body instanceof M?this._body.toString():this._body instanceof ArrayBuffer?String.fromCharCode.apply(null,new Uint16Array(this._body)):null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()},t.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:s(this.text())},t.prototype.blob=function(){if(this._body instanceof Blob)return this._body;if(this._body instanceof ArrayBuffer)return new Blob([this._body]);throw new Error("The request body isn't either a blob or an array buffer")},t}(),k=function(t){function e(e){var n=t.call(this)||this;return n._body=e.body,n.status=e.status,n.ok=n.status>=200&&n.status<=299,n.statusText=e.statusText,n.headers=e.headers,
  n.type=e.type,n.url=e.url,n}return v(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(R),I=0,N="__ng_jsonp__",D=null,j=function(){function t(){}return t.prototype.build=function(t){var e=document.createElement("script");return e.src=t,e},t.prototype.nextRequestID=function(){return"__req"+I++},t.prototype.requestCallback=function(t){return N+"."+t+".finished"},t.prototype.exposeConnection=function(t,e){var n=c();n[t]=e},t.prototype.removeConnection=function(t){var e=c();e[t]=null},t.prototype.send=function(t){document.body.appendChild(t)},t.prototype.cleanup=function(t){t.parentNode&&t.parentNode.removeChild(t)},t}();j.decorators=[{type:e.Injectable}],j.ctorParameters=function(){return[]};var L="JSONP injected script did not invoke callback.",V="JSONP requests must use GET request method.",F=function(){function t(){}return t.prototype.finished=function(t){},t}(),U=function(t){function e(e,r,o){var i=t.call(this)||this;if(i._dom=r,i.baseResponseOptions=o,i._finished=!1,e.method!==m.Get)throw new TypeError(V);return i.request=e,i.response=new n.Observable(function(t){i.readyState=g.Loading;var n=i._id=r.nextRequestID();r.exposeConnection(n,i);var s=r.requestCallback(i._id),a=e.url;a.indexOf("=JSONP_CALLBACK&")>-1?a=a.replace("=JSONP_CALLBACK&","="+s+"&"):a.lastIndexOf("=JSONP_CALLBACK")===a.length-"=JSONP_CALLBACK".length&&(a=a.substring(0,a.length-"=JSONP_CALLBACK".length)+("="+s));var u=i._script=r.build(a),c=function(e){if(i.readyState!==g.Cancelled){if(i.readyState=g.Done,r.cleanup(u),!i._finished){var n=new E({body:L,type:_.Error,url:a});return o&&(n=o.merge(n)),void t.error(new k(n))}var s=new E({body:i._responseData,url:a});i.baseResponseOptions&&(s=i.baseResponseOptions.merge(s)),t.next(new k(s)),t.complete()}},l=function(e){if(i.readyState!==g.Cancelled){i.readyState=g.Done,r.cleanup(u);var n=new E({body:e.message,type:_.Error});o&&(n=o.merge(n)),t.error(new k(n))}};return u.addEventListener("load",c),u.addEventListener("error",l),r.send(u),function(){i.readyState=g.Cancelled,u.removeEventListener("load",c),u.removeEventListener("error",l),i._dom.cleanup(u)}}),i}return v(e,t),e.prototype.finished=function(t){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==g.Cancelled&&(this._responseData=t)},e}(F),H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),e}(x),B=function(t){function e(e,n){var r=t.call(this)||this;return r._browserJSONP=e,r._baseResponseOptions=n,r}return v(e,t),e.prototype.createConnection=function(t){return new U(t,this._browserJSONP,this._baseResponseOptions)},e}(H);B.decorators=[{type:e.Injectable}],B.ctorParameters=function(){return[{type:j},{type:E}]};var q=/^\)\]\}',?\n/,z=function(){function t(t,e,r){var o=this;this.request=t,this.response=new n.Observable(function(n){var s=e.build();s.open(m[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(s.withCredentials=t.withCredentials);var a=function(){var e=1223===s.status?204:s.status,o=null;204!==e&&(o="undefined"==typeof s.response?s.responseText:s.response,"string"==typeof o&&(o=o.replace(q,""))),0===e&&(e=o?200:0);var a=C.fromResponseHeaderString(s.getAllResponseHeaders()),u=i(s)||t.url,c=s.statusText||"OK",l=new E({body:o,status:e,headers:a,statusText:c,url:u});null!=r&&(l=r.merge(l));var p=new k(l);return p.ok=A(e),p.ok?(n.next(p),void n.complete()):void n.error(p)},u=function(t){var e=new E({body:t,type:_.Error,status:s.status,statusText:s.statusText});null!=r&&(e=r.merge(e)),n.error(new k(e))};if(o.setDetectedContentType(t,s),null==t.headers&&(t.headers=new C),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return s.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=s.responseType)switch(t.responseType){case w.ArrayBuffer:s.responseType="arraybuffer";break;case w.Json:s.responseType="json";break;case w.Text:s.responseType="text";break;case w.Blob:s.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return s.addEventListener("load",a),s.addEventListener("error",u),s.send(o.request.getBody()),function(){s.removeEventListener("load",a),s.removeEventListener("error",u),s.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case b.NONE:break;case b.JSON:e.setRequestHeader("content-type","application/json");break;case b.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case b.TEXT:e.setRequestHeader("content-type","text/plain");break;case b.BLOB:var n=t.blob();n.type&&e.setRequestHeader("content-type",n.type)}},t}(),G=function(){function t(t,e){void 0===t&&(t="XSRF-TOKEN"),void 0===e&&(e="X-XSRF-TOKEN"),this._cookieName=t,this._headerName=e}return t.prototype.configureRequest=function(t){var e=r.ɵgetDOM().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),W=function(){function t(t,e,n){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=n}return t.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new z(t,this._browserXHR,this._baseResponseOptions)},t}();W.decorators=[{type:e.Injectable}],W.ctorParameters=function(){return[{type:y},{type:E},{type:T}]};var K=function(){function t(t){var e=void 0===t?{}:t,n=e.method,r=e.headers,i=e.body,s=e.url,a=e.search,u=e.params,c=e.withCredentials,l=e.responseType;this.method=null!=n?o(n):null,this.headers=null!=r?r:null,this.body=null!=i?i:null,this.url=null!=s?s:null,this.params=this._mergeSearchParams(u||a),this.withCredentials=null!=c?c:null,this.responseType=null!=l?l:null}return Object.defineProperty(t.prototype,"search",{get:function(){return this.params},set:function(t){this.params=t},enumerable:!0,configurable:!0}),t.prototype.merge=function(e){return new t({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new C(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,params:e&&this._mergeSearchParams(e.params||e.search),withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})},t.prototype._mergeSearchParams=function(t){return t?t instanceof M?t.clone():"string"==typeof t?new M(t):this._parseParams(t):this.params},t.prototype._parseParams=function(t){var e=this;void 0===t&&(t={});var n=new M;return Object.keys(t).forEach(function(r){var o=t[r];Array.isArray(o)?o.forEach(function(t){return e._appendParam(r,t,n)}):e._appendParam(r,o,n)}),n},t.prototype._appendParam=function(t,e,n){"string"!=typeof e&&(e=JSON.stringify(e)),n.append(t,e)},t}(),Q=function(t){function e(){return t.call(this,{method:m.Get,headers:new C})||this}return v(e,t),e}(K);Q.decorators=[{type:e.Injectable}],Q.ctorParameters=function(){return[]};var X=function(t){function e(e){var n=t.call(this)||this,r=e.url;if(n.url=e.url,e.params){var i=e.params.toString();if(i.length>0){var s="?";n.url.indexOf("?")!=-1&&(s="&"==n.url[n.url.length-1]?"":"&"),n.url=r+s+i}}return n._body=e.body,n.method=o(e.method),n.headers=new C(e.headers),n.contentType=n.detectContentType(),n.withCredentials=e.withCredentials,n.responseType=e.responseType,n}return v(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return b.JSON;case"application/x-www-form-urlencoded":return b.FORM;case"multipart/form-data":return b.FORM_DATA;case"text/plain":case"text/html":return b.TEXT;case"application/octet-stream":return this._body instanceof tt?b.ARRAY_BUFFER:b.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?b.NONE:this._body instanceof M?b.FORM:this._body instanceof Y?b.FORM_DATA:this._body instanceof J?b.BLOB:this._body instanceof tt?b.ARRAY_BUFFER:this._body&&"object"==typeof this._body?b.JSON:b.TEXT},e.prototype.getBody=function(){switch(this.contentType){case b.JSON:return this.text();case b.FORM:return this.text();case b.FORM_DATA:return this._body;case b.TEXT:return this.text();case b.BLOB:return this.blob();case b.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(R),$=function(){},Z="object"==typeof window?window:$,Y=Z.FormData||$,J=Z.Blob||$,tt=Z.ArrayBuffer||$,et=function(){function t(t,e){this._backend=t,this._defaultOptions=e}return t.prototype.request=function(t,e){var n;if("string"==typeof t)n=l(this._backend,new X(p(this._defaultOptions,e,m.Get,t)));else{if(!(t instanceof X))throw new Error("First argument must be a url string or Request instance.");n=l(this._backend,t)}return n},t.prototype.get=function(t,e){return this.request(new X(p(this._defaultOptions,e,m.Get,t)))},t.prototype.post=function(t,e,n){return this.request(new X(p(this._defaultOptions.merge(new K({body:e})),n,m.Post,t)))},t.prototype.put=function(t,e,n){return this.request(new X(p(this._defaultOptions.merge(new K({body:e})),n,m.Put,t)))},t.prototype.delete=function(t,e){return this.request(new X(p(this._defaultOptions,e,m.Delete,t)))},t.prototype.patch=function(t,e,n){return this.request(new X(p(this._defaultOptions.merge(new K({body:e})),n,m.Patch,t)))},t.prototype.head=function(t,e){return this.request(new X(p(this._defaultOptions,e,m.Head,t)))},t.prototype.options=function(t,e){return this.request(new X(p(this._defaultOptions,e,m.Options,t)))},t}();et.decorators=[{type:e.Injectable}],et.ctorParameters=function(){return[{type:x},{type:K}]};var nt=function(t){function e(e,n){return t.call(this,e,n)||this}return v(e,t),e.prototype.request=function(t,e){var n;if("string"==typeof t&&(t=new X(p(this._defaultOptions,e,m.Get,t))),!(t instanceof X))throw new Error("First argument must be a url string or Request instance.");if(t.method!==m.Get)throw new Error("JSONP requests must use GET request method.");return n=l(this._backend,t)},e}(et);nt.decorators=[{type:e.Injectable}],nt.ctorParameters=function(){return[{type:x},{type:K}]};var rt=function(){function t(){}return t}();rt.decorators=[{type:e.NgModule,args:[{providers:[{provide:et,useFactory:f,deps:[W,K]},y,{provide:K,useClass:Q},{provide:E,useClass:S},W,{provide:T,useFactory:h}]}]}],rt.ctorParameters=function(){return[]};var ot=function(){function t(){}return t}();ot.decorators=[{type:e.NgModule,args:[{providers:[{provide:nt,useFactory:d,deps:[H,K]},j,{provide:K,useClass:Q},{provide:E,useClass:S},{provide:H,useClass:B}]}]}],ot.ctorParameters=function(){return[]};var it=new e.Version("4.0.0");t.BrowserXhr=y,t.JSONPBackend=H,t.JSONPConnection=F,t.CookieXSRFStrategy=G,t.XHRBackend=W,t.XHRConnection=z,t.BaseRequestOptions=Q,t.RequestOptions=K,t.BaseResponseOptions=S,t.ResponseOptions=E,t.ReadyState=g,t.RequestMethod=m,t.ResponseContentType=w,t.ResponseType=_,t.Headers=C,t.Http=et,t.Jsonp=nt,t.HttpModule=rt,t.JsonpModule=ot,t.Connection=P,t.ConnectionBackend=x,t.XSRFStrategy=T,t.Request=X,t.Response=k,t.QueryEncoder=O,t.URLSearchParams=M,t.VERSION=it,t.ɵg=j,t.ɵa=B,t.ɵf=R,t.ɵb=h,t.ɵc=f,t.ɵd=d,Object.defineProperty(t,"__esModule",{value:!0})})}(),t.registerDynamic("49",["30"],!0,function(t,e,n){"use strict";function r(t){var e=this;if(t||(o.root.Rx&&o.root.Rx.config&&o.root.Rx.config.Promise?t=o.root.Rx.config.Promise:o.root.Promise&&(t=o.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})}var o=(this||self,t("30"));return e.toPromise=r,n.exports}),t.registerDynamic("4a",["a","49"],!0,function(t,e,n){"use strict";var r=(this||self,t("a")),o=t("49");return r.Observable.prototype.toPromise=o.toPromise,n.exports}),t.registerDynamic("8",["a"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=t("a"),i=function(t){function e(e,n){t.call(this),this.error=e,this.scheduler=n}return r(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.error,n=t.subscriber;n.error(e)},e.prototype._subscribe=function(t){var n=this.error,r=this.scheduler;return r?r.schedule(e.dispatch,0,{error:n,subscriber:t}):void t.error(n)},e}(o.Observable);return e.ErrorObservable=i,n.exports}),t.registerDynamic("2b",["29","4a","3","8"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=t("29");t("4a");var s=t("3"),a=t("8"),u=function(){function t(t){this._http=t}return t.prototype.request=function(t){var e=this,n=t.method,r=void 0===n?"post":n,o=t.url,s=void 0===o?"":o,a=t.query,u=void 0===a?void 0:a,c=t.params,l=void 0===c?{}:c,p=t.header,h=void 0===p?{}:p;if("get"===r){var f=this._createOptions(l,h,i.RequestMethod.Get);return this._http.get(this._createUrl(s,u),f.options).map(function(t){return e._toJson(t)}).catch(this._handleError).toPromise()}var f=this._createOptions(l,h,i.RequestMethod.Post);return this._http.post(this._createUrl(s,u),f.body,f.options).map(function(t){return e._toJson(t)}).catch(this._handleError).toPromise()},t.prototype._createUrl=function(t,e){return t+=e?this._jsonToQueryString(e):""},t.prototype._jsonToQueryString=function(t){return"?"+Object.keys(t).map(function(e){return encodeURIComponent(e)+"="+encodeURIComponent(t[e])}).join("&")},t.prototype._createOptions=function(t,e,n){var r=new i.Headers(Object.assign({"Content-Type":"application/json"},e));return n===i.RequestMethod.Get?{body:"",options:new i.RequestOptions({body:"",search:t,method:n,headers:r})}:{body:JSON.stringify(t),options:new i.RequestOptions({method:n,headers:r})}},t.prototype._toJson=function(t){if(t&&t._body&&t._body.length>0)try{return t.json()}catch(e){return t._body}return{}},t.prototype._handleError=function(t){var e={url:t.url,status:t.status,statusText:t.statusText,message:t._body};return a.ErrorObservable.throw(e)},t}();return u=r([s.Injectable(),o("design:paramtypes",[i.Http])],u),e.RestfulService=u,n.exports}),t.registerDynamic("4b",["3","12","2b"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s}),o=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,"__esModule",{value:!0});var i=t("3"),s=t("12"),a=t("2b"),u=function(){function t(t,e){this.api=t,this.rest=e}return t.prototype.login=function(){var t=this,e={url:this.api.getConfig("login.request")};this.rest.request(e).then(function(e){return t.loginJson=e})},t.prototype.logout=function(){var t=this,e={url:this.api.getConfig("logout.request")};this.rest.request(e).then(function(e){return t.logoutJson=e})},t}();return u=r([i.Component({moduleId:n.id,selector:"stub-api",template:' \n        <h3> This is Stub Api sample page</h3>\n        <br>\n        <div (click)="login()" style="margin-left:30px;cursor:pointer;font-size:150%">login</div>\n        <br>\n        <div style="margin-left:30px;">{{loginJson | json}}</div>\n        <br>\n        <div (click)="logout()" style="margin-left:30px;cursor:pointer;font-size:150%">logout</div>\n        <br>\n        <div style="margin-left:30px;">{{logoutJson | json}}</div>\n    '}),o("design:paramtypes",[s.ApiConfig,a.RestfulService])],u),e.StubAPIComponent=u,n.exports}),t.registerDynamic("4c",["3","14","4b"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s});Object.defineProperty(e,"__esModule",{value:!0});var o=t("3"),i=t("14"),s=t("4b"),a=function(){function t(){}return t}();return a=r([o.NgModule({imports:[i.RouterModule.forChild([{path:"stubapi",component:s.StubAPIComponent}])],exports:[i.RouterModule]})],a),e.StubAPIRoutingModule=a,n.exports}),t.registerDynamic("4d",["3","5","4b","4c"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s});Object.defineProperty(e,"__esModule",{value:!0});var o=t("3"),i=t("5"),s=t("4b"),a=t("4c"),u=function(){function t(){}return t}();return u=r([o.NgModule({imports:[i.CommonModule,a.StubAPIRoutingModule],declarations:[s.StubAPIComponent],exports:[s.StubAPIComponent]})],u),e.StubAPIModule=u,n.exports}),t.registerDynamic("33",["a"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=t("a"),i=function(t){function e(e,n){t.call(this),this.value=e,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return r(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.done,n=t.value,r=t.subscriber;return e?void r.complete():(r.next(n),void(r.closed||(t.done=!0,this.schedule(t))))},e.prototype._subscribe=function(t){var n=this.value,r=this.scheduler;return r?r.schedule(e.dispatch,0,{done:!1,value:n,subscriber:t}):(t.next(n),void(t.closed||t.complete()))},e}(o.Observable);return e.ScalarObservable=i,n.exports}),t.registerDynamic("1f",["a"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=t("a"),i=function(t){function e(e){t.call(this),this.scheduler=e}return r(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){var e=t.subscriber;e.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;return n?n.schedule(e.dispatch,0,{subscriber:t}):void t.complete()},e}(o.Observable);return e.EmptyObservable=i,n.exports}),t.registerDynamic("3b",["a","33","1f","4e"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=t("a"),i=t("33"),s=t("1f"),a=t("4e"),u=function(t){function e(e,n){t.call(this),this.array=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){return new e(t,n)},e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];var r=t[t.length-1];a.isScheduler(r)?t.pop():r=null;var o=t.length;return o>1?new e(t,r):1===o?new i.ScalarObservable(t[0],r):new s.EmptyObservable(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,o=t.subscriber;return n>=r?void o.complete():(o.next(e[n]),void(o.closed||(t.index=n+1,this.schedule(t))))},e.prototype._subscribe=function(t){var n=0,r=this.array,o=r.length,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{array:r,index:n,count:o,subscriber:t});for(var s=0;s<o&&!t.closed;s++)t.next(r[s]);t.complete()},e}(o.Observable);return e.ArrayObservable=u,n.exports}),t.registerDynamic("22",["36"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=t("36"),i=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(o.Subscriber);return e.OuterSubscriber=i,n.exports}),t.registerDynamic("38",[],!0,function(t,e,n){"use strict";return this||self,e.isArrayLike=function(t){return t&&"number"==typeof t.length},n.exports}),t.registerDynamic("39",[],!0,function(t,e,n){"use strict";function r(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}return this||self,e.isPromise=r,n.exports}),t.registerDynamic("31",["30"],!0,function(t,e,n){"use strict";function r(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var o=Object.getOwnPropertyNames(r.prototype),i=0;i<o.length;++i){var s=o[i];if("entries"!==s&&"size"!==s&&r.prototype[s]===r.prototype.entries)return s}return"@@iterator"}var o=(this||self,t("30"));return e.symbolIteratorPonyfill=r,e.$$iterator=r(o.root),n.exports}),t.registerDynamic("4f",["36"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=t("36"),i=function(t){function e(e,n,r){t.call(this),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}return r(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(o.Subscriber);return e.InnerSubscriber=i,n.exports}),t.registerDynamic("21",["30","38","39","50","a","31","4f","3c"],!0,function(t,e,n){"use strict";function r(t,e,n,r){var h=new l.InnerSubscriber(t,n,r);if(h.closed)return null;if(e instanceof u.Observable)return e._isScalar?(h.next(e.value),h.complete(),null):e.subscribe(h);if(i.isArrayLike(e)){for(var f=0,d=e.length;f<d&&!h.closed;f++)h.next(e[f]);h.closed||h.complete()}else{if(s.isPromise(e))return e.then(function(t){h.closed||(h.next(t),h.complete())},function(t){return h.error(t)}).then(null,function(t){o.root.setTimeout(function(){throw t})}),h;if(e&&"function"==typeof e[c.$$iterator])for(var v=e[c.$$iterator]();;){var y=v.next();if(y.done){h.complete();break}if(h.next(y.value),h.closed)break}else if(e&&"function"==typeof e[p.$$observable]){var m=e[p.$$observable]();if("function"==typeof m.subscribe)return m.subscribe(new l.InnerSubscriber(t,n,r));h.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var g=a.isObject(e)?"an invalid object":"'"+e+"'",_="You provided "+g+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";h.error(new TypeError(_))}}return null}var o=(this||self,t("30")),i=t("38"),s=t("39"),a=t("50"),u=t("a"),c=t("31"),l=t("4f"),p=t("3c");return e.subscribeToResult=r,n.exports}),t.registerDynamic("46",["22","21"],!0,function(t,e,n){"use strict";function r(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),this.lift(new a(t))}var o=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),i=t("22"),s=t("21");e.mergeAll=r;var a=function(){function t(t){this.concurrent=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.concurrent))},t}();e.MergeAllOperator=a;var u=function(t){function e(e,n){t.call(this,e),this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0}return o(e,t),e.prototype._next=function(t){this.active<this.concurrent?(this.active++,this.add(s.subscribeToResult(this,t))):this.buffer.push(t)},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(i.OuterSubscriber);return e.MergeAllSubscriber=u,n.exports}),t.registerDynamic("4e",[],!0,function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}return this||self,e.isScheduler=r,n.exports}),t.registerDynamic("51",["a","3b","46","4e"],!0,function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return this.lift.call(o.apply(void 0,[this].concat(t)))}function o(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,o=t[t.length-1];return u.isScheduler(o)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof i.Observable?t[0]:new s.ArrayObservable(t,r).lift(new a.MergeAllOperator(n))}var i=(this||self,t("a")),s=t("3b"),a=t("46"),u=t("4e");return e.merge=r,e.mergeStatic=o,n.exports}),t.registerDynamic("52",["51"],!0,function(t,e,n){"use strict";var r=(this||self,t("51"));return e.merge=r.mergeStatic,n.exports}),t.registerDynamic("53",["2d","a","36","54"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=t("2d"),i=t("a"),s=t("36"),a=t("54"),u=function(t){function e(e,n){t.call(this),this.source=e,this.subjectFactory=n,this._refCount=0}return r(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(t=this._connection=new a.Subscription,t.add(this.source.subscribe(new c(this.getSubject(),this))),t.closed?(this._connection=null,t=a.Subscription.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return this.lift(new l(this))},e}(i.Observable);e.ConnectableObservable=u,e.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subscribe:{value:u.prototype._subscribe},getSubject:{value:u.prototype.getSubject},connect:{value:u.prototype.connect},refCount:{value:u.prototype.refCount}};var c=function(t){function e(e,n){t.call(this,e),this.connectable=n}return r(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(o.SubjectSubscriber),l=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new p(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),p=function(t){function e(e,n){t.call(this,e),this.connectable=n}return r(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(!t)return void(this.connection=null);this.connectable=null;var e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()},e}(s.Subscriber);return n.exports}),t.registerDynamic("55",["53"],!0,function(t,e,n){"use strict";function r(t,e){var n;if(n="function"==typeof t?t:function(){return t},"function"==typeof e)return this.lift(new i(n,e));var r=Object.create(this,o.connectableObservableDescriptor);return r.source=this,r.subjectFactory=n,r}var o=(this||self,t("53"));e.multicast=r;var i=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),o=n(r).subscribe(t);return o.add(e.subscribe(r)),o},t}();return e.MulticastOperator=i,n.exports}),t.registerDynamic("56",["55","2d"],!0,function(t,e,n){"use strict";function r(){return new s.Subject}function o(){return i.multicast.call(this,r).refCount()}var i=(this||self,t("55")),s=t("2d");return e.share=o,n.exports}),t.registerDynamic("57",["36","58","59"],!0,function(t,e,n){"use strict";function r(t,e,n){if(t){if(t instanceof o.Subscriber)return t;if(t[i.$$rxSubscriber])return t[i.$$rxSubscriber]()}return t||e||n?new o.Subscriber(t,e,n):new o.Subscriber(s.empty)}var o=(this||self,t("36")),i=t("58"),s=t("59");return e.toSubscriber=r,n.exports}),t.registerDynamic("3c",["30"],!0,function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}var o=(this||self,t("30"));return e.getSymbolObservable=r,e.$$observable=r(o.root),n.exports}),t.registerDynamic("a",["30","57","3c"],!0,function(t,e,n){"use strict";var r=(this||self,t("30")),o=t("57"),i=t("3c"),s=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,i=o.toSubscriber(t,e,n);if(r?r.call(i,this.source):i.add(this._trySubscribe(i)),i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?e=r.root.Rx.config.Promise:r.root.Promise&&(e=r.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var o=n.subscribe(function(e){if(o)try{t(e)}catch(t){r(t),o.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[i.$$observable]=function(){return this},t.create=function(e){return new t(e)},t}();return e.Observable=s,n.exports}),t.registerDynamic("59",[],!0,function(t,e,n){"use strict";return this||self,e.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}},n.exports}),t.registerDynamic("36",["5a","54","59","58"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=t("5a"),i=t("54"),s=t("59"),a=t("58"),u=function(t){function e(n,r,o){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!n){this.destination=s.empty;break}if("object"==typeof n){n instanceof e?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,n,r,o)}}return r(e,t),e.prototype[a.$$rxSubscriber]=function(){return this;
  },e.create=function(t,n,r){var o=new e(t,n,r);return o.syncErrorThrowable=!1,o},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,n=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=n,this},e}(i.Subscription);e.Subscriber=u;var c=function(t){function e(e,n,r,i){t.call(this),this._parentSubscriber=e;var s,a=this;o.isFunction(n)?s=n:n&&(a=n,s=n.next,r=n.error,i=n.complete,o.isFunction(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this)),this._context=a,this._next=s,this._error=r,this._complete=i}return r(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){if(!this.isStopped){var t=this._parentSubscriber;this._complete?t.syncErrorThrowable?(this.__tryOrSetError(t,this._complete),this.unsubscribe()):(this.__tryOrUnsub(this._complete),this.unsubscribe()):this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}},e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(u);return n.exports}),t.registerDynamic("2e",[],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);return e.ObjectUnsubscribedError=o,n.exports}),t.registerDynamic("20",[],!0,function(t,e,n){"use strict";return this||self,e.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length},n.exports}),t.registerDynamic("50",[],!0,function(t,e,n){"use strict";function r(t){return null!=t&&"object"==typeof t}return this||self,e.isObject=r,n.exports}),t.registerDynamic("5a",[],!0,function(t,e,n){"use strict";function r(t){return"function"==typeof t}return this||self,e.isFunction=r,n.exports}),t.registerDynamic("5b",["5c"],!0,function(t,e,n){"use strict";function r(){try{return i.apply(this,arguments)}catch(t){return s.errorObject.e=t,s.errorObject}}function o(t){return i=t,r}var i,s=(this||self,t("5c"));return e.tryCatch=o,n.exports}),t.registerDynamic("5c",[],!0,function(t,e,n){"use strict";return this||self,e.errorObject={e:{}},n.exports}),t.registerDynamic("5d",[],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=function(t){function e(e){t.call(this),this.errors=e;var n=Error.call(this,e?e.length+" errors occurred during unsubscription:\n  "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n  "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return r(e,t),e}(Error);return e.UnsubscriptionError=o,n.exports}),t.registerDynamic("54",["20","50","5a","5b","5c","5d"],!0,function(t,e,n){"use strict";function r(t){return t.reduce(function(t,e){return t.concat(e instanceof c.UnsubscriptionError?e.errors:e)},[])}var o=(this||self,t("20")),i=t("50"),s=t("5a"),a=t("5b"),u=t("5c"),c=t("5d"),l=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this,l=n._parent,p=n._parents,h=n._unsubscribe,f=n._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,v=p?p.length:0;l;)l.remove(this),l=++d<v&&p[d]||null;if(s.isFunction(h)){var y=a.tryCatch(h).call(this);y===u.errorObject&&(e=!0,t=t||(u.errorObject.e instanceof c.UnsubscriptionError?r(u.errorObject.e.errors):[u.errorObject.e]))}if(o.isArray(f))for(d=-1,v=f.length;++d<v;){var m=f[d];if(i.isObject(m)){var y=a.tryCatch(m.unsubscribe).call(m);if(y===u.errorObject){e=!0,t=t||[];var g=u.errorObject.e;g instanceof c.UnsubscriptionError?t=t.concat(r(g.errors)):t.push(g)}}}if(e)throw new c.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;n=new t,n._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}var o=this._subscriptions||(this._subscriptions=[]);return o.push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);n!==-1&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this,n=e._parent,r=e._parents;n&&n!==t?r?r.indexOf(t)===-1&&r.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();return e.Subscription=l,n.exports}),t.registerDynamic("5e",["54"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=t("54"),i=function(t){function e(e,n){t.call(this),this.subject=e,this.subscriber=n,this.closed=!1}return r(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);n!==-1&&e.splice(n,1)}}},e}(o.Subscription);return e.SubjectSubscription=i,n.exports}),t.registerDynamic("30",[],!0,function(t,e,n){"use strict";var r=this||self;if(e.root="object"==typeof window&&window.window===window&&window||"object"==typeof self&&self.self===self&&self||"object"==typeof r&&r.global===r&&r,!e.root)throw new Error("RxJS could not find any global context (window, self, global)");return n.exports}),t.registerDynamic("58",["30"],!0,function(t,e,n){"use strict";var r=(this||self,t("30")),o=r.root.Symbol;return e.$$rxSubscriber="function"==typeof o&&"function"==typeof o.for?o.for("rxSubscriber"):"@@rxSubscriber",n.exports}),t.registerDynamic("2d",["a","36","54","2e","5e","58"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=t("a"),i=t("36"),s=t("54"),a=t("2e"),u=t("5e"),c=t("58"),l=function(t){function e(e){t.call(this,e),this.destination=e}return r(e,t),e}(i.Subscriber);e.SubjectSubscriber=l;var p=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return r(e,t),e.prototype[c.$$rxSubscriber]=function(){return new l(this)},e.prototype.lift=function(t){var e=new h(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),o=0;o<n;o++)r[o].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new u.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new o.Observable;return t.source=this,t},e.create=function(t,e){return new h(t,e)},e}(o.Observable);e.Subject=p;var h=function(t){function e(e,n){t.call(this),this.destination=e,this.source=n}return r(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){var e=this.source;return e?this.source.subscribe(t):s.Subscription.EMPTY},e}(p);return e.AnonymousSubject=h,n.exports}),function(){var o=t.amdDefine;!function(t,i){"object"==typeof n&&"undefined"!=typeof r?i(n,e("rxjs/Observable"),e("rxjs/observable/merge"),e("rxjs/operator/share"),e("rxjs/Subject")):"function"==typeof o&&o.amd?o("3",["exports","a","52","56","2d"],i):i((t.ng=t.ng||{},t.ng.core=t.ng.core||{}),t.Rx,t.Rx.Observable,t.Rx.Observable.prototype,t.Rx)}(this,function(t,e,n,r,o){"use strict";function i(){if(!oo){var t=ro.Symbol;if(t&&t.iterator)oo=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(oo=r)}}return oo}function s(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function a(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function u(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return n===-1?e:e.substring(0,n)}function c(t){return"function"==typeof t&&t.hasOwnProperty("annotation")&&(t=t.annotation),t}function l(t,e){if(t===Object||t===String||t===Function||t===Number||t===Array)throw new Error("Can not use native "+u(t)+" as constructor");if("function"==typeof t)return t;if(Array.isArray(t)){var n=t,r=n.length-1,o=t[r];if("function"!=typeof o)throw new Error("Last position of Class method array must be Function in key "+e+" was '"+u(o)+"'");if(r!=o.length)throw new Error("Number of annotations ("+r+") does not match number of arguments ("+o.length+") in the function: "+u(o));for(var i=[],s=0,a=n.length-1;s<a;s++){var l=[];i.push(l);var p=n[s];if(Array.isArray(p))for(var h=0;h<p.length;h++)l.push(c(p[h]));else"function"==typeof p?l.push(c(p)):l.push(p)}return so.defineMetadata("parameters",i,o),o}throw new Error("Only Function or Array is supported in Class definition for key '"+e+"' is '"+u(t)+"'")}function p(t){var e=l(t.hasOwnProperty("constructor")?t.constructor:void 0,"constructor"),n=e.prototype;if(t.hasOwnProperty("extends")){if("function"!=typeof t.extends)throw new Error("Class definition 'extends' property must be a constructor function was: "+u(t.extends));e.prototype=n=Object.create(t.extends.prototype)}for(var r in t)"extends"!==r&&"prototype"!==r&&t.hasOwnProperty(r)&&(n[r]=l(t[r],r));this&&this.annotations instanceof Array&&so.defineMetadata("annotations",this.annotations,e);var o=e.name;return o&&"constructor"!==o||(e.overriddenName="class"+io++),e}function h(t,e,n,r){function o(t){if(!so||!so.getOwnMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof o)return i.call(this,t),this;var e=new o(t),n="function"==typeof this&&Array.isArray(this.annotations)?this.annotations:[];n.push(e);var s=function(t){var n=so.getOwnMetadata("annotations",t)||[];return n.push(e),so.defineMetadata("annotations",n,t),t};return s.annotations=n,s.Class=p,r&&r(s),s}void 0===r&&(r=null);var i=f([e]);return n&&(o.prototype=Object.create(n.prototype)),o.prototype.toString=function(){return"@"+t},o.annotationCls=o,o}function f(t){return function(){for(var e=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];t.forEach(function(t,r){var o=n[r];if(Array.isArray(t))e[t[0]]=void 0===o?t[1]:o;else for(var i in t)e[i]=o&&o.hasOwnProperty(i)?o[i]:t[i]})}}function d(t,e,n){function r(){function t(t,e,n){for(var r=so.getOwnMetadata("parameters",t)||[];r.length<=n;)r.push(null);return r[n]=r[n]||[],r[n].push(i),so.defineMetadata("parameters",r,t),t}for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof r)return o.apply(this,e),this;var i=new(r.bind.apply(r,[void 0].concat(e)));return t.annotation=i,t}var o=f(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function v(t,e,n){function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof r)return o.apply(this,t),this;var n=new(r.bind.apply(r,[void 0].concat(t)));return function(t,e){var r=so.getOwnMetadata("propMetadata",t.constructor)||{};r[e]=r.hasOwnProperty(e)&&r[e]||[],r[e].unshift(n),so.defineMetadata("propMetadata",r,t.constructor)}}var o=f(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function y(t){return null==t||t===vo.Default}function m(t){return t.__forward_ref__=m,t.toString=function(){return u(this())},t}function g(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===m?t():t}function _(t){return t[Bo]}function b(t){return t[qo]}function w(t){return t[zo]||C}function C(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,e)}function E(t,e){var n=t+" caused by: "+(e instanceof Error?e.message:e),r=Error(n);return r[qo]=e,r}function S(t){for(var e=[],n=0;n<t.length;++n){if(e.indexOf(t[n])>-1)return e.push(t[n]),e;e.push(t[n])}return e}function x(t){if(t.length>1){var e=S(t.slice().reverse()),n=e.map(function(t){return u(t.token)});return" ("+n.join(" -> ")+")"}return""}function P(t,e,n,r){var o=r?E("",r):Error();return o.addKey=T,o.keys=[e],o.injectors=[t],o.constructResolvingMessage=n,o.message=o.constructResolvingMessage(),o[qo]=r,o}function T(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage()}function A(t,e){return P(t,e,function(){var t=u(this.keys[0].token);return"No provider for "+t+"!"+x(this.keys)})}function O(t,e){return P(t,e,function(){return"Cannot instantiate cyclic dependency!"+x(this.keys)})}function M(t,e,n,r){return P(t,r,function(){var t=u(this.keys[0].token);return b(this).message+": Error during instantiation of "+t+"!"+x(this.keys)+"."},e)}function R(t){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t)}function k(t,e){for(var n=[],r=0,o=e.length;r<o;r++){var i=e[r];i&&0!=i.length?n.push(i.map(u).join(" ")):n.push("?")}return Error("Cannot resolve all parameters for '"+u(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+u(t)+"' is decorated with Injectable.")}function I(t){return Error("Index "+t+" is out-of-bounds.")}function N(t,e){return Error("Cannot mix multi providers and regular providers, got: "+t+" "+e)}function D(t){return"function"==typeof t}function j(t){return t?t.map(function(t){var e=t.type,n=e.annotationCls,r=t.args?t.args:[];return new(n.bind.apply(n,[void 0].concat(r)))}):[]}function L(t){var e=Object.getPrototypeOf(t.prototype),n=e?e.constructor:null;return n||Object}function V(t){var e,n;if(t.useClass){var r=g(t.useClass);e=ti.factory(r),n=z(r)}else t.useExisting?(e=function(t){return t},n=[ei.fromKey(Wo.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=q(t.useFactory,t.deps)):(e=function(){return t.useValue},n=ni);return new oi(e,n)}function F(t){return new ri(Wo.get(t.provide),[V(t)],t.multi)}function U(t){var e=B(t,[]),n=e.map(F),r=H(n,new Map);return Array.from(r.values())}function H(t,e){for(var n=0;n<t.length;n++){var r=t[n],o=e.get(r.key.id);if(o){if(r.multiProvider!==o.multiProvider)throw N(o,r);if(r.multiProvider)for(var i=0;i<r.resolvedFactories.length;i++)o.resolvedFactories.push(r.resolvedFactories[i]);else e.set(r.key.id,r)}else{var s=void 0;s=r.multiProvider?new ri(r.key,r.resolvedFactories.slice(),r.multiProvider):r,e.set(r.key.id,s)}}return e}function B(t,e){return t.forEach(function(t){if(t instanceof Xo)e.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)e.push(t);else{if(!(t instanceof Array))throw R(t);B(t,e)}}),e}function q(t,e){if(e){var n=e.map(function(t){return[t]});return e.map(function(e){return G(t,e,n)})}return z(t)}function z(t){var e=ti.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw k(t,e);return e.map(function(n){return G(t,n,e)})}function G(t,e,n){var r=null,o=!1;if(!Array.isArray(e))return e instanceof Ro?W(e.token,o,null):W(e,o,null);for(var i=null,s=0;s<e.length;++s){var a=e[s];a instanceof Xo?r=a:a instanceof Ro?r=a.token:a instanceof ko?o=!0:a instanceof No||a instanceof Do?i=a:a instanceof Jr&&(r=a)}if(r=g(r),null!=r)return W(r,o,i);throw k(t,n)}function W(t,e,n){return new ei(Wo.get(t),e,n)}function K(t,e){for(var n=new Array(t._providers.length),r=0;r<t._providers.length;++r)n[r]=e(t.getProviderAtIndex(r));return n}function Q(t){return!!t&&"function"==typeof t.then}function X(t){return!!t&&"function"==typeof t.subscribe}function $(t,e){for(var n={},r=0,o=Object.keys(t);r<o.length;r++){var i=o[r];n[i]=t[i]}for(var s=0,a=Object.keys(e);s<a.length;s++){var i=a[s];n[i]=e[i]}return n}function Z(){return""+Y()+Y()+Y()}function Y(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function J(){throw new Error("Runtime compiler is not loaded")}function tt(t){var e=Error("No component factory found for "+u(t)+". Did you add it to @NgModule.entryComponents?");return e[Si]=t,e}function et(){var t=ro.wtf;return!(!t||!(Ti=t.trace)||(Ai=Ti.events,0))}function nt(t,e){return void 0===e&&(e=null),Ai.createScope(t,e)}function rt(t,e){return Ti.leaveScope(t,e),e}function ot(t,e){return Ti.beginTimeRange(t,e)}function it(t){Ti.endTimeRange(t)}function st(t,e){return null}function at(t){Wi=t}function ut(){if(Qi)throw new Error("Cannot enable prod mode after platform setup.");Ki=!1}function ct(){return Qi=!0,Ki}function lt(t){if(zi&&!zi.destroyed&&!zi.injector.get(Xi,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");zi=t.get(Zi);var e=t.get(fi,null);return e&&e.forEach(function(t){return t()}),zi}function pt(t,e,n){void 0===n&&(n=[]);var r=new Jr("Platform: "+e);return function(e){void 0===e&&(e=[]);var o=dt();return o&&!o.injector.get(Xi,!1)||(t?t(n.concat(e).concat({provide:r,useValue:!0})):lt(si.resolveAndCreate(n.concat(e).concat({provide:r,useValue:!0})))),ht(r)}}function ht(t){var e=dt();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}function ft(){zi&&!zi.destroyed&&zi.destroy()}function dt(){return zi&&!zi.destroyed?zi:null}function vt(t,e){try{var n=e();return Q(n)?n.catch(function(e){throw t.handleError(e),e}):n}catch(e){throw t.handleError(e),e}}function yt(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function mt(t,e){var n=ls.get(t);if(n)throw new Error("Duplicate module registered for "+t+" - "+n.moduleType.name+" vs "+e.moduleType.name);ls.set(t,e)}function gt(t){var e=ls.get(t);if(!e)throw new Error("No module with ID "+t+" loaded");return e}function _t(t){return t.reduce(function(t,e){var n=Array.isArray(e)?_t(e):e;return t.concat(n)},[])}function bt(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}function wt(t){return t.map(function(t){return t.nativeElement})}function Ct(t,e,n){t.childNodes.forEach(function(t){t instanceof Ss&&(e(t)&&n.push(t),Ct(t,e,n))})}function Et(t,e,n){t instanceof Ss&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof Ss&&Et(t,e,n)})}function St(t){return xs.get(t)}function xt(t){xs.set(t.nativeNode,t)}function Pt(t){xs.delete(t.nativeNode)}function Tt(t,e){var n=At(t),r=At(e);if(n&&r)return Ot(t,e,Tt);var o=t&&("object"==typeof t||"function"==typeof t),i=e&&("object"==typeof e||"function"==typeof e);return!(n||!o||r||!i)||a(t,e)}function At(t){return!!Rt(t)&&(Array.isArray(t)||!(t instanceof Map)&&i()in t)}function Ot(t,e,n){for(var r=t[i()](),o=e[i()]();;){var s=r.next(),a=o.next();if(s.done&&a.done)return!0;if(s.done||a.done)return!1;if(!n(s.value,a.value))return!1}}function Mt(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var r=t[i()](),o=void 0;!(o=r.next()).done;)e(o.value)}function Rt(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function kt(t,e,n){var r=t.previousIndex;if(null===r)return r;var o=0;return n&&r<n.length&&(o=n[r]),r+e+o}function It(t){return t.name||typeof t}function Nt(){return ti}function Dt(t,e){return t.nodes[e]}function jt(t,e){return t.nodes[e]}function Lt(t,e){return t.nodes[e]}function Vt(t,e){return t.nodes[e]}function Ft(t,e){return t.nodes[e]}function Ut(t,e,n,r){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),Bt(o,t)}function Ht(t,e){return t instanceof Error||(t=new Error(t.toString())),qt(t,e),t}function Bt(t,e){var n=new Error(t);return qt(n,e),n}function qt(t,e){t[Bo]=e,t[zo]=e.logError.bind(e)}function zt(t){return!!_(t)}function Gt(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}function Wt(t){var e=ea.get(t);return e||(e=u(t)+"_"+ea.size,ea.set(t,e)),e}function Kt(t,e,n,r){if(r instanceof Ps){r=r.wrapped;var o=t.def.nodes[e].bindingIndex+n,i=t.oldValues[o];i instanceof Ps&&(i=i.wrapped),t.oldValues[o]=new Ps(i)}return r}function Qt(t){return{id:na,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}function Xt(t){if(t&&t.id===na){var e=null!=t.encapsulation&&t.encapsulation!==To.None||t.styles.length||Object.keys(t.data).length;e?t.id="c"+oa++:t.id=ra}return t&&t.id===ra&&(t=null),t}function $t(t,e,n,r){var o=t.oldValues;return!(!(1&t.state)&&a(o[e.bindingIndex+n],r))}function Zt(t,e,n,r){return!!$t(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function Yt(t,e,n,r){var o=t.oldValues[e.bindingIndex+n];if(1&t.state||!Tt(o,r))throw Ut(Js.createDebugContext(t,e.index),o,r,0!==(1&t.state))}function Jt(t){for(var e=t;e;)2&e.def.flags&&(e.state|=2),e=e.viewContainerParent||e.parent}function te(t,e,n,r){var o=t.def.nodes[e],i=16777216&o.flags?jt(t,e).componentView:t;return Jt(i),Js.handleEvent(t,e,n,r)}function ee(t){if(t.parent){var e=t.parent;return jt(e,t.parentNodeDef.index)}}function ne(t){var e=t.parent;return e?t.parentNodeDef.parent:null}function re(t,e){switch(100673535&e.flags){case 1:return jt(t,e.index).renderElement;case 2:return Dt(t,e.index).renderText}}function oe(t,e){return t?t+":"+e:e}function ie(t){return!!t.parent&&!!(16384&t.parentNodeDef.flags)}function se(t){return!(!t.parent||16384&t.parentNodeDef.flags)}function ae(t){return 1<<t%32}function ue(t){var e={},n=0,r={};return t&&t.forEach(function(t){var o=t[0],i=t[1];"number"==typeof o?(e[o]=i,n|=ae(o)):r[o]=i}),{matchedQueries:e,references:r,matchedQueryIds:n}}function ce(t,e,n){var r=n.renderParent;return r?0===(1&r.flags)||0===(16777216&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===To.Native?jt(t,n.renderParent.index).renderElement:void 0:e}function le(t){var e=ia.get(t);return e||(e=t(function(){return ta}),e.factory=t,ia.set(t,e)),e}function pe(t){var e=[];return he(t,0,void 0,void 0,e),e}function he(t,e,n,r,o){3===e&&(n=t.renderer.parentNode(re(t,t.def.lastRenderRootNode))),fe(t,e,0,t.def.nodes.length-1,n,r,o)}function fe(t,e,n,r,o,i,s){for(var a=n;a<=r;a++){var u=t.def.nodes[a];7&u.flags&&ve(t,u,e,o,i,s),a+=u.childCount}}function de(t,e,n,r,o,i){for(var s=t;s&&!ie(s);)s=s.parent;for(var a=s.parent,u=ne(s),c=u.index+1,l=u.index+u.childCount,p=c;p<=l;p++){var h=a.def.nodes[p];h.ngContentIndex===e&&ve(a,h,n,r,o,i),p+=h.childCount}if(!a.parent){var f=t.root.projectableNodes[e];if(f)for(var p=0;p<f.length;p++)ye(t,f[p],n,r,o,i)}}function ve(t,e,n,r,o,i){if(4&e.flags)de(t,e.ngContent.index,n,r,o,i);else{var s=re(t,e);if(3===n&&16777216&e.flags&&48&e.bindingFlags){if(16&e.bindingFlags&&ye(t,s,n,r,o,i),32&e.bindingFlags){var a=jt(t,e.index).componentView;ye(a,s,n,r,o,i)}}else ye(t,s,n,r,o,i);if(8388608&e.flags)for(var u=jt(t,e.index).viewContainer._embeddedViews,c=0;c<u.length;c++)he(u[c],n,r,o,i);1&e.flags&&!e.element.name&&fe(t,n,e.index+1,e.index+e.childCount,r,o,i)}}function ye(t,e,n,r,o,i){var s=t.renderer;switch(n){case 1:s.appendChild(r,e);break;case 2:s.insertBefore(r,e,o);break;case 3:s.removeChild(r,e);break;case 0:i.push(e)}}function me(t){if(":"===t[0]){var e=t.match(sa);return[e[1],e[2]]}return["",t]}function ge(t){for(var e=0,n=0;n<t.length;n++)e|=t[n].flags;return e}function _e(t,e){for(var n="",r=0;r<2*t;r+=2)n=n+e[r]+we(e[r+1]);return n+e[2*t]}function be(t,e,n,r,o,i,s,a,u,c,l,p,h,f,d,v,y,m,g,_){switch(t){case 1:return e+we(n)+r;case 2:return e+we(n)+r+we(o)+i;case 3:return e+we(n)+r+we(o)+i+we(s)+a;case 4:return e+we(n)+r+we(o)+i+we(s)+a+we(u)+c;case 5:return e+we(n)+r+we(o)+i+we(s)+a+we(u)+c+we(l)+p;case 6:return e+we(n)+r+we(o)+i+we(s)+a+we(u)+c+we(l)+p+we(h)+f;case 7:return e+we(n)+r+we(o)+i+we(s)+a+we(u)+c+we(l)+p+we(h)+f+we(d)+v;case 8:return e+we(n)+r+we(o)+i+we(s)+a+we(u)+c+we(l)+p+we(h)+f+we(d)+v+we(y)+m;case 9:return e+we(n)+r+we(o)+i+we(s)+a+we(u)+c+we(l)+p+we(h)+f+we(d)+v+we(y)+m+we(g)+_;default:throw new Error("Does not support more than 9 expressions")}}function we(t){return null!=t?t.toString():""}function Ce(t,e,n,r,o,i){o||(o=ta),t|=1;var s=ue(e),a=s.matchedQueries,u=s.references,c=s.matchedQueryIds,l=i?le(i):null;return{index:void 0,parent:void 0,renderParent:void 0,bindingIndex:void 0,outputIndex:void 0,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a,matchedQueryIds:c,references:u,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:void 0,name:void 0,attrs:void 0,template:l,componentProvider:void 0,componentView:void 0,componentRendererType:void 0,publicProviders:void 0,allProviders:void 0,handleEvent:o},provider:void 0,text:void 0,query:void 0,ngContent:void 0}}function Ee(t,e,n,r,o,i,s,a,u,c,l){void 0===i&&(i=[]),u||(u=ta);var p,h,f=ue(e),d=f.matchedQueries,v=f.references,y=f.matchedQueryIds;o&&(I=me(o),p=I[0],h=I[1]),s=s||[];for(var m=new Array(s.length),g=0;g<s.length;g++){var _=s[g],b=_[0],w=_[1],C=_[2],E=me(w),S=E[0],x=E[1],P=void 0,T=void 0;switch(15&b){case 4:T=C;break;case 1:case 8:P=C}m[g]={flags:b,ns:S,name:x,nonMinifiedName:x,securityContext:P,suffix:T}}a=a||[];for(var A=new Array(a.length),g=0;g<a.length;g++){var O=a[g],M=O[0],R=O[1];A[g]={type:0,target:M,eventName:R,propName:void 0}}i=i||[];var k=i.map(function(t){var e=t[0],n=t[1],r=me(e),o=r[0],i=r[1];return[o,i,n]});return l=Xt(l),c&&(t|=16777216),t|=1,{index:void 0,parent:void 0,renderParent:void 0,bindingIndex:void 0,outputIndex:void 0,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:y,references:v,ngContentIndex:n,childCount:r,bindings:m,bindingFlags:ge(m),outputs:A,element:{ns:p,name:h,attrs:k,template:void 0,componentProvider:void 0,componentView:c,componentRendererType:l,publicProviders:void 0,allProviders:void 0,handleEvent:u},provider:void 0,text:void 0,query:void 0,ngContent:void 0};var I}function Se(t,e,n){var r,o=n.element,i=t.root.selectorOrNode,s=t.renderer;if(t.parent||!i){r=o.name?s.createElement(o.name,o.ns):s.createComment("");var a=ce(t,e,n);a&&s.appendChild(a,r)}else r=s.selectRootElement(i);if(o.attrs)for(var u=0;u<o.attrs.length;u++){var c=o.attrs[u],l=c[0],p=c[1],h=c[2];s.setAttribute(r,p,h,l)}return r}function xe(t,e,n,r){for(var o=0;o<n.outputs.length;o++){var i=n.outputs[o],s=Pe(t,n.index,oe(i.target,i.eventName)),a=i.target,u=t;"component"===i.target&&(a=null,u=e);var c=u.renderer.listen(a||r,i.eventName,s);t.disposables[n.outputIndex+o]=c}}function Pe(t,e,n){return function(r){return te(t,e,n,r)}}function Te(t,e,n,r,o,i,s,a,u,c,l,p){var h=e.bindings.length,f=!1;return h>0&&Oe(t,e,0,n)&&(f=!0),h>1&&Oe(t,e,1,r)&&(f=!0),h>2&&Oe(t,e,2,o)&&(f=!0),h>3&&Oe(t,e,3,i)&&(f=!0),h>4&&Oe(t,e,4,s)&&(f=!0),h>5&&Oe(t,e,5,a)&&(f=!0),h>6&&Oe(t,e,6,u)&&(f=!0),h>7&&Oe(t,e,7,c)&&(f=!0),h>8&&Oe(t,e,8,l)&&(f=!0),h>9&&Oe(t,e,9,p)&&(f=!0),f}function Ae(t,e,n){for(var r=!1,o=0;o<n.length;o++)Oe(t,e,o,n[o])&&(r=!0);return r}function Oe(t,e,n,r){if(!Zt(t,e,n,r))return!1;var o=e.bindings[n],i=jt(t,e.index),s=i.renderElement,a=o.name;switch(15&o.flags){case 1:Me(t,o,s,o.ns,a,r);break;case 2:Re(t,s,a,r);break;case 4:ke(t,o,s,a,r);break;case 8:var u=16777216&e.flags&&32&o.flags?i.componentView:t;Ie(u,o,s,a,r)}return!0}function Me(t,e,n,r,o,i){var s=e.securityContext,a=s?t.root.sanitizer.sanitize(s,i):i;a=null!=a?a.toString():null;var u=t.renderer;null!=i?u.setAttribute(n,o,a,r):u.removeAttribute(n,o,r)}function Re(t,e,n,r){var o=t.renderer;r?o.addClass(e,n):o.removeClass(e,n)}function ke(t,e,n,r,o){var i=t.root.sanitizer.sanitize($s.STYLE,o);if(null!=i){i=i.toString();var s=e.suffix;null!=s&&(i+=s)}else i=null;var a=t.renderer;null!=i?a.setStyle(n,r,i):a.removeStyle(n,r)}function Ie(t,e,n,r,o){var i=e.securityContext,s=i?t.root.sanitizer.sanitize(i,o):o;t.renderer.setProperty(n,r,s)}function Ne(t,e){return{index:void 0,parent:void 0,renderParent:void 0,bindingIndex:void 0,outputIndex:void 0,flags:4,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:void 0,provider:void 0,text:void 0,query:void 0,ngContent:{index:e}}}function De(t,e,n){var r=ce(t,e,n);if(r){var o=n.ngContent.index;de(t,o,1,r,void 0,void 0)}}function je(t,e,n,r){var o=e.viewContainer._embeddedViews;null==n&&(n=o.length),r.viewContainerParent=t,He(o,n,r);var i=ee(r);if(i&&i!==e){var s=i.template._projectedViews;s||(s=i.template._projectedViews=[]),s.push(r)}Js.dirtyParentQueries(r);var a=n>0?o[n-1]:null;Fe(e,a,r)}function Le(t,e){var n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];r.viewContainerParent=void 0,Be(n,e);var o=ee(r);if(o&&o!==t){var i=o.template._projectedViews;Be(i,i.indexOf(r))}return Js.dirtyParentQueries(r),Ue(r),r}function Ve(t,e,n){var r=t.viewContainer._embeddedViews,o=r[e];Be(r,e),null==n&&(n=r.length),He(r,n,o),Js.dirtyParentQueries(o),Ue(o);var i=n>0?r[n-1]:null;return Fe(t,i,o),o}function Fe(t,e,n){var r=e?re(e,e.def.lastRenderRootNode):t.renderElement,o=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);
  he(n,2,o,i,void 0)}function Ue(t){he(t,3,null,null,void 0)}function He(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Be(t,e){e>=t.length-1?t.pop():t.splice(e,1)}function qe(t,e,n,r,o,i){return new la(t,e,n,r,o,i)}function ze(t){return t.viewDefFactory}function Ge(t,e,n){return new ha(t,e,n)}function We(t){return new fa(t)}function Ke(t,e){return new da(t,e)}function Qe(t,e){return new va(t,e)}function Xe(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=jt(t,n.index);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Dt(t,n.index).renderText;if(10120&n.flags)return Lt(t,n.index).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function $e(t){return new ya(t.renderer)}function Ze(t,e,n,r,o,i,s){var a=[];if(i)for(var u in i){var c=i[u],l=c[0],p=c[1];a[l]={flags:8,name:u,nonMinifiedName:p,ns:void 0,securityContext:void 0,suffix:void 0}}var h=[];if(s)for(var f in s)h.push({type:1,propName:f,target:null,eventName:s[f]});return t|=8192,tn(t,e,n,r,r,o,a,h)}function Ye(t,e,n){return t|=8,tn(t,null,0,e,e,n)}function Je(t,e,n,r,o){return tn(t,e,0,n,r,o)}function tn(t,e,n,r,o,i,s,a){var u=ue(e),c=u.matchedQueries,l=u.references,p=u.matchedQueryIds;a||(a=[]),s||(s=[]);var h=i.map(function(t){var e,n;return Array.isArray(t)?(n=t[0],e=t[1]):(n=0,e=t),{flags:n,token:e,tokenKey:Wt(e)}});return{index:void 0,parent:void 0,renderParent:void 0,bindingIndex:void 0,outputIndex:void 0,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:p,references:l,ngContentIndex:void 0,childCount:n,bindings:s,bindingFlags:ge(s),outputs:a,element:void 0,provider:{token:r,tokenKey:Wt(r),value:o,deps:h},text:void 0,query:void 0,ngContent:void 0}}function en(t,e){return 2048&e.flags?Sa:un(t,e)}function nn(t,e){for(var n=t;n.parent&&!ie(n);)n=n.parent;var r=!0;return cn(n.parent,ne(n),r,e.provider.value,e.provider.deps)}function rn(t,e){var n=(16384&e.flags)>0,r=cn(t,e.parent,n,e.provider.value,e.provider.deps);if(e.outputs.length)for(var o=0;o<e.outputs.length;o++){var i=e.outputs[o],s=r[i.propName].subscribe(on(t,e.parent.index,i.eventName));t.disposables[e.outputIndex+o]=s.unsubscribe.bind(s)}return r}function on(t,e,n){return function(r){return te(t,e,n,r)}}function sn(t,e,n,r,o,i,s,a,u,c,l,p){var h,f=Lt(t,e.index),d=f.instance,v=!1,y=e.bindings.length;return y>0&&$t(t,e,0,n)&&(v=!0,h=fn(t,f,e,0,n,h)),y>1&&$t(t,e,1,r)&&(v=!0,h=fn(t,f,e,1,r,h)),y>2&&$t(t,e,2,o)&&(v=!0,h=fn(t,f,e,2,o,h)),y>3&&$t(t,e,3,i)&&(v=!0,h=fn(t,f,e,3,i,h)),y>4&&$t(t,e,4,s)&&(v=!0,h=fn(t,f,e,4,s,h)),y>5&&$t(t,e,5,a)&&(v=!0,h=fn(t,f,e,5,a,h)),y>6&&$t(t,e,6,u)&&(v=!0,h=fn(t,f,e,6,u,h)),y>7&&$t(t,e,7,c)&&(v=!0,h=fn(t,f,e,7,c,h)),y>8&&$t(t,e,8,l)&&(v=!0,h=fn(t,f,e,8,l,h)),y>9&&$t(t,e,9,p)&&(v=!0,h=fn(t,f,e,9,p,h)),h&&d.ngOnChanges(h),1&t.state&&32768&e.flags&&d.ngOnInit(),131072&e.flags&&d.ngDoCheck(),v}function an(t,e,n){for(var r,o=Lt(t,e.index),i=o.instance,s=!1,a=0;a<n.length;a++)$t(t,e,a,n[a])&&(s=!0,r=fn(t,o,e,a,n[a],r));return r&&i.ngOnChanges(r),1&t.state&&32768&e.flags&&i.ngOnInit(),131072&e.flags&&i.ngDoCheck(),s}function un(t,e){var n,r=(4096&e.flags)>0,o=e.provider;switch(100673535&e.flags){case 256:n=cn(t,e.parent,r,o.value,o.deps);break;case 512:n=ln(t,e.parent,r,o.value,o.deps);break;case 1024:n=pn(t,e.parent,r,o.deps[0]);break;case 128:n=o.value}return n}function cn(t,e,n,r,o){var i,s=o.length;switch(s){case 0:i=new r;break;case 1:i=new r(pn(t,e,n,o[0]));break;case 2:i=new r(pn(t,e,n,o[0]),pn(t,e,n,o[1]));break;case 3:i=new r(pn(t,e,n,o[0]),pn(t,e,n,o[1]),pn(t,e,n,o[2]));break;default:for(var a=new Array(s),u=0;u<s;u++)a[u]=pn(t,e,n,o[u]);i=new(r.bind.apply(r,[void 0].concat(a)))}return i}function ln(t,e,n,r,o){var i,s=o.length;switch(s){case 0:i=r();break;case 1:i=r(pn(t,e,n,o[0]));break;case 2:i=r(pn(t,e,n,o[0]),pn(t,e,n,o[1]));break;case 3:i=r(pn(t,e,n,o[0]),pn(t,e,n,o[1]),pn(t,e,n,o[2]));break;default:for(var a=Array(s),u=0;u<s;u++)a[u]=pn(t,e,n,o[u]);i=r.apply(void 0,a)}return i}function pn(t,e,n,r,o){if(void 0===o&&(o=Uo.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var i=t;2&r.flags&&(o=null);var s=r.tokenKey;for(e&&1&r.flags&&(n=!1,e=e.parent);t;){if(e)switch(s){case ma:var a=hn(t,e,n);return $e(a);case ga:var a=hn(t,e,n);return a.renderer;case _a:return new us(jt(t,e.index).renderElement);case ba:return jt(t,e.index).viewContainer;case wa:if(e.element.template)return jt(t,e.index).template;break;case Ca:var u=hn(t,e,n);return We(u);case Ea:return Qe(t,e);default:var c=(n?e.element.allProviders:e.element.publicProviders)[s];if(c){var l=Lt(t,c.index);return l.instance===Sa&&(l.instance=un(t,c)),l.instance}}n=ie(t),e=ne(t),t=t.parent}var p=i.root.injector.get(r.token,xa);return p!==xa||o===xa?p:i.root.ngModule.injector.get(r.token,o)}function hn(t,e,n){var r;if(n)r=jt(t,e.index).componentView;else for(r=t;r.parent&&!ie(r);)r=r.parent;return r}function fn(t,e,n,r,o,i){if(16384&n.flags){var s=jt(t,n.parent.index).componentView;2&s.def.flags&&(s.state|=2)}var a=n.bindings[r],u=a.name;if(e.instance[u]=o,262144&n.flags){i=i||{};var c=t.oldValues[n.bindingIndex+r];c instanceof Ps&&(c=c.wrapped);var l=n.bindings[r];i[l.nonMinifiedName]=new As(c,o,0!==(1&t.state))}return t.oldValues[n.bindingIndex+r]=o,i}function dn(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,r=0;r<n.length;r++){var o=n[r],i=o.parent;for(!i&&o.flags&e&&yn(t,r,o.flags&e),0===(o.childFlags&e)&&(r+=o.childCount);i&&1&i.flags&&r===i.index+i.childCount;)i.directChildFlags&e&&vn(t,i,e),i=i.parent}}function vn(t,e,n){for(var r=e.index+1;r<=e.index+e.childCount;r++){var o=t.def.nodes[r];o.flags&n&&yn(t,r,o.flags&n),r+=o.childCount}}function yn(t,e,n){var r=Lt(t,e).instance;r!==Sa&&(Js.setCurrentNode(t,e),524288&n&&r.ngAfterContentInit(),1048576&n&&r.ngAfterContentChecked(),2097152&n&&r.ngAfterViewInit(),4194304&n&&r.ngAfterViewChecked(),65536&n&&r.ngOnDestroy())}function mn(t){return bn(64,new Array(t+1))}function gn(t){return bn(16,new Array(t))}function _n(t){return bn(32,t)}function bn(t,e){for(var n=new Array(e.length),r=0;r<e.length;r++){var o=e[r];n[r]={flags:8,name:o,ns:void 0,nonMinifiedName:o,securityContext:void 0,suffix:void 0}}return{index:void 0,parent:void 0,renderParent:void 0,bindingIndex:void 0,outputIndex:void 0,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:void 0,childCount:0,bindings:n,bindingFlags:ge(n),outputs:[],element:void 0,provider:void 0,text:void 0,query:void 0,ngContent:void 0}}function wn(t,e){return{value:void 0}}function Cn(t,e,n,r,o,i,s,a,u,c,l,p){var h=e.bindings,f=!1,d=h.length;if(d>0&&Zt(t,e,0,n)&&(f=!0),d>1&&Zt(t,e,1,r)&&(f=!0),d>2&&Zt(t,e,2,o)&&(f=!0),d>3&&Zt(t,e,3,i)&&(f=!0),d>4&&Zt(t,e,4,s)&&(f=!0),d>5&&Zt(t,e,5,a)&&(f=!0),d>6&&Zt(t,e,6,u)&&(f=!0),d>7&&Zt(t,e,7,c)&&(f=!0),d>8&&Zt(t,e,8,l)&&(f=!0),d>9&&Zt(t,e,9,p)&&(f=!0),f){var v=Vt(t,e.index),y=void 0;switch(100673535&e.flags){case 16:y=new Array(h.length),d>0&&(y[0]=n),d>1&&(y[1]=r),d>2&&(y[2]=o),d>3&&(y[3]=i),d>4&&(y[4]=s),d>5&&(y[5]=a),d>6&&(y[6]=u),d>7&&(y[7]=c),d>8&&(y[8]=l),d>9&&(y[9]=p);break;case 32:y={},d>0&&(y[h[0].name]=n),d>1&&(y[h[1].name]=r),d>2&&(y[h[2].name]=o),d>3&&(y[h[3].name]=i),d>4&&(y[h[4].name]=s),d>5&&(y[h[5].name]=a),d>6&&(y[h[6].name]=u),d>7&&(y[h[7].name]=c),d>8&&(y[h[8].name]=l),d>9&&(y[h[9].name]=p);break;case 64:var m=n;switch(d){case 1:y=m.transform(n);break;case 2:y=m.transform(r);break;case 3:y=m.transform(r,o);break;case 4:y=m.transform(r,o,i);break;case 5:y=m.transform(r,o,i,s);break;case 6:y=m.transform(r,o,i,s,a);break;case 7:y=m.transform(r,o,i,s,a,u);break;case 8:y=m.transform(r,o,i,s,a,u,c);break;case 9:y=m.transform(r,o,i,s,a,u,c,l);break;case 10:y=m.transform(r,o,i,s,a,u,c,l,p)}}v.value=y}return f}function En(t,e,n){for(var r=e.bindings,o=!1,i=0;i<n.length;i++)Zt(t,e,i,n[i])&&(o=!0);if(o){var s=Vt(t,e.index),a=void 0;switch(100673535&e.flags){case 16:a=n;break;case 32:a={};for(var i=0;i<n.length;i++)a[r[i].name]=n[i];break;case 64:var u=n[0],c=n.slice(1);a=u.transform.apply(u,c)}s.value=a}return o}function Sn(t,e,n){var r=[];for(var o in n){var i=n[o];r.push({propName:o,bindingType:i})}return{index:void 0,parent:void 0,renderParent:void 0,bindingIndex:void 0,outputIndex:void 0,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:void 0,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:void 0,provider:void 0,text:void 0,query:{id:e,filterId:ae(e),bindings:r},ngContent:void 0}}function xn(){return new ps}function Pn(t){for(var e=t.def.nodeMatchedQueries;t.parent&&se(t);){var n=t.parentNodeDef;t=t.parent;for(var r=n.index+n.childCount,o=0;o<=r;o++){var i=t.def.nodes[o];33554432&i.flags&&268435456&i.flags&&(i.query.filterId&e)===i.query.filterId&&Ft(t,o).setDirty(),!(1&i.flags&&o+i.childCount<n.index)&&33554432&i.childFlags&&268435456&i.childFlags||(o+=i.childCount)}}if(67108864&t.def.nodeFlags)for(var o=0;o<t.def.nodes.length;o++){var i=t.def.nodes[o];67108864&i.flags&&268435456&i.flags&&Ft(t,o).setDirty(),o+=i.childCount}}function Tn(t,e){var n=Ft(t,e.index);if(n.dirty){var r,o;if(33554432&e.flags){var i=e.parent.parent;o=An(t,i.index,i.index+i.childCount,e.query,[]),r=Lt(t,e.parent.index).instance}else 67108864&e.flags&&(o=An(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(o);for(var s=e.query.bindings,a=!1,u=0;u<s.length;u++){var c=s[u],l=void 0;switch(c.bindingType){case 0:l=n.first;break;case 1:l=n,a=!0}r[c.propName]=l}a&&n.notifyOnChanges()}}function An(t,e,n,r,o){for(var i=e;i<=n;i++){var s=t.def.nodes[i],a=s.matchedQueries[r.id];if(null!=a&&o.push(On(t,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=jt(t,i);if(8388608&s.flags)for(var c=u.viewContainer._embeddedViews,l=0;l<c.length;l++){var p=c[l],h=ee(p);h&&h===u&&An(p,0,p.def.nodes.length-1,r,o)}var f=u.template._projectedViews;if(f)for(var l=0;l<f.length;l++){var d=f[l];An(d,0,d.def.nodes.length-1,r,o)}}(s.childMatchedQueries&r.filterId)!==r.filterId&&(i+=s.childCount)}return o}function On(t,e,n){if(null!=n){var r=void 0;switch(n){case 1:r=jt(t,e.index).renderElement;break;case 0:r=new us(jt(t,e.index).renderElement);break;case 2:r=jt(t,e.index).template;break;case 3:r=jt(t,e.index).viewContainer;break;case 4:r=Lt(t,e.index).instance}return r}}function Mn(t,e){for(var n=new Array(e.length-1),r=1;r<e.length;r++)n[r-1]={flags:8,name:void 0,ns:void 0,nonMinifiedName:void 0,securityContext:void 0,suffix:e[r]};var o=2;return{index:void 0,parent:void 0,renderParent:void 0,bindingIndex:void 0,outputIndex:void 0,flags:o,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:n,bindingFlags:ge(n),outputs:[],element:void 0,provider:void 0,text:{prefix:e[0]},query:void 0,ngContent:void 0}}function Rn(t,e,n){var r,o=t.renderer;r=o.createText(n.text.prefix);var i=ce(t,e,n);return i&&o.appendChild(i,r),{renderText:r}}function kn(t,e,n,r,o,i,s,a,u,c,l,p){var h=!1,f=e.bindings,d=f.length;if(d>0&&Zt(t,e,0,n)&&(h=!0),d>1&&Zt(t,e,1,r)&&(h=!0),d>2&&Zt(t,e,2,o)&&(h=!0),d>3&&Zt(t,e,3,i)&&(h=!0),d>4&&Zt(t,e,4,s)&&(h=!0),d>5&&Zt(t,e,5,a)&&(h=!0),d>6&&Zt(t,e,6,u)&&(h=!0),d>7&&Zt(t,e,7,c)&&(h=!0),d>8&&Zt(t,e,8,l)&&(h=!0),d>9&&Zt(t,e,9,p)&&(h=!0),h){var v=e.text.prefix;d>0&&(v+=Nn(n,f[0])),d>1&&(v+=Nn(r,f[1])),d>2&&(v+=Nn(o,f[2])),d>3&&(v+=Nn(i,f[3])),d>4&&(v+=Nn(s,f[4])),d>5&&(v+=Nn(a,f[5])),d>6&&(v+=Nn(u,f[6])),d>7&&(v+=Nn(c,f[7])),d>8&&(v+=Nn(l,f[8])),d>9&&(v+=Nn(p,f[9]));var y=Dt(t,e.index).renderText;t.renderer.setValue(y,v)}return h}function In(t,e,n){for(var r=e.bindings,o=!1,i=0;i<n.length;i++)Zt(t,e,i,n[i])&&(o=!0);if(o){for(var s="",i=0;i<n.length;i++)s+=Nn(n[i],r[i]);s=e.text.prefix+s;var a=Dt(t,e.index).renderText;t.renderer.setValue(a,s)}return o}function Nn(t,e){var n=null!=t?t.toString():"";return n+e.suffix}function Dn(t,e,n,r){for(var o=0,i=0,s=0,a=0,u=0,c=null,l=!1,p=!1,h=null,f=0;f<e.length;f++){for(;c&&f>c.index+c.childCount;){var d=c.parent;d&&(d.childFlags|=c.childFlags,d.childMatchedQueries|=c.childMatchedQueries),c=d}var v=e[f];v.index=f,v.parent=c,v.bindingIndex=o,v.outputIndex=i;var y=void 0;if(y=c&&1&c.flags&&!c.element.name?c.renderParent:c,v.renderParent=y,v.element){var m=v.element;m.publicProviders=c?c.element.publicProviders:Object.create(null),m.allProviders=m.publicProviders,l=!1,p=!1}if(jn(c,v,e.length),s|=v.flags,u|=v.matchedQueryIds,v.element&&v.element.template&&(u|=v.element.template.nodeMatchedQueries),c?(c.childFlags|=v.flags,c.directChildFlags|=v.flags,c.childMatchedQueries|=v.matchedQueryIds,v.element&&v.element.template&&(c.childMatchedQueries|=v.element.template.nodeMatchedQueries)):a|=v.flags,o+=v.bindings.length,i+=v.outputs.length,!y&&3&v.flags&&(h=v),10112&v.flags){l||(l=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);var g=0!==(4096&v.flags),_=0!==(16384&v.flags);!g||_?c.element.publicProviders[v.provider.tokenKey]=v:(p||(p=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[v.provider.tokenKey]=v),_&&(c.element.componentProvider=v)}v.childCount&&(c=v)}for(;c;){var d=c.parent;d&&(d.childFlags|=c.childFlags,d.childMatchedQueries|=c.childMatchedQueries),c=d}var b=function(t,n,r,o){return e[n].element.handleEvent(t,r,o)};return{factory:void 0,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||ta,updateRenderer:r||ta,handleEvent:b||ta,bindingCount:o,outputCount:i,lastRenderRootNode:h}}function jn(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&8388608&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.index+"!")}if(10112&e.flags){var o=t?t.flags:null;if(0===(1&o))throw new Error("Illegal State: Provider/Directive nodes need to be children of elements or anchors, at index "+e.index+"!")}if(e.query){if(33554432&e.flags&&(!t||0===(8192&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.index+"!");if(67108864&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.index+"!")}if(e.childCount){var i=t?t.index+t.childCount:n-1;if(e.index<=i&&e.index+e.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.index+"!")}}function Ln(t,e,n){var r=Fn(t.root,t.renderer,t,e,e.element.template);return Un(r,t.component,n),Hn(r),r}function Vn(t,e,n){var r=Fn(t,t.renderer,null,null,e);return Un(r,n,n),Hn(r),r}function Fn(t,e,n,r,o){var i=new Array(o.nodes.length),s=o.outputCount?new Array(o.outputCount):void 0,a={def:o,parent:n,viewContainerParent:void 0,parentNodeDef:r,context:void 0,component:void 0,nodes:i,state:3,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:s};return a}function Un(t,e,n){t.component=e,t.context=n}function Hn(t){var e;if(ie(t)){var n=t.parentNodeDef;e=jt(t.parent,n.parent.index).renderElement}for(var r=t.def,o=t.nodes,i=0;i<r.nodes.length;i++){var s=r.nodes[i];Js.setCurrentNode(t,i);var a=void 0;switch(100673535&s.flags){case 1:var u=Se(t,e,s),c=void 0;if(16777216&s.flags){var l=le(s.element.componentView),p=s.element.componentRendererType,h=void 0;h=p?t.root.rendererFactory.createRenderer(u,p):t.root.renderer,c=Fn(t.root,h,t,s.element.componentProvider,l)}xe(t,c,s,u),a={renderElement:u,componentView:c,viewContainer:void 0,template:s.element.template?Ke(t,s):void 0},8388608&s.flags&&(a.viewContainer=Ge(t,s,a));break;case 2:a=Rn(t,e,s);break;case 256:case 512:case 1024:case 128:var f=en(t,s);a={instance:f};break;case 8:var f=nn(t,s);a={instance:f};break;case 8192:var f=rn(t,s);if(a={instance:f},16384&s.flags){var d=jt(t,s.parent.index).componentView;Un(d,f,f)}break;case 16:case 32:case 64:a=wn(t,s);break;case 33554432:case 67108864:a=xn();break;case 4:De(t,e,s),a=void 0}o[i]=a}Jn(t,Pa.CreateViewNodes),nr(t,100663296,134217728,0)}function Bn(t){Js.updateDirectives(t,1),tr(t,Pa.CheckNoChanges),Js.updateRenderer(t,1),Jn(t,Pa.CheckNoChanges)}function qn(t){Js.updateDirectives(t,0),tr(t,Pa.CheckAndUpdate),nr(t,33554432,268435456,0),dn(t,1048576|(1&t.state?524288:0)),Js.updateRenderer(t,0),Jn(t,Pa.CheckAndUpdate),nr(t,67108864,268435456,0),dn(t,4194304|(1&t.state?2097152:0)),2&t.def.flags&&(t.state&=-3),t.state&=-2}function zn(t,e,n,r,o,i,s,a,u,c,l,p,h){return 0===n?Gn(t,e,r,o,i,s,a,u,c,l,p,h):Wn(t,e,r)}function Gn(t,e,n,r,o,i,s,a,u,c,l,p){var h=!1;switch(100673535&e.flags){case 1:h=Te(t,e,n,r,o,i,s,a,u,c,l,p);break;case 2:h=kn(t,e,n,r,o,i,s,a,u,c,l,p);break;case 8192:h=sn(t,e,n,r,o,i,s,a,u,c,l,p);break;case 16:case 32:case 64:h=Cn(t,e,n,r,o,i,s,a,u,c,l,p)}return h}function Wn(t,e,n){var r=!1;switch(100673535&e.flags){case 1:r=Ae(t,e,n);break;case 2:r=In(t,e,n);break;case 8192:r=an(t,e,n);break;case 16:case 32:case 64:r=En(t,e,n)}if(r)for(var o=e.bindings.length,i=e.bindingIndex,s=t.oldValues,a=0;a<o;a++)s[i+a]=n[a];return r}function Kn(t,e,n,r,o,i,s,a,u,c,l,p,h){return 0===n?Qn(t,e,r,o,i,s,a,u,c,l,p,h):Xn(t,e,r),!1}function Qn(t,e,n,r,o,i,s,a,u,c,l,p){var h=e.bindings.length;h>0&&Yt(t,e,0,n),h>1&&Yt(t,e,1,r),h>2&&Yt(t,e,2,o),h>3&&Yt(t,e,3,i),h>4&&Yt(t,e,4,s),h>5&&Yt(t,e,5,a),h>6&&Yt(t,e,6,u),h>7&&Yt(t,e,7,c),h>8&&Yt(t,e,8,l),h>9&&Yt(t,e,9,p)}function Xn(t,e,n){for(var r=0;r<n.length;r++)Yt(t,e,r,n[r])}function $n(t,e){var n=Ft(t,e.index);if(n.dirty)throw Ut(Js.createDebugContext(t,e.index),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!==(1&t.state))}function Zn(t){if(!(8&t.state)){if(tr(t,Pa.Destroy),Jn(t,Pa.Destroy),dn(t,65536),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();t.renderer.destroyNode&&Yn(t),ie(t)&&t.renderer.destroy(),t.state|=8}}function Yn(t){for(var e=t.def.nodes.length,n=0;n<e;n++){var r=t.def.nodes[n];1&r.flags?t.renderer.destroyNode(jt(t,n).renderElement):2&r.flags&&t.renderer.destroyNode(Dt(t,n).renderText)}}function Jn(t,e){var n=t.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];16777216&o.flags?er(jt(t,r).componentView,e):0===(16777216&o.childFlags)&&(r+=o.childCount)}}function tr(t,e){var n=t.def;if(8388608&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];if(8388608&o.flags)for(var i=jt(t,r).viewContainer._embeddedViews,s=0;s<i.length;s++)er(i[s],e);else 0===(8388608&o.childFlags)&&(r+=o.childCount)}}function er(t,e){var n=t.state;switch(e){case Pa.CheckNoChanges:2&n&&0===(12&n)&&Bn(t);break;case Pa.CheckAndUpdate:2&n&&0===(12&n)&&qn(t);break;case Pa.Destroy:Zn(t);break;case Pa.CreateViewNodes:Hn(t)}}function nr(t,e,n,r){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var o=t.def.nodes.length,i=0;i<o;i++){var s=t.def.nodes[i];if(s.flags&e&&s.flags&n)switch(Js.setCurrentNode(t,s.index),r){case 0:Tn(t,s);break;case 1:$n(t,s)}s.childFlags&e&&s.childFlags&n||(i+=s.childCount)}}function rr(){if(!Ta){Ta=!0;var t=ct()?ir():or();Js.setCurrentNode=t.setCurrentNode,Js.createRootView=t.createRootView,Js.createEmbeddedView=t.createEmbeddedView,Js.checkAndUpdateView=t.checkAndUpdateView,Js.checkNoChangesView=t.checkNoChangesView,Js.destroyView=t.destroyView,Js.resolveDep=pn,Js.createDebugContext=t.createDebugContext,Js.handleEvent=t.handleEvent,Js.updateDirectives=t.updateDirectives,Js.updateRenderer=t.updateRenderer,Js.dirtyParentQueries=Pn}}function or(){return{setCurrentNode:function(){},createRootView:sr,createEmbeddedView:Ln,checkAndUpdateView:qn,checkNoChangesView:Bn,destroyView:Zn,createDebugContext:function(t,e){return new Ia(t,e)},handleEvent:function(t,e,n,r){return t.def.handleEvent(t,e,n,r)},updateDirectives:function(t,e){return t.def.updateDirectives(0===e?cr:lr,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?cr:lr,t)}}}function ir(){return{setCurrentNode:vr,createRootView:ar,createEmbeddedView:pr,checkAndUpdateView:hr,checkNoChangesView:fr,destroyView:dr,createDebugContext:function(t,e){return new Ia(t,e)},handleEvent:yr,updateDirectives:mr,updateRenderer:gr}}function sr(t,e,n,r,o,i){var s=o.injector.get(is);return Vn(ur(t,o,s,e,n),r,i)}function ar(t,e,n,r,o,i){var s=o.injector.get(is),a=ur(t,o,new Na(s),e,n);return Or(Aa.create,Vn,null,[a,r,i])}function ur(t,e,n,r,o){var i=e.injector.get(Zs),s=n.createRenderer(null,null);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:o,sanitizer:i,rendererFactory:n,renderer:s}}function cr(t,e,n,r,o,i,s,a,u,c,l,p,h){var f=t.def.nodes[e];return zn(t,f,n,r,o,i,s,a,u,c,l,p,h),112&f.flags?Vt(t,e).value:void 0}function lr(t,e,n,r,o,i,s,a,u,c,l,p,h){var f=t.def.nodes[e];return Kn(t,f,n,r,o,i,s,a,u,c,l,p,h),112&f.flags?Vt(t,e).value:void 0}function pr(t,e,n){return Or(Aa.create,Ln,null,[t,e,n])}function hr(t){return Or(Aa.detectChanges,qn,null,[t])}function fr(t){return Or(Aa.checkNoChanges,Bn,null,[t])}function dr(t){return Or(Aa.destroy,Zn,null,[t])}function vr(t,e){Ma=t,Ra=e}function yr(t,e,n,r){return vr(t,e),Or(Aa.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function mr(t,e){function n(t,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=t.def.nodes[n];return 0===e?_r(t,s,r,o):br(t,s,r,o),8192&s.flags&&vr(t,Sr(t,n)),112&s.flags?Vt(t,s.index).value:void 0}if(8&t.state)throw Gt(Aa[Oa]);return vr(t,Sr(t,0)),t.def.updateDirectives(n,t)}function gr(t,e){function n(t,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=t.def.nodes[n];return 0===e?_r(t,s,r,o):br(t,s,r,o),3&s.flags&&vr(t,xr(t,n)),112&s.flags?Vt(t,s.index).value:void 0}if(8&t.state)throw Gt(Aa[Oa]);return vr(t,xr(t,0)),t.def.updateRenderer(n,t)}function _r(t,e,n,r){var o=zn.apply(void 0,[t,e,n].concat(r));if(o){var i=1===n?r[0]:r;if(8192&e.flags){for(var s={},a=0;a<e.bindings.length;a++){var u=e.bindings[a],c=i[a];8&u.flags&&(s[wr(u.nonMinifiedName)]=Er(c))}var l=e.parent,p=jt(t,l.index).renderElement;if(l.element.name)for(var h in s){var c=s[h];null!=c?t.renderer.setAttribute(p,h,c):t.renderer.removeAttribute(p,h)}else t.renderer.setValue(p,"bindings="+JSON.stringify(s,null,2))}}}function br(t,e,n,r){Kn.apply(void 0,[t,e,n].concat(r))}function wr(t){return t=Cr(t.replace(/[$@]/g,"_")),"ng-reflect-"+t}function Cr(t){return t.replace(ka,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})}function Er(t){try{return t?t.toString().slice(0,30):t}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function Sr(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(8192&r.flags&&r.bindings&&r.bindings.length)return n}}function xr(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}}function Pr(t,e){for(var n=-1,r=0;r<=e;r++){var o=t.nodes[r];3&o.flags&&n++}return n}function Tr(t){for(;t&&!ie(t);)t=t.parent;if(t.parent)return jt(t.parent,ne(t).index)}function Ar(t,e,n){for(var r in e.references)n[r]=On(t,e,e.references[r])}function Or(t,e,n,r){var o=Oa,i=Ma,s=Ra;try{Oa=t;var a=e.apply(n,r);return Ma=i,Ra=s,Oa=o,a}catch(t){if(zt(t)||!Ma)throw t;throw Ma.state|=4,Ht(t,Mr())}}function Mr(){return Ma?new Ia(Ma,Ra):null}function Rr(){return Bs}function kr(){return qs}function Ir(t){return t||"en-US"}function Nr(){rr()}function Dr(t,e){return{name:t,definitions:e}}function jr(t,e){return void 0===e&&(e=null),{type:4,styles:e,timings:t}}function Lr(t){return{type:3,steps:t}}function Vr(t){return{type:2,steps:t}}function Fr(t){return{type:6,styles:t}}function Ur(t,e){return{type:0,name:t,styles:e}}function Hr(t){return{type:5,steps:t}}function Br(t,e){return{type:1,expr:t,animation:e}}function qr(t,e){return Dr(t,e)}function zr(t,e){return void 0===e&&(e=null),jr(t,e)}function Gr(t){return Lr(t)}function Wr(t){return Vr(t)}function Kr(t){return Fr(t)}function Qr(t,e){return Ur(t,e)}function Xr(t){return Hr(t)}function $r(t,e){return Br(t,e)}var Zr=function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},Yr=function(){function t(t){this._desc=t}return t.prototype.toString=function(){return"Token "+this._desc},t}(),Jr=function(t){function e(e){return t.call(this,e)||this}return Zr(e,t),e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(Yr),to="undefined"!=typeof window&&window,eo="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,no="undefined"!=typeof global&&global,ro=to||no||eo,oo=null,io=0,so=ro.Reflect,ao=new Jr("AnalyzeForEntryComponents"),uo=d("Attribute",[["attributeName",void 0]]),co=function(){function t(){}return t}(),lo=v("ContentChildren",[["selector",void 0],{first:!1,isViewQuery:!1,descendants:!1,read:void 0}],co),po=v("ContentChild",[["selector",void 0],{first:!0,isViewQuery:!1,descendants:!0,read:void 0}],co),ho=v("ViewChildren",[["selector",void 0],{first:!1,isViewQuery:!0,descendants:!0,read:void 0}],co),fo=v("ViewChild",[["selector",void 0],{first:!0,isViewQuery:!0,descendants:!0,read:void 0}],co),vo={};vo.OnPush=0,vo.Default=1,vo[vo.OnPush]="OnPush",vo[vo.Default]="Default";var yo={};yo.CheckOnce=0,yo.Checked=1,yo.CheckAlways=2,yo.Detached=3,yo.Errored=4,yo.Destroyed=5,yo[yo.CheckOnce]="CheckOnce",yo[yo.Checked]="Checked",yo[yo.CheckAlways]="CheckAlways",yo[yo.Detached]="Detached",yo[yo.Errored]="Errored",yo[yo.Destroyed]="Destroyed";var mo=h("Directive",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,providers:void 0,exportAs:void 0,queries:void 0}),go=h("Component",{selector:void 0,inputs:void 0,outputs:void 0,host:void 0,exportAs:void 0,moduleId:void 0,providers:void 0,viewProviders:void 0,changeDetection:vo.Default,queries:void 0,templateUrl:void 0,template:void 0,styleUrls:void 0,styles:void 0,animations:void 0,encapsulation:void 0,interpolation:void 0,entryComponents:void 0},mo),_o=h("Pipe",{name:void 0,pure:!0}),bo=v("Input",[["bindingPropertyName",void 0]]),wo=v("Output",[["bindingPropertyName",void 0]]),Co=v("HostBinding",[["hostPropertyName",void 0]]),Eo=v("HostListener",[["eventName",void 0],["args",[]]]),So={name:"custom-elements"},xo={name:"no-errors-schema"},Po=h("NgModule",{providers:void 0,declarations:void 0,imports:void 0,exports:void 0,entryComponents:void 0,bootstrap:void 0,schemas:void 0,id:void 0}),To={};To.Emulated=0,To.Native=1,To.None=2,To[To.Emulated]="Emulated",To[To.Native]="Native",To[To.None]="None";var Ao=function(){function t(t){var e=void 0===t?{}:t,n=e.templateUrl,r=e.template,o=e.encapsulation,i=e.styles,s=e.styleUrls,a=e.animations,u=e.interpolation;this.templateUrl=n,this.template=r,this.styleUrls=s,this.styles=i,this.encapsulation=o,this.animations=a,this.interpolation=u}return t}(),Oo=function(){function t(t){this.full=t}return Object.defineProperty(t.prototype,"major",{get:function(){return this.full.split(".")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minor",{get:function(){return this.full.split(".")[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"patch",{get:function(){return this.full.split(".").slice(2).join(".")},enumerable:!0,configurable:!0}),t}(),Mo=new Oo("4.0.0"),Ro=d("Inject",[["token",void 0]]),ko=d("Optional",[]),Io=h("Injectable",[]),No=d("Self",[]),Do=d("SkipSelf",[]),jo=d("Host",[]),Lo=new Object,Vo=Lo,Fo=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=Lo),e===Lo)throw new Error("No provider for "+u(t)+"!");return e},t}(),Uo=function(){function t(){}return t.prototype.get=function(t,e){},t.prototype.get=function(t,e){},t}();Uo.THROW_IF_NOT_FOUND=Lo,Uo.NULL=new Fo;var Ho="ngComponentType",Bo="ngDebugContext",qo="ngOriginalError",zo="ngErrorLogger",Go=function(){function t(t){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=w(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)},t.prototype._findContext=function(t){return t?_(t)?_(t):this._findContext(b(t)):null},t.prototype._findOriginalError=function(t){for(var e=b(t);e&&b(e);)e=b(e);return e},t}(),Wo=function(){function t(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!")}return Object.defineProperty(t.prototype,"displayName",{get:function(){return u(this.token)},enumerable:!0,configurable:!0}),t.get=function(t){return Qo.get(g(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return Qo.numberOfKeys},enumerable:!0,configurable:!0}),t}(),Ko=function(){function t(){this._allKeys=new Map}return t.prototype.get=function(t){if(t instanceof Wo)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new Wo(t,Wo.numberOfKeys);return this._allKeys.set(t,e),e},Object.defineProperty(t.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),t}(),Qo=new Ko,Xo=Function,$o=/^function\s+\S+\(\)\s*{\s*("use strict";)?\s*(return\s+)?(\S+\s+!==\s+null\s+&&\s+)?\S+\.apply\(this,\s*arguments\)/,Zo=function(){function t(t){this._reflect=t||ro.Reflect}return t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,[void 0].concat(e)))}},t.prototype._zipTypesAndAnnotations=function(t,e){var n;n="undefined"==typeof t?new Array(e.length):new Array(t.length);for(var r=0;r<n.length;r++)"undefined"==typeof t?n[r]=[]:t[r]!=Object?n[r]=[t[r]]:n[r]=[],e&&null!=e[r]&&(n[r]=n[r].concat(e[r]));return n},t.prototype._ownParameters=function(t,e){if($o.exec(t.toString()))return null;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;var n=t.ctorParameters;if(n&&n!==e.ctorParameters){var r="function"==typeof n?n():n,o=r.map(function(t){return t&&t.type}),i=r.map(function(t){return t&&j(t.decorators)});return this._zipTypesAndAnnotations(o,i)}if(null!=this._reflect&&null!=this._reflect.getOwnMetadata){var i=this._reflect.getOwnMetadata("parameters",t),o=this._reflect.getOwnMetadata("design:paramtypes",t);if(o||i)return this._zipTypesAndAnnotations(o,i)}return new Array(t.length).fill(void 0)},t.prototype.parameters=function(t){if(!D(t))return[];var e=L(t),n=this._ownParameters(t,e);return n||e===Object||(n=this.parameters(e)),n||[]},t.prototype._ownAnnotations=function(t,e){if(t.annotations&&t.annotations!==e.annotations){var n=t.annotations;return"function"==typeof n&&n.annotations&&(n=n.annotations),n}return t.decorators&&t.decorators!==e.decorators?j(t.decorators):this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("annotations",t):void 0},t.prototype.annotations=function(t){if(!D(t))return[];var e=L(t),n=this._ownAnnotations(t,e)||[],r=e!==Object?this.annotations(e):[];return r.concat(n)},t.prototype._ownPropMetadata=function(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){var n=t.propMetadata;return"function"==typeof n&&n.propMetadata&&(n=n.propMetadata),n}if(t.propDecorators&&t.propDecorators!==e.propDecorators){var r=t.propDecorators,o={};return Object.keys(r).forEach(function(t){o[t]=j(r[t])}),o}if(this._reflect&&this._reflect.getOwnMetadata)return this._reflect.getOwnMetadata("propMetadata",t)},t.prototype.propMetadata=function(t){if(!D(t))return{};var e=L(t),n={};if(e!==Object){var r=this.propMetadata(e);Object.keys(r).forEach(function(t){n[t]=r[t]})}var o=this._ownPropMetadata(t,e);return o&&Object.keys(o).forEach(function(t){var e=[];n.hasOwnProperty(t)&&e.push.apply(e,n[t]),e.push.apply(e,o[t]),n[t]=e}),n},t.prototype.hasLifecycleHook=function(t,e){return t instanceof Xo&&e in t.prototype},t.prototype.getter=function(t){return new Function("o","return o."+t+";")},t.prototype.setter=function(t){return new Function("o","v","return o."+t+" = v;")},t.prototype.method=function(t){var e="if (!o."+t+") throw new Error('\""+t+"\" is undefined');\n        return o."+t+".apply(o, args);";
  return new Function("o","args",e)},t.prototype.importUri=function(t){return"object"==typeof t&&t.filePath?t.filePath:"./"+u(t)},t.prototype.resourceUri=function(t){return"./"+u(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return r},t.prototype.resolveEnum=function(t,e){return t[e]},t}(),Yo=function(){function t(){}return t.prototype.parameters=function(t){},t.prototype.annotations=function(t){},t.prototype.propMetadata=function(t){},t.prototype.importUri=function(t){},t.prototype.resourceUri=function(t){},t.prototype.resolveIdentifier=function(t,e,n,r){},t.prototype.resolveEnum=function(t,e){},t}(),Jo=function(t){function e(e){var n=t.call(this)||this;return n.reflectionCapabilities=e,n}return Zr(e,t),e.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},e.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},e.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},e.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},e.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},e.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},e.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},e.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},e.prototype.method=function(t){return this.reflectionCapabilities.method(t)},e.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},e.prototype.resourceUri=function(t){return this.reflectionCapabilities.resourceUri(t)},e.prototype.resolveIdentifier=function(t,e,n,r){return this.reflectionCapabilities.resolveIdentifier(t,e,n,r)},e.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},e}(Yo),ti=new Jo(new Zo),ei=function(){function t(t,e,n){this.key=t,this.optional=e,this.visibility=n}return t.fromKey=function(e){return new t(e,(!1),null)},t}(),ni=[],ri=function(){function t(t,e,n){this.key=t,this.resolvedFactories=e,this.multiProvider=n}return Object.defineProperty(t.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),t}(),oi=function(){function t(t,e){this.factory=t,this.dependencies=e}return t}(),ii=new Object,si=function(){function t(){}return t.resolve=function(t){return U(t)},t.resolveAndCreate=function(e,n){void 0===n&&(n=null);var r=t.resolve(e);return t.fromResolvedProviders(r,n)},t.fromResolvedProviders=function(t,e){return void 0===e&&(e=null),new ai(t,e)},t.prototype.parent=function(){},t.prototype.resolveAndCreateChild=function(t){},t.prototype.createChildFromResolved=function(t){},t.prototype.resolveAndInstantiate=function(t){},t.prototype.instantiateResolved=function(t){},t.prototype.get=function(t,e){},t}(),ai=function(){function t(t,e){void 0===e&&(e=null),this._constructionCounter=0,this._providers=t,this._parent=e;var n=t.length;this.keyIds=new Array(n),this.objs=new Array(n);for(var r=0;r<n;r++)this.keyIds[r]=t[r].key.id,this.objs[r]=ii}return t.prototype.get=function(t,e){return void 0===e&&(e=Vo),this._getByKey(Wo.get(t),null,e)},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),t.prototype.resolveAndCreateChild=function(t){var e=si.resolve(t);return this.createChildFromResolved(e)},t.prototype.createChildFromResolved=function(e){var n=new t(e);return n._parent=this,n},t.prototype.resolveAndInstantiate=function(t){return this.instantiateResolved(si.resolve([t])[0])},t.prototype.instantiateResolved=function(t){return this._instantiateProvider(t)},t.prototype.getProviderAtIndex=function(t){if(t<0||t>=this._providers.length)throw I(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw O(this,t.key);return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),n=0;n<t.resolvedFactories.length;++n)e[n]=this._instantiate(t,t.resolvedFactories[n]);return e}return this._instantiate(t,t.resolvedFactories[0])},t.prototype._instantiate=function(t,e){var n,r=this,o=e.factory;try{n=e.dependencies.map(function(t){return r._getByReflectiveDependency(t)})}catch(e){throw e.addKey&&e.addKey(this,t.key),e}var i;try{i=o.apply(void 0,n)}catch(e){throw M(this,e,e.stack,t.key)}return i},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:Vo)},t.prototype._getByKey=function(t,e,n){return t===ui?this:e instanceof No?this._getByKeySelf(t,n):this._getByKeyDefault(t,n,e)},t.prototype._getObjByKeyId=function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===ii&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return ii},t.prototype._throwOrNull=function(t,e){if(e!==Vo)return e;throw A(this,t)},t.prototype._getByKeySelf=function(t,e){var n=this._getObjByKeyId(t.id);return n!==ii?n:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,n,r){var o;for(o=r instanceof Do?this._parent:this;o instanceof t;){var i=o,s=i._getObjByKeyId(e.id);if(s!==ii)return s;o=i._parent}return null!==o?o.get(e.token,n):this._throwOrNull(e,n)},Object.defineProperty(t.prototype,"displayName",{get:function(){var t=K(this,function(t){return' "'+t.key.displayName+'" '}).join(", ");return"ReflectiveInjector(providers: ["+t+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t}(),ui=Wo.get(Uo),ci=new Jr("Application Initializer"),li=function(){function t(t){var e=this;this._done=!1;var n=[];if(t)for(var r=0;r<t.length;r++){var o=t[r]();Q(o)&&n.push(o)}this._donePromise=Promise.all(n).then(function(){e._done=!0}),0===n.length&&(this._done=!0)}return Object.defineProperty(t.prototype,"done",{get:function(){return this._done},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"donePromise",{get:function(){return this._donePromise},enumerable:!0,configurable:!0}),t}();li.decorators=[{type:Io}],li.ctorParameters=function(){return[{type:Array,decorators:[{type:Ro,args:[ci]},{type:ko}]}]};var pi=new Jr("AppId"),hi={provide:pi,useFactory:Z,deps:[]},fi=new Jr("Platform Initializer"),di=new Jr("Platform ID"),vi=new Jr("appBootstrapListener"),yi=new Jr("Application Packages Root URL"),mi=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t}();mi.decorators=[{type:Io}],mi.ctorParameters=function(){return[]};var gi=function(){function t(t,e){this.ngModuleFactory=t,this.componentFactories=e}return t}(),_i=function(){function t(){}return t.prototype.compileModuleSync=function(t){throw J()},t.prototype.compileModuleAsync=function(t){throw J()},t.prototype.compileModuleAndAllComponentsSync=function(t){throw J()},t.prototype.compileModuleAndAllComponentsAsync=function(t){throw J()},t.prototype.getNgContentSelectors=function(t){throw J()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t}();_i.decorators=[{type:Io}],_i.ctorParameters=function(){return[]};var bi=new Jr("compilerOptions"),wi=function(){function t(){}return t.prototype.createCompiler=function(t){},t}(),Ci=function(){function t(){}return t.prototype.location=function(){},t.prototype.injector=function(){},t.prototype.instance=function(){},t.prototype.hostView=function(){},t.prototype.changeDetectorRef=function(){},t.prototype.componentType=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(t){},t}(),Ei=function(){function t(){}return t.prototype.selector=function(){},t.prototype.componentType=function(){},t.prototype.ngContentSelectors=function(){},t.prototype.inputs=function(){},t.prototype.outputs=function(){},t.prototype.create=function(t,e,n,r){},t}(),Si="ngComponent",xi=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw tt(t)},t}(),Pi=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){},t}();Pi.NULL=new xi;var Ti,Ai,Oi=function(){function t(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(var r=0;r<t.length;r++){var o=t[r];this._factories.set(o.componentType,o)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t)||this._parent.resolveComponentFactory(t);return e?new Mi(e,this._ngModule):null},t}(),Mi=function(t){function e(e,n){var r=t.call(this)||this;return r.factory=e,r.ngModule=n,r}return Zr(e,t),Object.defineProperty(e.prototype,"selector",{get:function(){return this.factory.selector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this.factory.componentType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngContentSelectors",{get:function(){return this.factory.ngContentSelectors},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputs",{get:function(){return this.factory.inputs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return this.factory.outputs},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)},e}(Ei),Ri=function(){function t(){}return t.prototype.injector=function(){},t.prototype.componentFactoryResolver=function(){},t.prototype.instance=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(t){},t}(),ki=function(){function t(t,e){this._injectorClass=t,this._moduleType=e}return Object.defineProperty(t.prototype,"moduleType",{get:function(){return this._moduleType},enumerable:!0,configurable:!0}),t.prototype.create=function(t){var e=new this._injectorClass(t||Uo.NULL);return e.create(),e},t}(),Ii=new Object,Ni=function(){function t(t,e,n){var r=this;this.parent=t,this._destroyListeners=[],this._destroyed=!1,this.bootstrapFactories=n.map(function(t){return new Mi(t,r)}),this._cmpFactoryResolver=new Oi(e,t.get(Pi,Pi.NULL),this)}return t.prototype.create=function(){this.instance=this.createInternal()},t.prototype.createInternal=function(){},t.prototype.get=function(t,e){if(void 0===e&&(e=Vo),t===Uo||t===Ri)return this;if(t===Pi)return this._cmpFactoryResolver;var n=this.getInternal(t,Ii);return n===Ii?this.parent.get(t,e):n},t.prototype.getInternal=function(t,e){},Object.defineProperty(t.prototype,"injector",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this._cmpFactoryResolver},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+u(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,this.destroyInternal(),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t.prototype.destroyInternal=function(){},t}(),Di=et(),ji=Di?nt:function(t,e){return st},Li=Di?rt:function(t,e){return e},Vi=Di?ot:function(t,e){return null},Fi=Di?it:function(t){return null},Ui=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return Zr(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var o,i=function(t){return null},s=function(){return null};return e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(i=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()})):(o=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(i=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),t.prototype.subscribe.call(this,o,i,s)},e}(o.Subject),Hi=function(){function t(t){var e=t.enableLongStackTrace,n=void 0!==e&&e;if(this._hasPendingMicrotasks=!1,this._hasPendingMacrotasks=!1,this._isStable=!0,this._nesting=0,this._onUnstable=new Ui((!1)),this._onMicrotaskEmpty=new Ui((!1)),this._onStable=new Ui((!1)),this._onErrorEvents=new Ui((!1)),"undefined"==typeof Zone)throw new Error("Angular requires Zone.js prolyfill.");Zone.assertZonePatched(),this.outer=this.inner=Zone.current,Zone.wtfZoneSpec&&(this.inner=this.inner.fork(Zone.wtfZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(this.inner=this.inner.fork(Zone.longStackTraceZoneSpec)),this.forkInnerZoneWithAngularBehavior()}return t.isInAngularZone=function(){return Zone.current.get("isAngularZone")===!0},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t){return this.inner.run(t)},t.prototype.runGuarded=function(t){return this.inner.runGuarded(t)},t.prototype.runOutsideAngular=function(t){return this.outer.run(t)},Object.defineProperty(t.prototype,"onUnstable",{get:function(){return this._onUnstable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onMicrotaskEmpty",{get:function(){return this._onMicrotaskEmpty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onStable",{get:function(){return this._onStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onError",{get:function(){return this._onErrorEvents},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMicrotasks",{get:function(){return this._hasPendingMicrotasks},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasPendingMacrotasks",{get:function(){return this._hasPendingMacrotasks},enumerable:!0,configurable:!0}),t.prototype.checkStable=function(){var t=this;if(0==this._nesting&&!this._hasPendingMicrotasks&&!this._isStable)try{this._nesting++,this._onMicrotaskEmpty.emit(null)}finally{if(this._nesting--,!this._hasPendingMicrotasks)try{this.runOutsideAngular(function(){return t._onStable.emit(null)})}finally{this._isStable=!0}}},t.prototype.forkInnerZoneWithAngularBehavior=function(){var t=this;this.inner=this.inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,r,o,i,s){try{return t.onEnter(),e.invokeTask(r,o,i,s)}finally{t.onLeave()}},onInvoke:function(e,n,r,o,i,s,a){try{return t.onEnter(),e.invoke(r,o,i,s,a)}finally{t.onLeave()}},onHasTask:function(e,n,r,o){e.hasTask(r,o),n===r&&("microTask"==o.change?t.setHasMicrotask(o.microTask):"macroTask"==o.change&&t.setHasMacrotask(o.macroTask))},onHandleError:function(e,n,r,o){return e.handleError(r,o),t.triggerError(o),!1}})},t.prototype.onEnter=function(){this._nesting++,this._isStable&&(this._isStable=!1,this._onUnstable.emit(null))},t.prototype.onLeave=function(){this._nesting--,this.checkStable()},t.prototype.setHasMicrotask=function(t){this._hasPendingMicrotasks=t,this.checkStable()},t.prototype.setHasMacrotask=function(t){this._hasPendingMacrotasks=t},t.prototype.triggerError=function(t){this._onErrorEvents.emit(t)},t}(),Bi=function(){function t(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){Hi.assertNotInAngularZone(),s(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;this.isStable()?s(function(){for(;0!==t._callbacks.length;)t._callbacks.pop()(t._didWork);t._didWork=!1}):this._didWork=!0},t.prototype.whenStable=function(t){this._callbacks.push(t),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findBindings=function(t,e,n){return[]},t.prototype.findProviders=function(t,e,n){return[]},t}();Bi.decorators=[{type:Io}],Bi.ctorParameters=function(){return[{type:Hi}]};var qi=function(){function t(){this._applications=new Map,Wi.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.getTestability=function(t){return this._applications.get(t)},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),Wi.findTestabilityInTree(this,t,e)},t}();qi.decorators=[{type:Io}],qi.ctorParameters=function(){return[]};var zi,Gi=function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}(),Wi=new Gi,Ki=!0,Qi=!1,Xi=new Jr("AllowMultipleToken"),$i=function(){function t(t,e){this.name=t,this.token=e}return t}(),Zi=function(){function t(){}return t.prototype.bootstrapModuleFactory=function(t){},t.prototype.bootstrapModule=function(t,e){},t.prototype.onDestroy=function(t){},t.prototype.injector=function(){},t.prototype.destroy=function(){},t.prototype.destroyed=function(){},t}(),Yi=function(t){function e(e){var n=t.call(this)||this;return n._injector=e,n._modules=[],n._destroyListeners=[],n._destroyed=!1,n}return Zr(e,t),e.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},e.prototype.bootstrapModuleFactory=function(t){return this._bootstrapModuleFactoryWithZone(t,null)},e.prototype._bootstrapModuleFactoryWithZone=function(t,e){var n=this;return e||(e=new Hi({enableLongStackTrace:ct()})),e.run(function(){var r=si.resolveAndCreate([{provide:Hi,useValue:e}],n.injector),o=t.create(r),i=o.injector.get(Go,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return o.onDestroy(function(){return yt(n._modules,o)}),e.onError.subscribe({next:function(t){i.handleError(t)}}),vt(i,function(){var t=o.injector.get(li);return t.donePromise.then(function(){return n._moduleDoBootstrap(o),o})})})},e.prototype.bootstrapModule=function(t,e){return void 0===e&&(e=[]),this._bootstrapModuleWithZone(t,e,null)},e.prototype._bootstrapModuleWithZone=function(t,e,n){var r=this;void 0===e&&(e=[]),void 0===n&&(n=null);var o=this.injector.get(wi),i=o.createCompiler(Array.isArray(e)?e:[e]);return i.compileModuleAsync(t).then(function(t){return r._bootstrapModuleFactoryWithZone(t,n)})},e.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Ji);if(t.bootstrapFactories.length>0)t.bootstrapFactories.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+u(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},e}(Zi);Yi.decorators=[{type:Io}],Yi.ctorParameters=function(){return[{type:Uo}]};var Ji=function(){function t(){}return t.prototype.bootstrap=function(t){},t.prototype.tick=function(){},t.prototype.componentTypes=function(){},t.prototype.components=function(){},t.prototype.attachView=function(t){},t.prototype.detachView=function(t){},t.prototype.viewCount=function(){},t.prototype.isStable=function(){},t}(),ts=function(t){function o(o,i,a,u,c,l){var p=t.call(this)||this;p._zone=o,p._console=i,p._injector=a,p._exceptionHandler=u,p._componentFactoryResolver=c,p._initStatus=l,p._bootstrapListeners=[],p._rootComponents=[],p._rootComponentTypes=[],p._views=[],p._runningTick=!1,p._enforceNoNewChanges=!1,p._stable=!0,p._enforceNoNewChanges=ct(),p._zone.onMicrotaskEmpty.subscribe({next:function(){p._zone.run(function(){p.tick()})}});var h=new e.Observable(function(t){p._stable=p._zone.isStable&&!p._zone.hasPendingMacrotasks&&!p._zone.hasPendingMicrotasks,p._zone.runOutsideAngular(function(){t.next(p._stable),t.complete()})}),f=new e.Observable(function(t){var e=p._zone.onStable.subscribe(function(){Hi.assertNotInAngularZone(),s(function(){p._stable||p._zone.hasPendingMacrotasks||p._zone.hasPendingMicrotasks||(p._stable=!0,t.next(!0))})}),n=p._zone.onUnstable.subscribe(function(){Hi.assertInAngularZone(),p._stable&&(p._stable=!1,p._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});return p._isStable=n.merge(h,r.share.call(f)),p}return Zr(o,t),o.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},o.prototype.detachView=function(t){var e=t;yt(this._views,e),e.detachFromAppRef()},o.prototype.bootstrap=function(t){var e=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.");var n;n=t instanceof Ei?t:this._componentFactoryResolver.resolveComponentFactory(t),this._rootComponentTypes.push(n.componentType);var r=n instanceof Mi?null:this._injector.get(Ri),o=n.create(Uo.NULL,[],n.selector,r);o.onDestroy(function(){e._unloadComponent(o)});var i=o.injector.get(Bi,null);return i&&o.injector.get(qi).registerApplication(o.location.nativeElement,i),this._loadComponent(o),ct()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},o.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this._rootComponents.push(t);var e=this._injector.get(vi,[]).concat(this._bootstrapListeners);e.forEach(function(e){return e(t)})},o.prototype._unloadComponent=function(t){this.detachView(t.hostView),yt(this._rootComponents,t)},o.prototype.tick=function(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var t=o._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}finally{this._runningTick=!1,Li(t)}},o.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(o.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),Object.defineProperty(o.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),o}(Ji);ts._tickScope=ji("ApplicationRef#tick()"),ts.decorators=[{type:Io}],ts.ctorParameters=function(){return[{type:Hi},{type:mi},{type:Uo},{type:Go},{type:Pi},{type:li}]};var es=function(){function t(t,e,n,r,o,i){this.id=t,this.templateUrl=e,this.slotCount=n,this.encapsulation=r,this.styles=o,this.animations=i}return t}(),ns=function(){function t(){}return t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.source=function(){},t}(),rs=function(){function t(){}return t.prototype.selectRootElement=function(t,e){},t.prototype.createElement=function(t,e,n){},t.prototype.createViewRoot=function(t){},t.prototype.createTemplateAnchor=function(t,e){},t.prototype.createText=function(t,e,n){},t.prototype.projectNodes=function(t,e){},t.prototype.attachViewAfter=function(t,e){},t.prototype.detachView=function(t){},t.prototype.destroyView=function(t,e){},t.prototype.listen=function(t,e,n){},t.prototype.listenGlobal=function(t,e,n){},t.prototype.setElementProperty=function(t,e,n){},t.prototype.setElementAttribute=function(t,e,n){},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){},t.prototype.setElementStyle=function(t,e,n){},t.prototype.invokeElementMethod=function(t,e,n){},t.prototype.setText=function(t,e){},t.prototype.animate=function(t,e,n,r,o,i,s){},t}(),os=(new Jr("Renderer2Interceptor"),function(){function t(){}return t.prototype.renderComponent=function(t){},t}()),is=function(){function t(){}return t.prototype.createRenderer=function(t,e){},t}(),ss={};ss.Important=1,ss.DashCase=2,ss[ss.Important]="Important",ss[ss.DashCase]="DashCase";var as=function(){function t(){}return t.prototype.data=function(){},t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){},t.prototype.createComment=function(t){},t.prototype.createText=function(t){},t.prototype.appendChild=function(t,e){},t.prototype.insertBefore=function(t,e,n){},t.prototype.removeChild=function(t,e){},t.prototype.selectRootElement=function(t){},t.prototype.parentNode=function(t){},t.prototype.nextSibling=function(t){},t.prototype.setAttribute=function(t,e,n,r){},t.prototype.removeAttribute=function(t,e,n){},t.prototype.addClass=function(t,e){},t.prototype.removeClass=function(t,e){},t.prototype.setStyle=function(t,e,n,r){},t.prototype.removeStyle=function(t,e,n){},t.prototype.setProperty=function(t,e,n){},t.prototype.setValue=function(t,e){},t.prototype.listen=function(t,e,n){},t}(),us=function(){function t(t){this.nativeElement=t}return t}(),cs=function(){function t(){}return t.prototype.load=function(t){},t}(),ls=new Map,ps=function(){function t(){this._dirty=!0,this._results=[],this._emitter=new Ui}return Object.defineProperty(t.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[i()]=function(){return this._results[i()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=_t(t),this._dirty=!1},t.prototype.notifyOnChanges=function(){this._emitter.emit(this)},t.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(t.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),t}(),hs="#",fs="NgFactory",ds=function(){function t(){}return t}(),vs={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},ys=function(){function t(t,e){this._compiler=t,this._config=e||vs}return t.prototype.load=function(t){var e=this._compiler instanceof _i;return e?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,n=t.split(hs),r=n[0],o=n[1];return void 0===o&&(o="default"),System.import(r).then(function(t){return t[o]}).then(function(t){return bt(t,r,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split(hs),n=e[0],r=e[1],o=fs;return void 0===r&&(r="default",o=""),System.import(this._config.factoryPathPrefix+n+this._config.factoryPathSuffix).then(function(t){return t[r+o]}).then(function(t){return bt(t,n,r)})},t}();ys.decorators=[{type:Io}],ys.ctorParameters=function(){return[{type:_i},{type:ds,decorators:[{type:ko}]}]};var ms=function(){function t(){}return t.prototype.elementRef=function(){},t.prototype.createEmbeddedView=function(t){},t}(),gs=function(){function t(){}return t.prototype.element=function(){},t.prototype.injector=function(){},t.prototype.parentInjector=function(){},t.prototype.clear=function(){},t.prototype.get=function(t){},t.prototype.length=function(){},t.prototype.createEmbeddedView=function(t,e,n){},t.prototype.createComponent=function(t,e,n,r,o){},t.prototype.insert=function(t,e){},t.prototype.move=function(t,e){},t.prototype.indexOf=function(t){},t.prototype.remove=function(t){},t.prototype.detach=function(t){},t}(),_s=function(){function t(){}return t.prototype.markForCheck=function(){},t.prototype.detach=function(){},t.prototype.detectChanges=function(){},t.prototype.checkNoChanges=function(){},t.prototype.reattach=function(){},t}(),bs=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zr(e,t),e.prototype.destroy=function(){},e.prototype.destroyed=function(){},e.prototype.onDestroy=function(t){},e}(_s),ws=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zr(e,t),e.prototype.context=function(){},e.prototype.rootNodes=function(){},e}(bs),Cs=function(){function t(t,e){this.name=t,this.callback=e}return t}(),Es=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof Ss?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext?this._debugContext.injector:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext?this._debugContext.component:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext?this._debugContext.context:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext?this._debugContext.references:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext?this._debugContext.providerTokens:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"source",{get:function(){return"Deprecated since v4"},enumerable:!0,configurable:!0}),t}(),Ss=function(t){function e(e,n,r){var o=t.call(this,e,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return Zr(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);e!==-1&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n=this,r=this.childNodes.indexOf(t);r!==-1&&((o=this.childNodes).splice.apply(o,[r+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=n}));var o},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);
  n===-1?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){var e=this.queryAll(t);return e[0]||null},e.prototype.queryAll=function(t){var e=[];return Ct(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return Et(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(Es),xs=new Map,Ps=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t}(),Ts=function(){function t(){this.hasWrappedValue=!1}return t.prototype.unwrap=function(t){return t instanceof Ps?(this.hasWrappedValue=!0,t.wrapped):t},t.prototype.reset=function(){this.hasWrappedValue=!1},t}(),As=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}(),Os=function(){function t(){}return t.prototype.supports=function(t){return At(t)},t.prototype.create=function(t,e){return new Rs(e||t)},t}(),Ms=function(t,e){return e},Rs=function(){function t(t){this._trackByFn=t,this._length=null,this._collection=null,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=this._trackByFn||Ms}return Object.defineProperty(t.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,o=null;e||n;){var i=!n||e&&e.currentIndex<kt(n,r,o)?e:n,s=kt(i,r,o),a=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(e=e._next,null==i.previousIndex)r++;else{o||(o=[]);var u=s-r,c=a-r;if(u!=c){for(var l=0;l<u;l++){var p=l<o.length?o[l]:o[l]=0,h=p+l;c<=h&&h<u&&(o[l]=p+1)}var f=i.previousIndex;o[f]=c-u}}s!==a&&t(i,s,a)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(null==t&&(t=[]),!At(t))throw new Error("Error trying to diff '"+t+"'");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,r,o,i=this._itHead,s=!1;if(Array.isArray(t)){this._length=t.length;for(var u=0;u<this._length;u++)r=t[u],o=this._trackByFn(u,r),null!==i&&a(i.trackById,o)?(s&&(i=this._verifyReinsertion(i,r,o,u)),a(i.item,r)||this._addIdentityChange(i,r)):(i=this._mismatch(i,r,o,u),s=!0),i=i._next}else n=0,Mt(t,function(t){o=e._trackByFn(n,t),null!==i&&a(i.trackById,o)?(s&&(i=e._verifyReinsertion(i,t,o,n)),a(i.item,t)||e._addIdentityChange(i,t)):(i=e._mismatch(i,t,o,n),s=!0),i=i._next,n++}),this._length=n;return this._truncate(i),this._collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,n,r){var o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),t=null===this._linkedRecords?null:this._linkedRecords.get(n,r),null!==t?(a(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,o,r)):(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n),null!==t?(a(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,o,r)):t=this._addAfter(new ks(e,n),o,r)),t},t.prototype._verifyReinsertion=function(t,e,n,r){var o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n);return null!==o?t=this._reinsertAfter(o,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,o=t._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),null===this._additionsTail?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,n){var r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ns),this._linkedRecords.put(t),t.currentIndex=n,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(null===this._movesTail?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ns),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t},t.prototype.toString=function(){var t=[];this.forEachItem(function(e){return t.push(e)});var e=[];this.forEachPreviousItem(function(t){return e.push(t)});var n=[];this.forEachAddedItem(function(t){return n.push(t)});var r=[];this.forEachMovedItem(function(t){return r.push(t)});var o=[];this.forEachRemovedItem(function(t){return o.push(t)});var i=[];return this.forEachIdentityChange(function(t){return i.push(t)}),"collection: "+t.join(", ")+"\nprevious: "+e.join(", ")+"\nadditions: "+n.join(", ")+"\nmoves: "+r.join(", ")+"\nremovals: "+o.join(", ")+"\nidentityChanges: "+i.join(", ")+"\n"},t}(),ks=function(){function t(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}return t.prototype.toString=function(){return this.previousIndex===this.currentIndex?u(this.item):u(this.item)+"["+u(this.previousIndex)+"->"+u(this.currentIndex)+"]"},t}(),Is=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<n.currentIndex)&&a(n.trackById,t))return n;return null},t.prototype.remove=function(t){var e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head},t}(),Ns=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,n=this.map.get(e);n||(n=new Is,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){void 0===e&&(e=null);var n=t,r=this.map.get(n);return r?r.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById,n=this.map.get(e);return n.remove(t)&&this.map.delete(e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t.prototype.toString=function(){return"_DuplicateMap("+u(this.map)+")"},t}(),Ds=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||Rt(t)},t.prototype.create=function(t){return new js},t}(),js=function(){function t(){this._records=new Map,this._mapHead=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||Rt(t)))throw new Error("Error trying to diff '"+t+"'")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._records,r=this._mapHead,o=null,i=null,s=!1;return this._forEach(t,function(t,a){var u;r&&a===r.key?(u=r,e._maybeAddToChanges(u,t)):(s=!0,null!==r&&(e._removeFromSeq(o,r),e._addToRemovals(r)),n.has(a)?(u=n.get(a),e._maybeAddToChanges(u,t)):(u=new Ls(a),n.set(a,u),u.currentValue=t,e._addToAdditions(u))),s&&(e._isInRemovals(u)&&e._removeFromRemovals(u),null==i?e._mapHead=u:i._next=u),o=r,i=u,r=r&&r._next}),this._truncate(o,r),this.isDirty},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(t=this._previousMapHead=this._mapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=this._removalsTail=null}},t.prototype._truncate=function(t,e){for(;null!==e;){null===t?this._mapHead=null:t._next=null;var n=e._next;this._addToRemovals(e),t=e,e=n}for(var r=this._removalsHead;null!==r;r=r._nextRemoved)r.previousValue=r.currentValue,r.currentValue=null,this._records.delete(r.key)},t.prototype._maybeAddToChanges=function(t,e){a(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._isInRemovals=function(t){return t===this._removalsHead||null!==t._nextRemoved||null!==t._prevRemoved},t.prototype._addToRemovals=function(t){null===this._removalsHead?this._removalsHead=this._removalsTail=t:(this._removalsTail._nextRemoved=t,t._prevRemoved=this._removalsTail,this._removalsTail=t)},t.prototype._removeFromSeq=function(t,e){var n=e._next;null===t?this._mapHead=n:t._next=n,e._next=null},t.prototype._removeFromRemovals=function(t){var e=t._prevRemoved,n=t._nextRemoved;null===e?this._removalsHead=n:e._nextRemoved=n,null===n?this._removalsTail=e:n._prevRemoved=e,t._prevRemoved=t._nextRemoved=null},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype.toString=function(){var t,e=[],n=[],r=[],o=[],i=[];for(t=this._mapHead;null!==t;t=t._next)e.push(u(t));for(t=this._previousMapHead;null!==t;t=t._nextPrevious)n.push(u(t));for(t=this._changesHead;null!==t;t=t._nextChanged)r.push(u(t));for(t=this._additionsHead;null!==t;t=t._nextAdded)o.push(u(t));for(t=this._removalsHead;null!==t;t=t._nextRemoved)i.push(u(t));return"map: "+e.join(", ")+"\nprevious: "+n.join(", ")+"\nadditions: "+o.join(", ")+"\nchanges: "+r.join(", ")+"\nremovals: "+i.join(", ")+"\n"},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})},t}(),Ls=function(){function t(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._nextAdded=null,this._nextRemoved=null,this._prevRemoved=null,this._nextChanged=null}return t.prototype.toString=function(){return a(this.previousValue,this.currentValue)?u(this.key):u(this.key)+"["+u(this.previousValue)+"->"+u(this.currentValue)+"]"},t}(),Vs=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var r=n.factories.slice();return e=e.concat(r),new t(e)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Do,new ko]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(null!=e)return e;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+It(t)+"'")},t}(),Fs=function(){function t(t){this.factories=t}return t.create=function(e,n){if(n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Do,new ko]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t}(),Us=[new Ds],Hs=[new Os],Bs=new Vs(Hs),qs=new Fs(Us),zs=[{provide:di,useValue:"unknown"},Yi,{provide:Zi,useExisting:Yi},{provide:Jo,useFactory:Nt,deps:[]},{provide:Yo,useExisting:Jo},qi,mi],Gs=pt(null,"core",zs),Ws=new Jr("LocaleId"),Ks=new Jr("Translations"),Qs=new Jr("TranslationsFormat"),Xs={};Xs.Error=0,Xs.Warning=1,Xs.Ignore=2,Xs[Xs.Error]="Error",Xs[Xs.Warning]="Warning",Xs[Xs.Ignore]="Ignore";var $s={};$s.NONE=0,$s.HTML=1,$s.STYLE=2,$s.SCRIPT=3,$s.URL=4,$s.RESOURCE_URL=5,$s[$s.NONE]="NONE",$s[$s.HTML]="HTML",$s[$s.STYLE]="STYLE",$s[$s.SCRIPT]="SCRIPT",$s[$s.URL]="URL",$s[$s.RESOURCE_URL]="RESOURCE_URL";var Zs=function(){function t(){}return t.prototype.sanitize=function(t,e){},t}(),Ys=function(){function t(){}return t.prototype.view=function(){},t.prototype.nodeIndex=function(){},t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.componentRenderElement=function(){},t.prototype.renderNode=function(){},t.prototype.logError=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n]},t}(),Js={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0},ta=function(){},ea=new Map,na="$$undefined",ra="$$empty",oa=0,ia=new WeakMap,sa=/^:([^:]+):(.+)$/,aa=[],ua={},ca=new Object,la=function(t){function e(e,n,r,o,i,s){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=o,a._outputs=i,a.ngContentSelectors=s,a.viewDefFactory=r,a}return Zr(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[];for(var e in this._inputs){var n=this._inputs[e];t.push({propName:e,templateName:n})}return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs){var n=this._outputs[e];t.push({propName:e,templateName:n})}return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var o=le(this.viewDefFactory),i=o.nodes[0].element.componentProvider.index,s=Js.createRootView(t,e||[],n,o,r,ca),a=Lt(s,i).instance;return s.renderer.setAttribute(jt(s,0).renderElement,"ng-version",Mo.full),new pa(s,new fa(s),a)},e}(Ei),pa=function(t){function e(e,n,r){var o=t.call(this)||this;return o._view=e,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o}return Zr(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new us(jt(this._view,this._elDef.index).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new va(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"instance",{get:function(){return this._component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostView",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"changeDetectorRef",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(Ci),ha=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new us(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new va(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=ne(t),t=t.parent;return t?new va(t,e):new va(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length,e=t-1;e>=0;e--){var n=Le(this._data,e);Js.destroyView(n)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new fa(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,o){var i=n||this.parentInjector;o||t instanceof Mi||(o=i.get(Ri));var s=t.create(i,r,void 0,o);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){var n=t,r=n._view;return je(this._view,this._data,e,r),n.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){var n=this._embeddedViews.indexOf(t._view);return Ve(this._data,n,e),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Le(this._data,t);e&&Js.destroyView(e)},t.prototype.detach=function(t){var e=Le(this._data,t);return e?new fa(e):null},t}(),fa=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return pe(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!==(8&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){Jt(this._view)},t.prototype.detach=function(){this._view.state&=-3},t.prototype.detectChanges=function(){Js.checkAndUpdateView(this._view)},t.prototype.checkNoChanges=function(){Js.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=2},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Js.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Ue(this._view),Js.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}(),da=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return Zr(e,t),e.prototype.createEmbeddedView=function(t){return new fa(Js.createEmbeddedView(this._parentView,this._def,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new us(jt(this._parentView,this._def.index).renderElement)},enumerable:!0,configurable:!0}),e}(ms),va=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){void 0===e&&(e=Uo.THROW_IF_NOT_FOUND);var n=!!this.elDef&&0!==(16777216&this.elDef.flags);return Js.resolveDep(this.view,this.elDef,n,{flags:0,token:t,tokenKey:Wt(t)},e)},t}(),ya=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=me(e),r=n[0],o=n[1],i=this.delegate.createElement(o,r);return t&&this.delegate.appendChild(t,i),i},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n<e.length;n++)this.delegate.appendChild(t,e[n])},t.prototype.attachViewAfter=function(t,e){for(var n=this.delegate.parentNode(t),r=this.delegate.nextSibling(t),o=0;o<e.length;o++)this.delegate.insertBefore(n,e[o],r)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},t.prototype.destroyView=function(t,e){for(var n=0;n<e.length;n++)this.delegate.destroyNode(e[n])},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.listenGlobal=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.setElementProperty=function(t,e,n){this.delegate.setProperty(t,e,n)},t.prototype.setElementAttribute=function(t,e,n){var r=me(e),o=r[0],i=r[1];null!=n?this.delegate.setAttribute(t,i,n,o):this.delegate.removeAttribute(t,i,o)},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){n?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,n){null!=n?this.delegate.setStyle(t,e,n):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,n){t[e].apply(t,n)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}(),ma=Wt(rs),ga=Wt(as),_a=Wt(us),ba=Wt(gs),wa=Wt(ms),Ca=Wt(_s),Ea=Wt(Uo),Sa=new Object,xa={},Pa={};Pa.CreateViewNodes=0,Pa.CheckNoChanges=1,Pa.CheckAndUpdate=2,Pa.Destroy=3,Pa[Pa.CreateViewNodes]="CreateViewNodes",Pa[Pa.CheckNoChanges]="CheckNoChanges",Pa[Pa.CheckAndUpdate]="CheckAndUpdate",Pa[Pa.Destroy]="Destroy";var Ta=!1,Aa={};Aa.create=0,Aa.detectChanges=1,Aa.checkNoChanges=2,Aa.destroy=3,Aa.handleEvent=4,Aa[Aa.create]="create",Aa[Aa.detectChanges]="detectChanges",Aa[Aa.checkNoChanges]="checkNoChanges",Aa[Aa.destroy]="destroy",Aa[Aa.handleEvent]="handleEvent";var Oa,Ma,Ra,ka=/([A-Z])/g,Ia=function(){function t(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];for(var n=this.nodeDef,r=t;n&&0===(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=ne(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return jt(this.elView,this.elDef.index).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return Qe(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];10112&n.flags&&t.push(n.provider.token),e+=n.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){Ar(this.elView,this.elDef,t);for(var e=this.elDef.index+1;e<=this.elDef.index+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];10112&n.flags&&Ar(this.elView,n,t),e+=n.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=Tr(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?re(this.view,this.nodeDef):re(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r,o;2&this.nodeDef.flags?(r=this.view.def,o=this.nodeDef.index):(r=this.elView.def,o=this.elDef.index);var i=Pr(r,o),s=-1,a=function(){return s++,s===i?(n=t.error).bind.apply(n,[t].concat(e)):ta;var n};r.factory(a),s<i&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,e))},t}(),Na=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new Da(this.delegate.createRenderer(t,e))},t}(),Da=function(){function t(t){this.delegate=t}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroyNode=function(t){Pt(St(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,e){var n=this.delegate.createElement(t,e),r=Mr();if(r){var o=new Ss(n,null,r);o.name=t,xt(o)}return n},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),n=Mr();return n&&xt(new Es(e,null,n)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),n=Mr();return n&&xt(new Es(e,null,n)),e},t.prototype.appendChild=function(t,e){var n=St(t),r=St(e);n&&r&&n instanceof Ss&&n.addChild(r),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,n){var r=St(t),o=St(e),i=St(n);r&&o&&r instanceof Ss&&r.insertBefore(i,o),this.delegate.insertBefore(t,e,n)},t.prototype.removeChild=function(t,e){var n=St(t),r=St(e);n&&r&&n instanceof Ss&&n.removeChild(r),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t){var e=this.delegate.selectRootElement(t),n=Mr();return n&&xt(new Ss(e,null,n)),e},t.prototype.setAttribute=function(t,e,n,r){var o=St(t);if(o&&o instanceof Ss){var i=r?r+":"+e:e;o.attributes[i]=n}this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){var r=St(t);if(r&&r instanceof Ss){var o=n?n+":"+e:e;r.attributes[o]=null}this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){var n=St(t);n&&n instanceof Ss&&(n.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var n=St(t);n&&n instanceof Ss&&(n.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){var o=St(t);o&&o instanceof Ss&&(o.styles[e]=n),this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){var r=St(t);r&&r instanceof Ss&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){var r=St(t);r&&r instanceof Ss&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)},t.prototype.listen=function(t,e,n){if("string"!=typeof t){var r=St(t);r&&r.listeners.push(new Cs(e,n))}return this.delegate.listen(t,e,n)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,e){return this.delegate.setValue(t,e)},t}(),ja=function(){function t(t){}return t}();ja.decorators=[{type:Po,args:[{providers:[ts,{provide:Ji,useExisting:ts},li,_i,hi,{provide:Vs,useFactory:Rr},{provide:Fs,useFactory:kr},{provide:Ws,useFactory:Ir,deps:[[new Ro(Ws),new ko,new Do]]},{provide:ci,useValue:Nr,multi:!0}]}]}],ja.ctorParameters=function(){return[{type:Ji}]};var La={};La.OnInit=0,La.OnDestroy=1,La.DoCheck=2,La.OnChanges=3,La.AfterContentInit=4,La.AfterContentChecked=5,La.AfterViewInit=6,La.AfterViewChecked=7,La[La.OnInit]="OnInit",La[La.OnDestroy]="OnDestroy",La[La.DoCheck]="DoCheck",La[La.OnChanges]="OnChanges",La[La.AfterContentInit]="AfterContentInit",La[La.AfterContentChecked]="AfterContentChecked",La[La.AfterViewInit]="AfterViewInit",La[La.AfterViewChecked]="AfterViewChecked";var Va=[La.OnInit,La.OnDestroy,La.DoCheck,La.OnChanges,La.AfterContentInit,La.AfterContentChecked,La.AfterViewInit,La.AfterViewChecked],Fa="*";t.Class=p,t.createPlatform=lt,t.assertPlatform=ht,t.destroyPlatform=ft,t.getPlatform=dt,t.PlatformRef=Zi,t.ApplicationRef=Ji,t.enableProdMode=ut,t.isDevMode=ct,t.createPlatformFactory=pt,t.NgProbeToken=$i,t.APP_ID=pi,t.PACKAGE_ROOT_URL=yi,t.PLATFORM_INITIALIZER=fi,t.PLATFORM_ID=di,t.APP_BOOTSTRAP_LISTENER=vi,t.APP_INITIALIZER=ci,t.ApplicationInitStatus=li,t.DebugElement=Ss,t.DebugNode=Es,t.asNativeElements=wt,t.getDebugNode=St,t.Testability=Bi,t.TestabilityRegistry=qi,t.setTestabilityGetter=at,t.TRANSLATIONS=Ks,t.TRANSLATIONS_FORMAT=Qs,t.LOCALE_ID=Ws,t.MissingTranslationStrategy=Xs,t.ApplicationModule=ja,t.wtfCreateScope=ji,t.wtfLeave=Li,t.wtfStartTimeRange=Vi,t.wtfEndTimeRange=Fi,t.Type=Xo,t.EventEmitter=Ui,t.ErrorHandler=Go,t.Sanitizer=Zs,t.SecurityContext=$s,t.ANALYZE_FOR_ENTRY_COMPONENTS=ao,t.Attribute=uo,t.ContentChild=po,t.ContentChildren=lo,t.Query=co,t.ViewChild=fo,t.ViewChildren=ho,t.Component=go,
  t.Directive=mo,t.HostBinding=Co,t.HostListener=Eo,t.Input=bo,t.Output=wo,t.Pipe=_o,t.CUSTOM_ELEMENTS_SCHEMA=So,t.NO_ERRORS_SCHEMA=xo,t.NgModule=Po,t.ViewEncapsulation=To,t.Version=Oo,t.VERSION=Mo,t.forwardRef=m,t.resolveForwardRef=g,t.Injector=Uo,t.ReflectiveInjector=si,t.ResolvedReflectiveFactory=oi,t.ReflectiveKey=Wo,t.InjectionToken=Jr,t.OpaqueToken=Yr,t.Inject=Ro,t.Optional=ko,t.Injectable=Io,t.Self=No,t.SkipSelf=Do,t.Host=jo,t.NgZone=Hi,t.RenderComponentType=es,t.Renderer=rs,t.Renderer2=as,t.RendererFactory2=is,t.RendererStyleFlags2=ss,t.RootRenderer=os,t.COMPILER_OPTIONS=bi,t.Compiler=_i,t.CompilerFactory=wi,t.ModuleWithComponentFactories=gi,t.ComponentFactory=Ei,t.ComponentRef=Ci,t.ComponentFactoryResolver=Pi,t.ElementRef=us,t.NgModuleFactory=ki,t.NgModuleRef=Ri,t.NgModuleFactoryLoader=cs,t.getModuleFactory=gt,t.QueryList=ps,t.SystemJsNgModuleLoader=ys,t.SystemJsNgModuleLoaderConfig=ds,t.TemplateRef=ms,t.ViewContainerRef=gs,t.EmbeddedViewRef=ws,t.ViewRef=bs,t.ChangeDetectionStrategy=vo,t.ChangeDetectorRef=_s,t.DefaultIterableDiffer=Rs,t.IterableDiffers=Vs,t.KeyValueDiffers=Fs,t.SimpleChange=As,t.WrappedValue=Ps,t.platformCore=Gs,t.ɵALLOW_MULTIPLE_PLATFORMS=Xi,t.ɵAPP_ID_RANDOM_PROVIDER=hi,t.ɵValueUnwrapper=Ts,t.ɵdevModeEqual=Tt,t.ɵisListLikeIterable=At,t.ɵChangeDetectorStatus=yo,t.ɵisDefaultChangeDetectionStrategy=y,t.ɵConsole=mi,t.ɵERROR_COMPONENT_TYPE=Ho,t.ɵComponentFactory=Ei,t.ɵCodegenComponentFactoryResolver=Oi,t.ɵLIFECYCLE_HOOKS_VALUES=Va,t.ɵLifecycleHooks=La,t.ɵViewMetadata=Ao,t.ɵReflector=Jo,t.ɵreflector=ti,t.ɵReflectionCapabilities=Zo,t.ɵReflectorReader=Yo,t.ɵRenderDebugInfo=ns,t.ɵglobal=ro,t.ɵlooseIdentical=a,t.ɵstringify=u,t.ɵmakeDecorator=h,t.ɵisObservable=X,t.ɵisPromise=Q,t.ɵmerge=$,t.ɵNOT_FOUND_CHECK_ONLY_ELEMENT_INJECTOR=xa,t.ɵNgModuleInjector=Ni,t.ɵregisterModuleFactory=mt,t.ɵEMPTY_ARRAY=aa,t.ɵEMPTY_MAP=ua,t.ɵand=Ce,t.ɵccf=qe,t.ɵcrt=Qt,t.ɵdid=Ze,t.ɵeld=Ee,t.ɵelementEventFullName=oe,t.ɵgetComponentViewDefinitionFactory=ze,t.ɵinlineInterpolate=be,t.ɵinterpolate=_e,t.ɵncd=Ne,t.ɵnov=Xe,t.ɵpid=Ye,t.ɵprd=Je,t.ɵpad=gn,t.ɵpod=_n,t.ɵppd=mn,t.ɵqud=Sn,t.ɵted=Mn,t.ɵunv=Kt,t.ɵvid=Dn,t.AUTO_STYLE=Fa,t.trigger=qr,t.animate=zr,t.group=Gr,t.sequence=Wr,t.style=Kr,t.state=Qr,t.keyframes=Xr,t.transition=$r,t.ɵba=jr,t.ɵbb=Lr,t.ɵbf=Hr,t.ɵbc=Vr,t.ɵbe=Ur,t.ɵbd=Fr,t.ɵbg=Br,t.ɵz=Dr,t.ɵo=Nr,t.ɵl=Rr,t.ɵm=kr,t.ɵn=Ir,t.ɵf=ts,t.ɵg=Z,t.ɵh=Bs,t.ɵi=qs,t.ɵj=Os,t.ɵk=Ds,t.ɵc=ai,t.ɵd=ei,t.ɵe=U,t.ɵp=Di,t.ɵr=nt,t.ɵq=et,t.ɵu=it,t.ɵs=rt,t.ɵt=ot,t.ɵa=d,t.ɵb=v,t.ɵw=tn,t.ɵx=Ys,Object.defineProperty(t,"__esModule",{value:!0})})}(),t.registerDynamic("1b",["3"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s});Object.defineProperty(e,"__esModule",{value:!0});var o=t("3"),i=function(){function t(){}return t.prototype.canActivate=function(){return!0},t}();return i=r([o.Injectable()],i),e.StubApiGuard=i,n.exports}),t.registerDynamic("5f",["3","6","5","29","10","13","17","1c","1d","4d","1b"],!0,function(t,e,n){"use strict";var r=(this||self,this&&this.__decorate||function(t,e,n,r){var o,i=arguments.length,s=i<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,n,r);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,n,s):o(e,n))||s);return i>3&&s&&Object.defineProperty(e,n,s),s});Object.defineProperty(e,"__esModule",{value:!0});var o=t("3"),i=t("6"),s=t("5"),a=t("29"),u=t("10"),c=t("13"),l=t("17"),p=t("1c"),h=t("1d"),f=t("4d"),d=t("1b"),v=function(){function t(){}return t}();return v=r([o.NgModule({imports:[i.BrowserModule,a.HttpModule,l.AboutModule,p.HomeModule,f.StubAPIModule,h.SharedModule.forRoot(),c.AppRoutingModule],declarations:[u.AppComponent],providers:[{provide:s.APP_BASE_HREF,useValue:"/"},d.StubApiGuard],bootstrap:[u.AppComponent]})],v),e.AppModule=v,n.exports}),t.registerDynamic("1",["3","4","5f"],!0,function(t,e,n){"use strict";this||self,Object.defineProperty(e,"__esModule",{value:!0});var r=t("3"),o=t("4"),i=t("5f");return"prod"===String("prod")&&r.enableProdMode(),o.platformBrowserDynamic().bootstrapModule(i.AppModule),n.exports})})(function(t){module.exports=t()});