UNPKG

smart-house-frontend

Version:
33 lines 1.17 MB
!function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var n=window.webpackJsonp;window.webpackJsonp=function(r,o){for(var s,a,c=0,u=[];c<r.length;c++)a=r[c],i[a]&&u.push.apply(u,i[a]),i[a]=0;for(s in o){var l=o[s];switch(typeof l){case"object":t[s]=function(e){var n=e.slice(1),r=e[0];return function(e,i,o){t[r].apply(this,[e,i,o].concat(n))}}(l);break;case"function":t[s]=l;break;default:t[s]=t[l]}}for(n&&n(r,o);u.length;)u.shift().call(null,e)};var r={},i={0:0};return e.e=function(t,n){if(0===i[t])return n.call(null,e);if(void 0!==i[t])i[t].push(n);else{i[t]=[n];var r=document.getElementsByTagName("head")[0],o=document.createElement("script");o.type="text/javascript",o.charset="utf-8",o.async=!0,o.src=e.p+""+t+"."+({}[t]||t)+".bundle.js",r.appendChild(o)}},e.m=t,e.c=r,e.p="",e(0)}(function(t){for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e))switch(typeof t[e]){case"function":break;case"object":t[e]=function(e){var n=e.slice(1),r=t[e[0]];return function(t,e,i){r.apply(this,[t,e,i].concat(n))}}(t[e]);break;default:t[e]=t[t[e]]}return t}([function(t,e,n){"use strict";var r=n(1),i=n(23);r.platformBrowserDynamic().bootstrapModule(i.AppModule)},function(t,e,n){(function(t){/** * @license Angular v2.0.0 * (c) 2010-2016 Google, Inc. https://angular.io/ * License: MIT */ !function(t,r){r(e,n(2),n(3),n(21))}(this,function(e,n,r,i){"use strict";function o(t){return void 0!==t&&null!==t}var s,a=i.__platform_browser_private__.INTERNAL_BROWSER_PLATFORM_PROVIDERS;s="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:t:window;var c=s;c.assert=function(t){};var u=(function(){function t(){}return t.toFixed=function(t,e){return t.toFixed(e)},t.equal=function(t,e){return t===e},t.parseIntAutoRadix=function(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e},t.parseInt=function(t,e){if(10==e){if(/^(\-|\+)?[0-9]+$/.test(t))return parseInt(t,e)}else if(16==e){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(t))return parseInt(t,e)}else{var n=parseInt(t,e);if(!isNaN(n))return n}throw new Error("Invalid integer literal when parsing "+t+" in base "+e)},Object.defineProperty(t,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),t.isNumeric=function(t){return!isNaN(t-parseFloat(t))},t.isNaN=function(t){return isNaN(t)},t.isInteger=function(t){return Number.isInteger(t)},t}(),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)}),l=function(t){function e(){t.apply(this,arguments)}return u(e,t),e.prototype.get=function(t){var e,n,r=new Promise(function(t,r){e=t,n=r}),i=new XMLHttpRequest;return i.open("GET",t,!0),i.responseType="text",i.onload=function(){var r=o(i.response)?i.response:i.responseText,s=1223===i.status?204:i.status;0===s&&(s=r?200:0),200<=s&&s<=300?e(r):n("Failed to load "+t)},i.onerror=function(){n("Failed to load "+t)},i.send(),r},e.decorators=[{type:r.Injectable}],e.ctorParameters=[],e}(n.ResourceLoader),p=[a,{provide:r.COMPILER_OPTIONS,useValue:{providers:[{provide:n.ResourceLoader,useClass:l}]},multi:!0}],h=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)},f=function(t){function e(){if(t.call(this),this._cache=c.$templateCache,null==this._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.")}return h(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}(n.ResourceLoader),d={INTERNAL_BROWSER_DYNAMIC_PLATFORM_PROVIDERS:p,ResourceLoaderImpl:l},m=[{provide:n.ResourceLoader,useClass:f}],y=r.createPlatformFactory(n.platformCoreDynamic,"browserDynamic",p);e.RESOURCE_CACHE_PROVIDER=m,e.platformBrowserDynamic=y,e.__platform_browser_dynamic_private__=d})}).call(e,function(){return this}())},function(t,e,n){(function(t){/** * @license Angular v2.0.0 * (c) 2010-2016 Google, Inc. https://angular.io/ * License: MIT */ !function(t,r){r(e,n(3))}(this,function(e,n){"use strict";function r(t){return void 0!==t&&null!==t}function i(t){return void 0===t||null===t}function o(t){return"string"==typeof t}function s(t){return"object"==typeof t&&null!==t}function a(t){return s(t)&&Object.getPrototypeOf(t)===Lr}function c(t){return Array.isArray(t)}function u(t){if("string"==typeof t)return t;if(void 0===t||null===t)return""+t;if(t.overriddenName)return t.overriddenName;if(t.name)return t.name;var e=t.toString(),n=e.indexOf("\n");return n===-1?e:e.substring(0,n)}function l(t){return i(t)?null:t}function p(t){return!i(t)&&t}function h(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function f(t,e,n,r){var i=n+"\nreturn "+e+"\n//# sourceURL="+t,o=[],s=[];for(var a in r)o.push(a),s.push(r[a]);return(new(Function.bind.apply(Function,[void 0].concat(o.concat(i))))).apply(void 0,s)}function d(t){return!h(t)}function m(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function y(t,e,n){void 0===n&&(n=null);var i=[];return e.forEach(function(e){var o=e.visit(t,n);r(o)&&i.push(o)}),i}function v(t,e){if(r(t))for(var n=0;n<t.length;n++){var i=t[n];c(i)?v(i,e):e.push(i)}return e}function g(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 b(t){return null===t?null:g(t)[0]}function _(t,e){return t?":"+t+":"+e:e}function w(t){return vi[t.toLowerCase()]||gi}function x(t,e,n){var r=new ko(t,e);return n.visitExpression(r,null)}function C(t){var e=new To;return e.visitAllStatements(t,null),e.varNames}function E(t,e){return void 0===e&&(e=null),new Bi(t,e)}function S(t,e){return void 0===e&&(e=null),new $i(t,null,e)}function O(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),r(t)?new Ri(t,e,n):null}function k(t,e){return void 0===e&&(e=null),new oo(t,e)}function T(t,e){return void 0===e&&(e=null),new so(t,e)}function P(t){return new Zi(t)}function R(t,e,n){return void 0===n&&(n=null),new eo(t,e,n)}function A(t,e){return void 0===e&&(e=null),new Yi(t,e)}function I(t){return Ur.replaceAllMapped(t,Ro,function(t){return"-"+t[1].toLowerCase()})}function M(t,e){var n=t.indexOf(":");return n==-1?e:[t.slice(0,n).trim(),t.slice(n+1).trim()]}function j(t){return Ur.replaceAll(t,/\W/g,"_")}function N(t,e,n){return c(t)?e.visitArray(t,n):a(t)?e.visitStringMap(t,n):i(t)||d(t)?e.visitPrimitive(t,n):e.visitOther(t,n)}function D(t,e,n){return void 0===e&&(e=null),void 0===n&&(n="src"),null==e?"asset:@angular/lib/"+t+"/index":"asset:@angular/lib/"+t+"/src/"+e}function V(t){return r(t.value)?A(t.value):t.identifierIsInstance?S(t.identifier).instantiate([],O(t.identifier,[],[di.Const])):S(t.identifier)}function F(){throw new Error("unimplemented")}function L(t){var e=wi.parse(t.selector)[0].getMatchingElementTemplate();return ns.create({type:new Zo({reference:Object,name:t.type.name+"_Host",moduleUrl:t.type.moduleUrl,isHost:!0}),template:new es({encapsulation:n.ViewEncapsulation.None,template:e,templateUrl:"",styles:[],styleUrls:[],ngContentSelectors:[],animations:[]}),changeDetection:n.ChangeDetectionStrategy.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],viewQueries:[]})}function U(t){var e=new Map;return t.forEach(function(t){e.get(t.identifier.reference)||e.set(t.identifier.reference,t)}),ui.values(e)}function B(t){return r(t)?t:[]}function H(t){return s(t)&&r(t.name)&&r(t.filePath)}function z(t){return t>=Ns&&t<=Us||t==Ma}function q(t){return ca<=t&&t<=ua}function G(t){return t>=_a&&t<=Pa||t>=la&&t<=da}function W(t){return t>=_a&&t<=xa||t>=la&&t<=ha||q(t)}function X(t,e){if(n.isDevMode()&&!i(e)){if(!c(e))throw new Error("Expected '"+t+"' to be an array of strings.");for(var r=0;r<e.length;r+=1)if(!o(e[r]))throw new Error("Expected '"+t+"' to be an array of strings.")}}function K(t,e){if(r(e)&&(!c(e)||2!=e.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(n.isDevMode()&&!i(e)){var o=e[0],s=e[1];Na.forEach(function(t){if(t.test(o)||t.test(s))throw new Error("['"+o+"', '"+s+"'] contains unusable interpolation symbol.")})}}function Y(t,e){return new Ba(t,lo.Character,e,Ur.fromCharCode(e))}function $(t,e){return new Ba(t,lo.Identifier,0,e)}function Q(t,e){return new Ba(t,lo.Keyword,0,e)}function Z(t,e){return new Ba(t,lo.Operator,0,e)}function J(t,e){return new Ba(t,lo.String,0,e)}function tt(t,e){return new Ba(t,lo.Number,e,"")}function et(t,e){return new Ba(t,lo.Error,0,e)}function nt(t){return _a<=t&&t<=Pa||la<=t&&t<=da||t==ba||t==qs}function rt(t){if(0==t.length)return!1;var e=new za(t);if(!nt(e.peek))return!1;for(e.advance();e.peek!==js;){if(!it(e.peek))return!1;e.advance()}return!0}function it(t){return G(t)||q(t)||t==ba||t==qs}function ot(t){return t==wa||t==pa}function st(t){return t==Js||t==Qs}function at(t){return t===Xs||t===Hs||t===ja}function ct(t){switch(t){case Ca:return Ds;case xa:return Fs;case Ea:return Ls;case Sa:return Ns;case ka:return Vs;default:return t}}function ut(t){var e=m(t.start)+"([\\s\\S]*?)"+m(t.end);return new RegExp(e,"g")}function lt(t,e,n){void 0===n&&(n=null);var r=[];return e.forEach(function(e){var i=e.visit(t,n);i&&r.push(i)}),r}function pt(t,e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=Va),new fc(new $a(t,e),n,r,i).tokenize()}function ht(t){var e=t===js?"EOF":String.fromCharCode(t);return'Unexpected character "'+e+'"'}function ft(t){return'Unknown entity "'+t+'" - use the "&#<decimal>;" or "&#x<hex>;" syntax'}function dt(t){return!z(t)||t===js}function mt(t){return z(t)||t===sa||t===ea||t===Xs||t===Hs||t===oa}function yt(t){return(t<_a||Pa<t)&&(t<la||da<t)&&(t<ca||t>ua)}function vt(t){return t==ra||t==js||!W(t)}function gt(t){return t==ra||t==js||!G(t)}function bt(t,e,n){var r=!!n&&t.indexOf(n.start,e)==e;return t.charCodeAt(e)==Ra&&!r}function _t(t){return t===oa||G(t)}function wt(t,e){return xt(t)==xt(e)}function xt(t){return t>=_a&&t<=Pa?t-_a+la:t}function Ct(t){for(var e,n=[],r=0;r<t.length;r++){var i=t[r];e&&e.type==Za.TEXT&&i.type==Za.TEXT?(e.parts[0]+=i.parts[0],e.sourceSpan.end=i.sourceSpan.end):(e=i,n.push(e))}return n}function Et(t,e){return t.length>0&&t[t.length-1]===e}/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function St(t){return kt(Ot(t.nodes).join("")+("["+t.meaning+"]"))}function Ot(t){return t.map(function(t){return t.visit(_c,null)})}function kt(t){var e=Tt(t),n=Rt(e),r=8*e.length,i=new Array(80),o=[1732584193,4023233417,2562383102,271733878,3285377520],s=o[0],a=o[1],c=o[2],u=o[3],l=o[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,c,u,l],f=h[0],d=h[1],m=h[2],y=h[3],v=h[4],g=0;g<80;g++){g<16?i[g]=n[p+g]:i[g]=jt(i[g-3]^i[g-8]^i[g-14]^i[g-16],1);var b=It(g,a,c,u),_=b[0],w=b[1],x=[jt(s,5),_,l,w,i[g]].reduce(Mt);O=[u,c,jt(a,30),s,x],l=O[0],u=O[1],c=O[2],a=O[3],s=O[4]}k=[Mt(s,f),Mt(a,d),Mt(c,m),Mt(u,y),Mt(l,v)],s=k[0],a=k[1],c=k[2],u=k[3],l=k[4]}for(var C=At([s,a,c,u,l]),E="",p=0;p<C.length;p++){var S=C.charCodeAt(p);E+=(S>>>4&15).toString(16)+(15&S).toString(16)}return E.toLowerCase();var O,k}function Tt(t){for(var e="",n=0;n<t.length;n++){var r=Pt(t,n);r<=127?e+=String.fromCharCode(r):r<=2047?e+=String.fromCharCode(192|r>>>6,128|63&r):r<=65535?e+=String.fromCharCode(224|r>>>12,128|r>>>6&63,128|63&r):r<=2097151&&(e+=String.fromCharCode(240|r>>>18,128|r>>>12&63,128|r>>>6&63,128|63&r))}return e}function Pt(t,e){if(e<0||e>=t.length)throw new Error("index="+e+' is out of range in "'+t+'"');var n,r=t.charCodeAt(e);return r>=55296&&r<=57343&&t.length>e+1&&(n=t.charCodeAt(e+1),n>=56320&&n<=57343)?1024*(r-55296)+n-56320+65536:r}function Rt(t){for(var e=Array(t.length>>>2),n=0;n<e.length;n++)e[n]=0;for(var n=0;n<t.length;n++)e[n>>>2]|=(255&t.charCodeAt(n))<<8*(3-n&3);return e}function At(t){for(var e="",n=0;n<4*t.length;n++)e+=String.fromCharCode(t[n>>>2]>>>8*(3-n&3)&255);return e}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 Mt(t,e){var n=(65535&t)+(65535&e),r=(t>>16)+(e>>16)+(n>>16);return r<<16|65535&n}function jt(t,e){return t<<e|t>>>32-e}function Nt(t){var e=new Ac(Rc,t);return function(t,n,r){return e.toI18nMessage(t,n,r)}}function Dt(t){return t.split(Ic)[1]}function Vt(t,e,n,r){var i=new Uc(n,r);return i.extract(t,e)}function Ft(t,e,n,r,i){var o=new Uc(r,i);return o.merge(t,e,n)}function Lt(t){return t instanceof oc&&t.value&&t.value.startsWith("i18n")}function Ut(t){return t instanceof oc&&t.value&&"/i18n"===t.value}function Bt(t){return t.attrs.find(function(t){return t.name===Nc})||null}function Ht(t){if(!t)return["",""];var e=t.indexOf("|");return e==-1?["",t]:[t.slice(0,e),t.slice(e+1)]}function zt(t){return zc}/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ function qt(t){var e=t.getMessageMap(),n={};return Object.keys(e).forEach(function(t){n[t]=e[t].placeholders}),n}function Gt(t){var e=t.getMessageMap(),n={};return Object.keys(e).forEach(function(t){n[t]=e[t].placeholderToMsgIds}),n}function Wt(t){return t.map(function(t){return t.visit(Xc)}).join("")}function Xt(t){return Zc.reduce(function(t,e){return t.replace(e[0],e[1])},t)}function Kt(t){return new Xo({name:t.name,moduleUrl:t.moduleUrl,reference:al.resolveIdentifier(t.name,t.moduleUrl,t.runtime)})}function Yt(t){return new Qo({identifier:t})}function $t(t){return Yt(Kt(t))}function Qt(t,e){var n=al.resolveEnum(t.reference,e);return new Xo({name:t.name+"."+e,moduleUrl:t.moduleUrl,reference:n})}function Zt(t){var e=new Vl;return new Nl(lt(e,t),e.isExpanded,e.errors)}function Jt(t,e){var n=t.cases.map(function(t){jl.indexOf(t.value)!=-1||t.value.match(/^=\d+$/)||e.push(new Dl(t.valueSourceSpan,'Plural cases should be "=<number>" or one of '+jl.join(", ")));var n=Zt(t.expression);return e.push.apply(e,n.errors),new ic("template",[new rc("ngPluralCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new rc("[ngPlural]",t.switchValue,t.switchValueSourceSpan);return new ic("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function te(t,e){var n=t.cases.map(function(t){var n=Zt(t.expression);return e.push.apply(e,n.errors),new ic("template",[new rc("ngSwitchCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new rc("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new ic("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}function ee(t,e){var n=e.useExisting,r=e.useValue,i=e.deps;return new Yo({token:t.token,useClass:t.useClass,useExisting:n,useFactory:t.useFactory,useValue:r,deps:i,multi:t.multi})}function ne(t,e){var n=e.eager,r=e.providers;return new ti(t.token,t.multiProvider,t.eager||n,r,t.providerType,t.lifecycleHooks,t.sourceSpan)}function re(t,e,n,o){return void 0===o&&(o=null),i(o)&&(o=[]),r(t)&&t.forEach(function(t){if(c(t))re(t,e,n,o);else{var i=void 0;t instanceof Yo?i=t:t instanceof Zo?i=new Yo({token:new Qo({identifier:t}),useClass:t}):n.push(new Ll("Unknown provider type "+t,e)),r(i)&&o.push(i)}}),o}function ie(t,n,r){var i=new Map;t.forEach(function(t){var o=new Yo({token:new Qo({identifier:t.type}),useClass:t.type});oe([o],t.isComponent?e.ProviderAstType.Component:e.ProviderAstType.Directive,!0,n,r,i)});var o=t.filter(function(t){return t.isComponent}).concat(t.filter(function(t){return!t.isComponent}));return o.forEach(function(t){oe(re(t.providers,n,r),e.ProviderAstType.PublicService,!1,n,r,i),oe(re(t.viewProviders,n,r),e.ProviderAstType.PrivateService,!1,n,r,i)}),i}function oe(t,e,n,o,s,a){t.forEach(function(t){var c=a.get(t.token.reference);if(r(c)&&c.multiProvider!==t.multi&&s.push(new Ll("Mixing multi and non multi provider is not possible for token "+c.token.name,o)),i(c)){var u=t.token.identifier&&t.token.identifier instanceof Zo?t.token.identifier.lifecycleHooks:[];c=new ti(t.token,t.multi,n||u.length>0,[t],e,u,o),a.set(t.token.reference,c)}else t.multi||pi.clear(c.providers),c.providers.push(t)})}function se(t){var e=new Map;return r(t.viewQueries)&&t.viewQueries.forEach(function(t){return ce(e,t)}),t.type.diDeps.forEach(function(t){r(t.viewQuery)&&ce(e,t.viewQuery)}),e}function ae(t){var e=new Map;return t.forEach(function(t){r(t.queries)&&t.queries.forEach(function(t){return ce(e,t)}),t.type.diDeps.forEach(function(t){r(t.query)&&ce(e,t.query)})}),e}function ce(t,e){e.selectors.forEach(function(n){var r=t.get(n.reference);i(r)&&(r=[],t.set(n.reference,r)),r.push(e)})}function ue(t){if(i(t)||0===t.length||"/"==t[0])return!1;var e=t.match(Wl);return null===e||"package"==e[1]||"asset"==e[1]}function le(t,e,n){var i=[],o=Ur.replaceAllMapped(n,Gl,function(n){var o=r(n[1])?n[1]:n[2];return ue(o)?(i.push(t.resolve(e,o)),""):n[0]});return new ql(o,i)}function pe(t){var e=null,n=null,r=null,i=!1,o=null;t.attrs.forEach(function(t){var s=t.name.toLowerCase();s==Xl?e=t.value:s==Ql?n=t.value:s==$l?r=t.value:t.name==ep?i=!0:t.name==np&&t.value.length>0&&(o=t.value)}),e=he(e);var s=t.name.toLowerCase(),a=Lc.OTHER;return g(s)[1]==Kl?a=Lc.NG_CONTENT:s==Jl?a=Lc.STYLE:s==tp?a=Lc.SCRIPT:s==Yl&&r==Zl&&(a=Lc.STYLESHEET),new ip(a,e,n,i,o)}function he(t){return null===t||0===t.length?"*":t}function fe(t){return t.trim().split(/\s+/g)}function de(t,e){var n=new wi,r=g(t)[1];n.setElement(r);for(var i=0;i<e.length;i++){var o=e[i][0],s=g(o)[1],a=e[i][1];if(n.addAttribute(s,a),o.toLowerCase()==wp){var c=fe(a);c.forEach(function(t){return n.addClassName(t)})}}return n}function me(){throw new Error("unimplemented")}function ye(t){var e=[],n={},r=[],i=[];t.definitions.forEach(function(t){t instanceof Fo?ge(t,e).forEach(function(t){i.push(t),n[t.stateName]=t.styles}):r.push(t)});var o=r.map(function(t){return be(t,n,e)}),s=new Gp(t.name,i,o);return new uh(s,e)}function ve(t,e){var n,r=t.split("."),i="";if(r.length>1){n=r[0];var o=r[1];switch(o){case"start":case"done":i=o;break;default:e.push(new ch('The provided animation output phase value "'+o+'" for "@'+n+'" is not supported (use start or done)'))}}else n=t,e.push(new ch("The animation trigger output event (@"+n+") is missing its phase value name (start or done are currently supported)"));return new ml(n,i,t)}function ge(t,e){var n=[];t.styles.styles.forEach(function(t){s(t)?n.push(t):e.push(new ch("State based animations cannot contain references to other states"))});var r=new $p(n),i=t.stateNameExpr.split(/\s*,\s*/);return i.map(function(t){return new Wp(t,r)})}function be(t,e,n){var r=new rh,i=[],o=t.stateChangeExpr.split(/\s*,\s*/);o.forEach(function(t){_e(t,n).forEach(function(t){i.push(t)})});var s=we(t.steps),a=Ce(s,e,n),c=Te(a,0,r,e,n);0==n.length&&Pe(c,r,n);var u=c instanceof Zp?c:new th([c]);return new Kp(i,u)}function _e(t,e){var n=[],i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(!r(i)||i.length<4)return e.push(new ch("the provided "+t+" is not of a supported format")),n;var o=i[1],s=i[2],a=i[3];n.push(new Xp(o,a));var c=o==yl&&a==yl;return"<"!=s[0]||c||n.push(new Xp(a,o)),n}function we(t){return c(t)?new Go(t):t}function xe(t,e,n){var r=[];return t.styles.forEach(function(t){o(t)?pi.addAll(r,Oe(t,e,n)):r.push(t)}),r}function Ce(t,e,n){var r=Se(t,e,n);return t instanceof Wo?new Wo(r):new Go(r)}function Ee(t,e){if(s(e)&&t.length>0){var n=t.length-1,r=t[n];if(s(r))return void(t[n]=li.merge(r,e))}t.push(e)}function Se(t,e,n){var i;if(!(t instanceof qo))return[t];i=t.steps;var o,s=[];return i.forEach(function(t){if(t instanceof Ho)r(o)||(o=[]),xe(t,e,n).forEach(function(t){Ee(o,t)});else{if(r(o)&&(s.push(new Ho(0,o)),o=null),t instanceof zo){var i=t.styles;i instanceof Ho?i.styles=xe(i,e,n):i instanceof Bo&&i.steps.forEach(function(t){t.styles=xe(t,e,n)})}else if(t instanceof qo){var a=Se(t,e,n);t=t instanceof Wo?new Wo(a):new Go(a)}s.push(t)}}),r(o)&&s.push(new Ho(0,o)),s}function Oe(t,e,n){var i=[];if(":"!=t[0])n.push(new ch('Animation states via styles must be prefixed with a ":"'));else{var o=t.substring(1),a=e[o];r(a)?a.styles.forEach(function(t){s(t)&&i.push(t)}):n.push(new ch('Unable to apply styles due to missing a state: "'+o+'"'))}return i}function ke(t,e,n,i,o){var s=t.steps.length,a=0;t.steps.forEach(function(t){return a+=r(t.offset)?1:0}),a>0&&a<s&&(o.push(new ch("Not all style() entries contain an offset for the provided keyframe()")),a=s);var c=s-1,u=0==a?1/c:0,l=[],p=0,h=!1,f=0;t.steps.forEach(function(t){var e=t.offset,n={};t.styles.forEach(function(t){li.forEach(t,function(t,e){"offset"!=e&&(n[e]=t)})}),r(e)?h=h||e<f:e=p==c?sh:u*p,l.push([e,n]),f=e,p++}),h&&pi.sort(l,function(t,e){return t[0]<=e[0]?-1:1});var d,m=l[0];m[0]!=oh&&pi.insert(l,0,m=[oh,{}]);var y=m[1];c=l.length-1;var v=l[c];v[0]!=sh&&(l.push(v=[sh,{}]),c++);var g=v[1];for(d=1;d<=c;d++){var b=l[d],_=b[1];li.forEach(_,function(t,e){r(y[e])||(y[e]=bl)})}for(d=c-1;d>=0;d--){var b=l[d],_=b[1];li.forEach(_,function(t,e){r(g[e])||(g[e]=t)})}return l.map(function(t){return new Qp(t[0],new $p([t[1]]))})}function Te(t,e,n,i,o){var s,a=0,c=e;if(t instanceof qo){var u,l=0,p=[],h=t instanceof Wo;if(t.steps.forEach(function(t){var s=h?c:e;if(t instanceof Ho)return t.styles.forEach(function(t){var e=t;li.forEach(e,function(t,e){n.insertAtTime(e,s,t)})}),void(u=t.styles);var f=Te(t,s,n,i,o);if(r(u)){if(t instanceof qo){var d=new $p(u);p.push(new Yp(d,[],0,0,""))}else{var m=f;pi.addAll(m.startingStyles.styles,u)}u=null}var y=f.playTime;e+=y,a+=y,l=eh.max(y,l),p.push(f)}),r(u)){var f=new $p(u);p.push(new Yp(f,[],0,0,""))}h?(s=new Jp(p),a=l,e=c+a):s=new th(p)}else if(t instanceof zo){var d,m=Re(t.timings,o),y=t.styles;if(y instanceof Bo)d=ke(y,e,n,i,o);else{var v=y,g=sh,b=new $p(v.styles),_=new Qp(g,b);d=[_]}s=new Yp(new $p([]),d,m.duration,m.delay,m.easing),a=m.duration+m.delay,e+=a,d.forEach(function(t){return t.styles.styles.forEach(function(t){return li.forEach(t,function(t,r){return n.insertAtTime(r,e,t)})})})}else s=new Yp(null,[],0,0,"");return s.playTime=a,s.startTime=c,s}function Pe(t,e,n){if(t instanceof Yp&&t.keyframes.length>0){var r=t.keyframes;if(1==r.length){var i=r[0],o=Ae(i,t.startTime,t.playTime,e,n);t.keyframes=[o,i]}}else t instanceof Zp&&t.steps.forEach(function(t){return Pe(t,e,n)})}function Re(t,e){var n,s=/^([\.\d]+)(m?s)(?:\s+([\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?/i,a=0,c=null;if(o(t)){var u=t.match(s);if(null===u)return e.push(new ch('The provided timing value "'+t+'" is invalid.')),new lh(0,0,null);var l=parseFloat(u[1]),p=u[2];"s"==p&&(l*=ah),n=eh.floor(l);var h=u[3],f=u[4];if(r(h)){var d=parseFloat(h);r(f)&&"s"==f&&(d*=ah),a=eh.floor(d)}var m=u[5];i(m)||(c=m)}else n=t;return new lh(n,a,c)}function Ae(t,e,n,i,o){var s={},a=e+n;return t.styles.styles.forEach(function(t){li.forEach(t,function(t,n){if("offset"!=n){var c,u,l,p=i.indexOfAtOrBeforeTime(n,e);r(p)?(c=i.getByIndex(n,p),l=c.value,u=i.getByIndex(n,p+1)):l=bl,r(u)&&!u.matches(a,t)&&o.push(new ch('The animated CSS property "'+n+'" unexpectedly changes between steps "'+c.time+'ms" and "'+a+'ms" at "'+u.time+'ms"')),s[n]=l}})}),new Qp(oh,new $p([s]))}function Ie(t,e){var n=A(gl);switch(e){case gl:return t.equals(n);case yl:return A(!0);default:return t.equals(A(e))}}function Me(t){if(t instanceof Yp&&t.duration>0&&2==t.keyframes.length){var e=je(t.keyframes[0])[0],n=je(t.keyframes[1])[0];return li.isEmpty(e)&&li.isEmpty(n)}return!1}function je(t){return t.styles.styles}function Ne(t,e){var n=new Ah(t);return y(n,e),new Rh(n.outputs,n.errors)}function De(t,e){return void 0===e&&(e=null),N(t,new Ih,e)}function Ve(t,e,n){if(e===n)return t;for(var i=ao,o=e;o!==n&&r(o.declarationElement.view);)o=o.declarationElement.view,i=i.prop("parent");if(o!==n)throw new Error("Internal error: Could not calculate a property in a parent view: "+t);if(t instanceof ro){var s=t;(n.fields.some(function(t){return t.name==s.name})||n.getters.some(function(t){return t.name==s.name}))&&(i=i.cast(n.classType))}return x(ao.name,i,t)}function Fe(t,e){var n=[V(t)];return e&&n.push(uo),ao.prop("parentInjector").callMethod("get",n)}function Le(t,e){return"viewFactory_"+t.type.name+e}function Ue(t){for(var e=[],n=k([]),r=0;r<t.length;r++){var i=t[r];i.type instanceof Ai?(e.length>0&&(n=n.callMethod(Ui.ConcatArray,[k(e)]),e=[]),n=n.callMethod(Ui.ConcatArray,[i])):e.push(i)}return e.length>0&&(n=n.callMethod(Ui.ConcatArray,[k(e)])),n}function Be(t,e,n,r){r.fields.push(new go(n.name,null));var o=e<Rl.pureProxies.length?Rl.pureProxies[e]:null;if(i(o))throw new Error("Unsupported number of argument for pure functions: "+e);r.createMethod.addStmt(ao.prop(n.name).set(S(Kt(o)).callFn([t])).toStmt())}function He(t){return pi.flatten(t.values.map(function(t){return t instanceof Dh?ze(t.view.declarationElement.appElement,t.view,He(t)):t}))}function ze(t,e,n){var r=n.map(function(t){return x(ao.name,E("nestedView"),t)});return t.callMethod("mapNestedViews",[E(e.className),R([new to("nestedView",e.classType)],[new yo(k(r))],Mi)])}function qe(t,e,n,r){r.fields.push(new go(n,O(Kt(Rl.QueryList),[Mi])));var i=ao.prop(n);return r.createMethod.addStmt(ao.prop(n).set(S(Kt(Rl.QueryList),[Mi]).instantiate([])).toStmt()),i}function Ge(t,e){e.meta.selectors.forEach(function(n){var r=t.get(n.reference);i(r)&&(r=[],t.set(n.reference,r)),r.push(e)})}function We(t,e){return S(Qt(t,e))}function Xe(t,e,n,r){var i;return i=e>0?A(t).lowerEquals(qh.requestNodeIndex).and(qh.requestNodeIndex.lowerEquals(A(t+e))):A(t).identical(qh.requestNodeIndex),new xo(qh.token.identical(V(n.token)).and(i),[new yo(r)])}function Ke(t,e,n,r,o,s){var a,c,u=s.view;if(r?(a=k(n),c=new Ai(Mi)):(a=n[0],c=n[0].type),i(c)&&(c=Mi),o)u.fields.push(new go(t,c)),u.createMethod.addStmt(ao.prop(t).set(a).toStmt());else{var l="_"+t;u.fields.push(new go(l,c));var p=new Nh(u);p.resetDebugInfo(s.nodeIndex,s.sourceAst),p.addStmt(new xo(ao.prop(l).isBlank(),[ao.prop(l).set(a).toStmt()])),p.addStmt(new yo(ao.prop(l))),u.getters.push(new _o(t,p.finish(),c))}return ao.prop(t)}function Ye(t,e){for(var n=null,r=t.pipeMetas.length-1;r>=0;r--){var o=t.pipeMetas[r];if(o.name==e){n=o;break}}if(i(n))throw new Error("Illegal state: Could not find pipe "+e+" although the parser should have detected this error!");return n}function $e(t,e){return e>0?Nu.EMBEDDED:t.type.isHost?Nu.HOST:Nu.COMPONENT}function Qe(t,e,n,r,i){var o=new ef(t,e,r,i),s=n.visit(o,rp.Expression);return new Jh(s,o.needsValueUnwrapper,o.temporaryCount)}function Ze(t,e,n,r){var i=new ef(t,e,null,r),o=[];return sn(n.visit(i,rp.Statement),o),en(i.temporaryCount,r,o),o}function Je(t,e){return"tmp_"+t+"_"+e}function tn(t,e){return new ho(Je(t,e),uo)}function en(t,e,n){for(var r=t-1;r>=0;r--)n.unshift(tn(e,r))}function nn(t,e){if(t!==rp.Statement)throw new Error("Expected a statement, but saw "+e)}function rn(t,e){if(t!==rp.Expression)throw new Error("Expected an expression, but saw "+e)}function on(t,e){return t===rp.Statement?e.toStmt():e}function sn(t,e){c(t)?t.forEach(function(t){return sn(t,e)}):e.push(t)}function an(t,e,n){var r=[];return t.forEach(function(t){n.view.bindings.push(new Zh(n,t));var e=rf.getOrCreate(n,t.target,t.name,r);e.addAction(t,null,null)}),e.forEach(function(t){var e=n.instances.get(Yt(t.directive.type).reference);t.hostEvents.forEach(function(i){n.view.bindings.push(new Zh(n,i));var o=rf.getOrCreate(n,i.target,i.name,r);o.addAction(i,t.directive,e)})}),r.forEach(function(t){return t.finishMethod()}),r}function cn(t,e,n){li.forEach(t.directive.outputs,function(t,r){n.filter(function(e){return e.eventName==t}).forEach(function(t){t.listenToDirective(e,r)})})}function un(t){t.forEach(function(t){return t.listenToRenderer()})}function ln(t){t.forEach(function(t){t.listener.listenToAnimation(t.output)})}function pn(t){return t instanceof mo?t.expr:t instanceof yo?t.value:null}function hn(t){return Ur.replaceAll(t,/[^a-zA-Z_]/g,"_")}function fn(t,e,n){var r=n.view,i=r.detectChangesInInputsMethod,o=t.directive.type.lifecycleHooks;o.indexOf(Ou.OnChanges)!==-1&&t.inputs.length>0&&i.addStmt(new xo(Gh.changes.notIdentical(uo),[e.callMethod("ngOnChanges",[Gh.changes]).toStmt()])),o.indexOf(Ou.OnInit)!==-1&&i.addStmt(new xo(of.and(sf),[e.callMethod("ngOnInit",[]).toStmt()])),o.indexOf(Ou.DoCheck)!==-1&&i.addStmt(new xo(sf,[e.callMethod("ngDoCheck",[]).toStmt()]))}function dn(t,e,n){var r=n.view,i=t.type.lifecycleHooks,o=r.afterContentLifecycleCallbacksMethod;o.resetDebugInfo(n.nodeIndex,n.sourceAst),i.indexOf(Ou.AfterContentInit)!==-1&&o.addStmt(new xo(of,[e.callMethod("ngAfterContentInit",[]).toStmt()])),i.indexOf(Ou.AfterContentChecked)!==-1&&o.addStmt(e.callMethod("ngAfterContentChecked",[]).toStmt())}function mn(t,e,n){var r=n.view,i=t.type.lifecycleHooks,o=r.afterViewLifecycleCallbacksMethod;o.resetDebugInfo(n.nodeIndex,n.sourceAst),i.indexOf(Ou.AfterViewInit)!==-1&&o.addStmt(new xo(of,[e.callMethod("ngAfterViewInit",[]).toStmt()])),i.indexOf(Ou.AfterViewChecked)!==-1&&o.addStmt(e.callMethod("ngAfterViewChecked",[]).toStmt())}function yn(t,e,n){var r=n.view.destroyMethod;r.resetDebugInfo(n.nodeIndex,n.sourceAst),t.lifecycleHooks.indexOf(Ou.OnDestroy)!==-1&&r.addStmt(e.callMethod("ngOnDestroy",[]).toStmt())}function vn(t,e,n){var r=n.destroyMethod;t.type.lifecycleHooks.indexOf(Ou.OnDestroy)!==-1&&r.addStmt(e.callMethod("ngOnDestroy",[]).toStmt())}function gn(t){return ao.prop("_expr_"+t)}function bn(t){return E("currVal_"+t)}function _n(t,e,n,r,o,s,a,c){var u=Qe(t,o,r,Gh.valUnwrapper,c);if(!i(u.expression)){if(u.temporaryCount)for(var l=0;l<u.temporaryCount;l++)a.addStmt(tn(c,l));if(t.fields.push(new go(n.name,null,[Gi.Private])),t.createMethod.addStmt(ao.prop(n.name).set(S(Kt(Rl.UNINITIALIZED))).toStmt()),u.needsValueUnwrapper){var p=Gh.valUnwrapper.callMethod("reset",[]).toStmt();a.addStmt(p)}a.addStmt(e.set(u.expression).toDeclStmt(null,[Gi.Final]));var h=S(Kt(Rl.checkBinding)).callFn([Gh.throwOnChange,n,e]);u.needsValueUnwrapper&&(h=Gh.valUnwrapper.prop("hasWrappedValue").or(h)),a.addStmt(new xo(h,s.concat([ao.prop(n.name).set(e).toStmt()])))}}function wn(t,e,n){var r=n.bindings.length;n.bindings.push(new Zh(e,t));var i=bn(r),o=gn(r);n.detectChangesRenderPropertiesMethod.resetDebugInfo(e.nodeIndex,t),_n(n,i,o,t.value,n.componentContext,[ao.prop("renderer").callMethod("setText",[e.renderNode,i]).toStmt()],n.detectChangesRenderPropertiesMethod,r)}function xn(t,n,i,o){var s=i.view,a=i.renderNode;t.forEach(function(t){var c=s.bindings.length;s.bindings.push(new Zh(i,t)),s.detectChangesRenderPropertiesMethod.resetDebugInfo(i.nodeIndex,t);var u=gn(c),l=bn(c),p=Cn(t,u),h=Cn(t,l),f=[],d=s.detectChangesRenderPropertiesMethod;switch(t.type){case e.PropertyBindingType.Property:s.genConfig.logBindingUpdate&&f.push(kn(a,t.name,h)),f.push(ao.prop("renderer").callMethod("setElementProperty",[a,A(t.name),h]).toStmt());break;case e.PropertyBindingType.Attribute:h=h.isBlank().conditional(uo,h.callMethod("toString",[])),f.push(ao.prop("renderer").callMethod("setElementAttribute",[a,A(t.name),h]).toStmt());break;case e.PropertyBindingType.Class:f.push(ao.prop("renderer").callMethod("setElementClass",[a,A(t.name),h]).toStmt());break;case e.PropertyBindingType.Style:var m=h.callMethod("toString",[]);r(t.unit)&&(m=m.plus(A(t.unit))),h=h.isBlank().conditional(uo,m),f.push(ao.prop("renderer").callMethod("setElementStyle",[a,A(t.name),h]).toStmt());break;case e.PropertyBindingType.Animation:var y=t.name,v=ao;o&&(v=i.appElement.prop("componentView")),d=s.animationBindingsMethod;var g=v.prop("componentType").prop("animations").key(A(y)),b=A(gl),_=E("oldRenderVar");f.push(_.set(p).toDeclStmt()),f.push(new xo(_.equals(S(Kt(Rl.UNINITIALIZED))),[_.set(b).toStmt()]));var w=E("newRenderVar");f.push(w.set(h).toDeclStmt()),f.push(new xo(w.equals(S(Kt(Rl.UNINITIALIZED))),[w.set(b).toStmt()])),f.push(g.callFn([ao,a,_,w]).toStmt()),s.detachMethod.addStmt(g.callFn([ao,a,p,b]).toStmt())}_n(s,l,u,t.value,n,f,d,s.bindings.length)})}function Cn(t,e){var r;switch(t.securityContext){case n.SecurityContext.NONE:return e;case n.SecurityContext.HTML:r="HTML";break;case n.SecurityContext.STYLE:r="STYLE";break;case n.SecurityContext.SCRIPT:r="SCRIPT";break;case n.SecurityContext.URL:r="URL";break;case n.SecurityContext.RESOURCE_URL:r="RESOURCE_URL";break;default:throw new Error("internal error, unexpected SecurityContext "+t.securityContext+".")}var i=Hh.viewUtils.prop("sanitizer"),o=[S(Kt(Rl.SecurityContext)).prop(r),e];return i.callMethod("sanitize",o)}function En(t,e){xn(t,e.view.componentContext,e,!1)}function Sn(t,e,n){xn(t.hostProperties,e,n,!0)}function On(t,e,n){if(0!==t.inputs.length){var r=n.view,i=r.detectChangesInInputsMethod;i.resetDebugInfo(n.nodeIndex,n.sourceAst);var o=t.directive.type.lifecycleHooks,s=o.indexOf(Ou.OnChanges)!==-1,a=t.directive.isComponent&&!Eu(t.directive.changeDetection);s&&i.addStmt(Gh.changes.set(uo).toStmt()),a&&i.addStmt(Gh.changed.set(A(!1)).toStmt()),t.inputs.forEach(function(t){var o=r.bindings.length;r.bindings.push(new Zh(n,t)),i.resetDebugInfo(n.nodeIndex,t);var c=gn(o),u=bn(o),l=[e.prop(t.directiveName).set(u).toStmt()];s&&(l.push(new xo(Gh.changes.identical(uo),[Gh.changes.set(T([],new Ii(O(Kt(Rl.SimpleChange))))).toStmt()])),l.push(Gh.changes.key(A(t.directiveName)).set(S(Kt(Rl.SimpleChange)).instantiate([c,u])).toStmt())),a&&l.push(Gh.changed.set(A(!0)).toStmt()),r.genConfig.logBindingUpdate&&l.push(kn(n.renderNode,t.directiveName,u)),_n(r,u,c,t.value,r.componentContext,l,i,o)}),a&&i.addStmt(new xo(Gh.changed,[n.appElement.prop("componentView").callMethod("markAsCheckOnce",[]).toStmt()]))}}function kn(t,e,n){var r=ao.prop("renderer").callMethod("setBindingDebugInfo",[t,A("ng-reflect-"+I(e)),n.isBlank().conditional(uo,n.callMethod("toString",[]))]).toStmt(),i=ao.prop("renderer").callMethod("setBindingDebugInfo",[t,A("ng-reflect-"+I(e)),A("[ERROR] Exception while trying to serialize the value")]).toStmt();return new Co([r],[i])}function Tn(t,e,n){var r=new af(t,n);y(r,e),t.pipes.forEach(function(t){vn(t.meta,t.instance,t.view)})}function Pn(t,e,n){var r=new yf(t,n);return y(r,e,t.declarationElement.isNull()?t.declarationElement:t.declarationElement.parent),r.nestedViewCount}function Rn(t,e){t.afterNodes(),Fn(t,e),t.nodes.forEach(function(t){t instanceof Kh&&t.hasEmbeddedView&&Rn(t.embeddedView,e)})}function An(t){for(var e=t.view;Mn(t.parent,e);)t=t.parent;return t}function In(t){for(var e=t.view;Mn(t,e);)t=t.parent;return t}function Mn(t,e){return!t.isNull()&&t.sourceAst.name===pf&&t.view===e}function jn(t,e){var n={};return li.forEach(t,function(t,e){n[e]=t}),e.forEach(function(t){li.forEach(t.hostAttributes,function(t,e){var i=n[e];n[e]=r(i)?Dn(e,i,t):t})}),Vn(n)}function Nn(t){var e={};return t.forEach(function(t){e[t.name]=t.value}),e}function Dn(t,e,n){return t==uf||t==lf?e+" "+n:n}function Vn(t){var e=[];return li.forEach(t,function(t,n){e.push([n,t])}),pi.sort(e,function(t,e){return Ur.compare(t[0],e[0])}),e}function Fn(t,e){var n=uo;t.genConfig.genDebugInfo&&(n=E("nodeDebugInfos_"+t.component.type.name+t.viewIndex),e.push(n.set(k(t.nodes.map(Ln),new Ai(new Ri(Kt(Rl.StaticNodeDebugInfo)),[di.Const]))).toDeclStmt(null,[Gi.Final])));var r=E("renderType_"+t.component.type.name);0===t.viewIndex&&e.push(r.set(uo).toDeclStmt(O(Kt(Rl.RenderComponentType))));var i=Un(t,r,n);e.push(i),e.push(Bn(t,i,r))}function Ln(t){var e=t instanceof Kh?t:null,n=[],i=uo,o=[];return r(e)&&(n=e.getProviderTokens(),r(e.component)&&(i=V(Yt(e.component.type))),li.forEach(e.referenceTokens,function(t,e){o.push([e,r(t)?V(t):uo])})),S(Kt(Rl.StaticNodeDebugInfo)).instantiate([k(n,new Ai(Mi,[di.Const])),i,T(o,new Ii(Mi,[di.Const]))],O(Kt(Rl.StaticNodeDebugInfo),null,[di.Const]))}function Un(t,e,n){var r=[new to(Bh.viewUtils.name,O(Kt(Rl.ViewUtils))),new to(Bh.parentInjector.name,O(Kt(Rl.Injector))),new to(Bh.declarationEl.name,O(Kt(Rl.AppElement)))],i=[E(t.className),e,Fh.fromValue(t.viewType),Bh.viewUtils,Bh.parentInjector,Bh.declarationEl,Uh.fromValue(Wn(t))];t.genConfig.genDebugInfo&&i.push(n);var o=new bo(null,r,[co.callFn(i).toStmt()]),s=[new bo("createInternal",[new to(ff.name,Di)],Hn(t),O(Kt(Rl.AppElement))),new bo("injectorGetInternal",[new to(qh.token.name,Mi),new to(qh.requestNodeIndex.name,Ni),new to(qh.notFoundResult.name,Mi)],qn(t.injectorGetMethod.finish(),qh.notFoundResult),Mi),new bo("detectChangesInternal",[new to(Gh.throwOnChange.name,ji)],zn(t)),new bo("dirtyParentQueriesInternal",[],t.dirtyParentQueriesMethod.finish()),new bo("destroyInternal",[],t.destroyMethod.finish()),new bo("detachInternal",[],t.detachMethod.finish())].concat(t.eventHandlerMethods),a=t.genConfig.genDebugInfo?Rl.DebugAppView:Rl.AppView,c=new wo(t.className,S(Kt(a),[Gn(t)]),t.fields,t.getters,o,s.filter(function(t){return t.body.length>0}));return c}function Bn(t,e,n){var r,i=[new to(Bh.viewUtils.name,O(Kt(Rl.ViewUtils))),new to(Bh.parentInjector.name,O(Kt(Rl.Injector))),new to(Bh.declarationEl.name,O(Kt(Rl.AppElement)))],o=[];if(r=t.component.template.templateUrl==t.component.type.moduleUrl?t.component.type.moduleUrl+" class "+t.component.type.name+" - inline template":t.component.template.templateUrl,0===t.viewIndex){var s=T(t.animations.map(function(t){return[t.name,t.fnVariable]}));o=[new xo(n.identical(uo),[n.set(Bh.viewUtils.callMethod("createRenderComponentType",[A(r),A(t.component.template.ngContentSelectors.length),Lh.fromValue(t.component.template.encapsulation),t.styles,s])).toStmt()])]}return R(i,o.concat([new yo(E(e.name).instantiate(e.constructorMethod.params.map(function(t){return E(t.name)})))]),O(Kt(Rl.AppView),[Gn(t)])).toDeclStmt(t.viewFactory.name,[Gi.Final])}function Hn(t){var e=uo,n=[];t.viewType===Nu.COMPONENT&&(e=Hh.renderer.callMethod("createViewRoot",[ao.prop("declarationAppElement").prop("nativeElement")]),n=[hf.set(e).toDeclStmt(O(t.genConfig.renderTypes.renderNode),[Gi.Final])]);var r;return r=t.viewType===Nu.HOST?t.nodes[0].appElement:uo,n.concat(t.createMethod.finish(),[ao.callMethod("init",[Ue(t.rootNodesOrAppElements),k(t.nodes.map(function(t){return t.renderNode})),k(t.disposables),k(t.subscriptions)]).toStmt(),new yo(r)])}function zn(t){var e=[];if(t.animationBindingsMethod.isEmpty()&&t.detectChangesInInputsMethod.isEmpty()&&t.updateContentQueriesMethod.isEmpty()&&t.afterContentLifecycleCallbacksMethod.isEmpty()&&t.detectChangesRenderPropertiesMethod.isEmpty()&&t.updateViewQueriesMethod.isEmpty()&&t.afterViewLifecycleCallbacksMethod.isEmpty())return e;pi.addAll(e,t.animationBindingsMethod.finish()),pi.addAll(e,t.detectChangesInInputsMethod.finish()),e.push(ao.callMethod("detectContentChildrenChanges",[Gh.throwOnChange]).toStmt());var n=t.updateContentQueriesMethod.finish().concat(t.afterContentLifecycleCallbacksMethod.finish());n.length>0&&e.push(new xo(P(Gh.throwOnChange),n)),pi.addAll(e,t.detectChangesRenderPropertiesMethod.finish()),e.push(ao.callMethod("detectViewChildrenChanges",[Gh.throwOnChange]).toStmt());var r=t.updateViewQueriesMethod.finish().concat(t.afterViewLifecycleCallbacksMethod.finish());r.length>0&&e.push(new xo(P(Gh.throwOnChange),r));var i=[],o=C(e);return fi.has(o,Gh.changed.name)&&i.push(Gh.changed.set(A(!0)).toDeclStmt(ji)),fi.has(o,Gh.changes.name)&&i.push(Gh.changes.set(uo).toDeclStmt(new Ii(O(Kt(Rl.SimpleChange))))),fi.has(o,Gh.valUnwrapper.name)&&i.push(Gh.valUnwrapper.set(S(Kt(Rl.ValueUnwrapper)).instantiate([])).toDeclStmt(null,[Gi.Final])),i.concat(e)}function qn(t,e){return t.length>0?t.concat([new yo(e)]):t}function Gn(t){return t.viewType===Nu.COMPONENT?O(t.component.type):Mi}function Wn(t){var e;return e=t.viewType===Nu.COMPONENT?Eu(t.component.changeDetection)?Su.CheckAlways:Su.CheckOnce:Su.CheckAlways}function Xn(t){return t.dependencies.forEach(function(t){if(t instanceof df){var e=t;e.placeholder.moduleUrl=Yn(e.comp.moduleUrl)}else if(t instanceof mf){var n=t;n.placeholder.name=$n(n.comp),n.placeholder.moduleUrl=Yn(n.comp.moduleUrl)}}),t.statements}function Kn(t,e){return t.dependencies.forEach(function(t){t.valuePlaceholder.moduleUrl=Qn(t.moduleUrl,t.isShimmed,e)}),t.statements}function Yn(t){var e=Jn(t);return e[0]+".ngfactory"+e[1]}function $n(t){return t.name+"NgFactory"}function Qn(t,e,n){return e?t+".shim"+n:""+t+n}function Zn(t){if(!t.isComponent)throw new Error("Could not compile '"+t.type.name+"' because it is not a component.")}function Jn(t){if(/\.d\.ts$/.test(t))return[t.substring(0,t.length-5),".ts"];var e=t.lastIndexOf(".");return e!==-1?[t.substring(0,e),t.substring(e)]:[t,""]}function tr(){return new Sf(Cf)}function er(t){var e=rr(t);return e&&e[tf.Scheme]||""}function nr(t,e,n,i,o,s,a){var c=[];return r(t)&&c.push(t+":"),r(n)&&(c.push("//"),r(e)&&c.push(e+"@"),c.push(n),r(i)&&c.push(":"+i)),r(o)&&c.push(o),r(s)&&c.push("?"+s),r(a)&&c.push("#"+a),c.join("")}function rr(t){return t.match(Of)}function ir(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",n="/"===t[t.length-1]?"/":"",r=t.split("/"),i=[],o=0,s=0;s<r.length;s++){var a=r[s];switch(a){case"":case".":break;case"..":i.length>0?i.pop():o++;break;default:i.push(a)}}if(""==e){for(;o-- >0;)i.unshift("..");0===i.length&&i.push(".")}return e+i.join("/")+n}function or(t){var e=t[tf.Path];return e=i(e)?"":ir(e),t[tf.Path]=e,nr(t[tf.Scheme],t[tf.UserInfo],t[tf.Domain],t[tf.Port],e,t[tf.QueryData],t[tf.Fragment])}function sr(t,e){var n=rr(encodeURI(e)),o=rr(t);if(r(n[tf.Scheme]))return or(n);n[tf.Scheme]=o[tf.Scheme];for(var s=tf.Scheme;s<=tf.Port;s++)i(n[s])&&(n[s]=o[s]);if("/"==n[tf.Path][0])return or(n);var a=o[tf.Path];i(a)&&(a="/");var c=a.lastIndexOf("/");return a=a.substring(0,c+1)+n[tf.Path],n[tf.Path]=a,or(n)}function ar(t,e){return new ns({type:t.type,isComponent:t.isComponent,selector:t.selector,exportAs:t.exportAs,changeDetection:t.changeDetection,inputs:t.inputs,outputs:t.outputs,hostListeners:t.hostListeners,hostProperties:t.hostProperties,hostAttributes:t.hostAttributes,providers:t.providers,viewProviders:t.viewProviders,queries:t.queries,viewQueries:t.viewQueries,entryComponents:t.entryComponents,template:e})}function cr(t){return t instanceof n.Directive}function ur(t,e){var n=Rf.get(t),r=Af.get(t);return al.hasLifecycleHook(e,n,r)}function lr(t){return t instanceof n.NgModule}function pr(t){return t instanceof n.Pipe}function hr(t,e,n,r){return void 0===n&&(n=[]),void 0===r&&(r=new Set),t.forEach(function(t){if(!r.has(t.type.reference)){r.add(t.type.reference);var i=e?t.importedModules.concat(t.exportedModules):t.exportedModules;hr(i,e,n,r),n.push(t)}}),n}function fr(t,e){if(void 0===e&&(e=[]),t)for(var r=0;r<t.length;r++){var i=n.resolveForwardRef(t[r]);c(i)?fr(i,e):e.push(i)}return e}function dr(t){return H(t)||t instanceof n.Type}function mr(t){return H(t)?t.filePath:null}function yr(t,e,n){if(H(e))return mr(e);if(r(n.moduleId)){var i=n.moduleId,o=er(i);return r(o)&&o.length>0?i:"package:"+i+Po}return t.importUri(e)}function vr(t,e){return N(t,new Df,e)}function gr(t,e,n){if(void 0===n&&(n=!0),i(t))return null;var r=Ur.replaceAllMapped(t,zf,function(t){return"$"==t[0]?e?"\\$":"$":"\n"==t[0]?"\\n":"\r"==t[0]?"\\r":"\\"+t[0]}),o=n||!qf.test(r);return o?"'"+r+"'":r}function br(t){for(var e="",n=0;n<t;n++)e+=" ";return e}function _r(t){var e,n=new Jf(Qf),r=Kf.createRoot([]);return e=c(t)?t:[t],e.forEach(function(t){if(t instanceof po)t.visitStatement(n,r);else if(t instanceof Li)t.visitExpression(n,r);else{if(!(t instanceof ki))throw new Error("Don't know how to print debug info for "+t);t.visitType(n,r)}}),r.toSource()}function wr(t,e){var n=t.concat([new yo(E(e))]),i=new td(null,null,null,new Map),o=new nd,s=o.visitAllStatements(n,i);return r(s)?s.value:null}function xr(t,e,n,i,o){for(var s=i.createChildWihtLocalVars(),a=0;a<t.length;a++)s.vars.set(t[a],e[a]);var c=o.visitAllStatements(n,s);return r(c)?c.value:null}function Cr(t,e,n){var r={};t.getters.forEach(function(i){r[i.name]={configurable:!1,get:function(){var r=new td(e,this,t.name,e.vars);return xr([],[],i.body,r,n)}}}),t.methods.forEach(function(i){var o=i.params.map(function(t){return t.name});r[i.name]={writable:!1,configurable:!1,value:function(){for(var r=[],s=0;s<arguments.length;s++)r[s-0]=arguments[s];var a=new td(e,this,t.name,e.vars);return xr(o,r,i.body,a,n)}}});var i=t.constructorMethod.params.map(function(t){return t.name}),o=function(){for(var r=this,o=[],s=0;s<arguments.length;s++)o[s-0]=arguments[s];var a=new td(e,this,t.name,e.vars);t.fields.forEach(function(t){r[t.name]=void 0}),xr(i,o,t.constructorMethod.body,a,n)},s=t.parent.visitExpression(n,e);return o.prototype=Object.create(s.prototype,r),o}function Er(t,e,n,r){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o-0]=arguments[o];return xr(t,i,e,n,r)}}function Sr(t,e,n){var r=new cd,i=Kf.createRoot([n]);return r.visitAllStatements(e,i),f(t,n,i.toSource(),r.getArgs())}function Or(t){return Ur.replaceAllMapped(t,Sd,function(t){return""})}function kr(t){var e=t.match(Od);return e?e[0]:""}function Tr(t,e){var n=Pr(t),i=0;return Ur.replaceAllMapped(n.escapedString,kd,function(t){var o=t[2],s="",a=t[4],c="";r(t[4])&&t[4].startsWith("{"+Ad)&&(s=n.blocks[i++], a=t[4].substring(Ad.length+1),c="{");var u=e(new Id(o,s));return""+t[1]+u.selector+t[3]+c+u.content+a})}function Pr(t){for(var e=Ur.split(t,Td),n=[],r=[],i=0,o=[],s=0;s<e.length;s++){var a=e[s];a==Rd&&i--,i>0?o.push(a):(o.length>0&&(r.push(o.join("")),n.push(Ad),o=[]),n.push(a)),a==Pd&&i++}return o.length>0&&(r.push(o.join("")),n.push(Ad)),new Md(n.join(""),r)}function Rr(t){var e="styles";return t&&(e+="_"+t.type.name),e}function Ar(t){if(!t.isComponent)throw new Error("Could not compile '"+t.type.name+"' because it is not a component.")}function Ir(t,e){for(var n=0,r=e;n<r.length;n++){var i=r[n];qd[i.toLowerCase()]=t}}function Mr(){al.reflectionCapabilities=new ul}function jr(t){return{useDebug:Nr(t.map(function(t){return t.useDebug})),useJit:Nr(t.map(function(t){return t.useJit})),defaultEncapsulation:Nr(t.map(function(t){return t.defaultEncapsulation})),providers:Dr(t.map(function(t){return t.providers}))}}function Nr(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e]}function Dr(t){var e=[];return t.forEach(function(t){return t&&e.push.apply(e,t)}),e}/** * @license * Copyright Google Inc. All Rights Reserved. * * Use of this source code is governed by an MIT-style license that can be * found in the LICENSE file at https://angular.io/license */ var Vr;Vr="undefined"==typeof window?"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:t:window;var Fr=Vr;Fr.assert=function(t){};var Lr=Object.getPrototypeOf({}),Ur=function(){function t(){}return t.fromCharCode=function(t){return String.fromCharCode(t)},t.charCodeAt=function(t,e){return t.charCodeAt(e)},t.split=function(t,e){return t.split(e)},t.equals=function(t,e){return t===e},t.stripLeft=function(t,e){if(t&&t.length){for(var n=0,r=0;r<t.length&&t[r]==e;r++)n++;t=t.substring(n)}return t},t.stripRight=function(t,e){if(t&&t.length){for(var n=t.length,r=t.length-1;r>=0&&t[r]==e;r--)n--;t=t.substring(0,n)}return t},t.replace=function(t,e,n){return t.replace(e,n)},t.replaceAll=function(t,e,n){return t.replace(e,n)},t.slice=function(t,e,n){return void 0===e&&(e=0),void 0===n&&(n=null),t.slice(e,null===n?void 0:n)},t.replaceAllMapped=function(t,e,n){return t.replace(e,function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return t.splice(-2,2),n(t)})},t.contains=function(t,e){return t.indexOf(e)!=-1},t.compare=function(t,e){return t<e?-1:t>e?1:0},t}(),Br=function(){function t(t){void 0===t&&(t=[]),this.parts=t}return t.prototype.add=function(t){this.parts.push(t)},t.prototype.toString=function(){return this.parts.join("")},t}(),Hr=function(){function t(){}return t.toFixed=function(t,e){return t.toFixed(e)},t.equal=function(t,e){return t===e},t.parseIntAutoRadix=function(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e},t.parseInt=function(t,e){if(10==e){if(/^(\-|\+)?[0-9]+$/.test(t))return parseInt(t,e)}else if(16==e){if(/^(\-|\+)?[0-9ABCDEFabcdef]+$/.test(t))return parseInt(t,e)}else{var n=parseInt(t,e);if(!isNaN(n))return n}throw new Error("Invalid integer literal when parsing "+t+" in base "+e)},Object.defineProperty(t,"NaN",{get:function(){return NaN},enumerable:!0,configurable:!0}),t.isNumeric=function(t){return!isNaN(t-parseFloat(t))},t.isNaN=function(t){return isNaN(t)},t.isInteger=function(t){return Number.isInteger(t)},t}(),zr=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}(),qr=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}(),Gr=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}(),Wr=function(){function t(t,e,n,r,i,o){this.name=t,this.type=e,this.securityContext=n,this.value=r,this.unit=i,this.sourceSpan=o}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},t}(),Xr=function(){function t(t,e,n,r){this.name=t,this.target=e,this.handler=n,this.sourceSpan=r}return t.prototype.visit=function(t,e){return t.visitEvent(this,e)},Object.defineProperty(t.prototype,"fullName",{get:function(){return r(this.target)?this.target+":"+this.name:this.name},enumerable:!0,configurable:!0}),t}(),Kr=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(t