webpackJsonp([14],{"+3/4":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("YaPU"),i=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=function(t){function e(e){t.call(this),this.scheduler=e}return i(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(r.a)},"+CnV":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}(n("AMGY").a)},"/4Bh":function(t,e,n){"use strict";e.a=function(t,e){if(arguments.length>=2)return function(n){return Object(a.a)(Object(r.a)(t,e),Object(i.a)(1),Object(o.a)(e))(n)};return function(e){return Object(a.a)(Object(r.a)(function(e,n,r){return t(e,n,r+1)}),Object(i.a)(1))(e)}};var r=n("E5SG"),i=n("T1Dh"),o=n("2ESx"),a=n("f9aG")},"/acl":function(t,e,n){"use strict";e.a=function(t){return!Object(r.a)(t)&&t-parseFloat(t)+1>=0};var r=n("BX3T")},"/iUD":function(t,e,n){"use strict";e.a=function(t){return"function"==typeof t}},"/nXB":function(t,e,n){"use strict";e.a=function(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof c&&(n=t.pop());if(null===s&&1===t.length&&t[0]instanceof r.a)return t[0];return Object(a.a)(n)(new i.a(t,s))};var r=n("YaPU"),i=n("Veqx"),o=n("1Q68"),a=n("8D5t")},"0FoY":function(t,e,n){"use strict";e.a=function(t,e,n){return function(r){return r.lift(new o(t,e,n))}};var r=n("OVmG"),i=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)};var o=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.nextOrObserver,this.error,this.complete))},t}(),a=function(t){function e(e,n,i,o){t.call(this,e);var a=new r.a(n,i,o);a.syncErrorThrowable=!0,this.add(a),this.safeSubscriber=a}return i(e,t),e.prototype._next=function(t){var e=this.safeSubscriber;e.next(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.next(t)},e.prototype._error=function(t){var e=this.safeSubscriber;e.error(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.error(t)},e.prototype._complete=function(){var t=this.safeSubscriber;t.complete(),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.complete()},e}(r.a)},"0P3J":function(t,e,n){"use strict";e.a=function(){return function(t){return t.lift(new o(t))}};var r=n("OVmG"),i=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)};var o=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new a(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),a=function(t){function e(e,n){t.call(this,e),this.connectable=n}return i(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(r.a)},"1Bqh":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("VwZZ"),i=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},o=function(t){function e(e,n){t.call(this),this.subject=e,this.subscriber=n,this.closed=!1}return i(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);-1!==n&&e.splice(n,1)}}},e}(r.a)},"1Q68":function(t,e,n){"use strict";e.a=function(t){return t&&"function"==typeof t.schedule}},"2ESx":function(t,e,n){"use strict";e.a=function(t){void 0===t&&(t=null);return function(e){return e.lift(new o(t))}};var r=n("OVmG"),i=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)};var o=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.defaultValue))},t}(),a=function(t){function e(e,n){t.call(this,e),this.defaultValue=n,this.isEmpty=!0}return i(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(r.a)},"319O":function(t,e,n){"use strict";e.a=function(){return Object(r.a)(1)};var r=n("8D5t")},"3a3m":function(t,e,n){"use strict";e.a=function(){return function(t){return Object(i.a)()(Object(r.a)(a)(t))}};var r=n("Jwyl"),i=n("0P3J"),o=n("g5jc");function a(){return new o.a}},"3lw+":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("Ne5x"),i=new(n("Z4xk").a)(r.a)},"4PVY":function(t,e,n){"use strict";var r=n("TToO");var i=A("Inject",function(t){return{token:t}}),o=A("InjectionToken",function(t){return{_desc:t}});var a=A("Attribute",function(t){return{attributeName:t}});var s=A("ContentChildren",function(t,e){return void 0===e&&(e={}),Object(r.a)({selector:t,first:!1,isViewQuery:!1,descendants:!1},e)}),c=A("ContentChild",function(t,e){return void 0===e&&(e={}),Object(r.a)({selector:t,first:!0,isViewQuery:!1,descendants:!0},e)}),l=A("ViewChildren",function(t,e){return void 0===e&&(e={}),Object(r.a)({selector:t,first:!1,isViewQuery:!0,descendants:!0},e)}),u=A("ViewChild",function(t,e){return Object(r.a)({selector:t,first:!0,isViewQuery:!0,descendants:!0},e)});var p=A("Directive",function(t){return void 0===t&&(t={}),t});var h={Emulated:0,Native:1,None:2};h[h.Emulated]="Emulated",h[h.Native]="Native",h[h.None]="None";var d={OnPush:0,Default:1};d[d.OnPush]="OnPush",d[d.Default]="Default";var f=A("Component",function(t){return void 0===t&&(t={}),Object(r.a)({changeDetection:d.Default},t)});var m=A("Pipe",function(t){return Object(r.a)({pure:!0},t)});var y=A("Input",function(t){return{bindingPropertyName:t}});var v=A("Output",function(t){return{bindingPropertyName:t}});var g=A("HostBinding",function(t){return{hostPropertyName:t}});var b=A("HostListener",function(t,e){return{eventName:t,args:e}});var _=A("NgModule",function(t){return t});var w={name:"custom-elements"},x={name:"no-errors-schema"},C=A("Optional"),E=A("Injectable"),S=A("Self"),O=A("SkipSelf"),k=A("Host"),T=Function,P={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};P[P.NONE]="NONE",P[P.HTML]="HTML",P[P.STYLE]="STYLE",P[P.SCRIPT]="SCRIPT",P[P.URL]="URL",P[P.RESOURCE_URL]="RESOURCE_URL";var D={Error:0,Warning:1,Ignore:2};function A(t,e){var n=function(){for(var n=[],i=0;i=55296&&r<=56319&&t.length>n+1){var i=t.charCodeAt(n+1);i>=56320&&i<=57343&&(n++,r=(r-55296<<10)+i-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 K(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(K).join(", ")+"]";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-1===n?e:e.substring(0,n)}function X(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")?t():t}function Z(t){return!!t&&"function"==typeof t.then}new(function(){return function(t){this.full=t;var e=t.split(".");this.major=e[0],this.minor=e[1],this.patch=e.slice(2).join(".")}}())("5.2.7");var Q=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}(),$=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}(),J=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}(),tt=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,this.isAnimation=this.type===pt.Animation}return t.prototype.visit=function(t,e){return t.visitElementProperty(this,e)},t}(),et=function(){function t(e,n,r,i,o){this.name=e,this.target=n,this.phase=r,this.handler=i,this.sourceSpan=o,this.fullName=t.calcFullName(this.name,this.target,this.phase),this.isAnimation=!!this.phase}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)},t}(),nt=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}(),rt=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}(),it=function(){function t(t,e,n,r,i,o,a,s,c,l,u,p,h){this.name=t,this.attrs=e,this.inputs=n,this.outputs=r,this.references=i,this.directives=o,this.providers=a,this.hasViewContainer=s,this.queryMatches=c,this.children=l,this.ngContentIndex=u,this.sourceSpan=p,this.endSourceSpan=h}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),ot=function(){function t(t,e,n,r,i,o,a,s,c,l,u){this.attrs=t,this.outputs=e,this.references=n,this.variables=r,this.directives=i,this.providers=o,this.hasViewContainer=a,this.queryMatches=s,this.children=c,this.ngContentIndex=l,this.sourceSpan=u}return t.prototype.visit=function(t,e){return t.visitEmbeddedTemplate(this,e)},t}(),at=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}(),st=function(){function t(t,e,n,r,i,o){this.directive=t,this.inputs=e,this.hostProperties=n,this.hostEvents=r,this.contentQueryStartId=i,this.sourceSpan=o}return t.prototype.visit=function(t,e){return t.visitDirective(this,e)},t}(),ct=function(){function t(t,e,n,r,i,o,a){this.token=t,this.multiProvider=e,this.eager=n,this.providers=r,this.providerType=i,this.lifecycleHooks=o,this.sourceSpan=a}return t.prototype.visit=function(t,e){return null},t}(),lt={PublicService:0,PrivateService:1,Component:2,Directive:3,Builtin:4};lt[lt.PublicService]="PublicService",lt[lt.PrivateService]="PrivateService",lt[lt.Component]="Component",lt[lt.Directive]="Directive",lt[lt.Builtin]="Builtin";var ut=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}(),pt={Property:0,Attribute:1,Class:2,Style:3,Animation:4};pt[pt.Property]="Property",pt[pt.Attribute]="Attribute",pt[pt.Class]="Class",pt[pt.Style]="Style",pt[pt.Animation]="Animation";!function(t){function e(){return t.call(this)||this}Object(r.b)(e,t),e.prototype.visitEmbeddedTemplate=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.references),e(t.variables),e(t.directives),e(t.providers),e(t.children)})},e.prototype.visitElement=function(t,e){return this.visitChildren(e,function(e){e(t.attrs),e(t.inputs),e(t.outputs),e(t.references),e(t.directives),e(t.providers),e(t.children)})},e.prototype.visitDirective=function(t,e){return this.visitChildren(e,function(e){e(t.inputs),e(t.hostProperties),e(t.hostEvents)})},e.prototype.visitChildren=function(t,e){var n=[],r=this;return e(function(e){e&&e.length&&n.push(ht(r,e,t))}),[].concat.apply([],n)}}(function(){function t(){}return t.prototype.visitNgContent=function(t,e){},t.prototype.visitEmbeddedTemplate=function(t,e){},t.prototype.visitElement=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.prototype.visitBoundText=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitDirective=function(t,e){},t.prototype.visitDirectiveProperty=function(t,e){},t}());function ht(t,e,n){void 0===n&&(n=null);var r=[],i=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=i(t);e&&r.push(e)}),r}var dt=function(){return function(t){var e=void 0===t?{}:t,n=e.defaultEncapsulation,r=void 0===n?h.Emulated:n,i=e.useJit,o=void 0===i||i,a=e.jitDevMode,s=void 0!==a&&a,c=e.missingTranslation,l=void 0===c?null:c,u=e.enableLegacyTemplate,p=e.preserveWhitespaces,d=e.strictInjectionParameters;this.defaultEncapsulation=r,this.useJit=!!o,this.jitDevMode=!!s,this.missingTranslation=l,this.enableLegacyTemplate=!0===u,this.preserveWhitespaces=ft(L(p)),this.strictInjectionParameters=!0===d}}();function ft(t,e){return void 0===e&&(e=!0),null===t?e:t}var mt=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}(),yt=function(){function t(){this.cache=new Map}return t.prototype.get=function(t,e,n){var r='"'+t+'".'+e+((n=n||[]).length?"."+n.join("."):""),i=this.cache.get(r);return i||(i=new mt(t,e,n),this.cache.set(r,i)),i},t}(),vt=/^(?:(?:\[([^\]]+)\])|(?:\(([^\)]+)\)))|(\@[-\w]+)$/;function gt(t){return t.replace(/\W/g,"_")}var bt=0;function _t(t){if(!t||!t.reference)return null;var e=t.reference;if(e instanceof mt)return e.name;if(e.__anonymousType)return e.__anonymousType;var n=K(e);return n.indexOf("(")>=0?(n="anonymous_"+bt++,e.__anonymousType=n):n=gt(n),n}function wt(t){var e=t.reference;return e instanceof mt?e.filePath:"./"+K(e)}function xt(t,e){return"View_"+_t({reference:t})+"_"+e}function Ct(t){return"RenderType_"+_t({reference:t})}function Et(t){return _t({reference:t})+"NgFactory"}var St={Pipe:0,Directive:1,NgModule:2,Injectable:3};function Ot(t){return null!=t.value?gt(t.value):_t(t.identifier)}function kt(t){return null!=t.identifier?t.identifier.reference:t.value}St[St.Pipe]="Pipe",St[St.Directive]="Directive",St[St.NgModule]="NgModule",St[St.Injectable]="Injectable";var Tt=function(){return function(t){var e=void 0===t?{}:t,n=e.moduleUrl,r=e.styles,i=e.styleUrls;this.moduleUrl=n||null,this.styles=Mt(r),this.styleUrls=Mt(i)}}(),Pt=function(){function t(t){var e=t.encapsulation,n=t.template,r=t.templateUrl,i=t.htmlAst,o=t.styles,a=t.styleUrls,s=t.externalStylesheets,c=t.animations,l=t.ngContentSelectors,u=t.interpolation,p=t.isInline,h=t.preserveWhitespaces;if(this.encapsulation=e,this.template=n,this.templateUrl=r,this.htmlAst=i,this.styles=Mt(o),this.styleUrls=Mt(a),this.externalStylesheets=Mt(s),this.animations=c?Nt(c):[],this.ngContentSelectors=l||[],u&&2!=u.length)throw new Error("'interpolation' should have a start and an end symbol.");this.interpolation=u,this.isInline=p,this.preserveWhitespaces=h}return t.prototype.toSummary=function(){return{ngContentSelectors:this.ngContentSelectors,encapsulation:this.encapsulation}},t}(),Dt=function(){function t(t){var e=t.isHost,n=t.type,r=t.isComponent,i=t.selector,o=t.exportAs,a=t.changeDetection,s=t.inputs,c=t.outputs,l=t.hostListeners,u=t.hostProperties,p=t.hostAttributes,h=t.providers,d=t.viewProviders,f=t.queries,m=t.guards,y=t.viewQueries,v=t.entryComponents,g=t.template,b=t.componentViewType,_=t.rendererType,w=t.componentFactory;this.isHost=!!e,this.type=n,this.isComponent=r,this.selector=i,this.exportAs=o,this.changeDetection=a,this.inputs=s,this.outputs=c,this.hostListeners=l,this.hostProperties=u,this.hostAttributes=p,this.providers=Mt(h),this.viewProviders=Mt(d),this.queries=Mt(f),this.guards=m,this.viewQueries=Mt(y),this.entryComponents=Mt(v),this.template=g,this.componentViewType=b,this.rendererType=_,this.componentFactory=w}return t.create=function(e){var n=e.isHost,r=e.type,i=e.isComponent,o=e.selector,a=e.exportAs,s=e.changeDetection,c=e.inputs,l=e.outputs,u=e.host,p=e.providers,h=e.viewProviders,d=e.queries,f=e.guards,m=e.viewQueries,y=e.entryComponents,v=e.template,g=e.componentViewType,b=e.rendererType,_=e.componentFactory,w={},x={},C={};null!=u&&Object.keys(u).forEach(function(t){var e=u[t],n=t.match(vt);null===n?C[t]=e:null!=n[1]?x[n[1]]=e:null!=n[2]&&(w[n[2]]=e)});var E={};null!=c&&c.forEach(function(t){var e=R(t,[t,t]);E[e[0]]=e[1]});var S={};return null!=l&&l.forEach(function(t){var e=R(t,[t,t]);S[e[0]]=e[1]}),new t({isHost:n,type:r,isComponent:!!i,selector:o,exportAs:a,changeDetection:s,inputs:E,outputs:S,hostListeners:w,hostProperties:x,hostAttributes:C,providers:p,viewProviders:h,queries:d,guards:f,viewQueries:m,entryComponents:y,template:v,componentViewType:g,rendererType:b,componentFactory:_})},t.prototype.toSummary=function(){return{summaryKind:St.Directive,type:this.type,isComponent:this.isComponent,selector:this.selector,exportAs:this.exportAs,inputs:this.inputs,outputs:this.outputs,hostListeners:this.hostListeners,hostProperties:this.hostProperties,hostAttributes:this.hostAttributes,providers:this.providers,viewProviders:this.viewProviders,queries:this.queries,guards:this.guards,viewQueries:this.viewQueries,entryComponents:this.entryComponents,changeDetection:this.changeDetection,template:this.template&&this.template.toSummary(),componentViewType:this.componentViewType,rendererType:this.rendererType,componentFactory:this.componentFactory}},t}(),At=function(){function t(t){var e=t.type,n=t.name,r=t.pure;this.type=e,this.name=n,this.pure=!!r}return t.prototype.toSummary=function(){return{summaryKind:St.Pipe,type:this.type,name:this.name,pure:this.pure}},t}(),It=function(){function t(t){var e=t.type,n=t.providers,r=t.declaredDirectives,i=t.exportedDirectives,o=t.declaredPipes,a=t.exportedPipes,s=t.entryComponents,c=t.bootstrapComponents,l=t.importedModules,u=t.exportedModules,p=t.schemas,h=t.transitiveModule,d=t.id;this.type=e||null,this.declaredDirectives=Mt(r),this.exportedDirectives=Mt(i),this.declaredPipes=Mt(o),this.exportedPipes=Mt(a),this.providers=Mt(n),this.entryComponents=Mt(s),this.bootstrapComponents=Mt(c),this.importedModules=Mt(l),this.exportedModules=Mt(u),this.schemas=Mt(p),this.id=d||null,this.transitiveModule=h||null}return t.prototype.toSummary=function(){var t=this.transitiveModule;return{summaryKind:St.NgModule,type:this.type,entryComponents:t.entryComponents,providers:t.providers,modules:t.modules,exportedDirectives:t.exportedDirectives,exportedPipes:t.exportedPipes}},t}(),Rt=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}();function Mt(t){return t||[]}var jt=function(){return function(t,e){var n=e.useClass,r=e.useValue,i=e.useExisting,o=e.useFactory,a=e.deps,s=e.multi;this.token=t,this.useClass=n||null,this.useValue=r,this.useExisting=i,this.useFactory=o||null,this.dependencies=a||null,this.multi=!!s}}();function Nt(t){return t.reduce(function(t,e){var n=Array.isArray(e)?Nt(e):e;return t.concat(n)},[])}function Lt(t){return t.replace(/(\w+:\/\/[\w:-]+)?(\/+)?/,"ng:///")}function Ft(t,e,n){var r;return r=n.isInline?e.type.reference instanceof mt?e.type.reference.filePath+"."+e.type.reference.name+".html":_t(t)+"/"+_t(e.type)+".html":n.templateUrl,e.type.reference instanceof mt?r:Lt(r)}!function(){function t(t,e){void 0===e&&(e=-1),this.path=t,this.position=e}Object.defineProperty(t.prototype,"empty",{get:function(){return!this.path||!this.path.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"head",{get:function(){return this.path[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tail",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t.prototype.parentOf=function(t){return t&&this.path[this.path.indexOf(t)-1]},t.prototype.childOf=function(t){return this.path[this.path.indexOf(t)+1]},t.prototype.first=function(t){for(var e=this.path.length-1;e>=0;e--){var n=this.path[e];if(n instanceof t)return n}},t.prototype.push=function(t){this.path.push(t)},t.prototype.pop=function(){return this.path.pop()}}();var Vt=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Bt=function(){function t(t,e,n,r,i){this.switchValue=t,this.type=e,this.cases=n,this.sourceSpan=r,this.switchValueSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansion(this,e)},t}(),zt=function(){function t(t,e,n,r,i){this.value=t,this.expression=e,this.sourceSpan=n,this.valueSourceSpan=r,this.expSourceSpan=i}return t.prototype.visit=function(t,e){return t.visitExpansionCase(this,e)},t}(),Ht=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}(),Ut=function(){function t(t,e,n,r,i,o){void 0===i&&(i=null),void 0===o&&(o=null),this.name=t,this.attrs=e,this.children=n,this.sourceSpan=r,this.startSourceSpan=i,this.endSourceSpan=o}return t.prototype.visit=function(t,e){return t.visitElement(this,e)},t}(),qt=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitComment(this,e)},t}();function Wt(t,e,n){void 0===n&&(n=null);var r=[],i=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=i(t);e&&r.push(e)}),r}!function(){function t(){}t.prototype.visitElement=function(t,e){this.visitChildren(e,function(e){e(t.attrs),e(t.children)})},t.prototype.visitAttribute=function(t,e){},t.prototype.visitText=function(t,e){},t.prototype.visitComment=function(t,e){},t.prototype.visitExpansion=function(t,e){return this.visitChildren(e,function(e){e(t.cases)})},t.prototype.visitExpansionCase=function(t,e){},t.prototype.visitChildren=function(t,e){var n=[],r=this;return e(function(e){e&&n.push(Wt(r,e,t))}),[].concat.apply([],n)}}();function Gt(t,e){if(null!=e){if(!Array.isArray(e))throw new Error("Expected '"+t+"' to be an array of strings.");for(var n=0;n]/,/^[{}]$/,/&(#|[a-z])/i,/^\/\//];function Kt(t,e){if(!(null==e||Array.isArray(e)&&2==e.length))throw new Error("Expected '"+t+"' to be an array, [start, end].");if(null!=e){var n=e[0],r=e[1];Yt.forEach(function(t){if(t.test(n)||t.test(r))throw new Error("['"+n+"', '"+r+"'] contains unusable interpolation symbol.")})}}var Xt=function(){function t(t,e){this.start=t,this.end=e}return t.fromArray=function(e){return e?(Kt("interpolation",e),new t(e[0],e[1])):Zt},t}(),Zt=new Xt("{{","}}"),Qt=function(){return function(t,e){this.style=t,this.styleUrls=e}}();function $t(t){if(null==t||0===t.length||"/"==t[0])return!1;var e=t.match(ee);return null===e||"package"==e[1]||"asset"==e[1]}var Jt=/@import\s+(?:url\()?\s*(?:(?:['"]([^'"]*))|([^;\)\s]*))[^;]*;?/g,te=/\/\*(?!#\s*(?:sourceURL|sourceMappingURL)=)[\s\S]+?\*\//g,ee=/^([^:/?#]+):/,ne={RAW_TEXT:0,ESCAPABLE_RAW_TEXT:1,PARSABLE_DATA:2};function re(t){if(":"!=t[0])return[null,t];var e=t.indexOf(":",1);if(-1==e)throw new Error('Unsupported format "'+t+'" expecting ":namespace:name"');return[t.slice(1,e),t.slice(e+1)]}function ie(t){return"ng-container"===re(t)[1]}function oe(t){return"ng-content"===re(t)[1]}function ae(t){return null===t?null:re(t)[0]}function se(t,e){return t?":"+t+":"+e:e}ne[ne.RAW_TEXT]="RAW_TEXT",ne[ne.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",ne[ne.PARSABLE_DATA]="PARSABLE_DATA";var ce={Aacute:"\xc1",aacute:"\xe1",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",AElig:"\xc6",aelig:"\xe6",Agrave:"\xc0",agrave:"\xe0",alefsym:"\u2135",Alpha:"\u0391",alpha:"\u03b1",amp:"&",and:"\u2227",ang:"\u2220",apos:"'",Aring:"\xc5",aring:"\xe5",asymp:"\u2248",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",bdquo:"\u201e",Beta:"\u0392",beta:"\u03b2",brvbar:"\xa6",bull:"\u2022",cap:"\u2229",Ccedil:"\xc7",ccedil:"\xe7",cedil:"\xb8",cent:"\xa2",Chi:"\u03a7",chi:"\u03c7",circ:"\u02c6",clubs:"\u2663",cong:"\u2245",copy:"\xa9",crarr:"\u21b5",cup:"\u222a",curren:"\xa4",dagger:"\u2020",Dagger:"\u2021",darr:"\u2193",dArr:"\u21d3",deg:"\xb0",Delta:"\u0394",delta:"\u03b4",diams:"\u2666",divide:"\xf7",Eacute:"\xc9",eacute:"\xe9",Ecirc:"\xca",ecirc:"\xea",Egrave:"\xc8",egrave:"\xe8",empty:"\u2205",emsp:"\u2003",ensp:"\u2002",Epsilon:"\u0395",epsilon:"\u03b5",equiv:"\u2261",Eta:"\u0397",eta:"\u03b7",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"\u20ac",exist:"\u2203",fnof:"\u0192",forall:"\u2200",frac12:"\xbd",frac14:"\xbc",frac34:"\xbe",frasl:"\u2044",Gamma:"\u0393",gamma:"\u03b3",ge:"\u2265",gt:">",harr:"\u2194",hArr:"\u21d4",hearts:"\u2665",hellip:"\u2026",Iacute:"\xcd",iacute:"\xed",Icirc:"\xce",icirc:"\xee",iexcl:"\xa1",Igrave:"\xcc",igrave:"\xec",image:"\u2111",infin:"\u221e",int:"\u222b",Iota:"\u0399",iota:"\u03b9",iquest:"\xbf",isin:"\u2208",Iuml:"\xcf",iuml:"\xef",Kappa:"\u039a",kappa:"\u03ba",Lambda:"\u039b",lambda:"\u03bb",lang:"\u27e8",laquo:"\xab",larr:"\u2190",lArr:"\u21d0",lceil:"\u2308",ldquo:"\u201c",le:"\u2264",lfloor:"\u230a",lowast:"\u2217",loz:"\u25ca",lrm:"\u200e",lsaquo:"\u2039",lsquo:"\u2018",lt:"<",macr:"\xaf",mdash:"\u2014",micro:"\xb5",middot:"\xb7",minus:"\u2212",Mu:"\u039c",mu:"\u03bc",nabla:"\u2207",nbsp:"\xa0",ndash:"\u2013",ne:"\u2260",ni:"\u220b",not:"\xac",notin:"\u2209",nsub:"\u2284",Ntilde:"\xd1",ntilde:"\xf1",Nu:"\u039d",nu:"\u03bd",Oacute:"\xd3",oacute:"\xf3",Ocirc:"\xd4",ocirc:"\xf4",OElig:"\u0152",oelig:"\u0153",Ograve:"\xd2",ograve:"\xf2",oline:"\u203e",Omega:"\u03a9",omega:"\u03c9",Omicron:"\u039f",omicron:"\u03bf",oplus:"\u2295",or:"\u2228",ordf:"\xaa",ordm:"\xba",Oslash:"\xd8",oslash:"\xf8",Otilde:"\xd5",otilde:"\xf5",otimes:"\u2297",Ouml:"\xd6",ouml:"\xf6",para:"\xb6",permil:"\u2030",perp:"\u22a5",Phi:"\u03a6",phi:"\u03c6",Pi:"\u03a0",pi:"\u03c0",piv:"\u03d6",plusmn:"\xb1",pound:"\xa3",prime:"\u2032",Prime:"\u2033",prod:"\u220f",prop:"\u221d",Psi:"\u03a8",psi:"\u03c8",quot:'"',radic:"\u221a",rang:"\u27e9",raquo:"\xbb",rarr:"\u2192",rArr:"\u21d2",rceil:"\u2309",rdquo:"\u201d",real:"\u211c",reg:"\xae",rfloor:"\u230b",Rho:"\u03a1",rho:"\u03c1",rlm:"\u200f",rsaquo:"\u203a",rsquo:"\u2019",sbquo:"\u201a",Scaron:"\u0160",scaron:"\u0161",sdot:"\u22c5",sect:"\xa7",shy:"\xad",Sigma:"\u03a3",sigma:"\u03c3",sigmaf:"\u03c2",sim:"\u223c",spades:"\u2660",sub:"\u2282",sube:"\u2286",sum:"\u2211",sup:"\u2283",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supe:"\u2287",szlig:"\xdf",Tau:"\u03a4",tau:"\u03c4",there4:"\u2234",Theta:"\u0398",theta:"\u03b8",thetasym:"\u03d1",thinsp:"\u2009",THORN:"\xde",thorn:"\xfe",tilde:"\u02dc",times:"\xd7",trade:"\u2122",Uacute:"\xda",uacute:"\xfa",uarr:"\u2191",uArr:"\u21d1",Ucirc:"\xdb",ucirc:"\xfb",Ugrave:"\xd9",ugrave:"\xf9",uml:"\xa8",upsih:"\u03d2",Upsilon:"\u03a5",upsilon:"\u03c5",Uuml:"\xdc",uuml:"\xfc",weierp:"\u2118",Xi:"\u039e",xi:"\u03be",Yacute:"\xdd",yacute:"\xfd",yen:"\xa5",yuml:"\xff",Yuml:"\u0178",Zeta:"\u0396",zeta:"\u03b6",zwj:"\u200d",zwnj:"\u200c"},le="\ue500";ce.ngsp=le;var ue="select",pe="link",he="rel",de="href",fe="stylesheet",me="style",ye="script",ve="ngNonBindable",ge="ngProjectAs";function be(t){var e=null,n=null,r=null,i=!1,o=null;t.attrs.forEach(function(t){var a=t.name.toLowerCase();a==ue?e=t.value:a==de?n=t.value:a==he?r=t.value:t.name==ve?i=!0:t.name==ge&&t.value.length>0&&(o=t.value)}),e=function(t){if(null===t||0===t.length)return"*";return t}(e);var a=t.name.toLowerCase(),s=_e.OTHER;return oe(a)?s=_e.NG_CONTENT:a==me?s=_e.STYLE:a==ye?s=_e.SCRIPT:a==pe&&r==fe&&(s=_e.STYLESHEET),new we(s,e,n,i,o)}var _e={NG_CONTENT:0,STYLE:1,STYLESHEET:2,SCRIPT:3,OTHER:4};_e[_e.NG_CONTENT]="NG_CONTENT",_e[_e.STYLE]="STYLE",_e[_e.STYLESHEET]="STYLESHEET",_e[_e.SCRIPT]="SCRIPT",_e[_e.OTHER]="OTHER";var we=function(){return function(t,e,n,r,i){this.type=t,this.selectAttr=e,this.hrefAttr=n,this.nonBindable=r,this.projectAs=i}}();var xe=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;if(t.isComponent){var n=t.template;this._resourceLoaderCache.delete(n.templateUrl),n.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 e=this;if(N(t.template)){if(N(t.templateUrl))throw H("'"+K(t.componentType)+"' component cannot define both template and templateUrl");if("string"!=typeof t.template)throw H("The template specified for component "+K(t.componentType)+" is not a string")}else{if(!N(t.templateUrl))throw H("No template specified for component "+K(t.componentType));if("string"!=typeof t.templateUrl)throw H("The templateUrl specified for component "+K(t.componentType)+" is not a string")}if(N(t.preserveWhitespaces)&&"boolean"!=typeof t.preserveWhitespaces)throw H("The preserveWhitespaces option for component "+K(t.componentType)+" must be a boolean");return B(this._preParseTemplate(t),function(n){return e._normalizeTemplateMetadata(t,n)})},t.prototype._preParseTemplate=function(t){var e,n,r=this;return null!=t.template?(e=t.template,n=t.moduleUrl):(n=this._urlResolver.resolve(t.moduleUrl,t.templateUrl),e=this._fetch(n)),B(e,function(e){return r._preparseLoadedTemplate(t,e,n)})},t.prototype._preparseLoadedTemplate=function(t,e,n){var r=!!t.template,i=Xt.fromArray(t.interpolation),o=this._htmlParser.parse(e,Ft({reference:t.ngModuleType},{type:{reference:t.componentType}},{isInline:r,templateUrl:n}),!0,i);if(o.errors.length>0)throw H("Template parse errors:\n"+o.errors.join("\n"));var a=this._normalizeStylesheet(new Tt({styles:t.styles,moduleUrl:t.moduleUrl})),s=new Ce;Wt(s,o.rootNodes);var c=this._normalizeStylesheet(new Tt({styles:s.styles,styleUrls:s.styleUrls,moduleUrl:n}));return{template:e,templateUrl:n,isInline:r,htmlAst:o,styles:a.styles.concat(c.styles),inlineStyleUrls:a.styleUrls.concat(c.styleUrls),styleUrls:this._normalizeStylesheet(new Tt({styleUrls:t.styleUrls,moduleUrl:t.moduleUrl})).styleUrls,ngContentSelectors:s.ngContentSelectors}},t.prototype._normalizeTemplateMetadata=function(t,e){var n=this;return B(this._loadMissingExternalStylesheets(e.styleUrls.concat(e.inlineStyleUrls)),function(r){return n._normalizeLoadedTemplateMetadata(t,e,r)})},t.prototype._normalizeLoadedTemplateMetadata=function(t,e,n){var r=this,i=e.styles.slice();this._inlineStyles(e.inlineStyleUrls,n,i);var o=e.styleUrls,a=o.map(function(t){var e=n.get(t),i=e.styles.slice();return r._inlineStyles(e.styleUrls,n,i),new Tt({moduleUrl:t,styles:i})}),s=t.encapsulation;return null==s&&(s=this._config.defaultEncapsulation),s===h.Emulated&&0===i.length&&0===o.length&&(s=h.None),new Pt({encapsulation:s,template:e.template,templateUrl:e.templateUrl,htmlAst:e.htmlAst,styles:i,styleUrls:o,ngContentSelectors:e.ngContentSelectors,animations:t.animations,interpolation:t.interpolation,isInline:e.isInline,externalStylesheets:a,preserveWhitespaces:ft(t.preserveWhitespaces,this._config.preserveWhitespaces)})},t.prototype._inlineStyles=function(t,e,n){var r=this;t.forEach(function(t){var i=e.get(t);i.styles.forEach(function(t){return n.push(t)}),r._inlineStyles(i.styleUrls,e,n)})},t.prototype._loadMissingExternalStylesheets=function(t,e){var n=this;return void 0===e&&(e=new Map),B(z(t.filter(function(t){return!e.has(t)}).map(function(t){return B(n._fetch(t),function(r){var i=n._normalizeStylesheet(new Tt({styles:[r],moduleUrl:t}));return e.set(t,i),n._loadMissingExternalStylesheets(i.styleUrls,e)})})),function(t){return e})},t.prototype._normalizeStylesheet=function(t){var e=this,n=t.moduleUrl,r=t.styleUrls.filter($t).map(function(t){return e._urlResolver.resolve(n,t)}),i=t.styles.map(function(t){var i,o,a,s,c=(i=e._urlResolver,o=n,a=[],s=t.replace(te,"").replace(Jt,function(){for(var t=[],e=0;e', or 'attr.'.");a["["+e.hostPropertyName+"]"]=t}else a["["+t+"]"]=t}),e[t].filter(function(t){return b.isTypeOf(t)}).forEach(function(e){var n=e.args||[];a["("+e.eventName+")"]=t+"("+n.join(",")+")"});var c=ke(e[t],function(t){return Ee.some(function(e){return e.isTypeOf(t)})});c&&(s[t]=c)}),this._merge(t,i,o,a,s,n,r)},t.prototype._extractPublicName=function(t){return R(t,[null,t])[1].trim()},t.prototype._dedupeBindings=function(t){for(var e=new Set,n=new Set,r=[],i=t.length-1;i>=0;i--){var o=t[i],a=this._extractPublicName(o);n.add(a),e.has(a)||(e.add(a),r.push(o))}return r.reverse()},t.prototype._merge=function(t,e,n,i,o,a,s){var c=this._dedupeBindings(t.inputs?t.inputs.concat(e):e),l=this._dedupeBindings(t.outputs?t.outputs.concat(n):n),u=t.host?Object(r.a)({},t.host,i):i,h=t.queries?Object(r.a)({},t.queries,o):o;if(f.isTypeOf(t)){var d=t;return f({selector:d.selector,inputs:c,outputs:l,host:u,exportAs:d.exportAs,moduleId:d.moduleId,queries:h,changeDetection:d.changeDetection,providers:d.providers,viewProviders:d.viewProviders,entryComponents:d.entryComponents,template:d.template,templateUrl:d.templateUrl,styles:d.styles,styleUrls:d.styleUrls,encapsulation:d.encapsulation,animations:d.animations,interpolation:d.interpolation,preserveWhitespaces:t.preserveWhitespaces})}return p({selector:t.selector,inputs:c,outputs:l,host:u,exportAs:t.exportAs,queries:h,providers:t.providers,guards:a})},t}();function Oe(t){return p.isTypeOf(t)||f.isTypeOf(t)}function ke(t,e){for(var n=t.length-1;n>=0;n--)if(e(t[n]))return t[n];return null}var Te=0,Pe=9,De=10,Ae=11,Ie=12,Re=13,Me=32,je=34,Ne=36,Le=39,Fe=43,Ve=45,Be=47,ze=59,He=61,Ue=62,qe=48,We=57,Ge=65,Ye=69,Ke=70,Xe=90,Ze=95,Qe=97,$e=101,Je=102,tn=110,en=114,nn=116,rn=118,on=122,an=123,sn=160,cn=96;function ln(t){return t>=Pe&&t<=Me||t==sn}function un(t){return qe<=t&&t<=We}function pn(t){return t>=Qe&&t<=on||t>=Ge&&t<=Xe}var hn={Character:0,Identifier:1,Keyword:2,String:3,Operator:4,Number:5,Error:6};hn[hn.Character]="Character",hn[hn.Identifier]="Identifier",hn[hn.Keyword]="Keyword",hn[hn.String]="String",hn[hn.Operator]="Operator",hn[hn.Number]="Number",hn[hn.Error]="Error";var dn=["var","let","as","null","undefined","true","false","if","else","this"],fn=function(){function t(){}return t.prototype.tokenize=function(t){for(var e=new bn(t),n=[],r=e.scanToken();null!=r;)n.push(r),r=e.scanToken();return n},t}(),mn=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==hn.Character&&this.numValue==t},t.prototype.isNumber=function(){return this.type==hn.Number},t.prototype.isString=function(){return this.type==hn.String},t.prototype.isOperator=function(t){return this.type==hn.Operator&&this.strValue==t},t.prototype.isIdentifier=function(){return this.type==hn.Identifier},t.prototype.isKeyword=function(){return this.type==hn.Keyword},t.prototype.isKeywordLet=function(){return this.type==hn.Keyword&&"let"==this.strValue},t.prototype.isKeywordAs=function(){return this.type==hn.Keyword&&"as"==this.strValue},t.prototype.isKeywordNull=function(){return this.type==hn.Keyword&&"null"==this.strValue},t.prototype.isKeywordUndefined=function(){return this.type==hn.Keyword&&"undefined"==this.strValue},t.prototype.isKeywordTrue=function(){return this.type==hn.Keyword&&"true"==this.strValue},t.prototype.isKeywordFalse=function(){return this.type==hn.Keyword&&"false"==this.strValue},t.prototype.isKeywordThis=function(){return this.type==hn.Keyword&&"this"==this.strValue},t.prototype.isError=function(){return this.type==hn.Error},t.prototype.toNumber=function(){return this.type==hn.Number?this.numValue:-1},t.prototype.toString=function(){switch(this.type){case hn.Character:case hn.Identifier:case hn.Keyword:case hn.Operator:case hn.String:case hn.Error:return this.strValue;case hn.Number:return this.numValue.toString();default:return null}},t}();function yn(t,e){return new mn(t,hn.Character,e,String.fromCharCode(e))}function vn(t,e){return new mn(t,hn.Operator,0,e)}var gn=new mn(-1,hn.Character,0,""),bn=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?Te:this.input.charCodeAt(this.index)},t.prototype.scanToken=function(){for(var t=this.input,e=this.length,n=this.peek,r=this.index;n<=Me;){if(++r>=e){n=Te;break}n=t.charCodeAt(r)}if(this.peek=n,this.index=r,r>=e)return null;if(_n(n))return this.scanIdentifier();if(un(n))return this.scanNumber(r);var i=r;switch(n){case 46:return this.advance(),un(this.peek)?this.scanNumber(i):yn(i,46);case 40:case 41:case an:case 125:case 91:case 93:case 44:case 58:case ze:return this.scanCharacter(i,n);case Le:case je:return this.scanString();case 35:case Fe:case Ve:case 42:case Be:case 37:case 94:return this.scanOperator(i,String.fromCharCode(n));case 63:return this.scanComplexOperator(i,"?",46,".");case 60:case Ue:return this.scanComplexOperator(i,String.fromCharCode(n),He,"=");case 33:case He:return this.scanComplexOperator(i,String.fromCharCode(n),He,"=",He,"=");case 38:return this.scanComplexOperator(i,"&",38,"&");case 124:return this.scanComplexOperator(i,"|",124,"|");case sn:for(;ln(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(),yn(t,e)},t.prototype.scanOperator=function(t,e){return this.advance(),vn(t,e)},t.prototype.scanComplexOperator=function(t,e,n,r,i,o){this.advance();var a=e;return this.peek==n&&(this.advance(),a+=r),null!=i&&this.peek==i&&(this.advance(),a+=o),vn(t,a)},t.prototype.scanIdentifier=function(){var t=this.index;for(this.advance();wn(this.peek);)this.advance();var e,n=this.input.substring(t,this.index);return dn.indexOf(n)>-1?(e=n,new mn(t,hn.Keyword,0,e)):function(t,e){return new mn(t,hn.Identifier,0,e)}(t,n)},t.prototype.scanNumber=function(t){var e,n=this.index===t;for(this.advance();;){if(un(this.peek));else if(46==this.peek)n=!1;else{if((e=this.peek)!=$e&&e!=Ye)break;if(this.advance(),xn(this.peek)&&this.advance(),!un(this.peek))return this.error("Invalid exponent",-1);n=!1}this.advance()}var r,i=this.input.substring(t,this.index),o=n?function(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}(i):parseFloat(i);return r=o,new mn(t,hn.Number,r,"")},t.prototype.scanString=function(){var t=this.index,e=this.peek;this.advance();for(var n="",r=this.index,i=this.input;this.peek!=e;)if(92==this.peek){n+=i.substring(r,this.index),this.advance();var o=void 0;if(this.peek=this.peek,117==this.peek){var a=i.substring(this.index+1,this.index+5);if(!/^[0-9a-f]+$/i.test(a))return this.error("Invalid unicode escape [\\u"+a+"]",0);o=parseInt(a,16);for(var s=0;s<5;s++)this.advance()}else o=Cn(this.peek),this.advance();n+=String.fromCharCode(o),r=this.index}else{if(this.peek==Te)return this.error("Unterminated quote",0);this.advance()}var c,l=i.substring(r,this.index);return this.advance(),c=n+l,new mn(t,hn.String,0,c)},t.prototype.error=function(t,e){var n=this.index+e;return function(t,e){return new mn(t,hn.Error,0,e)}(n,"Lexer Error: "+t+" at column "+n+" in expression ["+this.input+"]")},t}();function _n(t){return Qe<=t&&t<=on||Ge<=t&&t<=Xe||t==Ze||t==Ne}function wn(t){return pn(t)||un(t)||t==Ze||t==Ne}function xn(t){return t==Ve||t==Fe}function Cn(t){switch(t){case tn:return De;case Je:return Ie;case en:return Re;case nn:return Pe;case rn:return Ae;default:return t}}var En=function(){return function(t,e,n,r){this.input=e,this.errLocation=n,this.ctxLocation=r,this.message="Parser Error: "+t+" "+n+" ["+e+"] in "+r}}(),Sn=function(){return function(t,e){this.start=t,this.end=e}}(),On=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}(),kn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.prefix=n,o.uninterpretedExpression=r,o.location=i,o}return Object(r.b)(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}(On),Tn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.visit=function(t,e){void 0===e&&(e=null)},e}(On),Pn=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitImplicitReceiver(this,e)},e}(On),Dn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return Object(r.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitChain(this,e)},e}(On),An=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.condition=n,o.trueExp=r,o.falseExp=i,o}return Object(r.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitConditional(this,e)},e}(On),In=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return Object(r.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyRead(this,e)},e}(On),Rn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.value=i,o}return Object(r.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPropertyWrite(this,e)},e}(On),Mn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.receiver=n,i.name=r,i}return Object(r.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafePropertyRead(this,e)},e}(On),jn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.obj=n,i.key=r,i}return Object(r.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedRead(this,e)},e}(On),Nn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.obj=n,o.key=r,o.value=i,o}return Object(r.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitKeyedWrite(this,e)},e}(On),Ln=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.exp=n,o.name=r,o.args=i,o}return Object(r.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPipe(this,e)},e}(On),Fn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return Object(r.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralPrimitive(this,e)},e}(On),Vn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expressions=n,r}return Object(r.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralArray(this,e)},e}(On),Bn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keys=n,i.values=r,i}return Object(r.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitLiteralMap(this,e)},e}(On),zn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.strings=n,i.expressions=r,i}return Object(r.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitInterpolation(this,e)},e}(On),Hn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.operation=n,o.left=r,o.right=i,o}return Object(r.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitBinary(this,e)},e}(On),Un=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return Object(r.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitPrefixNot(this,e)},e}(On),qn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.expression=n,r}return Object(r.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitNonNullAssert(this,e)},e}(On),Wn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return Object(r.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitMethodCall(this,e)},e}(On),Gn=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.receiver=n,o.name=r,o.args=i,o}return Object(r.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitSafeMethodCall(this,e)},e}(On),Yn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.target=n,i.args=r,i}return Object(r.b)(e,t),e.prototype.visit=function(t,e){return void 0===e&&(e=null),t.visitFunctionCall(this,e)},e}(On),Kn=function(t){function e(e,n,r,i){var o=t.call(this,new Sn(0,null==n?0:n.length))||this;return o.ast=e,o.source=n,o.location=r,o.errors=i,o}return Object(r.b)(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}(On),Xn=function(){return function(t,e,n,r,i){this.span=t,this.key=e,this.keyIsVar=n,this.name=r,this.expression=i}}(),Zn=(function(){function t(){}t.prototype.visitBinary=function(t,e){},t.prototype.visitChain=function(t,e){},t.prototype.visitConditional=function(t,e){},t.prototype.visitFunctionCall=function(t,e){},t.prototype.visitImplicitReceiver=function(t,e){},t.prototype.visitInterpolation=function(t,e){},t.prototype.visitKeyedRead=function(t,e){},t.prototype.visitKeyedWrite=function(t,e){},t.prototype.visitLiteralArray=function(t,e){},t.prototype.visitLiteralMap=function(t,e){},t.prototype.visitLiteralPrimitive=function(t,e){},t.prototype.visitMethodCall=function(t,e){},t.prototype.visitPipe=function(t,e){},t.prototype.visitPrefixNot=function(t,e){},t.prototype.visitNonNullAssert=function(t,e){},t.prototype.visitPropertyRead=function(t,e){},t.prototype.visitPropertyWrite=function(t,e){},t.prototype.visitQuote=function(t,e){},t.prototype.visitSafeMethodCall=function(t,e){},t.prototype.visitSafePropertyRead=function(t,e){}}(),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.visitNonNullAssert=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}()),Qn=function(){function t(){}return t.prototype.visitImplicitReceiver=function(t,e){return t},t.prototype.visitInterpolation=function(t,e){return new zn(t.span,t.strings,this.visitAll(t.expressions))},t.prototype.visitLiteralPrimitive=function(t,e){return new Fn(t.span,t.value)},t.prototype.visitPropertyRead=function(t,e){return new In(t.span,t.receiver.visit(this),t.name)},t.prototype.visitPropertyWrite=function(t,e){return new Rn(t.span,t.receiver.visit(this),t.name,t.value.visit(this))},t.prototype.visitSafePropertyRead=function(t,e){return new Mn(t.span,t.receiver.visit(this),t.name)},t.prototype.visitMethodCall=function(t,e){return new Wn(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitSafeMethodCall=function(t,e){return new Gn(t.span,t.receiver.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitFunctionCall=function(t,e){return new Yn(t.span,t.target.visit(this),this.visitAll(t.args))},t.prototype.visitLiteralArray=function(t,e){return new Vn(t.span,this.visitAll(t.expressions))},t.prototype.visitLiteralMap=function(t,e){return new Bn(t.span,t.keys,this.visitAll(t.values))},t.prototype.visitBinary=function(t,e){return new Hn(t.span,t.operation,t.left.visit(this),t.right.visit(this))},t.prototype.visitPrefixNot=function(t,e){return new Un(t.span,t.expression.visit(this))},t.prototype.visitNonNullAssert=function(t,e){return new qn(t.span,t.expression.visit(this))},t.prototype.visitConditional=function(t,e){return new An(t.span,t.condition.visit(this),t.trueExp.visit(this),t.falseExp.visit(this))},t.prototype.visitPipe=function(t,e){return new Ln(t.span,t.exp.visit(this),t.name,this.visitAll(t.args))},t.prototype.visitKeyedRead=function(t,e){return new jn(t.span,t.obj.visit(this),t.key.visit(this))},t.prototype.visitKeyedWrite=function(t,e){return new Nn(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;n0&&this._reportError("Host binding expression cannot contain "+i.join(" "),t,e),new Kn(r,t,e,this.errors)},t.prototype._reportError=function(t,e,n,r){this.errors.push(new En(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 i=this._stripComments(t),o=this._lexer.tokenize(i);return new nr(t,e,o,i.length,!1,this.errors,t.length-i.length).parseChain()},t.prototype._parseQuote=function(t,e){if(null==t)return null;var n=t.indexOf(":");if(-1==n)return null;var r=t.substring(0,n).trim();if(!function(t){if(0==t.length)return!1;var e=new bn(t);if(!_n(e.peek))return!1;for(e.advance();e.peek!==Te;){if(!wn(e.peek))return!1;e.advance()}return!0}(r))return null;var i=t.substring(n+1);return new kn(new Sn(0,t.length),r,i,e)},t.prototype.parseTemplateBindings=function(t,e,n){var r=this._lexer.tokenize(e);if(t){var i=this._lexer.tokenize(t).map(function(t){return t.index=0,t});r.unshift.apply(r,i)}return new nr(e,n,r,e.length,!1,this.errors,0).parseTemplateBindings()},t.prototype.parseInterpolation=function(t,e,n){void 0===n&&(n=Zt);var r=this.splitInterpolation(t,e,n);if(null==r)return null;for(var i=[],o=0;o0?(c+=n.start.length,a.push(u),s.push(c),c+=u.length+n.end.length):(this._reportError("Blank expressions are not allowed in interpolated strings",t,"at column "+this._findInterpolationErrorColumn(i,l,n)+" in",e),a.push("$implict"),s.push(c))}return new $n(o,a,s)},t.prototype.wrapLiteralPrimitive=function(t,e){return new Kn(new Fn(new Sn(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,n=null,r=0;r1&&this._reportError("Got interpolation ("+n.start+n.end+") where expression was expected",t,"at column "+this._findInterpolationErrorColumn(i,1,n)+" in",e)},t.prototype._findInterpolationErrorColumn=function(t,e,n){for(var r="",i=0;i":case"<=":case">=":this.advance();var n=this.parseAdditive();t=new Hn(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseAdditive=function(){for(var t=this.parseMultiplicative();this.next.type==hn.Operator;){var e=this.next.strValue;switch(e){case"+":case"-":this.advance();var n=this.parseMultiplicative();t=new Hn(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parseMultiplicative=function(){for(var t=this.parsePrefix();this.next.type==hn.Operator;){var e=this.next.strValue;switch(e){case"*":case"%":case"/":this.advance();var n=this.parsePrefix();t=new Hn(this.span(t.span.start),e,t,n);continue}break}return t},t.prototype.parsePrefix=function(){if(this.next.type==hn.Operator){var t=this.inputIndex,e=this.next.strValue,n=void 0;switch(e){case"+":return this.advance(),n=this.parsePrefix(),new Hn(this.span(t),"-",n,new Fn(new Sn(t,t),0));case"-":return this.advance(),n=this.parsePrefix(),new Hn(this.span(t),e,new Fn(new Sn(t,t),0),n);case"!":return this.advance(),n=this.parsePrefix(),new Un(this.span(t),n)}}return this.parseCallChain()},t.prototype.parseCallChain=function(){for(var t=this.parsePrimary();;)if(this.optionalCharacter(46))t=this.parseAccessMemberOrMethodCall(t,!1);else if(this.optionalOperator("?."))t=this.parseAccessMemberOrMethodCall(t,!0);else if(this.optionalCharacter(91)){this.rbracketsExpected++;var e=this.parsePipe();if(this.rbracketsExpected--,this.expectCharacter(93),this.optionalOperator("=")){var n=this.parseConditional();t=new Nn(this.span(t.span.start),t,e,n)}else t=new jn(this.span(t.span.start),t,e)}else if(this.optionalCharacter(40)){this.rparensExpected++;var r=this.parseCallArguments();this.rparensExpected--,this.expectCharacter(41),t=new Yn(this.span(t.span.start),t,r)}else{if(!this.optionalOperator("!"))return t;t=new qn(this.span(t.span.start),t)}},t.prototype.parsePrimary=function(){var t=this.inputIndex;if(this.optionalCharacter(40)){this.rparensExpected++;var e=this.parsePipe();return this.rparensExpected--,this.expectCharacter(41),e}if(this.next.isKeywordNull())return this.advance(),new Fn(this.span(t),null);if(this.next.isKeywordUndefined())return this.advance(),new Fn(this.span(t),void 0);if(this.next.isKeywordTrue())return this.advance(),new Fn(this.span(t),!0);if(this.next.isKeywordFalse())return this.advance(),new Fn(this.span(t),!1);if(this.next.isKeywordThis())return this.advance(),new Pn(this.span(t));if(this.optionalCharacter(91)){this.rbracketsExpected++;var n=this.parseExpressionList(93);return this.rbracketsExpected--,this.expectCharacter(93),new Vn(this.span(t),n)}if(this.next.isCharacter(an))return this.parseLiteralMap();if(this.next.isIdentifier())return this.parseAccessMemberOrMethodCall(new Pn(this.span(t)),!1);if(this.next.isNumber()){var r=this.next.toNumber();return this.advance(),new Fn(this.span(t),r)}if(this.next.isString()){var i=this.next.toString();return this.advance(),new Fn(this.span(t),i)}return this.index>=this.tokens.length?(this.error("Unexpected end of expression: "+this.input),new Tn(this.span(t))):(this.error("Unexpected token "+this.next),new Tn(this.span(t)))},t.prototype.parseExpressionList=function(t){var e=[];if(!this.next.isCharacter(t))do{e.push(this.parsePipe())}while(this.optionalCharacter(44));return e},t.prototype.parseLiteralMap=function(){var t=[],e=[],n=this.inputIndex;if(this.expectCharacter(an),!this.optionalCharacter(125)){this.rbracesExpected++;do{var r=this.next.isString(),i=this.expectIdentifierOrKeywordOrString();t.push({key:i,quoted:r}),this.expectCharacter(58),e.push(this.parsePipe())}while(this.optionalCharacter(44));this.rbracesExpected--,this.expectCharacter(125)}return new Bn(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(40)){this.rparensExpected++;var i=this.parseCallArguments();this.expectCharacter(41),this.rparensExpected--;var o=this.span(n);return e?new Gn(o,t,r,i):new Wn(o,t,r,i)}if(e)return this.optionalOperator("=")?(this.error("The '?.' operator cannot be used in the assignment"),new Tn(this.span(n))):new Mn(this.span(n),t,r);if(this.optionalOperator("=")){if(!this.parseAction)return this.error("Bindings cannot contain assignments"),new Tn(this.span(n));var a=this.parseConditional();return new Rn(this.span(n),t,r,a)}return new In(this.span(n),t,r)},t.prototype.parseCallArguments=function(){if(this.next.isCharacter(41))return[];var t=[];do{t.push(this.parsePipe())}while(this.optionalCharacter(44));return t},t.prototype.expectTemplateBindingKey=function(){var t="",e=!1;do{t+=this.expectIdentifierOrKeywordOrString(),(e=this.optionalOperator("-"))&&(t+="-")}while(e);return t.toString()},t.prototype.parseTemplateBindings=function(){for(var t=[],e=null;this.index0&&e<0;){if(i--,e++,(c=n.charCodeAt(i))==De){o--;var s=n.substr(0,i-1).lastIndexOf(String.fromCharCode(De));a=s>0?i-s:i}else a--}for(;i0;){var c=n.charCodeAt(i);i++,e--,c==De?(o++,a=0):a++}return new t(this.file,i,o,a)},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 i=r,o=0,a=0;o0&&(o++,"\n"!=n[--r]||++a!=e););for(o=0,a=0;o]"+t.after+'")':this.msg},t.prototype.toString=function(){var t=this.span.details?", "+this.span.details:"";return this.contextualMessage()+": "+this.span.start+t},t}();var lr={TAG_OPEN_START:0,TAG_OPEN_END:1,TAG_OPEN_END_VOID:2,TAG_CLOSE:3,TEXT:4,ESCAPABLE_RAW_TEXT:5,RAW_TEXT:6,COMMENT_START:7,COMMENT_END:8,CDATA_START:9,CDATA_END:10,ATTR_NAME:11,ATTR_VALUE:12,DOC_TYPE:13,EXPANSION_FORM_START:14,EXPANSION_CASE_VALUE:15,EXPANSION_CASE_EXP_START:16,EXPANSION_CASE_EXP_END:17,EXPANSION_FORM_END:18,EOF:19};lr[lr.TAG_OPEN_START]="TAG_OPEN_START",lr[lr.TAG_OPEN_END]="TAG_OPEN_END",lr[lr.TAG_OPEN_END_VOID]="TAG_OPEN_END_VOID",lr[lr.TAG_CLOSE]="TAG_CLOSE",lr[lr.TEXT]="TEXT",lr[lr.ESCAPABLE_RAW_TEXT]="ESCAPABLE_RAW_TEXT",lr[lr.RAW_TEXT]="RAW_TEXT",lr[lr.COMMENT_START]="COMMENT_START",lr[lr.COMMENT_END]="COMMENT_END",lr[lr.CDATA_START]="CDATA_START",lr[lr.CDATA_END]="CDATA_END",lr[lr.ATTR_NAME]="ATTR_NAME",lr[lr.ATTR_VALUE]="ATTR_VALUE",lr[lr.DOC_TYPE]="DOC_TYPE",lr[lr.EXPANSION_FORM_START]="EXPANSION_FORM_START",lr[lr.EXPANSION_CASE_VALUE]="EXPANSION_CASE_VALUE",lr[lr.EXPANSION_CASE_EXP_START]="EXPANSION_CASE_EXP_START",lr[lr.EXPANSION_CASE_EXP_END]="EXPANSION_CASE_EXP_END",lr[lr.EXPANSION_FORM_END]="EXPANSION_FORM_END",lr[lr.EOF]="EOF";var ur=function(){return function(t,e,n){this.type=t,this.parts=e,this.sourceSpan=n}}(),pr=function(t){function e(e,n,r){var i=t.call(this,r,e)||this;return i.tokenType=n,i}return Object(r.b)(e,t),e}(cr),hr=function(){return function(t,e){this.tokens=t,this.errors=e}}();var dr=/\r\n?/g;function fr(t){return'Unexpected character "'+(t===Te?"EOF":String.fromCharCode(t))+'"'}function mr(t){return'Unknown entity "'+t+'" - use the "&#;" or "&#x;" syntax'}var yr=function(){return function(t){this.error=t}}(),vr=function(){function t(t,e,n,r){void 0===r&&(r=Zt),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(dr,"\n")},t.prototype.tokenize=function(){for(;this._peek!==Te;){var t=this._getLocation();try{this._attemptCharCode(60)?this._attemptCharCode(33)?this._attemptCharCode(91)?this._consumeCdata(t):this._attemptCharCode(Ve)?this._consumeComment(t):this._consumeDocType(t):this._attemptCharCode(Be)?this._consumeTagClose(t):this._consumeTagOpen(t):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeText()}catch(t){if(!(t instanceof yr))throw t;this.errors.push(t.error)}}return this._beginToken(lr.EOF),this._endToken([]),new hr(function(t){for(var e=[],n=void 0,r=0;r=this._length)throw this._createError(fr(Te),this._getSpan());this._peek===De?(this._line++,this._column=0):this._peek!==De&&this._peek!==Re&&this._column++,this._index++,this._peek=this._index>=this._length?Te:this._input.charCodeAt(this._index),this._nextPeek=this._index+1>=this._length?Te:this._input.charCodeAt(this._index+1)},t.prototype._attemptCharCode=function(t){return this._peek===t&&(this._advance(),!0)},t.prototype._attemptCharCodeCaseInsensitive=function(t){return e=this._peek,n=t,Cr(e)==Cr(n)&&(this._advance(),!0);var e,n},t.prototype._requireCharCode=function(t){var e=this._getLocation();if(!this._attemptCharCode(t))throw this._createError(fr(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;rr.offset&&o.push(this._input.substring(r.offset,this._index));this._peek!==e;)o.push(this._readChar(t));return this._endToken([this._processCarriageReturns(o.join(""))],r)},t.prototype._consumeComment=function(t){var e=this;this._beginToken(lr.COMMENT_START,t),this._requireCharCode(Ve),this._endToken([]);var n=this._consumeRawText(!1,Ve,function(){return e._attemptStr("->")});this._beginToken(lr.COMMENT_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeCdata=function(t){var e=this;this._beginToken(lr.CDATA_START,t),this._requireStr("CDATA["),this._endToken([]);var n=this._consumeRawText(!1,93,function(){return e._attemptStr("]>")});this._beginToken(lr.CDATA_END,n.sourceSpan.end),this._endToken([])},t.prototype._consumeDocType=function(t){this._beginToken(lr.DOC_TYPE,t),this._attemptUntilChar(Ue),this._advance(),this._endToken([this._input.substring(t.offset+2,this._index-1)])},t.prototype._consumePrefixAndName=function(){for(var t,e,n=this._index,r=null;58!==this._peek&&!(((t=this._peek)We));)this._advance();return 58===this._peek?(this._advance(),r=this._input.substring(n,this._index-1),e=this._index):e=n,this._requireCharCodeUntilFn(br,this._index===e?1:0),[r,this._input.substring(e,this._index)]},t.prototype._consumeTagOpen=function(t){var e,n,r=this._savePosition();try{if(!pn(this._peek))throw this._createError(fr(this._peek),this._getSpan());var i=this._index;for(this._consumeTagOpenStart(t),n=(e=this._input.substring(i,this._index)).toLowerCase(),this._attemptCharCodeUntilFn(gr);this._peek!==Be&&this._peek!==Ue;)this._consumeAttributeName(),this._attemptCharCodeUntilFn(gr),this._attemptCharCode(He)&&(this._attemptCharCodeUntilFn(gr),this._consumeAttributeValue()),this._attemptCharCodeUntilFn(gr);this._consumeTagOpenEnd()}catch(e){if(e instanceof yr)return this._restorePosition(r),this._beginToken(lr.TEXT,t),void this._endToken(["<"]);throw e}var o=this._getTagDefinition(e).contentType;o===ne.RAW_TEXT?this._consumeRawTextWithTagClose(n,!1):o===ne.ESCAPABLE_RAW_TEXT&&this._consumeRawTextWithTagClose(n,!0)},t.prototype._consumeRawTextWithTagClose=function(t,e){var n=this,r=this._consumeRawText(e,60,function(){return!!n._attemptCharCode(Be)&&(n._attemptCharCodeUntilFn(gr),!!n._attemptStrCaseInsensitive(t)&&(n._attemptCharCodeUntilFn(gr),n._attemptCharCode(Ue)))});this._beginToken(lr.TAG_CLOSE,r.sourceSpan.end),this._endToken([null,t])},t.prototype._consumeTagOpenStart=function(t){this._beginToken(lr.TAG_OPEN_START,t);var e=this._consumePrefixAndName();this._endToken(e)},t.prototype._consumeAttributeName=function(){this._beginToken(lr.ATTR_NAME);var t=this._consumePrefixAndName();this._endToken(t)},t.prototype._consumeAttributeValue=function(){var t;if(this._beginToken(lr.ATTR_VALUE),this._peek===Le||this._peek===je){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(br,1),t=this._input.substring(r,this._index)}this._endToken([this._processCarriageReturns(t)])},t.prototype._consumeTagOpenEnd=function(){var t=this._attemptCharCode(Be)?lr.TAG_OPEN_END_VOID:lr.TAG_OPEN_END;this._beginToken(t),this._requireCharCode(Ue),this._endToken([])},t.prototype._consumeTagClose=function(t){this._beginToken(lr.TAG_CLOSE,t),this._attemptCharCodeUntilFn(gr);var e=this._consumePrefixAndName();this._attemptCharCodeUntilFn(gr),this._requireCharCode(Ue),this._endToken(e)},t.prototype._consumeExpansionFormStart=function(){this._beginToken(lr.EXPANSION_FORM_START,this._getLocation()),this._requireCharCode(an),this._endToken([]),this._expansionCaseStack.push(lr.EXPANSION_FORM_START),this._beginToken(lr.RAW_TEXT,this._getLocation());var t=this._readUntil(44);this._endToken([t],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(gr),this._beginToken(lr.RAW_TEXT,this._getLocation());var e=this._readUntil(44);this._endToken([e],this._getLocation()),this._requireCharCode(44),this._attemptCharCodeUntilFn(gr)},t.prototype._consumeExpansionCaseStart=function(){this._beginToken(lr.EXPANSION_CASE_VALUE,this._getLocation());var t=this._readUntil(an).trim();this._endToken([t],this._getLocation()),this._attemptCharCodeUntilFn(gr),this._beginToken(lr.EXPANSION_CASE_EXP_START,this._getLocation()),this._requireCharCode(an),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(gr),this._expansionCaseStack.push(lr.EXPANSION_CASE_EXP_START)},t.prototype._consumeExpansionCaseEnd=function(){this._beginToken(lr.EXPANSION_CASE_EXP_END,this._getLocation()),this._requireCharCode(125),this._endToken([],this._getLocation()),this._attemptCharCodeUntilFn(gr),this._expansionCaseStack.pop()},t.prototype._consumeExpansionFormEnd=function(){this._beginToken(lr.EXPANSION_FORM_END,this._getLocation()),this._requireCharCode(125),this._endToken([]),this._expansionCaseStack.pop()},t.prototype._consumeText=function(){var t=this._getLocation();this._beginToken(lr.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(60===this._peek||this._peek===Te)return!0;if(this._tokenizeIcu&&!this._inInterpolation){if(xr(this._input,this._index,this._interpolationConfig))return!0;if(125===this._peek&&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];e0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===lr.EXPANSION_CASE_EXP_START},t.prototype._isInExpansionForm=function(){return this._expansionCaseStack.length>0&&this._expansionCaseStack[this._expansionCaseStack.length-1]===lr.EXPANSION_FORM_START},t}();function gr(t){return!ln(t)||t===Te}function br(t){return ln(t)||t===Ue||t===Be||t===Le||t===je||t===He}function _r(t){return t==ze||t==Te||!function(t){return t>=Qe&&t<=Je||t>=Ge&&t<=Ke||un(t)}(t)}function wr(t){return t==ze||t==Te||!pn(t)}function xr(t,e,n){var r=!!n&&t.indexOf(n.start,e)==e;return t.charCodeAt(e)==an&&!r}function Cr(t){return t>=Qe&&t<=on?t-Qe+Ge:t}var Er=function(t){function e(e,n,r){var i=t.call(this,n,r)||this;return i.elementName=e,i}return Object(r.b)(e,t),e.create=function(t,n,r){return new e(t,n,r)},e}(cr),Sr=function(){return function(t,e){this.rootNodes=t,this.errors=e}}(),Or=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=Zt);var i=function(t,e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=Zt),new vr(new or(t,e),n,r,i).tokenize()}(t,e,this.getTagDefinition,n,r),o=new kr(i.tokens,this.getTagDefinition).build();return new Sr(o.rootNodes,i.errors.concat(o.errors))},t}(),kr=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!==lr.EOF;)this._peek.type===lr.TAG_OPEN_START?this._consumeStartTag(this._advance()):this._peek.type===lr.TAG_CLOSE?this._consumeEndTag(this._advance()):this._peek.type===lr.CDATA_START?(this._closeVoidElement(),this._consumeCdata(this._advance())):this._peek.type===lr.COMMENT_START?(this._closeVoidElement(),this._consumeComment(this._advance())):this._peek.type===lr.TEXT||this._peek.type===lr.RAW_TEXT||this._peek.type===lr.ESCAPABLE_RAW_TEXT?(this._closeVoidElement(),this._consumeText(this._advance())):this._peek.type===lr.EXPANSION_FORM_START?this._consumeExpansion(this._advance()):this._advance();return new Sr(this._rootNodes,this._errors)},t.prototype._advance=function(){var t=this._peek;return this._index0)return this._errors=this._errors.concat(o.errors),null;var a=new ar(e.sourceSpan.start,i.sourceSpan.end),s=new ar(n.sourceSpan.start,i.sourceSpan.end);return new zt(e.parts[0],o.rootNodes,a,e.sourceSpan,s)},t.prototype._collectExpansionExpTokens=function(t){for(var e=[],n=[lr.EXPANSION_CASE_EXP_START];;){if(this._peek.type!==lr.EXPANSION_FORM_START&&this._peek.type!==lr.EXPANSION_CASE_EXP_START||n.push(this._peek.type),this._peek.type===lr.EXPANSION_CASE_EXP_END){if(!Tr(n,lr.EXPANSION_CASE_EXP_START))return this._errors.push(Er.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;if(n.pop(),0==n.length)return e}if(this._peek.type===lr.EXPANSION_FORM_END){if(!Tr(n,lr.EXPANSION_FORM_START))return this._errors.push(Er.create(null,t.sourceSpan,"Invalid ICU message. Missing '}'.")),null;n.pop()}if(this._peek.type===lr.EOF)return this._errors.push(Er.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 Vt(e,t.sourceSpan))},t.prototype._closeVoidElement=function(){var t=this._getParentElement();t&&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===lr.ATTR_NAME;)r.push(this._consumeAttr(this._advance()));var i=this._getElementFullName(e,n,this._getParentElement()),o=!1;if(this._peek.type===lr.TAG_OPEN_END_VOID){this._advance(),o=!0;var a=this.getTagDefinition(i);a.canSelfClose||null!==ae(i)||a.isVoid||this._errors.push(Er.create(i,t.sourceSpan,'Only void and foreign elements can be self closed "'+t.parts[1]+'"'))}else this._peek.type===lr.TAG_OPEN_END&&(this._advance(),o=!1);var s=this._peek.sourceSpan.start,c=new ar(t.sourceSpan.start,s),l=new Ut(i,r,[],c,c,void 0);this._pushElement(l),o&&(this._popElement(i),l.endSourceSpan=c)},t.prototype._pushElement=function(t){var e=this._getParentElement();e&&this.getTagDefinition(e.name).isClosedByChild(t.name)&&this._elementStack.pop();var n=this.getTagDefinition(t.name),r=this._getParentElementSkippingContainers(),i=r.parent,o=r.container;if(i&&n.requireExtraParent(i.name)){var a=new Ut(n.parentToAdd,[],[],t.sourceSpan,t.startSourceSpan,t.endSourceSpan);this._insertBeforeContainer(i,o,a)}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(Er.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(Er.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=se(t.parts[0],t.parts[1]),n=t.sourceSpan.end,r="",i=void 0;if(this._peek.type===lr.ATTR_VALUE){var o=this._advance();r=o.parts[0],n=o.sourceSpan.end,i=o.sourceSpan}return new Ht(e,r,new ar(t.sourceSpan.start,n),i)},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(!ie(this._elementStack[e].name))return{parent:this._elementStack[e],container:t};t=this._elementStack[e]}return{parent:null,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&&null==(t=this.getTagDefinition(e).implicitNamespacePrefix)&&null!=n&&(t=ae(n.name)),se(t,e)},t}();function Tr(t,e){return t.length>0&&t[t.length-1]===e}function Pr(t){return t.id||function(t){var e,n,r=Y(t),i=function(t,e){for(var n=Array(t.length+3>>>2),r=0;r>5]|=128<<24-o%32,i[15+(o+64>>9<<4)]=o;for(var d=0;d>>4).toString(16)+(15&r).toString(16)}return e.toLowerCase()}(Wr([c,l,u,p,h]))}((e=t.nodes,e.map(function(t){return t.visit(Ir,null)})).join("")+"["+t.meaning+"]");var e}function Dr(t){if(t.id)return t.id;var e=new Rr;return function(t,e){var n,r=jr(t),i=r[0],o=r[1];if(e){var a=jr(e),s=a[0],c=a[1];n=function(t,e){var n=t[0],r=t[1],i=e[0],o=e[1],a=Br(r,o),s=a[0],c=a[1];return[Vr(Vr(n,i),s),c]}(function(t,e){var n=t[0],r=t[1];return[n<>>32-e,r<>>32-e]}([i,o],1),[s,c]),i=n[0],o=n[1]}return function(t){for(var e="",n="1",r=t.length-1;r>=0;r--)e=Gr(e,Yr(Ur(t,r),n)),n=Yr(256,n);return e.split("").reverse().join("")}(Wr([2147483647&i,o]))}(t.nodes.map(function(t){return t.visit(e,null)}).join(""),t.meaning)}var Ar=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?'':''+t.children.map(function(t){return t.visit(n)}).join(", ")+''},t.prototype.visitPlaceholder=function(t,e){return t.value?''+t.value+"":''},t.prototype.visitIcuPlaceholder=function(t,e){return''+t.value.visit(this)+""},t}(),Ir=new Ar;var Rr=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(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}(Ar);function Mr(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 jr(t){var e=Y(t),n=[Nr(e,0),Nr(e,102072)],r=n[0],i=n[1];return 0!=r||0!=i&&1!=i||(r^=319790063,i^=-1801410264),[r,i]}function Nr(t,e){var n,r,i=[2654435769,2654435769],o=i[0],a=i[1],s=t.length;for(n=0;n+12<=s;n+=12)o=(r=Lr([o=Vr(o,qr(t,n,Fr.Little)),a=Vr(a,qr(t,n+4,Fr.Little)),e=Vr(e,qr(t,n+8,Fr.Little))]))[0],a=r[1],e=r[2];return Lr([o=Vr(o,qr(t,n,Fr.Little)),a=Vr(a,qr(t,n+4,Fr.Little)),e=Vr(e=Vr(e,s),qr(t,n+8,Fr.Little)<<8)])[2]}function Lr(t){var e=t[0],n=t[1],r=t[2];return e=zr(e=zr(e,n),r),e^=r>>>13,n=zr(n=zr(n,r),e),n^=e<<8,r=zr(r=zr(r,e),n),r^=n>>>13,e=zr(e=zr(e,n),r),e^=r>>>12,n=zr(n=zr(n,r),e),n^=e<<16,r=zr(r=zr(r,e),n),r^=n>>>5,e=zr(e=zr(e,n),r),e^=r>>>3,n=zr(n=zr(n,r),e),n^=e<<10,r=zr(r=zr(r,e),n),[e,n,r^=n>>>15]}var Fr={Little:0,Big:1};function Vr(t,e){return Br(t,e)[1]}function Br(t,e){var n=(65535&t)+(65535&e),r=(t>>>16)+(e>>>16)+(n>>>16);return[r>>>16,r<<16|65535&n]}function zr(t,e){var n=(65535&t)-(65535&e);return(t>>16)-(e>>16)+(n>>16)<<16|65535&n}function Hr(t,e){return t<>>32-e}function Ur(t,e){return e>=t.length?0:255&t.charCodeAt(e)}function qr(t,e,n){var r=0;if(n===Fr.Big)for(var i=0;i<4;i++)r+=Ur(t,e+i)<<24-8*i;else for(i=0;i<4;i++)r+=Ur(t,e+i)<<8*i;return r}function Wr(t){return t.reduce(function(t,e){return t+function(t){for(var e="",n=0;n<4;n++)e+=String.fromCharCode(t>>>8*(3-n)&255);return e}(e)},"")}function Gr(t,e){for(var n="",r=Math.max(t.length,e.length),i=0,o=0;i=10?(o=1,n+=a-10):(o=0,n+=a)}return n}function Yr(t,e){for(var n="",r=e;0!==t;t>>>=1)1&t&&(n=Gr(n,r)),r=Gr(r,r);return n}Fr[Fr.Little]="Little",Fr[Fr.Big]="Big";var Kr=function(){return function(t,e,n,r,i,o){this.nodes=t,this.placeholders=e,this.placeholderToMessage=n,this.meaning=r,this.description=i,this.id=o,t.length?this.sources=[{filePath:t[0].sourceSpan.start.file.url,startLine:t[0].sourceSpan.start.line+1,startCol:t[0].sourceSpan.start.col+1,endLine:t[t.length-1].sourceSpan.end.line+1,endCol:t[0].sourceSpan.start.col+1}]:this.sources=[]}}(),Xr=function(){function t(t,e){this.value=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitText(this,e)},t}(),Zr=function(){function t(t,e){this.children=t,this.sourceSpan=e}return t.prototype.visit=function(t,e){return t.visitContainer(this,e)},t}(),Qr=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}(),$r=function(){function t(t,e,n,r,i,o,a){this.tag=t,this.attrs=e,this.startName=n,this.closeName=r,this.children=i,this.isVoid=o,this.sourceSpan=a}return t.prototype.visit=function(t,e){return t.visitTagPlaceholder(this,e)},t}(),Jr=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}(),ti=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}(),ei=function(){function t(){}return t.prototype.visitText=function(t,e){return new Xr(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 Zr(r,t.sourceSpan)},t.prototype.visitIcu=function(t,e){var n=this,r={};Object.keys(t.cases).forEach(function(i){return r[i]=t.cases[i].visit(n,e)});var i=new Qr(t.expression,t.type,r,t.sourceSpan);return i.expressionPlaceholder=t.expressionPlaceholder,i},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=t.children.map(function(t){return t.visit(n,e)});return new $r(t.tag,t.attrs,t.startName,t.closeName,r,t.isVoid,t.sourceSpan)},t.prototype.visitPlaceholder=function(t,e){return new Jr(t.value,t.name,t.sourceSpan)},t.prototype.visitIcuPlaceholder=function(t,e){return new ti(t.value,t.name,t.sourceSpan)},t}(),ni=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}(),ri=function(){function t(t){var e=void 0===t?{}:t,n=e.closedByChildren,r=e.requiredParents,i=e.implicitNamespacePrefix,o=e.contentType,a=void 0===o?ne.PARSABLE_DATA:o,s=e.closedByParent,c=void 0!==s&&s,l=e.isVoid,u=void 0!==l&&l,p=e.ignoreFirstLf,h=void 0!==p&&p,d=this;this.closedByChildren={},this.closedByParent=!1,this.canSelfClose=!1,n&&n.length>0&&n.forEach(function(t){return d.closedByChildren[t]=!0}),this.isVoid=u,this.closedByParent=c||u,r&&r.length>0&&(this.requiredParents={},this.parentToAdd=r[0],r.forEach(function(t){return d.requiredParents[t]=!0})),this.implicitNamespacePrefix=i||null,this.contentType=a,this.ignoreFirstLf=h}return t.prototype.requireExtraParent=function(t){if(!this.requiredParents)return!1;if(!t)return!0;var e=t.toLowerCase();return!("template"===e||"ng-template"===t)&&1!=this.requiredParents[e]},t.prototype.isClosedByChild=function(t){return this.isVoid||t.toLowerCase()in this.closedByChildren},t}(),ii={base:new ri({isVoid:!0}),meta:new ri({isVoid:!0}),area:new ri({isVoid:!0}),embed:new ri({isVoid:!0}),link:new ri({isVoid:!0}),img:new ri({isVoid:!0}),input:new ri({isVoid:!0}),param:new ri({isVoid:!0}),hr:new ri({isVoid:!0}),br:new ri({isVoid:!0}),source:new ri({isVoid:!0}),track:new ri({isVoid:!0}),wbr:new ri({isVoid:!0}),p:new ri({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 ri({closedByChildren:["tbody","tfoot"]}),tbody:new ri({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new ri({closedByChildren:["tbody"],closedByParent:!0}),tr:new ri({closedByChildren:["tr"],requiredParents:["tbody","tfoot","thead"],closedByParent:!0}),td:new ri({closedByChildren:["td","th"],closedByParent:!0}),th:new ri({closedByChildren:["td","th"],closedByParent:!0}),col:new ri({requiredParents:["colgroup"],isVoid:!0}),svg:new ri({implicitNamespacePrefix:"svg"}),math:new ri({implicitNamespacePrefix:"math"}),li:new ri({closedByChildren:["li"],closedByParent:!0}),dt:new ri({closedByChildren:["dt","dd"]}),dd:new ri({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new ri({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new ri({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new ri({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new ri({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new ri({closedByChildren:["optgroup"],closedByParent:!0}),option:new ri({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new ri({ignoreFirstLf:!0}),listing:new ri({ignoreFirstLf:!0}),style:new ri({contentType:ne.RAW_TEXT}),script:new ri({contentType:ne.RAW_TEXT}),title:new ri({contentType:ne.ESCAPABLE_RAW_TEXT}),textarea:new ri({contentType:ne.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})},oi=new ri;function ai(t){return ii[t.toLowerCase()]||oi}var si={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"},ci=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 i=t.toUpperCase(),o=si[i]||"TAG_"+i,a=this._generateUniqueName(n?o:"START_"+o);return this._signatureToName[r]=a,a},t.prototype.getCloseTagPlaceholderName=function(t){var e=this._hashClosingTag(t);if(this._signatureToName[e])return this._signatureToName[e];var n=t.toUpperCase(),r=si[n]||"TAG_"+n,i=this._generateUniqueName("CLOSE_"+r);return this._signatureToName[e]=i,i},t.prototype.getPlaceholderName=function(t,e){var n=t.toUpperCase(),r="PH: "+n+"="+e;if(this._signatureToName[r])return this._signatureToName[r];var i=this._generateUniqueName(n);return this._signatureToName[r]=i,i},t.prototype.getUniquePlaceholder=function(t){return this._generateUniqueName(t.toUpperCase())},t.prototype._hashTag=function(t,e,n){return"<"+t+Object.keys(e).sort().map(function(t){return" "+t+"="+e[t]}).join("")+(n?"/>":">")},t.prototype._hashClosingTag=function(t){return this._hashTag("/"+t,{},!1)},t.prototype._generateUniqueName=function(t){if(!this._placeHolderNameCounts.hasOwnProperty(t))return this._placeHolderNameCounts[t]=1,t;var e=this._placeHolderNameCounts[t];return this._placeHolderNameCounts[t]=e+1,t+"_"+e},t}(),li=new er(new fn);var ui=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 Bt,this._icuDepth=0,this._placeholderRegistry=new ci,this._placeholderToContent={},this._placeholderToMessage={};var i=Wt(this,t,{});return new Kr(i,this._placeholderToContent,this._placeholderToMessage,e,n,r)},t.prototype.visitElement=function(t,e){var n=Wt(this,t.children),r={};t.attrs.forEach(function(t){r[t.name]=t.value});var i=ai(t.name).isVoid,o=this._placeholderRegistry.getStartTagPlaceholderName(t.name,r,i);this._placeholderToContent[o]=t.sourceSpan.toString();var a="";return i||(a=this._placeholderRegistry.getCloseTagPlaceholderName(t.name),this._placeholderToContent[a]=""),new $r(t.name,r,o,a,n,i,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 i={},o=new Qr(e.switchValue,e.type,i,e.sourceSpan);if(e.cases.forEach(function(t){i[t.value]=new Zr(t.expression.map(function(t){return t.visit(r,{})}),t.expSourceSpan)}),this._icuDepth--,this._isIcu||this._icuDepth>0){var a=this._placeholderRegistry.getUniquePlaceholder("VAR_"+e.type);return o.expressionPlaceholder=a,this._placeholderToContent[a]=e.switchValue,o}var s=this._placeholderRegistry.getPlaceholderName("ICU",e.sourceSpan.toString()),c=new t(this._expressionParser,this._interpolationConfig);return this._placeholderToMessage[s]=c.toI18nMessage([e],"","",""),new ti(o,s,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 Xr(t,e);for(var r=[],i=new Zr(r,e),o=this._interpolationConfig,a=o.start,s=o.end,c=0;c element instead ("+t.sourceSpan.start+a+")")}this._inI18nBlock=!0,this._blockStartDepth=this._depth,this._blockChildren=[],this._blockMeaningAndDesc=t.value.replace(fi,"").trim(),this._openTranslatableSection(t)}}else this._reportError(t,"Trying to close an unopened block")}},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=this._inI18nNode,i=this._inImplicitNode,o=[],a=void 0,s=t.attrs.find(function(t){return t.name===di})||null,c=s?s.value:"",l=this._implicitTags.some(function(e){return t.name===e})&&!this._inIcu&&!this._isInTranslatableSection,u=!i&&l;if(this._inImplicitNode=i||l,this._isInTranslatableSection||this._inIcu)(s||u)&&this._reportError(t,"Could not mark an element as translatable inside a translatable section"),this._mode==bi.Extract&&Wt(this,t.children);else{if(s||u){this._inI18nNode=!0;var p=this._addMessage(t.children,c);a=this._translateMessage(t,p)}if(this._mode==bi.Extract){var h=s||u;h&&this._openTranslatableSection(t),Wt(this,t.children),h&&this._closeTranslatableSection(t,t.children)}}this._mode===bi.Merge&&(a||t.children).forEach(function(t){var r=t.visit(n,e);r&&!n._isInTranslatableSection&&(o=o.concat(r))});if(this._visitAttributesOf(t),this._depth--,this._inI18nNode=r,this._inImplicitNode=i,this._mode===bi.Merge){var d=this._translateAttributes(t);return new Ut(t.name,d,o,t.sourceSpan,t.startSourceSpan,t.endSourceSpan)}return null},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=function(t){var e=new ui(li,t);return function(t,n,r,i){return e.toI18nMessage(t,n,r,i)}}(e)},t.prototype._visitAttributesOf=function(t){var e=this,n={},r=this._implicitAttrs[t.name]||[];t.attrs.filter(function(t){return t.name.startsWith("i18n-")}).forEach(function(t){return n[t.name.slice("i18n-".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 Ht&&!t[0].value)return null;var n=wi(e),r=n.meaning,i=n.description,o=n.id,a=this._createI18nMessage(t,r,i,o);return this._messages.push(a),a},t.prototype._translateMessage=function(t,e){if(e&&this._mode===bi.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("i18n-")&&(r[t.name.slice("i18n-".length)]=wi(t.value))});var i=[];return n.forEach(function(n){if(n.name!==di&&!n.name.startsWith("i18n-"))if(n.value&&""!=n.value&&r.hasOwnProperty(n.name)){var o=r[n.name],a=o.meaning,s=o.description,c=o.id,l=e._createI18nMessage([n],a,s,c),u=e._translations.get(l);if(u)if(0==u.length)i.push(new Ht(n.name,"",n.sourceSpan));else if(u[0]instanceof Vt){var p=u[0].value;i.push(new Ht(n.name,p,n.sourceSpan))}else e._reportError(t,'Unexpected translation for attribute "'+n.name+'" (id="'+(c||e._translations.digest(l))+'")');else e._reportError(t,'Translation unavailable for attribute "'+n.name+'" (id="'+(c||e._translations.digest(l))+'")')}else i.push(n)}),i},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){var n=this._msgCountAtSectionStart;if(1==e.reduce(function(t,e){return t+(e instanceof qt?0:1)},0))for(var r=this._messages.length-1;r>=n;r--){var i=this._messages[r].nodes;if(!(1==i.length&&i[0]instanceof Xr)){this._messages.splice(r,1);break}}this._msgCountAtSectionStart=void 0}else this._reportError(t,"Unexpected section end")},t.prototype._reportError=function(t,e){this._errors.push(new hi(t.sourceSpan,e))},t}();function wi(t){if(!t)return{meaning:"",description:"",id:""};var e=t.indexOf(yi),n=t.indexOf(mi),r=e>-1?[t.slice(0,e),t.slice(e+2)]:[t,""],i=r[0],o=r[1],a=n>-1?[i.slice(0,n),i.slice(n+1)]:["",i];return{meaning:a[0],description:a[1],id:o}}var xi=new(function(){function t(){this.closedByParent=!1,this.contentType=ne.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}());function Ci(t){return xi}var Ei=function(t){function e(){return t.call(this,Ci)||this}return Object(r.b)(e,t),e.prototype.parse=function(e,n,r){return void 0===r&&(r=!1),t.prototype.parse.call(this,e,n,r)},e}(Or),Si=function(){function t(){}return t.prototype.createNameMapper=function(t){return null},t}(),Oi=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 Object(r.b)(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}(ni),ki=new(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.prototype.visitText=function(t){return t.value},t.prototype.visitDeclaration=function(t){return""},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""},t}());function Ti(t){return t.map(function(t){return t.visit(ki)}).join("")}var Pi=function(){function t(t){var e=this;this.attrs={},Object.keys(t).forEach(function(n){e.attrs[n]=ji(t[n])})}return t.prototype.visit=function(t){return t.visitDeclaration(this)},t}(),Di=function(){function t(t,e){this.rootTag=t,this.dtd=e}return t.prototype.visit=function(t){return t.visitDoctype(this)},t}(),Ai=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]=ji(e[t])})}return t.prototype.visit=function(t){return t.visitTag(this)},t}(),Ii=function(){function t(t){this.value=ji(t)}return t.prototype.visit=function(t){return t.visitText(this)},t}(),Ri=function(t){function e(e){return void 0===e&&(e=0),t.call(this,"\n"+new Array(e+1).join(" "))||this}return Object(r.b)(e,t),e}(Ii),Mi=[[/&/g,"&"],[/"/g,"""],[/'/g,"'"],[//g,">"]];function ji(t){return Mi.reduce(function(t,e){return t.replace(e[0],e[1])},t)}var Ni=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.write=function(t,e){var n=new Li,r=[];t.forEach(function(t){var e=[];t.sources.forEach(function(t){var n=new Ai("context-group",{purpose:"location"});n.children.push(new Ri(10),new Ai("context",{"context-type":"sourcefile"},[new Ii(t.filePath)]),new Ri(10),new Ai("context",{"context-type":"linenumber"},[new Ii(""+t.startLine)]),new Ri(8)),e.push(new Ri(8),n)});var i,o=new Ai("trans-unit",{id:t.id,datatype:"html"});(i=o.children).push.apply(i,[new Ri(8),new Ai("source",{},n.serialize(t.nodes))].concat(e)),t.description&&o.children.push(new Ri(8),new Ai("note",{priority:"1",from:"description"},[new Ii(t.description)])),t.meaning&&o.children.push(new Ri(8),new Ai("note",{priority:"1",from:"meaning"},[new Ii(t.meaning)])),o.children.push(new Ri(6)),r.push(new Ri(6),o)});var i=new Ai("body",{},r.concat([new Ri(4)])),o=new Ai("file",{"source-language":e||"en",datatype:"plaintext",original:"ng2.template"},[new Ri(4),i,new Ri(2)]),a=new Ai("xliff",{version:"1.2",xmlns:"urn:oasis:names:tc:xliff:document:1.2"},[new Ri(2),o,new Ri]);return Ti([new Pi({version:"1.0",encoding:"UTF-8"}),new Ri,a,new Ri])},e.prototype.load=function(t,e){var n=(new Fi).parse(t,e),r=n.locale,i=n.msgIdToHtml,o=n.errors,a={},s=new Vi;if(Object.keys(i).forEach(function(t){var n=s.convert(i[t],e),r=n.i18nNodes,c=n.errors;o.push.apply(o,c),a[t]=r}),o.length)throw new Error("xliff parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Pr(t)},e}(Si),Li=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ii(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 Ii("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Ii(e+" {")].concat(t.cases[e].visit(n),[new Ii("} ")]))}),r.push(new Ii("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=function(t){switch(t.toLowerCase()){case"br":return"lb";case"img":return"image";default:return"x-"+t}}(t.tag);if(t.isVoid)return[new Ai("x",{id:t.startName,ctype:n,"equiv-text":"<"+t.tag+"/>"})];var r=new Ai("x",{id:t.startName,ctype:n,"equiv-text":"<"+t.tag+">"}),i=new Ai("x",{id:t.closeName,ctype:n,"equiv-text":""});return[r].concat(this.serialize(t.children),[i])},t.prototype.visitPlaceholder=function(t,e){return[new Ai("x",{id:t.name,"equiv-text":"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(t,e){var n="{"+t.value.expression+", "+t.value.type+", "+Object.keys(t.value.cases).map(function(t){return t+" {...}"}).join(" ")+"}";return[new Ai("x",{id:t.name,"equiv-text":n})]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Fi=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new Ei).parse(t,e,!1);return this._errors=n.errors,Wt(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"trans-unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(Wt(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,' misses the "id" attribute');break;case"source":case"seg-source":break;case"target":var i=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,a=t.startSourceSpan.start.file.content.slice(i,o);this._unitMlString=a;break;case"file":var s=t.attrs.find(function(t){return"target-language"===t.name});s&&(this._locale=s.value),Wt(this,t.children,null);break;default:Wt(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 hi(t.sourceSpan,e))},t}(),Vi=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Ei).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],Wt(this,n.rootNodes)),errors:this._errors}},t.prototype.visitText=function(t,e){return new Xr(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){if("x"===t.name){var n=t.attrs.find(function(t){return"id"===t.name});return n?new Jr("",n.value,t.sourceSpan):(this._addError(t,' misses the "id" attribute'),null)}return"mrk"===t.name?[].concat.apply([],Wt(this,t.children)):(this._addError(t,"Unexpected tag"),null)},t.prototype.visitExpansion=function(t,e){var n={};return Wt(this,t.cases).forEach(function(e){n[e.value]=new Zr(e.nodes,t.sourceSpan)}),new Qr(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:Wt(this,t.expression)}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new hi(t.sourceSpan,e))},t}();var Bi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.write=function(t,e){var n=new zi,r=[];t.forEach(function(t){var e=new Ai("unit",{id:t.id}),i=new Ai("notes");(t.description||t.meaning)&&(t.description&&i.children.push(new Ri(8),new Ai("note",{category:"description"},[new Ii(t.description)])),t.meaning&&i.children.push(new Ri(8),new Ai("note",{category:"meaning"},[new Ii(t.meaning)]))),t.sources.forEach(function(t){i.children.push(new Ri(8),new Ai("note",{category:"location"},[new Ii(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),i.children.push(new Ri(6)),e.children.push(new Ri(6),i);var o=new Ai("segment");o.children.push(new Ri(8),new Ai("source",{},n.serialize(t.nodes)),new Ri(6)),e.children.push(new Ri(6),o,new Ri(4)),r.push(new Ri(4),e)});var i=new Ai("file",{original:"ng.template",id:"ngi18n"},r.concat([new Ri(2)])),o=new Ai("xliff",{version:"2.0",xmlns:"urn:oasis:names:tc:xliff:document:2.0",srcLang:e||"en"},[new Ri(2),i,new Ri]);return Ti([new Pi({version:"1.0",encoding:"UTF-8"}),new Ri,o,new Ri])},e.prototype.load=function(t,e){var n=(new Hi).parse(t,e),r=n.locale,i=n.msgIdToHtml,o=n.errors,a={},s=new Ui;if(Object.keys(i).forEach(function(t){var n=s.convert(i[t],e),r=n.i18nNodes,c=n.errors;o.push.apply(o,c),a[t]=r}),o.length)throw new Error("xliff2 parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Dr(t)},e}(Si),zi=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ii(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 Ii("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Ii(e+" {")].concat(t.cases[e].visit(n),[new Ii("} ")]))}),r.push(new Ii("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=this,r=function(t){switch(t.toLowerCase()){case"br":case"b":case"i":case"u":return"fmt";case"img":return"image";case"a":return"link";default:return"other"}}(t.tag);if(t.isVoid)return[new Ai("ph",{id:(this._nextPlaceholderId++).toString(),equiv:t.startName,type:r,disp:"<"+t.tag+"/>"})];var i=new Ai("pc",{id:(this._nextPlaceholderId++).toString(),equivStart:t.startName,equivEnd:t.closeName,type:r,dispStart:"<"+t.tag+">",dispEnd:""}),o=[].concat.apply([],t.children.map(function(t){return t.visit(n)}));return o.length?o.forEach(function(t){return i.children.push(t)}):i.children.push(new Ii("")),[i]},t.prototype.visitPlaceholder=function(t,e){var n=(this._nextPlaceholderId++).toString();return[new Ai("ph",{id:n,equiv:t.name,disp:"{{"+t.value+"}}"})]},t.prototype.visitIcuPlaceholder=function(t,e){var n=Object.keys(t.value.cases).map(function(t){return t+" {...}"}).join(" "),r=(this._nextPlaceholderId++).toString();return[new Ai("ph",{id:r,equiv:t.name,disp:"{"+t.value.expression+", "+t.value.type+", "+n+"}"})]},t.prototype.serialize=function(t){var e=this;return this._nextPlaceholderId=0,[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}(),Hi=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._unitMlString=null,this._msgIdToHtml={};var n=(new Ei).parse(t,e,!1);return this._errors=n.errors,Wt(this,n.rootNodes,null),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"unit":this._unitMlString=null;var n=t.attrs.find(function(t){return"id"===t.name});if(n){var r=n.value;this._msgIdToHtml.hasOwnProperty(r)?this._addError(t,"Duplicated translations for msg "+r):(Wt(this,t.children,null),"string"==typeof this._unitMlString?this._msgIdToHtml[r]=this._unitMlString:this._addError(t,"Message "+r+" misses a translation"))}else this._addError(t,' misses the "id" attribute');break;case"source":break;case"target":var i=t.startSourceSpan.end.offset,o=t.endSourceSpan.start.offset,a=t.startSourceSpan.start.file.content.slice(i,o);this._unitMlString=a;break;case"xliff":var s=t.attrs.find(function(t){return"trgLang"===t.name});s&&(this._locale=s.value);var c=t.attrs.find(function(t){return"version"===t.name});if(c){var l=c.value;"2.0"!==l?this._addError(t,"The XLIFF file version "+l+" is not compatible with XLIFF 2.0 serializer"):Wt(this,t.children,null)}break;default:Wt(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 hi(t.sourceSpan,e))},t}(),Ui=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Ei).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:[].concat.apply([],Wt(this,n.rootNodes)),errors:this._errors}},t.prototype.visitText=function(t,e){return new Xr(t.value,t.sourceSpan)},t.prototype.visitElement=function(t,e){var n=this;switch(t.name){case"ph":var r=t.attrs.find(function(t){return"equiv"===t.name});if(r)return[new Jr("",r.value,t.sourceSpan)];this._addError(t,' misses the "equiv" attribute');break;case"pc":var i=t.attrs.find(function(t){return"equivStart"===t.name}),o=t.attrs.find(function(t){return"equivEnd"===t.name});if(i){if(o){var a=i.value,s=o.value,c=[];return c.concat.apply(c,[new Jr("",a,t.sourceSpan)].concat(t.children.map(function(t){return t.visit(n,null)}),[new Jr("",s,t.sourceSpan)]))}this._addError(t,' misses the "equivEnd" attribute')}else this._addError(t,' misses the "equivStart" attribute');break;case"mrk":return[].concat.apply([],Wt(this,t.children));default:this._addError(t,"Unexpected tag")}return null},t.prototype.visitExpansion=function(t,e){var n={};return Wt(this,t.cases).forEach(function(e){n[e.value]=new Zr(e.nodes,t.sourceSpan)}),new Qr(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:[].concat.apply([],Wt(this,t.expression))}},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new hi(t.sourceSpan,e))},t}();var qi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.write=function(t,e){var n=new Yi,r=new Wi,i=new Ai("messagebundle");return t.forEach(function(t){var e={id:t.id};t.description&&(e.desc=t.description),t.meaning&&(e.meaning=t.meaning);var n=[];t.sources.forEach(function(t){n.push(new Ai("source",{},[new Ii(t.filePath+":"+t.startLine+(t.endLine!==t.startLine?","+t.endLine:""))]))}),i.children.push(new Ri(2),new Ai("msg",e,n.concat(r.serialize(t.nodes))))}),i.children.push(new Ri),Ti([new Pi({version:"1.0",encoding:"UTF-8"}),new Ri,new Di("messagebundle",'\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n'),new Ri,n.addDefaultExamples(i),new Ri])},e.prototype.load=function(t,e){throw new Error("Unsupported")},e.prototype.digest=function(t){return Gi(t)},e.prototype.createNameMapper=function(t){return new Oi(t,Ki)},e}(Si),Wi=function(){function t(){}return t.prototype.visitText=function(t,e){return[new Ii(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 Ii("{"+t.expressionPlaceholder+", "+t.type+", ")];return Object.keys(t.cases).forEach(function(e){r.push.apply(r,[new Ii(e+" {")].concat(t.cases[e].visit(n),[new Ii("} ")]))}),r.push(new Ii("}")),r},t.prototype.visitTagPlaceholder=function(t,e){var n=new Ai("ex",{},[new Ii("<"+t.tag+">")]),r=new Ai("ph",{name:t.startName},[n]);if(t.isVoid)return[r];var i=new Ai("ex",{},[new Ii("")]),o=new Ai("ph",{name:t.closeName},[i]);return[r].concat(this.serialize(t.children),[o])},t.prototype.visitPlaceholder=function(t,e){var n=new Ai("ex",{},[new Ii("{{"+t.value+"}}")]);return[new Ai("ph",{name:t.name},[n])]},t.prototype.visitIcuPlaceholder=function(t,e){var n=new Ai("ex",{},[new Ii("{"+t.value.expression+", "+t.value.type+", "+Object.keys(t.value.cases).map(function(t){return t+" {...}"}).join(" ")+"}")]);return[new Ai("ph",{name:t.name},[n])]},t.prototype.serialize=function(t){var e=this;return[].concat.apply([],t.map(function(t){return t.visit(e)}))},t}();function Gi(t){return Dr(t)}var Yi=function(){function t(){}return t.prototype.addDefaultExamples=function(t){return t.visit(this),t},t.prototype.visitTag=function(t){var e=this;if("ph"===t.name){if(!t.children||0==t.children.length){var n=new Ii(t.attrs.name||"...");t.children=[new Ai("ex",{},[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}();function Ki(t){return t.toUpperCase().replace(/[^A-Z0-9_]/g,"_")}var Xi=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.write=function(t,e){throw new Error("Unsupported")},e.prototype.load=function(t,e){var n=(new Zi).parse(t,e),r=n.locale,i=n.msgIdToHtml,o=n.errors,a={},s=new Qi;if(Object.keys(i).forEach(function(t){!function(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")}})}(a,t,function(){var n=s.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})}),o.length)throw new Error("xtb parse errors:\n"+o.join("\n"));return{locale:r,i18nNodesByMsgId:a}},e.prototype.digest=function(t){return Gi(t)},e.prototype.createNameMapper=function(t){return new Oi(t,Ki)},e}(Si);var Zi=function(){function t(){this._locale=null}return t.prototype.parse=function(t,e){this._bundleDepth=0,this._msgIdToHtml={};var n=(new Ei).parse(t,e,!1);return this._errors=n.errors,Wt(this,n.rootNodes),{msgIdToHtml:this._msgIdToHtml,errors:this._errors,locale:this._locale}},t.prototype.visitElement=function(t,e){switch(t.name){case"translationbundle":this._bundleDepth++,this._bundleDepth>1&&this._addError(t," elements can not be nested");var n=t.attrs.find(function(t){return"lang"===t.name});n&&(this._locale=n.value),Wt(this,t.children,null),this._bundleDepth--;break;case"translation":var r=t.attrs.find(function(t){return"id"===t.name});if(r){var i=r.value;if(this._msgIdToHtml.hasOwnProperty(i))this._addError(t,"Duplicated translations for msg "+i);else{var o=t.startSourceSpan.end.offset,a=t.endSourceSpan.start.offset,s=t.startSourceSpan.start.file.content.slice(o,a);this._msgIdToHtml[i]=s}}else this._addError(t,' 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 hi(t.sourceSpan,e))},t}(),Qi=function(){function t(){}return t.prototype.convert=function(t,e){var n=(new Ei).parse(t,e,!0);return this._errors=n.errors,{i18nNodes:this._errors.length>0||0==n.rootNodes.length?[]:Wt(this,n.rootNodes),errors:this._errors}},t.prototype.visitText=function(t,e){return new Xr(t.value,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){var n={};return Wt(this,t.cases).forEach(function(e){n[e.value]=new Zr(e.nodes,t.sourceSpan)}),new Qr(t.switchValue,t.type,n,t.sourceSpan)},t.prototype.visitExpansionCase=function(t,e){return{value:t.value,nodes:Wt(this,t.expression)}},t.prototype.visitElement=function(t,e){if("ph"===t.name){var n=t.attrs.find(function(t){return"name"===t.name});if(n)return new Jr("",n.value,t.sourceSpan);this._addError(t,' misses the "name" attribute')}else this._addError(t,"Unexpected tag");return null},t.prototype.visitComment=function(t,e){},t.prototype.visitAttribute=function(t,e){},t.prototype._addError=function(t,e){this._errors.push(new hi(t.sourceSpan,e))},t}(),$i=function(t){function e(){return t.call(this,ai)||this}return Object(r.b)(e,t),e.prototype.parse=function(e,n,r,i){return void 0===r&&(r=!1),void 0===i&&(i=Zt),t.prototype.parse.call(this,e,n,r,i)},e}(Or),Ji=function(){function t(t,e,n,r,i,o){void 0===t&&(t={}),void 0===i&&(i=D.Warning),this._i18nNodesByMsgId=t,this.digest=n,this.mapperFactory=r,this._i18nToHtml=new to(t,e,n,r,i,o)}return t.load=function(e,n,r,i,o){var a=r.load(e,n),s=a.locale;return new t(a.i18nNodesByMsgId,s,function(t){return r.digest(t)},function(t){return r.createNameMapper(t)},i,o)},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}(),to=function(){function t(t,e,n,r,i,o){void 0===t&&(t={}),this._i18nNodesByMsgId=t,this._locale=e,this._digest=n,this._mapperFactory=r,this._missingTranslationStrategy=i,this._console=o,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 $i).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)+"}"});return"{"+(this._srcMsg.placeholders.hasOwnProperty(t.expression)?this._srcMsg.placeholders[t.expression]:t.expression)+", "+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,i=Object.keys(t.attrs).map(function(e){return e+'="'+t.attrs[e]+'"'}).join(" ");return t.isVoid?"<"+r+" "+i+"/>":"<"+r+" "+i+">"+t.children.map(function(t){return t.visit(n)}).join("")+""},t.prototype.visitIcuPlaceholder=function(t,e){return this._convertToText(this._srcMsg.placeholderToMessage[t.name])},t.prototype._convertToText=function(t){var e,n=this,r=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(r))e=this._i18nNodesByMsgId[r],this._mapper=function(t){return i?i.toInternalName(t):t};else{if(this._missingTranslationStrategy===D.Error){var o=this._locale?' for locale "'+this._locale+'"':"";this._addError(t.nodes[0],'Missing translation for message "'+r+'"'+o)}else if(this._console&&this._missingTranslationStrategy===D.Warning){o=this._locale?' for locale "'+this._locale+'"':"";this._console.warn('Missing translation for message "'+r+'"'+o)}e=t.nodes,this._mapper=function(t){return t}}var a=e.map(function(t){return t.visit(n)}).join(""),s=this._contextStack.pop();return this._srcMsg=s.msg,this._mapper=s.mapper,a},t.prototype._addError=function(t,e){this._errors.push(new hi(t.sourceSpan,e))},t}(),eo=function(){function t(t,e,n,r,i){if(void 0===r&&(r=D.Warning),this._htmlParser=t,e){var o=function(t){switch(t=(t||"xlf").toLowerCase()){case"xmb":return new qi;case"xtb":return new Xi;case"xliff2":case"xlf2":return new Bi;case"xliff":case"xlf":default:return new Ni}}(n);this._translationBundle=Ji.load(e,"i18n",o,r,i)}else this._translationBundle=new Ji({},null,Pr,void 0,r,i)}return t.prototype.parse=function(t,e,n,r){void 0===n&&(n=!1),void 0===r&&(r=Zt);var i=this._htmlParser.parse(t,e,n,r);return i.errors.length?new Sr(i.rootNodes,i.errors):function(t,e,n,r,i){return new _i(r,i).merge(t,e,n)}(i.rootNodes,this._translationBundle,r,[],{})},t}();var no=/(\.ts|\.d\.ts|\.js|\.jsx|\.tsx)$/,ro=/\.ngfactory\.|\.ngsummary\./,io=/\.ngsummary\./,oo=/NgSummary$/;function ao(t,e){void 0===e&&(e=!1);var n=co(t,e);return n[0]+".ngfactory"+lo(n[1])}function so(t){return t.replace(ro,".")}function co(t,e){if(void 0===e&&(e=!1),t.endsWith(".d.ts"))return[t.slice(0,-5),e?".ts":".d.ts"];var n=t.lastIndexOf(".");return-1!==n?[t.substring(0,n),t.substring(n)]:[t,""]}function lo(t){return".tsx"===t?".ts":t}function uo(t){return t.replace(no,"")+".ngsummary.json"}function po(t,e){void 0===e&&(e=!1);var n=co(so(t),e);return n[0]+".ngsummary"+n[1]}function ho(t){return t+"NgSummary"}var fo=/\u0275\d+/;var mo="@angular/core",yo=function(){function t(){}return t.ANALYZE_FOR_ENTRY_COMPONENTS={name:"ANALYZE_FOR_ENTRY_COMPONENTS",moduleName:mo},t.ElementRef={name:"ElementRef",moduleName:mo},t.NgModuleRef={name:"NgModuleRef",moduleName:mo},t.ViewContainerRef={name:"ViewContainerRef",moduleName:mo},t.ChangeDetectorRef={name:"ChangeDetectorRef",moduleName:mo},t.QueryList={name:"QueryList",moduleName:mo},t.TemplateRef={name:"TemplateRef",moduleName:mo},t.CodegenComponentFactoryResolver={name:"\u0275CodegenComponentFactoryResolver",moduleName:mo},t.ComponentFactoryResolver={name:"ComponentFactoryResolver",moduleName:mo},t.ComponentFactory={name:"ComponentFactory",moduleName:mo},t.ComponentRef={name:"ComponentRef",moduleName:mo},t.NgModuleFactory={name:"NgModuleFactory",moduleName:mo},t.createModuleFactory={name:"\u0275cmf",moduleName:mo},t.moduleDef={name:"\u0275mod",moduleName:mo},t.moduleProviderDef={name:"\u0275mpd",moduleName:mo},t.RegisterModuleFactoryFn={name:"\u0275registerModuleFactory",moduleName:mo},t.Injector={name:"Injector",moduleName:mo},t.ViewEncapsulation={name:"ViewEncapsulation",moduleName:mo},t.ChangeDetectionStrategy={name:"ChangeDetectionStrategy",moduleName:mo},t.SecurityContext={name:"SecurityContext",moduleName:mo},t.LOCALE_ID={name:"LOCALE_ID",moduleName:mo},t.TRANSLATIONS_FORMAT={name:"TRANSLATIONS_FORMAT",moduleName:mo},t.inlineInterpolate={name:"\u0275inlineInterpolate",moduleName:mo},t.interpolate={name:"\u0275interpolate",moduleName:mo},t.EMPTY_ARRAY={name:"\u0275EMPTY_ARRAY",moduleName:mo},t.EMPTY_MAP={name:"\u0275EMPTY_MAP",moduleName:mo},t.Renderer={name:"Renderer",moduleName:mo},t.viewDef={name:"\u0275vid",moduleName:mo},t.elementDef={name:"\u0275eld",moduleName:mo},t.anchorDef={name:"\u0275and",moduleName:mo},t.textDef={name:"\u0275ted",moduleName:mo},t.directiveDef={name:"\u0275did",moduleName:mo},t.providerDef={name:"\u0275prd",moduleName:mo},t.queryDef={name:"\u0275qud",moduleName:mo},t.pureArrayDef={name:"\u0275pad",moduleName:mo},t.pureObjectDef={name:"\u0275pod",moduleName:mo},t.purePipeDef={name:"\u0275ppd",moduleName:mo},t.pipeDef={name:"\u0275pid",moduleName:mo},t.nodeValue={name:"\u0275nov",moduleName:mo},t.ngContentDef={name:"\u0275ncd",moduleName:mo},t.unwrapValue={name:"\u0275unv",moduleName:mo},t.createRendererType2={name:"\u0275crt",moduleName:mo},t.RendererType2={name:"RendererType2",moduleName:mo},t.ViewDefinition={name:"\u0275ViewDefinition",moduleName:mo},t.createComponentFactory={name:"\u0275ccf",moduleName:mo},t}();function vo(t){return{identifier:{reference:t}}}function go(t,e){return vo(t.resolveExternalReference(e))}var bo={OnInit:0,OnDestroy:1,DoCheck:2,OnChanges:3,AfterContentInit:4,AfterContentChecked:5,AfterViewInit:6,AfterViewChecked:7};bo[bo.OnInit]="OnInit",bo[bo.OnDestroy]="OnDestroy",bo[bo.DoCheck]="DoCheck",bo[bo.OnChanges]="OnChanges",bo[bo.AfterContentInit]="AfterContentInit",bo[bo.AfterContentChecked]="AfterContentChecked",bo[bo.AfterViewInit]="AfterViewInit",bo[bo.AfterViewChecked]="AfterViewChecked";var _o=[bo.OnInit,bo.OnDestroy,bo.DoCheck,bo.OnChanges,bo.AfterContentInit,bo.AfterContentChecked,bo.AfterViewInit,bo.AfterViewChecked];function wo(t,e,n){return t.hasLifecycleHook(n,function(t){switch(t){case bo.OnInit:return"ngOnInit";case bo.OnDestroy:return"ngOnDestroy";case bo.DoCheck:return"ngDoCheck";case bo.OnChanges:return"ngOnChanges";case bo.AfterContentInit:return"ngAfterContentInit";case bo.AfterContentChecked:return"ngAfterContentChecked";case bo.AfterViewInit:return"ngAfterViewInit";case bo.AfterViewChecked:return"ngAfterViewChecked"}}(e))}var xo=new RegExp("(\\:not\\()|([-\\w]+)|(?:\\.([-\\w]+))|(?:\\[([-.\\w*]+)(?:=([\"']?)([^\\]\"']*)\\5)?\\])|(\\))|(\\s*,\\s*)","g"),Co=function(){function t(){this.element=null,this.classNames=[],this.attrs=[],this.notSelectors=[]}return t.parse=function(e){var n,r=[],i=function(t,e){e.notSelectors.length>0&&!e.element&&0==e.classNames.length&&0==e.attrs.length&&(e.element="*"),t.push(e)},o=new t,a=o,s=!1;for(xo.lastIndex=0;n=xo.exec(e);){if(n[1]){if(s)throw new Error("Nesting :not is not allowed in a selector");s=!0,a=new t,o.notSelectors.push(a)}if(n[2]&&a.setElement(n[2]),n[3]&&a.addClassName(n[3]),n[4]&&a.addAttribute(n[4],n[6]),n[7]&&(s=!1,a=o),n[8]){if(s)throw new Error("Multiple selectors in :not are not supported");i(r,o),o=a=new t}}return i(r,o),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":"<"+t+e+n+">"},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;e1&&(n=new So(t),this._listContexts.push(n));for(var r=0;r0)||this.listContext&&this.listContext.alreadyMatched||(n=!Eo.createNotMatcher(this.notSelectors).match(t,null));return!n||!e||this.listContext&&this.listContext.alreadyMatched||(this.listContext&&(this.listContext.alreadyMatched=!0),e(this.selector,this.cbContext)),n},t}(),ko="ngComponentType",To=function(){function t(t,e,n,r,i,o,a,s,c,l,u,p){this._config=t,this._htmlParser=e,this._ngModuleResolver=n,this._directiveResolver=r,this._pipeResolver=i,this._summaryResolver=o,this._schemaRegistry=a,this._directiveNormalizer=s,this._console=c,this._staticSymbolCache=l,this._reflector=u,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.getReflector=function(){return this._reflector},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,e){var n=null,r=function(){if(!n)throw new Error("Illegal state: Class "+e+" for type "+K(t)+" is not compiled yet!");return n.apply(this,arguments)};return r.setDelegate=function(t){n=t,r.prototype=t.prototype},r.overriddenName=e,r},t.prototype.getGeneratedClass=function(t,e){return t instanceof mt?this._staticSymbolCache.get(ao(t.filePath),e):this._createProxyClass(t,e)},t.prototype.getComponentViewClass=function(t){return this.getGeneratedClass(t,xt(t,0))},t.prototype.getHostComponentViewClass=function(t){return this.getGeneratedClass(t,"HostView_"+_t({reference:t}))},t.prototype.getHostComponentType=function(t){var e=_t({reference:t})+"_Host";if(t instanceof mt)return this._staticSymbolCache.get(t.filePath,e);var n=function(){};return n.overriddenName=e,n},t.prototype.getRendererType=function(t){return t instanceof mt?this._staticSymbolCache.get(ao(t.filePath),Ct(t)):{}},t.prototype.getComponentFactory=function(t,e,n,r){if(e instanceof mt)return this._staticSymbolCache.get(ao(e.filePath),Et(e));var i=this.getHostComponentViewClass(e);return this._reflector.resolveExternalReference(yo.createComponentFactory)(t,e,i,n,r,[])},t.prototype.initComponentFactory=function(t,e){var n;t instanceof mt||(n=t.ngContentSelectors).push.apply(n,e)},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||null)}return n&&n.summaryKind===e?n:null},t.prototype.getHostComponentMetadata=function(t,e){var n=this.getHostComponentType(t.type.reference);e||(e=this.getHostComponentViewClass(n));var r=Co.parse(t.selector)[0].getMatchingElementTemplate(),i=this._htmlParser.parse(r,"");return Dt.create({isHost:!0,type:{reference:n,diDeps:[],lifecycleHooks:[]},template:new Pt({encapsulation:h.None,template:r,templateUrl:"",htmlAst:i,styles:[],styleUrls:[],ngContentSelectors:[],animations:[],isInline:!0,externalStylesheets:[],interpolation:null,preserveWhitespaces:!1}),exportAs:null,changeDetection:d.Default,inputs:[],outputs:[],host:{},isComponent:!0,selector:"*",providers:[],viewProviders:[],queries:[],guards:{},viewQueries:[],componentViewType:e,rendererType:{id:"__Host__",encapsulation:h.None,styles:[],data:{}},entryComponents:[],componentFactory:null})},t.prototype.loadDirectiveMetadata=function(t,e,n){var r=this;if(this._directiveCache.has(e))return null;e=X(e);var i,o,a=this.getNonNormalizedDirectiveMetadata(e),s=a.annotation,c=a.metadata,l=function(t){var n=new Dt({isHost:!1,type:c.type,isComponent:c.isComponent,selector:c.selector,exportAs:c.exportAs,changeDetection:c.changeDetection,inputs:c.inputs,outputs:c.outputs,hostListeners:c.hostListeners,hostProperties:c.hostProperties,hostAttributes:c.hostAttributes,providers:c.providers,viewProviders:c.viewProviders,queries:c.queries,guards:c.guards,viewQueries:c.viewQueries,entryComponents:c.entryComponents,componentViewType:c.componentViewType,rendererType:c.rendererType,componentFactory:c.componentFactory,template:t});return t&&r.initComponentFactory(c.componentFactory,t.ngContentSelectors),r._directiveCache.set(e,n),r._summaryCache.set(e,n.toSummary()),null};if(c.isComponent){var u=c.template,p=this._directiveNormalizer.normalizeTemplate({ngModuleType:t,componentType:e,moduleUrl:this._reflector.componentModuleUrl(e,s),encapsulation:u.encapsulation,template:u.template,templateUrl:u.templateUrl,styles:u.styles,styleUrls:u.styleUrls,animations:u.animations,interpolation:u.interpolation,preserveWhitespaces:u.preserveWhitespaces});return Z(p)&&n?(this._reportError((i=e,(o=Error("Can't compile synchronously as "+K(i)+" is still being loaded!"))[ko]=i,o),e),null):B(p,l)}return l(null),null},t.prototype.getNonNormalizedDirectiveMetadata=function(t){var e=this;if(!(t=X(t)))return null;var n=this._nonNormalizedDirectiveCache.get(t);if(n)return n;var r=this._directiveResolver.resolve(t,!1);if(!r)return null;var i=void 0;if(f.isTypeOf(r)){Gt("styles",(a=r).styles),Gt("styleUrls",a.styleUrls),Kt("interpolation",a.interpolation);var o=a.animations;i=new Pt({encapsulation:L(a.encapsulation),template:L(a.template),templateUrl:L(a.templateUrl),htmlAst:null,styles:a.styles||[],styleUrls:a.styleUrls||[],animations:o||[],interpolation:L(a.interpolation),isInline:!!a.template,externalStylesheets:[],ngContentSelectors:[],preserveWhitespaces:L(r.preserveWhitespaces)})}var a,s=null,c=[],l=[],u=r.selector;f.isTypeOf(r)?(s=(a=r).changeDetection,a.viewProviders&&(c=this._getProvidersMetadata(a.viewProviders,l,'viewProviders for "'+Io(t)+'"',[],t)),a.entryComponents&&(l=Po(a.entryComponents).map(function(t){return e._getEntryComponentMetadata(t)}).concat(l)),u||(u=this._schemaRegistry.getDefaultComponentElementName())):u||(this._reportError(H("Directive "+Io(t)+" has no selector, please add it!"),t),u="error");var p=[];null!=r.providers&&(p=this._getProvidersMetadata(r.providers,l,'providers for "'+Io(t)+'"',[],t));var h=[],d=[];null!=r.queries&&(h=this._getQueriesMetadata(r.queries,!1,t),d=this._getQueriesMetadata(r.queries,!0,t));var m=Dt.create({isHost:!1,selector:u,exportAs:L(r.exportAs),isComponent:!!i,type:this._getTypeMetadata(t),template:i,changeDetection:s,inputs:r.inputs||[],outputs:r.outputs||[],host:r.host||{},providers:p||[],viewProviders:c||[],queries:h||[],guards:r.guards||{},viewQueries:d||[],entryComponents:l,componentViewType:i?this.getComponentViewClass(t):null,rendererType:i?this.getRendererType(t):null,componentFactory:null});return i&&(m.componentFactory=this.getComponentFactory(u,t,m.inputs,m.outputs)),n={metadata:m,annotation:r},this._nonNormalizedDirectiveCache.set(t,n),n},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 "+Io(t)+"."),t),e},t.prototype.getDirectiveSummary=function(t){var e=this._loadSummary(t,St.Directive);return e||this._reportError(H("Illegal state: Could not load the summary for directive "+Io(t)+"."),t),e},t.prototype.isDirective=function(t){return!!this._loadSummary(t,St.Directive)||this._directiveResolver.isDirective(t)},t.prototype.isPipe=function(t){return!!this._loadSummary(t,St.Pipe)||this._pipeResolver.isPipe(t)},t.prototype.isNgModule=function(t){return!!this._loadSummary(t,St.NgModule)||this._ngModuleResolver.isNgModule(t)},t.prototype.getNgModuleSummary=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,St.NgModule);if(!n){var r=this.getNgModuleMetadata(t,!1,e);(n=r?r.toSummary():null)&&this._summaryCache.set(t,n)}return n},t.prototype.loadNgModuleDirectiveAndPipeMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var i=this.getNgModuleMetadata(t,n),o=[];return i&&(i.declaredDirectives.forEach(function(n){var i=r.loadDirectiveMetadata(t,n.reference,e);i&&o.push(i)}),i.declaredPipes.forEach(function(t){return r._loadPipeMetadata(t.reference)})),Promise.all(o)},t.prototype.getNgModuleMetadata=function(t,e,n){var r=this;void 0===e&&(e=!0),void 0===n&&(n=null),t=X(t);var i=this._ngModuleCache.get(t);if(i)return i;var o=this._ngModuleResolver.resolve(t,e);if(!o)return null;var a=[],s=[],c=[],l=[],u=[],p=[],h=[],d=[],f=[];o.imports&&Po(o.imports).forEach(function(e){var i=void 0;if(Do(e))i=e;else if(e&&e.ngModule){var o=e;i=o.ngModule,o.providers&&p.push.apply(p,r._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+Io(i)+"'",[],e))}if(i){if(!r._checkSelfImport(t,i))if(n||(n=new Set),n.has(i))r._reportError(H(r._getTypeDescriptor(i)+" '"+Io(e)+"' is imported recursively by the module '"+Io(t)+"'."),t);else{n.add(i);var a=r.getNgModuleSummary(i,n);n.delete(i),a?l.push(a):r._reportError(H("Unexpected "+r._getTypeDescriptor(e)+" '"+Io(e)+"' imported by the module '"+Io(t)+"'. Please add a @NgModule annotation."),t)}}else r._reportError(H("Unexpected value '"+Io(e)+"' imported by the module '"+Io(t)+"'"),t)}),o.exports&&Po(o.exports).forEach(function(e){if(Do(e))if(n||(n=new Set),n.has(e))r._reportError(H(r._getTypeDescriptor(e)+" '"+K(e)+"' is exported recursively by the module '"+Io(t)+"'"),t);else{n.add(e);var i=r.getNgModuleSummary(e,n);n.delete(e),i?u.push(i):s.push(r._getIdentifierMetadata(e))}else r._reportError(H("Unexpected value '"+Io(e)+"' exported by the module '"+Io(t)+"'"),t)});var m=this._getTransitiveNgModuleMetadata(l,u);o.declarations&&Po(o.declarations).forEach(function(e){if(Do(e)){var n=r._getIdentifierMetadata(e);if(r.isDirective(e))m.addDirective(n),a.push(n),r._addTypeToModule(e,t);else{if(!r.isPipe(e))return void r._reportError(H("Unexpected "+r._getTypeDescriptor(e)+" '"+Io(e)+"' declared by the module '"+Io(t)+"'. Please add a @Pipe/@Directive/@Component annotation."),t);m.addPipe(n),m.pipes.push(n),c.push(n),r._addTypeToModule(e,t)}}else r._reportError(H("Unexpected value '"+Io(e)+"' declared by the module '"+Io(t)+"'"),t)});var y=[],v=[];return s.forEach(function(e){if(m.directivesSet.has(e.reference))y.push(e),m.addExportedDirective(e);else{if(!m.pipesSet.has(e.reference))return void r._reportError(H("Can't export "+r._getTypeDescriptor(e.reference)+" "+Io(e.reference)+" from "+Io(t)+" as it was neither declared nor imported!"),t);v.push(e),m.addExportedPipe(e)}}),o.providers&&p.push.apply(p,this._getProvidersMetadata(o.providers,h,"provider for the NgModule '"+Io(t)+"'",[],t)),o.entryComponents&&h.push.apply(h,Po(o.entryComponents).map(function(t){return r._getEntryComponentMetadata(t)})),o.bootstrap&&Po(o.bootstrap).forEach(function(e){Do(e)?d.push(r._getIdentifierMetadata(e)):r._reportError(H("Unexpected value '"+Io(e)+"' used in the bootstrap property of module '"+Io(t)+"'"),t)}),h.push.apply(h,d.map(function(t){return r._getEntryComponentMetadata(t.reference)})),o.schemas&&f.push.apply(f,Po(o.schemas)),i=new It({type:this._getTypeMetadata(t),providers:p,entryComponents:h,bootstrapComponents:d,schemas:f,declaredDirectives:a,exportedDirectives:y,declaredPipes:c,exportedPipes:v,importedModules:l,exportedModules:u,transitiveModule:m,id:o.id||null}),h.forEach(function(t){return m.addEntryComponent(t)}),p.forEach(function(t){return m.addProvider(t,i.type)}),m.addModule(i.type),this._ngModuleCache.set(t,i),i},t.prototype._checkSelfImport=function(t,e){return t===e&&(this._reportError(H("'"+Io(t)+"' module can't import itself"),t),!0)},t.prototype._getTypeDescriptor=function(t){if(Do(t)){if(this.isDirective(t))return"directive";if(this.isPipe(t))return"pipe";if(this.isNgModule(t))return"module"}return t.provide?"provider":"value"},t.prototype._addTypeToModule=function(t,e){var n=this._ngModuleOfTypes.get(t);n&&n!==e?this._reportError(H("Type "+Io(t)+" is part of the declarations of 2 modules: "+Io(n)+" and "+Io(e)+"! Please consider moving "+Io(t)+" to a higher module that imports "+Io(n)+" and "+Io(e)+". You can also create a new NgModule that exports and includes "+Io(t)+" then import that NgModule in "+Io(n)+" and "+Io(e)+"."),e):this._ngModuleOfTypes.set(t,e)},t.prototype._getTransitiveNgModuleMetadata=function(t,e){var n=new Rt,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 i=kt(t.provider.token),o=r.get(i);o||(o=new Set,r.set(i,o));var a=t.module.reference;!e.has(i)&&o.has(a)||(o.add(a),e.add(i),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{reference:t=X(t)}},t.prototype.isInjectable=function(t){return this._reflector.annotations(t).some(function(t){return E.isTypeOf(t)})},t.prototype.getInjectableSummary=function(t){return{summaryKind:St.Injectable,type:this._getTypeMetadata(t,null,!1)}},t.prototype._getInjectableMetadata=function(t,e){void 0===e&&(e=null);var n=this._loadSummary(t,St.Injectable);return n?n.type:this._getTypeMetadata(t,e)},t.prototype._getTypeMetadata=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=!0);var r,i,o=this._getIdentifierMetadata(t);return{reference:o.reference,diDeps:this._getDependenciesMetadata(o.reference,e,n),lifecycleHooks:(r=this._reflector,i=o.reference,_o.filter(function(t){return wo(r,t,i)}))}},t.prototype._getFactoryMetadata=function(t,e){return void 0===e&&(e=null),{reference:t=X(t),diDeps:this._getDependenciesMetadata(t,e)}},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 "+Io(t)+"."),t),e||null},t.prototype.getPipeSummary=function(t){var e=this._loadSummary(t,St.Pipe);return e||this._reportError(H("Illegal state: Could not load the summary for pipe "+Io(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=X(t);var e=this._pipeResolver.resolve(t),n=new At({type:this._getTypeMetadata(t),name:e.name,pure:!!e.pure});return this._pipeCache.set(t,n),this._summaryCache.set(t,n.toSummary()),n},t.prototype._getDependenciesMetadata=function(t,e,n){var r=this;void 0===n&&(n=!0);var s=!1,c=(e||this._reflector.parameters(t)||[]).map(function(t){var e=!1,n=!1,c=!1,l=!1,u=!1,p=null;return Array.isArray(t)?t.forEach(function(t){k.isTypeOf(t)?n=!0:S.isTypeOf(t)?c=!0:O.isTypeOf(t)?l=!0:C.isTypeOf(t)?u=!0:a.isTypeOf(t)?(e=!0,p=t.attributeName):i.isTypeOf(t)?p=t.token:o.isTypeOf(t)||t instanceof mt?p=t:Do(t)&&null==p&&(p=t)}):p=t,null==p?(s=!0,null):{isAttribute:e,isHost:n,isSelf:c,isSkipSelf:l,isOptional:u,token:r._getTokenMetadata(p)}});if(s){var l=c.map(function(t){return t?Io(t.token):"?"}).join(", "),u="Can't resolve all parameters for "+Io(t)+": ("+l+").";n||this._config.strictInjectionParameters?this._reportError(H(u),t):this._console.warn("Warning: "+u+" This will become an error in Angular v6.x")}return c},t.prototype._getTokenMetadata=function(t){return"string"==typeof(t=X(t))?{value:t}:{identifier:{reference:t}}},t.prototype._getProvidersMetadata=function(t,e,n,r,i){var o=this;return void 0===r&&(r=[]),t.forEach(function(a,s){if(Array.isArray(a))o._getProvidersMetadata(a,e,n,r);else{var c=void 0;if((a=X(a))&&"object"==typeof a&&a.hasOwnProperty("provide"))o._validateProvider(a),c=new jt(a.provide,a);else{if(!Do(a)){if(void 0===a)return void o._reportError(H("Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files."));var l=t.reduce(function(t,e,n){return n0&&i++,r=r._parent;return(e=this.viewContext.viewQueries.get(kt(t)))&&n.push.apply(n,e),n},t.prototype._getOrCreateLocalProvider=function(t,e,n){var r=this,i=this._allProviders.get(kt(e));if(!i||(t===lt.Directive||t===lt.PublicService)&&i.providerType===lt.PrivateService||(t===lt.PrivateService||t===lt.PublicService)&&i.providerType===lt.Builtin)return null;var o=this._transformedProviders.get(kt(e));if(o)return o;if(null!=this._seenProviders.get(kt(e)))return this.viewContext.errors.push(new Ka("Cannot instantiate cyclic dependency! "+Ot(e),this._sourceSpan)),null;this._seenProviders.set(kt(e),!0);var a=i.providers.map(function(t){var e=t.useValue,o=t.useExisting,a=void 0;if(null!=t.useExisting){var s=r._getDependency(i.providerType,{token:t.useExisting},n);null!=s.token?o=s.token:(o=null,e=s.value)}else if(t.useFactory){a=(t.deps||t.useFactory.diDeps).map(function(t){return r._getDependency(i.providerType,t,n)})}else if(t.useClass){a=(t.deps||t.useClass.diDeps).map(function(t){return r._getDependency(i.providerType,t,n)})}return $a(t,{useExisting:o,useValue:e,deps:a})});return o=Ja(i,{eager:n,providers:a}),this._transformedProviders.set(kt(e),o),o},t.prototype._getLocalDependency=function(t,e,n){if(void 0===n&&(n=!1),e.isAttribute){var r=this._attrs[e.token.value];return{isValue:!0,value:null==r?null:r}}if(null!=e.token){if(t===lt.Directive||t===lt.Component){if(kt(e.token)===this.viewContext.reflector.resolveExternalReference(yo.Renderer)||kt(e.token)===this.viewContext.reflector.resolveExternalReference(yo.ElementRef)||kt(e.token)===this.viewContext.reflector.resolveExternalReference(yo.ChangeDetectorRef)||kt(e.token)===this.viewContext.reflector.resolveExternalReference(yo.TemplateRef))return e;kt(e.token)===this.viewContext.reflector.resolveExternalReference(yo.ViewContainerRef)&&(this.transformedHasViewContainer=!0)}if(kt(e.token)===this.viewContext.reflector.resolveExternalReference(yo.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=!1);var r=this,i=n,o=null;if(e.isSkipSelf||(o=this._getLocalDependency(t,e,n)),e.isSelf)!o&&e.isOptional&&(o={isValue:!0,value:null});else{for(;!o&&r._parent;){var a=r;r=r._parent,a._isViewRoot&&(i=!1),o=r._getLocalDependency(lt.PublicService,e,i)}o||(o=!e.isHost||this.viewContext.component.isHost||this.viewContext.component.type.reference===kt(e.token)||null!=this.viewContext.viewProviders.get(kt(e.token))?e:e.isOptional?o={isValue:!0,value:null}:null)}return o||this.viewContext.errors.push(new Ka("No provider for "+Ot(e.token),this._sourceSpan)),o},t}(),Qa=function(){function t(t,e,n,r){var i=this;this.reflector=t,this._transformedProviders=new Map,this._seenProviders=new Map,this._errors=[],this._allProviders=new Map,e.transitiveModule.modules.forEach(function(t){ts([{token:{identifier:t},useClass:t}],lt.PublicService,!0,r,i._errors,i._allProviders)}),ts(e.transitiveModule.providers.map(function(t){return t.provider}).concat(n),lt.PublicService,!1,r,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)}var n=[],r=[];return this._transformedProviders.forEach(function(t){t.eager?r.push(t):n.push(t)}),n.concat(r)},t.prototype._getOrCreateLocalProvider=function(t,e){var n=this,r=this._allProviders.get(kt(t));if(!r)return null;var i=this._transformedProviders.get(kt(t));if(i)return i;if(null!=this._seenProviders.get(kt(t)))return this._errors.push(new Ka("Cannot instantiate cyclic dependency! "+Ot(t),r.sourceSpan)),null;this._seenProviders.set(kt(t),!0);var o=r.providers.map(function(t){var i=t.useValue,o=t.useExisting,a=void 0;if(null!=t.useExisting){var s=n._getDependency({token:t.useExisting},e,r.sourceSpan);null!=s.token?o=s.token:(o=null,i=s.value)}else if(t.useFactory){a=(t.deps||t.useFactory.diDeps).map(function(t){return n._getDependency(t,e,r.sourceSpan)})}else if(t.useClass){a=(t.deps||t.useClass.diDeps).map(function(t){return n._getDependency(t,e,r.sourceSpan)})}return $a(t,{useExisting:o,useValue:i,deps:a})});return i=Ja(r,{eager:e,providers:o}),this._transformedProviders.set(kt(t),i),i},t.prototype._getDependency=function(t,e,n){void 0===e&&(e=!1);var r=!1;t.isSkipSelf||null==t.token||(kt(t.token)===this.reflector.resolveExternalReference(yo.Injector)||kt(t.token)===this.reflector.resolveExternalReference(yo.ComponentFactoryResolver)?r=!0:null!=this._getOrCreateLocalProvider(t.token,e)&&(r=!0));var i=t;return t.isSelf&&!r&&(t.isOptional?i={isValue:!0,value:null}:this._errors.push(new Ka("No provider for "+Ot(t.token),n))),i},t}();function $a(t,e){var n=e.useExisting,r=e.useValue,i=e.deps;return{token:t.token,useClass:t.useClass,useExisting:n,useFactory:t.useFactory,useValue:r,deps:i,multi:t.multi}}function Ja(t,e){var n=e.eager,r=e.providers;return new ct(t.token,t.multiProvider,t.eager||n,r,t.providerType,t.lifecycleHooks,t.sourceSpan)}function ts(t,e,n,r,i,o){t.forEach(function(t){var a=o.get(kt(t.token));if(null!=a&&!!a.multiProvider!=!!t.multi&&i.push(new Ka("Mixing multi and non multi provider is not possible for token "+Ot(a.token),r)),a)t.multi||(a.providers.length=0),a.providers.push(t);else{var s=t.token.identifier&&t.token.identifier.lifecycleHooks?t.token.identifier.lifecycleHooks:[],c=!(t.useClass||t.useExisting||t.useFactory);a=new ct(t.token,!!t.multi,n||c,[t],e,s,r),o.set(kt(t.token),a)}})}function es(t,e){e.meta.selectors.forEach(function(n){var r=t.get(kt(n));r||(r=[],t.set(kt(n),r)),r.push(e)})}function ns(t,e,n){return void 0===n&&(n=null),j(e,new rs(t),n)}var rs=function(){function t(t){this.ctx=t}return t.prototype.visitArray=function(t,e){var n=this;return qa(t.map(function(t){return j(t,n,null)}),e)},t.prototype.visitStringMap=function(t,e){var n=this,r=[],i=new Set(t&&t.$quoted$);return Object.keys(t).forEach(function(e){r.push(new ma(e,j(t[e],n,null),i.has(e)))}),new ya(r,e)},t.prototype.visitPrimitive=function(t,e){return Ya(t,e)},t.prototype.visitOther=function(t,e){return t instanceof Go?t:this.ctx.importExpr(t)},t}();function is(t,e){var n=0;e.eager||(n|=4096),e.providerType===lt.PrivateService&&(n|=8192),e.lifecycleHooks.forEach(function(t){t!==bo.OnDestroy&&e.providerType!==lt.Directive&&e.providerType!==lt.Component||(n|=cs(t))});var r=e.multiProvider?function(t,e,n){var r=[],i=[],o=n.map(function(e,n){var r;if(e.useClass){var i=a(n,e.deps||e.useClass.diDeps);r=t.importExpr(e.useClass.reference).instantiate(i)}else if(e.useFactory){var i=a(n,e.deps||e.useFactory.diDeps);r=t.importExpr(e.useFactory.reference).callFn(i)}else if(e.useExisting){var i=a(n,[{token:e.useExisting}]);r=i[0]}else r=ns(t,e.useValue);return r});return{providerExpr:Ga(i,[new Sa(qa(o))],zo),flags:1024|e,depsExpr:qa(r)};function a(e,n){return n.map(function(n,o){var a="p"+e+"_"+o;return i.push(new la(a,Bo)),r.push(ss(t,n)),Ba(a)})}}(t,n,e.providers):os(t,n,e.providerType,e.providers[0]);return{providerExpr:r.providerExpr,flags:r.flags,depsExpr:r.depsExpr,tokenExpr:as(t,e.token)}}function os(t,e,n,r){var i,o;return n===lt.Directive||n===lt.Component?(i=t.importExpr(r.useClass.reference),e|=16384,o=r.deps||r.useClass.diDeps):r.useClass?(i=t.importExpr(r.useClass.reference),e|=512,o=r.deps||r.useClass.diDeps):r.useFactory?(i=t.importExpr(r.useFactory.reference),e|=1024,o=r.deps||r.useFactory.diDeps):r.useExisting?(i=ga,e|=2048,o=[{token:r.useExisting}]):(i=ns(t,r.useValue),e|=256,o=[]),{providerExpr:i,flags:e,depsExpr:qa(o.map(function(e){return ss(t,e)}))}}function as(t,e){return e.identifier?t.importExpr(e.identifier.reference):Ya(e.value)}function ss(t,e){var n=e.isValue?ns(t,e.value):as(t,e.token),r=0;return e.isSkipSelf&&(r|=1),e.isOptional&&(r|=2),e.isValue&&(r|=8),0===r?n:qa([Ya(r),n])}function cs(t){var e=0;switch(t){case bo.AfterContentChecked:e=2097152;break;case bo.AfterContentInit:e=1048576;break;case bo.AfterViewChecked:e=8388608;break;case bo.AfterViewInit:e=4194304;break;case bo.DoCheck:e=262144;break;case bo.OnChanges:e=524288;break;case bo.OnDestroy:e=131072;break;case bo.OnInit:e=65536}return e}function ls(t,e,n,r){var i=r.map(function(t){return e.importExpr(t.componentFactory)}),o=go(t,yo.ComponentFactoryResolver),a={diDeps:[{isValue:!0,value:qa(i)},{token:o,isSkipSelf:!0,isOptional:!0},{token:go(t,yo.NgModuleRef)}],lifecycleHooks:[],reference:t.resolveExternalReference(yo.CodegenComponentFactoryResolver)},s=os(e,n,lt.PrivateService,{token:o,multi:!1,useClass:a});return{providerExpr:s.providerExpr,flags:s.flags,depsExpr:s.depsExpr,tokenExpr:as(e,o)}}var us=function(){return function(t){this.ngModuleFactoryVar=t}}(),ps=Ba("_l"),hs=function(){function t(t){this.reflector=t}return t.prototype.compile=function(t,e,n){var r,i,o,a,s,c=(r="NgModule",i=e.type,o=wt(i),a=null!=o?"in "+r+" "+_t(i)+" in "+o:"in "+r+" "+_t(i),s=new or("",a),new ar(new ir(s,-1,-1,-1),new ir(s,-1,-1,-1))),l=e.transitiveModule.entryComponents,u=e.bootstrapComponents,p=new Qa(this.reflector,e,n,c),h=[ls(this.reflector,t,0,l)].concat(p.parse().map(function(e){return is(t,e)})).map(function(t){var e=t.providerExpr,n=t.depsExpr,r=t.flags,i=t.tokenExpr;return za(yo.moduleProviderDef).callFn([Ya(r),i,e,n])}),d=za(yo.moduleDef).callFn([qa(h)]),f=Ga([new la(ps.name)],[new Sa(d)],zo),m=_t(e.type)+"NgFactory";if(this._createNgModuleFactory(t,e.type.reference,za(yo.createModuleFactory).callFn([t.importExpr(e.type.reference),qa(u.map(function(e){return t.importExpr(e.reference)})),f])),e.id){var y=za(yo.RegisterModuleFactoryFn).callFn([Ya(e.id),Ba(m)]).toStmt();t.statements.push(y)}return new us(m)},t.prototype.createStub=function(t,e){this._createNgModuleFactory(t,e,ga)},t.prototype._createNgModuleFactory=function(t,e,n){var r=Ba(_t({reference:e})+"NgFactory").set(n).toDeclStmt(Ha(yo.NgModuleFactory,[Ua(t.importExpr(e))],[Ro.Const]),[_a.Final,_a.Exported]);t.statements.push(r)},t}(),ds=function(){function t(t){this._reflector=t}return t.prototype.isNgModule=function(t){return this._reflector.annotations(t).some(_.isTypeOf)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=ke(this._reflector.annotations(t),_.isTypeOf);if(n)return n;if(e)throw new Error("No NgModule metadata found for '"+K(t)+"'.");return null},t}(),fs=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>2),e+=vs((3&r)<<4|(isNaN(i)?0:i>>4)),e+=isNaN(i)?"=":vs((15&i)<<2|o>>6),e+=isNaN(i)||isNaN(o)?"=":vs(63&o)}return e}(JSON.stringify(this,null,0)):""},t}();function ms(t){t=t<0?1+(-t<<1):t<<1;var e="";do{var n=31&t;(t>>=5)>0&&(n|=32),e+=vs(n)}while(t>0);return e}var ys="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function vs(t){if(t<0||t>=64)throw new Error("Can only encode value in the range [0, 63]");return ys[t]}var gs=/'|\\|\n|\r|\$/g,bs=/^[$A-Z_][0-9A-Z_$]*$/i,_s=" ",ws=Ba("error",null,null),xs=Ba("stack",null,null),Cs=function(){return function(t){this.indent=t,this.partsLength=0,this.parts=[],this.srcSpans=[]}}(),Es=function(){function t(t){this._indent=t,this._classes=[],this._preambleLineCount=0,this._lines=[new Cs(t)]}return t.createRoot=function(){return new t(0)},Object.defineProperty(t.prototype,"_currentLine",{get:function(){return this._lines[this._lines.length-1]},enumerable:!0,configurable:!0}),t.prototype.println=function(t,e){void 0===e&&(e=""),this.print(t||null,e,!0)},t.prototype.lineIsEmpty=function(){return 0===this._currentLine.parts.length},t.prototype.lineLength=function(){return this._currentLine.indent*_s.length+this._currentLine.partsLength},t.prototype.print=function(t,e,n){void 0===n&&(n=!1),e.length>0&&(this._currentLine.parts.push(e),this._currentLine.partsLength+=e.length,this._currentLine.srcSpans.push(t&&t.sourceSpan||null)),n&&this._lines.push(new Cs(this._indent))},t.prototype.removeEmptyLastLine=function(){this.lineIsEmpty()&&this._lines.pop()},t.prototype.incIndent=function(){this._indent++,this.lineIsEmpty()&&(this._currentLine.indent=this._indent)},t.prototype.decIndent=function(){this._indent--,this.lineIsEmpty()&&(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?ks(t.indent)+t.parts.join(""):""}).join("\n")},t.prototype.toSourceMapGenerator=function(t,e){void 0===e&&(e=0);for(var n=new fs(t),r=!1,i=function(){r||(n.addSource(t," ").addMapping(0,t,0,0),r=!0)},o=0;or)return n.srcSpans[i];r-=o.length}return null},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}(),Ss=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.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.visitThrowStmt=function(t,e){return e.print(t,"throw "),t.error.visitExpression(this,e),e.println(t,";"),null},t.prototype.visitCommentStmt=function(t,e){return t.comment.split("\n").forEach(function(n){e.println(t,"// "+n)}),null},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&&null==(n=this.getBuiltinMethodName(t.builtin))?null:(e.print(t,"."+n+"("),this.visitAllExpressions(t.args,e,","),e.print(t,")"),null)},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 Yo.Super:n="super";break;case Yo.This:n="this";break;case Yo.CatchError:n=ws.name;break;case Yo.CatchStack:n=xs.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,Os(n,this._escapeDollarInStrings)):e.print(t,""+n),null},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.visitAssertNotNullExpr=function(t,e){return t.condition.visitExpression(this,e),null},t.prototype.visitBinaryOperatorExpr=function(t,e){var n;switch(t.operator){case Uo.Equals:n="==";break;case Uo.Identical:n="===";break;case Uo.NotEquals:n="!=";break;case Uo.NotIdentical:n="!==";break;case Uo.And:n="&&";break;case Uo.Or:n="||";break;case Uo.Plus:n="+";break;case Uo.Minus:n="-";break;case Uo.Divide:n="/";break;case Uo.Multiply:n="*";break;case Uo.Modulo:n="%";break;case Uo.Lower:n="<";break;case Uo.LowerEquals:n="<=";break;case Uo.Bigger:n=">";break;case Uo.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){return e.print(t,"["),this.visitAllExpressions(t.entries,e,","),e.print(t,"]"),null},t.prototype.visitLiteralMapExpr=function(t,e){var n=this;return e.print(t,"{"),this.visitAllObjects(function(r){e.print(t,Os(r.key,n._escapeDollarInStrings,r.quoted)+":"),r.value.visitExpression(n,e)},t.entries,e,","),e.print(t,"}"),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){var r=this;this.visitAllObjects(function(t){return t.visitExpression(r,e)},t,e,n)},t.prototype.visitAllObjects=function(t,e,n,r){for(var i=!1,o=0;o0&&(n.lineLength()>80?(n.print(null,r,!0),i||(n.incIndent(),n.incIndent(),i=!0)):n.print(null,r,!1)),t(e[o]);i&&(n.decIndent(),n.decIndent())},t.prototype.visitAllStatements=function(t,e){var n=this;t.forEach(function(t){return t.visitStatement(n,e)})},t}();function Os(t,e,n){if(void 0===n&&(n=!0),null==t)return null;var r=t.replace(gs,function(){for(var t=[],n=0;n"),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),t.hasModifier(_a.Exported)&&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(_a.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(_a.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(_a.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 t.hasModifier(_a.Exported)&&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 ("+ws.name+") {"),e.incIndent();var n=[xs.set(ws.prop("stack",null)).toDeclStmt(null,[_a.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 jo.Bool:n="boolean";break;case jo.Dynamic:n="any";break;case jo.Function:n="Function";break;case jo.Number:case jo.Int:n="number";break;case jo.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 $o.ConcatArray:e="concat";break;case $o.SubscribeObservable:e="subscribe";break;case $o.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._visitIdentifier=function(t,e,n){var r=this,i=t.name,o=t.moduleName;if(this.referenceFilter&&this.referenceFilter(t))n.print(null,"(null as any)");else{if(o){var a=this.importsWithPrefixes.get(o);null==a&&(a="i"+this.importsWithPrefixes.size,this.importsWithPrefixes.set(o,a)),n.print(null,a+".")}if(n.print(null,i),this.typeExpression>0)(e||[]).length>0&&(n.print(null,"<"),this.visitAllObjects(function(t){return t.visitType(r,n)},e,n,","),n.print(null,">"))}},e.prototype._printColonType=function(t,e,n){t!==zo&&(e.print(null,":"),this.visitType(t,e,n))},e}(Ss),Ps=function(){function t(t){this._reflector=t}return t.prototype.isPipe=function(t){var e=this._reflector.annotations(X(t));return e&&e.some(m.isTypeOf)},t.prototype.resolve=function(t,e){void 0===e&&(e=!0);var n=this._reflector.annotations(X(t));if(n){var r=ke(n,m.isTypeOf);if(r)return r}if(e)throw new Error("No Pipe decorator found on "+K(t));return null},t}(),Ds={};function As(t,e){for(var n=0,r=e;n0)switch(t[0]){case"*":break;case"!":n[t.substring(1)]=Rs;break;case"#":n[t.substring(1)]=Ms;break;case"%":n[t.substring(1)]=Ns;break;default:n[t]=js}})}),e}return Object(r.b)(e,t),e.prototype.hasProperty=function(t,e,n){if(n.some(function(t){return t.name===x.name}))return!0;if(t.indexOf("-")>-1){if(ie(t)||oe(t))return!1;if(n.some(function(t){return t.name===w.name}))return!0}return!!(this._schema[t.toLowerCase()]||this._schema.unknown)[e]},e.prototype.hasElement=function(t,e){if(e.some(function(t){return t.name===x.name}))return!0;if(t.indexOf("-")>-1){if(ie(t)||oe(t))return!0;if(e.some(function(t){return t.name===w.name}))return!0}return!!this._schema[t.toLowerCase()]},e.prototype.securityContext=function(t,e,n){n&&(e=this.getMappedPropName(e)),t=t.toLowerCase(),e=e.toLowerCase();var r=Ds[t+"|"+e];return r||((r=Ds["*|"+e])||P.NONE)},e.prototype.getMappedPropName=function(t){return Fs[t]||t},e.prototype.getDefaultComponentElementName=function(){return"ng-component"},e.prototype.validateProperty=function(t){return t.toLowerCase().startsWith("on")?{error:!0,msg:"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."}:{error:!1}},e.prototype.validateAttribute=function(t){return t.toLowerCase().startsWith("on")?{error:!0,msg:"Binding to event attribute '"+t+"' is disallowed for security reasons, please use ("+t.slice(2)+")=..."}:{error:!1}},e.prototype.allKnownElementNames=function(){return Object.keys(this._schema)},e.prototype.normalizeAnimationStyleProperty=function(t){return t.replace(I,function(){for(var t=[],e=0;e-1?this._colonHostPartReplacer(t,e,n):t+e+n+", "+e+" "+t+n},t.prototype._colonHostPartReplacer=function(t,e,n){return t+e.replace(Ws,"")+n},t.prototype._convertShadowDOMSelectors=function(t){return $s.reduce(function(t,e){return t.replace(e," ")},t)},t.prototype._scopeSelectors=function(t,e,n){var r,i,o,a=this;return r=function(t){var r=t.selector,i=t.content;return"@"!=t.selector[0]?r=a._scopeSelector(t.selector,e,n,a.strictStyling):(t.selector.startsWith("@media")||t.selector.startsWith("@supports")||t.selector.startsWith("@page")||t.selector.startsWith("@document"))&&(i=a._scopeSelectors(t.content,e,n)),new pc(r,i)},i=function(t){for(var e=t.split(sc),n=[],r=[],i=0,o=[],a=0;a0?o.push(s):(o.length>0&&(r.push(o.join("")),n.push(uc),o=[]),n.push(s)),s==cc&&i++}o.length>0&&(r.push(o.join("")),n.push(uc));return new hc(n.join(""),r)}(t),o=0,i.escapedString.replace(ac,function(){for(var t=[],e=0;e-1)r=i._applySimpleSelectorScope(t,e,n);else{var a=t.replace(ec,"");if(a.length>0){var s=a.match(/([^:]*)(:*)(.*)/);s&&(r=s[1]+o+s[2]+s[3])}}return r},s=new zs(t),c="",l=0,u=/( |>|\+|~(?!=))\s*/g,p=!((t=s.content()).indexOf(Zs)>-1);null!==(r=u.exec(t));){var h=r[1],d=t.slice(l,r.index).trim();c+=((p=p||d.indexOf(Zs)>-1)?a(d):d)+" "+h+" ",l=u.lastIndex}var f=t.substring(l);return c+=(p=p||f.indexOf(Zs)>-1)?a(f):f,s.restore(c)},t.prototype._insertPolyfillHostInCssText=function(t){return t.replace(rc,Gs).replace(nc,Ws)},t}(),zs=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 i="__ph-"+e.index+"__";return e.placeholders.push(r),e.index++,n+i})}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}(),Hs=/polyfill-next-selector[^}]*content:[\s]*?(['"])(.*?)\1[;\s]*}([^{]*?){/gim,Us=/(polyfill-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,qs=/(polyfill-unscoped-rule)[^}]*(content:[\s]*(['"])(.*?)\3)[;\s]*[^}]*}/gim,Ws="-shadowcsshost",Gs="-shadowcsscontext",Ys=")(?:\\(((?:\\([^)(]*\\)|[^)(]*)+?)\\))?([^,{]*)",Ks=new RegExp("("+Ws+Ys,"gim"),Xs=new RegExp("("+Gs+Ys,"gim"),Zs=Ws+"-no-combinator",Qs=/-shadowcsshost-no-combinator([^\s]*)/,$s=[/::shadow/g,/::content/g,/\/shadow-deep\//g,/\/shadow\//g],Js=/(?:>>>)|(?:\/deep\/)|(?:::ng-deep)/g,tc="([>\\s~+[.,{:][\\s\\S]*)?$",ec=/-shadowcsshost/gim,nc=/:host/gim,rc=/:host-context/gim,ic=/\/\*\s*[\s\S]*?\*\//g;var oc=/\/\*\s*#\s*source(Mapping)?URL=[\s\S]+?\*\//g;var ac=/(\s*)([^;\{\}]+?)(\s*)((?:{%BLOCK%}?\s*;?)|(?:\s*;))/g,sc=/([{}])/g,cc="{",lc="}",uc="%BLOCK%",pc=function(){return function(t,e){this.selector=t,this.content=e}}();var hc=function(){return function(t,e){this.escapedString=t,this.blocks=e}}();var dc=function(){return function(t,e,n){this.name=t,this.moduleUrl=e,this.setValue=n}}(),fc=function(){return function(t,e,n,r,i){this.outputCtx=t,this.stylesVar=e,this.dependencies=n,this.isShimmed=r,this.meta=i}}(),mc=function(){function t(t){this._urlResolver=t,this._shadowCss=new Bs}return t.prototype.compileComponent=function(t,e){var n=e.template;return this._compileStyles(t,e,new Tt({styles:n.styles,styleUrls:n.styleUrls,moduleUrl:wt(e.type)}),this.needsStyleShim(e),!0)},t.prototype.compileStyles=function(t,e,n,r){return void 0===r&&(r=this.needsStyleShim(e)),this._compileStyles(t,e,n,r,!1)},t.prototype.needsStyleShim=function(t){return t.template.encapsulation===h.Emulated},t.prototype._compileStyles=function(t,e,n,r,i){var o=this,a=n.styles.map(function(t){return Ya(o._shimIfNeeded(t,r))}),s=[];n.styleUrls.forEach(function(e){var n=a.length;a.push(null),s.push(new dc(yc(null),e,function(e){return a[n]=t.importExpr(e)}))});var c=yc(i?e:null),l=Ba(c).set(qa(a,new Fo(Bo,[Ro.Const]))).toDeclStmt(null,i?[_a.Final]:[_a.Final,_a.Exported]);return t.statements.push(l),new fc(t,c,s,r,n)},t.prototype._shimIfNeeded=function(t,e){return e?this._shadowCss.shimCssText(t,"_ngcontent-%COMP%","_nghost-%COMP%"):t},t}();function yc(t){var e="styles";return t&&(e+="_"+_t(t.type)),e}var vc="ngPreserveWhitespaces",gc=new Set(["pre","template","textarea","script","style"]),bc=" \f\n\r\t\v\u1680\u180e\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff",_c=new RegExp("[^"+bc+"]"),wc=new RegExp("["+bc+"]{2,}","g");function xc(t){return t.replace(new RegExp(le,"g")," ")}var Cc=function(){function t(){}return t.prototype.visitElement=function(t,e){return gc.has(t.name)||t.attrs.some(function(t){return t.name===vc})?new Ut(t.name,Wt(this,t.attrs),t.children,t.sourceSpan,t.startSourceSpan,t.endSourceSpan):new Ut(t.name,t.attrs,Wt(this,t.children),t.sourceSpan,t.startSourceSpan,t.endSourceSpan)},t.prototype.visitAttribute=function(t,e){return t.name!==vc?t:null},t.prototype.visitText=function(t,e){return t.value.match(_c)?new Vt(xc(t.value).replace(wc," "),t.sourceSpan):null},t.prototype.visitComment=function(t,e){return t},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}();var Ec=["zero","one","two","few","many","other"];function Sc(t){var e=new Tc;return new Oc(Wt(e,t),e.isExpanded,e.errors)}var Oc=function(){return function(t,e,n){this.nodes=t,this.expanded=e,this.errors=n}}(),kc=function(t){function e(e,n){return t.call(this,e,n)||this}return Object(r.b)(e,t),e}(cr),Tc=function(){function t(){this.isExpanded=!1,this.errors=[]}return t.prototype.visitElement=function(t,e){return new Ut(t.name,t.attrs,Wt(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?(n=t,r=this.errors,i=n.cases.map(function(t){-1!=Ec.indexOf(t.value)||t.value.match(/^=\d+$/)||r.push(new kc(t.valueSourceSpan,'Plural cases should be "=" or one of '+Ec.join(", ")));var e=Sc(t.expression);return r.push.apply(r,e.errors),new Ut("ng-template",[new Ht("ngPluralCase",""+t.value,t.valueSourceSpan)],e.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),o=new Ht("[ngPlural]",n.switchValue,n.switchValueSourceSpan),new Ut("ng-container",[o],i,n.sourceSpan,n.sourceSpan,n.sourceSpan)):function(t,e){var n=t.cases.map(function(t){var n=Sc(t.expression);return e.push.apply(e,n.errors),"other"===t.value?new Ut("ng-template",[new Ht("ngSwitchDefault","",t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan):new Ut("ng-template",[new Ht("ngSwitchCase",""+t.value,t.valueSourceSpan)],n.nodes,t.sourceSpan,t.sourceSpan,t.sourceSpan)}),r=new Ht("[ngSwitch]",t.switchValue,t.switchValueSourceSpan);return new Ut("ng-container",[r],n,t.sourceSpan,t.sourceSpan,t.sourceSpan)}(t,this.errors);var n,r,i,o},t.prototype.visitExpansionCase=function(t,e){throw new Error("Should not be reached")},t}();var Pc={DEFAULT:0,LITERAL_ATTR:1,ANIMATION:2};Pc[Pc.DEFAULT]="DEFAULT",Pc[Pc.LITERAL_ATTR]="LITERAL_ATTR",Pc[Pc.ANIMATION]="ANIMATION";var Dc=function(){return function(t,e,n,r){this.name=t,this.expression=e,this.type=n,this.sourceSpan=r,this.isLiteral=this.type===Pc.LITERAL_ATTR,this.isAnimation=this.type===Pc.ANIMATION}}(),Ac=function(){function t(t,e,n,r,i){var o=this;this._exprParser=t,this._interpolationConfig=e,this._schemaRegistry=n,this._targetErrors=i,this.pipesByName=new Map,this._usedPipes=new Map,r.forEach(function(t){return o.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 i=[];return Object.keys(t.hostProperties).forEach(function(e){var o=t.hostProperties[e];"string"==typeof o?r.parsePropertyBinding(e,o,!0,n,[],i):r._reportError('Value of the host property binding "'+e+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",n)}),i.map(function(t){return r.createElementPropertyAst(e,t)})}return null},t.prototype.createDirectiveHostEventAsts=function(t,e){var n=this;if(t.hostListeners){var r=[];return Object.keys(t.hostListeners).forEach(function(i){var o=t.hostListeners[i];"string"==typeof o?n.parseEvent(i,o,e,[],r):n._reportError('Value of the host listener "'+i+'" needs to be a string representing an expression but got "'+o+'" ('+typeof o+")",e)}),r}return null},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,i,o){for(var a=this._parseTemplateBindings(t,e,n),s=0;s1)if("attr"==o[0]){i=o[1],this._validatePropertyOrAttributeName(i,e.sourceSpan,!0),a=Mc(this._schemaRegistry,t,i,!0);var s=i.indexOf(":");if(s>-1)i=se(i.substring(0,s),i.substring(s+1));r=pt.Attribute}else"class"==o[0]?(i=o[1],r=pt.Class,a=[P.NONE]):"style"==o[0]&&(n=o.length>2?o[2]:null,i=o[1],r=pt.Style,a=[P.STYLE]);return null===i&&(i=this._schemaRegistry.getMappedPropName(e.name),a=Mc(this._schemaRegistry,t,i,!1),r=pt.Property,this._validatePropertyOrAttributeName(i,e.sourceSpan,!1)),new tt(i,r,a[0],e.expression,n,e.sourceSpan)},t.prototype.parseEvent=function(t,e,n,r,i){Rc(t)?(t=t.substr(1),this._parseAnimationEvent(t,e,n,i)):this._parseEvent(t,e,n,r,i)},t.prototype._parseAnimationEvent=function(t,e,n,r){var i=M(t,".",[t,""]),o=i[0],a=i[1].toLowerCase();if(a)switch(a){case"start":case"done":var s=this._parseAction(e,n);r.push(new et(o,null,a,s,n));break;default:this._reportError('The provided animation output phase value "'+a+'" for "@'+o+'" is not supported (use start or done)',n)}else this._reportError("The animation trigger output event (@"+o+") is missing its phase value name (start or done are currently supported)",n)},t.prototype._parseEvent=function(t,e,n,r,i){var o=R(t,[null,t]),a=o[0],s=o[1],c=this._parseAction(e,n);r.push([t,c.source]),i.push(new et(s,a,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 Tn?(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=sr.ERROR),this._targetErrors.push(new cr(e,t,n))},t.prototype._reportExpressionParserErrors=function(t,e){for(var n=0,r=t;n element is deprecated. Use instead",Bc={};var zc=function(t){function e(e,n,r){return t.call(this,n,e,r)||this}return Object(r.b)(e,t),e}(cr),Hc=function(){return function(t,e,n){this.templateAst=t,this.usedPipes=e,this.errors=n}}(),Uc=function(){function t(t,e,n,r,i,o,a){this._config=t,this._reflector=e,this._exprParser=n,this._schemaRegistry=r,this._htmlParser=i,this._console=o,this.transforms=a}return t.prototype.parse=function(t,e,n,r,i,o,a){var s=this.tryParse(t,e,n,r,i,o,a),c=s.errors.filter(function(t){return t.level===sr.WARNING}).filter(function(t){return function(e){return-1===t.indexOf(e.msg)||(Bc[e.msg]=(Bc[e.msg]||0)+1,Bc[e.msg]<=1)}}(["The template attribute is deprecated. Use an ng-template element instead.",Vc])),l=s.errors.filter(function(t){return t.level===sr.ERROR});if(c.length>0&&this._console.warn("Template parse warnings:\n"+c.join("\n")),l.length>0)throw H("Template parse errors:\n"+l.join("\n"),l);return{template:s.templateAst,pipes:s.usedPipes}},t.prototype.tryParse=function(t,e,n,r,i,o,a){var s,c="string"==typeof e?this._htmlParser.parse(e,o,!0,this.getInterpolationConfig(t)):e;return a||(s=c,c=new Sr(Wt(new Cc,s.rootNodes),s.errors)),this.tryParseHtml(this.expandHtml(c),t,n,r,i)},t.prototype.tryParseHtml=function(t,e,n,r,i){var o,a=t.errors,s=[];if(t.rootNodes.length>0){var c=$c(n),l=$c(r),u=new Xa(this._reflector,e),p=void 0;e.template&&e.template.interpolation&&(p={start:e.template.interpolation[0],end:e.template.interpolation[1]});var h=new Ac(this._exprParser,p,this._schemaRegistry,l,a),d=new qc(this._reflector,this._config,u,c,h,this._schemaRegistry,i,a);o=Wt(d,t.rootNodes,Xc),a.push.apply(a,u.errors),s.push.apply(s,h.getUsedPipes())}else o=[];return this._assertNoReferenceDuplicationOnTemplate(o,a),a.length>0?new Hc(o,s,a):(this.transforms&&this.transforms.forEach(function(t){o=ht(t,o)}),new Hc(o,s,a))},t.prototype.expandHtml=function(t,e){void 0===e&&(e=!1);var n=t.errors;if(0==n.length||e){var r=Sc(t.rootNodes);n.push.apply(n,r.errors),t=new Sr(r.nodes,n)}return t},t.prototype.getInterpolationConfig=function(t){if(t.template)return Xt.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 i=new zc('Reference "#'+r+'" is defined several times',t.sourceSpan,sr.ERROR);e.push(i)}})})},t}(),qc=function(){function t(t,e,n,r,i,o,a,s){var c=this;this.reflector=t,this.config=e,this.providerViewContext=n,this._bindingParser=i,this._schemaRegistry=o,this._schemas=a,this._targetErrors=s,this.selectorMatcher=new Eo,this.directivesIndex=new Map,this.ngContentCount=0,this.contentQueryStartId=n.component.viewQueries.length+1,r.forEach(function(t,e){var n=Co.parse(t.selector);c.selectorMatcher.addSelectables(n,t),c.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(Fc),r=xc(t.value),i=this._bindingParser.parseInterpolation(r,t.sourceSpan);return i?new $(i,n,t.sourceSpan):new Q(r,n,t.sourceSpan)},t.prototype.visitAttribute=function(t,e){return new J(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,i=t.name,o=be(t);if(o.type===_e.SCRIPT||o.type===_e.STYLE)return null;if(o.type===_e.STYLESHEET&&$t(o.hrefAttr))return null;var a=[],s=[],c=[],l=[],u=[],p=[],h=[],d=[],f=!1,m=[],y=function(t,e,n){if(r=t.name,"ng-template"===re(r)[1])return!0;var r;var i=re(t.name)[1];if(i.toLowerCase()===Nc&&e&&i.toLowerCase()===Nc)return n(Vc,t.sourceSpan),!0;return!1}(t,this.config.enableLegacyTemplate,function(t,e){return n._reportError(t,e,sr.WARNING)});t.attrs.forEach(function(t){var e,r,i=n._parseAttr(y,t,a,s,u,c,l),o=n._normalizeAttributeName(t.name);n.config.enableLegacyTemplate&&"template"==o?(n._reportError("The template attribute is deprecated. Use an ng-template element instead.",t.sourceSpan,sr.WARNING),e=t.value):o.startsWith("*")&&(e=t.value,r=o.substring("*".length)+":");var v=null!=e;v&&(f&&n._reportError("Can't have multiple template bindings on one element. Use only one attribute named 'template' or prefixed with *",t.sourceSpan),f=!0,n._bindingParser.parseInlineTemplateBinding(r,e,t.sourceSpan,h,p,d)),i||v||(m.push(n.visitAttribute(t,null)),a.push([t.name,t.value]))});var v=Kc(i,a),g=this._parseDirectives(this.selectorMatcher,v),b=g.directives,_=g.matchElement,w=[],x=new Set,C=this._createDirectiveAsts(y,t.name,b,s,c,t.sourceSpan,w,x),E=this._createElementPropertyAsts(t.name,s,x),S=e.isTemplateElement||f,O=new Za(this.providerViewContext,e.providerContext,S,C,m,w,y,r,t.sourceSpan),k=Wt(o.nonBindable?Zc:this,t.children,Yc.create(y,C,y?e.providerContext:O));O.afterElement();var T,P=null!=o.projectAs?Co.parse(o.projectAs)[0]:v,D=e.findNgContentIndex(P);if(o.type===_e.NG_CONTENT)t.children&&!t.children.every(Qc)&&this._reportError(" element cannot have content.",t.sourceSpan),T=new ut(this.ngContentCount++,f?null:D,t.sourceSpan);else if(y)this._assertAllEventsPublishedByDirectives(C,u),this._assertNoComponentsNorElementBindingsOnTemplate(C,E,t.sourceSpan),T=new ot(m,u,w,l,O.transformedDirectiveAsts,O.transformProviders,O.transformedHasViewContainer,O.queryMatches,k,f?null:D,t.sourceSpan);else{this._assertElementExists(_,t),this._assertOnlyOneComponent(C,t.sourceSpan);var A=f?null:e.findNgContentIndex(P);T=new it(i,m,E,u,w,O.transformedDirectiveAsts,O.transformProviders,O.transformedHasViewContainer,O.queryMatches,k,f?null:A,t.sourceSpan,t.endSourceSpan||null)}if(f){var I=this.contentQueryStartId,R=Kc(Nc,h),M=this._parseDirectives(this.selectorMatcher,R).directives,j=new Set,N=this._createDirectiveAsts(!0,t.name,M,p,[],t.sourceSpan,[],j),L=this._createElementPropertyAsts(t.name,p,j);this._assertNoComponentsNorElementBindingsOnTemplate(N,L,t.sourceSpan);var F=new Za(this.providerViewContext,e.providerContext,e.isTemplateElement,N,[],[],!0,I,t.sourceSpan);F.afterElement(),T=new ot([],[],[],d,F.transformedDirectiveAsts,F.transformProviders,F.transformedHasViewContainer,F.queryMatches,[T],D,t.sourceSpan)}return T},t.prototype._parseAttr=function(t,e,n,r,i,o,a){var s=this._normalizeAttributeName(e.name),c=e.value,l=e.sourceSpan,u=s.match(jc),p=!1;if(null!==u)if(p=!0,null!=u[1])this._bindingParser.parsePropertyBinding(u[7],c,!1,l,n,r);else if(u[2])if(t){var h=u[7];this._parseVariable(h,c,l,a)}else this._reportError('"let-" is only supported on ng-template elements.',l);else if(u[3]){h=u[7];this._parseReference(h,c,l,o)}else u[4]?this._bindingParser.parseEvent(u[7],c,l,n,i):u[5]?(this._bindingParser.parsePropertyBinding(u[7],c,!1,l,n,r),this._parseAssignmentEvent(u[7],c,l,n,i)):u[6]?this._bindingParser.parseLiteralAttr(s,c,l,n,r):u[8]?(this._bindingParser.parsePropertyBinding(u[8],c,!1,l,n,r),this._parseAssignmentEvent(u[8],c,l,n,i)):u[9]?this._bindingParser.parsePropertyBinding(u[9],c,!1,l,n,r):u[10]&&this._bindingParser.parseEvent(u[10],c,l,n,i);else p=this._bindingParser.parsePropertyInterpolation(s,c,l,n,r);return p||this._bindingParser.parseLiteralAttr(s,c,l,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 rt(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 Gc(t,e,n))},t.prototype._parseAssignmentEvent=function(t,e,n,r,i){this._bindingParser.parseEvent(t+"Change",e+"=$event",n,r,i)},t.prototype._parseDirectives=function(t,e){var n=this,r=new Array(this.directivesIndex.size),i=!1;return t.match(e,function(t,e){r[n.directivesIndex.get(e)]=e,i=i||t.hasElementSelector()}),{directives:r.filter(function(t){return!!t}),matchElement:i}},t.prototype._createDirectiveAsts=function(t,e,n,r,i,o,a,s){var c=this,l=new Set,u=null,p=n.map(function(t){var n=new ar(o.start,o.end,"Directive "+_t(t.type));t.isComponent&&(u=t);var p=[],h=c._bindingParser.createDirectiveHostPropertyAsts(t,e,n);h=c._checkPropertiesInSchema(e,h);var d=c._bindingParser.createDirectiveHostEventAsts(t,n);c._createDirectivePropertyAsts(t.inputs,r,p,s),i.forEach(function(e){(0===e.value.length&&t.isComponent||e.isReferenceToDirective(t))&&(a.push(new nt(e.name,vo(t.type.reference),e.sourceSpan)),l.add(e.name))});var f=c.contentQueryStartId;return c.contentQueryStartId+=t.queries.length,new st(t,p,h,d,f,n)});return i.forEach(function(e){if(e.value.length>0)l.has(e.name)||c._reportError('There is no directive with "exportAs" set to "'+e.value+'"',e.sourceSpan);else if(!u){var n=null;t&&(n=go(c.reflector,yo.TemplateRef)),a.push(new nt(e.name,n,e.sourceSpan))}}),p},t.prototype._createDirectivePropertyAsts=function(t,e,n,r){if(t){var i=new Map;e.forEach(function(t){var e=i.get(t.name);e&&!e.isLiteral||i.set(t.name,t)}),Object.keys(t).forEach(function(e){var o=t[e],a=i.get(o);a&&(r.add(a.name),Jc(a.expression)||n.push(new at(e,a.name,a.expression,a.sourceSpan)))})}},t.prototype._createElementPropertyAsts=function(t,e,n){var r=this,i=[];return e.forEach(function(e){e.isLiteral||n.has(e.name)||i.push(r._bindingParser.createElementPropertyAst(t,e))}),this._checkPropertiesInSchema(t,i)},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 _t(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",n.indexOf("-")>-1?r+="2. If '"+n+"' is a Web Component then add 'CUSTOM_ELEMENTS_SCHEMA' to the '@NgModule.schemas' of this component to suppress this message.":r+="2. To allow any element add 'NO_ERRORS_SCHEMA' to the '@NgModule.schemas' of this component.",this._reportError(r,e.sourceSpan)}},t.prototype._assertNoComponentsNorElementBindingsOnTemplate=function(t,e,n){var r=this,i=this._findComponentDirectiveNames(t);i.length>0&&this._reportError("Components on an embedded template: "+i.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===pt.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!Jc(e.value)})},t.prototype._reportError=function(t,e,n){void 0===n&&(n=sr.ERROR),this._targetErrors.push(new cr(e,t,n))},t}(),Wc=function(){function t(){}return t.prototype.visitElement=function(t,e){var n=be(t);if(n.type===_e.SCRIPT||n.type===_e.STYLE||n.type===_e.STYLESHEET)return null;var r=t.attrs.map(function(t){return[t.name,t.value]}),i=Kc(t.name,r),o=e.findNgContentIndex(i),a=Wt(this,t.children,Xc);return new it(t.name,Wt(this,t.attrs),[],[],[],[],[],!1,[],a,o,t.sourceSpan,t.endSourceSpan)},t.prototype.visitComment=function(t,e){return null},t.prototype.visitAttribute=function(t,e){return new J(t.name,t.value,t.sourceSpan)},t.prototype.visitText=function(t,e){var n=e.findNgContentIndex(Fc);return new Q(t.value,n,t.sourceSpan)},t.prototype.visitExpansion=function(t,e){return t},t.prototype.visitExpansionCase=function(t,e){return t},t}(),Gc=function(){function t(t,e,n){this.name=t,this.value=e,this.sourceSpan=n}return t.prototype.isReferenceToDirective=function(t){return-1!==(e=t.exportAs,e?e.split(",").map(function(t){return t.trim()}):[]).indexOf(this.value);var e},t}();var Yc=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 i=new Eo,o=null,a=n.find(function(t){return t.directive.isComponent});if(a)for(var s=a.directive.template.ngContentSelectors,c=0;c0?e[0]:null},t}();function Kc(t,e){var n=new Co,r=re(t)[1];n.setElement(r);for(var i=0;i=0;r--)n.unshift(cl(e,r))}(o.temporaryCount,r,a);var s=a.length-1,c=null;if(s>=0){var l=function(t){if(t instanceof Ea)return t.expr;if(t instanceof Sa)return t.value;return null}(a[s]);l&&(c=function(t){return Ba("pd_"+t)}(r),a[s]=c.set(l.cast(Bo).notIdentical(Ya(!1))).toDeclStmt(null,[_a.Final]))}return new el(a,c)}function rl(t,e){return function(t,e){var n=new hl(t);return e.visit(n)}(t,e)}var il=function(){return function(t,e){this.stmts=t,this.currValExpr=e}}(),ol={General:0,TrySimple:1};function al(t,e,n,r,i){t||(t=new fl);var o=function(t){return Ba("currVal_"+t)}(r),a=[],s=new dl(t,e,r),c=n.visit(s,ll.Expression);if(s.temporaryCount)for(var l=0;l":n=Uo.Bigger;break;case"<=":n=Uo.LowerEquals;break;case">=":n=Uo.BiggerEquals;break;default:throw new Error("Unsupported operation "+t.operation)}return pl(e,new pa(n,this._visit(t.left,ll.Expression),this._visit(t.right,ll.Expression)))},t.prototype.visitChain=function(t,e){return function(t,e){if(t!==ll.Statement)throw new Error("Expected a statement, but saw "+e)}(e,t),this.visitAll(t.expressions,e)},t.prototype.visitConditional=function(t,e){return pl(e,this._visit(t.condition,ll.Expression).conditional(this._visit(t.trueExp,ll.Expression),this._visit(t.falseExp,ll.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=this.visitAll(t.args,ll.Expression);return pl(e,t instanceof ml?t.converter(n):this._visit(t.target,ll.Expression).callFn(n))},t.prototype.visitImplicitReceiver=function(t,e){return ul(e,t),this._implicitReceiver},t.prototype.visitInterpolation=function(t,e){ul(e,t);for(var n=[Ya(t.expressions.length)],r=0;r0?Bo:Ua(e.importExpr(this.component.type.reference)),this.viewName=xt(this.component.type.reference,this.embeddedViewIndex)}return t.prototype.visitAll=function(t,e){var n,r,i,o=this;if(this.variables=t,this.parent||this.usedPipes.forEach(function(t){t.pure&&(o.purePipeNodeIndices[t.name]=o._createPipe(null,t))}),!this.parent){var a=(n=this.staticQueryIds,r=new Set,i=new Set,Array.from(n.values()).forEach(function(t){t.staticQueryIds.forEach(function(t){return r.add(t)}),t.dynamicQueryIds.forEach(function(t){return i.add(t)})}),i.forEach(function(t){return r.delete(t)}),{staticQueryIds:r,dynamicQueryIds:i});this.component.viewQueries.forEach(function(t,e){var n=e+1,r=t.first?0:1,i=134217728|Il(a,n,t.first);o.nodes.push(function(){return{sourceSpan:null,nodeFlags:i,nodeDef:za(yo.queryDef).callFn([Ya(i),Ya(n),new ya([new ma(t.propertyName,Ya(r),!1)])])}})})}ht(this,e),this.parent&&(0===e.length||function t(e){var n=e[e.length-1];if(n instanceof ot)return n.hasViewContainer;if(n instanceof it)return ie(n.name)&&n.children.length?t(n.children):n.hasViewContainer;return n instanceof ut}(e))&&this.nodes.push(function(){return{sourceSpan:null,nodeFlags:1,nodeDef:za(yo.anchorDef).callFn([Ya(0),ga,ga,Ya(0)])}})},t.prototype.build=function(t){void 0===t&&(t=[]),this.children.forEach(function(e){return e.build(t)});var e=this._createNodeExpressions(),n=e.updateRendererStmts,r=e.updateDirectivesStmts,i=e.nodeDefExprs,o=this._createUpdateFn(n),a=this._createUpdateFn(r),s=0;this.parent||this.component.changeDetection!==d.OnPush||(s|=2);var c=new Ca(this.viewName,[new la(xl.name)],[new Sa(za(yo.viewDef).callFn([Ya(s),qa(i),a,o]))],Ha(yo.ViewDefinition),0===this.embeddedViewIndex?[_a.Exported]:[]);return t.push(c),t},t.prototype._createUpdateFn=function(t){var e;if(t.length>0){var n=[];!this.component.isHost&&ja(t).has(Sl.name)&&n.push(Sl.set(Cl.prop("component")).toDeclStmt(this.compType)),e=Ga([new la(El.name,zo),new la(Cl.name,zo)],n.concat(t),zo)}else e=ga;return e},t.prototype.visitNgContent=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:8,nodeDef:za(yo.ngContentDef).callFn([Ya(t.ngContentIndex),Ya(t.index)])}})},t.prototype.visitText=function(t,e){this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:za(yo.textDef).callFn([Ya(-1),Ya(t.ngContentIndex),qa([Ya(t.value)])])}})},t.prototype.visitBoundText=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var i=t.value.ast,o=i.expressions.map(function(e,i){return n._preprocessUpdateExpression({nodeIndex:r,bindingIndex:i,sourceSpan:t.sourceSpan,context:Sl,value:e})}),a=r;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:2,nodeDef:za(yo.textDef).callFn([Ya(a),Ya(t.ngContentIndex),qa(i.strings.map(function(t){return Ya(t)}))]),updateRenderer:o}}},t.prototype.visitEmbeddedTemplate=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var i=this._visitElementOrTemplate(r,t),o=i.flags,a=i.queryMatchesExpr,s=i.hostEvents,c=this.viewBuilderFactory(this);this.children.push(c),c.visitAll(t.variables,t.children);var l=this.nodes.length-r-1;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|o,nodeDef:za(yo.anchorDef).callFn([Ya(o),a,Ya(t.ngContentIndex),Ya(l),n._createElementHandleEventFn(r,s),Ba(c.viewName)])}}},t.prototype.visitElement=function(t,e){var n=this,r=this.nodes.length;this.nodes.push(null);var i=ie(t.name)?null:t.name,o=this._visitElementOrTemplate(r,t),a=o.flags,s=o.usedEvents,c=o.queryMatchesExpr,l=o.hostBindings,u=o.hostEvents,p=[],h=[],d=[];if(i){var f=t.inputs.map(function(t){return{context:Sl,inputAst:t,dirAst:null}}).concat(l);f.length&&(h=f.map(function(t,e){return n._preprocessUpdateExpression({context:t.context,nodeIndex:r,bindingIndex:e,sourceSpan:t.inputAst.sourceSpan,value:t.inputAst.value})}),p=f.map(function(t){return function(t,e){switch(t.type){case pt.Attribute:return qa([Ya(1),Ya(t.name),Ya(t.securityContext)]);case pt.Property:return qa([Ya(8),Ya(t.name),Ya(t.securityContext)]);case pt.Animation:var n=8|(e&&e.directive.isComponent?32:16);return qa([Ya(n),Ya("@"+t.name),Ya(t.securityContext)]);case pt.Class:return qa([Ya(2),Ya(t.name),ga]);case pt.Style:return qa([Ya(4),Ya(t.name),Ya(t.unit)])}}(t.inputAst,t.dirAst)})),d=s.map(function(t){var e=t[0],n=t[1];return qa([Ya(e),Ya(n)])})}ht(this,t.children);var m=this.nodes.length-r-1,y=t.directives.find(function(t){return t.directive.isComponent}),v=ga,g=ga;y&&(g=this.outputCtx.importExpr(y.directive.componentViewType),v=this.outputCtx.importExpr(y.directive.rendererType));var b=r;this.nodes[r]=function(){return{sourceSpan:t.sourceSpan,nodeFlags:1|a,nodeDef:za(yo.elementDef).callFn([Ya(b),Ya(a),c,Ya(t.ngContentIndex),Ya(m),Ya(i),i?(e=t,o=Object.create(null),e.attrs.forEach(function(t){o[t.name]=t.value}),e.directives.forEach(function(t){Object.keys(t.directive.hostAttributes).forEach(function(e){var n,r,i=t.directive.hostAttributes[e],a=o[e];o[e]=null!=a?(r=i,(n=e)==gl||n==bl?a+" "+r:r):i})}),qa(Object.keys(o).sort().map(function(t){return qa([Ya(t),Ya(o[t])])}))):ga,p.length?qa(p):ga,d.length?qa(d):ga,n._createElementHandleEventFn(r,u),g,v]),updateRenderer:h};var e,o}},t.prototype._visitElementOrTemplate=function(t,e){var n=this,r=0;e.hasViewContainer&&(r|=16777216);var i=new Map;e.outputs.forEach(function(t){var e=Al(t,null),n=e.name,r=e.target;i.set(Rl(r,n),[r,n])}),e.directives.forEach(function(t){t.hostEvents.forEach(function(e){var n=Al(e,t),r=n.name,o=n.target;i.set(Rl(o,r),[o,r])})});var o=[],a=[];this._visitComponentFactoryResolverProvider(e.directives),e.providers.forEach(function(r,s){var c=void 0,l=void 0;if(e.directives.forEach(function(t,e){t.directive.type.reference===kt(r.token)&&(c=t,l=e)}),c){var u=n._visitDirective(r,c,l,t,e.references,e.queryMatches,i,n.staticQueryIds.get(e)),p=u.hostBindings,h=u.hostEvents;o.push.apply(o,p),a.push.apply(a,h)}else n._visitProvider(r,e.queryMatches)});var s=[];return e.queryMatches.forEach(function(t){var e=void 0;kt(t.value)===n.reflector.resolveExternalReference(yo.ElementRef)?e=0:kt(t.value)===n.reflector.resolveExternalReference(yo.ViewContainerRef)?e=3:kt(t.value)===n.reflector.resolveExternalReference(yo.TemplateRef)&&(e=2),null!=e&&s.push(qa([Ya(t.queryId),Ya(e)]))}),e.references.forEach(function(e){var r=void 0;e.value?kt(e.value)===n.reflector.resolveExternalReference(yo.TemplateRef)&&(r=2):r=1,null!=r&&(n.refNodeIndices[e.name]=t,s.push(qa([Ya(e.name),Ya(r)])))}),e.outputs.forEach(function(t){a.push({context:Sl,eventAst:t,dirAst:null})}),{flags:r,usedEvents:Array.from(i.values()),queryMatchesExpr:s.length?qa(s):ga,hostBindings:o,hostEvents:a}},t.prototype._visitDirective=function(t,e,n,r,i,o,a,s){var c=this,l=this.nodes.length;this.nodes.push(null),e.directive.queries.forEach(function(t,n){var r=e.contentQueryStartId+n,i=67108864|Il(s,r,t.first),o=t.first?0:1;c.nodes.push(function(){return{sourceSpan:e.sourceSpan,nodeFlags:i,nodeDef:za(yo.queryDef).callFn([Ya(i),Ya(r),new ya([new ma(t.propertyName,Ya(o),!1)])])}})});var u=this.nodes.length-l-1,p=this._visitProviderOrDirective(t,o),h=p.flags,d=p.queryMatchExprs,f=p.providerExpr,m=p.depsExpr;i.forEach(function(e){e.value&&kt(e.value)===kt(t.token)&&(c.refNodeIndices[e.name]=l,d.push(qa([Ya(e.name),Ya(4)])))}),e.directive.isComponent&&(h|=32768);var y=e.inputs.map(function(t,e){var n=qa([Ya(e),Ya(t.directiveName)]);return new ma(t.directiveName,n,!1)}),v=[],g=e.directive;Object.keys(g.outputs).forEach(function(t){var e=g.outputs[t];a.has(e)&&v.push(new ma(t,Ya(e),!1))});var b=[];(e.inputs.length||(327680&h)>0)&&(b=e.inputs.map(function(t,e){return c._preprocessUpdateExpression({nodeIndex:l,bindingIndex:e,sourceSpan:t.sourceSpan,context:Sl,value:t.value})}));var _=za(yo.nodeValue).callFn([Cl,Ya(l)]),w=e.hostProperties.map(function(t){return{context:_,dirAst:e,inputAst:t}}),x=e.hostEvents.map(function(t){return{context:_,eventAst:t,dirAst:e}}),C=l;return this.nodes[l]=function(){return{sourceSpan:e.sourceSpan,nodeFlags:16384|h,nodeDef:za(yo.directiveDef).callFn([Ya(C),Ya(h),d.length?qa(d):ga,Ya(u),f,m,y.length?new ya(y):ga,v.length?new ya(v):ga]),updateDirectives:b,directive:e.directive.type}},{hostBindings:w,hostEvents:x}},t.prototype._visitProvider=function(t,e){this._addProviderNode(this._visitProviderOrDirective(t,e))},t.prototype._visitComponentFactoryResolverProvider=function(t){var e=t.find(function(t){return t.directive.isComponent});if(e&&e.directive.entryComponents.length){var n=ls(this.reflector,this.outputCtx,8192,e.directive.entryComponents),r=n.providerExpr,i=n.depsExpr,o=n.flags,a=n.tokenExpr;this._addProviderNode({providerExpr:r,depsExpr:i,flags:o,tokenExpr:a,queryMatchExprs:[],sourceSpan:e.sourceSpan})}},t.prototype._addProviderNode=function(t){this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:t.flags,nodeDef:za(yo.providerDef).callFn([Ya(t.flags),t.queryMatchExprs.length?qa(t.queryMatchExprs):ga,t.tokenExpr,t.providerExpr,t.depsExpr])}})},t.prototype._visitProviderOrDirective=function(t,e){var n=[];e.forEach(function(e){kt(e.value)===kt(t.token)&&n.push(qa([Ya(e.queryId),Ya(4)]))});var r=is(this.outputCtx,t),i=r.providerExpr,o=r.depsExpr,a=r.flags,s=r.tokenExpr;return{flags:0|a,queryMatchExprs:n,providerExpr:i,depsExpr:o,tokenExpr:s,sourceSpan:t.sourceSpan}},t.prototype.getLocal=function(t){if(t==tl.event.name)return tl.event;for(var e=Cl,n=this;n;n=n.parent,e=e.prop("parent").cast(Bo)){var r=n.refNodeIndices[t];if(null!=r)return za(yo.nodeValue).callFn([e,Ya(r)]);var i=n.variables.find(function(e){return e.name===t});if(i){var o=i.value||"$implicit";return e.prop("context").prop(o)}}return null},t.prototype._createLiteralArrayConverter=function(t,e){if(0===e){var n=za(yo.EMPTY_ARRAY);return function(){return n}}var r=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:32,nodeDef:za(yo.pureArrayDef).callFn([Ya(r),Ya(e)])}}),function(t){return Pl(r,t)}},t.prototype._createLiteralMapConverter=function(t,e){if(0===e.length){var n=za(yo.EMPTY_MAP);return function(){return n}}var i=Wa(e.map(function(t,e){return Object(r.a)({},t,{value:Ya(e)})})),o=this.nodes.length;return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:64,nodeDef:za(yo.pureObjectDef).callFn([Ya(o),i])}}),function(t){return Pl(o,t)}},t.prototype._createPipeConverter=function(t,e,n){var r=this.usedPipes.find(function(t){return t.name===e});if(r.pure){var i=this.nodes.length;this.nodes.push(function(){return{sourceSpan:t.sourceSpan,nodeFlags:128,nodeDef:za(yo.purePipeDef).callFn([Ya(i),Ya(n)])}});for(var o=Cl,a=this;a.parent;)a=a.parent,o=o.prop("parent").cast(Bo);var s=a.purePipeNodeIndices[e],c=za(yo.nodeValue).callFn([o,Ya(s)]);return function(e){return Dl(t.nodeIndex,t.bindingIndex,Pl(i,[c].concat(e)))}}var l=this._createPipe(t.sourceSpan,r),u=za(yo.nodeValue).callFn([Cl,Ya(l)]);return function(e){return Dl(t.nodeIndex,t.bindingIndex,u.callMethod("transform",e))}},t.prototype._createPipe=function(t,e){var n=this,r=this.nodes.length,i=0;e.type.lifecycleHooks.forEach(function(t){t===bo.OnDestroy&&(i|=cs(t))});var o=e.type.diDeps.map(function(t){return ss(n.outputCtx,t)});return this.nodes.push(function(){return{sourceSpan:t,nodeFlags:16,nodeDef:za(yo.pipeDef).callFn([Ya(i),n.outputCtx.importExpr(e.type.reference),qa(o)])}}),r},t.prototype._preprocessUpdateExpression=function(t){var e=this;return{nodeIndex:t.nodeIndex,bindingIndex:t.bindingIndex,sourceSpan:t.sourceSpan,context:t.context,value:rl({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(){var t=this,e=0,n=[],r=[],i=this.nodes.map(function(t,e){var i=t(),a=i.nodeDef,s=i.nodeFlags,c=i.updateDirectives,l=i.updateRenderer,u=i.sourceSpan;return l&&n.push.apply(n,o(e,u,l,!1)),c&&r.push.apply(r,o(e,u,c,(327680&s)>0)),Fa(3&s?new va([xl.callFn([]).callFn([]),a]):a,u)});return{updateRendererStmts:n,updateDirectivesStmts:r,nodeDefExprs:i};function o(n,r,i,o){var a=[],s=i.map(function(n){var r=n.sourceSpan,i=n.context,o=n.value,s=""+e++,c=al(i===Sl?t:null,i,o,s,ol.General),l=c.stmts,u=c.currValExpr;return a.push.apply(a,l.map(function(t){return La(t,r)})),Fa(u,r)});return(i.length||o)&&a.push(La(Pl(n,s).toStmt(),r)),a}},t.prototype._createElementHandleEventFn=function(t,e){var n,r=this,i=[],o=0;if(e.forEach(function(t){var e=t.context,n=t.eventAst,a=t.dirAst,s=""+o++,c=nl(e===Sl?r:null,e,n.handler,s),l=c.stmts,u=c.allowDefault,p=l;u&&p.push(kl.set(u.and(kl)).toStmt());var h=Al(n,a),d=Rl(h.target,h.name);i.push(La(new Da(Ya(d).identical(Ol),p),n.sourceSpan))}),i.length>0){var a=[kl.set(Ya(!0)).toDeclStmt(Ho)];!this.component.isHost&&ja(i).has(Sl.name)&&a.push(Sl.set(Cl.prop("component")).toDeclStmt(this.compType)),n=Ga([new la(Cl.name,zo),new la(Ol.name,zo),new la(tl.event.name,zo)],a.concat(i,[new Sa(kl)]),zo)}else n=ga;return n},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}();function Pl(t,e){return e.length>10?El.callFn([Cl,Ya(t),Ya(1),qa(e)]):El.callFn([Cl,Ya(t),Ya(0)].concat(e))}function Dl(t,e,n){return za(yo.unwrapValue).callFn([Cl,Ya(t),Ya(e),n])}function Al(t,e){return t.isAnimation?{name:"@"+t.name+"."+t.phase,target:e&&e.directive.isComponent?"component":null}:t}function Il(t,e,n){var r=0;return!n||!t.staticQueryIds.has(e)&&t.dynamicQueryIds.has(e)?r|=536870912:r|=268435456,r}function Rl(t,e){return t?t+":"+e:e}var Ml=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 i,o=function(t,e,n,r){return new _i(n,r).extract(t,e)}(r.rootNodes,n,this._implicitTags,this._implicitAttrs);return o.errors.length?o.errors:((i=this._messages).push.apply(i,o.messages),[])},t.prototype.getMessages=function(){return this._messages},t.prototype.write=function(t,e){var n={},r=new jl;this._messages.forEach(function(e){var r,i=t.digest(e);n.hasOwnProperty(i)?(r=n[i].sources).push.apply(r,e.sources):n[i]=e});var i=Object.keys(n).map(function(i){var o=t.createNameMapper(n[i]),a=n[i],s=o?r.convert(a.nodes,o):a.nodes,c=new Kr(s,{},{},a.meaning,a.description,i);return c.sources=a.sources,e&&c.sources.forEach(function(t){return t.filePath=e(t.filePath)}),c});return t.write(i,this._locale)},t}(),jl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(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),i=t.closeName?e.toPublicName(t.closeName):t.closeName,o=t.children.map(function(t){return t.visit(n,e)});return new $r(t.tag,t.attrs,r,i,o,t.isVoid,t.sourceSpan)},e.prototype.visitPlaceholder=function(t,e){return new Jr(t.value,e.toPublicName(t.name),t.sourceSpan)},e.prototype.visitIcuPlaceholder=function(t,e){return new ti(t.value,e.toPublicName(t.name),t.sourceSpan)},e}(ei),Nl=function(){function t(t,e,n){this.srcFileUrl=t,this.genFileUrl=e,"string"==typeof n?(this.source=n,this.stmts=null):(this.source=null,this.stmts=n)}return t.prototype.isEquivalent=function(t){return this.genFileUrl===t.genFileUrl&&(this.source?this.source===t.source:null!=t.stmts&&Wo(this.stmts,t.stmts))},t}();function Ll(t,e){for(var n=[],r=0,i=t.transitiveModule.providers;r0)return this._resolveSymbolMembers(t);var e=this._resolveSymbolFromSummary(t);if(e)return e;var n=this.resolvedSymbols.get(t);return n||(this._createSymbolsOf(t.filePath),this.resolvedSymbols.get(t))},t.prototype.getImportAs=function(t,e){if(void 0===e&&(e=!0),t.members.length){var n=this.getStaticSymbol(t.filePath,t.name);return(i=this.getImportAs(n,e))?this.getStaticSymbol(i.filePath,i.name,t.members):null}var r=t.filePath.replace(io,".");if(r!==t.filePath){var i,o=t.name.replace(oo,"");n=this.getStaticSymbol(r,o,t.members);return(i=this.getImportAs(n,e))?this.getStaticSymbol(po(i.filePath),ho(i.name),n.members):null}var a=e&&this.summaryResolver.getImportAs(t)||null;return a||(a=this.importAs.get(t)),a},t.prototype.getResourcePath=function(t){return this.symbolResourcePaths.get(t)||t.filePath},t.prototype.getTypeArity=function(t){if(e=t.filePath,ro.test(e))return null;for(var e,n=Ul(this.resolveSymbol(t));n&&n.metadata instanceof mt;)n=Ul(this.resolveSymbol(n.metadata));return n&&n.metadata&&n.metadata.arity||null},t.prototype.getKnownModuleName=function(t){return this.knownFileNameToModuleNames.get(t)||null},t.prototype.recordImportAs=function(t,e){t.assertNoMembers(),e.assertNoMembers(),this.importAs.set(t,e)},t.prototype.recordModuleNameForFileName=function(t,e){this.knownFileNameToModuleNames.set(t,e)},t.prototype.invalidateFile=function(t){this.metadataCache.delete(t),this.resolvedFilePaths.delete(t);var e=this.symbolFromFile.get(t);if(e){this.symbolFromFile.delete(t);for(var n=0,r=e;n=0?{__symbolic:"reference",name:d}:n.has(d)?l.getStaticSymbol(e,d):void 0},o}(F)),[]),p=Ul(u);return p instanceof mt?this.createExport(t,p):new Bl(t,u)},t.prototype.createExport=function(t,e){return t.assertNoMembers(),e.assertNoMembers(),this.summaryResolver.isLibraryFile(t.filePath)&&this.summaryResolver.isLibraryFile(e.filePath)&&this.importAs.set(e,this.getImportAs(t)||t),new Bl(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&&t.version>r&&(r=t.version,e=t)})}if(e||(e={__symbolic:"module",version:4,module:t,metadata:{}}),4!=e.version){var i=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 4";this.reportError(new Error(i))}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:""))),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,void 0,e)}return null},t}();function Hl(t){return t.startsWith("___")?t.substr(1):t}function Ul(t){return t&&"resolved"===t.__symbolic?t.symbol:t}function ql(t,e,n){var r=ho(e.name);t.statements.push(Ga([],[new Sa(n)],new Fo(Bo)).toDeclStmt(r,[_a.Final,_a.Exported]))}var Wl=function(t){function e(e,n,r){var i=t.call(this)||this;return i.symbolResolver=e,i.summaryResolver=n,i.srcFileName=r,i.symbols=[],i.indexBySymbol=new Map,i.reexportedBy=new Map,i.processedSummaryBySymbol=new Map,i.processedSummaries=[],i.unprocessedSymbolSummariesBySymbol=new Map,i.moduleName=e.getKnownModuleName(r),i}return Object(r.b)(e,t),e.prototype.addSummary=function(t){var e,n,r=this,i=this.unprocessedSymbolSummariesBySymbol.get(t.symbol),o=this.processedSummaryBySymbol.get(t.symbol);if(i||(i={symbol:t.symbol,metadata:void 0},this.unprocessedSymbolSummariesBySymbol.set(t.symbol,i),o={symbol:this.processValue(t.symbol,0)},this.processedSummaries.push(o),this.processedSummaryBySymbol.set(t.symbol,o)),!i.metadata&&t.metadata){var a=t.metadata||{};if("class"===a.__symbolic){var s={};Object.keys(a).forEach(function(t){"decorators"!==t&&(s[t]=a[t])}),a=s}else Kl(a)&&(Kl(n=a)&&Ul(n.expression)instanceof mt||function(t){return Kl(t)&&t.expression&&"select"===t.expression.__symbolic&&Ul(t.expression.expression)instanceof mt}(a)||(a={__symbolic:"error",message:"Complex function calls are not supported."}));if(i.metadata=a,o.metadata=this.processValue(a,1),a instanceof mt&&this.summaryResolver.isLibraryFile(a.filePath)){var c=this.symbols[this.indexBySymbol.get(a)];e=c.name,fo.test(e)||this.reexportedBy.set(c,t.symbol)}}if(!i.type&&t.type&&(i.type=t.type,o.type=this.processValue(t.type,0),t.type.summaryKind===St.NgModule)){var l=t.type;l.exportedDirectives.concat(l.exportedPipes).forEach(function(t){var e=t.reference;if(r.summaryResolver.isLibraryFile(e.filePath)&&!r.unprocessedSymbolSummariesBySymbol.has(e)){var n=r.summaryResolver.resolveSummary(e);n&&r.addSummary(n)}})}},e.prototype.serialize=function(){var t=this,e=[];return{json:JSON.stringify({moduleName:this.moduleName,summaries:this.processedSummaries,symbols:this.symbols.map(function(n,r){n.assertNoMembers();var i=void 0;if(t.summaryResolver.isLibraryFile(n.filePath)){var o=t.reexportedBy.get(n);if(o)i=t.indexBySymbol.get(o);else{var a=t.unprocessedSymbolSummariesBySymbol.get(n);a&&a.metadata&&"interface"===a.metadata.__symbolic||(i=n.name+"_"+r,e.push({symbol:n,exportAs:i}))}}return{__symbol:r,name:n.name,filePath:t.summaryResolver.toSummaryFileName(n.filePath,t.srcFileName),importAs:i}})}),exportAs:e}},e.prototype.processValue=function(t,e){return j(t,this,e)},e.prototype.visitOther=function(t,e){if(t instanceof mt){var n=this.symbolResolver.getStaticSymbol(t.filePath,t.name);return{__symbol:this.visitStaticSymbol(n,e),members:t.members}}},e.prototype.visitStaticSymbol=function(t,e){var n=this.indexBySymbol.get(t),r=null;if(1&e&&this.summaryResolver.isLibraryFile(t.filePath)){if(this.unprocessedSymbolSummariesBySymbol.has(t))return n;(r=this.loadSummary(t))&&r.metadata instanceof mt&&(n=this.visitStaticSymbol(r.metadata,e),r=null)}else if(null!=n)return n;return null==n&&(n=this.symbols.length,this.symbols.push(t)),this.indexBySymbol.set(t,n),r&&this.addSummary(r),n},e.prototype.loadSummary=function(t){var e=this.summaryResolver.resolveSummary(t);if(!e){var n=this.symbolResolver.resolveSymbol(t);n&&(e={symbol:n.symbol,metadata:n.metadata})}return e},e}(F),Gl=function(){function t(t,e,n){this.outputCtx=t,this.symbolResolver=e,this.summaryResolver=n,this.data=[]}return t.prototype.addSourceType=function(t,e){this.data.push({summary:t,metadata:e,isLibrary:!1})},t.prototype.addLibType=function(t){this.data.push({summary:t,metadata:null,isLibrary:!0})},t.prototype.serialize=function(t){for(var e=this,n=new Map,r=0,i=t;r0?this._codegenSourceModule(n.fileName,r):null},t.prototype.loadFilesAsync=function(t){var e=this,n=t.map(function(t){return e._analyzeFile(t)}),r=[];return n.forEach(function(t){return t.ngModules.forEach(function(t){return r.push(e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1))})}),Promise.all(r).then(function(t){return iu(n)})},t.prototype.loadFilesSync=function(t){var e=this,n=t.map(function(t){return e._analyzeFile(t)});return n.forEach(function(t){return t.ngModules.forEach(function(t){return e._metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!0)})}),iu(n)},t.prototype._createNgFactoryStub=function(t,e,n){var r=this,i=0;e.ngModules.forEach(function(e,o){r._ngModuleCompiler.createStub(t,e.type.reference);var a=e.transitiveModule.directives.map(function(t){return t.reference}).concat(e.transitiveModule.pipes.map(function(t){return t.reference}),e.importedModules.map(function(t){return t.type.reference}),e.exportedModules.map(function(t){return t.type.reference}),r._externalIdentifierReferences([yo.TemplateRef,yo.ElementRef])),s=new Map;a.forEach(function(t,e){s.set(t,"_decl"+o+"_"+e)}),s.forEach(function(e,n){t.statements.push(Ba(e).set(ga.cast(Bo)).toDeclStmt(Ua(t.importExpr(n,null,!1))))}),n&Xl.TypeCheck&&e.declaredDirectives.forEach(function(n){var o=r._metadataResolver.getDirectiveMetadata(n.reference);o.isComponent&&(i++,r._createTypeCheckBlock(t,o.type.reference.name+"_Host_"+i,e,r._metadataResolver.getHostComponentMetadata(o),[o.type],s),r._createTypeCheckBlock(t,o.type.reference.name+"_"+i,e,o,e.transitiveModule.directives,s))})}),0===t.statements.length&&Zl(t)},t.prototype._externalIdentifierReferences=function(t){for(var e=[],n=0,r=t;n0||this._options.allowEmptyCodegenFiles){var u=this._codegenSourceModule(t,l);c.unshift(u)}return c},t.prototype._createSummary=function(t,e,n,r,i,o){var a=this,s=this._symbolResolver.getSymbolsOf(t).map(function(t){return a._symbolResolver.resolveSymbol(t)}),c=r.map(function(t){return{summary:a._metadataResolver.getNgModuleSummary(t.type.reference),metadata:a._metadataResolver.getNgModuleMetadata(t.type.reference)}}).concat(e.map(function(t){return{summary:a._metadataResolver.getDirectiveSummary(t),metadata:a._metadataResolver.getDirectiveMetadata(t)}}),n.map(function(t){return{summary:a._metadataResolver.getPipeSummary(t),metadata:a._metadataResolver.getPipeMetadata(t)}}),i.map(function(t){return{summary:a._metadataResolver.getInjectableSummary(t),metadata:a._metadataResolver.getInjectableSummary(t).type}})),l=this._options.enableSummariesForJit?this._createOutputContext(po(t,!0)):null,u=function(t,e,n,r,i,o){var a=new Wl(r,n,t);i.forEach(function(t){return a.addSummary({symbol:t.symbol,metadata:t.metadata})}),o.forEach(function(t){var e=t.summary;t.metadata,a.addSummary({symbol:e.type.reference,metadata:void 0,type:e})});var s=a.serialize(),c=s.json,l=s.exportAs;if(e){var u=new Gl(e,r,n);o.forEach(function(t){var e=t.summary,n=t.metadata;u.addSourceType(e,n)}),a.unprocessedSymbolSummariesBySymbol.forEach(function(t){n.isLibraryFile(t.symbol.filePath)&&t.type&&u.addLibType(t.type)}),u.serialize(l)}return{json:c,exportAs:l}}(t,l,this._summaryResolver,this._symbolResolver,s,c),p=u.json;u.exportAs.forEach(function(t){o.statements.push(Ba(t.exportAs).set(o.importExpr(t.symbol)).toDeclStmt(null,[_a.Exported]))});var h=[new Nl(t,uo(t),p)];return l&&h.push(this._codegenSourceModule(t,l)),h},t.prototype._compileModule=function(t,e){var n=[];if(this._options.locale){var r=this._options.locale.replace(/_/g,"-");n.push({token:go(this._reflector,yo.LOCALE_ID),useValue:r})}this._options.i18nFormat&&n.push({token:go(this._reflector,yo.TRANSLATIONS_FORMAT),useValue:this._options.i18nFormat}),this._ngModuleCompiler.compile(t,e,n)},t.prototype._compileComponentFactory=function(t,e,n,r){var i=this._metadataResolver.getHostComponentMetadata(e),o=this._compileComponent(t,i,n,[e.type],null,r).viewClassVar,a=Et(e.type.reference),s=[];for(var c in e.inputs){var l=e.inputs[c];s.push(new ma(c,Ya(l),!1))}var u=[];for(var c in e.outputs){l=e.outputs[c];u.push(new ma(c,Ya(l),!1))}t.statements.push(Ba(a).set(za(yo.createComponentFactory).callFn([Ya(e.selector),t.importExpr(e.type.reference),Ba(o),new ya(s),new ya(u),qa(e.template.ngContentSelectors.map(function(t){return Ya(t)}))])).toDeclStmt(Ha(yo.ComponentFactory,[Ua(t.importExpr(e.type.reference))],[Ro.Const]),[_a.Final,_a.Exported]))},t.prototype._compileComponent=function(t,e,n,r,i,o){var a=this._parseTemplate(e,n,r),s=a.template,c=a.pipes,l=i?Ba(i.stylesVar):qa([]),u=this._viewCompiler.compileComponent(t,e,s,l,c);return i&&Ql(this._symbolResolver,i,this._styleCompiler.needsStyleShim(e),o),u},t.prototype._parseTemplate=function(t,e,n){var r=this;if(this._templateAstCache.has(t.type.reference))return this._templateAstCache.get(t.type.reference);var i=t.template.preserveWhitespaces,o=n.map(function(t){return r._metadataResolver.getDirectiveSummary(t.reference)}),a=e.transitiveModule.pipes.map(function(t){return r._metadataResolver.getPipeSummary(t.reference)}),s=this._templateParser.parse(t,t.template.htmlAst,o,a,e.schemas,Ft(e.type,t,t.template),i);return this._templateAstCache.set(t.type.reference,s),s},t.prototype._createOutputContext=function(t){var e=this;return{statements:[],genFilePath:t,importExpr:function(n,r,i){if(void 0===r&&(r=null),void 0===i&&(i=!0),!(n instanceof mt))throw new Error("Internal error: unknown identifier "+JSON.stringify(n));var o=e._symbolResolver.getTypeArity(n)||0,a=e._symbolResolver.getImportAs(n,i)||n,s=a.filePath,c=a.name,l=a.members,u=e._fileNameToModuleName(s,t),p=u===e._fileNameToModuleName(t,t)?null:u,h=r||[],d=o-h.length,f=h.concat(new Array(d).fill(Bo));return l.reduce(function(t,e){return t.prop(e)},za(new ia(p,c,null),f))}}},t.prototype._fileNameToModuleName=function(t,e){return this._summaryResolver.getKnownModuleName(t)||this._symbolResolver.getKnownModuleName(t)||this._host.fileNameToModuleName(t,e)},t.prototype._codegenStyles=function(t,e,n,r,i){var o=this._createOutputContext($l(n.moduleUrl,r,i)),a=this._styleCompiler.compileStyles(o,e,n,r);return Ql(this._symbolResolver,a,r,i),this._codegenSourceModule(t,o)},t.prototype._codegenSourceModule=function(t,e){return new Nl(t,e.genFilePath,e.statements)},t.prototype.listLazyRoutes=function(t,e){var n=this;if(t)return function t(e,r,i){void 0===r&&(r=new Set);void 0===i&&(i=[]);if(r.has(e)||!e.name)return i;r.add(e);var o=Ll(n._metadataResolver.getNgModuleMetadata(e,!0),n._reflector);for(var a=0,s=o;a0&&!n.members.length?n:null!=(D=c(w=n))?u(w,D):w;if(n){if(n.__symbolic){var w=void 0;switch(n.__symbolic){case"binop":var x=p(n.left);if(du(x))return x;var C=p(n.right);if(du(C))return C;switch(n.operator){case"&&":return x&&C;case"||":return x||C;case"|":return x|C;case"^":return x^C;case"&":return x&C;case"==":return x==C;case"!=":return x!=C;case"===":return x===C;case"!==":return x!==C;case"<":return x":return x>C;case"<=":return x<=C;case">=":return x>=C;case"<<":return x<>":return x>>C;case"+":return x+C;case"-":return x-C;case"*":return x*C;case"/":return x/C;case"%":return x%C}return null;case"if":return p(p(n.condition)?n.thenExpression:n.elseExpression);case"pre":var E=p(n.operand);if(du(E))return E;switch(n.operator){case"+":return E;case"-":return-E;case"!":return!E;case"~":return~E}return null;case"index":var S=l(n.expression),O=l(n.index);return S&&Su(O)?S[O]:null;case"select":var k=n.member,T=e,P=p(n.expression);if(P instanceof mt){var D,A=P.members.concat(k);return null!=(D=c(T=r.getStaticSymbol(P.filePath,P.name,A)))?u(T,D):T}return P&&Su(k)?u(T,P[k]):null;case"reference":var I=n.name,R=i.resolve(I);if(R!=Ou.missing)return R;break;case"resolved":try{return p(n.symbol)}catch(t){throw vu(t)&&null!=n.fileName&&null!=n.line&&null!=n.character&&(t.position={fileName:n.fileName,line:n.line,column:n.character}),t}case"class":case"function":return e;case"new":case"call":if((w=t(e,n.expression,a+1,0))instanceof mt){if(w===r.injectionToken||w===r.opaqueToken)return e;var M=n.arguments||[],j=r.conversionMap.get(w);if(j){var N=M.map(function(t){return u(e,t)}).map(function(t){return du(t)?void 0:t});return j(e,N)}return function(t,n,s,c){if(n&&"function"==n.__symbolic){o.get(t)&&r.error({message:"Recursion is not supported",summary:"called '"+t.name+"' recursively",value:n},t);try{var l=n.value;if(l&&(0!=a||"error"!=l.__symbolic)){var h=n.parameters,d=n.defaults;s=s.map(function(t){return u(e,t)}).map(function(t){return du(t)?void 0:t}),d&&d.length>s.length&&s.push.apply(s,d.slice(s.length).map(function(t){return p(t)})),o.set(t,!0);for(var f=Ou.build(),m=0;m0?new ku(e):t.empty}}},t.missing={},t.empty={resolve:function(e){return t.missing}},t}(),ku=function(t){function e(e){var n=t.call(this)||this;return n.bindings=e,n}return Object(r.b)(e,t),e.prototype.resolve=function(t){return this.bindings.has(t)?this.bindings.get(t):Ou.missing},e}(Ou);function Tu(t,e){return{message:""+function(t,e){switch(t){case gu:if(e&&e.className)return"References to a non-exported class are not supported in decorators but "+e.className+" was referenced.";break;case bu:return"Only initialized variables and constants can be referenced in decorators because the value of this variable is needed by the template compiler";case _u:return"Referencing an exported destructured variable or constant is not supported in decorators and this value is needed by the template compiler";case wu:if(e&&e.typeName)return"Could not resolve type "+e.typeName;break;case xu:return e&&e.name?"Function calls are not supported in decorators but '"+e.name+"' was called":"Function calls are not supported in decorators";case Cu:if(e&&e.name)return"Reference to a local (non-exported) symbols are not supported in decorators but '"+e.name+"' was referenced";break;case Eu:return"Function expressions are not supported in decorators"}return t}(t.message,t.context)+(t.symbol?" in '"+t.symbol.name+"'":""),position:t.position,next:t.next?Tu(t.next,e):e?{message:e}:void 0}}function Pu(t,e){if(vu(t)){var n=t.position;return function(t){var e=H(au(t)+".");return e[ou]=!0,e.chain=t,e.position=t.position,e}(Tu({message:"Error during template compile of '"+e.name+"'",position:n,next:{message:t.message,next:t.chain,context:t.context,symbol:t.symbol}},t.advise||function(t,e){switch(t){case gu:if(e&&e.className)return"Consider exporting '"+e.className+"'";break;case _u:return"Consider simplifying to avoid destructuring";case Cu:if(e&&e.name)return"Consider exporting '"+e.name+"'";break;case Eu:return"Consider changing the function expression into an exported function"}}(t.message,t.context)))}return t}var Du=function(){function t(t,e){this.host=t,this.staticSymbolCache=e,this.summaryCache=new Map,this.loadedFilePaths=new Map,this.importAs=new Map,this.knownFileNameToModuleNames=new Map}return t.prototype.isLibraryFile=function(t){return!this.host.isSourceFile(so(t))},t.prototype.toSummaryFileName=function(t,e){return this.host.toSummaryFileName(t,e)},t.prototype.fromSummaryFileName=function(t,e){return this.host.fromSummaryFileName(t,e)},t.prototype.resolveSummary=function(t){var e=t.members.length?this.staticSymbolCache.get(t.filePath,t.name):t,n=this.summaryCache.get(e);return n||(this._loadSummaryFile(t.filePath),n=this.summaryCache.get(t)),e===t&&n||null},t.prototype.getSymbolsOf=function(t){return this._loadSummaryFile(t)?Array.from(this.summaryCache.keys()).filter(function(e){return e.filePath===t}):null},t.prototype.getImportAs=function(t){return t.assertNoMembers(),this.importAs.get(t)},t.prototype.getKnownModuleName=function(t){return this.knownFileNameToModuleNames.get(t)||null},t.prototype.addSummary=function(t){this.summaryCache.set(t.symbol,t)},t.prototype._loadSummaryFile=function(t){var e=this,n=this.loadedFilePaths.get(t);if(null!=n)return n;var r=null;if(this.isLibraryFile(t)){var i=uo(t);try{r=this.host.loadSummary(i)}catch(t){throw console.error("Error loading summary file "+i),t}}if(n=null!=r,this.loadedFilePaths.set(t,n),r){var o=function(t,e,n,r){return new Yl(t,e).deserialize(n,r)}(this.staticSymbolCache,this,t,r),a=o.moduleName,s=o.summaries,c=o.importAs;s.forEach(function(t){return e.summaryCache.set(t.symbol,t)}),a&&this.knownFileNameToModuleNames.set(t,a),c.forEach(function(t){e.importAs.set(t.symbol,t.importAs)})}return n},t}();function Au(t){return{resolve:function(e,n){var r=t.resourceNameToFileName(n,e);if(!r)throw H("Couldn't resolve resource "+n+" from "+e);return r}}}var Iu=function(){return function(){}}(),Ru=function(){function t(){this._summaries=new Map}return t.prototype.isLibraryFile=function(){return!1},t.prototype.toSummaryFileName=function(t){return t},t.prototype.fromSummaryFileName=function(t){return t},t.prototype.resolveSummary=function(t){return this._summaries.get(t)||null},t.prototype.getSymbolsOf=function(){return[]},t.prototype.getImportAs=function(t){return t},t.prototype.getKnownModuleName=function(t){return null},t.prototype.addSummary=function(t){this._summaries.set(t.symbol,t)},t}();function Mu(t,e,n,r,i){for(var o=r.createChildWihtLocalVars(),a=0;ai();case Uo.BiggerEquals:return r()>=i();default:throw new Error("Unknown operator "+t.operator)}},t.prototype.visitReadPropExpr=function(t,e){return t.receiver.visitExpression(this,e)[t.name]},t.prototype.visitReadKeyExpr=function(t,e){return t.receiver.visitExpression(this,e)[t.index.visitExpression(this,e)]},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;n0&&(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===Yo.This)n.print(e,"self");else{if(e.builtin===Yo.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 Ko&&r.builtin===Yo.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 ("+ws.name+") {"),e.incIndent();var n=[xs.set(ws.prop("stack")).toDeclStmt(null,[_a.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 $o.ConcatArray:e="concat";break;case $o.SubscribeObservable:e="subscribe";break;case $o.Bind:e="bind";break;default:throw new Error("Unknown builtin method: "+t)}return e},e}(Ss)),Uu=function(){function t(t,e,n,r,i,o,a,s,c,l){this._metadataResolver=t,this._templateParser=e,this._styleCompiler=n,this._viewCompiler=r,this._ngModuleCompiler=i,this._summaryResolver=o,this._reflector=a,this._compilerConfig=s,this._console=c,this.getExtraNgModuleProviders=l,this._compiledTemplateCache=new Map,this._compiledHostTemplateCache=new Map,this._compiledDirectiveWrapperCache=new Map,this._compiledNgModuleCache=new Map,this._sharedStylesheetCount=0,this._addedAotSummaries=new Set}return t.prototype.compileModuleSync=function(t){return V(this._compileModuleAndComponents(t,!0))},t.prototype.compileModuleAsync=function(t){return Promise.resolve(this._compileModuleAndComponents(t,!1))},t.prototype.compileModuleAndAllComponentsSync=function(t){return V(this._compileModuleAndAllComponents(t,!0))},t.prototype.compileModuleAndAllComponentsAsync=function(t){return Promise.resolve(this._compileModuleAndAllComponents(t,!1))},t.prototype.getComponentFactory=function(t){return this._metadataResolver.getDirectiveSummary(t).componentFactory},t.prototype.loadAotSummaries=function(t){this.clearCache(),this._addAotSummaries(t)},t.prototype._addAotSummaries=function(t){if(!this._addedAotSummaries.has(t)){this._addedAotSummaries.add(t);for(var e=t(),n=0;n0&&(n=function(t,e){var n=Qu(encodeURI(e)),r=Qu(t);if(null!=n[Zu.Scheme])return $u(n);n[Zu.Scheme]=r[Zu.Scheme];for(var i=Zu.Scheme;i<=Zu.Port;i++)null==n[i]&&(n[i]=r[i]);if("/"==n[Zu.Path][0])return $u(n);var o=r[Zu.Path];null==o&&(o="/");var a=o.lastIndexOf("/");return o=o.substring(0,a+1)+n[Zu.Path],n[Zu.Path]=o,$u(n)}(t,n));var r=Qu(n),i=this._packagePrefix;if(null!=i&&null!=r&&"package"==r[Zu.Scheme]){var o=r[Zu.Path];return(i=i.replace(/\/+$/,""))+"/"+(o=o.replace(/^\/+/,""))}return n},t}();var Xu=new RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([\\w\\d\\-\\u0100-\\uffff.%]*)(?::([0-9]+))?)?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$"),Zu={Scheme:1,UserInfo:2,Domain:3,Port:4,Path:5,QueryData:6,Fragment:7};function Qu(t){return t.match(Xu)}function $u(t){var e,n,r,i,o,a,s,c,l=t[Zu.Path];return l=null==l?"":function(t){if("/"==t)return"/";for(var e="/"==t[0]?"/":"",n="/"===t[t.length-1]?"/":"",r=t.split("/"),i=[],o=0,a=0;a0?i.pop():o++;break;default:i.push(s)}}if(""==e){for(;o-- >0;)i.unshift("..");0===i.length&&i.push(".")}return e+i.join("/")+n}(l),t[Zu.Path]=l,e=t[Zu.Scheme],n=t[Zu.UserInfo],r=t[Zu.Domain],i=t[Zu.Port],o=l,a=t[Zu.QueryData],s=t[Zu.Fragment],c=[],null!=e&&c.push(e+":"),null!=r&&(c.push("//"),null!=n&&c.push(n+"@"),c.push(r),null!=i&&c.push(":"+i)),null!=o&&c.push(o),null!=a&&c.push("?"+a),null!=s&&c.push("#"+s),c.join("")}Zu[Zu.Scheme]="Scheme",Zu[Zu.UserInfo]="UserInfo",Zu[Zu.Domain]="Domain",Zu[Zu.Port]="Port",Zu[Zu.Path]="Path",Zu[Zu.QueryData]="QueryData",Zu[Zu.Fragment]="Fragment";var Ju=function(){function t(){}return t.prototype.get=function(t){return""},t}(),tp=(function(){function t(t,e,n,r){this.host=t,this.staticSymbolResolver=e,this.messageBundle=n,this.metadataResolver=r}t.prototype.extract=function(t){var e=this,n=tu(t,this.host,this.staticSymbolResolver,this.metadataResolver),r=n.files,i=n.ngModules;return Promise.all(i.map(function(t){return e.metadataResolver.loadNgModuleDirectiveAndPipeMetadata(t.type.reference,!1)})).then(function(){var t=[];if(r.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 i=r.template.template,o=Xt.fromArray(r.template.interpolation);t.push.apply(t,e.messageBundle.updateFromTemplate(i,n.fileName,o))})}),t.length)throw new Error(t.map(function(t){return t.toString()}).join("\n"));return e.messageBundle})},t.create=function(e,n){var r=new $i,i=Au(e),o=new yt,a=new Du(e,o),s=new zl(e,o,a),c=new fu(a,s),l=new dt({defaultEncapsulation:h.Emulated,useJit:!1}),u=new xe({get:function(t){return e.loadResource(t)}},i,r,l),p=new Vs,d=new To(l,r,new ds(c),new Se(c),new Ps(c),a,p,u,console,o,c),f=new Ml(r,[],{},n);return{extractor:new t(e,s,f,d),staticReflector:c}}}(),n("WT6e")),ep=n("Xjw4"),np=n("OE0E");n.d(e,"a",function(){return vp});var rp,ip=((rp=new Map).set(yo.ANALYZE_FOR_ENTRY_COMPONENTS,tp.ANALYZE_FOR_ENTRY_COMPONENTS),rp.set(yo.ElementRef,tp.ElementRef),rp.set(yo.NgModuleRef,tp.NgModuleRef),rp.set(yo.ViewContainerRef,tp.ViewContainerRef),rp.set(yo.ChangeDetectorRef,tp.ChangeDetectorRef),rp.set(yo.QueryList,tp.QueryList),rp.set(yo.TemplateRef,tp.TemplateRef),rp.set(yo.CodegenComponentFactoryResolver,tp["\u0275CodegenComponentFactoryResolver"]),rp.set(yo.ComponentFactoryResolver,tp.ComponentFactoryResolver),rp.set(yo.ComponentFactory,tp.ComponentFactory),rp.set(yo.ComponentRef,tp.ComponentRef),rp.set(yo.NgModuleFactory,tp.NgModuleFactory),rp.set(yo.createModuleFactory,tp["\u0275cmf"]),rp.set(yo.moduleDef,tp["\u0275mod"]),rp.set(yo.moduleProviderDef,tp["\u0275mpd"]),rp.set(yo.RegisterModuleFactoryFn,tp["\u0275registerModuleFactory"]),rp.set(yo.Injector,tp.Injector),rp.set(yo.ViewEncapsulation,tp.ViewEncapsulation),rp.set(yo.ChangeDetectionStrategy,tp.ChangeDetectionStrategy),rp.set(yo.SecurityContext,tp.SecurityContext),rp.set(yo.LOCALE_ID,tp.LOCALE_ID),rp.set(yo.TRANSLATIONS_FORMAT,tp.TRANSLATIONS_FORMAT),rp.set(yo.inlineInterpolate,tp["\u0275inlineInterpolate"]),rp.set(yo.interpolate,tp["\u0275interpolate"]),rp.set(yo.EMPTY_ARRAY,tp["\u0275EMPTY_ARRAY"]),rp.set(yo.EMPTY_MAP,tp["\u0275EMPTY_MAP"]),rp.set(yo.Renderer,tp.Renderer),rp.set(yo.viewDef,tp["\u0275vid"]),rp.set(yo.elementDef,tp["\u0275eld"]),rp.set(yo.anchorDef,tp["\u0275and"]),rp.set(yo.textDef,tp["\u0275ted"]),rp.set(yo.directiveDef,tp["\u0275did"]),rp.set(yo.providerDef,tp["\u0275prd"]),rp.set(yo.queryDef,tp["\u0275qud"]),rp.set(yo.pureArrayDef,tp["\u0275pad"]),rp.set(yo.pureObjectDef,tp["\u0275pod"]),rp.set(yo.purePipeDef,tp["\u0275ppd"]),rp.set(yo.pipeDef,tp["\u0275pid"]),rp.set(yo.nodeValue,tp["\u0275nov"]),rp.set(yo.ngContentDef,tp["\u0275ncd"]),rp.set(yo.unwrapValue,tp["\u0275unv"]),rp.set(yo.createRendererType2,tp["\u0275crt"]),rp.set(yo.createComponentFactory,tp["\u0275ccf"]),rp),op=function(){function t(){this.builtinExternalReferences=new Map,this.reflectionCapabilities=new tp["\u0275ReflectionCapabilities"]}return t.prototype.componentModuleUrl=function(t,e){var n,r=e.moduleId;if("string"==typeof r)return(n=Qu(r))&&n[Zu.Scheme]||""?r:"package:"+r;if(null!==r&&void 0!==r)throw H('moduleId should be a string in "'+Object(tp["\u0275stringify"])(t)+"\". 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"./"+Object(tp["\u0275stringify"])(t)},t.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},t.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},t.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},t.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},t.prototype.guards=function(t){return this.reflectionCapabilities.guards(t)},t.prototype.resolveExternalReference=function(t){return ip.get(t)||t.runtime},t}();var ap=new tp.InjectionToken("ErrorCollector"),sp={provide:tp.PACKAGE_ROOT_URL,useValue:"/"},cp={get:function(t){throw new Error("No ResourceLoader implementation has been provided. Can't read the url \""+t+'"')}},lp=new tp.InjectionToken("HtmlParser"),up=function(){function t(t,e,n,r,i,o,a,s,c,l){this._metadataResolver=e,this._delegate=new Uu(e,n,r,i,o,a,s,c,l,this.getExtraNgModuleProviders.bind(this)),this.injector=t}return t.prototype.getExtraNgModuleProviders=function(){return[this._metadataResolver.getProviderMetadata(new jt(tp.Compiler,{useValue:this}))]},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){var e=this._delegate.compileModuleAndAllComponentsSync(t);return{ngModuleFactory:e.ngModuleFactory,componentFactories:e.componentFactories}},t.prototype.compileModuleAndAllComponentsAsync=function(t){return this._delegate.compileModuleAndAllComponentsAsync(t).then(function(t){return{ngModuleFactory:t.ngModuleFactory,componentFactories:t.componentFactories}})},t.prototype.loadAotSummaries=function(t){this._delegate.loadAotSummaries(t)},t.prototype.hasAotSummary=function(t){return this._delegate.hasAotSummary(t)},t.prototype.getComponentFactory=function(t){return this._delegate.getComponentFactory(t)},t.prototype.clearCache=function(){this._delegate.clearCache()},t.prototype.clearCacheFor=function(t){this._delegate.clearCacheFor(t)},t}(),pp=[{provide:Yu,useValue:new op},{provide:Ju,useValue:cp},{provide:Ru,deps:[]},{provide:Iu,useExisting:Ru},{provide:tp["\u0275Console"],deps:[]},{provide:fn,deps:[]},{provide:er,deps:[fn]},{provide:lp,useClass:$i,deps:[]},{provide:eo,useFactory:function(t,e,n,r,i){var o=(e=e||"")?r.missingTranslation:tp.MissingTranslationStrategy.Ignore;return new eo(t,e,n,o,i)},deps:[lp,[new tp.Optional,new tp.Inject(tp.TRANSLATIONS)],[new tp.Optional,new tp.Inject(tp.TRANSLATIONS_FORMAT)],[dt],[tp["\u0275Console"]]]},{provide:$i,useExisting:eo},{provide:Uc,deps:[dt,Yu,er,Is,eo,tp["\u0275Console"]]},{provide:xe,deps:[Ju,Ku,$i,dt]},{provide:To,deps:[dt,$i,ds,Se,Ps,Iu,Is,xe,tp["\u0275Console"],[tp.Optional,yt],Yu,[tp.Optional,ap]]},sp,{provide:mc,deps:[Ku]},{provide:wl,deps:[Yu]},{provide:hs,deps:[Yu]},{provide:dt,useValue:new dt},{provide:tp.Compiler,useClass:up,deps:[tp.Injector,To,Uc,mc,wl,hs,Iu,Yu,dt,tp["\u0275Console"]]},{provide:Vs,deps:[]},{provide:Is,useExisting:Vs},{provide:Ku,deps:[tp.PACKAGE_ROOT_URL]},{provide:Se,deps:[Yu]},{provide:Ps,deps:[Yu]},{provide:ds,deps:[Yu]}],hp=function(){function t(t){var e={useJit:!0,defaultEncapsulation:tp.ViewEncapsulation.Emulated,missingTranslation:tp.MissingTranslationStrategy.Warning,enableLegacyTemplate:!1};this._defaultOptions=[e].concat(t)}return t.prototype.createCompiler=function(t){void 0===t&&(t=[]);var e,n,r,i={useJit:dp((e=this._defaultOptions.concat(t)).map(function(t){return t.useJit})),defaultEncapsulation:dp(e.map(function(t){return t.defaultEncapsulation})),providers:(n=e.map(function(t){return t.providers}),r=[],n.forEach(function(t){return t&&r.push.apply(r,t)}),r),missingTranslation:dp(e.map(function(t){return t.missingTranslation})),enableLegacyTemplate:dp(e.map(function(t){return t.enableLegacyTemplate})),preserveWhitespaces:dp(e.map(function(t){return t.preserveWhitespaces}))};return tp.Injector.create([pp,{provide:dt,useFactory:function(){return new dt({useJit:i.useJit,jitDevMode:Object(tp.isDevMode)(),defaultEncapsulation:i.defaultEncapsulation,missingTranslation:i.missingTranslation,enableLegacyTemplate:i.enableLegacyTemplate,preserveWhitespaces:i.preserveWhitespaces})},deps:[]},i.providers]).get(tp.Compiler)},t}();function dp(t){for(var e=t.length-1;e>=0;e--)if(void 0!==t[e])return t[e]}var fp=Object(tp.createPlatformFactory)(tp.platformCore,"coreDynamic",[{provide:tp.COMPILER_OPTIONS,useValue:{},multi:!0},{provide:tp.CompilerFactory,useClass:hp,deps:[tp.COMPILER_OPTIONS]}]),mp=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(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=i.response||i.responseText,o=1223===i.status?204:i.status;0===o&&(o=r?200:0),200<=o&&o<=300?e(r):n("Failed to load "+t)},i.onerror=function(){n("Failed to load "+t)},i.send(),r},e.decorators=[{type:tp.Injectable}],e.ctorParameters=function(){return[]},e}(Ju),yp=[np["\u0275INTERNAL_BROWSER_PLATFORM_PROVIDERS"],{provide:tp.COMPILER_OPTIONS,useValue:{providers:[{provide:Ju,useClass:mp,deps:[]}]},multi:!0},{provide:tp.PLATFORM_ID,useValue:ep["\u0275PLATFORM_BROWSER_ID"]}],vp=(function(t){function e(){var e=t.call(this)||this;if(e._cache=tp["\u0275global"].$templateCache,null==e._cache)throw new Error("CachedResourceLoader: Template cache was not found in $templateCache.");return e}Object(r.b)(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)}}(Ju),new tp.Version("5.2.7"),Object(tp.createPlatformFactory)(fp,"browserDynamic",yp))},"4zOZ":function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n("g5jc"),i=n("x6VL"),o=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},a=function(t){function e(e){t.call(this),this._value=e}return o(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.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(r.a)},"5X6E":function(t,e,n){"use strict";e.a=function(t,e){return function(n){return n.lift(new a(t,e))}};var r=n("tZ2B"),i=n("PIsA"),o=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)};var a=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.project,this.resultSelector))},t}(),s=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.resultSelector=r,this.index=0}return o(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe(),this.add(this.innerSubscription=Object(i.a)(this,t,e,n))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.resultSelector?this._tryNotifyNext(t,e,n,r):this.destination.next(e)},e.prototype._tryNotifyNext=function(t,e,n,r){var i;try{i=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(i)},e}(r.a)},"6Qvr":function(t,e,n){"use strict";var r=n("3lw+"),i=n("NujX"),o=n("/acl"),a=n("YaPU"),s=n("1Q68"),c=n("fmCu"),l=this&&this.__extends||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);function r(){this.constructor=t}t.prototype=null===e?Object.create(e):(r.prototype=e.prototype,new r)},u=function(t){function e(e,n,i){void 0===e&&(e=0),t.call(this),this.period=-1,this.dueTime=0,Object(o.a)(n)?this.period=Number(n)<1?1:Number(n):Object(s.a)(n)&&(i=n),Object(s.a)(i)||(i=r.a),this.scheduler=i,this.dueTime=Object(c.a)(e)?+e-this.scheduler.now():e}return l(e,t),e.create=function(t,n,r){return void 0===t&&(t=0),new e(t,n,r)},e.dispatch=function(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}},e.prototype._subscribe=function(t){var n=this.period,r=this.dueTime;return this.scheduler.schedule(e.dispatch,r,{index:0,period:n,subscriber:t})},e}(a.a).create;e.a=function(t,e){void 0===e&&(e=r.a);return Object(i.a)(function(){return u(t,e)})}},"6VmJ":function(t,e,n){"use strict";e.a=function(t,e){return Object(r.a)(t,e,1)};var r=n("Qnch")},"7DMc":function(t,e,n){"use strict";n.d(e,"e",function(){return b}),n.d(e,"f",function(){return D}),n.d(e,"g",function(){return vt}),n.d(e,"b",function(){return Rt}),n.d(e,"a",function(){return qt}),n.d(e,"d",function(){return h}),n.d(e,"h",function(){return m}),n.d(e,"c",function(){return ie});var r=n("TToO"),i=n("WT6e"),o=n("SALZ"),a=n("i9s7"),s=n("gL+p"),c=n("OE0E"),l=function(){function t(){}return 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,"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,"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,"status",{get:function(){return this.control?this.control.status: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,"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!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t}(),u=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(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);function p(t){return null==t||0===t.length}var h=new i.InjectionToken("NgValidators"),d=new i.InjectionToken("NgAsyncValidators"),f=/^(?=.{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])?)*$/,m=function(){function t(){}return t.min=function(t){return function(e){if(p(e.value)||p(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&nt?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return p(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return f.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(p(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(p(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(y);return 0==e.length?null:function(t){return g(function(t,e){return e.map(function(e){return e(t)})}(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(y);return 0==e.length?null:function(t){var n=function(t,e){return e.map(function(e){return e(t)})}(t,e).map(v);return s.a.call(Object(o.a)(n),g)}},t}();function y(t){return null!=t}function v(t){var e=Object(i["\u0275isPromise"])(t)?Object(a.a)(t):t;if(!Object(i["\u0275isObservable"])(e))throw new Error("Expected validator to return Promise or Observable.");return e}function g(t){var e=t.reduce(function(t,e){return null!=e?Object(r.a)({},t,e):t},{});return 0===Object.keys(e).length?null:e}var b=new i.InjectionToken("NgValueAccessor"),_={provide:b,useExisting:Object(i.forwardRef)(function(){return w}),multi:!0},w=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.setProperty(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.setProperty(this._elementRef.nativeElement,"disabled",t)},t.decorators=[{type:i.Directive,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[_]}]}],t.ctorParameters=function(){return[{type:i.Renderer2},{type:i.ElementRef}]},t}(),x={provide:b,useExisting:Object(i.forwardRef)(function(){return E}),multi:!0};var C=new i.InjectionToken("CompositionEventMode"),E=function(){function t(t,e,n){var r;this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=Object(c["\u0275getDOM"])()?Object(c["\u0275getDOM"])().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setProperty(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.setProperty(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.decorators=[{type:i.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)":"$any(this)._handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"$any(this)._compositionStart()","(compositionend)":"$any(this)._compositionEnd($event.target.value)"},providers:[x]}]}],t.ctorParameters=function(){return[{type:i.Renderer2},{type:i.ElementRef},{type:void 0,decorators:[{type:i.Optional},{type:i.Inject,args:[C]}]}]},t}();function S(t){return t.validate?function(e){return t.validate(e)}:t}function O(t){return t.validate?function(e){return t.validate(e)}:t}var k={provide:b,useExisting:Object(i.forwardRef)(function(){return T}),multi:!0},T=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.setProperty(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.setProperty(this._elementRef.nativeElement,"disabled",t)},t.decorators=[{type:i.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:[k]}]}],t.ctorParameters=function(){return[{type:i.Renderer2},{type:i.ElementRef}]},t}();function P(){throw new Error("unimplemented")}var D=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return P()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return P()},enumerable:!0,configurable:!0}),e}(l),A={provide:b,useExisting:Object(i.forwardRef)(function(){return R}),multi:!0},I=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.decorators=[{type:i.Injectable}],t.ctorParameters=function(){return[]},t}(),R=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(D),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.setProperty(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.setProperty(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: \n ')},t.decorators=[{type:i.Directive,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[A]}]}],t.ctorParameters=function(){return[{type:i.Renderer2},{type:i.ElementRef},{type:I},{type:i.Injector}]},t.propDecorators={name:[{type:i.Input}],formControlName:[{type:i.Input}],value:[{type:i.Input}]},t}(),M={provide:b,useExisting:Object(i.forwardRef)(function(){return j}),multi:!0},j=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.setProperty(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.setProperty(this._elementRef.nativeElement,"disabled",t)},t.decorators=[{type:i.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:[M]}]}],t.ctorParameters=function(){return[{type:i.Renderer2},{type:i.ElementRef}]},t}(),N={provide:b,useExisting:Object(i.forwardRef)(function(){return F}),multi:!0};function L(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}var F=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=i["\u0275looseIdentical"]}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.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=L(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(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-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function Z(t){return null!=t?m.compose(t.map(S)):null}function Q(t){return null!=t?m.composeAsync(t.map(O)):null}function $(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object(i["\u0275looseIdentical"])(e,n.currentValue)}var J=[w,j,T,F,H,R];function tt(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function et(t,e){if(!e)return null;var n=void 0,r=void 0,i=void 0;return e.forEach(function(e){var o;e.constructor===E?n=e:(o=e,J.some(function(t){return o.constructor===t})?(r&&X(t,"More than one built-in value accessor matches form control with"),r=e):(i&&X(t,"More than one custom value accessor matches form control with"),i=e))}),i||(r||(n||(X(t,"No valid value accessor for form control with"),null)))}function nt(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var rt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(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 q(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 Z(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Q(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(u),it=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}(),ot={"[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"},at=function(t){function e(e){return t.call(this,e)||this}return Object(r.b)(e,t),e.decorators=[{type:i.Directive,args:[{selector:"[formControlName],[ngModel],[formControl]",host:ot}]}],e.ctorParameters=function(){return[{type:D,decorators:[{type:i.Self}]}]},e}(it),st=function(t){function e(e){return t.call(this,e)||this}return Object(r.b)(e,t),e.decorators=[{type:i.Directive,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:ot}]}],e.ctorParameters=function(){return[{type:u,decorators:[{type:i.Self}]}]},e}(it);function ct(t){var e=ut(t)?t.validators:t;return Array.isArray(e)?Z(e):e||null}function lt(t,e){var n=ut(e)?e.asyncValidators:t;return Array.isArray(n)?Q(n):n||null}function ut(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var pt=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,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=ct(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=lt(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this.status="PENDING",this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(e){e.disable(Object(r.a)({},t,{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){void 0===t&&(t={}),this.status="VALID",this._forEachChild(function(e){e.enable(Object(r.a)({},t,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this.status="PENDING";var n=v(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){void 0===e&&(e={}),this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return function(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 dt?t.controls[e]||null:t instanceof ft&&t.at(e)||null},t))}(this,t,".")},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null},t.prototype.hasError=function(t,e){return!!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 i.EventEmitter,this.statusChanges=new i.EventEmitter},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},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){void 0===t&&(t={}),this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},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.prototype._setUpdateStrategy=function(t){ut(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t}(),ht=function(t){function e(e,n,r){void 0===e&&(e=null);var i=t.call(this,ct(n),lt(r,n))||this;return i._onChange=[],i._applyFormState(e),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return Object(r.b)(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(function(t){return t(n.value,!1!==e.emitViewToModelChange)}),this.updateValueAndValidity(e)},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),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1},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._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange))&&(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0)},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t},e}(pt),dt=function(t){function e(e,n,r){var i=t.call(this,ct(n),lt(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(r.b)(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;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof ht?e.value:e.getRawValue(),t})},e.prototype._syncPendingControls=function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),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,i){n=n||e.contains(i)&&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);t0||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}(pt),ft=function(t){function e(e,n,r){var i=t.call(this,ct(n),lt(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(r.b)(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()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()},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;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof ht?t.value:t.getRawValue()})},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},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;t0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(pt),mt={provide:u,useExisting:Object(i.forwardRef)(function(){return vt})},yt=Promise.resolve(null),vt=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new i.EventEmitter,r.form=new dt({},Z(e),Q(n)),r}return Object(r.b)(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;yt.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}),e._directives.push(t)})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;yt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),nt(e._directives,t)})},e.prototype.addFormGroup=function(t){var e=this;yt.then(function(){var n=e._findContainer(t.path),r=new dt({});Y(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;yt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;yt.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,tt(this.form,this._directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e.decorators=[{type:i.Directive,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[mt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],e.ctorParameters=function(){return[{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[h]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[d]}]}]},e.propDecorators={options:[{type:i.Input,args:["ngFormOptions"]}]},e}(u),gt='\n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',bt='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',_t='\n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',wt='\n
\n
\n \n
\n
',xt='\n
\n \n \n
\n ',Ct=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 '+gt+"\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 "+xt)},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 "+bt+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+wt)},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: \n Example 2: ')},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 "+bt+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+wt)},t}(),Et={provide:u,useExisting:Object(i.forwardRef)(function(){return St})},St=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return Object(r.b)(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof vt||Ct.modelGroupParentException()},e.decorators=[{type:i.Directive,args:[{selector:"[ngModelGroup]",providers:[Et],exportAs:"ngModelGroup"}]}],e.ctorParameters=function(){return[{type:u,decorators:[{type:i.Host},{type:i.SkipSelf}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[h]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[d]}]}]},e.propDecorators={name:[{type:i.Input,args:["ngModelGroup"]}]},e}(rt),Ot={provide:D,useExisting:Object(i.forwardRef)(function(){return Tt})},kt=Promise.resolve(null),Tt=function(t){function e(e,n,r,o){var a=t.call(this)||this;return a.control=new ht,a._registered=!1,a.update=new i.EventEmitter,a._parent=e,a._rawValidators=n||[],a._rawAsyncValidators=r||[],a.valueAccessor=et(a,o),a}return Object(r.b)(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),$(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?q(this.name,this._parent):[this.name]},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 Z(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Q(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){W(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof St)&&this._parent instanceof rt?Ct.formGroupNameException():this._parent instanceof St||this._parent instanceof vt||Ct.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Ct.missingNameException()},e.prototype._updateValue=function(t){var e=this;kt.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;kt.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},e.decorators=[{type:i.Directive,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Ot],exportAs:"ngModel"}]}],e.ctorParameters=function(){return[{type:u,decorators:[{type:i.Optional},{type:i.Host}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[h]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[d]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[b]}]}]},e.propDecorators={name:[{type:i.Input}],isDisabled:[{type:i.Input,args:["disabled"]}],model:[{type:i.Input,args:["ngModel"]}],options:[{type:i.Input,args:["ngModelOptions"]}],update:[{type:i.Output,args:["ngModelChange"]}]},e}(D),Pt=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 "+gt)},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 '+bt+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+wt)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+gt)},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 "+bt)},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 "+_t)},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}(),Dt={provide:D,useExisting:Object(i.forwardRef)(function(){return At})},At=function(t){function e(e,n,r){var o=t.call(this)||this;return o.update=new i.EventEmitter,o._rawValidators=e||[],o._rawAsyncValidators=n||[],o.valueAccessor=et(o,r),o}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"isDisabled",{set:function(t){Pt.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.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})),$(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Z(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Q(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},e.decorators=[{type:i.Directive,args:[{selector:"[formControl]",providers:[Dt],exportAs:"ngForm"}]}],e.ctorParameters=function(){return[{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[h]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[d]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[b]}]}]},e.propDecorators={form:[{type:i.Input,args:["formControl"]}],model:[{type:i.Input,args:["ngModel"]}],update:[{type:i.Output,args:["ngModelChange"]}],isDisabled:[{type:i.Input,args:["disabled"]}]},e}(D),It={provide:u,useExisting:Object(i.forwardRef)(function(){return Rt})},Rt=function(t){function e(e,n){var r=t.call(this)||this;return r._validators=e,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new i.EventEmitter,r}return Object(r.b)(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return W(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){nt(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);Y(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);Y(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this.submitted=!0,tt(this.form,this.directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e.control!==n&&(!function(t,e){e.valueAccessor.registerOnChange(function(){return K(e)}),e.valueAccessor.registerOnTouched(function(){return K(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(e.control,e),n&&W(n,e),e.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=Z(this._validators);this.form.validator=m.compose([this.form.validator,t]);var e=Q(this._asyncValidators);this.form.asyncValidator=m.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||Pt.missingFormException()},e.decorators=[{type:i.Directive,args:[{selector:"[formGroup]",providers:[It],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],e.ctorParameters=function(){return[{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[h]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[d]}]}]},e.propDecorators={form:[{type:i.Input,args:["formGroup"]}],ngSubmit:[{type:i.Output}]},e}(u),Mt={provide:u,useExisting:Object(i.forwardRef)(function(){return jt})},jt=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return Object(r.b)(e,t),e.prototype._checkParentType=function(){Ft(this._parent)&&Pt.groupParentException()},e.decorators=[{type:i.Directive,args:[{selector:"[formGroupName]",providers:[Mt]}]}],e.ctorParameters=function(){return[{type:u,decorators:[{type:i.Optional},{type:i.Host},{type:i.SkipSelf}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[h]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[d]}]}]},e.propDecorators={name:[{type:i.Input,args:["formGroupName"]}]},e}(rt),Nt={provide:u,useExisting:Object(i.forwardRef)(function(){return Lt})},Lt=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return Object(r.b)(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 q(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Z(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Q(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){Ft(this._parent)&&Pt.arrayParentException()},e.decorators=[{type:i.Directive,args:[{selector:"[formArrayName]",providers:[Nt]}]}],e.ctorParameters=function(){return[{type:u,decorators:[{type:i.Optional},{type:i.Host},{type:i.SkipSelf}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[h]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[d]}]}]},e.propDecorators={name:[{type:i.Input,args:["formArrayName"]}]},e}(u);function Ft(t){return!(t instanceof jt||t instanceof Rt||t instanceof Lt)}var Vt={provide:D,useExisting:Object(i.forwardRef)(function(){return Bt})},Bt=function(t){function e(e,n,r,o){var a=t.call(this)||this;return a._added=!1,a.update=new i.EventEmitter,a._parent=e,a._rawValidators=n||[],a._rawAsyncValidators=r||[],a.valueAccessor=et(a,o),a}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"isDisabled",{set:function(t){Pt.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),$(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(e.prototype,"path",{get:function(){return q(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 Z(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Q(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){!(this._parent instanceof jt)&&this._parent instanceof rt?Pt.ngModelGroupException():this._parent instanceof jt||this._parent instanceof Rt||this._parent instanceof Lt||Pt.controlParentException()},e.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},e.decorators=[{type:i.Directive,args:[{selector:"[formControlName]",providers:[Vt]}]}],e.ctorParameters=function(){return[{type:u,decorators:[{type:i.Optional},{type:i.Host},{type:i.SkipSelf}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[h]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[d]}]},{type:Array,decorators:[{type:i.Optional},{type:i.Self},{type:i.Inject,args:[b]}]}]},e.propDecorators={name:[{type:i.Input,args:["formControlName"]}],model:[{type:i.Input,args:["ngModel"]}],update:[{type:i.Output,args:["ngModelChange"]}],isDisabled:[{type:i.Input,args:["disabled"]}]},e}(D),zt={provide:h,useExisting:Object(i.forwardRef)(function(){return Ut}),multi:!0},Ht={provide:h,useExisting:Object(i.forwardRef)(function(){return qt}),multi:!0},Ut=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?m.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.decorators=[{type:i.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'}}]}],t.ctorParameters=function(){return[]},t.propDecorators={required:[{type:i.Input}]},t}(),qt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.validate=function(t){return this.required?m.requiredTrue(t):null},e.decorators=[{type:i.Directive,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[Ht],host:{"[attr.required]":'required ? "" : null'}}]}],e.ctorParameters=function(){return[]},e}(Ut),Wt={provide:h,useExisting:Object(i.forwardRef)(function(){return Gt}),multi:!0},Gt=function(){function t(){}return Object.defineProperty(t.prototype,"email",{set:function(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this._enabled?m.email(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.decorators=[{type:i.Directive,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[Wt]}]}],t.ctorParameters=function(){return[]},t.propDecorators={email:[{type:i.Input}]},t}(),Yt={provide:h,useExisting:Object(i.forwardRef)(function(){return Kt}),multi:!0},Kt=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=m.minLength(parseInt(this.minlength,10))},t.decorators=[{type:i.Directive,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[Yt],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={minlength:[{type:i.Input}]},t}(),Xt={provide:h,useExisting:Object(i.forwardRef)(function(){return Zt}),multi:!0},Zt=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=m.maxLength(parseInt(this.maxlength,10))},t.decorators=[{type:i.Directive,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[Xt],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={maxlength:[{type:i.Input}]},t}(),Qt={provide:h,useExisting:Object(i.forwardRef)(function(){return $t}),multi:!0},$t=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=m.pattern(this.pattern)},t.decorators=[{type:i.Directive,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[Qt],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],t.ctorParameters=function(){return[]},t.propDecorators={pattern:[{type:i.Input}]},t}(),Jt=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,i=null!=e?e.asyncValidator:null;return new dt(n,r,i)},t.prototype.control=function(t,e,n){return new ht(t,e,n)},t.prototype.array=function(t,e,n){var r=this,i=t.map(function(t){return r._createControl(t)});return new ft(i,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 ht||t instanceof dt||t instanceof ft)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.decorators=[{type:i.Injectable}],t.ctorParameters=function(){return[]},t}(),te=(new i.Version("5.2.7"),[function(){function t(){}return t.decorators=[{type:i.Directive,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],t.ctorParameters=function(){return[]},t}(),V,U,E,T,j,w,F,H,R,at,st,Ut,Kt,Zt,$t,qt,Gt]),ee=[Tt,St,vt],ne=[At,Rt,Bt,jt,Lt],re=function(){function t(){}return t.decorators=[{type:i.NgModule,args:[{declarations:te,exports:te}]}],t.ctorParameters=function(){return[]},t}(),ie=function(){function t(){}return t.decorators=[{type:i.NgModule,args:[{declarations:ee,providers:[I],exports:[re,ee]}]}],t.ctorParameters=function(){return[]},t}();!function(){function t(){}t.decorators=[{type:i.NgModule,args:[{declarations:[ne],providers:[Jt,I],exports:[re,ne]}]}],t.ctorParameters=function(){return[]}}()},"7t+N":function(t,e,n){var r;!function(e,n){"use strict";"object"==typeof t&&"object"==typeof t.exports?t.exports=e.document?n(e,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return n(t)}:n(e)}("undefined"!=typeof window?window:this,function(n,i){"use strict";var o=[],a=n.document,s=Object.getPrototypeOf,c=o.slice,l=o.concat,u=o.push,p=o.indexOf,h={},d=h.toString,f=h.hasOwnProperty,m=f.toString,y=m.call(Object),v={},g=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},b=function(t){return null!=t&&t===t.window},_={type:!0,src:!0,noModule:!0};function w(t,e,n){var r,i=(e=e||a).createElement("script");if(i.text=t,n)for(r in _)n[r]&&(i[r]=n[r]);e.head.appendChild(i).parentNode.removeChild(i)}function x(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?h[d.call(t)]||"object":typeof t}var C=function(t,e){return new C.fn.init(t,e)},E=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function S(t){var e=!!t&&"length"in t&&t.length,n=x(t);return!g(t)&&!b(t)&&("array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}C.fn=C.prototype={jquery:"3.3.1",constructor:C,length:0,toArray:function(){return c.call(this)},get:function(t){return null==t?c.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=C.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return C.each(this,t)},map:function(t){return this.pushStack(C.map(this,function(e,n){return t.call(e,n,e)}))},slice:function(){return this.pushStack(c.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n+~]|"+N+")"+N+"*"),q=new RegExp("="+N+"*([^\\]'\"]*?)"+N+"*\\]","g"),W=new RegExp(V),G=new RegExp("^"+L+"$"),Y={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+F),PSEUDO:new RegExp("^"+V),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+N+"*(even|odd|(([+-]|)(\\d*)n|)"+N+"*(?:([+-]|)"+N+"*(\\d+)|))"+N+"*\\)|)","i"),bool:new RegExp("^(?:"+j+")$","i"),needsContext:new RegExp("^"+N+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+N+"*((?:-\\d)?\\d*)"+N+"*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,Q=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,$=/[+~]/,J=new RegExp("\\\\([\\da-f]{1,6}"+N+"?|("+N+")|.)","ig"),tt=function(t,e,n){var r="0x"+e-65536;return r!=r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)},et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,nt=function(t,e){return e?"\0"===t?"\ufffd":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},rt=function(){h()},it=gt(function(t){return!0===t.disabled&&("form"in t||"label"in t)},{dir:"parentNode",next:"legend"});try{I.apply(P=R.call(w.childNodes),w.childNodes),P[w.childNodes.length].nodeType}catch(t){I={apply:P.length?function(t,e){A.apply(t,R.call(e))}:function(t,e){for(var n=t.length,r=0;t[n++]=e[r++];);t.length=n-1}}}function ot(t,e,r,i){var o,s,l,u,p,f,v,g=e&&e.ownerDocument,x=e?e.nodeType:9;if(r=r||[],"string"!=typeof t||!t||1!==x&&9!==x&&11!==x)return r;if(!i&&((e?e.ownerDocument||e:w)!==d&&h(e),e=e||d,m)){if(11!==x&&(p=Q.exec(t)))if(o=p[1]){if(9===x){if(!(l=e.getElementById(o)))return r;if(l.id===o)return r.push(l),r}else if(g&&(l=g.getElementById(o))&&b(e,l)&&l.id===o)return r.push(l),r}else{if(p[2])return I.apply(r,e.getElementsByTagName(t)),r;if((o=p[3])&&n.getElementsByClassName&&e.getElementsByClassName)return I.apply(r,e.getElementsByClassName(o)),r}if(n.qsa&&!O[t+" "]&&(!y||!y.test(t))){if(1!==x)g=e,v=t;else if("object"!==e.nodeName.toLowerCase()){for((u=e.getAttribute("id"))?u=u.replace(et,nt):e.setAttribute("id",u=_),s=(f=a(t)).length;s--;)f[s]="#"+u+" "+vt(f[s]);v=f.join(","),g=$.test(t)&&mt(e.parentNode)||e}if(v)try{return I.apply(r,g.querySelectorAll(v)),r}catch(t){}finally{u===_&&e.removeAttribute("id")}}}return c(t.replace(z,"$1"),e,r,i)}function at(){var t=[];return function e(n,i){return t.push(n+" ")>r.cacheLength&&delete e[t.shift()],e[n+" "]=i}}function st(t){return t[_]=!0,t}function ct(t){var e=d.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function lt(t,e){for(var n=t.split("|"),i=n.length;i--;)r.attrHandle[n[i]]=e}function ut(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(r)return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function pt(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function ht(t){return function(e){var n=e.nodeName.toLowerCase();return("input"===n||"button"===n)&&e.type===t}}function dt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&it(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ft(t){return st(function(e){return e=+e,st(function(n,r){for(var i,o=t([],n.length,e),a=o.length;a--;)n[i=o[a]]&&(n[i]=!(r[i]=n[i]))})})}function mt(t){return t&&"undefined"!=typeof t.getElementsByTagName&&t}for(e in n=ot.support={},o=ot.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},h=ot.setDocument=function(t){var e,i,a=t?t.ownerDocument||t:w;return a!==d&&9===a.nodeType&&a.documentElement?(f=(d=a).documentElement,m=!o(d),w!==d&&(i=d.defaultView)&&i.top!==i&&(i.addEventListener?i.addEventListener("unload",rt,!1):i.attachEvent&&i.attachEvent("onunload",rt)),n.attributes=ct(function(t){return t.className="i",!t.getAttribute("className")}),n.getElementsByTagName=ct(function(t){return t.appendChild(d.createComment("")),!t.getElementsByTagName("*").length}),n.getElementsByClassName=Z.test(d.getElementsByClassName),n.getById=ct(function(t){return f.appendChild(t).id=_,!d.getElementsByName||!d.getElementsByName(_).length}),n.getById?(r.filter.ID=function(t){var e=t.replace(J,tt);return function(t){return t.getAttribute("id")===e}},r.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&m){var n=e.getElementById(t);return n?[n]:[]}}):(r.filter.ID=function(t){var e=t.replace(J,tt);return function(t){var n="undefined"!=typeof t.getAttributeNode&&t.getAttributeNode("id");return n&&n.value===e}},r.find.ID=function(t,e){if("undefined"!=typeof e.getElementById&&m){var n,r,i,o=e.getElementById(t);if(o){if((n=o.getAttributeNode("id"))&&n.value===t)return[o];for(i=e.getElementsByName(t),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===t)return[o]}return[]}}),r.find.TAG=n.getElementsByTagName?function(t,e){return"undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t):n.qsa?e.querySelectorAll(t):void 0}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if("*"===t){for(;n=o[i++];)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(t,e){if("undefined"!=typeof e.getElementsByClassName&&m)return e.getElementsByClassName(t)},v=[],y=[],(n.qsa=Z.test(d.querySelectorAll))&&(ct(function(t){f.appendChild(t).innerHTML="",t.querySelectorAll("[msallowcapture^='']").length&&y.push("[*^$]="+N+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||y.push("\\["+N+"*(?:value|"+j+")"),t.querySelectorAll("[id~="+_+"-]").length||y.push("~="),t.querySelectorAll(":checked").length||y.push(":checked"),t.querySelectorAll("a#"+_+"+*").length||y.push(".#.+[+~]")}),ct(function(t){t.innerHTML="";var e=d.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&y.push("name"+N+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&y.push(":enabled",":disabled"),f.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&y.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),y.push(",.*:")})),(n.matchesSelector=Z.test(g=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&&ct(function(t){n.disconnectedMatch=g.call(t,"*"),g.call(t,"[s!='']:x"),v.push("!=",V)}),y=y.length&&new RegExp(y.join("|")),v=v.length&&new RegExp(v.join("|")),e=Z.test(f.compareDocumentPosition),b=e||Z.test(f.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):t.compareDocumentPosition&&16&t.compareDocumentPosition(r)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},k=e?function(t,e){if(t===e)return p=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===r?t===d||t.ownerDocument===w&&b(w,t)?-1:e===d||e.ownerDocument===w&&b(w,e)?1:u?M(u,t)-M(u,e):0:4&r?-1:1)}:function(t,e){if(t===e)return p=!0,0;var n,r=0,i=t.parentNode,o=e.parentNode,a=[t],s=[e];if(!i||!o)return t===d?-1:e===d?1:i?-1:o?1:u?M(u,t)-M(u,e):0;if(i===o)return ut(t,e);for(n=t;n=n.parentNode;)a.unshift(n);for(n=e;n=n.parentNode;)s.unshift(n);for(;a[r]===s[r];)r++;return r?ut(a[r],s[r]):a[r]===w?-1:s[r]===w?1:0},d):d},ot.matches=function(t,e){return ot(t,null,null,e)},ot.matchesSelector=function(t,e){if((t.ownerDocument||t)!==d&&h(t),e=e.replace(q,"='$1']"),n.matchesSelector&&m&&!O[e+" "]&&(!v||!v.test(e))&&(!y||!y.test(e)))try{var r=g.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){}return ot(e,d,null,[t]).length>0},ot.contains=function(t,e){return(t.ownerDocument||t)!==d&&h(t),b(t,e)},ot.attr=function(t,e){(t.ownerDocument||t)!==d&&h(t);var i=r.attrHandle[e.toLowerCase()],o=i&&T.call(r.attrHandle,e.toLowerCase())?i(t,e,!m):void 0;return void 0!==o?o:n.attributes||!m?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},ot.escape=function(t){return(t+"").replace(et,nt)},ot.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ot.uniqueSort=function(t){var e,r=[],i=0,o=0;if(p=!n.detectDuplicates,u=!n.sortStable&&t.slice(0),t.sort(k),p){for(;e=t[o++];)e===t[o]&&(i=r.push(o));for(;i--;)t.splice(r[i],1)}return u=null,t},i=ot.getText=function(t){var e,n="",r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[r++];)n+=i(e);return n},(r=ot.selectors={cacheLength:50,createPseudo:st,match:Y,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(J,tt),t[3]=(t[3]||t[4]||t[5]||"").replace(J,tt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ot.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ot.error(t[0]),t},PSEUDO:function(t){var e,n=!t[6]&&t[2];return Y.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":n&&W.test(n)&&(e=a(n,!0))&&(e=n.indexOf(")",n.length-e)-n.length)&&(t[0]=t[0].slice(0,e),t[2]=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(J,tt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=E[t+" "];return e||(e=new RegExp("(^|"+N+")"+t+"("+N+"|$)"))&&E(t,function(t){return e.test("string"==typeof t.className&&t.className||"undefined"!=typeof t.getAttribute&&t.getAttribute("class")||"")})},ATTR:function(t,e,n){return function(r){var i=ot.attr(r,t);return null==i?"!="===e:!e||(i+="","="===e?i===n:"!="===e?i!==n:"^="===e?n&&0===i.indexOf(n):"*="===e?n&&i.indexOf(n)>-1:"$="===e?n&&i.slice(-n.length)===n:"~="===e?(" "+i.replace(B," ")+" ").indexOf(n)>-1:"|="===e&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(t,e,n,r,i){var o="nth"!==t.slice(0,3),a="last"!==t.slice(-4),s="of-type"===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,c){var l,u,p,h,d,f,m=o!==a?"nextSibling":"previousSibling",y=e.parentNode,v=s&&e.nodeName.toLowerCase(),g=!c&&!s,b=!1;if(y){if(o){for(;m;){for(h=e;h=h[m];)if(s?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;f=m="only"===t&&!f&&"nextSibling"}return!0}if(f=[a?y.firstChild:y.lastChild],a&&g){for(b=(d=(l=(u=(p=(h=y)[_]||(h[_]={}))[h.uniqueID]||(p[h.uniqueID]={}))[t]||[])[0]===x&&l[1])&&l[2],h=d&&y.childNodes[d];h=++d&&h&&h[m]||(b=d=0)||f.pop();)if(1===h.nodeType&&++b&&h===e){u[t]=[x,d,b];break}}else if(g&&(b=d=(l=(u=(p=(h=e)[_]||(h[_]={}))[h.uniqueID]||(p[h.uniqueID]={}))[t]||[])[0]===x&&l[1]),!1===b)for(;(h=++d&&h&&h[m]||(b=d=0)||f.pop())&&((s?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(g&&((u=(p=h[_]||(h[_]={}))[h.uniqueID]||(p[h.uniqueID]={}))[t]=[x,b]),h!==e)););return(b-=i)===r||b%r==0&&b/r>=0}}},PSEUDO:function(t,e){var n,i=r.pseudos[t]||r.setFilters[t.toLowerCase()]||ot.error("unsupported pseudo: "+t);return i[_]?i(e):i.length>1?(n=[t,t,"",e],r.setFilters.hasOwnProperty(t.toLowerCase())?st(function(t,n){for(var r,o=i(t,e),a=o.length;a--;)t[r=M(t,o[a])]=!(n[r]=o[a])}):function(t){return i(t,0,n)}):i}},pseudos:{not:st(function(t){var e=[],n=[],r=s(t.replace(z,"$1"));return r[_]?st(function(t,e,n,i){for(var o,a=r(t,null,i,[]),s=t.length;s--;)(o=a[s])&&(t[s]=!(e[s]=o))}):function(t,i,o){return e[0]=t,r(e,null,o,n),e[0]=null,!n.pop()}}),has:st(function(t){return function(e){return ot(t,e).length>0}}),contains:st(function(t){return t=t.replace(J,tt),function(e){return(e.textContent||e.innerText||i(e)).indexOf(t)>-1}}),lang:st(function(t){return G.test(t||"")||ot.error("unsupported lang: "+t),t=t.replace(J,tt).toLowerCase(),function(e){var n;do{if(n=m?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(n=n.toLowerCase())===t||0===n.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}}),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===f},focus:function(t){return t===d.activeElement&&(!d.hasFocus||d.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:dt(!1),disabled:dt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos.empty(t)},header:function(t){return X.test(t.nodeName)},input:function(t){return K.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ft(function(){return[0]}),last:ft(function(t,e){return[e-1]}),eq:ft(function(t,e,n){return[n<0?n+e:n]}),even:ft(function(t,e){for(var n=0;n=0;)t.push(r);return t}),gt:ft(function(t,e,n){for(var r=n<0?n+e:n;++r1?function(e,n,r){for(var i=t.length;i--;)if(!t[i](e,n,r))return!1;return!0}:t[0]}function _t(t,e,n,r,i){for(var o,a=[],s=0,c=t.length,l=null!=e;s-1&&(o[l]=!(a[l]=p))}}else v=_t(v===a?v.splice(f,v.length):v),i?i(null,a,v,c):I.apply(a,v)})}function xt(t){for(var e,n,i,o=t.length,a=r.relative[t[0].type],s=a||r.relative[" "],c=a?1:0,u=gt(function(t){return t===e},s,!0),p=gt(function(t){return M(e,t)>-1},s,!0),h=[function(t,n,r){var i=!a&&(r||n!==l)||((e=n).nodeType?u(t,n,r):p(t,n,r));return e=null,i}];c1&&bt(h),c>1&&vt(t.slice(0,c-1).concat({value:" "===t[c-2].type?"*":""})).replace(z,"$1"),n,c0,i=t.length>0,o=function(o,a,s,c,u){var p,f,y,v=0,g="0",b=o&&[],_=[],w=l,C=o||i&&r.find.TAG("*",u),E=x+=null==w?1:Math.random()||.1,S=C.length;for(u&&(l=a===d||a||u);g!==S&&null!=(p=C[g]);g++){if(i&&p){for(f=0,a||p.ownerDocument===d||(h(p),s=!m);y=t[f++];)if(y(p,a||d,s)){c.push(p);break}u&&(x=E)}n&&((p=!y&&p)&&v--,o&&b.push(p))}if(v+=g,n&&g!==v){for(f=0;y=e[f++];)y(b,_,a,s);if(o){if(v>0)for(;g--;)b[g]||_[g]||(_[g]=D.call(c));_=_t(_)}I.apply(c,_),u&&!o&&_.length>0&&v+e.length>1&&ot.uniqueSort(c)}return u&&(x=E,l=w),b};return n?st(o):o}(o,i))).selector=t}return s},c=ot.select=function(t,e,n,i){var o,c,l,u,p,h="function"==typeof t&&t,d=!i&&a(t=h.selector||t);if(n=n||[],1===d.length){if((c=d[0]=d[0].slice(0)).length>2&&"ID"===(l=c[0]).type&&9===e.nodeType&&m&&r.relative[c[1].type]){if(!(e=(r.find.ID(l.matches[0].replace(J,tt),e)||[])[0]))return n;h&&(e=e.parentNode),t=t.slice(c.shift().value.length)}for(o=Y.needsContext.test(t)?0:c.length;o--&&(l=c[o],!r.relative[u=l.type]);)if((p=r.find[u])&&(i=p(l.matches[0].replace(J,tt),$.test(c[0].type)&&mt(e.parentNode)||e))){if(c.splice(o,1),!(t=i.length&&vt(c)))return I.apply(n,i),n;break}}return(h||s(t,d))(i,e,!m,n,!e||$.test(t)&&mt(e.parentNode)||e),n},n.sortStable=_.split("").sort(k).join("")===_,n.detectDuplicates=!!p,h(),n.sortDetached=ct(function(t){return 1&t.compareDocumentPosition(d.createElement("fieldset"))}),ct(function(t){return t.innerHTML="","#"===t.firstChild.getAttribute("href")})||lt("type|href|height|width",function(t,e,n){if(!n)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)}),n.attributes&&ct(function(t){return t.innerHTML="",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")})||lt("value",function(t,e,n){if(!n&&"input"===t.nodeName.toLowerCase())return t.defaultValue}),ct(function(t){return null==t.getAttribute("disabled")})||lt(j,function(t,e,n){var r;if(!n)return!0===t[e]?e.toLowerCase():(r=t.getAttributeNode(e))&&r.specified?r.value:null}),ot}(n);C.find=O,C.expr=O.selectors,C.expr[":"]=C.expr.pseudos,C.uniqueSort=C.unique=O.uniqueSort,C.text=O.getText,C.isXMLDoc=O.isXML,C.contains=O.contains,C.escapeSelector=O.escape;var k=function(t,e,n){for(var r=[],i=void 0!==n;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(i&&C(t).is(n))break;r.push(t)}return r},T=function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n},P=C.expr.match.needsContext;function D(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function I(t,e,n){return g(e)?C.grep(t,function(t,r){return!!e.call(t,r,t)!==n}):e.nodeType?C.grep(t,function(t){return t===e!==n}):"string"!=typeof e?C.grep(t,function(t){return p.call(e,t)>-1!==n}):C.filter(e,t,n)}C.filter=function(t,e,n){var r=e[0];return n&&(t=":not("+t+")"),1===e.length&&1===r.nodeType?C.find.matchesSelector(r,t)?[r]:[]:C.find.matches(t,C.grep(e,function(t){return 1===t.nodeType}))},C.fn.extend({find:function(t){var e,n,r=this.length,i=this;if("string"!=typeof t)return this.pushStack(C(t).filter(function(){for(e=0;e1?C.uniqueSort(n):n},filter:function(t){return this.pushStack(I(this,t||[],!1))},not:function(t){return this.pushStack(I(this,t||[],!0))},is:function(t){return!!I(this,"string"==typeof t&&P.test(t)?C(t):t||[],!1).length}});var R,M=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(C.fn.init=function(t,e,n){var r,i;if(!t)return this;if(n=n||R,"string"==typeof t){if(!(r="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:M.exec(t))||!r[1]&&e)return!e||e.jquery?(e||n).find(t):this.constructor(e).find(t);if(r[1]){if(e=e instanceof C?e[0]:e,C.merge(this,C.parseHTML(r[1],e&&e.nodeType?e.ownerDocument||e:a,!0)),A.test(r[1])&&C.isPlainObject(e))for(r in e)g(this[r])?this[r](e[r]):this.attr(r,e[r]);return this}return(i=a.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):g(t)?void 0!==n.ready?n.ready(t):t(C):C.makeArray(t,this)}).prototype=C.fn,R=C(a);var j=/^(?:parents|prev(?:Until|All))/,N={children:!0,contents:!0,next:!0,prev:!0};function L(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}C.fn.extend({has:function(t){var e=C(t,this),n=e.length;return this.filter(function(){for(var t=0;t-1:1===n.nodeType&&C.find.matchesSelector(n,t))){o.push(n);break}return this.pushStack(o.length>1?C.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?p.call(C(t),this[0]):p.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(C.uniqueSort(C.merge(this.get(),C(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),C.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return k(t,"parentNode")},parentsUntil:function(t,e,n){return k(t,"parentNode",n)},next:function(t){return L(t,"nextSibling")},prev:function(t){return L(t,"previousSibling")},nextAll:function(t){return k(t,"nextSibling")},prevAll:function(t){return k(t,"previousSibling")},nextUntil:function(t,e,n){return k(t,"nextSibling",n)},prevUntil:function(t,e,n){return k(t,"previousSibling",n)},siblings:function(t){return T((t.parentNode||{}).firstChild,t)},children:function(t){return T(t.firstChild)},contents:function(t){return D(t,"iframe")?t.contentDocument:(D(t,"template")&&(t=t.content||t),C.merge([],t.childNodes))}},function(t,e){C.fn[t]=function(n,r){var i=C.map(this,e,n);return"Until"!==t.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=C.filter(r,i)),this.length>1&&(N[t]||C.uniqueSort(i),j.test(t)&&i.reverse()),this.pushStack(i)}});var F=/[^\x20\t\r\n\f]+/g;function V(t){return t}function B(t){throw t}function z(t,e,n,r){var i;try{t&&g(i=t.promise)?i.call(t).done(e).fail(n):t&&g(i=t.then)?i.call(t,e,n):e.apply(void 0,[t].slice(r))}catch(t){n.apply(void 0,[t])}}C.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return C.each(t.match(F)||[],function(t,n){e[n]=!0}),e}(t):C.extend({},t);var e,n,r,i,o=[],a=[],s=-1,c=function(){for(i=i||t.once,r=e=!0;a.length;s=-1)for(n=a.shift();++s-1;)o.splice(n,1),n<=s&&s--}),this},has:function(t){return t?C.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=a=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=a=[],n||e||(o=n=""),this},locked:function(){return!!i},fireWith:function(t,n){return i||(n=[t,(n=n||[]).slice?n.slice():n],a.push(n),e||c()),this},fire:function(){return l.fireWith(this,arguments),this},fired:function(){return!!r}};return l},C.extend({Deferred:function(t){var e=[["notify","progress",C.Callbacks("memory"),C.Callbacks("memory"),2],["resolve","done",C.Callbacks("once memory"),C.Callbacks("once memory"),0,"resolved"],["reject","fail",C.Callbacks("once memory"),C.Callbacks("once memory"),1,"rejected"]],r="pending",i={state:function(){return r},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return i.then(null,t)},pipe:function(){var t=arguments;return C.Deferred(function(n){C.each(e,function(e,r){var i=g(t[r[4]])&&t[r[4]];o[r[1]](function(){var t=i&&i.apply(this,arguments);t&&g(t.promise)?t.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[t]:arguments)})}),t=null}).promise()},then:function(t,r,i){var o=0;function a(t,e,r,i){return function(){var s=this,c=arguments,l=function(){var n,l;if(!(t=o&&(r!==B&&(s=void 0,c=[n]),e.rejectWith(s,c))}};t?u():(C.Deferred.getStackHook&&(u.stackTrace=C.Deferred.getStackHook()),n.setTimeout(u))}}return C.Deferred(function(n){e[0][3].add(a(0,n,g(i)?i:V,n.notifyWith)),e[1][3].add(a(0,n,g(t)?t:V)),e[2][3].add(a(0,n,g(r)?r:B))}).promise()},promise:function(t){return null!=t?C.extend(t,i):i}},o={};return C.each(e,function(t,n){var a=n[2],s=n[5];i[n[1]]=a.add,s&&a.add(function(){r=s},e[3-t][2].disable,e[3-t][3].disable,e[0][2].lock,e[0][3].lock),a.add(n[3].fire),o[n[0]]=function(){return o[n[0]+"With"](this===o?void 0:this,arguments),this},o[n[0]+"With"]=a.fireWith}),i.promise(o),t&&t.call(o,o),o},when:function(t){var e=arguments.length,n=e,r=Array(n),i=c.call(arguments),o=C.Deferred(),a=function(t){return function(n){r[t]=this,i[t]=arguments.length>1?c.call(arguments):n,--e||o.resolveWith(r,i)}};if(e<=1&&(z(t,o.done(a(n)).resolve,o.reject,!e),"pending"===o.state()||g(i[n]&&i[n].then)))return o.then();for(;n--;)z(i[n],a(n),o.reject);return o.promise()}});var H=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;C.Deferred.exceptionHook=function(t,e){n.console&&n.console.warn&&t&&H.test(t.name)&&n.console.warn("jQuery.Deferred exception: "+t.message,t.stack,e)},C.readyException=function(t){n.setTimeout(function(){throw t})};var U=C.Deferred();function q(){a.removeEventListener("DOMContentLoaded",q),n.removeEventListener("load",q),C.ready()}C.fn.ready=function(t){return U.then(t).catch(function(t){C.readyException(t)}),this},C.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--C.readyWait:C.isReady)||(C.isReady=!0,!0!==t&&--C.readyWait>0||U.resolveWith(a,[C]))}}),C.ready.then=U.then,"complete"===a.readyState||"loading"!==a.readyState&&!a.documentElement.doScroll?n.setTimeout(C.ready):(a.addEventListener("DOMContentLoaded",q),n.addEventListener("load",q));var W=function(t,e,n,r,i,o,a){var s=0,c=t.length,l=null==n;if("object"===x(n))for(s in i=!0,n)W(t,e,s,n[s],!0,o,a);else if(void 0!==r&&(i=!0,g(r)||(a=!0),l&&(a?(e.call(t,r),e=null):(l=e,e=function(t,e,n){return l.call(C(t),n)})),e))for(;s1,null,!0)},removeData:function(t){return this.each(function(){J.remove(this,t)})}}),C.extend({queue:function(t,e,n){var r;if(t)return e=(e||"fx")+"queue",r=$.get(t,e),n&&(!r||Array.isArray(n)?r=$.access(t,e,C.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||"fx";var n=C.queue(t,e),r=n.length,i=n.shift(),o=C._queueHooks(t,e);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===e&&n.unshift("inprogress"),delete o.stop,i.call(t,function(){C.dequeue(t,e)},o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+"queueHooks";return $.get(t,n)||$.access(t,n,{empty:C.Callbacks("once memory").add(function(){$.remove(t,[e+"queue",n])})})}}),C.fn.extend({queue:function(t,e){var n=2;return"string"!=typeof t&&(e=t,t="fx",n--),arguments.length\x20\t\r\n\f]+)/i,ft=/^$|^module$|\/(?:java|ecma)script/i,mt={option:[1,""],thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function yt(t,e){var n;return n="undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e||"*"):"undefined"!=typeof t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&D(t,e)?C.merge([t],n):n}function vt(t,e){for(var n=0,r=t.length;n-1)i&&i.push(o);else if(l=C.contains(o.ownerDocument,o),a=yt(p.appendChild(o),"script"),l&&vt(a),n)for(u=0;o=a[u++];)ft.test(o.type||"")&&n.push(o);return p}gt=a.createDocumentFragment().appendChild(a.createElement("div")),(bt=a.createElement("input")).setAttribute("type","radio"),bt.setAttribute("checked","checked"),bt.setAttribute("name","t"),gt.appendChild(bt),v.checkClone=gt.cloneNode(!0).cloneNode(!0).lastChild.checked,gt.innerHTML="",v.noCloneChecked=!!gt.cloneNode(!0).lastChild.defaultValue;var xt=a.documentElement,Ct=/^key/,Et=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,St=/^([^.]*)(?:\.(.+)|)/;function Ot(){return!0}function kt(){return!1}function Tt(){try{return a.activeElement}catch(t){}}function Pt(t,e,n,r,i,o){var a,s;if("object"==typeof e){for(s in"string"!=typeof n&&(r=r||n,n=void 0),e)Pt(t,s,n,r,e[s],o);return t}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=kt;else if(!i)return t;return 1===o&&(a=i,(i=function(t){return C().off(t),a.apply(this,arguments)}).guid=a.guid||(a.guid=C.guid++)),t.each(function(){C.event.add(this,e,i,r,n)})}C.event={global:{},add:function(t,e,n,r,i){var o,a,s,c,l,u,p,h,d,f,m,y=$.get(t);if(y)for(n.handler&&(n=(o=n).handler,i=o.selector),i&&C.find.matchesSelector(xt,i),n.guid||(n.guid=C.guid++),(c=y.events)||(c=y.events={}),(a=y.handle)||(a=y.handle=function(e){return"undefined"!=typeof C&&C.event.triggered!==e.type?C.event.dispatch.apply(t,arguments):void 0}),l=(e=(e||"").match(F)||[""]).length;l--;)d=m=(s=St.exec(e[l])||[])[1],f=(s[2]||"").split(".").sort(),d&&(p=C.event.special[d]||{},d=(i?p.delegateType:p.bindType)||d,p=C.event.special[d]||{},u=C.extend({type:d,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&C.expr.match.needsContext.test(i),namespace:f.join(".")},o),(h=c[d])||((h=c[d]=[]).delegateCount=0,p.setup&&!1!==p.setup.call(t,r,f,a)||t.addEventListener&&t.addEventListener(d,a)),p.add&&(p.add.call(t,u),u.handler.guid||(u.handler.guid=n.guid)),i?h.splice(h.delegateCount++,0,u):h.push(u),C.event.global[d]=!0)},remove:function(t,e,n,r,i){var o,a,s,c,l,u,p,h,d,f,m,y=$.hasData(t)&&$.get(t);if(y&&(c=y.events)){for(l=(e=(e||"").match(F)||[""]).length;l--;)if(d=m=(s=St.exec(e[l])||[])[1],f=(s[2]||"").split(".").sort(),d){for(p=C.event.special[d]||{},h=c[d=(r?p.delegateType:p.bindType)||d]||[],s=s[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),a=o=h.length;o--;)u=h[o],!i&&m!==u.origType||n&&n.guid!==u.guid||s&&!s.test(u.namespace)||r&&r!==u.selector&&("**"!==r||!u.selector)||(h.splice(o,1),u.selector&&h.delegateCount--,p.remove&&p.remove.call(t,u));a&&!h.length&&(p.teardown&&!1!==p.teardown.call(t,f,y.handle)||C.removeEvent(t,d,y.handle),delete c[d])}else for(d in c)C.event.remove(t,d+e[l],n,r,!0);C.isEmptyObject(c)&&$.remove(t,"handle events")}},dispatch:function(t){var e,n,r,i,o,a,s=C.event.fix(t),c=new Array(arguments.length),l=($.get(this,"events")||{})[s.type]||[],u=C.event.special[s.type]||{};for(c[0]=s,e=1;e=1))for(;l!==this;l=l.parentNode||this)if(1===l.nodeType&&("click"!==t.type||!0!==l.disabled)){for(o=[],a={},n=0;n-1:C.find(i,this,null,[l]).length),a[i]&&o.push(r);o.length&&s.push({elem:l,handlers:o})}return l=this,c\x20\t\r\n\f]*)[^>]*)\/>/gi,At=/\s*$/g;function Mt(t,e){return D(t,"table")&&D(11!==e.nodeType?e:e.firstChild,"tr")&&C(t).children("tbody")[0]||t}function jt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Nt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Lt(t,e){var n,r,i,o,a,s,c,l;if(1===e.nodeType){if($.hasData(t)&&(o=$.access(t),a=$.set(e,o),l=o.events))for(i in delete a.handle,a.events={},l)for(n=0,r=l[i].length;n1&&"string"==typeof f&&!v.checkClone&&It.test(f))return t.each(function(i){var o=t.eq(i);m&&(e[0]=f.call(this,i,o.html())),Ft(o,e,n,r)});if(h&&(o=(i=wt(e,t[0].ownerDocument,!1,t,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(s=(a=C.map(yt(i,"script"),jt)).length;p")},clone:function(t,e,n){var r,i,o,a,s,c,l,u=t.cloneNode(!0),p=C.contains(t.ownerDocument,t);if(!(v.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||C.isXMLDoc(t)))for(a=yt(u),r=0,i=(o=yt(t)).length;r0&&vt(a,!p&&yt(t,"script")),u},cleanData:function(t){for(var e,n,r,i=C.event.special,o=0;void 0!==(n=t[o]);o++)if(Z(n)){if(e=n[$.expando]){if(e.events)for(r in e.events)i[r]?C.event.remove(n,r):C.removeEvent(n,r,e.handle);n[$.expando]=void 0}n[J.expando]&&(n[J.expando]=void 0)}}}),C.fn.extend({detach:function(t){return Vt(this,t,!0)},remove:function(t){return Vt(this,t)},text:function(t){return W(this,function(t){return void 0===t?C.text(this):this.empty().each(function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)})},null,t,arguments.length)},append:function(){return Ft(this,arguments,function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Mt(this,t).appendChild(t)})},prepend:function(){return Ft(this,arguments,function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Mt(this,t);e.insertBefore(t,e.firstChild)}})},before:function(){return Ft(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this)})},after:function(){return Ft(this,arguments,function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)})},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(C.cleanData(yt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map(function(){return C.clone(this,t,e)})},html:function(t){return W(this,function(t){var e=this[0]||{},n=0,r=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!At.test(t)&&!mt[(dt.exec(t)||["",""])[1].toLowerCase()]){t=C.htmlPrefilter(t);try{for(;n=0&&(c+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-c-s-.5))),c}function te(t,e,n){var r=zt(t),i=Ut(t,e,r),o="border-box"===C.css(t,"boxSizing",!1,r),a=o;if(Bt.test(i)){if(!n)return i;i="auto"}return a=a&&(v.boxSizingReliable()||i===t.style[e]),("auto"===i||!parseFloat(i)&&"inline"===C.css(t,"display",!1,r))&&(i=t["offset"+e[0].toUpperCase()+e.slice(1)],a=!0),(i=parseFloat(i)||0)+Jt(t,e,n||(o?"border":"content"),a,r,i)+"px"}function ee(t,e,n,r,i){return new ee.prototype.init(t,e,n,r,i)}C.extend({cssHooks:{opacity:{get:function(t,e){if(e){var n=Ut(t,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,n,r){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var i,o,a,s=X(e),c=Gt.test(e),l=t.style;if(c||(e=Qt(s)),a=C.cssHooks[e]||C.cssHooks[s],void 0===n)return a&&"get"in a&&void 0!==(i=a.get(t,!1,r))?i:l[e];"string"===(o=typeof n)&&(i=it.exec(n))&&i[1]&&(n=ct(t,e,i),o="number"),null!=n&&n==n&&("number"===o&&(n+=i&&i[3]||(C.cssNumber[s]?"":"px")),v.clearCloneStyle||""!==n||0!==e.indexOf("background")||(l[e]="inherit"),a&&"set"in a&&void 0===(n=a.set(t,n,r))||(c?l.setProperty(e,n):l[e]=n))}},css:function(t,e,n,r){var i,o,a,s=X(e);return Gt.test(e)||(e=Qt(s)),(a=C.cssHooks[e]||C.cssHooks[s])&&"get"in a&&(i=a.get(t,!0,n)),void 0===i&&(i=Ut(t,e,r)),"normal"===i&&e in Kt&&(i=Kt[e]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),C.each(["height","width"],function(t,e){C.cssHooks[e]={get:function(t,n,r){if(n)return!Wt.test(C.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?te(t,e,r):st(t,Yt,function(){return te(t,e,r)})},set:function(t,n,r){var i,o=zt(t),a="border-box"===C.css(t,"boxSizing",!1,o),s=r&&Jt(t,e,r,a,o);return a&&v.scrollboxSize()===o.position&&(s-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-Jt(t,e,"border",!1,o)-.5)),s&&(i=it.exec(n))&&"px"!==(i[3]||"px")&&(t.style[e]=n,n=C.css(t,e)),$t(0,n,s)}}}),C.cssHooks.marginLeft=qt(v.reliableMarginLeft,function(t,e){if(e)return(parseFloat(Ut(t,"marginLeft"))||t.getBoundingClientRect().left-st(t,{marginLeft:0},function(){return t.getBoundingClientRect().left}))+"px"}),C.each({margin:"",padding:"",border:"Width"},function(t,e){C.cssHooks[t+e]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[t+ot[r]+e]=o[r]||o[r-2]||o[0];return i}},"margin"!==t&&(C.cssHooks[t+e].set=$t)}),C.fn.extend({css:function(t,e){return W(this,function(t,e,n){var r,i,o={},a=0;if(Array.isArray(e)){for(r=zt(t),i=e.length;a1)}}),C.Tween=ee,ee.prototype={constructor:ee,init:function(t,e,n,r,i,o){this.elem=t,this.prop=n,this.easing=i||C.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=r,this.unit=o||(C.cssNumber[n]?"":"px")},cur:function(){var t=ee.propHooks[this.prop];return t&&t.get?t.get(this):ee.propHooks._default.get(this)},run:function(t){var e,n=ee.propHooks[this.prop];return this.options.duration?this.pos=e=C.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ee.propHooks._default.set(this),this}},ee.prototype.init.prototype=ee.prototype,ee.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=C.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){C.fx.step[t.prop]?C.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[C.cssProps[t.prop]]&&!C.cssHooks[t.prop]?t.elem[t.prop]=t.now:C.style(t.elem,t.prop,t.now+t.unit)}}},ee.propHooks.scrollTop=ee.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},C.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},C.fx=ee.prototype.init,C.fx.step={};var ne,re,ie=/^(?:toggle|show|hide)$/,oe=/queueHooks$/;function ae(){re&&(!1===a.hidden&&n.requestAnimationFrame?n.requestAnimationFrame(ae):n.setTimeout(ae,C.fx.interval),C.fx.tick())}function se(){return n.setTimeout(function(){ne=void 0}),ne=Date.now()}function ce(t,e){var n,r=0,i={height:t};for(e=e?1:0;r<4;r+=2-e)i["margin"+(n=ot[r])]=i["padding"+n]=t;return e&&(i.opacity=i.width=t),i}function le(t,e,n){for(var r,i=(ue.tweeners[e]||[]).concat(ue.tweeners["*"]),o=0,a=i.length;o1)},removeAttr:function(t){return this.each(function(){C.removeAttr(this,t)})}}),C.extend({attr:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return"undefined"==typeof t.getAttribute?C.prop(t,e,n):(1===o&&C.isXMLDoc(t)||(i=C.attrHooks[e.toLowerCase()]||(C.expr.match.bool.test(e)?pe:void 0)),void 0!==n?null===n?void C.removeAttr(t,e):i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:(t.setAttribute(e,n+""),n):i&&"get"in i&&null!==(r=i.get(t,e))?r:null==(r=C.find.attr(t,e))?void 0:r)},attrHooks:{type:{set:function(t,e){if(!v.radioValue&&"radio"===e&&D(t,"input")){var n=t.value;return t.setAttribute("type",e),n&&(t.value=n),e}}}},removeAttr:function(t,e){var n,r=0,i=e&&e.match(F);if(i&&1===t.nodeType)for(;n=i[r++];)t.removeAttribute(n)}}),pe={set:function(t,e,n){return!1===e?C.removeAttr(t,n):t.setAttribute(n,n),n}},C.each(C.expr.match.bool.source.match(/\w+/g),function(t,e){var n=he[e]||C.find.attr;he[e]=function(t,e,r){var i,o,a=e.toLowerCase();return r||(o=he[a],he[a]=i,i=null!=n(t,e,r)?a:null,he[a]=o),i}});var de=/^(?:input|select|textarea|button)$/i,fe=/^(?:a|area)$/i;function me(t){return(t.match(F)||[]).join(" ")}function ye(t){return t.getAttribute&&t.getAttribute("class")||""}function ve(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(F)||[]}C.fn.extend({prop:function(t,e){return W(this,C.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each(function(){delete this[C.propFix[t]||t]})}}),C.extend({prop:function(t,e,n){var r,i,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&C.isXMLDoc(t)||(e=C.propFix[e]||e,i=C.propHooks[e]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(t,n,e))?r:t[e]=n:i&&"get"in i&&null!==(r=i.get(t,e))?r:t[e]},propHooks:{tabIndex:{get:function(t){var e=C.find.attr(t,"tabindex");return e?parseInt(e,10):de.test(t.nodeName)||fe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),v.optSelected||(C.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),C.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){C.propFix[this.toLowerCase()]=this}),C.fn.extend({addClass:function(t){var e,n,r,i,o,a,s,c=0;if(g(t))return this.each(function(e){C(this).addClass(t.call(this,e,ye(this)))});if((e=ve(t)).length)for(;n=this[c++];)if(i=ye(n),r=1===n.nodeType&&" "+me(i)+" "){for(a=0;o=e[a++];)r.indexOf(" "+o+" ")<0&&(r+=o+" ");i!==(s=me(r))&&n.setAttribute("class",s)}return this},removeClass:function(t){var e,n,r,i,o,a,s,c=0;if(g(t))return this.each(function(e){C(this).removeClass(t.call(this,e,ye(this)))});if(!arguments.length)return this.attr("class","");if((e=ve(t)).length)for(;n=this[c++];)if(i=ye(n),r=1===n.nodeType&&" "+me(i)+" "){for(a=0;o=e[a++];)for(;r.indexOf(" "+o+" ")>-1;)r=r.replace(" "+o+" "," ");i!==(s=me(r))&&n.setAttribute("class",s)}return this},toggleClass:function(t,e){var n=typeof t,r="string"===n||Array.isArray(t);return"boolean"==typeof e&&r?e?this.addClass(t):this.removeClass(t):g(t)?this.each(function(n){C(this).toggleClass(t.call(this,n,ye(this),e),e)}):this.each(function(){var e,i,o,a;if(r)for(i=0,o=C(this),a=ve(t);e=a[i++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==n||((e=ye(this))&&$.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":$.get(this,"__className__")||""))})},hasClass:function(t){var e,n,r=0;for(e=" "+t+" ";n=this[r++];)if(1===n.nodeType&&(" "+me(ye(n))+" ").indexOf(e)>-1)return!0;return!1}});var ge=/\r/g;C.fn.extend({val:function(t){var e,n,r,i=this[0];return arguments.length?(r=g(t),this.each(function(n){var i;1===this.nodeType&&(null==(i=r?t.call(this,n,C(this).val()):t)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=C.map(i,function(t){return null==t?"":t+""})),(e=C.valHooks[this.type]||C.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,i,"value")||(this.value=i))})):i?(e=C.valHooks[i.type]||C.valHooks[i.nodeName.toLowerCase()])&&"get"in e&&void 0!==(n=e.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(ge,""):null==n?"":n:void 0}}),C.extend({valHooks:{option:{get:function(t){var e=C.find.attr(t,"value");return null!=e?e:me(C.text(t))}},select:{get:function(t){var e,n,r,i=t.options,o=t.selectedIndex,a="select-one"===t.type,s=a?null:[],c=a?o+1:i.length;for(r=o<0?c:a?o:0;r-1)&&(n=!0);return n||(t.selectedIndex=-1),o}}}}),C.each(["radio","checkbox"],function(){C.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=C.inArray(C(t).val(),e)>-1}},v.checkOn||(C.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})}),v.focusin="onfocusin"in n;var be=/^(?:focusinfocus|focusoutblur)$/,_e=function(t){t.stopPropagation()};C.extend(C.event,{trigger:function(t,e,r,i){var o,s,c,l,u,p,h,d,m=[r||a],y=f.call(t,"type")?t.type:t,v=f.call(t,"namespace")?t.namespace.split("."):[];if(s=d=c=r=r||a,3!==r.nodeType&&8!==r.nodeType&&!be.test(y+C.event.triggered)&&(y.indexOf(".")>-1&&(y=(v=y.split(".")).shift(),v.sort()),u=y.indexOf(":")<0&&"on"+y,(t=t[C.expando]?t:new C.Event(y,"object"==typeof t&&t)).isTrigger=i?2:3,t.namespace=v.join("."),t.rnamespace=t.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,t.result=void 0,t.target||(t.target=r),e=null==e?[t]:C.makeArray(e,[t]),h=C.event.special[y]||{},i||!h.trigger||!1!==h.trigger.apply(r,e))){if(!i&&!h.noBubble&&!b(r)){for(l=h.delegateType||y,be.test(l+y)||(s=s.parentNode);s;s=s.parentNode)m.push(s),c=s;c===(r.ownerDocument||a)&&m.push(c.defaultView||c.parentWindow||n)}for(o=0;(s=m[o++])&&!t.isPropagationStopped();)d=s,t.type=o>1?l:h.bindType||y,(p=($.get(s,"events")||{})[t.type]&&$.get(s,"handle"))&&p.apply(s,e),(p=u&&s[u])&&p.apply&&Z(s)&&(t.result=p.apply(s,e),!1===t.result&&t.preventDefault());return t.type=y,i||t.isDefaultPrevented()||h._default&&!1!==h._default.apply(m.pop(),e)||!Z(r)||u&&g(r[y])&&!b(r)&&((c=r[u])&&(r[u]=null),C.event.triggered=y,t.isPropagationStopped()&&d.addEventListener(y,_e),r[y](),t.isPropagationStopped()&&d.removeEventListener(y,_e),C.event.triggered=void 0,c&&(r[u]=c)),t.result}},simulate:function(t,e,n){var r=C.extend(new C.Event,n,{type:t,isSimulated:!0});C.event.trigger(r,null,e)}}),C.fn.extend({trigger:function(t,e){return this.each(function(){C.event.trigger(t,e,this)})},triggerHandler:function(t,e){var n=this[0];if(n)return C.event.trigger(t,e,n,!0)}}),v.focusin||C.each({focus:"focusin",blur:"focusout"},function(t,e){var n=function(t){C.event.simulate(e,t.target,C.event.fix(t))};C.event.special[e]={setup:function(){var r=this.ownerDocument||this,i=$.access(r,e);i||r.addEventListener(t,n,!0),$.access(r,e,(i||0)+1)},teardown:function(){var r=this.ownerDocument||this,i=$.access(r,e)-1;i?$.access(r,e,i):(r.removeEventListener(t,n,!0),$.remove(r,e))}}});var we=n.location,xe=Date.now(),Ce=/\?/;C.parseXML=function(t){var e;if(!t||"string"!=typeof t)return null;try{e=(new n.DOMParser).parseFromString(t,"text/xml")}catch(t){e=void 0}return e&&!e.getElementsByTagName("parsererror").length||C.error("Invalid XML: "+t),e};var Ee=/\[\]$/,Se=/\r?\n/g,Oe=/^(?:submit|button|image|reset|file)$/i,ke=/^(?:input|select|textarea|keygen)/i;function Te(t,e,n,r){var i;if(Array.isArray(e))C.each(e,function(e,i){n||Ee.test(t)?r(t,i):Te(t+"["+("object"==typeof i&&null!=i?e:"")+"]",i,n,r)});else if(n||"object"!==x(e))r(t,e);else for(i in e)Te(t+"["+i+"]",e[i],n,r)}C.param=function(t,e){var n,r=[],i=function(t,e){var n=g(e)?e():e;r[r.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==n?"":n)};if(Array.isArray(t)||t.jquery&&!C.isPlainObject(t))C.each(t,function(){i(this.name,this.value)});else for(n in t)Te(n,t[n],e,i);return r.join("&")},C.fn.extend({serialize:function(){return C.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var t=C.prop(this,"elements");return t?C.makeArray(t):this}).filter(function(){var t=this.type;return this.name&&!C(this).is(":disabled")&&ke.test(this.nodeName)&&!Oe.test(t)&&(this.checked||!ht.test(t))}).map(function(t,e){var n=C(this).val();return null==n?null:Array.isArray(n)?C.map(n,function(t){return{name:e.name,value:t.replace(Se,"\r\n")}}):{name:e.name,value:n.replace(Se,"\r\n")}}).get()}});var Pe=/%20/g,De=/#.*$/,Ae=/([?&])_=[^&]*/,Ie=/^(.*?):[ \t]*([^\r\n]*)$/gm,Re=/^(?:GET|HEAD)$/,Me=/^\/\//,je={},Ne={},Le="*/".concat("*"),Fe=a.createElement("a");function Ve(t){return function(e,n){"string"!=typeof e&&(n=e,e="*");var r,i=0,o=e.toLowerCase().match(F)||[];if(g(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(t[r]=t[r]||[]).unshift(n)):(t[r]=t[r]||[]).push(n)}}function Be(t,e,n,r){var i={},o=t===Ne;function a(s){var c;return i[s]=!0,C.each(t[s]||[],function(t,s){var l=s(e,n,r);return"string"!=typeof l||o||i[l]?o?!(c=l):void 0:(e.dataTypes.unshift(l),a(l),!1)}),c}return a(e.dataTypes[0])||!i["*"]&&a("*")}function ze(t,e){var n,r,i=C.ajaxSettings.flatOptions||{};for(n in e)void 0!==e[n]&&((i[n]?t:r||(r={}))[n]=e[n]);return r&&C.extend(!0,t,r),t}Fe.href=we.href,C.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:we.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(we.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Le,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":C.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?ze(ze(t,C.ajaxSettings),e):ze(C.ajaxSettings,t)},ajaxPrefilter:Ve(je),ajaxTransport:Ve(Ne),ajax:function(t,e){"object"==typeof t&&(e=t,t=void 0),e=e||{};var r,i,o,s,c,l,u,p,h,d,f=C.ajaxSetup({},e),m=f.context||f,y=f.context&&(m.nodeType||m.jquery)?C(m):C.event,v=C.Deferred(),g=C.Callbacks("once memory"),b=f.statusCode||{},_={},w={},x="canceled",E={readyState:0,getResponseHeader:function(t){var e;if(u){if(!s)for(s={};e=Ie.exec(o);)s[e[1].toLowerCase()]=e[2];e=s[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(t,e){return null==u&&(t=w[t.toLowerCase()]=w[t.toLowerCase()]||t,_[t]=e),this},overrideMimeType:function(t){return null==u&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)E.always(t[E.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||x;return r&&r.abort(e),S(0,e),this}};if(v.promise(E),f.url=((t||f.url||we.href)+"").replace(Me,we.protocol+"//"),f.type=e.method||e.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(F)||[""],null==f.crossDomain){l=a.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Fe.protocol+"//"+Fe.host!=l.protocol+"//"+l.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=C.param(f.data,f.traditional)),Be(je,f,e,E),u)return E;for(h in(p=C.event&&f.global)&&0==C.active++&&C.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Re.test(f.type),i=f.url.replace(De,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Pe,"+")):(d=f.url.slice(i.length),f.data&&(f.processData||"string"==typeof f.data)&&(i+=(Ce.test(i)?"&":"?")+f.data,delete f.data),!1===f.cache&&(i=i.replace(Ae,"$1"),d=(Ce.test(i)?"&":"?")+"_="+xe+++d),f.url=i+d),f.ifModified&&(C.lastModified[i]&&E.setRequestHeader("If-Modified-Since",C.lastModified[i]),C.etag[i]&&E.setRequestHeader("If-None-Match",C.etag[i])),(f.data&&f.hasContent&&!1!==f.contentType||e.contentType)&&E.setRequestHeader("Content-Type",f.contentType),E.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Le+"; q=0.01":""):f.accepts["*"]),f.headers)E.setRequestHeader(h,f.headers[h]);if(f.beforeSend&&(!1===f.beforeSend.call(m,E,f)||u))return E.abort();if(x="abort",g.add(f.complete),E.done(f.success),E.fail(f.error),r=Be(Ne,f,e,E)){if(E.readyState=1,p&&y.trigger("ajaxSend",[E,f]),u)return E;f.async&&f.timeout>0&&(c=n.setTimeout(function(){E.abort("timeout")},f.timeout));try{u=!1,r.send(_,S)}catch(t){if(u)throw t;S(-1,t)}}else S(-1,"No Transport");function S(t,e,a,s){var l,h,d,_,w,x=e;u||(u=!0,c&&n.clearTimeout(c),r=void 0,o=s||"",E.readyState=t>0?4:0,l=t>=200&&t<300||304===t,a&&(_=function(t,e,n){for(var r,i,o,a,s=t.contents,c=t.dataTypes;"*"===c[0];)c.shift(),void 0===r&&(r=t.mimeType||e.getResponseHeader("Content-Type"));if(r)for(i in s)if(s[i]&&s[i].test(r)){c.unshift(i);break}if(c[0]in n)o=c[0];else{for(i in n){if(!c[0]||t.converters[i+" "+c[0]]){o=i;break}a||(a=i)}o=o||a}if(o)return o!==c[0]&&c.unshift(o),n[o]}(f,E,a)),_=function(t,e,n,r){var i,o,a,s,c,l={},u=t.dataTypes.slice();if(u[1])for(a in t.converters)l[a.toLowerCase()]=t.converters[a];for(o=u.shift();o;)if(t.responseFields[o]&&(n[t.responseFields[o]]=e),!c&&r&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),c=o,o=u.shift())if("*"===o)o=c;else if("*"!==c&&c!==o){if(!(a=l[c+" "+o]||l["* "+o]))for(i in l)if((s=i.split(" "))[1]===o&&(a=l[c+" "+s[0]]||l["* "+s[0]])){!0===a?a=l[i]:!0!==l[i]&&(o=s[0],u.unshift(s[1]));break}if(!0!==a)if(a&&t.throws)e=a(e);else try{e=a(e)}catch(t){return{state:"parsererror",error:a?t:"No conversion from "+c+" to "+o}}}return{state:"success",data:e}}(f,_,E,l),l?(f.ifModified&&((w=E.getResponseHeader("Last-Modified"))&&(C.lastModified[i]=w),(w=E.getResponseHeader("etag"))&&(C.etag[i]=w)),204===t||"HEAD"===f.type?x="nocontent":304===t?x="notmodified":(x=_.state,h=_.data,l=!(d=_.error))):(d=x,!t&&x||(x="error",t<0&&(t=0))),E.status=t,E.statusText=(e||x)+"",l?v.resolveWith(m,[h,x,E]):v.rejectWith(m,[E,x,d]),E.statusCode(b),b=void 0,p&&y.trigger(l?"ajaxSuccess":"ajaxError",[E,f,l?h:d]),g.fireWith(m,[E,x]),p&&(y.trigger("ajaxComplete",[E,f]),--C.active||C.event.trigger("ajaxStop")))}return E},getJSON:function(t,e,n){return C.get(t,e,n,"json")},getScript:function(t,e){return C.get(t,void 0,e,"script")}}),C.each(["get","post"],function(t,e){C[e]=function(t,n,r,i){return g(n)&&(i=i||r,r=n,n=void 0),C.ajax(C.extend({url:t,type:e,dataType:i,data:n,success:r},C.isPlainObject(t)&&t))}}),C._evalUrl=function(t){return C.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},C.fn.extend({wrapAll:function(t){var e;return this[0]&&(g(t)&&(t=t.call(this[0])),e=C(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map(function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t}).append(this)),this},wrapInner:function(t){return g(t)?this.each(function(e){C(this).wrapInner(t.call(this,e))}):this.each(function(){var e=C(this),n=e.contents();n.length?n.wrapAll(t):e.append(t)})},wrap:function(t){var e=g(t);return this.each(function(n){C(this).wrapAll(e?t.call(this,n):t)})},unwrap:function(t){return this.parent(t).not("body").each(function(){C(this).replaceWith(this.childNodes)}),this}}),C.expr.pseudos.hidden=function(t){return!C.expr.pseudos.visible(t)},C.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},C.ajaxSettings.xhr=function(){try{return new n.XMLHttpRequest}catch(t){}};var He={0:200,1223:204},Ue=C.ajaxSettings.xhr();v.cors=!!Ue&&"withCredentials"in Ue,v.ajax=Ue=!!Ue,C.ajaxTransport(function(t){var e,r;if(v.cors||Ue&&!t.crossDomain)return{send:function(i,o){var a,s=t.xhr();if(s.open(t.type,t.url,t.async,t.username,t.password),t.xhrFields)for(a in t.xhrFields)s[a]=t.xhrFields[a];for(a in t.mimeType&&s.overrideMimeType&&s.overrideMimeType(t.mimeType),t.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)s.setRequestHeader(a,i[a]);e=function(t){return function(){e&&(e=r=s.onload=s.onerror=s.onabort=s.ontimeout=s.onreadystatechange=null,"abort"===t?s.abort():"error"===t?"number"!=typeof s.status?o(0,"error"):o(s.status,s.statusText):o(He[s.status]||s.status,s.statusText,"text"!==(s.responseType||"text")||"string"!=typeof s.responseText?{binary:s.response}:{text:s.responseText},s.getAllResponseHeaders()))}},s.onload=e(),r=s.onerror=s.ontimeout=e("error"),void 0!==s.onabort?s.onabort=r:s.onreadystatechange=function(){4===s.readyState&&n.setTimeout(function(){e&&r()})},e=e("abort");try{s.send(t.hasContent&&t.data||null)}catch(t){if(e)throw t}},abort:function(){e&&e()}}}),C.ajaxPrefilter(function(t){t.crossDomain&&(t.contents.script=!1)}),C.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return C.globalEval(t),t}}}),C.ajaxPrefilter("script",function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")}),C.ajaxTransport("script",function(t){var e,n;if(t.crossDomain)return{send:function(r,i){e=C("