-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.6a05d2e33766c36d7a2d.bundle.js
1 lines (1 loc) · 334 KB
/
main.6a05d2e33766c36d7a2d.bundle.js
1
webpackJsonp([1],{0:function(e,t,n){e.exports=n("cDNt")},"1j/l":function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=Array.isArray||function(e){return e&&"number"==typeof e.length}},"2kLc":function(e,t,n){"use strict";var r=n("AP4T"),o=n("6Xbx"),i=function(e){function t(t,n){e.call(this),this.value=t,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return Object(o.b)(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){var t=e.value,n=e.subscriber;e.done?n.complete():(n.next(t),n.closed||(e.done=!0,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.value,r=this.scheduler;if(r)return r.schedule(t.dispatch,0,{done:!1,value:n,subscriber:e});e.next(n),e.closed||e.complete()},t}(r.a),l=n("Ecq+");function s(e){return e&&"function"==typeof e.schedule}var a=function(e){function t(t,n){e.call(this),this.array=t,this.scheduler=n,n||1!==t.length||(this._isScalar=!0,this.value=t[0])}return Object(o.b)(t,e),t.create=function(e,n){return new t(e,n)},t.of=function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var r=e[e.length-1];s(r)?e.pop():r=null;var o=e.length;return o>1?new t(e,r):1===o?new i(e[0],r):new l.a(r)},t.dispatch=function(e){var t=e.array,n=e.index,r=e.subscriber;n>=e.count?r.complete():(r.next(t[n]),r.closed||(e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.array,r=n.length,o=this.scheduler;if(o)return o.schedule(t.dispatch,0,{array:n,index:0,count:r,subscriber:e});for(var i=0;i<r&&!e.closed;i++)e.next(n[i]);e.complete()},t}(r.a),u=n("qgI0"),c=n("lI6h"),p=function(){function e(e,t,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=e,this.resultSelector=t,this.concurrent=n}return e.prototype.call=function(e,t){return t.subscribe(new h(e,this.project,this.resultSelector,this.concurrent))},e}(),h=function(e){function t(t,n,r,o){void 0===o&&(o=Number.POSITIVE_INFINITY),e.call(this,t),this.project=n,this.resultSelector=r,this.concurrent=o,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return Object(o.b)(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){this.add(Object(u.a)(this,e,t,n))},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,o){this.resultSelector?this._notifyResultSelector(e,t,n,r):this.destination.next(t)},t.prototype._notifyResultSelector=function(e,t,n,r){var o;try{o=this.resultSelector(e,t,n,r)}catch(e){return void this.destination.error(e)}this.destination.next(o)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(c.a);function d(e){return e}t.a=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=Number.POSITIVE_INFINITY,o=null,i=e[e.length-1];return s(i)?(o=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof i&&(n=e.pop()),null===o&&1===e.length&&e[0]instanceof r.a?e[0]:function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),function(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return"number"==typeof t&&(n=t,t=null),r.lift(new p(e,t,n))}}(d,null,e)}(n)(new a(e,o))}},"6Xbx":function(e,t,n){"use strict";t.b=function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},n.d(t,"a",function(){return o});var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}},AP4T:function(e,t,n){"use strict";var r=n("xIGM"),o=n("E9/g"),i=n("V7AE"),l=n("grVA"),s=n("mz3w");n.d(t,"a",function(){return a});var a=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,s=function(e,t,n){if(e){if(e instanceof o.a)return e;if(e[i.a])return e[i.a]()}return e||t||n?new o.a(e,t,n):new o.a(l.a)}(e,t,n);if(r?r.call(s,this.source):s.add(this.source||!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.syncErrorThrown=!0,e.syncErrorValue=t,e.error(t)}},e.prototype.forEach=function(e,t){var n=this;if(t||(r.a.Rx&&r.a.Rx.config&&r.a.Rx.config.Promise?t=r.a.Rx.config.Promise:r.a.Promise&&(t=r.a.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,r){var o;o=n.subscribe(function(t){if(o)try{e(t)}catch(e){r(e),o.unsubscribe()}else e(t)},r,t)})},e.prototype._subscribe=function(e){return this.source.subscribe(e)},e.prototype[s.a]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return 0===e.length?this:((n=e)?1===n.length?n[0]:function(e){return n.reduce(function(e,t){return t(e)},e)}:function(){})(this);var n},e.prototype.toPromise=function(e){var t=this;if(e||(r.a.Rx&&r.a.Rx.config&&r.a.Rx.config.Promise?e=r.a.Rx.config.Promise:r.a.Promise&&(e=r.a.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}()},B1iP:function(e,t,n){"use strict";t.a=function(e){return"function"==typeof e}},"E9/g":function(e,t,n){"use strict";n.d(t,"a",function(){return a});var r=n("6Xbx"),o=n("B1iP"),i=n("qLnt"),l=n("grVA"),s=n("V7AE"),a=function(e){function t(n,r,o){switch(e.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=l.a;break;case 1:if(!n){this.destination=l.a;break}if("object"==typeof n){n instanceof t?(this.syncErrorThrowable=n.syncErrorThrowable,this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new u(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new u(this,n,r,o)}}return Object(r.b)(t,e),t.prototype[s.a]=function(){return this},t.create=function(e,n,r){var o=new t(e,n,r);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this},t}(i.a),u=function(e){function t(t,n,r,i){var s;e.call(this),this._parentSubscriber=t;var a=this;Object(o.a)(n)?s=n:n&&(s=n.next,r=n.error,i=n.complete,n!==l.a&&(a=Object.create(n),Object(o.a)(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=s,this._error=r,this._complete=i}return Object(r.b)(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber;if(this._error)t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else{if(!t.syncErrorThrowable)throw this.unsubscribe(),e;t.syncErrorValue=e,t.syncErrorThrown=!0,this.unsubscribe()}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){throw this.unsubscribe(),e}},t.prototype.__tryOrSetError=function(e,t,n){try{t.call(this._context,n)}catch(t){return e.syncErrorValue=t,e.syncErrorThrown=!0,!0}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(a)},"Ecq+":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("6Xbx"),o=function(e){function t(t){e.call(this),this.scheduler=t}return Object(r.b)(t,e),t.create=function(e){return new t(e)},t.dispatch=function(e){e.subscriber.complete()},t.prototype._subscribe=function(e){var n=this.scheduler;if(n)return n.schedule(t.dispatch,0,{subscriber:e});e.complete()},t}(n("AP4T").a)},LMZF:function(e,t,n){"use strict";(function(e){n.d(t,"e",function(){return Ze}),n.d(t,"I",function(){return He}),n.d(t,"L",function(){return qe}),n.d(t,"H",function(){return Qe}),n.d(t,"r",function(){return ze}),n.d(t,"a",function(){return ne}),n.d(t,"v",function(){return ie}),n.d(t,"u",function(){return le}),n.d(t,"b",function(){return ee}),n.d(t,"c",function(){return te}),n.d(t,"K",function(){return ut}),n.d(t,"C",function(){return je}),n.d(t,"N",function(){return De}),n.d(t,"p",function(){return It}),n.d(t,"d",function(){return Dt}),n.d(t,"j",function(){return Te}),n.d(t,"i",function(){return X}),n.d(t,"z",function(){return Ft}),n.d(t,"A",function(){return Rt}),n.d(t,"F",function(){return p}),n.d(t,"D",function(){return h}),n.d(t,"J",function(){return T}),n.d(t,"m",function(){return V}),n.d(t,"l",function(){return a}),n.d(t,"k",function(){return f}),n.d(t,"t",function(){return y}),n.d(t,"s",function(){return ke}),n.d(t,"w",function(){return Je}),n.d(t,"x",function(){return Xe}),n.d(t,"y",function(){return Ye}),n.d(t,"f",function(){return ce}),n.d(t,"g",function(){return ve}),n.d(t,"h",function(){return et}),n.d(t,"q",function(){return we}),n.d(t,"B",function(){return nt}),n.d(t,"E",function(){return rt}),n.d(t,"n",function(){return Tt}),n.d(t,"o",function(){return kt}),n.d(t,"G",function(){return ht}),n.d(t,"M",function(){return Vt}),n.d(t,"Y",function(){return ft}),n.d(t,"P",function(){return ae}),n.d(t,"O",function(){return _e}),n.d(t,"W",function(){return b}),n.d(t,"_1",function(){return x}),n.d(t,"_9",function(){return S}),n.d(t,"Z",function(){return J}),n.d(t,"_0",function(){return Y}),n.d(t,"Q",function(){return On}),n.d(t,"R",function(){return Kn}),n.d(t,"S",function(){return Ko}),n.d(t,"T",function(){return tn}),n.d(t,"U",function(){return gr}),n.d(t,"V",function(){return Pn}),n.d(t,"_2",function(){return Fn}),n.d(t,"_3",function(){return Rn}),n.d(t,"_5",function(){return or}),n.d(t,"_7",function(){return mr}),n.d(t,"_10",function(){return Rr}),n.d(t,"_11",function(){return Ur}),n.d(t,"_4",function(){return Nt}),n.d(t,"_6",function(){return jt}),n.d(t,"_8",function(){return Mt}),n.d(t,"X",function(){return re});var r=n("6Xbx"),o=n("AP4T"),i=n("2kLc"),l=n("URbD"),s=n("TO51"),a=function(){function e(e){this._desc=e,this.ngMetadataName="InjectionToken"}return e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(),u="__paramaters__";function c(e,t,n){var r=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e){var r=e.apply(void 0,t);for(var o in r)this[o]=r[o]}}}(t);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this instanceof o)return r.apply(this,e),this;var n,i=new((n=o).bind.apply(n,[void 0].concat(e)));return l.annotation=i,l;function l(e,t,n){for(var r=e.hasOwnProperty(u)?e[u]:Object.defineProperty(e,u,{value:[]})[u];r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(i),e}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o}var p=function(){var e={Emulated:0,Native:1,None:2};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e}(),h=function(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},d=new h("5.2.2"),f=c("Inject",function(e){return{token:e}}),y=c("Optional"),g=c("Self"),m=c("SkipSelf"),v="undefined"!=typeof window&&window,_="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,b=v||"undefined"!=typeof e&&e||_,w=null;function C(){if(!w){var e=b.Symbol;if(e&&e.iterator)w=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(w=r)}}return w}function E(e){Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function x(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function S(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(S).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function T(e){return e.__forward_ref__=T,e.toString=function(){return S(this())},e}function k(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")&&e.__forward_ref__===T?e():e}var O="__source",P=new Object,A=function(){function e(){}return e.prototype.get=function(e,t){if(void 0===t&&(t=P),t===P)throw new Error("NullInjectorError: No provider for "+S(e)+"!");return t},e}(),V=function(){function e(){}return e.create=function(e,t){return Array.isArray(e)?new B(e,t):new B(e.providers,e.parent,e.name||null)},e.THROW_IF_NOT_FOUND=P,e.NULL=new A,e}(),I=function(e){return e},N=[],j=I,M=function(){return Array.prototype.slice.call(arguments)},D={},R=function(e){for(var t in e)if(e[t]===D)return t;throw Error("!prop")}({provide:String,useValue:D}),F=V.NULL,L=/\n/gm,U="\u0275",B=function(){function e(e,t,n){void 0===t&&(t=F),void 0===n&&(n=null),this.parent=t,this.source=n;var r=this._records=new Map;r.set(V,{token:V,fn:I,deps:N,value:this,useNew:!1}),function e(t,n){if(n)if((n=k(n))instanceof Array)for(var r=0;r<n.length;r++)e(t,n[r]);else{if("function"==typeof n)throw z("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw z("Unexpected provider",n);var o=k(n.provide),i=function(e){var t=function(e){var t=N,n=e.deps;if(n&&n.length){t=[];for(var r=0;r<n.length;r++){var o=6;if((a=k(n[r]))instanceof Array)for(var i=0,l=a;i<l.length;i++){var s=l[i];s instanceof y||s==y?o|=1:s instanceof m||s==m?o&=-3:s instanceof g||s==g?o&=-5:a=s instanceof f?s.token:k(s)}t.push({token:a,options:o})}}else if(e.useExisting){var a;t=[{token:a=k(e.useExisting),options:6}]}else if(!(n||R in e))throw z("'deps' required",e);return t}(e),n=I,r=N,o=!1,i=k(e.provide);if(R in e)r=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)o=!0,n=k(e.useClass);else{if("function"!=typeof i)throw z("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);o=!0,n=i}return{deps:t,fn:n,useNew:o,value:r}}(n);if(!0===n.multi){var l=t.get(o);if(l){if(l.fn!==M)throw H(o)}else t.set(o,l={token:n.provide,deps:[],useNew:!1,fn:M,value:N});l.deps.push({token:o=n,options:6})}var s=t.get(o);if(s&&s.fn==M)throw H(o);t.set(o,i)}}(r,e)}return e.prototype.get=function(e,t){var n=this._records.get(e);try{return function e(t,n,r,o,i){try{return function(t,n,r,o,i){var l,s;if(n){if((l=n.value)==j)throw Error(U+"Circular dependency");if(l===N){n.value=j;var a=n.useNew,u=n.fn,c=n.deps,p=N;if(c.length){p=[];for(var h=0;h<c.length;h++){var d=c[h],f=d.options,y=2&f?r.get(d.token):void 0;p.push(e(d.token,y,r,y||4&f?o:F,1&f?null:V.THROW_IF_NOT_FOUND))}}n.value=l=a?new((s=u).bind.apply(s,[void 0].concat(p))):u.apply(void 0,p)}}else l=o.get(t,i);return l}(t,n,r,o,i)}catch(e){throw e instanceof Error||(e=new Error(e)),(e.ngTempTokenPath=e.ngTempTokenPath||[]).unshift(t),n&&n.value==j&&(n.value=N),e}}(e,n,this._records,this.parent,t)}catch(t){var r=t.ngTempTokenPath;throw e[O]&&r.unshift(e[O]),t.message=q("\n"+t.message,r,this.source),t.ngTokenPath=r,t.ngTempTokenPath=null,t}},e.prototype.toString=function(){var e=[];return this._records.forEach(function(t,n){return e.push(S(n))}),"StaticInjector["+e.join(", ")+"]"},e}();function H(e){return z("Cannot mix multi providers and regular providers",e)}function q(e,t,n){void 0===n&&(n=null),e=e&&"\n"===e.charAt(0)&&e.charAt(1)==U?e.substr(2):e;var r=S(t);if(t instanceof Array)r=t.map(S).join(" -> ");else if("object"==typeof t){var o=[];for(var i in t)if(t.hasOwnProperty(i)){var l=t[i];o.push(i+":"+("string"==typeof l?JSON.stringify(l):S(l)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+e.replace(L,"\n ")}function z(e,t){return new Error(q(e,t))}var Q="ngDebugContext",G="ngOriginalError",K="ngErrorLogger";function W(e){return e[Q]}function Z(e){return e[G]}function $(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e.error.apply(e,t)}var X=function(){function e(){this._console=console}return e.prototype.handleError=function(e){var t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e[K]||$}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)},e.prototype._findContext=function(e){return e?W(e)?W(e):this._findContext(Z(e)):null},e.prototype._findOriginalError=function(e){for(var t=Z(e);t&&Z(t);)t=Z(t);return t},e}();function Y(e){return!!e&&"function"==typeof e.then}function J(e){return!!e&&"function"==typeof e.subscribe}Function;var ee=new a("Application Initializer"),te=function(){function e(e){var t=this;this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,n){t.resolve=e,t.reject=n})}return e.prototype.runInitializers=function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var o=this.appInits[r]();Y(o)&&t.push(o)}Promise.all(t).then(function(){n()}).catch(function(t){e.reject(t)}),0===t.length&&n(),this.initialized=!0}},e}(),ne=new a("AppId");function re(){return""+oe()+oe()+oe()}function oe(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var ie=new a("Platform Initializer"),le=new a("Platform ID"),se=new a("appBootstrapListener"),ae=function(){function e(){}return e.prototype.log=function(e){console.log(e)},e.prototype.warn=function(e){console.warn(e)},e.ctorParameters=function(){return[]},e}();function ue(){throw new Error("Runtime compiler is not loaded")}var ce=function(){function e(){}return e.prototype.compileModuleSync=function(e){throw ue()},e.prototype.compileModuleAsync=function(e){throw ue()},e.prototype.compileModuleAndAllComponentsSync=function(e){throw ue()},e.prototype.compileModuleAndAllComponentsAsync=function(e){throw ue()},e.prototype.clearCache=function(){},e.prototype.clearCacheFor=function(e){},e}(),pe=function(){},he=function(){};function de(e){var t=Error("No component factory found for "+S(e)+". Did you add it to @NgModule.entryComponents?");return t[ge]=e,t}var fe,ye,ge="ngComponent",me=function(){function e(){}return e.prototype.resolveComponentFactory=function(e){throw de(e)},e}(),ve=function(){function e(){}return e.NULL=new me,e}(),_e=function(){function e(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(var r=0;r<e.length;r++){var o=e[r];this._factories.set(o.componentType,o)}}return e.prototype.resolveComponentFactory=function(e){var t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw de(e);return new be(t,this._ngModule)},e}(),be=function(e){function t(t,n){var r=e.call(this)||this;return r.factory=t,r.ngModule=n,r.selector=t.selector,r.componentType=t.componentType,r.ngContentSelectors=t.ngContentSelectors,r.inputs=t.inputs,r.outputs=t.outputs,r}return Object(r.b)(t,e),t.prototype.create=function(e,t,n,r){return this.factory.create(e,t,n,r||this.ngModule)},t}(he),we=function(){},Ce=function(){var e=b.wtf;return!(!e||!(fe=e.trace)||(ye=fe.events,0))}();function Ee(e,t){return null}var xe=Ce?function(e,t){return void 0===t&&(t=null),ye.createScope(e,t)}:function(e,t){return Ee},Se=Ce?function(e,t){return fe.leaveScope(e,t),t}:function(e,t){return t},Te=function(e){function t(t){void 0===t&&(t=!1);var n=e.call(this)||this;return n.__isAsync=t,n}return Object(r.b)(t,e),t.prototype.emit=function(t){e.prototype.next.call(this,t)},t.prototype.subscribe=function(t,n,r){var o,i=function(e){return null},l=function(){return null};return t&&"object"==typeof t?(o=this.__isAsync?function(e){setTimeout(function(){return t.next(e)})}:function(e){t.next(e)},t.error&&(i=this.__isAsync?function(e){setTimeout(function(){return t.error(e)})}:function(e){t.error(e)}),t.complete&&(l=this.__isAsync?function(){setTimeout(function(){return t.complete()})}:function(){t.complete()})):(o=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)},n&&(i=this.__isAsync?function(e){setTimeout(function(){return n(e)})}:function(e){n(e)}),r&&(l=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),e.prototype.subscribe.call(this,o,i,l)},t}(s.a),ke=function(){function e(e){var t,n=e.enableLongStackTrace,r=void 0!==n&&n;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Te(!1),this.onMicrotaskEmpty=new Te(!1),this.onStable=new Te(!1),this.onError=new Te(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),r&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(t=this)._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,r,o,i,l){try{return Ve(t),e.invokeTask(r,o,i,l)}finally{Ie(t)}},onInvoke:function(e,n,r,o,i,l,s){try{return Ve(t),e.invoke(r,o,i,l,s)}finally{Ie(t)}},onHasTask:function(e,n,r,o){e.hasTask(r,o),n===r&&("microTask"==o.change?(t.hasPendingMicrotasks=o.microTask,Ae(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:function(e,n,r,o){return e.handleError(r,o),t.runOutsideAngular(function(){return t.onError.emit(o)}),!1}})}return e.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},e.assertInAngularZone=function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},e.assertNotInAngularZone=function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},e.prototype.run=function(e,t,n){return this._inner.run(e,t,n)},e.prototype.runTask=function(e,t,n,r){var o=this._inner,i=o.scheduleEventTask("NgZoneEvent: "+r,e,Pe,Oe,Oe);try{return o.runTask(i,t,n)}finally{o.cancelTask(i)}},e.prototype.runGuarded=function(e,t,n){return this._inner.runGuarded(e,t,n)},e.prototype.runOutsideAngular=function(e){return this._outer.run(e)},e}();function Oe(){}var Pe={};function Ae(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(function(){return e.onStable.emit(null)})}finally{e.isStable=!0}}}function Ve(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ie(e){e._nesting--,Ae(e)}var Ne=function(){function e(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Te,this.onMicrotaskEmpty=new Te,this.onStable=new Te,this.onError=new Te}return e.prototype.run=function(e){return e()},e.prototype.runGuarded=function(e){return e()},e.prototype.runOutsideAngular=function(e){return e()},e.prototype.runTask=function(e){return e()},e}(),je=function(){function e(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return e.prototype._watchAngularEvents=function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.subscribe({next:function(){ke.assertNotInAngularZone(),E(function(){e._isZoneStable=!0,e._runCallbacksIfReady()})}})})},e.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},e.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},e.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},e.prototype._runCallbacksIfReady=function(){var e=this;this.isStable()?E(function(){for(;0!==e._callbacks.length;)e._callbacks.pop()(e._didWork);e._didWork=!1}):this._didWork=!0},e.prototype.whenStable=function(e){this._callbacks.push(e),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findProviders=function(e,t,n){return[]},e}(),Me=function(){function e(){this._applications=new Map,Fe.addToWindow(this)}return e.prototype.registerApplication=function(e,t){this._applications.set(e,t)},e.prototype.unregisterApplication=function(e){this._applications.delete(e)},e.prototype.unregisterAllApplications=function(){this._applications.clear()},e.prototype.getTestability=function(e){return this._applications.get(e)||null},e.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},e.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},e.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),Fe.findTestabilityInTree(this,e,t)},e.ctorParameters=function(){return[]},e}();function De(e){Fe=e}var Re,Fe=new(function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}()),Le=!0,Ue=!1,Be=new a("AllowMultipleToken");function He(){if(Ue)throw new Error("Cannot enable prod mode after platform setup.");Le=!1}function qe(){return Ue=!0,Le}var ze=function(e,t){this.name=e,this.token=t};function Qe(e,t,n){void 0===n&&(n=[]);var r="Platform: "+t,o=new a(r);return function(t){void 0===t&&(t=[]);var i=Ge();if(!i||i.injector.get(Be,!1))if(e)e(n.concat(t).concat({provide:o,useValue:!0}));else{var l=n.concat(t).concat({provide:o,useValue:!0});!function(e){if(Re&&!Re.destroyed&&!Re.injector.get(Be,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Re=e.get(Ke);var t=e.get(ie,null);t&&t.forEach(function(e){return e()})}(V.create({providers:l,name:r}))}return function(e){var t=Ge();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(o)}}function Ge(){return Re&&!Re.destroyed?Re:null}var Ke=function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return e.prototype.bootstrapModuleFactory=function(e,t){var n,r=this,o="noop"===(n=t?t.ngZone:void 0)?new Ne:("zone.js"===n?void 0:n)||new ke({enableLongStackTrace:qe()}),i=[{provide:ke,useValue:o}];return o.run(function(){var t=V.create({providers:i,parent:r.injector,name:e.moduleType.name}),n=e.create(t),l=n.injector.get(X,null);if(!l)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return $e(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(e){l.handleError(e)}})}),function(e,t,o){try{var i=((l=n.injector.get(te)).runInitializers(),l.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return Y(i)?i.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):i}catch(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}var l}(l,o)})},e.prototype.bootstrapModule=function(e,t){var n=this;void 0===t&&(t=[]);var r=this.injector.get(pe),o=We({},t);return r.createCompiler([o]).compileModuleAsync(e).then(function(e){return n.bootstrapModuleFactory(e,o)})},e.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(Ze);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+S(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}();function We(e,t){return Array.isArray(t)?t.reduce(We,e):Object(r.a)({},e,t)}var Ze=function(){function e(e,t,n,r,s,a){var u=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=s,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=qe(),this._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run(function(){u.tick()})}});var c=new o.a(function(e){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular(function(){e.next(u._stable),e.complete()})}),p=new o.a(function(e){var t;u._zone.runOutsideAngular(function(){t=u._zone.onStable.subscribe(function(){ke.assertNotInAngularZone(),E(function(){u._stable||u._zone.hasPendingMacrotasks||u._zone.hasPendingMicrotasks||(u._stable=!0,e.next(!0))})})});var n=u._zone.onUnstable.subscribe(function(){ke.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(i.a)(c,l.a.call(p))}return e.prototype.bootstrap=function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof he?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var o=n instanceof be?null:this._injector.get(we),i=n.create(V.NULL,[],t||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var l=i.injector.get(je,null);return l&&i.injector.get(Me).registerApplication(i.location.nativeElement,l),this._loadComponent(i),qe()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},e.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,Se(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;$e(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(se,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),$e(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=xe("ApplicationRef#tick()"),e}();function $e(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var Xe=function(){},Ye=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),Je=function(){},et=function(e){this.nativeElement=e},tt=function(){function e(){this.dirty=!0,this._results=[],this.changes=new Te}return e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[C()]=function(){return this._results[C()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function e(t){return t.reduce(function(t,n){var r=Array.isArray(n)?e(n):n;return t.concat(r)},[])}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}(),nt=function(){},rt=function(){},ot=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof it?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),it=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=t,o}return Object(r.b)(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,r=this,o=this.childNodes.indexOf(e);-1!==o&&((n=this.childNodes).splice.apply(n,[o+1,0].concat(t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=r}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return lt(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return st(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(ot);function lt(e,t,n){e.childNodes.forEach(function(e){e instanceof it&&(t(e)&&n.push(e),lt(e,t,n))})}function st(e,t,n){e instanceof it&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof it&&st(e,t,n)})}var at=new Map;function ut(e){return at.get(e)||null}function ct(e){at.set(e.nativeNode,e)}function pt(e,t){var n=ft(e),r=ft(t);return n&&r?function(e,t,n){for(var r=e[C()](),o=t[C()]();;){var i=r.next(),l=o.next();if(i.done&&l.done)return!0;if(i.done||l.done)return!1;if(!n(i.value,l.value))return!1}}(e,t,pt):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||x(e,t)}var ht=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e.unwrap=function(t){return e.isWrapped(t)?t.wrapped:t},e.isWrapped=function(t){return t instanceof e},e}(),dt=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}();function ft(e){return!!yt(e)&&(Array.isArray(e)||!(e instanceof Map)&&C()in e)}function yt(e){return null!==e&&("function"==typeof e||"object"==typeof e)}var gt=function(){function e(){}return e.prototype.supports=function(e){return ft(e)},e.prototype.create=function(e){return new vt(e)},e}(),mt=function(e,t){return t},vt=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||mt}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,o=null;t||n;){var i=!n||t&&t.currentIndex<Ct(n,r,o)?t:n,l=Ct(i,r,o),s=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(t=t._next,null==i.previousIndex)r++;else{o||(o=[]);var a=l-r,u=s-r;if(a!=u){for(var c=0;c<a;c++){var p=c<o.length?o[c]:o[c]=0,h=p+c;u<=h&&h<a&&(o[c]=p+1)}o[i.previousIndex]=u-a}}l!==s&&e(i,l,s)}},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachMovedItem=function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.forEachIdentityChange=function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)},e.prototype.diff=function(e){if(null==e&&(e=[]),!ft(e))throw new Error("Error trying to diff '"+S(e)+"'. Only arrays and iterables are allowed");return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n,r,o,i=this._itHead,l=!1;if(Array.isArray(e)){this.length=e.length;for(var s=0;s<this.length;s++)o=this._trackByFn(s,r=e[s]),null!==i&&x(i.trackById,o)?(l&&(i=this._verifyReinsertion(i,r,o,s)),x(i.item,r)||this._addIdentityChange(i,r)):(i=this._mismatch(i,r,o,s),l=!0),i=i._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var r=e[C()](),o=void 0;!(o=r.next()).done;)t(o.value)}(e,function(e){o=t._trackByFn(n,e),null!==i&&x(i.trackById,o)?(l&&(i=t._verifyReinsertion(i,e,o,n)),x(i.item,e)||t._addIdentityChange(i,e)):(i=t._mismatch(i,e,o,n),l=!0),i=i._next,n++}),this.length=n;return this._truncate(i),this.collection=e,this.isDirty},Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),e.prototype._reset=function(){if(this.isDirty){var e=void 0,t=void 0;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},e.prototype._mismatch=function(e,t,n,r){var o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(x(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,o,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(x(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,o,r)):e=this._addAfter(new _t(t,n),o,r),e},e.prototype._verifyReinsertion=function(e,t,n,r){var o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e},e.prototype._truncate=function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},e.prototype._reinsertAfter=function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var r=e._prevRemoved,o=e._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._moveAfter=function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._addAfter=function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e},e.prototype._insertAfter=function(e,t,n){var r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new wt),this._linkedRecords.put(e),e.currentIndex=n,e},e.prototype._remove=function(e){return this._addToRemovals(this._unlink(e))},e.prototype._unlink=function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e},e.prototype._addToMoves=function(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)},e.prototype._addToRemovals=function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new wt),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e},e.prototype._addIdentityChange=function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e},e}(),_t=function(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null},bt=function(){function e(){this._head=null,this._tail=null}return e.prototype.add=function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)},e.prototype.get=function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&x(n.trackById,e))return n;return null},e.prototype.remove=function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head},e}(),wt=function(){function e(){this.map=new Map}return e.prototype.put=function(e){var t=e.trackById,n=this.map.get(t);n||(n=new bt,this.map.set(t,n)),n.add(e)},e.prototype.get=function(e,t){var n=this.map.get(e);return n?n.get(e,t):null},e.prototype.remove=function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e}();function Ct(e,t,n){var r=e.previousIndex;if(null===r)return r;var o=0;return n&&r<n.length&&(o=n[r]),r+t+o}var Et=function(){function e(){}return e.prototype.supports=function(e){return e instanceof Map||yt(e)},e.prototype.create=function(){return new xt},e}(),xt=function(){function e(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),e.prototype.forEachItem=function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachChangedItem=function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.diff=function(e){if(e){if(!(e instanceof Map||yt(e)))throw new Error("Error trying to diff '"+S(e)+"'. Only maps and objects are allowed")}else e=new Map;return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,function(e,r){if(n&&n.key===r)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var o=t._getOrCreateRecordForKey(r,e);n=t._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},e.prototype._insertBeforeOrAppend=function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null},e.prototype._getOrCreateRecordForKey=function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var r=n._prev,o=n._next;return r&&(r._next=o),o&&(o._prev=r),n._next=null,n._prev=null,n}var i=new St(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i},e.prototype._reset=function(){if(this.isDirty){var e=void 0;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},e.prototype._maybeAddToChanges=function(e,t){x(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))},e.prototype._addToAdditions=function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)},e.prototype._addToChanges=function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)},e.prototype._forEach=function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(n){return t(e[n],n)})},e}(),St=function(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null},Tt=function(){function e(e){this.factories=e}return e.create=function(t,n){if(null!=n){var r=n.factories.slice();return new e(t=t.concat(r))}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new m,new y]]}},e.prototype.find=function(e){var t,n=this.factories.find(function(t){return t.supports(e)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((t=e).name||typeof t)+"'")},e}(),kt=function(){function e(e){this.factories=e}return e.create=function(t,n){if(n){var r=n.factories.slice();t=t.concat(r)}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new m,new y]]}},e.prototype.find=function(e){var t=this.factories.find(function(t){return t.supports(e)});if(t)return t;throw new Error("Cannot find a differ supporting object '"+e+"'")},e}(),Ot=[new Et],Pt=new Tt([new gt]),At=new kt(Ot),Vt=Qe(null,"core",[{provide:le,useValue:"unknown"},{provide:Ke,deps:[V]},{provide:Me,deps:[]},{provide:ae,deps:[]}]),It=new a("LocaleId");function Nt(){return Pt}function jt(){return At}function Mt(e){return e||"en-US"}var Dt=function(e){},Rt=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}(),Ft=function(){};function Lt(e,t,n){var r=e.state,o=1792&r;return o===t?(e.state=-1793&r|n,e.initIndex=-1,!0):o===n}function Ut(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function Bt(e,t){return e.nodes[t]}function Ht(e,t){return e.nodes[t]}function qt(e,t){return e.nodes[t]}function zt(e,t){return e.nodes[t]}function Qt(e,t){return e.nodes[t]}var Gt={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};function Kt(e,t,n,r){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+t+"'. Current value: '"+n+"'.";return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){var n=new Error(e);return Wt(n,t),n}(o,e)}function Wt(e,t){e[Q]=t,e[K]=t.logError.bind(t)}function Zt(e){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+e)}var $t=function(){},Xt=new Map;function Yt(e){var t=Xt.get(e);return t||(t=S(e)+"_"+Xt.size,Xt.set(e,t)),t}var Jt="$$undefined",en="$$empty";function tn(e){return{id:Jt,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}var nn=0;function rn(e,t,n,r){return!(!(2&e.state)&&x(e.oldValues[t.bindingIndex+n],r))}function on(e,t,n,r){return!!rn(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function ln(e,t,n,r){var o=e.oldValues[t.bindingIndex+n];if(1&e.state||!pt(o,r)){var i=t.bindings[t.bindingIndex].name;throw Kt(Gt.createDebugContext(e,t.nodeIndex),i+": "+o,i+": "+r,0!=(1&e.state))}}function sn(e){for(var t=e;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function an(e,t){for(var n=e;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function un(e,t,n,r){try{return sn(33554432&e.def.nodes[t].flags?Ht(e,t).componentView:e),Gt.handleEvent(e,t,n,r)}catch(t){e.root.errorHandler.handleError(t)}}function cn(e){return e.parent?Ht(e.parent,e.parentNodeDef.nodeIndex):null}function pn(e){return e.parent?e.parentNodeDef.parent:null}function hn(e,t){switch(201347067&t.flags){case 1:return Ht(e,t.nodeIndex).renderElement;case 2:return Bt(e,t.nodeIndex).renderText}}function dn(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function fn(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function yn(e){var t={},n=0,r={};return e&&e.forEach(function(e){var o=e[0],i=e[1];"number"==typeof o?(t[o]=i,n|=function(e){return 1<<e%32}(o)):r[o]=i}),{matchedQueries:t,references:r,matchedQueryIds:n}}function gn(e,t){return e.map(function(e){var n,r;return Array.isArray(e)?(r=e[0],n=e[1]):(r=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,O,{value:t,configurable:!0}),{flags:r,token:n,tokenKey:Yt(n)}})}function mn(e,t,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===p.Native?Ht(e,n.renderParent.nodeIndex).renderElement:void 0:t}var vn=new WeakMap;function _n(e){var t=vn.get(e);return t||((t=e(function(){return $t})).factory=e,vn.set(e,t)),t}function bn(e,t,n,r,o){3===t&&(n=e.renderer.parentNode(hn(e,e.def.lastRenderRootNode))),wn(e,t,0,e.def.nodes.length-1,n,r,o)}function wn(e,t,n,r,o,i,l){for(var s=n;s<=r;s++){var a=e.def.nodes[s];11&a.flags&&En(e,a,t,o,i,l),s+=a.childCount}}function Cn(e,t,n,r,o,i){for(var l=e;l&&!dn(l);)l=l.parent;for(var s=l.parent,a=pn(l),u=a.nodeIndex+a.childCount,c=a.nodeIndex+1;c<=u;c++){var p=s.def.nodes[c];p.ngContentIndex===t&&En(s,p,n,r,o,i),c+=p.childCount}if(!s.parent){var h=e.root.projectableNodes[t];if(h)for(c=0;c<h.length;c++)xn(e,h[c],n,r,o,i)}}function En(e,t,n,r,o,i){if(8&t.flags)Cn(e,t.ngContent.index,n,r,o,i);else{var l=hn(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&xn(e,l,n,r,o,i),32&t.bindingFlags&&xn(Ht(e,t.nodeIndex).componentView,l,n,r,o,i)):xn(e,l,n,r,o,i),16777216&t.flags)for(var s=Ht(e,t.nodeIndex).viewContainer._embeddedViews,a=0;a<s.length;a++)bn(s[a],n,r,o,i);1&t.flags&&!t.element.name&&wn(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,o,i)}}function xn(e,t,n,r,o,i){var l=e.renderer;switch(n){case 1:l.appendChild(r,t);break;case 2:l.insertBefore(r,t,o);break;case 3:l.removeChild(r,t);break;case 0:i.push(t)}}var Sn=/^:([^:]+):(.+)$/;function Tn(e){if(":"===e[0]){var t=e.match(Sn);return[t[1],t[2]]}return["",e]}function kn(e){for(var t=0,n=0;n<e.length;n++)t|=e[n].flags;return t}function On(e,t,n,r,o,i){e|=1;var l=yn(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:l.matchedQueries,matchedQueryIds:l.matchedQueryIds,references:l.references,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?_n(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||$t},provider:null,text:null,query:null,ngContent:null}}function Pn(e,t,n,r,o,i,l,s,a,u,c,h){void 0===l&&(l=[]),u||(u=$t);var d=yn(n),f=d.matchedQueries,y=d.references,g=d.matchedQueryIds,m=null,v=null;i&&(m=(V=Tn(i))[0],v=V[1]),s=s||[];for(var _=new Array(s.length),b=0;b<s.length;b++){var w=s[b],C=w[0],E=w[2],x=Tn(w[1]),S=x[0],T=x[1],k=void 0,O=void 0;switch(15&C){case 4:O=E;break;case 1:case 8:k=E}_[b]={flags:C,ns:S,name:T,nonMinifiedName:T,securityContext:k,suffix:O}}a=a||[];var P=new Array(a.length);for(b=0;b<a.length;b++){var A=a[b];P[b]={type:0,target:A[0],eventName:A[1],propName:null}}var V,I=(l=l||[]).map(function(e){var t=e[1],n=Tn(e[0]);return[n[0],n[1],t]});return h=function(e){if(e&&e.id===Jt){var t=null!=e.encapsulation&&e.encapsulation!==p.None||e.styles.length||Object.keys(e.data).length;e.id=t?"c"+nn++:en}return e&&e.id===en&&(e=null),e||null}(h),c&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:f,matchedQueryIds:g,references:y,ngContentIndex:r,childCount:o,bindings:_,bindingFlags:kn(_),outputs:P,element:{ns:m,name:v,attrs:I,template:null,componentProvider:null,componentView:c||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:u||$t},provider:null,text:null,query:null,ngContent:null}}function An(e,t,n){var r,o=n.element,i=e.root.selectorOrNode,l=e.renderer;if(e.parent||!i){r=o.name?l.createElement(o.name,o.ns):l.createComment("");var s=mn(e,t,n);s&&l.appendChild(s,r)}else r=l.selectRootElement(i);if(o.attrs)for(var a=0;a<o.attrs.length;a++){var u=o.attrs[a];l.setAttribute(r,u[1],u[2],u[0])}return r}function Vn(e,t,n,r){for(var o=0;o<n.outputs.length;o++){var i=n.outputs[o],l=In(e,n.nodeIndex,(p=i.eventName,(c=i.target)?c+":"+p:p)),s=i.target,a=e;"component"===i.target&&(s=null,a=t);var u=a.renderer.listen(s||r,i.eventName,l);e.disposables[n.outputIndex+o]=u}var c,p}function In(e,t,n){return function(r){return un(e,t,n,r)}}function Nn(e,t,n,r){if(!on(e,t,n,r))return!1;var o=t.bindings[n],i=Ht(e,t.nodeIndex),l=i.renderElement,s=o.name;switch(15&o.flags){case 1:!function(e,t,n,r,o,i){var l=t.securityContext,s=l?e.root.sanitizer.sanitize(l,i):i;s=null!=s?s.toString():null;var a=e.renderer;null!=i?a.setAttribute(n,o,s,r):a.removeAttribute(n,o,r)}(e,o,l,o.ns,s,r);break;case 2:!function(e,t,n,r){var o=e.renderer;r?o.addClass(t,n):o.removeClass(t,n)}(e,l,s,r);break;case 4:!function(e,t,n,r,o){var i=e.root.sanitizer.sanitize(Rt.STYLE,o);if(null!=i){i=i.toString();var l=t.suffix;null!=l&&(i+=l)}else i=null;var s=e.renderer;null!=i?s.setStyle(n,r,i):s.removeStyle(n,r)}(e,o,l,s,r);break;case 8:!function(e,t,n,r,o){var i=t.securityContext,l=i?e.root.sanitizer.sanitize(i,o):o;e.renderer.setProperty(n,r,l)}(33554432&t.flags&&32&o.flags?i.componentView:e,o,l,s,r)}return!0}var jn=new Object,Mn=Yt(V),Dn=Yt(we);function Rn(e,t,n,r){return n=k(n),{index:-1,deps:gn(r,S(t)),flags:e,token:t,value:n}}function Fn(e){for(var t={},n=0;n<e.length;n++){var r=e[n];r.index=n,t[Yt(r.token)]=r}return{factory:null,providersByKey:t,providers:e}}function Ln(e,t,n){if(void 0===n&&(n=V.THROW_IF_NOT_FOUND),8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);var r=t.tokenKey;switch(r){case Mn:case Dn:return e}var o=e._def.providersByKey[r];if(o){var i=e._providers[o.index];return void 0===i&&(i=e._providers[o.index]=Un(e,o)),i===jn?void 0:i}return e._parent.get(t.token,n)}function Un(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var r=n.length;switch(r){case 0:return new t;case 1:return new t(Ln(e,n[0]));case 2:return new t(Ln(e,n[0]),Ln(e,n[1]));case 3:return new t(Ln(e,n[0]),Ln(e,n[1]),Ln(e,n[2]));default:for(var o=new Array(r),i=0;i<r;i++)o[i]=Ln(e,n[i]);return new(t.bind.apply(t,[void 0].concat(o)))}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){var r=n.length;switch(r){case 0:return t();case 1:return t(Ln(e,n[0]));case 2:return t(Ln(e,n[0]),Ln(e,n[1]));case 3:return t(Ln(e,n[0]),Ln(e,n[1]),Ln(e,n[2]));default:for(var o=Array(r),i=0;i<r;i++)o[i]=Ln(e,n[i]);return t.apply(void 0,o)}}(e,t.value,t.deps);break;case 2048:n=Ln(e,t.deps[0]);break;case 256:n=t.value}return void 0===n?jn:n}function Bn(e,t){var n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,Qn(n,t),Gt.dirtyParentQueries(r),qn(r),r}function Hn(e,t,n){var r=t?hn(t,t.def.lastRenderRootNode):e.renderElement;bn(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function qn(e){bn(e,3,null,null,void 0)}function zn(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Qn(e,t){t>=e.length-1?e.pop():e.splice(t,1)}var Gn=new Object;function Kn(e,t,n,r,o,i){return new Wn(e,t,n,r,o,i)}var Wn=function(e){function t(t,n,r,o,i,l){var s=e.call(this)||this;return s.selector=t,s.componentType=n,s._inputs=o,s._outputs=i,s.ngContentSelectors=l,s.viewDefFactory=r,s}return Object(r.b)(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var o=_n(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,l=Gt.createRootView(e,t||[],n,o,r,Gn),s=qt(l,i).instance;return n&&l.renderer.setAttribute(Ht(l,0).renderElement,"ng-version",d.full),new Zn(l,new Jn(l),s)},t}(he),Zn=function(e){function t(t,n,r){var o=e.call(this)||this;return o._view=t,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return Object(r.b)(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new et(Ht(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new rr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(function(){});function $n(e,t,n){return new Xn(e,t,n)}var Xn=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new et(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new rr(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=pn(e),e=e.parent;return e?new rr(e,t):new rr(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=Bn(this._data,e);Gt.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new Jn(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,o){var i=n||this.parentInjector;o||e instanceof be||(o=i.get(we));var l=e.create(i,r,void 0,o);return this.insert(l.hostView,t),l},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,l=e;return o=l._view,i=(n=this._data).viewContainer._embeddedViews,null!==(r=t)&&void 0!==r||(r=i.length),o.viewContainerParent=this._view,zn(i,r,o),function(e,t){var n=cn(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,t.parentNodeDef)}}(n,o),Gt.dirtyParentQueries(o),Hn(n,r>0?i[r-1]:null,o),l.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,l,s=this._embeddedViews.indexOf(e._view);return o=t,l=(i=(n=this._data).viewContainer._embeddedViews)[r=s],Qn(i,r),null==o&&(o=i.length),zn(i,o,l),Gt.dirtyParentQueries(l),qn(l),Hn(n,o>0?i[o-1]:null,l),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=Bn(this._data,e);t&&Gt.destroyView(t)},e.prototype.detach=function(e){var t=Bn(this._data,e);return t?new Jn(t):null},e}();function Yn(e){return new Jn(e)}var Jn=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return bn(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){sn(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Gt.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){Gt.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Gt.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,qn(this._view),Gt.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function er(e,t){return new tr(e,t)}var tr=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return Object(r.b)(t,e),t.prototype.createEmbeddedView=function(e){return new Jn(Gt.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new et(Ht(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(nt);function nr(e,t){return new rr(e,t)}var rr=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=V.THROW_IF_NOT_FOUND),Gt.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Yt(e)},t)},e}();function or(e,t){var n=e.def.nodes[t];if(1&n.flags){var r=Ht(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Bt(e,n.nodeIndex).renderText;if(20240&n.flags)return qt(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+t)}function ir(e){return new lr(e.renderer)}var lr=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=Tn(t),r=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,r),r},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n<t.length;n++)this.delegate.appendChild(e,t[n])},e.prototype.attachViewAfter=function(e,t){for(var n=this.delegate.parentNode(e),r=this.delegate.nextSibling(e),o=0;o<t.length;o++)this.delegate.insertBefore(n,t[o],r)},e.prototype.detachView=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},e.prototype.destroyView=function(e,t){for(var n=0;n<t.length;n++)this.delegate.destroyNode(t[n])},e.prototype.listen=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.listenGlobal=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.setElementProperty=function(e,t,n){this.delegate.setProperty(e,t,n)},e.prototype.setElementAttribute=function(e,t,n){var r=Tn(t),o=r[0],i=r[1];null!=n?this.delegate.setAttribute(e,i,n,o):this.delegate.removeAttribute(e,i,o)},e.prototype.setBindingDebugInfo=function(e,t,n){},e.prototype.setElementClass=function(e,t,n){n?this.delegate.addClass(e,t):this.delegate.removeClass(e,t)},e.prototype.setElementStyle=function(e,t,n){null!=n?this.delegate.setStyle(e,t,n):this.delegate.removeStyle(e,t)},e.prototype.invokeElementMethod=function(e,t,n){e[t].apply(e,n)},e.prototype.setText=function(e,t){this.delegate.setValue(e,t)},e.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},e}();function sr(e,t,n,r){return new ar(e,t,n,r)}var ar=function(){function e(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){for(var t=e._def,n=e._providers=new Array(t.providers.length),r=0;r<t.providers.length;r++){var o=t.providers[r];4096&o.flags||(n[r]=Un(e,o))}}(this)}return e.prototype.get=function(e,t){return void 0===t&&(t=V.THROW_IF_NOT_FOUND),Ln(this,{token:e,tokenKey:Yt(e),flags:0},t)},Object.defineProperty(e.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentFactoryResolver",{get:function(){return this.get(ve)},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+S(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function(e,t){for(var n=e._def,r=0;r<n.providers.length;r++)if(131072&n.providers[r].flags){var o=e._providers[r];o&&o!==jn&&o.ngOnDestroy()}}(this),this._destroyListeners.forEach(function(e){return e()})},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},e}(),ur=Yt(function(){}),cr=Yt(Je),pr=Yt(et),hr=Yt(rt),dr=Yt(nt),fr=Yt(function(){}),yr=Yt(V);function gr(e,t,n,r,o,i,l,s){var a=[];if(l)for(var u in l){var c=l[u];a[c[0]]={flags:8,name:u,nonMinifiedName:c[1],ns:null,securityContext:null,suffix:null}}var p=[];if(s)for(var h in s)p.push({type:1,propName:h,target:null,eventName:s[h]});return vr(e,t|=16384,n,r,o,o,i,a,p)}function mr(e,t,n,r,o){return vr(-1,e,t,0,n,r,o)}function vr(e,t,n,r,o,i,l,s,a){var u=yn(n),c=u.matchedQueries,p=u.references,h=u.matchedQueryIds;a||(a=[]),s||(s=[]),i=k(i);var d=gn(l,S(o));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:h,references:p,ngContentIndex:-1,childCount:r,bindings:s,bindingFlags:kn(s),outputs:a,element:null,provider:{token:o,value:i,deps:d},text:null,query:null,ngContent:null}}function _r(e,t){return Er(e,t)}function br(e,t){for(var n=e;n.parent&&!dn(n);)n=n.parent;return xr(n.parent,pn(n),!0,t.provider.value,t.provider.deps)}function wr(e,t){var n=xr(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r<t.outputs.length;r++){var o=t.outputs[r],i=n[o.propName].subscribe(Cr(e,t.parent.nodeIndex,o.eventName));e.disposables[t.outputIndex+r]=i.unsubscribe.bind(i)}return n}function Cr(e,t,n){return function(r){return un(e,t,n,r)}}function Er(e,t){var n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return xr(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(Tr(e,t,n,o[0]));case 2:return r(Tr(e,t,n,o[0]),Tr(e,t,n,o[1]));case 3:return r(Tr(e,t,n,o[0]),Tr(e,t,n,o[1]),Tr(e,t,n,o[2]));default:for(var l=Array(i),s=0;s<i;s++)l[s]=Tr(e,t,n,o[s]);return r.apply(void 0,l)}}(e,t.parent,n,r.value,r.deps);case 2048:return Tr(e,t.parent,n,r.deps[0]);case 256:return r.value}}function xr(e,t,n,r,o){var i=o.length;switch(i){case 0:return new r;case 1:return new r(Tr(e,t,n,o[0]));case 2:return new r(Tr(e,t,n,o[0]),Tr(e,t,n,o[1]));case 3:return new r(Tr(e,t,n,o[0]),Tr(e,t,n,o[1]),Tr(e,t,n,o[2]));default:for(var l=new Array(i),s=0;s<i;s++)l[s]=Tr(e,t,n,o[s]);return new(r.bind.apply(r,[void 0].concat(l)))}}var Sr={};function Tr(e,t,n,r,o){if(void 0===o&&(o=V.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var i=e;2&r.flags&&(o=null);var l=r.tokenKey;for(l===fr&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);e;){if(t)switch(l){case ur:return ir(kr(e,t,n));case cr:return kr(e,t,n).renderer;case pr:return new et(Ht(e,t.nodeIndex).renderElement);case hr:return Ht(e,t.nodeIndex).viewContainer;case dr:if(t.element.template)return Ht(e,t.nodeIndex).template;break;case fr:return Yn(kr(e,t,n));case yr:return nr(e,t);default:var s=(n?t.element.allProviders:t.element.publicProviders)[l];if(s){var a=qt(e,s.nodeIndex);return a||(a={instance:Er(e,s)},e.nodes[s.nodeIndex]=a),a.instance}}n=dn(e),t=pn(e),e=e.parent}var u=i.root.injector.get(r.token,Sr);return u!==Sr||o===Sr?u:i.root.ngModule.injector.get(r.token,o)}function kr(e,t,n){var r;if(n)r=Ht(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!dn(r);)r=r.parent;return r}function Or(e,t,n,r,o,i){if(32768&n.flags){var l=Ht(e,n.parent.nodeIndex).componentView;2&l.def.flags&&(l.state|=8)}if(t.instance[n.bindings[r].name]=o,524288&n.flags){i=i||{};var s=ht.unwrap(e.oldValues[n.bindingIndex+r]);i[n.bindings[r].nonMinifiedName]=new dt(s,o,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=o,i}function Pr(e,t){if(e.def.nodeFlags&t)for(var n=e.def.nodes,r=0,o=0;o<n.length;o++){var i=n[o],l=i.parent;for(!l&&i.flags&t&&Vr(e,o,i.flags&t,r++),0==(i.childFlags&t)&&(o+=i.childCount);l&&1&l.flags&&o===l.nodeIndex+l.childCount;)l.directChildFlags&t&&(r=Ar(e,l,t,r)),l=l.parent}}function Ar(e,t,n,r){for(var o=t.nodeIndex+1;o<=t.nodeIndex+t.childCount;o++){var i=e.def.nodes[o];i.flags&n&&Vr(e,o,i.flags&n,r++),o+=i.childCount}return r}function Vr(e,t,n,r){var o=qt(e,t);if(o){var i=o.instance;i&&(Gt.setCurrentNode(e,t),1048576&n&&Ut(e,512,r)&&i.ngAfterContentInit(),2097152&n&&i.ngAfterContentChecked(),4194304&n&&Ut(e,768,r)&&i.ngAfterViewInit(),8388608&n&&i.ngAfterViewChecked(),131072&n&&i.ngOnDestroy())}}function Ir(e){for(var t=e.def.nodeMatchedQueries;e.parent&&fn(e);){var n=e.parentNodeDef;e=e.parent;for(var r=n.nodeIndex+n.childCount,o=0;o<=r;o++)67108864&(i=e.def.nodes[o]).flags&&536870912&i.flags&&(i.query.filterId&t)===i.query.filterId&&Qt(e,o).setDirty(),!(1&i.flags&&o+i.childCount<n.nodeIndex)&&67108864&i.childFlags&&536870912&i.childFlags||(o+=i.childCount)}if(134217728&e.def.nodeFlags)for(o=0;o<e.def.nodes.length;o++){var i;134217728&(i=e.def.nodes[o]).flags&&536870912&i.flags&&Qt(e,o).setDirty(),o+=i.childCount}}function Nr(e,t){var n=Qt(e,t.nodeIndex);if(n.dirty){var r,o=void 0;if(67108864&t.flags){var i=t.parent.parent;o=jr(e,i.nodeIndex,i.nodeIndex+i.childCount,t.query,[]),r=qt(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(o=jr(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(o);for(var l=t.query.bindings,s=!1,a=0;a<l.length;a++){var u=l[a],c=void 0;switch(u.bindingType){case 0:c=n.first;break;case 1:c=n,s=!0}r[u.propName]=c}s&&n.notifyOnChanges()}}function jr(e,t,n,r,o){for(var i=t;i<=n;i++){var l=e.def.nodes[i],s=l.matchedQueries[r.id];if(null!=s&&o.push(Mr(e,l,s)),1&l.flags&&l.element.template&&(l.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var a=Ht(e,i);if((l.childMatchedQueries&r.filterId)===r.filterId&&(jr(e,i+1,i+l.childCount,r,o),i+=l.childCount),16777216&l.flags)for(var u=a.viewContainer._embeddedViews,c=0;c<u.length;c++){var p=u[c],h=cn(p);h&&h===a&&jr(p,0,p.def.nodes.length-1,r,o)}var d=a.template._projectedViews;if(d)for(c=0;c<d.length;c++){var f=d[c];jr(f,0,f.def.nodes.length-1,r,o)}}(l.childMatchedQueries&r.filterId)!==r.filterId&&(i+=l.childCount)}return o}function Mr(e,t,n){if(null!=n)switch(n){case 1:return Ht(e,t.nodeIndex).renderElement;case 0:return new et(Ht(e,t.nodeIndex).renderElement);case 2:return Ht(e,t.nodeIndex).template;case 3:return Ht(e,t.nodeIndex).viewContainer;case 4:return qt(e,t.nodeIndex).instance}}function Dr(e,t,n){var r=mn(e,t,n);r&&Cn(e,n.ngContent.index,1,r,null,void 0)}function Rr(e,t,n){for(var r=new Array(n.length-1),o=1;o<n.length;o++)r[o-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[o]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function Fr(e,t,n){var r,o=e.renderer;r=o.createText(n.text.prefix);var i=mn(e,t,n);return i&&o.appendChild(i,r),{renderText:r}}function Lr(e,t){return(null!=e?e.toString():"")+t.suffix}function Ur(e,t,n,r){for(var o=0,i=0,l=0,s=0,a=0,u=null,c=null,p=!1,h=!1,d=null,f=0;f<t.length;f++){var y=t[f];if(y.nodeIndex=f,y.parent=u,y.bindingIndex=o,y.outputIndex=i,y.renderParent=c,l|=y.flags,a|=y.matchedQueryIds,y.element){var g=y.element;g.publicProviders=u?u.element.publicProviders:Object.create(null),g.allProviders=g.publicProviders,p=!1,h=!1,y.element.template&&(a|=y.element.template.nodeMatchedQueries)}if(Hr(u,y,t.length),o+=y.bindings.length,i+=y.outputs.length,!c&&3&y.flags&&(d=y),20224&y.flags){p||(p=!0,u.element.publicProviders=Object.create(u.element.publicProviders),u.element.allProviders=u.element.publicProviders);var m=0!=(32768&y.flags);0==(8192&y.flags)||m?u.element.publicProviders[Yt(y.provider.token)]=y:(h||(h=!0,u.element.allProviders=Object.create(u.element.publicProviders)),u.element.allProviders[Yt(y.provider.token)]=y),m&&(u.element.componentProvider=y)}if(u?(u.childFlags|=y.flags,u.directChildFlags|=y.flags,u.childMatchedQueries|=y.matchedQueryIds,y.element&&y.element.template&&(u.childMatchedQueries|=y.element.template.nodeMatchedQueries)):s|=y.flags,y.childCount>0)u=y,Br(y)||(c=y);else for(;u&&f===u.nodeIndex+u.childCount;){var v=u.parent;v&&(v.childFlags|=u.childFlags,v.childMatchedQueries|=u.childMatchedQueries),c=(u=v)&&Br(u)?u.renderParent:u}}return{factory:null,nodeFlags:l,rootNodeFlags:s,nodeMatchedQueries:a,flags:e,nodes:t,updateDirectives:n||$t,updateRenderer:r||$t,handleEvent:function(e,n,r,o){return t[n].element.handleEvent(e,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:d}}function Br(e){return 0!=(1&e.flags)&&null===e.element.name}function Hr(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var o=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=o&&t.nodeIndex+t.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function qr(e,t,n,r){var o=Gr(e.root,e.renderer,e,t,n);return Kr(o,e.component,r),Wr(o),o}function zr(e,t,n){var r=Gr(e,e.renderer,null,null,t);return Kr(r,n,n),Wr(r),r}function Qr(e,t,n,r){var o,i=t.element.componentRendererType;return o=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,Gr(e.root,o,e,t.element.componentProvider,n)}function Gr(e,t,n,r,o){var i=new Array(o.nodes.length),l=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:l,initIndex:-1}}function Kr(e,t,n){e.component=t,e.context=n}function Wr(e){var t;dn(e)&&(t=Ht(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,o=0;o<n.nodes.length;o++){var i=n.nodes[o];Gt.setCurrentNode(e,o);var l=void 0;switch(201347067&i.flags){case 1:var s=An(e,t,i),a=void 0;if(33554432&i.flags){var u=_n(i.element.componentView);a=Gt.createComponentView(e,i,u,s)}Vn(e,a,i,s),l={renderElement:s,componentView:a,viewContainer:null,template:i.element.template?er(e,i):void 0},16777216&i.flags&&(l.viewContainer=$n(e,i,l));break;case 2:l=Fr(e,t,i);break;case 512:case 1024:case 2048:case 256:(l=r[o])||4096&i.flags||(l={instance:_r(e,i)});break;case 16:l={instance:br(e,i)};break;case 16384:(l=r[o])||(l={instance:wr(e,i)}),32768&i.flags&&Kr(Ht(e,i.parent.nodeIndex).componentView,l.instance,l.instance);break;case 32:case 64:case 128:l={value:void 0};break;case 67108864:case 134217728:l=new tt;break;case 8:Dr(e,t,i),l=void 0}r[o]=l}ro(e,no.CreateViewNodes),so(e,201326592,268435456,0)}function Zr(e){Yr(e),Gt.updateDirectives(e,1),oo(e,no.CheckNoChanges),Gt.updateRenderer(e,1),ro(e,no.CheckNoChanges),e.state&=-97}function $r(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,Lt(e,0,256),Yr(e),Gt.updateDirectives(e,0),oo(e,no.CheckAndUpdate),so(e,67108864,536870912,0);var t=Lt(e,256,512);Pr(e,2097152|(t?1048576:0)),Gt.updateRenderer(e,0),ro(e,no.CheckAndUpdate),so(e,134217728,536870912,0),Pr(e,8388608|((t=Lt(e,512,768))?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,Lt(e,768,1024)}function Xr(e,t,n,r,o,i,l,s,a,u,c,p,h){return 0===n?function(e,t,n,r,o,i,l,s,a,u,c,p){switch(201347067&t.flags){case 1:return function(e,t,n,r,o,i,l,s,a,u,c,p){var h=t.bindings.length,d=!1;return h>0&&Nn(e,t,0,n)&&(d=!0),h>1&&Nn(e,t,1,r)&&(d=!0),h>2&&Nn(e,t,2,o)&&(d=!0),h>3&&Nn(e,t,3,i)&&(d=!0),h>4&&Nn(e,t,4,l)&&(d=!0),h>5&&Nn(e,t,5,s)&&(d=!0),h>6&&Nn(e,t,6,a)&&(d=!0),h>7&&Nn(e,t,7,u)&&(d=!0),h>8&&Nn(e,t,8,c)&&(d=!0),h>9&&Nn(e,t,9,p)&&(d=!0),d}(e,t,n,r,o,i,l,s,a,u,c,p);case 2:return function(e,t,n,r,o,i,l,s,a,u,c,p){var h=!1,d=t.bindings,f=d.length;if(f>0&&on(e,t,0,n)&&(h=!0),f>1&&on(e,t,1,r)&&(h=!0),f>2&&on(e,t,2,o)&&(h=!0),f>3&&on(e,t,3,i)&&(h=!0),f>4&&on(e,t,4,l)&&(h=!0),f>5&&on(e,t,5,s)&&(h=!0),f>6&&on(e,t,6,a)&&(h=!0),f>7&&on(e,t,7,u)&&(h=!0),f>8&&on(e,t,8,c)&&(h=!0),f>9&&on(e,t,9,p)&&(h=!0),h){var y=t.text.prefix;f>0&&(y+=Lr(n,d[0])),f>1&&(y+=Lr(r,d[1])),f>2&&(y+=Lr(o,d[2])),f>3&&(y+=Lr(i,d[3])),f>4&&(y+=Lr(l,d[4])),f>5&&(y+=Lr(s,d[5])),f>6&&(y+=Lr(a,d[6])),f>7&&(y+=Lr(u,d[7])),f>8&&(y+=Lr(c,d[8])),f>9&&(y+=Lr(p,d[9]));var g=Bt(e,t.nodeIndex).renderText;e.renderer.setValue(g,y)}return h}(e,t,n,r,o,i,l,s,a,u,c,p);case 16384:return function(e,t,n,r,o,i,l,s,a,u,c,p){var h=qt(e,t.nodeIndex),d=h.instance,f=!1,y=void 0,g=t.bindings.length;return g>0&&rn(e,t,0,n)&&(f=!0,y=Or(e,h,t,0,n,y)),g>1&&rn(e,t,1,r)&&(f=!0,y=Or(e,h,t,1,r,y)),g>2&&rn(e,t,2,o)&&(f=!0,y=Or(e,h,t,2,o,y)),g>3&&rn(e,t,3,i)&&(f=!0,y=Or(e,h,t,3,i,y)),g>4&&rn(e,t,4,l)&&(f=!0,y=Or(e,h,t,4,l,y)),g>5&&rn(e,t,5,s)&&(f=!0,y=Or(e,h,t,5,s,y)),g>6&&rn(e,t,6,a)&&(f=!0,y=Or(e,h,t,6,a,y)),g>7&&rn(e,t,7,u)&&(f=!0,y=Or(e,h,t,7,u,y)),g>8&&rn(e,t,8,c)&&(f=!0,y=Or(e,h,t,8,c,y)),g>9&&rn(e,t,9,p)&&(f=!0,y=Or(e,h,t,9,p,y)),y&&d.ngOnChanges(y),65536&t.flags&&Ut(e,256,t.nodeIndex)&&d.ngOnInit(),262144&t.flags&&d.ngDoCheck(),f}(e,t,n,r,o,i,l,s,a,u,c,p);case 32:case 64:case 128:return function(e,t,n,r,o,i,l,s,a,u,c,p){var h=t.bindings,d=!1,f=h.length;if(f>0&&on(e,t,0,n)&&(d=!0),f>1&&on(e,t,1,r)&&(d=!0),f>2&&on(e,t,2,o)&&(d=!0),f>3&&on(e,t,3,i)&&(d=!0),f>4&&on(e,t,4,l)&&(d=!0),f>5&&on(e,t,5,s)&&(d=!0),f>6&&on(e,t,6,a)&&(d=!0),f>7&&on(e,t,7,u)&&(d=!0),f>8&&on(e,t,8,c)&&(d=!0),f>9&&on(e,t,9,p)&&(d=!0),d){var y=zt(e,t.nodeIndex),g=void 0;switch(201347067&t.flags){case 32:g=new Array(h.length),f>0&&(g[0]=n),f>1&&(g[1]=r),f>2&&(g[2]=o),f>3&&(g[3]=i),f>4&&(g[4]=l),f>5&&(g[5]=s),f>6&&(g[6]=a),f>7&&(g[7]=u),f>8&&(g[8]=c),f>9&&(g[9]=p);break;case 64:g={},f>0&&(g[h[0].name]=n),f>1&&(g[h[1].name]=r),f>2&&(g[h[2].name]=o),f>3&&(g[h[3].name]=i),f>4&&(g[h[4].name]=l),f>5&&(g[h[5].name]=s),f>6&&(g[h[6].name]=a),f>7&&(g[h[7].name]=u),f>8&&(g[h[8].name]=c),f>9&&(g[h[9].name]=p);break;case 128:var m=n;switch(f){case 1:g=m.transform(n);break;case 2:g=m.transform(r);break;case 3:g=m.transform(r,o);break;case 4:g=m.transform(r,o,i);break;case 5:g=m.transform(r,o,i,l);break;case 6:g=m.transform(r,o,i,l,s);break;case 7:g=m.transform(r,o,i,l,s,a);break;case 8:g=m.transform(r,o,i,l,s,a,u);break;case 9:g=m.transform(r,o,i,l,s,a,u,c);break;case 10:g=m.transform(r,o,i,l,s,a,u,c,p)}}y.value=g}return d}(e,t,n,r,o,i,l,s,a,u,c,p);default:throw"unreachable"}}(e,t,r,o,i,l,s,a,u,c,p,h):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,o=0;o<n.length;o++)Nn(e,t,o,n[o])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){for(var r=t.bindings,o=!1,i=0;i<n.length;i++)on(e,t,i,n[i])&&(o=!0);if(o){var l="";for(i=0;i<n.length;i++)l+=Lr(n[i],r[i]);l=t.text.prefix+l;var s=Bt(e,t.nodeIndex).renderText;e.renderer.setValue(s,l)}return o}(e,t,n);case 16384:return function(e,t,n){for(var r=qt(e,t.nodeIndex),o=r.instance,i=!1,l=void 0,s=0;s<n.length;s++)rn(e,t,s,n[s])&&(i=!0,l=Or(e,r,t,s,n[s],l));return l&&o.ngOnChanges(l),65536&t.flags&&Ut(e,256,t.nodeIndex)&&o.ngOnInit(),262144&t.flags&&o.ngDoCheck(),i}(e,t,n);case 32:case 64:case 128:return function(e,t,n){for(var r=t.bindings,o=!1,i=0;i<n.length;i++)on(e,t,i,n[i])&&(o=!0);if(o){var l=zt(e,t.nodeIndex),s=void 0;switch(201347067&t.flags){case 32:s=n;break;case 64:for(s={},i=0;i<n.length;i++)s[r[i].name]=n[i];break;case 128:var a=n[0],u=n.slice(1);s=a.transform.apply(a,u)}l.value=s}return o}(e,t,n);default:throw"unreachable"}}(e,t,r)}function Yr(e){var t=e.def;if(4&t.nodeFlags)for(var n=0;n<t.nodes.length;n++){var r=t.nodes[n];if(4&r.flags){var o=Ht(e,n).template._projectedViews;if(o)for(var i=0;i<o.length;i++){var l=o[i];l.state|=32,an(l,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function Jr(e,t,n,r,o,i,l,s,a,u,c,p,h){return 0===n?function(e,t,n,r,o,i,l,s,a,u,c,p){var h=t.bindings.length;h>0&&ln(e,t,0,n),h>1&&ln(e,t,1,r),h>2&&ln(e,t,2,o),h>3&&ln(e,t,3,i),h>4&&ln(e,t,4,l),h>5&&ln(e,t,5,s),h>6&&ln(e,t,6,a),h>7&&ln(e,t,7,u),h>8&&ln(e,t,8,c),h>9&&ln(e,t,9,p)}(e,t,r,o,i,l,s,a,u,c,p,h):function(e,t,n){for(var r=0;r<n.length;r++)ln(e,t,r,n[r])}(e,t,r),!1}function eo(e,t){if(Qt(e,t.nodeIndex).dirty)throw Kt(Gt.createDebugContext(e,t.nodeIndex),"Query "+t.query.id+" not dirty","Query "+t.query.id+" dirty",0!=(1&e.state))}function to(e){if(!(128&e.state)){if(oo(e,no.Destroy),ro(e,no.Destroy),Pr(e,131072),e.disposables)for(var t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(16&e.state){var t=cn(e);if(t){var n=t.template._projectedViews;n&&(Qn(n,n.indexOf(e)),Gt.dirtyParentQueries(e))}}}(e),e.renderer.destroyNode&&function(e){for(var t=e.def.nodes.length,n=0;n<t;n++){var r=e.def.nodes[n];1&r.flags?e.renderer.destroyNode(Ht(e,n).renderElement):2&r.flags?e.renderer.destroyNode(Bt(e,n).renderText):(67108864&r.flags||134217728&r.flags)&&Qt(e,n).destroy()}}(e),dn(e)&&e.renderer.destroy(),e.state|=128}}var no=function(){var e={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};return e[e.CreateViewNodes]="CreateViewNodes",e[e.CheckNoChanges]="CheckNoChanges",e[e.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",e[e.Destroy]="Destroy",e}();function ro(e,t){var n=e.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];33554432&o.flags?io(Ht(e,r).componentView,t):0==(33554432&o.childFlags)&&(r+=o.childCount)}}function oo(e,t){var n=e.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];if(16777216&o.flags)for(var i=Ht(e,r).viewContainer._embeddedViews,l=0;l<i.length;l++)io(i[l],t);else 0==(16777216&o.childFlags)&&(r+=o.childCount)}}function io(e,t){var n=e.state;switch(t){case no.CheckNoChanges:0==(128&n)&&(12==(12&n)?Zr(e):64&n&&lo(e,no.CheckNoChangesProjectedViews));break;case no.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Zr(e):64&n&&lo(e,t));break;case no.CheckAndUpdate:0==(128&n)&&(12==(12&n)?$r(e):64&n&&lo(e,no.CheckAndUpdateProjectedViews));break;case no.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?$r(e):64&n&&lo(e,t));break;case no.Destroy:to(e);break;case no.CreateViewNodes:Wr(e)}}function lo(e,t){oo(e,t),ro(e,t)}function so(e,t,n,r){if(e.def.nodeFlags&t&&e.def.nodeFlags&n)for(var o=e.def.nodes.length,i=0;i<o;i++){var l=e.def.nodes[i];if(l.flags&t&&l.flags&n)switch(Gt.setCurrentNode(e,l.nodeIndex),r){case 0:Nr(e,l);break;case 1:eo(e,l)}l.childFlags&t&&l.childFlags&n||(i+=l.childCount)}}var ao=!1;function uo(e,t,n,r,o,i){return zr(po(e,o,o.injector.get(Xe),t,n),r,i)}function co(e,t,n,r,o,i){var l=o.injector.get(Xe),s=po(e,o,new Qo(l),t,n),a=wo(r);return qo(Ao.create,zr,null,[s,a,i])}function po(e,t,n,r,o){var i=t.injector.get(Ft),l=t.injector.get(X);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:o,sanitizer:i,rendererFactory:n,renderer:n.createRenderer(null,null),errorHandler:l}}function ho(e,t,n,r){var o=wo(n);return qo(Ao.create,qr,null,[e,t,o,r])}function fo(e,t,n,r){return n=mo.get(t.element.componentProvider.provider.token)||wo(n),qo(Ao.create,Qr,null,[e,t,n,r])}function yo(e,t,n,r){return sr(e,t,n,function(e){var t=function(e){var t=!1,n=!1;return 0===go.size?{hasOverrides:t,hasDeprecatedOverrides:n}:(e.providers.forEach(function(e){var r=go.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),{hasOverrides:t,hasDeprecatedOverrides:n})}(e),n=t.hasDeprecatedOverrides;return t.hasOverrides?(function(e){for(var t=0;t<e.providers.length;t++){var r=e.providers[t];n&&(r.flags|=4096);var o=go.get(r.token);o&&(r.flags=-3841&r.flags|o.flags,r.deps=gn(o.deps),r.value=o.value)}}(e=e.factory(function(){return $t})),e):e}(r))}var go=new Map,mo=new Map;function vo(e){go.set(e.token,e)}function _o(e,t){var n=_n(_n(t.viewDefFactory).nodes[0].element.componentView);mo.set(e,n)}function bo(){go.clear(),mo.clear()}function wo(e){if(0===go.size)return e;var t=function(e){for(var t=[],n=null,r=0;r<e.nodes.length;r++){var o=e.nodes[r];1&o.flags&&(n=o),n&&3840&o.flags&&go.has(o.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(function(){return $t});for(var n=0;n<t.length;n++)r(e,t[n]);return e;function r(e,t){for(var n=t+1;n<e.nodes.length;n++){var r=e.nodes[n];if(1&r.flags)return;if(3840&r.flags){var o=r.provider,i=go.get(o.token);i&&(r.flags=-3841&r.flags|i.flags,o.deps=gn(i.deps),o.value=i.value)}}}}function Co(e,t,n,r,o,i,l,s,a,u,c,p,h){var d=e.def.nodes[t];return Xr(e,d,n,r,o,i,l,s,a,u,c,p,h),224&d.flags?zt(e,t).value:void 0}function Eo(e,t,n,r,o,i,l,s,a,u,c,p,h){var d=e.def.nodes[t];return Jr(e,d,n,r,o,i,l,s,a,u,c,p,h),224&d.flags?zt(e,t).value:void 0}function xo(e){return qo(Ao.detectChanges,$r,null,[e])}function So(e){return qo(Ao.checkNoChanges,Zr,null,[e])}function To(e){return qo(Ao.destroy,to,null,[e])}var ko,Oo,Po,Ao=function(){var e={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};return e[e.create]="create",e[e.detectChanges]="detectChanges",e[e.checkNoChanges]="checkNoChanges",e[e.destroy]="destroy",e[e.handleEvent]="handleEvent",e}();function Vo(e,t){Oo=e,Po=t}function Io(e,t,n,r){return Vo(e,t),qo(Ao.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function No(e,t){if(128&e.state)throw Zt(Ao[ko]);return Vo(e,Lo(e,0)),e.def.updateDirectives(function(e,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var l=e.def.nodes[n];return 0===t?Mo(e,l,r,o):Do(e,l,r,o),16384&l.flags&&Vo(e,Lo(e,n)),224&l.flags?zt(e,l.nodeIndex).value:void 0},e)}function jo(e,t){if(128&e.state)throw Zt(Ao[ko]);return Vo(e,Uo(e,0)),e.def.updateRenderer(function(e,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var l=e.def.nodes[n];return 0===t?Mo(e,l,r,o):Do(e,l,r,o),3&l.flags&&Vo(e,Uo(e,n)),224&l.flags?zt(e,l.nodeIndex).value:void 0},e)}function Mo(e,t,n,r){if(Xr.apply(void 0,[e,t,n].concat(r))){var o=1===n?r[0]:r;if(16384&t.flags){for(var i={},l=0;l<t.bindings.length;l++){var s=t.bindings[l],a=o[l];8&s.flags&&(i[(h=s.nonMinifiedName,"ng-reflect-"+(h=h.replace(/[$@]/g,"_").replace(Ro,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"-"+e[1].toLowerCase()})))]=Fo(a))}var u=t.parent,c=Ht(e,u.nodeIndex).renderElement;if(u.element.name)for(var p in i)null!=(a=i[p])?e.renderer.setAttribute(c,p,a):e.renderer.removeAttribute(c,p);else e.renderer.setValue(c,"bindings="+JSON.stringify(i,null,2))}}var h}function Do(e,t,n,r){Jr.apply(void 0,[e,t,n].concat(r))}var Ro=/([A-Z])/g;function Fo(e){try{return null!=e?e.toString().slice(0,30):e}catch(e){return"[ERROR] Exception while trying to serialize the value"}}function Lo(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function Uo(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}var Bo=function(){function e(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];for(var n=this.nodeDef,r=e;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=pn(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(e.prototype,"elOrCompView",{get:function(){return Ht(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return nr(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){var e=[];if(this.elDef)for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){var e={};if(this.elDef){Ho(this.elView,this.elDef,e);for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&Ho(this.elView,n,e),t+=n.childCount}}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentRenderElement",{get:function(){var e=function(e){for(;e&&!dn(e);)e=e.parent;return e.parent?Ht(e.parent,pn(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?hn(this.view,this.nodeDef):hn(this.elView,this.elDef)},enumerable:!0,configurable:!0}),e.prototype.logError=function(e){for(var t,n,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];2&this.nodeDef.flags?(t=this.view.def,n=this.nodeDef.nodeIndex):(t=this.elView.def,n=this.elDef.nodeIndex);var i=function(e,t){for(var n=-1,r=0;r<=t;r++)3&e.nodes[r].flags&&n++;return n}(t,n),l=-1;t.factory(function(){return++l===i?(t=e.error).bind.apply(t,[e].concat(r)):$t;var t}),l<i&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error.apply(e,r))},e}();function Ho(e,t,n){for(var r in t.references)n[r]=Mr(e,t,t.references[r])}function qo(e,t,n,r){var o=ko,i=Oo,l=Po;try{ko=e;var s=t.apply(n,r);return Oo=i,Po=l,ko=o,s}catch(e){if(W(e)||!Oo)throw e;throw function(e,t){return e instanceof Error||(e=new Error(e.toString())),Wt(e,t),e}(e,zo())}}function zo(){return Oo?new Bo(Oo,Po):null}var Qo=function(){function e(e){this.delegate=e}return e.prototype.createRenderer=function(e,t){return new Go(this.delegate.createRenderer(e,t))},e.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},e.prototype.end=function(){this.delegate.end&&this.delegate.end()},e.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},e}(),Go=function(){function e(e){this.delegate=e,this.data=this.delegate.data}return e.prototype.destroyNode=function(e){!function(e){at.delete(e.nativeNode)}(ut(e)),this.delegate.destroyNode&&this.delegate.destroyNode(e)},e.prototype.destroy=function(){this.delegate.destroy()},e.prototype.createElement=function(e,t){var n=this.delegate.createElement(e,t),r=zo();if(r){var o=new it(n,null,r);o.name=e,ct(o)}return n},e.prototype.createComment=function(e){var t=this.delegate.createComment(e),n=zo();return n&&ct(new ot(t,null,n)),t},e.prototype.createText=function(e){var t=this.delegate.createText(e),n=zo();return n&&ct(new ot(t,null,n)),t},e.prototype.appendChild=function(e,t){var n=ut(e),r=ut(t);n&&r&&n instanceof it&&n.addChild(r),this.delegate.appendChild(e,t)},e.prototype.insertBefore=function(e,t,n){var r=ut(e),o=ut(t),i=ut(n);r&&o&&r instanceof it&&r.insertBefore(i,o),this.delegate.insertBefore(e,t,n)},e.prototype.removeChild=function(e,t){var n=ut(e),r=ut(t);n&&r&&n instanceof it&&n.removeChild(r),this.delegate.removeChild(e,t)},e.prototype.selectRootElement=function(e){var t=this.delegate.selectRootElement(e),n=zo();return n&&ct(new it(t,null,n)),t},e.prototype.setAttribute=function(e,t,n,r){var o=ut(e);o&&o instanceof it&&(o.attributes[r?r+":"+t:t]=n),this.delegate.setAttribute(e,t,n,r)},e.prototype.removeAttribute=function(e,t,n){var r=ut(e);r&&r instanceof it&&(r.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)},e.prototype.addClass=function(e,t){var n=ut(e);n&&n instanceof it&&(n.classes[t]=!0),this.delegate.addClass(e,t)},e.prototype.removeClass=function(e,t){var n=ut(e);n&&n instanceof it&&(n.classes[t]=!1),this.delegate.removeClass(e,t)},e.prototype.setStyle=function(e,t,n,r){var o=ut(e);o&&o instanceof it&&(o.styles[t]=n),this.delegate.setStyle(e,t,n,r)},e.prototype.removeStyle=function(e,t,n){var r=ut(e);r&&r instanceof it&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)},e.prototype.setProperty=function(e,t,n){var r=ut(e);r&&r instanceof it&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)},e.prototype.listen=function(e,t,n){if("string"!=typeof e){var r=ut(e);r&&r.listeners.push(new function(e,t){this.name=e,this.callback=t}(t,n))}return this.delegate.listen(e,t,n)},e.prototype.parentNode=function(e){return this.delegate.parentNode(e)},e.prototype.nextSibling=function(e){return this.delegate.nextSibling(e)},e.prototype.setValue=function(e,t){return this.delegate.setValue(e,t)},e}();function Ko(e,t,n){return new Zo(e,t,n)}var Wo,Zo=function(e){function t(t,n,r){var o=e.call(this)||this;return o.moduleType=t,o._bootstrapComponents=n,o._ngModuleDefFactory=r,o}return Object(r.b)(t,e),t.prototype.create=function(e){!function(){if(!ao){ao=!0;var e=qe()?{setCurrentNode:Vo,createRootView:co,createEmbeddedView:ho,createComponentView:fo,createNgModuleRef:yo,overrideProvider:vo,overrideComponentView:_o,clearOverrides:bo,checkAndUpdateView:xo,checkNoChangesView:So,destroyView:To,createDebugContext:function(e,t){return new Bo(e,t)},handleEvent:Io,updateDirectives:No,updateRenderer:jo}:{setCurrentNode:function(){},createRootView:uo,createEmbeddedView:qr,createComponentView:Qr,createNgModuleRef:sr,overrideProvider:$t,overrideComponentView:$t,clearOverrides:$t,checkAndUpdateView:$r,checkNoChangesView:Zr,destroyView:to,createDebugContext:function(e,t){return new Bo(e,t)},handleEvent:function(e,t,n,r){return e.def.handleEvent(e,t,n,r)},updateDirectives:function(e,t){return e.def.updateDirectives(0===t?Co:Eo,e)},updateRenderer:function(e,t){return e.def.updateRenderer(0===t?Co:Eo,e)}};Gt.setCurrentNode=e.setCurrentNode,Gt.createRootView=e.createRootView,Gt.createEmbeddedView=e.createEmbeddedView,Gt.createComponentView=e.createComponentView,Gt.createNgModuleRef=e.createNgModuleRef,Gt.overrideProvider=e.overrideProvider,Gt.overrideComponentView=e.overrideComponentView,Gt.clearOverrides=e.clearOverrides,Gt.checkAndUpdateView=e.checkAndUpdateView,Gt.checkNoChangesView=e.checkNoChangesView,Gt.destroyView=e.destroyView,Gt.resolveDep=Tr,Gt.createDebugContext=e.createDebugContext,Gt.handleEvent=e.handleEvent,Gt.updateDirectives=e.updateDirectives,Gt.updateRenderer=e.updateRenderer,Gt.dirtyParentQueries=Ir}}();var t=_n(this._ngModuleDefFactory);return Gt.createNgModuleRef(this.moduleType,e||V.NULL,this._bootstrapComponents,t)},t}(function(){});"undefined"==typeof ngDevMode&&("undefined"!=typeof window&&(window.ngDevMode=!0),"undefined"!=typeof self&&(self.ngDevMode=!0),"undefined"!=typeof e&&(e.ngDevMode=!0)),Wo=function(e,t,n){return{parent:Wo,id:null,node:null,data:[],ngStaticData:[],cleanup:null,renderer:null,child:null,tail:null,next:null,bindingStartIndex:null,creationMode:!0,viewHookStartIndex:null}}()}).call(t,n("fRUx"))},NGRF:function(e,t,n){"use strict";t.a=function(e){return null!=e&&"object"==typeof e}},TO51:function(e,t,n){"use strict";var r=n("6Xbx"),o=n("AP4T"),i=n("E9/g"),l=n("qLnt"),s=function(e){function t(){var t=e.call(this,"object unsubscribed");this.name=t.name="ObjectUnsubscribedError",this.stack=t.stack,this.message=t.message}return Object(r.b)(t,e),t}(Error),a=function(e){function t(t,n){e.call(this),this.subject=t,this.subscriber=n,this.closed=!1}return Object(r.b)(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(l.a),u=n("V7AE");n.d(t,"b",function(){return c}),n.d(t,"a",function(){return p});var c=function(e){function t(t){e.call(this,t),this.destination=t}return Object(r.b)(t,e),t}(i.a),p=function(e){function t(){e.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return Object(r.b)(t,e),t.prototype[u.a]=function(){return new c(this)},t.prototype.lift=function(e){var t=new h(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new s;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].next(e)},t.prototype.error=function(e){if(this.closed)throw new s;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new s;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new s;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new s;return this.hasError?(e.error(this.thrownError),l.a.EMPTY):this.isStopped?(e.complete(),l.a.EMPTY):(this.observers.push(e),new a(this,e))},t.prototype.asObservable=function(){var e=new o.a;return e.source=this,e},t.create=function(e,t){return new h(e,t)},t}(o.a),h=function(e){function t(t,n){e.call(this),this.destination=t,this.source=n}return Object(r.b)(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):l.a.EMPTY},t}(p)},URbD:function(e,t,n){"use strict";var r=n("6Xbx"),o=n("TO51"),i=n("AP4T"),l=n("E9/g"),s=n("qLnt");function a(){return function(e){return e.lift(new u(e))}}var u=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new c(e,n),o=t.subscribe(r);return r.closed||(r.connection=n.connect()),o},e}(),c=function(e){function t(t,n){e.call(this,t),this.connectable=n}return Object(r.b)(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(l.a),p=function(e){function t(t,n){e.call(this),this.source=t,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return Object(r.b)(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new s.a).add(this.source.subscribe(new d(this.getSubject(),this))),e.closed?(this._connection=null,e=s.a.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return a()(this)},t}(i.a).prototype,h={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:p._subscribe},_isComplete:{value:p._isComplete,writable:!0},getSubject:{value:p.getSubject},connect:{value:p.connect},refCount:{value:p.refCount}},d=function(e){function t(t,n){e.call(this,t),this.connectable=n}return Object(r.b)(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(o.b);function f(){return new o.a}t.a=function(){return this,a()((e=f,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,h);return r.source=t,r.subjectFactory=n,r})(this));var e}},V7AE:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("xIGM").a.Symbol,o="function"==typeof r&&"function"==typeof r.for?r.for("rxSubscriber"):"@@rxSubscriber"},YuZA:function(e,t){function n(e){return Promise.resolve().then(function(){throw new Error("Cannot find module '"+e+"'.")})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="YuZA"},cDNt:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r,o,i=n("LMZF"),l=function(){},s=function(){return function(e,t,n,r){this.lposition=0,this.cposition=0,this.arraybottom=n,this.arraytop=t,this.arrayfather=new Array,this.name=e,this.type="",this.text1="",this.relu=!1,this.reluname="",this.text2="",this.train=r}}(),a=function(e,t){this.x=e,this.y=t},u=function(){function e(){this.layerobj=new Array,this.title="app"}return e.prototype.setlayer=function(e){return this.layerobj=e,!0},e.prototype.getlayer=function(){return this.layerobj},e.prototype.settitle=function(e){return this.title=e,!0},e.prototype.gettitle=function(){return this.title},e.prototype.generatetrain=function(){for(var e='name: "'+this.title+'"\n',t=0,n=this.layerobj;t<n.length;t++){var r=n[t];if("label"!=r.name){e+="layer {\n",e+=' name: "'+r.name+'"\n',e+=' type: "'+r.type+'"\n';for(var o=0,i=r.arraybottom;o<i.length;o++)e+=' bottom: "'+i[o]+'"\n';for(var l=0,s=r.arraytop;l<s.length;l++)e+=' top: "'+s[l]+'"\n';r.train<2&&(e+=" include {\n",e+=1==r.train?" phase: TRAIN\n":" phase: TEST\n",e+=" }\n"),r.text1.length>0?(e+=r.text1,e+="\n}\n"):e+="}\n"}}return e},e}(),c="https://192.168.119.207:5000/",p=new Array,h=new Array,d=function(){function e(e){this.dataservice=e,this.layerobj=new Array,this.xhr=new XMLHttpRequest,this.prototxtvis=!1,this.lr_policy="inv",this.test_iter=50,this.test_interval=100,this.base_lr=.01,this.gamma=1e-4,this.power=.75,this.display=250,this.max_iter=500,this.momentum=.9,this.weight_decay=5e-4,this.mode="GPU",this.numlabel=0}return e.prototype.ngOnInit=function(){$("#mydrawingboard").height("400px"),o=new DrawingBoard.Board("mydrawingboard",{background:"#000000",color:"#fff",size:"30",webStorage:!1}),h=localStorage.getItem("label").split("\n"),document.getElementById("datanumber").innerText=h.length.toString(),console.log(h)},e.prototype.generatedeploy=function(){var e,t='name: "'+this.dataservice.gettitle()+'"\n';this.layerobj=this.dataservice.getlayer();for(var n=0,r=this.layerobj;n<r.length;n++){var o=r[n];if("label"!=o.name&&"SoftmaxWithLoss"!=o.type&&0!=o.train)if("Data"!=o.type){t+="layer {\n",t+=' name: "'+o.name+'"\n',e=o.name,t+=' type: "'+o.type+'"\n';for(var i=0,l=o.arraybottom;i<l.length;i++)t+=' bottom: "'+l[i]+'"\n';for(var s=0,a=o.arraytop;s<a.length;s++)t+=' top: "'+a[s]+'"\n';o.train<2&&(t+=" include {\n",t+=1==o.train?" phase: TRAIN\n":" phase: TEST\n",t+=" }\n"),o.text1.length>0?(t+=o.text1,t+="\n}\n"):t+="}\n"}else t+="layer {\n",t+=' name: "'+o.arraytop[0]+'"\n',t+=' type: "Input"\n',t+=' top: "'+o.arraytop[0]+'"\n',parseInt(o.text1.slice(o.text1.indexOf("batch_size")+11,o.text1.indexOf("backend")).replace(/\n/,"").trim()),t+=" input_param { shape: { dim: 1 dim: 1 dim: 28 dim: 28 } }\n",t+="}\n"}return t+'layer {\n name: "prob"\n type: "Softmax"\n bottom: "'+e+'"\n top: "prob"\n}\n'},e.prototype.download=function(){var e=this.dataservice.generatetrain(),t=new Blob([e]),n=document.createElement("a");n.setAttribute("href",window.URL.createObjectURL(t)),n.setAttribute("download","filename.txt"),n.style.visibility="hidden",document.body.appendChild(n),n.click(),document.body.removeChild(n)},e.prototype.editprototxt=function(){this.prototxtvis=!0},e.prototype.protosave=function(){void 0!=this.test_iter&&void 0!=this.test_interval&&void 0!=this.base_lr&&void 0!=this.lr_policy&&void 0!=this.gamma&&this.test_iter!=this.display&&void 0!=this.max_iter&&void 0!=this.momentum&&void 0!=this.weight_decay&&void 0!=this.max_iter&&("step"!=this.lr_policy&&"inv"!=this.lr_policy&&"multistep"!=this.lr_policy||void 0!=this.power)?this.prototxtvis=!1:alert("\u6709\u672a\u8f93\u5165\u7684\u9009\u9879\uff01")},e.prototype.generatesolver=function(){var e='net: "train.prototxt"\n';switch(e+="test_iter: "+this.test_iter+"\n",e+="test_interval: "+this.test_interval+"\n",e+="base_lr: "+this.base_lr+"\n",e+='lr_policy: "'+this.lr_policy+'"\n',e+="gamma: "+this.gamma+"\n",this.lr_policy){case"step":e+="stepsize: "+this.power+"\n";break;case"inv":e+="power: "+this.power+"\n";break;case"multistep":e+="stepvalue: "+this.power+"\n"}return e+="display: "+this.display+"\n",e+="max_iter: "+this.max_iter+"\n",e+="momentum: "+this.momentum+"\n",e+="weight_decay: "+this.weight_decay+"\n",e+="snapshot: "+this.max_iter+"\n",(e+='snapshot_prefix: "snapshot"\n')+"solver_mode: "+this.mode+"\n"},e.prototype.upload=function(){var e=new XMLHttpRequest,t=new XMLHttpRequest;r=!1;var n=this.dataservice.generatetrain(),o=(new FileReader,new XMLHttpRequest);o.onreadystatechange=function(){if(console.log(o.readyState),document.getElementById("networkstatus").innerText=4==o.readyState?"ready!":"processing~",!r&&4==o.readyState)if(200==o.status||304==o.status){p=new Array;var e=o.responseText.split("Iteration");e.splice(0,1);for(var t=0,n=e;t<n.length;t++){var i=n[t],l=0,s=0;i.indexOf("Test net output #0")>-1&&(l=parseInt(i.split(",")[0].trim()),s=parseFloat(i.split("Test net output #0: accuracy =")[1].split("\n")[0].trim()),p.push(new a(l,s)))}console.log(p[0].x);var u={top:20,right:20,bottom:20,left:50};d3.select("#visualisation").selectAll("g").remove(),d3.select("#visualisation").selectAll("path").remove();var c=d3.select("#visualisation").attr("width",500).attr("transform","translate("+u.left+",0)").attr("height",300),h=d3.scaleLinear().range([u.left,500-u.right]).domain([p[0].x,p[p.length-1].x]),d=d3.scaleLinear().range([300-u.top,u.bottom]).domain([0,1]),f=d3.axisBottom(h),y=d3.axisLeft(d);c.append("g").attr("transform","translate(0,"+(300-u.bottom)+")").call(f),c.append("g").attr("transform","translate("+u.left+",0)").call(y);var g=d3.line().x(function(e){return h(e.x)}).y(function(e){return d(e.y)});c.append("path").attr("d",g(p)).attr("stroke","green").attr("stroke-width",2).attr("fill","none"),console.log(p)}else alert("Request was unsuccessful:"+o.status)};var i=new FormData;i.set("solver",new File([this.generatesolver()],"solver.prototxt",{type:"text/plain"})),e.open("post",c+"getsolver",!0),e.send(i),i.set("deploy",new File([this.generatedeploy()],"deploy.prototxt",{type:"text/plain"})),t.open("post",c+"getdeploy",!0),t.send(i),i.set("infile",new File([n],"train.prototxt",{type:"text/plain"})),o.open("post",c+"login",!0),o.send(i)},e.prototype.uploadtrain=function(){var e=this.dataservice.generatetrain(),t=new XMLHttpRequest;t.onreadystatechange=function(){document.getElementById("networkstatus").innerText=4==t.readyState?"ready!":"processing~",r||4==t.readyState&&(200==t.status||304==t.status?console.log(t.responseText):alert("Request was unsuccessful:"+t.status))};var n=new FormData;n.set("train",new File([e],"train.prototxt",{type:"text/plain"})),t.open("post",c+"uploadtrain",!0),t.send(n)},e.prototype.terminate=function(){var e=new XMLHttpRequest;e.open("post",c+"kill",!0),e.send("kill"),r=!0,console.log("kill")},e.prototype.oncontinue=function(){var e=new FormData;r=!1,e.set("solver2",new File([this.generatesolver()],"solver2.prototxt",{type:"text/plain"}));var t=new XMLHttpRequest;console.log(p),t.onreadystatechange=function(){if(console.log(t.readyState),document.getElementById("networkstatus").innerText=4==t.readyState?"ready!":"processing~",!r&&4==t.readyState)if(200==t.status||304==t.status){var e=t.responseText.split("Iteration");e.splice(0,1),console.log(p);var n=p[p.length-1].x;console.log(n);for(var o=0,i=e;o<i.length;o++){var l=i[o],s=0,u=0;l.indexOf("Test net output #0")>-1&&(s=parseInt(l.split(",")[0].trim()),u=parseFloat(l.split("Test net output #0: accuracy =")[1].split("\n")[0].trim()),n!=s&&p.push(new a(s,u)))}var c={top:20,right:20,bottom:20,left:50};d3.select("#visualisation").selectAll("g").remove(),d3.select("#visualisation").selectAll("path").remove();var h=d3.select("#visualisation").attr("width",500).attr("transform","translate("+c.left+",0)").attr("height",300),d=d3.scaleLinear().range([c.left,500-c.right]).domain([p[0].x,p[p.length-1].x]),f=d3.scaleLinear().range([300-c.top,c.bottom]).domain([0,1]),y=d3.axisBottom(d),g=d3.axisLeft(f);h.append("g").attr("transform","translate(0,"+(300-c.bottom)+")").call(y),h.append("g").attr("transform","translate("+c.left+",0)").call(g);var m=d3.line().x(function(e){return d(e.x)}).y(function(e){return f(e.y)});h.append("path").attr("d",m(p)).attr("stroke","green").attr("stroke-width",2).attr("fill","none")}else alert("Request was unsuccessful:"+t.status)},this.uploadtrain(),t.open("post",c+"continue",!0),t.send(e)},e.prototype.getfeature=function(){var e=document.getElementById("featurelayer").value,t=new XMLHttpRequest;t.onreadystatechange=function(){if(document.getElementById("networkstatus").innerText=4==t.readyState?"ready!":"processing~",4==t.readyState)if(console.log(t),200==t.status||304==t.status){var e=(new Date).getTime();document.getElementById("mat1").src=c+"image/matsource.png?"+e,document.getElementById("mat2").src=c+"image/matt.png?"+e}else alert("Request was unsuccessful:"+t.status)},t.open("post",c+"feature/"+this.mode+"/"+e,!0),t.send("")},e.prototype.onstep=function(){this.max_iter+=this.test_interval,this.oncontinue()},e.prototype.classifypic=function(){var e=o.getImg(),t=new FormData;t.set("pic",new File([e],"boardpic.txt",{type:"text/plain"}));var n=new XMLHttpRequest;n.onreadystatechange=function(){document.getElementById("networkstatus").innerText=4==n.readyState?"ready!":"processing~",4==n.readyState&&(200==n.status||304==n.status?(console.log(n.responseText),$("#classifyresult").text(n.responseText)):alert("Request was unsuccessful:"+n.status))},n.open("post",c+"getpic",!0),n.send(t),o.clearWebStorage()},e.prototype.getboardfeature=function(){var e=document.getElementById("boardfeaturelayer").value,t=new XMLHttpRequest;t.onreadystatechange=function(){if(document.getElementById("networkstatus").innerText=4==t.readyState?"ready!":"processing~",4==t.readyState)if(console.log(t),200==t.status||304==t.status){var e=(new Date).getTime();document.getElementById("boardfeature").src=c+"image/matboardfeature.png?"+e}else alert("Request was unsuccessful:"+t.status)},t.open("post",c+"boardfeature/"+this.mode+"/"+e,!0),t.send("")},e.prototype.cleardata=function(){var e=new FormData;e.set("cleardata","clearalldata");var t=new XMLHttpRequest;t.onreadystatechange=function(){document.getElementById("networkstatus").innerText=4==t.readyState?"ready!":"processing~",4==t.readyState&&(200==t.status||304==t.status?(console.log(t.responseText),h=new Array,localStorage.removeItem("label"),document.getElementById("datanumber").innerText=h.length.toString()):alert("Request was unsuccessful:"+t.status))},t.open("post",c+"cleardata",!0),t.send(e)},e.prototype.completedata=function(){var e=new FormData;e.set("labels",new File([h.join("\n")],"labels.txt",{type:"text/plain"}));var t=new XMLHttpRequest;t.onreadystatechange=function(){document.getElementById("networkstatus").innerText=4==t.readyState?"ready!":"processing~",4==t.readyState&&(200==t.status||304==t.status?console.log(t.responseText):alert("Request was unsuccessful:"+t.status))},t.open("post",c+"completedata",!0),t.send(e),o.clearWebStorage()},e.prototype.uploaddata=function(){var e=o.getImg(),t=this.numlabel,n=new FormData;n.set("datapic",new File([e],"datapic"+h.length+".txt",{type:"text/plain"}));var r=new XMLHttpRequest;r.onreadystatechange=function(){document.getElementById("networkstatus").innerText=4==r.readyState?"ready!":"processing~",4==r.readyState&&(200==r.status||304==r.status?(console.log(r.responseText),h.push("trainpng/datapic"+h.length+".png "+t),document.getElementById("datanumber").innerText=h.length.toString(),o.reset({background:!0}),localStorage.setItem("label",h.join("\n"))):alert("Request was unsuccessful:"+r.status))},r.open("post",c+"uploaddata",!0),r.send(n),o.clearWebStorage()},e}(),f=n("6Xbx"),y=n("AP4T"),g=n("Ecq+"),m=n("1j/l"),v=n("qgI0"),_=n("lI6h"),b=function(e){function t(t,n){e.call(this),this.sources=t,this.resultSelector=n}return Object(f.b)(t,e),t.create=function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];if(null===e||0===arguments.length)return new g.a;var r=null;return"function"==typeof e[e.length-1]&&(r=e.pop()),1===e.length&&Object(m.a)(e[0])&&(e=e[0]),0===e.length?new g.a:new t(e,r)},t.prototype._subscribe=function(e){return new w(e,this.sources,this.resultSelector)},t}(y.a),w=function(e){function t(t,n,r){e.call(this,t),this.sources=n,this.resultSelector=r,this.completed=0,this.haveValues=0;var o=n.length;this.total=o,this.values=new Array(o);for(var i=0;i<o;i++){var l=n[i],s=Object(v.a)(this,l,null,i);s&&(s.outerIndex=i,this.add(s))}}return Object(f.b)(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.values[n]=t,o._hasValue||(o._hasValue=!0,this.haveValues++)},t.prototype.notifyComplete=function(e){var t=this.destination,n=this.haveValues,r=this.resultSelector,o=this.values,i=o.length;if(e._hasValue){if(this.completed++,this.completed===i){if(n===i){var l=r?r.apply(this,o):o;t.next(l)}t.complete()}}else t.complete()},t}(_.a),C=b.create,E=n("xIGM");function x(e){var t=e.subscriber;t.closed||(t.next(e.value),t.complete())}function S(e){var t=e.subscriber;t.closed||t.error(e.err)}var T=function(e){function t(t,n){e.call(this),this.promise=t,this.scheduler=n}return Object(f.b)(t,e),t.create=function(e,n){return new t(e,n)},t.prototype._subscribe=function(e){var t=this,n=this.promise,r=this.scheduler;if(null==r)this._isScalar?e.closed||(e.next(this.value),e.complete()):n.then(function(n){t.value=n,t._isScalar=!0,e.closed||(e.next(n),e.complete())},function(t){e.closed||e.error(t)}).then(null,function(e){E.a.setTimeout(function(){throw e})});else if(this._isScalar){if(!e.closed)return r.schedule(x,0,{value:this.value,subscriber:e})}else n.then(function(n){t.value=n,t._isScalar=!0,e.closed||e.add(r.schedule(x,0,{value:n,subscriber:e}))},function(t){e.closed||e.add(r.schedule(S,0,{err:t,subscriber:e}))}).then(null,function(e){E.a.setTimeout(function(){throw e})})},t}(y.a).create,k=n("E9/g"),O=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new P(e,this.project,this.thisArg))},e}(),P=function(e){function t(t,n,r){e.call(this,t),this.project=n,this.count=0,this.thisArg=r||this}return Object(f.b)(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(k.a),A=function(){},V=["en",[["a","p"],["AM","PM"]],[["AM","PM"],,],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",,"{1} 'at' {0}"],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],I={},N=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),j=new i.l("UseV4Plurals"),M=function(){},D=function(e){function t(t,n){var r=e.call(this)||this;return r.locale=t,r.deprecatedPluralFn=n,r}return Object(f.b)(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return function(e){var t=e.toLowerCase().replace(/_/g,"-"),n=I[t];if(n)return n;var r=t.split("-")[0];if(n=I[r])return n;if("en"===r)return V;throw new Error('Missing locale data for the locale "'+e+'".')}(e)[17]}(t||this.locale)(e)){case N.Zero:return"zero";case N.One:return"one";case N.Two:return"two";case N.Few:return"few";case N.Many:return"many";default:return"other"}},t}(M),R=function(){function e(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}(),F=function(){function e(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}return Object.defineProperty(e.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(e){Object(i.L)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if("ngForOf"in e){var t=e.ngForOf.currentValue;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(e){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((n=t).name||typeof n)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var n},e.prototype.ngDoCheck=function(){if(this._differ){var e=this._differ.diff(this.ngForOf);e&&this._applyChanges(e)}},e.prototype._applyChanges=function(e){var t=this,n=[];e.forEachOperation(function(e,r,o){if(null==e.previousIndex){var i=t._viewContainer.createEmbeddedView(t._template,new R(null,t.ngForOf,-1,-1),o),l=new L(e,i);n.push(l)}else null==o?t._viewContainer.remove(r):(i=t._viewContainer.get(r),t._viewContainer.move(i,o),l=new L(e,i),n.push(l))});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);r=0;for(var o=this._viewContainer.length;r<o;r++){var i=this._viewContainer.get(r);i.context.index=r,i.context.count=o}e.forEachIdentityChange(function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item})},e.prototype._perViewChange=function(e,t){e.context.$implicit=t.item},e}(),L=function(e,t){this.record=e,this.view=t},U=function(){function e(e,t){this._viewContainer=e,this._context=new B,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}return Object.defineProperty(e.prototype,"ngIf",{set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngIfThen",{set:function(e){this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngIfElse",{set:function(e){this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),e.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},e}(),B=function(){this.$implicit=null,this.ngIf=null},H=function(){},q=new i.l("DocumentToken"),z=null;function Q(){return z}var G,K={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},W={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Z={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"};i.W.Node&&(G=i.W.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))});var X,Y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(f.b)(t,e),t.prototype.parse=function(e){throw new Error("parse not implemented")},t.makeCurrent=function(){var e;e=new t,z||(z=e)},t.prototype.hasProperty=function(e,t){return t in e},t.prototype.setProperty=function(e,t,n){e[t]=n},t.prototype.getProperty=function(e,t){return e[t]},t.prototype.invoke=function(e,t,n){var r;(r=e)[t].apply(r,n)},t.prototype.logError=function(e){window.console&&(console.error?console.error(e):console.log(e))},t.prototype.log=function(e){window.console&&window.console.log&&window.console.log(e)},t.prototype.logGroup=function(e){window.console&&window.console.group&&window.console.group(e)},t.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return K},enumerable:!0,configurable:!0}),t.prototype.contains=function(e,t){return G.call(e,t)},t.prototype.querySelector=function(e,t){return e.querySelector(t)},t.prototype.querySelectorAll=function(e,t){return e.querySelectorAll(t)},t.prototype.on=function(e,t,n){e.addEventListener(t,n,!1)},t.prototype.onAndCancel=function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}},t.prototype.dispatchEvent=function(e,t){e.dispatchEvent(t)},t.prototype.createMouseEvent=function(e){var t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t},t.prototype.createEvent=function(e){var t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t},t.prototype.preventDefault=function(e){e.preventDefault(),e.returnValue=!1},t.prototype.isPrevented=function(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue},t.prototype.getInnerHTML=function(e){return e.innerHTML},t.prototype.getTemplateContent=function(e){return"content"in e&&this.isTemplateElement(e)?e.content:null},t.prototype.getOuterHTML=function(e){return e.outerHTML},t.prototype.nodeName=function(e){return e.nodeName},t.prototype.nodeValue=function(e){return e.nodeValue},t.prototype.type=function(e){return e.type},t.prototype.content=function(e){return this.hasProperty(e,"content")?e.content:e},t.prototype.firstChild=function(e){return e.firstChild},t.prototype.nextSibling=function(e){return e.nextSibling},t.prototype.parentElement=function(e){return e.parentNode},t.prototype.childNodes=function(e){return e.childNodes},t.prototype.childNodesAsList=function(e){for(var t=e.childNodes,n=new Array(t.length),r=0;r<t.length;r++)n[r]=t[r];return n},t.prototype.clearNodes=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},t.prototype.appendChild=function(e,t){e.appendChild(t)},t.prototype.removeChild=function(e,t){e.removeChild(t)},t.prototype.replaceChild=function(e,t,n){e.replaceChild(t,n)},t.prototype.remove=function(e){return e.parentNode&&e.parentNode.removeChild(e),e},t.prototype.insertBefore=function(e,t,n){e.insertBefore(n,t)},t.prototype.insertAllBefore=function(e,t,n){n.forEach(function(n){return e.insertBefore(n,t)})},t.prototype.insertAfter=function(e,t,n){e.insertBefore(n,t.nextSibling)},t.prototype.setInnerHTML=function(e,t){e.innerHTML=t},t.prototype.getText=function(e){return e.textContent},t.prototype.setText=function(e,t){e.textContent=t},t.prototype.getValue=function(e){return e.value},t.prototype.setValue=function(e,t){e.value=t},t.prototype.getChecked=function(e){return e.checked},t.prototype.setChecked=function(e,t){e.checked=t},t.prototype.createComment=function(e){return this.getDefaultDocument().createComment(e)},t.prototype.createTemplate=function(e){var t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t},t.prototype.createElement=function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)},t.prototype.createElementNS=function(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)},t.prototype.createTextNode=function(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)},t.prototype.createScriptTag=function(e,t,n){var r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(e,t),r},t.prototype.createStyleElement=function(e,t){var n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n},t.prototype.createShadowRoot=function(e){return e.createShadowRoot()},t.prototype.getShadowRoot=function(e){return e.shadowRoot},t.prototype.getHost=function(e){return e.host},t.prototype.clone=function(e){return e.cloneNode(!0)},t.prototype.getElementsByClassName=function(e,t){return e.getElementsByClassName(t)},t.prototype.getElementsByTagName=function(e,t){return e.getElementsByTagName(t)},t.prototype.classList=function(e){return Array.prototype.slice.call(e.classList,0)},t.prototype.addClass=function(e,t){e.classList.add(t)},t.prototype.removeClass=function(e,t){e.classList.remove(t)},t.prototype.hasClass=function(e,t){return e.classList.contains(t)},t.prototype.setStyle=function(e,t,n){e.style[t]=n},t.prototype.removeStyle=function(e,t){e.style[t]=""},t.prototype.getStyle=function(e,t){return e.style[t]},t.prototype.hasStyle=function(e,t,n){var r=this.getStyle(e,t)||"";return n?r==n:r.length>0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r<n.length;r++){var o=n.item(r);t.set(o.name,o.value)}return t},t.prototype.hasAttribute=function(e,t){return e.hasAttribute(t)},t.prototype.hasAttributeNS=function(e,t,n){return e.hasAttributeNS(t,n)},t.prototype.getAttribute=function(e,t){return e.getAttribute(t)},t.prototype.getAttributeNS=function(e,t,n){return e.getAttributeNS(t,n)},t.prototype.setAttribute=function(e,t,n){e.setAttribute(t,n)},t.prototype.setAttributeNS=function(e,t,n,r){e.setAttributeNS(t,n,r)},t.prototype.removeAttribute=function(e,t){e.removeAttribute(t)},t.prototype.removeAttributeNS=function(e,t,n){e.removeAttributeNS(t,n)},t.prototype.templateAwareRoot=function(e){return this.isTemplateElement(e)?this.content(e):e},t.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},t.prototype.getDefaultDocument=function(){return document},t.prototype.getBoundingClientRect=function(e){try{return e.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},t.prototype.getTitle=function(e){return e.title},t.prototype.setTitle=function(e,t){e.title=t||""},t.prototype.elementMatches=function(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))},t.prototype.isTemplateElement=function(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName},t.prototype.isTextNode=function(e){return e.nodeType===Node.TEXT_NODE},t.prototype.isCommentNode=function(e){return e.nodeType===Node.COMMENT_NODE},t.prototype.isElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},t.prototype.hasShadowRoot=function(e){return null!=e.shadowRoot&&e instanceof HTMLElement},t.prototype.isShadowRoot=function(e){return e instanceof DocumentFragment},t.prototype.importIntoDoc=function(e){return document.importNode(this.templateAwareRoot(e),!0)},t.prototype.adoptNode=function(e){return document.adoptNode(e)},t.prototype.getHref=function(e){return e.getAttribute("href")},t.prototype.getEventKey=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Z.hasOwnProperty(t)&&(t=Z[t]))}return W[t]||t},t.prototype.getGlobalEventTarget=function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null},t.prototype.getHistory=function(){return window.history},t.prototype.getLocation=function(){return window.location},t.prototype.getBaseHref=function(e){var t,n=J||(J=document.querySelector("base"))?J.getAttribute("href"):null;return null==n?null:(t=n,X||(X=document.createElement("a")),X.setAttribute("href",t),"/"===X.pathname.charAt(0)?X.pathname:"/"+X.pathname)},t.prototype.resetBaseElement=function(){J=null},t.prototype.getUserAgent=function(){return window.navigator.userAgent},t.prototype.setData=function(e,t,n){this.setAttribute(e,"data-"+t,n)},t.prototype.getData=function(e,t){return this.getAttribute(e,"data-"+t)},t.prototype.getComputedStyle=function(e){return getComputedStyle(e)},t.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},t.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},t.prototype.supportsCookies=function(){return!0},t.prototype.getCookie=function(e){return function(e,t){t=encodeURIComponent(t);for(var n=0,r=e.split(";");n<r.length;n++){var o=r[n],i=o.indexOf("="),l=-1==i?[o,""]:[o.slice(0,i),o.slice(i+1)],s=l[1];if(l[0].trim()===t)return decodeURIComponent(s)}return null}(document.cookie,e)},t.prototype.setCookie=function(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)},t}(function(e){function t(){var t=e.call(this)||this;t._animationPrefix=null,t._transitionEnd=null;try{var n=t.createElement("div",document);if(null!=t.getStyle(n,"animationName"))t._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],o=0;o<r.length;o++)if(null!=t.getStyle(n,r[o]+"AnimationName")){t._animationPrefix="-"+r[o].toLowerCase()+"-";break}var i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(i).forEach(function(e){null!=t.getStyle(n,e)&&(t._transitionEnd=i[e])})}catch(e){t._animationPrefix=null,t._transitionEnd=null}return t}return Object(f.b)(t,e),t.prototype.getDistributedNodes=function(e){return e.getDistributedNodes()},t.prototype.resolveAndSetHref=function(e,t,n){e.href=null==n?t:t+"/../"+n},t.prototype.supportsDOMEvents=function(){return!0},t.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},t.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},t.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},t.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},t}(function(){function e(){this.resourceLoaderType=null}return Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(e){this._attrToPropMap=e},enumerable:!0,configurable:!0}),e}())),J=null,ee=q;function te(){return!!window.history.pushState}var ne=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._init(),n}return Object(f.b)(t,e),t.prototype._init=function(){this.location=Q().getLocation(),this._history=Q().getHistory()},t.prototype.getBaseHrefFromDOM=function(){return Q().getBaseHref(this._doc)},t.prototype.onPopState=function(e){Q().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)},t.prototype.onHashChange=function(e){Q().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)},Object.defineProperty(t.prototype,"pathname",{get:function(){return this.location.pathname},set:function(e){this.location.pathname=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),t.prototype.pushState=function(e,t,n){te()?this._history.pushState(e,t,n):this.location.hash=n},t.prototype.replaceState=function(e,t,n){te()?this._history.replaceState(e,t,n):this.location.hash=n},t.prototype.forward=function(){this._history.forward()},t.prototype.back=function(){this._history.back()},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:i.k,args:[ee]}]}]},t}(A),re=function(){function e(e){this._doc=e,this._dom=Q()}return e.prototype.addTag=function(e,t){return void 0===t&&(t=!1),e?this._getOrCreateElement(e,t):null},e.prototype.addTags=function(e,t){var n=this;return void 0===t&&(t=!1),e?e.reduce(function(e,r){return r&&e.push(n._getOrCreateElement(r,t)),e},[]):[]},e.prototype.getTag=function(e){return e&&this._dom.querySelector(this._doc,"meta["+e+"]")||null},e.prototype.getTags=function(e){if(!e)return[];var t=this._dom.querySelectorAll(this._doc,"meta["+e+"]");return t?[].slice.call(t):[]},e.prototype.updateTag=function(e,t){if(!e)return null;t=t||this._parseSelector(e);var n=this.getTag(t);return n?this._setMetaElementAttributes(e,n):this._getOrCreateElement(e,!0)},e.prototype.removeTag=function(e){this.removeTagElement(this.getTag(e))},e.prototype.removeTagElement=function(e){e&&this._dom.remove(e)},e.prototype._getOrCreateElement=function(e,t){if(void 0===t&&(t=!1),!t){var n=this._parseSelector(e),r=this.getTag(n);if(r&&this._containsAttributes(e,r))return r}var o=this._dom.createElement("meta");this._setMetaElementAttributes(e,o);var i=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(i,o),o},e.prototype._setMetaElementAttributes=function(e,t){var n=this;return Object.keys(e).forEach(function(r){return n._dom.setAttribute(t,r,e[r])}),t},e.prototype._parseSelector=function(e){var t=e.name?"name":"property";return t+'="'+e[t]+'"'},e.prototype._containsAttributes=function(e,t){var n=this;return Object.keys(e).every(function(r){return n._dom.getAttribute(t,r)===e[r]})},e}(),oe=new i.l("TRANSITION_ID"),ie=[{provide:i.b,useFactory:function(e,t,n){return function(){n.get(i.c).donePromise.then(function(){var n=Q();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(function(t){return n.getAttribute(t,"ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[oe,ee,i.m],multi:!0}],le=function(){function e(){}return e.init=function(){Object(i.N)(new e)},e.prototype.addToWindow=function(e){i.W.getAngularTestability=function(t,n){void 0===n&&(n=!0);var r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},i.W.getAllAngularTestabilities=function(){return e.getAllTestabilities()},i.W.getAllAngularRootElements=function(){return e.getAllRootElements()},i.W.frameworkStabilizers||(i.W.frameworkStabilizers=[]),i.W.frameworkStabilizers.push(function(e){var t=i.W.getAllAngularTestabilities(),n=t.length,r=!1,o=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(o)})})},e.prototype.findTestabilityInTree=function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?Q().isShadowRoot(t)?this.findTestabilityInTree(e,Q().getHost(t),!0):this.findTestabilityInTree(e,Q().parentElement(t),!0):null},e}(),se=function(){function e(e){this._doc=e}return e.prototype.getTitle=function(){return Q().getTitle(this._doc)},e.prototype.setTitle=function(e){Q().setTitle(this._doc,e)},e}();function ae(e,t){"undefined"!=typeof COMPILED&&COMPILED||((i.W.ng=i.W.ng||{})[e]=t)}var ue={ApplicationRef:i.e,NgZone:i.s};function ce(e){return Object(i.K)(e)}var pe=new i.l("EventManagerPlugins"),he=function(){function e(e,t){var n=this;this._zone=t,this._eventNameToPlugin=new Map,e.forEach(function(e){return e.manager=n}),this._plugins=e.slice().reverse()}return e.prototype.addEventListener=function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)},e.prototype.addGlobalEventListener=function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)},e.prototype.getZone=function(){return this._zone},e.prototype._findPluginFor=function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r<n.length;r++){var o=n[r];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error("No event manager plugin found for event "+e)},e}(),de=function(){function e(e){this._doc=e}return e.prototype.addGlobalEventListener=function(e,t,n){var r=Q().getGlobalEventTarget(this._doc,e);if(!r)throw new Error("Unsupported event target "+r+" for event "+t);return this.addEventListener(r,t,n)},e}(),fe=function(){function e(){this._stylesSet=new Set}return e.prototype.addStyles=function(e){var t=this,n=new Set;e.forEach(function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))}),this.onStylesAdded(n)},e.prototype.onStylesAdded=function(e){},e.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},e}(),ye=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(t.head),n}return Object(f.b)(t,e),t.prototype._addStylesToHost=function(e,t){var n=this;e.forEach(function(e){var r=n._doc.createElement("style");r.textContent=e,n._styleNodes.add(t.appendChild(r))})},t.prototype.addHost=function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)},t.prototype.removeHost=function(e){this._hostNodes.delete(e)},t.prototype.onStylesAdded=function(e){var t=this;this._hostNodes.forEach(function(n){return t._addStylesToHost(e,n)})},t.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(e){return Q().remove(e)})},t}(fe),ge={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},me=/%COMP%/g,ve="_nghost-%COMP%",_e="_ngcontent-%COMP%";function be(e,t,n){for(var r=0;r<t.length;r++){var o=t[r];Array.isArray(o)?be(e,o,n):(o=o.replace(me,e),n.push(o))}return n}function we(e){return function(t){!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var Ce=function(){function e(e,t){this.eventManager=e,this.sharedStylesHost=t,this.rendererByCompId=new Map,this.defaultRenderer=new Ee(e)}return e.prototype.createRenderer=function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case i.F.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new ke(this.eventManager,this.sharedStylesHost,t),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case i.F.Native:return new Oe(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var r=be(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}},e.prototype.begin=function(){},e.prototype.end=function(){},e}(),Ee=function(){function e(e){this.eventManager=e,this.data=Object.create(null)}return e.prototype.destroy=function(){},e.prototype.createElement=function(e,t){return t?document.createElementNS(ge[t],e):document.createElement(e)},e.prototype.createComment=function(e){return document.createComment(e)},e.prototype.createText=function(e){return document.createTextNode(e)},e.prototype.appendChild=function(e,t){e.appendChild(t)},e.prototype.insertBefore=function(e,t,n){e&&e.insertBefore(t,n)},e.prototype.removeChild=function(e,t){e&&e.removeChild(t)},e.prototype.selectRootElement=function(e){var t="string"==typeof e?document.querySelector(e):e;if(!t)throw new Error('The selector "'+e+'" did not match any elements');return t.textContent="",t},e.prototype.parentNode=function(e){return e.parentNode},e.prototype.nextSibling=function(e){return e.nextSibling},e.prototype.setAttribute=function(e,t,n,r){if(r){t=r+":"+t;var o=ge[r];o?e.setAttributeNS(o,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)},e.prototype.removeAttribute=function(e,t,n){if(n){var r=ge[n];r?e.removeAttributeNS(r,t):e.removeAttribute(n+":"+t)}else e.removeAttribute(t)},e.prototype.addClass=function(e,t){e.classList.add(t)},e.prototype.removeClass=function(e,t){e.classList.remove(t)},e.prototype.setStyle=function(e,t,n,r){r&i.y.DashCase?e.style.setProperty(t,n,r&i.y.Important?"important":""):e.style[t]=n},e.prototype.removeStyle=function(e,t,n){n&i.y.DashCase?e.style.removeProperty(t):e.style[t]=""},e.prototype.setProperty=function(e,t,n){Se(t,"property"),e[t]=n},e.prototype.setValue=function(e,t){e.nodeValue=t},e.prototype.listen=function(e,t,n){return Se(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,we(n)):this.eventManager.addEventListener(e,t,we(n))},e}(),xe="@".charCodeAt(0);function Se(e,t){if(e.charCodeAt(0)===xe)throw new Error("Found the synthetic "+t+" "+e+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var Te,ke=function(e){function t(t,n,r){var o=e.call(this,t)||this;o.component=r;var i=be(r.id,r.styles,[]);return n.addStyles(i),o.contentAttr=_e.replace(me,r.id),o.hostAttr=ve.replace(me,r.id),o}return Object(f.b)(t,e),t.prototype.applyToHost=function(t){e.prototype.setAttribute.call(this,t,this.hostAttr,"")},t.prototype.createElement=function(t,n){var r=e.prototype.createElement.call(this,t,n);return e.prototype.setAttribute.call(this,r,this.contentAttr,""),r},t}(Ee),Oe=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;i.sharedStylesHost=n,i.hostEl=r,i.component=o,i.shadowRoot=r.createShadowRoot(),i.sharedStylesHost.addHost(i.shadowRoot);for(var l=be(o.id,o.styles,[]),s=0;s<l.length;s++){var a=document.createElement("style");a.textContent=l[s],i.shadowRoot.appendChild(a)}return i}return Object(f.b)(t,e),t.prototype.nodeOrShadowRoot=function(e){return e===this.hostEl?this.shadowRoot:e},t.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},t.prototype.appendChild=function(t,n){return e.prototype.appendChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.insertBefore=function(t,n,r){return e.prototype.insertBefore.call(this,this.nodeOrShadowRoot(t),n,r)},t.prototype.removeChild=function(t,n){return e.prototype.removeChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.parentNode=function(t){return this.nodeOrShadowRoot(e.prototype.parentNode.call(this,this.nodeOrShadowRoot(t)))},t}(Ee),Pe="undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e},Ae=Pe("addEventListener"),Ve=Pe("removeEventListener"),Ie={},Ne="__zone_symbol__propagationStopped";"undefined"!=typeof Zone&&Zone[Pe("BLACK_LISTED_EVENTS")]&&(Te={});var je=function(e){return!!Te&&Te.hasOwnProperty(e)},Me=function(e){var t=Ie[e.type];if(t){var n=this[t];if(n){var r=[e];if(1===n.length)return(l=n[0]).zone!==Zone.current?l.zone.run(l.handler,this,r):l.handler.apply(this,r);for(var o=n.slice(),i=0;i<o.length&&!0!==e[Ne];i++){var l;(l=o[i]).zone!==Zone.current?l.zone.run(l.handler,this,r):l.handler.apply(this,r)}}}},De=function(e){function t(t,n){var r=e.call(this,t)||this;return r.ngZone=n,r.patchEvent(),r}return Object(f.b)(t,e),t.prototype.patchEvent=function(){if(Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var e=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[Ne]=!0),e&&e.apply(this,arguments)}}},t.prototype.supports=function(e){return!0},t.prototype.addEventListener=function(e,t,n){var r=this,o=n;if(!e[Ae]||i.s.isInAngularZone()&&!je(t))e.addEventListener(t,o,!1);else{var l=Ie[t];l||(l=Ie[t]=Pe("ANGULAR"+t+"FALSE"));var s=e[l],a=s&&s.length>0;s||(s=e[l]=[]);var u=je(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:u,handler:o});else{for(var c=!1,p=0;p<s.length;p++)if(s[p].handler===o){c=!0;break}c||s.push({zone:u,handler:o})}a||e[Ae](t,Me,!1)}return function(){return r.removeEventListener(e,t,o)}},t.prototype.removeEventListener=function(e,t,n){var r=e[Ve];if(!r)return e.removeEventListener.apply(e,[t,n,!1]);var o=Ie[t],i=o&&e[o];if(!i)return e.removeEventListener.apply(e,[t,n,!1]);for(var l=!1,s=0;s<i.length;s++)if(i[s].handler===n){l=!0,i.splice(s,1);break}l?0===i.length&&r.apply(e,[t,Me,!1]):e.removeEventListener.apply(e,[t,n,!1])},t}(de),Re={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},Fe=new i.l("HammerGestureConfig"),Le=function(){function e(){this.events=[],this.overrides={}}return e.prototype.buildHammer=function(e){var t=new Hammer(e);for(var n in t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0}),this.overrides)t.get(n).set(this.overrides[n]);return t},e}(),Ue=function(e){function t(t,n){var r=e.call(this,t)||this;return r._config=n,r}return Object(f.b)(t,e),t.prototype.supports=function(e){if(!Re.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+e+" event");return!0},t.prototype.addEventListener=function(e,t,n){var r=this,o=this.manager.getZone();return t=t.toLowerCase(),o.runOutsideAngular(function(){var i=r._config.buildHammer(e),l=function(e){o.runGuarded(function(){n(e)})};return i.on(t,l),function(){return i.off(t,l)}})},t.prototype.isCustomEvent=function(e){return this._config.events.indexOf(e)>-1},t}(de),Be=["alt","control","meta","shift"],He={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},qe=function(e){function t(t){return e.call(this,t)||this}return Object(f.b)(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,r){var o=t.parseEventName(n),i=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Q().onAndCancel(e,o.domEventName,i)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=t._normalizeKey(n.pop()),i="";if(Be.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=o,0!=n.length||0===o.length)return null;var l={};return l.domEventName=r,l.fullKey=i,l},t.getEventFullKey=function(e){var t="",n=Q().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Be.forEach(function(r){r!=n&&(0,He[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,n,r){return function(o){t.getEventFullKey(o)===e&&r.runGuarded(function(){return n(o)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(de),ze=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Qe=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Ge(e){return(e=String(e)).match(ze)||e.match(Qe)?e:(Object(i.L)()&&Q().log("WARNING: sanitizing unsafe URL value "+e+" (see http://g.co/ng/security#xss)"),"unsafe:"+e)}var Ke=null,We=null;function Ze(e){for(var t={},n=0,r=e.split(",");n<r.length;n++)t[r[n]]=!0;return t}function $e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,o=e;r<o.length;r++){var i=o[r];for(var l in i)i.hasOwnProperty(l)&&(n[l]=!0)}return n}var Xe=Ze("area,br,col,hr,img,wbr"),Ye=Ze("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Je=Ze("rp,rt"),et=$e(Je,Ye),tt=$e(Xe,$e(Ye,Ze("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),$e(Je,Ze("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),et),nt=Ze("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),rt=Ze("srcset"),ot=$e(nt,rt,Ze("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width")),it=function(){function e(){this.sanitizedSomething=!1,this.buf=[]}return e.prototype.sanitizeChildren=function(e){for(var t=e.firstChild;t;)if(We.isElementNode(t)?this.startElement(t):We.isTextNode(t)?this.chars(We.nodeValue(t)):this.sanitizedSomething=!0,We.firstChild(t))t=We.firstChild(t);else for(;t;){We.isElementNode(t)&&this.endElement(t);var n=lt(t,We.nextSibling(t));if(n){t=n;break}t=lt(t,We.parentElement(t))}return this.buf.join("")},e.prototype.startElement=function(e){var t=this,n=We.nodeName(e).toLowerCase();tt.hasOwnProperty(n)?(this.buf.push("<"),this.buf.push(n),We.attributeMap(e).forEach(function(e,n){var r,o=n.toLowerCase();ot.hasOwnProperty(o)?(nt[o]&&(e=Ge(e)),rt[o]&&(r=e,e=(r=String(r)).split(",").map(function(e){return Ge(e.trim())}).join(", ")),t.buf.push(" "),t.buf.push(n),t.buf.push('="'),t.buf.push(ut(e)),t.buf.push('"')):t.sanitizedSomething=!0}),this.buf.push(">")):this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=We.nodeName(e).toLowerCase();tt.hasOwnProperty(t)&&!Xe.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))},e.prototype.chars=function(e){this.buf.push(ut(e))},e}();function lt(e,t){if(t&&We.contains(e,t))throw new Error("Failed to sanitize html because the element is clobbered: "+We.getOuterHTML(e));return t}var st=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,at=/([^\#-~ |!])/g;function ut(e){return e.replace(/&/g,"&").replace(st,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(at,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function ct(e){We.attributeMap(e).forEach(function(t,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||We.removeAttribute(e,n)});for(var t=0,n=We.childNodesAsList(e);t<n.length;t++){var r=n[t];We.isElementNode(r)&&ct(r)}}var pt=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),ht=/^url\(([^)]+)\)$/,dt=function(){},ft=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return Object(f.b)(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case i.A.NONE:return t;case i.A.HTML:return t instanceof gt?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){try{var n=function(){if(Ke)return Ke;var e=(We=Q()).createElement("template");if("content"in e)return e;var t=We.createHtmlDocument();if(null==(Ke=We.querySelector(t,"body"))){var n=We.createElement("html",t);Ke=We.createElement("body",t),We.appendChild(n,Ke),We.appendChild(t,n)}return Ke}(),r=t?String(t):"",o=5,l=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,We.setInnerHTML(n,r=l),e.documentMode&&ct(n),l=We.getInnerHTML(n)}while(r!==l);for(var s=new it,a=s.sanitizeChildren(We.getTemplateContent(n)||n),u=We.getTemplateContent(n)||n,c=0,p=We.childNodesAsList(u);c<p.length;c++)We.removeChild(u,p[c]);return Object(i.L)()&&s.sanitizedSomething&&We.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),a}catch(e){throw Ke=null,e}}(this._doc,String(t)));case i.A.STYLE:return t instanceof mt?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";var t=e.match(ht);return t&&Ge(t[1])===t[1]||e.match(pt)&&function(e){for(var t=!0,n=!0,r=0;r<e.length;r++){var o=e.charAt(r);"'"===o&&n?t=!t:'"'===o&&t&&(n=!n)}return t&&n}(e)?e:(Object(i.L)()&&Q().log("WARNING: sanitizing unsafe style value "+e+" (see http://g.co/ng/security#xss)."),"unsafe")}(t));case i.A.SCRIPT:if(t instanceof vt)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case i.A.URL:return t instanceof bt||t instanceof _t?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),Ge(String(t)));case i.A.RESOURCE_URL:if(t instanceof bt)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+e+" (see http://g.co/ng/security#xss)")}},t.prototype.checkNotSafeValue=function(e,t){if(e instanceof yt)throw new Error("Required a safe "+t+", got a "+e.getTypeName()+" (see http://g.co/ng/security#xss)")},t.prototype.bypassSecurityTrustHtml=function(e){return new gt(e)},t.prototype.bypassSecurityTrustStyle=function(e){return new mt(e)},t.prototype.bypassSecurityTrustScript=function(e){return new vt(e)},t.prototype.bypassSecurityTrustUrl=function(e){return new _t(e)},t.prototype.bypassSecurityTrustResourceUrl=function(e){return new bt(e)},t}(dt),yt=function(){function e(e){this.changingThisBreaksApplicationSecurity=e}return e.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},e}(),gt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(f.b)(t,e),t.prototype.getTypeName=function(){return"HTML"},t}(yt),mt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(f.b)(t,e),t.prototype.getTypeName=function(){return"Style"},t}(yt),vt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(f.b)(t,e),t.prototype.getTypeName=function(){return"Script"},t}(yt),_t=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(f.b)(t,e),t.prototype.getTypeName=function(){return"URL"},t}(yt),bt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(f.b)(t,e),t.prototype.getTypeName=function(){return"ResourceURL"},t}(yt),wt=[{provide:i.u,useValue:"browser"},{provide:i.v,useValue:function(){Y.makeCurrent(),le.init()},multi:!0},{provide:A,useClass:ne,deps:[ee]},{provide:ee,useFactory:function(){return document},deps:[]}],Ct=Object(i.H)(i.M,"browser",wt);function Et(){return new i.i}var xt=function(){function e(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return e.withServerTransition=function(t){return{ngModule:e,providers:[{provide:i.a,useValue:t.appId},{provide:oe,useExisting:i.a},ie]}},e}();"undefined"!=typeof window&&window;var St=function(){function e(){}return Object.defineProperty(e.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e.prototype.reset=function(e){void 0===e&&(e=void 0),this.control&&this.control.reset(e)},e.prototype.hasError=function(e,t){return!!this.control&&this.control.hasError(e,t)},e.prototype.getError=function(e,t){return this.control?this.control.getError(e,t):null},e}(),Tt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(f.b)(t,e),Object.defineProperty(t.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t}(St);function kt(e){return null==e||0===e.length}var Ot=new i.l("NgValidators"),Pt=/^(?=.{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])?)*$/,At=function(){function e(){}return e.min=function(e){return function(t){if(kt(t.value)||kt(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}},e.max=function(e){return function(t){if(kt(t.value)||kt(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}},e.required=function(e){return kt(e.value)?{required:!0}:null},e.requiredTrue=function(e){return!0===e.value?null:{required:!0}},e.email=function(e){return Pt.test(e.value)?null:{email:!0}},e.minLength=function(e){return function(t){if(kt(t.value))return null;var n=t.value?t.value.length:0;return n<e?{minlength:{requiredLength:e,actualLength:n}}:null}},e.maxLength=function(e){return function(t){var n=t.value?t.value.length:0;return n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}},e.pattern=function(t){return t?("string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(kt(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r},e.nullValidator=function(e){return null},e.compose=function(e){if(!e)return null;var t=e.filter(Vt);return 0==t.length?null:function(e){return Nt(function(e,n){return t.map(function(t){return t(e)})}(e))}},e.composeAsync=function(e){if(!e)return null;var t=e.filter(Vt);return 0==t.length?null:function(e){var n=function(e,n){return t.map(function(t){return t(e)})}(e).map(It);return(function(e,t){return function(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new O(e,t))}}(e,t)(this)}).call(C(n),Nt)}},e}();function Vt(e){return null!=e}function It(e){var t=Object(i._0)(e)?T(e):e;if(!Object(i.Z)(t))throw new Error("Expected validator to return Promise or Observable.");return t}function Nt(e){var t=e.reduce(function(e,t){return null!=t?Object(f.a)({},e,t):e},{});return 0===Object.keys(t).length?null:t}var jt=new i.l("NgValueAccessor"),Mt=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}(),Dt=new i.l("CompositionEventMode"),Rt=function(){function e(e,t,n){var r;this._renderer=e,this._elementRef=t,this._compositionMode=n,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(r=Q()?Q().getUserAgent():"",!/android (\d+)/.test(r.toLowerCase())))}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=e},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._handleInput=function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)},e.prototype._compositionStart=function(){this._composing=!0},e.prototype._compositionEnd=function(e){this._composing=!1,this._compositionMode&&this.onChange(e)},e}();function Ft(e){return e.validate?function(t){return e.validate(t)}:e}function Lt(e){return e.validate?function(t){return e.validate(t)}:e}var Ut=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}();function Bt(){throw new Error("unimplemented")}var Ht=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._parent=null,t.name=null,t.valueAccessor=null,t._rawValidators=[],t._rawAsyncValidators=[],t}return Object(f.b)(t,e),Object.defineProperty(t.prototype,"validator",{get:function(){return Bt()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return Bt()},enumerable:!0,configurable:!0}),t}(St),qt=function(){function e(){this._accessors=[]}return e.prototype.add=function(e,t){this._accessors.push([e,t])},e.prototype.remove=function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)},e.prototype.select=function(e){var t=this;this._accessors.forEach(function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)})},e.prototype._isSameGroup=function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name},e}(),zt=function(){function e(e,t,n,r){this._renderer=e,this._elementRef=t,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return e.prototype.ngOnInit=function(){this._control=this._injector.get(Ht),this._checkName(),this._registry.add(this._control,this)},e.prototype.ngOnDestroy=function(){this._registry.remove(this)},e.prototype.writeValue=function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},e.prototype.registerOnChange=function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}},e.prototype.fireUncheck=function(e){this.writeValue(e)},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},e.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')},e}(),Qt=function(){function e(e,t){this._renderer=e,this._elementRef=t,this.onChange=function(e){},this.onTouched=function(){}}return e.prototype.writeValue=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))},e.prototype.registerOnChange=function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e}();function Gt(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var Kt=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=i._1}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=Gt(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(){return(this._idCounter++).toString()},e.prototype._getOptionId=function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var r=n[t];if(this._compareWith(this._optionMap.get(r),e))return r}return null},e.prototype._getOptionValue=function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e},e}(),Wt=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(Gt(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},e}();function Zt(e,t){return null==e?""+t:("string"==typeof t&&(t="'"+t+"'"),t&&"object"==typeof t&&(t="Object"),(e+": "+t).slice(0,50))}var $t=function(){function e(e,t){this._renderer=e,this._elementRef=t,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=i._1}return Object.defineProperty(e.prototype,"compareWith",{set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e},enumerable:!0,configurable:!0}),e.prototype.writeValue=function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var r=e.map(function(e){return n._getOptionId(e)});t=function(e,t){e._setSelected(r.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)},e.prototype.registerOnChange=function(e){var t=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i<o.length;i++){var l=o.item(i),s=t._getOptionValue(l.value);r.push(s)}else for(o=n.options,i=0;i<o.length;i++)(l=o.item(i)).selected&&(s=t._getOptionValue(l.value),r.push(s));t.value=r,e(r)}},e.prototype.registerOnTouched=function(e){this.onTouched=e},e.prototype.setDisabledState=function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)},e.prototype._registerOption=function(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t},e.prototype._getOptionId=function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var r=n[t];if(this._compareWith(this._optionMap.get(r)._value,e))return r}return null},e.prototype._getOptionValue=function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e},e}(),Xt=function(){function e(e,t,n){this._element=e,this._renderer=t,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(e.prototype,"ngValue",{set:function(e){null!=this._select&&(this._value=e,this._setElementValue(Zt(this.id,e)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{set:function(e){this._select?(this._value=e,this._setElementValue(Zt(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)},enumerable:!0,configurable:!0}),e.prototype._setElementValue=function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)},e.prototype._setSelected=function(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)},e.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},e}();function Yt(e,t){return t.path.concat([e])}function Jt(e,t){e||tn(t,"Cannot find control with"),t.valueAccessor||tn(t,"No value accessor for form control with"),e.validator=At.compose([e.validator,t.validator]),e.asyncValidator=At.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&en(e,t)})}(e,t),function(e,t){e.registerOnChange(function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&en(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange(function(e){t.valueAccessor.setDisabledState(e)}),t._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})}),t._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(function(){return e.updateValueAndValidity()})})}function en(e,t){t.viewToModelUpdate(e._pendingValue),e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),e._pendingChange=!1}function tn(e,t){var n;throw n=e.path.length>1?"path: '"+e.path.join(" -> ")+"'":e.path[0]?"name: '"+e.path+"'":"unspecified name attribute",new Error(t+" "+n)}function nn(e){return null!=e?At.compose(e.map(Ft)):null}function rn(e){return null!=e?At.composeAsync(e.map(Lt)):null}var on=[Mt,Qt,Ut,Kt,$t,zt],ln=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(f.b)(t,e),t.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(t.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return Yt(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return nn(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return rn(this._asyncValidators)},enumerable:!0,configurable:!0}),t.prototype._checkParentType=function(){},t}(Tt),sn=function(e){function t(t){return e.call(this,t)||this}return Object(f.b)(t,e),t}(function(){function e(e){this._cd=e}return Object.defineProperty(e.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),e}());function an(e){var t=cn(e)?e.validators:e;return Array.isArray(t)?nn(t):t||null}function un(e,t){var n=cn(t)?t.asyncValidators:e;return Array.isArray(n)?rn(n):n||null}function cn(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var pn,hn=function(){function e(e,t){this.validator=e,this.asyncValidator=t,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),e.prototype.setValidators=function(e){this.validator=an(e)},e.prototype.setAsyncValidators=function(e){this.asyncValidator=un(e)},e.prototype.clearValidators=function(){this.validator=null},e.prototype.clearAsyncValidators=function(){this.asyncValidator=null},e.prototype.markAsTouched=function(e){void 0===e&&(e={}),this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)},e.prototype.markAsUntouched=function(e){void 0===e&&(e={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(e){e.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype.markAsDirty=function(e){void 0===e&&(e={}),this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)},e.prototype.markAsPristine=function(e){void 0===e&&(e={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(e){e.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype.markAsPending=function(e){void 0===e&&(e={}),this.status="PENDING",this._parent&&!e.onlySelf&&this._parent.markAsPending(e)},e.prototype.disable=function(e){void 0===e&&(e={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(e){e.disable({onlySelf:!0})}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(!!e.onlySelf),this._onDisabledChange.forEach(function(e){return e(!0)})},e.prototype.enable=function(e){void 0===e&&(e={}),this.status="VALID",this._forEachChild(function(e){e.enable({onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(!!e.onlySelf),this._onDisabledChange.forEach(function(e){return e(!1)})},e.prototype._updateAncestors=function(e){this._parent&&!e&&(this._parent.updateValueAndValidity(),this._parent._updatePristine(),this._parent._updateTouched())},e.prototype.setParent=function(e){this._parent=e},e.prototype.updateValueAndValidity=function(e){void 0===e&&(e={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)},e.prototype._updateTreeValidity=function(e){void 0===e&&(e={emitEvent:!0}),this._forEachChild(function(t){return t._updateTreeValidity(e)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})},e.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},e.prototype._runValidator=function(){return this.validator?this.validator(this):null},e.prototype._runAsyncValidator=function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=It(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return t.setErrors(n,{emitEvent:e})})}},e.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},e.prototype.setErrors=function(e,t){void 0===t&&(t={}),this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)},e.prototype.get=function(e){return function(e,t,n){return null==t?null:(t instanceof Array||(t=t.split(".")),t instanceof Array&&0===t.length?null:t.reduce(function(e,t){return e instanceof fn?e.controls[t]||null:e instanceof yn&&e.at(t)||null},e))}(this,e)},e.prototype.getError=function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null},e.prototype.hasError=function(e,t){return!!this.getError(e,t)},Object.defineProperty(e.prototype,"root",{get:function(){for(var e=this;e._parent;)e=e._parent;return e},enumerable:!0,configurable:!0}),e.prototype._updateControlsErrors=function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)},e.prototype._initObservables=function(){this.valueChanges=new i.j,this.statusChanges=new i.j},e.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},e.prototype._anyControlsHaveStatus=function(e){return this._anyControls(function(t){return t.status===e})},e.prototype._anyControlsDirty=function(){return this._anyControls(function(e){return e.dirty})},e.prototype._anyControlsTouched=function(){return this._anyControls(function(e){return e.touched})},e.prototype._updatePristine=function(e){void 0===e&&(e={}),this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)},e.prototype._updateTouched=function(e){void 0===e&&(e={}),this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)},e.prototype._isBoxedValue=function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e},e.prototype._registerOnCollectionChange=function(e){this._onCollectionChange=e},e.prototype._setUpdateStrategy=function(e){cn(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)},e}(),dn=function(e){function t(t,n,r){void 0===t&&(t=null);var o=e.call(this,an(n),un(r,n))||this;return o._onChange=[],o._applyFormState(t),o._setUpdateStrategy(n),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return Object(f.b)(t,e),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(function(e){return e(n.value,!1!==t.emitViewToModelChange)}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){void 0===t&&(t={}),this.setValue(e,t)},t.prototype.reset=function(e,t){void 0===e&&(e=null),void 0===t&&(t={}),this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1},t.prototype._updateValue=function(){},t.prototype._anyControls=function(e){return!1},t.prototype._allControlsDisabled=function(){return this.disabled},t.prototype.registerOnChange=function(e){this._onChange.push(e)},t.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},t.prototype.registerOnDisabledChange=function(e){this._onDisabledChange.push(e)},t.prototype._forEachChild=function(e){},t.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))},t.prototype._applyFormState=function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e},t}(hn),fn=function(e){function t(t,n,r){var o=e.call(this,an(n),un(r,n))||this;return o.controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(f.b)(t,e),t.prototype.registerControl=function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)},t.prototype.addControl=function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeControl=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.contains=function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled},t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),Object.keys(e).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),Object.keys(e).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this._reduceChildren({},function(e,t,n){return e[n]=t instanceof dn?t.value:t.getRawValue(),e})},t.prototype._syncPendingControls=function(){var e=this._reduceChildren(!1,function(e,t){return!!t._syncPendingControls()||e});return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[e])throw new Error("Cannot find form control with name: "+e+".")},t.prototype._forEachChild=function(e){var t=this;Object.keys(this.controls).forEach(function(n){return e(t.controls[n],n)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)})},t.prototype._updateValue=function(){this.value=this._reduceValue()},t.prototype._anyControls=function(e){var t=this,n=!1;return this._forEachChild(function(r,o){n=n||t.contains(o)&&e(r)}),n},t.prototype._reduceValue=function(){var e=this;return this._reduceChildren({},function(t,n,r){return(n.enabled||e.disabled)&&(t[r]=n.value),t})},t.prototype._reduceChildren=function(e,t){var n=e;return this._forEachChild(function(e,r){n=t(n,e,r)}),n},t.prototype._allControlsDisabled=function(){for(var e=0,t=Object.keys(this.controls);e<t.length;e++)if(this.controls[t[e]].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},t}(hn),yn=function(e){function t(t,n,r){var o=e.call(this,an(n),un(r,n))||this;return o.controls=t,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return Object(f.b)(t,e),t.prototype.at=function(e){return this.controls[e]},t.prototype.push=function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.insert=function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.removeAt=function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),this.updateValueAndValidity(),this._onCollectionChange()},t.prototype.setControl=function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange(function(){}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(t.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),t.prototype.setValue=function(e,t){var n=this;void 0===t&&(t={}),this._checkAllValuesPresent(e),e.forEach(function(e,r){n._throwIfControlMissing(r),n.at(r).setValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.patchValue=function(e,t){var n=this;void 0===t&&(t={}),e.forEach(function(e,r){n.at(r)&&n.at(r).patchValue(e,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)},t.prototype.reset=function(e,t){void 0===e&&(e=[]),void 0===t&&(t={}),this._forEachChild(function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t),this._updatePristine(t),this._updateTouched(t)},t.prototype.getRawValue=function(){return this.controls.map(function(e){return e instanceof dn?e.value:e.getRawValue()})},t.prototype._syncPendingControls=function(){var e=this.controls.reduce(function(e,t){return!!t._syncPendingControls()||e},!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e},t.prototype._throwIfControlMissing=function(e){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(e))throw new Error("Cannot find form control at index "+e)},t.prototype._forEachChild=function(e){this.controls.forEach(function(t,n){e(t,n)})},t.prototype._updateValue=function(){var e=this;this.value=this.controls.filter(function(t){return t.enabled||e.disabled}).map(function(e){return e.value})},t.prototype._anyControls=function(e){return this.controls.some(function(t){return t.enabled&&e(t)})},t.prototype._setUpControls=function(){var e=this;this._forEachChild(function(t){return e._registerControl(t)})},t.prototype._checkAllValuesPresent=function(e){this._forEachChild(function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: "+n+".")})},t.prototype._allControlsDisabled=function(){for(var e=0,t=this.controls;e<t.length;e++)if(t[e].enabled)return!1;return this.controls.length>0||this.disabled},t.prototype._registerControl=function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)},t}(hn),gn=Promise.resolve(null),mn=function(e){function t(t,n){var r=e.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new i.j,r.form=new fn({},nn(t),rn(n)),r}return Object(f.b)(t,e),t.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(t.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),t.prototype.addControl=function(e){var t=this;gn.then(function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),Jt(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)})},t.prototype.getControl=function(e){return this.form.get(e.path)},t.prototype.removeControl=function(e){var t=this;gn.then(function(){var n,r,o=t._findContainer(e.path);o&&o.removeControl(e.name),(r=(n=t._directives).indexOf(e))>-1&&n.splice(r,1)})},t.prototype.addFormGroup=function(e){var t=this;gn.then(function(){var n=t._findContainer(e.path),r=new fn({});(function(e,t){null==e&&tn(t,"Cannot find control with"),e.validator=At.compose([e.validator,t.validator]),e.asyncValidator=At.composeAsync([e.asyncValidator,t.asyncValidator])})(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})})},t.prototype.removeFormGroup=function(e){var t=this;gn.then(function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)})},t.prototype.getFormGroup=function(e){return this.form.get(e.path)},t.prototype.updateModel=function(e,t){var n=this;gn.then(function(){n.form.get(e.path).setValue(t)})},t.prototype.setValue=function(e){this.control.setValue(e)},t.prototype.onSubmit=function(e){return this.submitted=!0,t=this._directives,this.form._syncPendingControls(),t.forEach(function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)}),this.ngSubmit.emit(e),!1;var t},t.prototype.onReset=function(){this.resetForm()},t.prototype.resetForm=function(e){void 0===e&&(e=void 0),this.form.reset(e),this.submitted=!1},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},t.prototype._findContainer=function(e){return e.pop(),e.length?this.form.get(e):this.form},t}(Tt),vn='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',_n='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',bn=function(){function e(){}return e.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 \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n ')},e.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 "+vn+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+_n)},e.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},e.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 "+vn+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+_n)},e}(),wn=function(e){function t(t,n,r){var o=e.call(this)||this;return o._parent=t,o._validators=n,o._asyncValidators=r,o}return Object(f.b)(t,e),t.prototype._checkParentType=function(){this._parent instanceof t||this._parent instanceof mn||bn.modelGroupParentException()},t}(ln),Cn=Promise.resolve(null),En=function(e){function t(t,n,r,o){var l=e.call(this)||this;return l.control=new dn,l._registered=!1,l.update=new i.j,l._parent=t,l._rawValidators=n||[],l._rawAsyncValidators=r||[],l.valueAccessor=function(e,t){if(!t)return null;var n=void 0,r=void 0,o=void 0;return t.forEach(function(t){var i;t.constructor===Rt?n=t:(i=t,on.some(function(e){return i.constructor===e})?(r&&tn(e,"More than one built-in value accessor matches form control with"),r=t):(o&&tn(e,"More than one custom value accessor matches form control with"),o=t))}),o||r||n||(tn(e,"No valid value accessor for form control with"),null)}(l,o),l}return Object(f.b)(t,e),t.prototype.ngOnChanges=function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object(i._1)(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},t.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(t.prototype,"path",{get:function(){return this._parent?Yt(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"validator",{get:function(){return nn(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"asyncValidator",{get:function(){return rn(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),t.prototype.viewToModelUpdate=function(e){this.viewModel=e,this.update.emit(e)},t.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},t.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},t.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},t.prototype._setUpStandalone=function(){Jt(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},t.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},t.prototype._checkParentType=function(){!(this._parent instanceof wn)&&this._parent instanceof ln?bn.formGroupNameException():this._parent instanceof wn||this._parent instanceof mn||bn.modelParentException()},t.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||bn.missingNameException()},t.prototype._updateValue=function(e){var t=this;Cn.then(function(){t.control.setValue(e,{emitViewToModelChange:!1})})},t.prototype._updateDisabled=function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;Cn.then(function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()})},t}(Ht),xn=function(){function e(){}return Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(e){this._required=null!=e&&!1!==e&&""+e!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),e.prototype.validate=function(e){return this.required?At.required(e):null},e.prototype.registerOnValidatorChange=function(e){this._onChange=e},e}(),Sn=function(){},Tn=function(){},kn=function(){function e(e){this.dataservice=e,this.title="app",this.layerobj=new Array,this.svg_h=50,this.svg_w=50,this.dataname=new Array,this.arrows=function(e){var t=e.length;if(0!=t){for(var n="M "+e[0].x+" "+e[0].y,r=[],o=function(t){var n=void 0;n=[0,1,2].map(function(n){return e[t+n].x+" "+e[t+n].y}),n="C".concat(n),r.push("M "+e[t].x+" "+e[t].y+" "+n)},i=0;i<t-2;i+=2)o(i);return r.join(" "),n+" "+r}}}return e.prototype.ngOnInit=function(){this.selectednode=null,this.signal="hide",this.LineAmount=new Array,(new Array).push("conv1"),this.name_change="a",this.bottom_change="c",this.top_change="b",this.menudata="",this.menuflag="",this.blobreader=new FileReader,this.logreader=new FileReader,this.blob=new Blob([this.read],{type:"text/plain"}),this.centerx=0,pn=.99,this.reluvis=!1},e.prototype.ngDoCheck=function(){this.prototxtvis&&(this.cancel(),console.log("docheck"))},e.prototype.zoom=function(e){87==d3.event.keyCode?(pn+=.1,console.log(pn)):83==d3.event.keyCode&&(pn-=.1)<=0&&(pn=.01),d3.select("g").attr("transform","scale("+pn+")"),console.log(d3.event.keyCode)},e.prototype.getUpload=function(e){var t,n,r,o,i,l,a=this,u=new Array(0),c=new Array(0),p=new Array(0);if(this.dataname=new Array,this.layerobj=new Array,e.target.files[0]){var h=e.target.files[0],d=new FileReader;d.readAsText(h),d.onload=function(e){a.blob=new Blob([d.result]),a.blobreader.readAsText(a.blob)},this.blobreader.onload=function(e){for(var h=0,d=u=a.blobreader.result.split("\n");h<d.length;h++){var f=d[h];if(0==f.trim().indexOf("#"))u.splice(u.indexOf(f),1);else if(f.trim().indexOf("#")>0){var y=f.slice(0,f.indexOf("#"));u.splice(u.indexOf(f),1,y)}}(u=u.join("\n").split("layer")).forEach(function(e,u,h){if(r="",o="",p=new Array(0),c=new Array(0),i=2,0==u)a.title=e.split(":")[1].trim().replace(/"/g,""),a.dataservice.settitle(a.title);else for(var d=0,f=t=e.split("\n");d<f.length;d++){var y=f[d];if((n=y.split(":")).length>1)switch(n[0].replace(/"/g,"").trim()){case"name":r=n[1].replace(/"/g,"").trim();break;case"type":o=n[1].replace(/"/g,"").trim();break;case"top":c.push(n[1].replace(/"/g,"").trim());break;case"bottom":p.push(n[1].replace(/"/g,"").trim());break;case"phase":i="TRAIN"==n[1].replace(/"/g,"").trim()?1:0}else{if(y.indexOf("include")>-1&&y.trim().indexOf("#")<0)continue;if(0==y.trim().indexOf("#"))continue;if(""!=r&&"{"!=y.trim()&&"}"!=y.trim()){for(l=new s(r,c,p,i);"}"!=t.pop().trim(););t.indexOf(y)>=0&&(l.text1=t.splice(t.indexOf(y)).join("\n")),l.type=o,(o.indexOf("Data")>-1||o.indexOf("data")>-1)&&(a.dataname.push(r),a.dataname=a.dataname.concat(c)),a.layerobj.push(l);break}}}}),a.dataservice.setlayer(a.layerobj),console.log("service"),console.log(a.dataservice.getlayer()),console.log("service")}}},e.prototype.download=function(){var e=this.dataservice.generatetrain(),t=new Blob([e]),n=document.createElement("a");n.setAttribute("href",window.URL.createObjectURL(t)),n.setAttribute("download","filename.txt"),n.style.visibility="hidden",document.body.appendChild(n),n.click(),document.body.removeChild(n)},e.prototype.onclk2=function(){var e;new Array,(e=new dagre.graphlib.Graph).setGraph({ranksep:20,marginx:15,marginy:10,rankdir:"TB"}),e.setDefaultEdgeLabel(function(){return{}});for(var t=0,n=this.layerobj;t<n.length;t++){var r=n[t];if("label"==r.name){if(e.setNode(r.name,{label:r.name,data:"",relu:!1,class:"label",width:Math.max(12*r.name.length,50),height:50}),r.arraybottom.length>0)for(var o=0,i=r.arraybottom;o<i.length;o++)e.setEdge(a=i[o],r.name)}else if(r.train&&(1!=r.arraybottom.length||1!=r.arraytop.length||r.arraybottom[0]!=r.arraytop[0]?e.setNode(r.name,{label:r.name,data:r.reluname,relu:!1,class:"unknownlayer",width:Math.max(12*r.name.length,60,"123".length),height:50}):(e.setNode(r.name,{label:r.name,data:r.reluname,relu:!0,class:"unknownlayer",width:Math.max(12*r.name.length,60,"123".length),height:30}),r.relu=!0),r.arraybottom.length>0))for(var l=0,s=r.arraybottom;l<s.length;l++){var a;this.dataname.indexOf(a=s[l])>0?e.setEdge(this.dataname[0],r.name):e.setEdge(a,r.name)}}dagre.layout(e),e.graph(),e.graph(),this.svg_h=e.graph().height,this.svg_w=Math.max(e.graph().width,window.innerWidth),this.centerx=Math.max((window.innerWidth-e.graph().width)/2,0);var u=[],c=[];e.nodes().forEach(function(t){var n=e.node(t);u.push(n)}),e.edges().forEach(function(t){c.push(e.edge(t))}),this.nodes=u,this.edges=c,console.log(this.edges),console.log(this.nodes),console.log(this.layerobj),console.log(pn),d3.select("svg"),d3.select("body").on("keydown",this.zoom)},e.prototype.onclk3=function(e){this.selectednode=e,this.signal="go"},e.prototype.onclk4=function(e){e!=this.selectednode&&(this.signal="hide",this.selectednode=null)},e.prototype.onclkadd=function(e){console.log(e),this.nodemenuvis=!0,this.reluvis=!0,this.signal="hide",this.bottom_change=e.label,this.menuflag="add",this.selectednode=null},e.prototype.onclkdelete=function(e){if(console.log(e),confirm("\u70b9\u51fb\u4e86del")){for(var t=-1,n=-1,r=void 0,o=0,i=this.layerobj;o<i.length;o++)e.label==(a=i[o]).name&&(n=this.layerobj.indexOf(a),r=a);for(var l=0,s=this.layerobj;l<s.length;l++){var a;if(1!=(a=s[l]).arraybottom.length||1!=a.arraytop.length||a.arraybottom[0]!=a.arraytop[0]){if(a.name!=r.name&&a.arraybottom.length>0&&(t=a.arraybottom.indexOf(r.name))>-1){a.arraybottom.splice(t,1);for(var u=0,c=r.arraybottom;u<c.length;u++)a.arraybottom.push(c[u])}}else a.arraybottom[0]==r.name||console.log(3)}this.layerobj.splice(n,1),this.onclk2()}this.dataservice.setlayer(this.layerobj),this.signal="hide",this.selectednode=null},e.prototype.onclkchange=function(e){var t;console.log(e),this.nodemenuvis=!0,this.signal="hide",this.name_change=e.label,this.menuflag="chg";for(var n=-1,r=0,o=this.layerobj;r<o.length;r++){var i=o[r];this.name_change==i.name&&i.train&&(t=i,n=this.layerobj.indexOf(i))}this.globalpos=n,this.bottom_change=t.arraybottom.join(";"),this.top_change=t.arraytop.join(";"),this.menudata=t.text1,this.selectednode=null},e.prototype.confirm=function(){switch(this.menuflag){case"add":var e=this.top_change.split(";"),t=void 0;""==e[e.length-1]&&e.pop();var n=this.bottom_change.split(";");if(""==n[n.length-1])n.pop(),(t=new s(this.name_change,e,n,2)).text1=this.menudata,this.layerobj.push(t);else{for(var r=this.layerobj.length-1;r>=0&&!(this.layerobj[r].arraytop.indexOf(n[0])>-1);r-=1);r>-1?((t=new s(this.name_change,e,n,2)).text1=this.menudata,this.layerobj.splice(r+1,0,t)):((t=new s(this.name_change,e,n,2)).text1=this.menudata,this.layerobj.push(t))}this.nodemenuvis=!1,this.onclk2();break;case"chg":var o=this.globalpos;this.layerobj[o].text1=this.menudata,this.layerobj[o].arraybottom=this.bottom_change.split(";"),this.layerobj[o].arraytop=this.top_change.split(";");var i=this.layerobj[o].name;if(""==this.layerobj[o].arraytop[this.layerobj[o].arraytop.length-1]&&this.layerobj[o].arraytop.pop(),""==this.layerobj[o].arraybottom[this.layerobj[o].arraybottom.length-1]&&this.layerobj[o].arraybottom.pop(),this.name_change!=i)for(var l=0,a=this.layerobj;l<a.length;l++){var u=a[l];u.name==i&&(u.name=this.name_change),u.arraybottom.indexOf(i)>=0&&(u.arraybottom[u.arraybottom.indexOf(i)]=this.name_change),u.arraytop.indexOf(i)>-1&&(u.arraytop[u.arraytop.indexOf(i)]=this.name_change)}this.nodemenuvis=!1,this.onclk2();break;default:this.nodemenuvis=!1}this.dataservice.setlayer(this.layerobj),this.menudata="",this.bottom_change="",this.top_change="",this.name_change=""},e.prototype.cancel=function(){this.nodemenuvis=!1,this.menudata="",this.bottom_change="",this.top_change="",this.name_change=""},e.prototype.onclkd3=function(){var e,t=this;(e=new dagre.graphlib.Graph).setGraph({ranksep:50,marginx:20,marginy:15,rankdir:"TB"}),e.setDefaultEdgeLabel(function(){return{}});for(var n=0,r=this.layerobj;n<r.length;n++){var o=r[n];if("label"==o.name){if(e.setNode(o.name,{label:o.name,data:"",class:"label",width:Math.max(12*o.name.length,50),height:30}),o.arraybottom.length>0)for(var i=0,l=o.arraybottom;i<l.length;i++)e.setEdge(u=l[i],o.name)}else if(o.train&&(1!=o.arraybottom.length||1!=o.arraytop.length||o.arraybottom[0]!=o.arraytop[0])&&(e.setNode(o.name,{label:o.name,data:"132",class:"unknownlayer",width:Math.max(12*o.name.length,60,"123".length),height:100}),o.arraybottom.length>0))for(var s=0,a=o.arraybottom;s<a.length;s++){var u;this.dataname.indexOf(u=a[s])>0?e.setEdge(this.dataname[0],o.name):e.setEdge(u,o.name)}}dagre.layout(e),e.graph(),e.graph();var c=Math.max(e.graph().height,window.innerHeight-85),p=Math.max(e.graph().width,window.innerWidth),h=[],d=[];e.nodes().forEach(function(t){var n=e.node(t);h.push(n)}),e.edges().forEach(function(t){var n=e.edge(t);d.push(n)}),console.log(d),console.log(pn);var f=d3.select("#d3vis").attr("width",p).attr("height",c).append("g").append("g").append("g"),y=f.selectAll(".node").data(h).enter().append("g").attr("class","node").attr("transform",function(e){return"translate("+e.x+", "+e.y+")"});y.append("rect").attr("class","layers").attr("width",function(e){return e.width}).attr("height",50).attr("transform",function(e){return"translate( "+.5*-e.width+","+-25+")"}).style("fill","yellow").style("stroke","none").style("opacity","0.7").classed("shadow",!0).on("mousedown",this.onclk3).on("mouseover",this.onclk4),y.append("text").attr("class","labels").style("text-anchor","middle").text(function(e){return e.label.split("/").pop()}),f.selectAll(".link").data(d).enter().append("g").attr("class","link").append("path").attr("d",function(e){return t.arrows(e.points)}).attr("stroke","#aaa").attr("stroke-width",2).attr("class","links").attr("fill","none").attr("marker-end","url(#arrow)")},e}(),On=i.T({encapsulation:0,styles:[[".layer[_ngcontent-%COMP%], .layer2[_ngcontent-%COMP%]{position:absolute}.layer2[_ngcontent-%COMP%]{border:1px solid }svg[_ngcontent-%COMP%]{overflow:scroll}.menu[_ngcontent-%COMP%]{font-weight:600;font-family:Microsoft YaHei}.menustage[_ngcontent-%COMP%]{border:2px solid;position:fixed;margin-left:100px;margin-top:50px;background-color:#faebd7;padding:10px;z-index:100}.relu[_ngcontent-%COMP%]{border-top:1px solid red}.layers[_ngcontent-%COMP%]{stroke-width:1;stroke:#000}"]],data:{animation:[{type:7,name:"signal",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:"0"},offset:null},options:void 0},{type:0,name:"hide",styles:{type:6,styles:{opacity:"0"},offset:null},options:void 0},{type:0,name:"go",styles:{type:6,styles:{opacity:"0.6"},offset:null},options:void 0},{type:1,expr:"* => *",animation:{type:4,styles:null,timings:250},options:null}],options:{}}]}});function Pn(e){return i._11(0,[(e()(),i.V(0,0,null,null,51,"div",[["class","menustage"]],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(2,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n \u8282\u70b9\u4fee\u6539\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(5,0,null,null,8,"p",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n name\n "])),(e()(),i.V(7,0,null,null,5,"input",[["class","menuinput"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var r=!0,o=e.component;return"input"===t&&(r=!1!==i._5(e,8)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,8).onTouched()&&r),"compositionstart"===t&&(r=!1!==i._5(e,8)._compositionStart()&&r),"compositionend"===t&&(r=!1!==i._5(e,8)._compositionEnd(n.target.value)&&r),"ngModelChange"===t&&(r=!1!==(o.name_change=n)&&r),r},null,null)),i.U(8,16384,null,0,Rt,[i.w,i.h,[2,Dt]],null,null),i._7(1024,null,jt,function(e){return[e]},[Rt]),i.U(10,671744,null,0,En,[[8,null],[8,null],[8,null],[2,jt]],{model:[0,"model"]},{update:"ngModelChange"}),i._7(2048,null,Ht,null,[En]),i.U(12,16384,null,0,sn,[Ht],null,null),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(15,0,null,null,8,"p",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n top\n "])),(e()(),i.V(17,0,null,null,5,"input",[["class","menuinput"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var r=!0,o=e.component;return"input"===t&&(r=!1!==i._5(e,18)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,18).onTouched()&&r),"compositionstart"===t&&(r=!1!==i._5(e,18)._compositionStart()&&r),"compositionend"===t&&(r=!1!==i._5(e,18)._compositionEnd(n.target.value)&&r),"ngModelChange"===t&&(r=!1!==(o.top_change=n)&&r),r},null,null)),i.U(18,16384,null,0,Rt,[i.w,i.h,[2,Dt]],null,null),i._7(1024,null,jt,function(e){return[e]},[Rt]),i.U(20,671744,null,0,En,[[8,null],[8,null],[8,null],[2,jt]],{model:[0,"model"]},{update:"ngModelChange"}),i._7(2048,null,Ht,null,[En]),i.U(22,16384,null,0,sn,[Ht],null,null),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(25,0,null,null,8,"p",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n bottom\n "])),(e()(),i.V(27,0,null,null,5,"input",[["class","menuinput"],["type","text"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var r=!0,o=e.component;return"input"===t&&(r=!1!==i._5(e,28)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,28).onTouched()&&r),"compositionstart"===t&&(r=!1!==i._5(e,28)._compositionStart()&&r),"compositionend"===t&&(r=!1!==i._5(e,28)._compositionEnd(n.target.value)&&r),"ngModelChange"===t&&(r=!1!==(o.bottom_change=n)&&r),r},null,null)),i.U(28,16384,null,0,Rt,[i.w,i.h,[2,Dt]],null,null),i._7(1024,null,jt,function(e){return[e]},[Rt]),i.U(30,671744,null,0,En,[[8,null],[8,null],[8,null],[2,jt]],{model:[0,"model"]},{update:"ngModelChange"}),i._7(2048,null,Ht,null,[En]),i.U(32,16384,null,0,sn,[Ht],null,null),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(35,0,null,null,8,"p",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n data\n "])),(e()(),i.V(37,0,null,null,5,"textarea",[["class","menuinput"],["style","height:200px;width:400px;"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(e,t,n){var r=!0,o=e.component;return"input"===t&&(r=!1!==i._5(e,38)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,38).onTouched()&&r),"compositionstart"===t&&(r=!1!==i._5(e,38)._compositionStart()&&r),"compositionend"===t&&(r=!1!==i._5(e,38)._compositionEnd(n.target.value)&&r),"ngModelChange"===t&&(r=!1!==(o.menudata=n)&&r),r},null,null)),i.U(38,16384,null,0,Rt,[i.w,i.h,[2,Dt]],null,null),i._7(1024,null,jt,function(e){return[e]},[Rt]),i.U(40,671744,null,0,En,[[8,null],[8,null],[8,null],[2,jt]],{model:[0,"model"]},{update:"ngModelChange"}),i._7(2048,null,Ht,null,[En]),i.U(42,16384,null,0,sn,[Ht],null,null),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n\n "])),(e()(),i.V(45,0,null,null,0,"input",[["type","button"],["value","confirm"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.confirm()&&r),r},null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(47,0,null,null,0,"input",[["type","button"],["value","cancel"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.cancel()&&r),r},null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(49,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),i._10(-1,null,["examples/mnist/mnist_train_lmdb|train_lmdb "])),(e()(),i._10(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,10,0,n.name_change),e(t,20,0,n.top_change),e(t,30,0,n.bottom_change),e(t,40,0,n.menudata)},function(e,t){e(t,7,0,i._5(t,12).ngClassUntouched,i._5(t,12).ngClassTouched,i._5(t,12).ngClassPristine,i._5(t,12).ngClassDirty,i._5(t,12).ngClassValid,i._5(t,12).ngClassInvalid,i._5(t,12).ngClassPending),e(t,17,0,i._5(t,22).ngClassUntouched,i._5(t,22).ngClassTouched,i._5(t,22).ngClassPristine,i._5(t,22).ngClassDirty,i._5(t,22).ngClassValid,i._5(t,22).ngClassInvalid,i._5(t,22).ngClassPending),e(t,27,0,i._5(t,32).ngClassUntouched,i._5(t,32).ngClassTouched,i._5(t,32).ngClassPristine,i._5(t,32).ngClassDirty,i._5(t,32).ngClassValid,i._5(t,32).ngClassInvalid,i._5(t,32).ngClassPending),e(t,37,0,i._5(t,42).ngClassUntouched,i._5(t,42).ngClassTouched,i._5(t,42).ngClassPristine,i._5(t,42).ngClassDirty,i._5(t,42).ngClassValid,i._5(t,42).ngClassInvalid,i._5(t,42).ngClassPending)})}function An(e){return i._11(0,[(e()(),i.V(0,0,null,null,6,":svg:g",[["class","link"]],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(2,0,null,null,0,":svg:path",[["class","links"],["fill","none"],["marker-end",'url("#arrow")'],["stroke","blue"],["stroke-width","1"]],[[1,"d",0]],null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(4,0,null,null,1,":svg:text",[["class","labels"],["style","text-anchor:start;"]],[[1,"transform",0]],null,null,null,null)),(e()(),i._10(5,null,["",""])),(e()(),i._10(-1,null,["\n "]))],null,function(e,t){e(t,2,0,t.component.arrows(t.context.$implicit.points)),e(t,4,0,"translate("+t.context.$implicit.points[1].x+","+t.context.$implicit.points[1].y+")"),e(t,5,0,t.context.$implicit.label)})}function Vn(e){return i._11(0,[(e()(),i.V(0,0,null,null,0,":svg:rect",[["class","layers shadow"],["style","opacity: 0.7; fill:yellow ;"]],[[1,"transform",0],[1,"width",0],[1,"height",0]],null,null,null,null))],null,function(e,t){e(t,0,0,"translate("+.5*(0-t.parent.context.$implicit.width)+","+.5*(0-t.parent.context.$implicit.height)+")",t.parent.context.$implicit.width,t.parent.context.$implicit.height)})}function In(e){return i._11(0,[(e()(),i.V(0,0,null,null,0,":svg:rect",[["class","layers shadow"],["style","opacity: 0.7; fill:rgb(211, 204, 204) ;"]],[[1,"transform",0],[1,"width",0],[1,"height",0]],null,null,null,null))],null,function(e,t){e(t,0,0,"translate("+.5*(0-t.parent.context.$implicit.width)+","+.5*(0-t.parent.context.$implicit.height)+")",t.parent.context.$implicit.width,t.parent.context.$implicit.height)})}function Nn(e){return i._11(0,[(e()(),i.V(0,0,null,null,0,":svg:line",[["style","stroke:black; stroke-width:2"],["y1","0"],["y2","0"]],[[1,"x1",0],[1,"x2",0]],null,null,null,null))],null,function(e,t){e(t,0,0,(0-t.parent.context.$implicit.width)/3,t.parent.context.$implicit.width/3)})}function jn(e){return i._11(0,[(e()(),i.V(0,0,null,null,4,":svg:text",[["class","relu"],["style","text-anchor: middle;"]],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(2,0,null,null,1,":svg:tspan",[["class","relu"],["dx","0"],["dy","20"]],null,null,null,null,null)),(e()(),i._10(3,null,["\n ","\n "])),(e()(),i._10(-1,null,["\n "]))],null,function(e,t){e(t,3,0,t.parent.context.$implicit.data)})}function Mn(e){return i._11(0,[(e()(),i.V(0,0,null,null,19,":svg:g",[["class","node"]],[[1,"transform",0]],[[null,"mousedown"],[null,"mouseover"]],function(e,t,n){var r=!0,o=e.component;return"mousedown"===t&&(r=!1!==o.onclk3(e.context.$implicit)&&r),"mouseover"===t&&(r=!1!==o.onclk4(e.context.$implicit)&&r),r},null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.Q(16777216,null,null,1,null,Vn)),i.U(3,16384,null,0,U,[i.E,i.B],{ngIf:[0,"ngIf"]},null),(e()(),i._10(-1,null,["\n "])),(e()(),i.Q(16777216,null,null,1,null,In)),i.U(6,16384,null,0,U,[i.E,i.B],{ngIf:[0,"ngIf"]},null),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(8,0,null,null,4,":svg:text",[["class","labels"],["style","text-anchor: middle;"]],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(10,0,null,null,1,":svg:tspan",[["dx","0"],["dy","0"]],null,null,null,null,null)),(e()(),i._10(11,null,["\n ","\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.Q(16777216,null,null,1,null,Nn)),i.U(15,16384,null,0,U,[i.E,i.B],{ngIf:[0,"ngIf"]},null),(e()(),i._10(-1,null,["\n\n "])),(e()(),i.Q(16777216,null,null,1,null,jn)),i.U(18,16384,null,0,U,[i.E,i.B],{ngIf:[0,"ngIf"]},null),(e()(),i._10(-1,null,["\n "]))],function(e,t){e(t,3,0,t.context.$implicit.relu),e(t,6,0,0==t.context.$implicit.relu),e(t,15,0,t.context.$implicit.data.length),e(t,18,0,t.context.$implicit.data.length)},function(e,t){e(t,0,0,"translate("+t.context.$implicit.x+","+t.context.$implicit.y+")"),e(t,11,0,t.context.$implicit.label)})}function Dn(e){return i._11(0,[(e()(),i.V(0,0,null,null,25,":svg:g",[],[[24,"@signal",0],[1,"transform",0]],null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(2,0,null,null,6,":svg:g",[],null,[[null,"mousedown"]],function(e,t,n){var r=!0,o=e.component;return"mousedown"===t&&(r=!1!==o.onclkadd(o.selectednode)&&r),r},null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(4,0,null,null,0,":svg:circle",[["class","menupic"],["r","15"],["style"," fill: red; stroke: none;"]],[[1,"transform",0]],null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(6,0,null,null,1,":svg:text",[["class","menu"],["style","text-anchor: middle;fill:yellow;"]],[[1,"transform",0]],null,null,null,null)),(e()(),i._10(-1,null,["+"])),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(10,0,null,null,6,":svg:g",[],null,[[null,"mousedown"]],function(e,t,n){var r=!0,o=e.component;return"mousedown"===t&&(r=!1!==o.onclkdelete(o.selectednode)&&r),r},null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(12,0,null,null,0,":svg:circle",[["class","menupic"],["r","15"],["style"," fill: red; stroke: none;"]],[[1,"transform",0]],null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(14,0,null,null,1,":svg:text",[["class","menu"],["style","text-anchor: middle;fill:yellow;"]],[[1,"transform",0]],null,null,null,null)),(e()(),i._10(-1,null,["-"])),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(18,0,null,null,6,":svg:g",[],null,[[null,"mousedown"]],function(e,t,n){var r=!0,o=e.component;return"mousedown"===t&&(r=!1!==o.onclkchange(o.selectednode)&&r),r},null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(20,0,null,null,0,":svg:circle",[["class","menupic"],["r","15"],["style"," fill: red; stroke: none;"]],[[1,"transform",0]],null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(22,0,null,null,1,":svg:text",[["class","menu"],["style","text-anchor: middle;fill:yellow;"]],[[1,"transform",0]],null,null,null,null)),(e()(),i._10(-1,null,["/"])),(e()(),i._10(-1,null,["\n \n "])),(e()(),i._10(-1,null,[" \n "]))],null,function(e,t){var n=t.component;e(t,0,0,n.signal,"translate("+n.selectednode.x+","+n.selectednode.y+")"),e(t,4,0,"translate("+(0-n.selectednode.width)/2+","+-35+")"),e(t,6,0,"translate("+(0-n.selectednode.width)/2+","+-35+")"),e(t,12,0,"translate("+(0-n.selectednode.width)/2+",0)"),e(t,14,0,"translate("+(0-n.selectednode.width)/2+",0)"),e(t,20,0,"translate("+(0-n.selectednode.width)/2+",35)"),e(t,22,0,"translate("+(0-n.selectednode.width)/2+",35)")})}function Rn(e){return i._11(0,[(e()(),i.Q(16777216,null,null,1,null,Pn)),i.U(1,16384,null,0,U,[i.E,i.B],{ngIf:[0,"ngIf"]},null),(e()(),i._10(-1,null,["\n"])),(e()(),i.V(3,0,null,null,4,"div",[["style","text-align:center"]],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(5,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),i._10(6,null,["\n ","\n "])),(e()(),i._10(-1,null,["\n"])),(e()(),i._10(-1,null,["\n"])),(e()(),i.V(9,0,null,null,16,"div",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(11,0,null,null,13,":svg:svg",[["xmlns","http://www.w3.org/2000/svg"]],[[1,"width",0],[1,"height",0],[1,"transform",0]],null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(13,0,null,null,10,":svg:g",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.Q(16777216,null,null,1,null,An)),i.U(16,802816,null,0,F,[i.E,i.B,i.n],{ngForOf:[0,"ngForOf"]},null),(e()(),i._10(-1,null,["\n "])),(e()(),i.Q(16777216,null,null,1,null,Mn)),i.U(19,802816,null,0,F,[i.E,i.B,i.n],{ngForOf:[0,"ngForOf"]},null),(e()(),i._10(-1,null,["\n \n \n "])),(e()(),i.Q(16777216,null,null,1,null,Dn)),i.U(22,16384,null,0,U,[i.E,i.B],{ngIf:[0,"ngIf"]},null),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n"])),(e()(),i._10(-1,null,["\n\n"])),(e()(),i.V(27,0,null,null,16,"ul",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(29,0,null,null,3,"li",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(31,0,null,null,0,"input",[["type","button"],["value","download blob"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.download()&&r),r},null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(34,0,null,null,3,"li",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(36,0,null,null,0,"input",[["type","button"],["value","test dagre"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onclk2()&&r),r},null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(39,0,null,null,3,"li",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(41,0,null,null,0,"input",[["id","newUpload"],["type","file"]],null,[[null,"change"]],function(e,t,n){var r=!0;return"change"===t&&(r=!1!==e.component.getUpload(n)&&r),r},null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,[" \n"]))],function(e,t){var n=t.component;e(t,1,0,n.nodemenuvis),e(t,16,0,n.edges),e(t,19,0,n.nodes),e(t,22,0,n.selectednode)},function(e,t){var n=t.component;e(t,6,0,n.title),e(t,11,0,n.svg_w,n.svg_h,"translate("+n.centerx+",20)")})}var Fn=i.T({encapsulation:0,styles:[[".layer[_ngcontent-%COMP%], .layer2[_ngcontent-%COMP%]{position:absolute}.layer2[_ngcontent-%COMP%]{border:1px solid }svg[_ngcontent-%COMP%]{overflow:scroll}.menu[_ngcontent-%COMP%]{font-weight:600;font-family:Microsoft YaHei}.menustage[_ngcontent-%COMP%]{border:2px solid;position:fixed;margin-left:100px;margin-top:50px;background-color:#faebd7;padding:10px;z-index:100}.relu[_ngcontent-%COMP%]{border-top:1px solid red}.layers[_ngcontent-%COMP%]{stroke-width:1;stroke:#000}#mydrawingboard[_ngcontent-%COMP%]{width:400px}#classifyresult[_ngcontent-%COMP%]{margin-left:20px}#boardfeature[_ngcontent-%COMP%]{margin-top:25px}"]],data:{}});function Ln(e){return i._11(0,[(e()(),i.V(0,0,null,null,192,"div",[["class","menustage"]],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(2,0,null,null,1,"h1",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n \u4fee\u6539prototxt\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(5,0,null,null,44,"p",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n lr_policy\n "])),(e()(),i.V(7,0,null,null,41,"select",[["name",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var r=!0,o=e.component;return"change"===t&&(r=!1!==i._5(e,8).onChange(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,8).onTouched()&&r),"ngModelChange"===t&&(r=!1!==(o.lr_policy=n)&&r),r},null,null)),i.U(8,16384,null,0,Kt,[i.w,i.h],null,null),i._7(1024,null,jt,function(e){return[e]},[Kt]),i.U(10,671744,null,0,En,[[8,null],[8,null],[8,null],[2,jt]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),i._7(2048,null,Ht,null,[En]),i.U(12,16384,null,0,sn,[Ht],null,null),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(14,0,null,null,3,"option",[["value","fixed"]],null,null,null,null,null)),i.U(15,147456,null,0,Wt,[i.h,i.w,[2,Kt]],{value:[0,"value"]},null),i.U(16,147456,null,0,Xt,[i.h,i.w,[8,null]],{value:[0,"value"]},null),(e()(),i._10(-1,null,["fixed"])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(19,0,null,null,3,"option",[["value","step"]],null,null,null,null,null)),i.U(20,147456,null,0,Wt,[i.h,i.w,[2,Kt]],{value:[0,"value"]},null),i.U(21,147456,null,0,Xt,[i.h,i.w,[8,null]],{value:[0,"value"]},null),(e()(),i._10(-1,null,["step"])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(24,0,null,null,3,"option",[["value","exp"]],null,null,null,null,null)),i.U(25,147456,null,0,Wt,[i.h,i.w,[2,Kt]],{value:[0,"value"]},null),i.U(26,147456,null,0,Xt,[i.h,i.w,[8,null]],{value:[0,"value"]},null),(e()(),i._10(-1,null,["exp"])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(29,0,null,null,3,"option",[["selected",""],["value","inv"]],null,null,null,null,null)),i.U(30,147456,null,0,Wt,[i.h,i.w,[2,Kt]],{value:[0,"value"]},null),i.U(31,147456,null,0,Xt,[i.h,i.w,[8,null]],{value:[0,"value"]},null),(e()(),i._10(-1,null,["inv"])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(34,0,null,null,3,"option",[["value","multistep"]],null,null,null,null,null)),i.U(35,147456,null,0,Wt,[i.h,i.w,[2,Kt]],{value:[0,"value"]},null),i.U(36,147456,null,0,Xt,[i.h,i.w,[8,null]],{value:[0,"value"]},null),(e()(),i._10(-1,null,["multistep"])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(39,0,null,null,3,"option",[["value","poly"]],null,null,null,null,null)),i.U(40,147456,null,0,Wt,[i.h,i.w,[2,Kt]],{value:[0,"value"]},null),i.U(41,147456,null,0,Xt,[i.h,i.w,[8,null]],{value:[0,"value"]},null),(e()(),i._10(-1,null,["poly"])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(44,0,null,null,3,"option",[["value","sigmoid"]],null,null,null,null,null)),i.U(45,147456,null,0,Wt,[i.h,i.w,[2,Kt]],{value:[0,"value"]},null),i.U(46,147456,null,0,Xt,[i.h,i.w,[8,null]],{value:[0,"value"]},null),(e()(),i._10(-1,null,["sigmoid"])),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(51,0,null,null,16,"p",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n data_set\n "])),(e()(),i.V(53,0,null,null,13,"select",[["name",""],["required","required"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var r=!0,o=e.component;return"change"===t&&(r=!1!==i._5(e,54).onChange(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,54).onTouched()&&r),"ngModelChange"===t&&(r=!1!==(o.data_set=n)&&r),r},null,null)),i.U(54,16384,null,0,Kt,[i.w,i.h],null,null),i.U(55,16384,null,0,xn,[],{required:[0,"required"]},null),i._7(1024,null,Ot,function(e){return[e]},[xn]),i._7(1024,null,jt,function(e){return[e]},[Kt]),i.U(58,671744,null,0,En,[[8,null],[2,Ot],[8,null],[2,jt]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),i._7(2048,null,Ht,null,[En]),i.U(60,16384,null,0,sn,[Ht],null,null),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(62,0,null,null,3,"option",[["value","mnist"]],null,null,null,null,null)),i.U(63,147456,null,0,Wt,[i.h,i.w,[2,Kt]],{value:[0,"value"]},null),i.U(64,147456,null,0,Xt,[i.h,i.w,[8,null]],{value:[0,"value"]},null),(e()(),i._10(-1,null,["mnist"])),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(69,0,null,null,9,"p",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n test_iter \u6d4b\u8bd5\u7684\u6279\u6b21\n "])),(e()(),i.V(71,0,null,null,6,"input",[["class","menuinput"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var r=!0,o=e.component;return"input"===t&&(r=!1!==i._5(e,72)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,72).onTouched()&&r),"compositionstart"===t&&(r=!1!==i._5(e,72)._compositionStart()&&r),"compositionend"===t&&(r=!1!==i._5(e,72)._compositionEnd(n.target.value)&&r),"change"===t&&(r=!1!==i._5(e,73).onChange(n.target.value)&&r),"input"===t&&(r=!1!==i._5(e,73).onChange(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,73).onTouched()&&r),"ngModelChange"===t&&(r=!1!==(o.test_iter=n)&&r),r},null,null)),i.U(72,16384,null,0,Rt,[i.w,i.h,[2,Dt]],null,null),i.U(73,16384,null,0,Ut,[i.w,i.h],null,null),i._7(1024,null,jt,function(e,t){return[e,t]},[Rt,Ut]),i.U(75,671744,null,0,En,[[8,null],[8,null],[8,null],[2,jt]],{model:[0,"model"]},{update:"ngModelChange"}),i._7(2048,null,Ht,null,[En]),i.U(77,16384,null,0,sn,[Ht],null,null),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(80,0,null,null,9,"p",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n test_interval \u6d4b\u8bd5\u95f4\u9694\n "])),(e()(),i.V(82,0,null,null,6,"input",[["class","menuinput"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var r=!0,o=e.component;return"input"===t&&(r=!1!==i._5(e,83)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,83).onTouched()&&r),"compositionstart"===t&&(r=!1!==i._5(e,83)._compositionStart()&&r),"compositionend"===t&&(r=!1!==i._5(e,83)._compositionEnd(n.target.value)&&r),"change"===t&&(r=!1!==i._5(e,84).onChange(n.target.value)&&r),"input"===t&&(r=!1!==i._5(e,84).onChange(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,84).onTouched()&&r),"ngModelChange"===t&&(r=!1!==(o.test_interval=n)&&r),r},null,null)),i.U(83,16384,null,0,Rt,[i.w,i.h,[2,Dt]],null,null),i.U(84,16384,null,0,Ut,[i.w,i.h],null,null),i._7(1024,null,jt,function(e,t){return[e,t]},[Rt,Ut]),i.U(86,671744,null,0,En,[[8,null],[8,null],[8,null],[2,jt]],{model:[0,"model"]},{update:"ngModelChange"}),i._7(2048,null,Ht,null,[En]),i.U(88,16384,null,0,sn,[Ht],null,null),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(91,0,null,null,9,"p",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n base_lr \u57fa\u7840\u5b66\u4e60\u901f\u7387\n "])),(e()(),i.V(93,0,null,null,6,"input",[["class","menuinput"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var r=!0,o=e.component;return"input"===t&&(r=!1!==i._5(e,94)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,94).onTouched()&&r),"compositionstart"===t&&(r=!1!==i._5(e,94)._compositionStart()&&r),"compositionend"===t&&(r=!1!==i._5(e,94)._compositionEnd(n.target.value)&&r),"change"===t&&(r=!1!==i._5(e,95).onChange(n.target.value)&&r),"input"===t&&(r=!1!==i._5(e,95).onChange(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,95).onTouched()&&r),"ngModelChange"===t&&(r=!1!==(o.base_lr=n)&&r),r},null,null)),i.U(94,16384,null,0,Rt,[i.w,i.h,[2,Dt]],null,null),i.U(95,16384,null,0,Ut,[i.w,i.h],null,null),i._7(1024,null,jt,function(e,t){return[e,t]},[Rt,Ut]),i.U(97,671744,null,0,En,[[8,null],[8,null],[8,null],[2,jt]],{model:[0,"model"]},{update:"ngModelChange"}),i._7(2048,null,Ht,null,[En]),i.U(99,16384,null,0,sn,[Ht],null,null),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(102,0,null,null,9,"p",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n gamma \u5b66\u4e60\u7387\u53d8\u5316\u7684\u6bd4\u7387\n "])),(e()(),i.V(104,0,null,null,6,"input",[["class","menuinput"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var r=!0,o=e.component;return"input"===t&&(r=!1!==i._5(e,105)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,105).onTouched()&&r),"compositionstart"===t&&(r=!1!==i._5(e,105)._compositionStart()&&r),"compositionend"===t&&(r=!1!==i._5(e,105)._compositionEnd(n.target.value)&&r),"change"===t&&(r=!1!==i._5(e,106).onChange(n.target.value)&&r),"input"===t&&(r=!1!==i._5(e,106).onChange(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,106).onTouched()&&r),"ngModelChange"===t&&(r=!1!==(o.gamma=n)&&r),r},null,null)),i.U(105,16384,null,0,Rt,[i.w,i.h,[2,Dt]],null,null),i.U(106,16384,null,0,Ut,[i.w,i.h],null,null),i._7(1024,null,jt,function(e,t){return[e,t]},[Rt,Ut]),i.U(108,671744,null,0,En,[[8,null],[8,null],[8,null],[2,jt]],{model:[0,"model"]},{update:"ngModelChange"}),i._7(2048,null,Ht,null,[En]),i.U(110,16384,null,0,sn,[Ht],null,null),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(113,0,null,null,9,"p",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n stepsize(step)/power(inv)/stepvalue(multistep) lr_policy\u989d\u5916\u53c2\u6570\n "])),(e()(),i.V(115,0,null,null,6,"input",[["class","menuinput"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var r=!0,o=e.component;return"input"===t&&(r=!1!==i._5(e,116)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,116).onTouched()&&r),"compositionstart"===t&&(r=!1!==i._5(e,116)._compositionStart()&&r),"compositionend"===t&&(r=!1!==i._5(e,116)._compositionEnd(n.target.value)&&r),"change"===t&&(r=!1!==i._5(e,117).onChange(n.target.value)&&r),"input"===t&&(r=!1!==i._5(e,117).onChange(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,117).onTouched()&&r),"ngModelChange"===t&&(r=!1!==(o.power=n)&&r),r},null,null)),i.U(116,16384,null,0,Rt,[i.w,i.h,[2,Dt]],null,null),i.U(117,16384,null,0,Ut,[i.w,i.h],null,null),i._7(1024,null,jt,function(e,t){return[e,t]},[Rt,Ut]),i.U(119,671744,null,0,En,[[8,null],[8,null],[8,null],[2,jt]],{model:[0,"model"]},{update:"ngModelChange"}),i._7(2048,null,Ht,null,[En]),i.U(121,16384,null,0,sn,[Ht],null,null),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(124,0,null,null,9,"p",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n display\n "])),(e()(),i.V(126,0,null,null,6,"input",[["class","menuinput"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var r=!0,o=e.component;return"input"===t&&(r=!1!==i._5(e,127)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,127).onTouched()&&r),"compositionstart"===t&&(r=!1!==i._5(e,127)._compositionStart()&&r),"compositionend"===t&&(r=!1!==i._5(e,127)._compositionEnd(n.target.value)&&r),"change"===t&&(r=!1!==i._5(e,128).onChange(n.target.value)&&r),"input"===t&&(r=!1!==i._5(e,128).onChange(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,128).onTouched()&&r),"ngModelChange"===t&&(r=!1!==(o.display=n)&&r),r},null,null)),i.U(127,16384,null,0,Rt,[i.w,i.h,[2,Dt]],null,null),i.U(128,16384,null,0,Ut,[i.w,i.h],null,null),i._7(1024,null,jt,function(e,t){return[e,t]},[Rt,Ut]),i.U(130,671744,null,0,En,[[8,null],[8,null],[8,null],[2,jt]],{model:[0,"model"]},{update:"ngModelChange"}),i._7(2048,null,Ht,null,[En]),i.U(132,16384,null,0,sn,[Ht],null,null),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(135,0,null,null,9,"p",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n max_iter \u6700\u5927\u8fed\u4ee3\u6b21\u6570\n "])),(e()(),i.V(137,0,null,null,6,"input",[["class","menuinput"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var r=!0,o=e.component;return"input"===t&&(r=!1!==i._5(e,138)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,138).onTouched()&&r),"compositionstart"===t&&(r=!1!==i._5(e,138)._compositionStart()&&r),"compositionend"===t&&(r=!1!==i._5(e,138)._compositionEnd(n.target.value)&&r),"change"===t&&(r=!1!==i._5(e,139).onChange(n.target.value)&&r),"input"===t&&(r=!1!==i._5(e,139).onChange(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,139).onTouched()&&r),"ngModelChange"===t&&(r=!1!==(o.max_iter=n)&&r),r},null,null)),i.U(138,16384,null,0,Rt,[i.w,i.h,[2,Dt]],null,null),i.U(139,16384,null,0,Ut,[i.w,i.h],null,null),i._7(1024,null,jt,function(e,t){return[e,t]},[Rt,Ut]),i.U(141,671744,null,0,En,[[8,null],[8,null],[8,null],[2,jt]],{model:[0,"model"]},{update:"ngModelChange"}),i._7(2048,null,Ht,null,[En]),i.U(143,16384,null,0,sn,[Ht],null,null),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(146,0,null,null,9,"p",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n momentum \u5b66\u4e60\u7684\u53c2\u6570\n "])),(e()(),i.V(148,0,null,null,6,"input",[["class","menuinput"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var r=!0,o=e.component;return"input"===t&&(r=!1!==i._5(e,149)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,149).onTouched()&&r),"compositionstart"===t&&(r=!1!==i._5(e,149)._compositionStart()&&r),"compositionend"===t&&(r=!1!==i._5(e,149)._compositionEnd(n.target.value)&&r),"change"===t&&(r=!1!==i._5(e,150).onChange(n.target.value)&&r),"input"===t&&(r=!1!==i._5(e,150).onChange(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,150).onTouched()&&r),"ngModelChange"===t&&(r=!1!==(o.momentum=n)&&r),r},null,null)),i.U(149,16384,null,0,Rt,[i.w,i.h,[2,Dt]],null,null),i.U(150,16384,null,0,Ut,[i.w,i.h],null,null),i._7(1024,null,jt,function(e,t){return[e,t]},[Rt,Ut]),i.U(152,671744,null,0,En,[[8,null],[8,null],[8,null],[2,jt]],{model:[0,"model"]},{update:"ngModelChange"}),i._7(2048,null,Ht,null,[En]),i.U(154,16384,null,0,sn,[Ht],null,null),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(157,0,null,null,9,"p",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n weight_decay \u6743\u91cd\u8870\u51cf\u9879\n "])),(e()(),i.V(159,0,null,null,6,"input",[["class","menuinput"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var r=!0,o=e.component;return"input"===t&&(r=!1!==i._5(e,160)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,160).onTouched()&&r),"compositionstart"===t&&(r=!1!==i._5(e,160)._compositionStart()&&r),"compositionend"===t&&(r=!1!==i._5(e,160)._compositionEnd(n.target.value)&&r),"change"===t&&(r=!1!==i._5(e,161).onChange(n.target.value)&&r),"input"===t&&(r=!1!==i._5(e,161).onChange(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,161).onTouched()&&r),"ngModelChange"===t&&(r=!1!==(o.weight_decay=n)&&r),r},null,null)),i.U(160,16384,null,0,Rt,[i.w,i.h,[2,Dt]],null,null),i.U(161,16384,null,0,Ut,[i.w,i.h],null,null),i._7(1024,null,jt,function(e,t){return[e,t]},[Rt,Ut]),i.U(163,671744,null,0,En,[[8,null],[8,null],[8,null],[2,jt]],{model:[0,"model"]},{update:"ngModelChange"}),i._7(2048,null,Ht,null,[En]),i.U(165,16384,null,0,sn,[Ht],null,null),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(168,0,null,null,21,"p",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n mode\n "])),(e()(),i.V(170,0,null,null,18,"select",[["name",""],["required","required"]],[[1,"required",0],[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"change"],[null,"blur"]],function(e,t,n){var r=!0,o=e.component;return"change"===t&&(r=!1!==i._5(e,171).onChange(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,171).onTouched()&&r),"ngModelChange"===t&&(r=!1!==(o.mode=n)&&r),r},null,null)),i.U(171,16384,null,0,Kt,[i.w,i.h],null,null),i.U(172,16384,null,0,xn,[],{required:[0,"required"]},null),i._7(1024,null,Ot,function(e){return[e]},[xn]),i._7(1024,null,jt,function(e){return[e]},[Kt]),i.U(175,671744,null,0,En,[[8,null],[2,Ot],[8,null],[2,jt]],{name:[0,"name"],model:[1,"model"]},{update:"ngModelChange"}),i._7(2048,null,Ht,null,[En]),i.U(177,16384,null,0,sn,[Ht],null,null),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(179,0,null,null,3,"option",[["value","GPU"]],null,null,null,null,null)),i.U(180,147456,null,0,Wt,[i.h,i.w,[2,Kt]],{value:[0,"value"]},null),i.U(181,147456,null,0,Xt,[i.h,i.w,[8,null]],{value:[0,"value"]},null),(e()(),i._10(-1,null,["GPU"])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(184,0,null,null,3,"option",[["value","CPU"]],null,null,null,null,null)),i.U(185,147456,null,0,Wt,[i.h,i.w,[2,Kt]],{value:[0,"value"]},null),i.U(186,147456,null,0,Xt,[i.h,i.w,[8,null]],{value:[0,"value"]},null),(e()(),i._10(-1,null,["CPU"])),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n\n "])),(e()(),i.V(191,0,null,null,0,"input",[["type","button"],["value","save"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.protosave()&&r),r},null,null)),(e()(),i._10(-1,null,["\n"]))],function(e,t){var n=t.component;e(t,10,0,"",n.lr_policy),e(t,15,0,"fixed"),e(t,16,0,"fixed"),e(t,20,0,"step"),e(t,21,0,"step"),e(t,25,0,"exp"),e(t,26,0,"exp"),e(t,30,0,"inv"),e(t,31,0,"inv"),e(t,35,0,"multistep"),e(t,36,0,"multistep"),e(t,40,0,"poly"),e(t,41,0,"poly"),e(t,45,0,"sigmoid"),e(t,46,0,"sigmoid"),e(t,55,0,"required"),e(t,58,0,"",n.data_set),e(t,63,0,"mnist"),e(t,64,0,"mnist"),e(t,75,0,n.test_iter),e(t,86,0,n.test_interval),e(t,97,0,n.base_lr),e(t,108,0,n.gamma),e(t,119,0,n.power),e(t,130,0,n.display),e(t,141,0,n.max_iter),e(t,152,0,n.momentum),e(t,163,0,n.weight_decay),e(t,172,0,"required"),e(t,175,0,"",n.mode),e(t,180,0,"GPU"),e(t,181,0,"GPU"),e(t,185,0,"CPU"),e(t,186,0,"CPU")},function(e,t){e(t,7,0,i._5(t,12).ngClassUntouched,i._5(t,12).ngClassTouched,i._5(t,12).ngClassPristine,i._5(t,12).ngClassDirty,i._5(t,12).ngClassValid,i._5(t,12).ngClassInvalid,i._5(t,12).ngClassPending),e(t,53,0,i._5(t,55).required?"":null,i._5(t,60).ngClassUntouched,i._5(t,60).ngClassTouched,i._5(t,60).ngClassPristine,i._5(t,60).ngClassDirty,i._5(t,60).ngClassValid,i._5(t,60).ngClassInvalid,i._5(t,60).ngClassPending),e(t,71,0,i._5(t,77).ngClassUntouched,i._5(t,77).ngClassTouched,i._5(t,77).ngClassPristine,i._5(t,77).ngClassDirty,i._5(t,77).ngClassValid,i._5(t,77).ngClassInvalid,i._5(t,77).ngClassPending),e(t,82,0,i._5(t,88).ngClassUntouched,i._5(t,88).ngClassTouched,i._5(t,88).ngClassPristine,i._5(t,88).ngClassDirty,i._5(t,88).ngClassValid,i._5(t,88).ngClassInvalid,i._5(t,88).ngClassPending),e(t,93,0,i._5(t,99).ngClassUntouched,i._5(t,99).ngClassTouched,i._5(t,99).ngClassPristine,i._5(t,99).ngClassDirty,i._5(t,99).ngClassValid,i._5(t,99).ngClassInvalid,i._5(t,99).ngClassPending),e(t,104,0,i._5(t,110).ngClassUntouched,i._5(t,110).ngClassTouched,i._5(t,110).ngClassPristine,i._5(t,110).ngClassDirty,i._5(t,110).ngClassValid,i._5(t,110).ngClassInvalid,i._5(t,110).ngClassPending),e(t,115,0,i._5(t,121).ngClassUntouched,i._5(t,121).ngClassTouched,i._5(t,121).ngClassPristine,i._5(t,121).ngClassDirty,i._5(t,121).ngClassValid,i._5(t,121).ngClassInvalid,i._5(t,121).ngClassPending),e(t,126,0,i._5(t,132).ngClassUntouched,i._5(t,132).ngClassTouched,i._5(t,132).ngClassPristine,i._5(t,132).ngClassDirty,i._5(t,132).ngClassValid,i._5(t,132).ngClassInvalid,i._5(t,132).ngClassPending),e(t,137,0,i._5(t,143).ngClassUntouched,i._5(t,143).ngClassTouched,i._5(t,143).ngClassPristine,i._5(t,143).ngClassDirty,i._5(t,143).ngClassValid,i._5(t,143).ngClassInvalid,i._5(t,143).ngClassPending),e(t,148,0,i._5(t,154).ngClassUntouched,i._5(t,154).ngClassTouched,i._5(t,154).ngClassPristine,i._5(t,154).ngClassDirty,i._5(t,154).ngClassValid,i._5(t,154).ngClassInvalid,i._5(t,154).ngClassPending),e(t,159,0,i._5(t,165).ngClassUntouched,i._5(t,165).ngClassTouched,i._5(t,165).ngClassPristine,i._5(t,165).ngClassDirty,i._5(t,165).ngClassValid,i._5(t,165).ngClassInvalid,i._5(t,165).ngClassPending),e(t,170,0,i._5(t,172).required?"":null,i._5(t,177).ngClassUntouched,i._5(t,177).ngClassTouched,i._5(t,177).ngClassPristine,i._5(t,177).ngClassDirty,i._5(t,177).ngClassValid,i._5(t,177).ngClassInvalid,i._5(t,177).ngClassPending)})}function Un(e){return i._11(0,[(e()(),i._10(-1,null,["\n\n"])),(e()(),i.Q(16777216,null,null,1,null,Ln)),i.U(2,16384,null,0,U,[i.E,i.B],{ngIf:[0,"ngIf"]},null),(e()(),i._10(-1,null,["\n\n"])),(e()(),i.V(4,0,null,null,1,"app-graph",[],null,null,null,Rn,On)),i.U(5,376832,null,0,kn,[u],{prototxtvis:[0,"prototxtvis"]},null),(e()(),i._10(-1,null,["\n\n"])),(e()(),i.V(7,0,null,null,17,"div",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n \n"])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(10,0,null,null,1,":svg:svg",[["height","10"],["id","visualisation"]],null,null,null,null,null)),(e()(),i._10(-1,null,["\n\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(13,0,null,null,10,"table",[],null,null,null,null,null)),(e()(),i.V(14,0,null,null,9,"tbody",[],null,null,null,null,null)),(e()(),i.V(15,0,null,null,8,"tr",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(17,0,null,null,2,"td",[],null,null,null,null,null)),(e()(),i.V(18,0,null,null,0,"img",[["id","mat1"],["src",""]],null,null,null,null,null)),(e()(),i._10(-1,null,[" "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(21,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),i.V(22,0,null,null,0,"img",[["id","mat2"],["src",""]],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,[" \n"])),(e()(),i._10(-1,null,["\n"])),(e()(),i.V(26,0,null,null,12,"table",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n\n "])),(e()(),i.V(28,0,null,null,10,"tbody",[],null,null,null,null,null)),(e()(),i.V(29,0,null,null,8,"tr",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(31,0,null,null,2,"td",[],null,null,null,null,null)),(e()(),i.V(32,0,null,null,0,"div",[["id","mydrawingboard"]],null,null,null,null,null)),(e()(),i._10(-1,null,[" "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(35,0,null,null,1,"td",[],null,null,null,null,null)),(e()(),i.V(36,0,null,null,0,"img",[["id","boardfeature"],["src",""]],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n"])),(e()(),i._10(-1,null,["\n"])),(e()(),i.V(40,0,null,null,23,"table",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(42,0,null,null,21,"tbody",[],null,null,null,null,null)),(e()(),i.V(43,0,null,null,19,"tr",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(45,0,null,null,9,"td",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\u6807\u7b7e\uff1a"])),(e()(),i.V(47,0,null,null,6,"input",[["max","10"],["min","0"],["type","number"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"],[null,"change"]],function(e,t,n){var r=!0,o=e.component;return"input"===t&&(r=!1!==i._5(e,48)._handleInput(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,48).onTouched()&&r),"compositionstart"===t&&(r=!1!==i._5(e,48)._compositionStart()&&r),"compositionend"===t&&(r=!1!==i._5(e,48)._compositionEnd(n.target.value)&&r),"change"===t&&(r=!1!==i._5(e,49).onChange(n.target.value)&&r),"input"===t&&(r=!1!==i._5(e,49).onChange(n.target.value)&&r),"blur"===t&&(r=!1!==i._5(e,49).onTouched()&&r),"ngModelChange"===t&&(r=!1!==(o.numlabel=n)&&r),r},null,null)),i.U(48,16384,null,0,Rt,[i.w,i.h,[2,Dt]],null,null),i.U(49,16384,null,0,Ut,[i.w,i.h],null,null),i._7(1024,null,jt,function(e,t){return[e,t]},[Rt,Ut]),i.U(51,671744,null,0,En,[[8,null],[8,null],[8,null],[2,jt]],{model:[0,"model"]},{update:"ngModelChange"}),i._7(2048,null,Ht,null,[En]),i.U(53,16384,null,0,sn,[Ht],null,null),(e()(),i.V(54,0,null,null,0,"input",[["type","button"],["value","upload"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.uploaddata()&&r),r},null,null)),(e()(),i._10(-1,null,["\n \u5df2\u6709\uff1a"])),(e()(),i.V(56,0,null,null,1,"td",[["id","datanumber"]],null,null,null,null,null)),(e()(),i._10(-1,null,["0"])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(59,0,null,null,2,"td",[],null,null,null,null,null)),(e()(),i.V(60,0,null,null,0,"input",[["type","button"],["value","complete"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.completedata()&&r),r},null,null)),(e()(),i.V(61,0,null,null,0,"input",[["type","button"],["value","clear all"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.cleardata()&&r),r},null,null)),(e()(),i._10(-1,null,["\n \n "])),(e()(),i._10(-1,null,["\n \n"])),(e()(),i._10(-1,null,[" \n"])),(e()(),i.V(65,0,null,null,1,"pre",[["id","classifyresult"]],null,null,null,null,null)),(e()(),i._10(-1,null,["test "])),(e()(),i._10(-1,null,["\n\n\n"])),(e()(),i.V(68,0,null,null,46,"ul",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n"])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(71,0,null,null,3,"li",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(73,0,null,null,0,"input",[["type","button"],["value","editprototxt"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.editprototxt()&&r),r},null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(76,0,null,null,3,"li",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(78,0,null,null,0,"input",[["type","button"],["value","upload"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.upload()&&r),r},null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(81,0,null,null,3,"li",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(83,0,null,null,0,"input",[["type","button"],["value","terminate"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.terminate()&&r),r},null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(86,0,null,null,3,"li",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(88,0,null,null,0,"input",[["type","button"],["value","continue"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.oncontinue()&&r),r},null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(91,0,null,null,3,"li",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(93,0,null,null,0,"input",[["type","button"],["value","continue next step"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.onstep()&&r),r},null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(96,0,null,null,5,"li",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(98,0,null,null,0,"input",[["id","featurelayer"],["type","text"]],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(100,0,null,null,0,"input",[["type","button"],["value","get feature map"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.getfeature()&&r),r},null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(103,0,null,null,3,"li",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(105,0,null,null,0,"input",[["type","button"],["value","classifypic"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.classifypic()&&r),r},null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(108,0,null,null,5,"li",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(110,0,null,null,0,"input",[["id","boardfeaturelayer"],["type","text"]],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(112,0,null,null,0,"input",[["type","button"],["value","get board feature map"]],null,[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.getboardfeature()&&r),r},null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i._10(-1,null,["\n"])),(e()(),i._10(-1,null,["\n\n"])),(e()(),i.V(116,0,null,null,3,"div",[],null,null,null,null,null)),(e()(),i._10(-1,null,["\n "])),(e()(),i.V(118,0,null,null,0,"p",[["id","networkstatus"]],null,null,null,null,null)),(e()(),i._10(-1,null,["\n"])),(e()(),i._10(-1,null,["\n\n"]))],function(e,t){var n=t.component;e(t,2,0,n.prototxtvis),e(t,5,0,n.prototxtvis),e(t,51,0,n.numlabel)},function(e,t){e(t,47,0,i._5(t,53).ngClassUntouched,i._5(t,53).ngClassTouched,i._5(t,53).ngClassPristine,i._5(t,53).ngClassDirty,i._5(t,53).ngClassValid,i._5(t,53).ngClassInvalid,i._5(t,53).ngClassPending)})}var Bn=i.R("app-root",d,function(e){return i._11(0,[(e()(),i.V(0,0,null,null,1,"app-root",[],null,null,null,Un,Fn)),i.U(1,114688,null,0,d,[u],null,null)],function(e,t){e(t,1,0)},null)},{},{},[]),Hn=function(){},qn="*";function zn(e,t){return void 0===t&&(t=null),{type:2,steps:e,options:t}}function Qn(e){return{type:6,styles:e,offset:null}}function Gn(e){Promise.resolve(null).then(e)}var Kn=function(){function e(){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=0}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.init=function(){},e.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},e.prototype.triggerMicrotask=function(){var e=this;Gn(function(){return e._onFinish()})},e.prototype._onStart=function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]},e.prototype.pause=function(){},e.prototype.restart=function(){},e.prototype.finish=function(){this._onFinish()},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){},e.prototype.setPosition=function(e){},e.prototype.getPosition=function(){return 0},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),Wn=function(){function e(e){var t=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var n=0,r=0,o=0,i=this.players.length;0==i?Gn(function(){return t._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++n==i&&t._onFinish()}),e.onDestroy(function(){++r==i&&t._onDestroy()}),e.onStart(function(){++o==i&&t._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this.players.forEach(function(e){return e.init()})},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})},e.prototype.pause=function(){this.players.forEach(function(e){return e.pause()})},e.prototype.restart=function(){this.players.forEach(function(e){return e.restart()})},e.prototype.finish=function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})},e.prototype.destroy=function(){this._onDestroy()},e.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype.setPosition=function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})},e.prototype.getPosition=function(){var e=0;return this.players.forEach(function(t){var n=t.getPosition();e=Math.min(n,e)}),e},e.prototype.beforeDestroy=function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),Zn="!";function $n(e){switch(e.length){case 0:return new Kn;case 1:return e[0];default:return new Wn(e)}}function Xn(e,t,n,r,o,i){void 0===o&&(o={}),void 0===i&&(i={});var l=[],s=[],a=-1,u=null;if(r.forEach(function(e){var n=e.offset,r=n==a,c=r&&u||{};Object.keys(e).forEach(function(n){var r=n,s=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,l),s){case Zn:s=o[n];break;case qn:s=i[n];break;default:s=t.normalizeStyleValue(n,r,s,l)}c[r]=s}),r||s.push(c),u=c,a=n}),l.length)throw new Error("Unable to animate due to the following errors:\n - "+l.join("\n - "));return s}function Yn(e,t,n,r){switch(t){case"start":e.onStart(function(){return r(n&&Jn(n,"start",e.totalTime))});break;case"done":e.onDone(function(){return r(n&&Jn(n,"done",e.totalTime))});break;case"destroy":e.onDestroy(function(){return r(n&&Jn(n,"destroy",e.totalTime))})}}function Jn(e,t,n){var r=er(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,void 0==n?e.totalTime:n),o=e._data;return null!=o&&(r._data=o),r}function er(e,t,n,r,o,i){return void 0===o&&(o=""),void 0===i&&(i=0),{element:e,triggerName:t,fromState:n,toState:r,phaseName:o,totalTime:i}}function tr(e,t,n){var r;return e instanceof Map?(r=e.get(t))||e.set(t,r=n):(r=e[t])||(r=e[t]=n),r}function nr(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}var rr=function(e,t){return!1},or=function(e,t){return!1},ir=function(e,t,n){return[]};if("undefined"!=typeof Element){if(rr=function(e,t){return e.contains(t)},Element.prototype.matches)or=function(e,t){return e.matches(t)};else{var lr=Element.prototype,sr=lr.matchesSelector||lr.mozMatchesSelector||lr.msMatchesSelector||lr.oMatchesSelector||lr.webkitMatchesSelector;sr&&(or=function(e,t){return sr.apply(e,[t])})}ir=function(e,t,n){var r=[];if(n)r.push.apply(r,e.querySelectorAll(t));else{var o=e.querySelector(t);o&&r.push(o)}return r}}var ar=null,ur=!1;function cr(e){ar||(ar=pr()||{},ur=!!ar.style&&"WebkitAppearance"in ar.style);var t=!0;return ar.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in ar.style)&&ur&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in ar.style),t}function pr(){return"undefined"!=typeof document?document.body:null}var hr=or,dr=rr,fr=ir,yr=function(){function e(){}return e.prototype.validateStyleProperty=function(e){return cr(e)},e.prototype.matchesElement=function(e,t){return hr(e,t)},e.prototype.containsElement=function(e,t){return dr(e,t)},e.prototype.query=function(e,t,n){return fr(e,t,n)},e.prototype.computeStyle=function(e,t,n){return n||""},e.prototype.animate=function(e,t,n,r,o,i){return void 0===i&&(i=[]),new Kn},e}(),gr=function(){function e(){}return e.NOOP=new yr,e}(),mr=1e3;function vr(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:_r(parseFloat(t[1]),t[2])}function _r(e,t){switch(t){case"s":return e*mr;default:return e}}function br(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var r,o=0,i="";if("string"==typeof e){var l=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===l)return t.push('The provided timing value "'+e+'" is invalid.'),{duration:0,delay:0,easing:""};r=_r(parseFloat(l[1]),l[2]);var s=l[3];null!=s&&(o=_r(Math.floor(parseFloat(s)),l[4]));var a=l[5];a&&(i=a)}else r=e;if(!n){var u=!1,c=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),u=!0),o<0&&(t.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&t.splice(c,0,'The provided timing value "'+e+'" is invalid.')}return{duration:r,delay:o,easing:i}}(e,t,n)}function wr(e,t){return void 0===t&&(t={}),Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function Cr(e,t,n){if(void 0===n&&(n={}),t)for(var r in e)n[r]=e[r];else wr(e,n);return n}function Er(e,t){e.style&&Object.keys(t).forEach(function(n){var r=Vr(n);e.style[r]=t[n]})}function xr(e,t){e.style&&Object.keys(t).forEach(function(t){var n=Vr(t);e.style[n]=""})}function Sr(e){return Array.isArray(e)?1==e.length?e[0]:zn(e):e}var Tr=new RegExp("{{\\s*(.+?)\\s*}}","g");function kr(e){var t=[];if("string"==typeof e){for(var n=e.toString(),r=void 0;r=Tr.exec(n);)t.push(r[1]);Tr.lastIndex=0}return t}function Or(e,t,n){var r=e.toString(),o=r.replace(Tr,function(e,r){var o=t[r];return t.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),o=""),o.toString()});return o==r?e:o}function Pr(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var Ar=/-+([a-z0-9])/g;function Vr(e){return e.replace(Ar,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e[1].toUpperCase()})}function Ir(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #"+t.type)}}var Nr="*",jr=new Set(["true","1"]),Mr=new Set(["false","0"]);function Dr(e,t){var n=jr.has(e)||Mr.has(e),r=jr.has(t)||Mr.has(t);return function(o,i){var l=e==Nr||e==o,s=t==Nr||t==i;return!l&&n&&"boolean"==typeof o&&(l=o?jr.has(e):Mr.has(e)),!s&&r&&"boolean"==typeof i&&(s=i?jr.has(t):Mr.has(t)),l&&s}}var Rr=new RegExp("s*:selfs*,?","g");function Fr(e,t,n){return new Lr(e).build(t,n)}var Lr=function(){function e(e){this._driver=e}return e.prototype.build=function(e,t){var n=new Ur(t);return this._resetContextStyleTimingState(n),Ir(this,Sr(e),n)},e.prototype._resetContextStyleTimingState=function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0},e.prototype.visitTrigger=function(e,t){var n=this,r=t.queryCount=0,o=t.depCount=0,i=[],l=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var s=e,a=s.name;a.split(/\s*,\s*/).forEach(function(e){s.name=e,i.push(n.visitState(s,t))}),s.name=a}else if(1==e.type){var u=n.visitTransition(e,t);r+=u.queryCount,o+=u.depCount,l.push(u)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:i,transitions:l,queryCount:r,depCount:o,options:null}},e.prototype.visitState=function(e,t){var n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){var o=new Set,i=r||{};if(n.styles.forEach(function(e){if(Br(e)){var t=e;Object.keys(t).forEach(function(e){kr(t[e]).forEach(function(e){i.hasOwnProperty(e)||o.add(e)})})}}),o.size){var l=Pr(o.values());t.errors.push('state("'+e.name+'", ...) must define default values for all the following style substitutions: '+l.join(", "))}}return{type:0,name:e.name,style:n,options:r?{params:r}:null}},e.prototype.visitTransition=function(e,t){t.queryCount=0,t.depCount=0;var n,r,o,i=Ir(this,Sr(e.animation),t);return{type:1,matchers:(n=e.expr,r=t.errors,o=[],"string"==typeof n?n.split(/\s*,\s*/).forEach(function(e){return function(e,t,n){if(":"==e[0]){var r=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t)<parseFloat(e)};default:return t.push('The transition alias value "'+e+'" is not supported'),"* => *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}var o=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return n.push('The provided transition expression "'+e+'" is not supported'),t;var i=o[1],l=o[2],s=o[3];t.push(Dr(i,s)),"<"!=l[0]||i==Nr&&s==Nr||t.push(Dr(s,i))}(e,o,r)}):o.push(n),o),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Hr(e.options)}},e.prototype.visitSequence=function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return Ir(n,e,t)}),options:Hr(e.options)}},e.prototype.visitGroup=function(e,t){var n=this,r=t.currentTime,o=0,i=e.steps.map(function(e){t.currentTime=r;var i=Ir(n,e,t);return o=Math.max(o,t.currentTime),i});return t.currentTime=o,{type:3,steps:i,options:Hr(e.options)}},e.prototype.visitAnimate=function(e,t){var n,r=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return qr(br(e,t).duration,0,"");var r=e;if(r.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var o=qr(0,0,"");return o.dynamic=!0,o.strValue=r,o}return qr((n=n||br(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;var o=e.styles?e.styles:Qn({});if(5==o.type)n=this.visitKeyframes(o,t);else{var i=e.styles,l=!1;if(!i){l=!0;var s={};r.easing&&(s.easing=r.easing),i=Qn(s)}t.currentTime+=r.duration+r.delay;var a=this.visitStyle(i,t);a.isEmptyStep=l,n=a}return t.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},e.prototype.visitStyle=function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n},e.prototype._makeStyleAst=function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==qn?n.push(e):t.errors.push("The provided style string value "+e+" is not allowed."):n.push(e)}):n.push(e.styles);var r=!1,o=null;return n.forEach(function(e){if(Br(e)){var t=e,n=t.easing;if(n&&(o=n,delete t.easing),!r)for(var i in t)if(t[i].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}},e.prototype._validateStyleAst=function(e,t){var n=this,r=t.currentAnimateTimings,o=t.currentTime,i=t.currentTime;r&&i>0&&(i-=r.duration+r.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(r){if(n._driver.validateStyleProperty(r)){var l,s,a,u=t.collectedStyles[t.currentQuerySelector],c=u[r],p=!0;c&&(i!=o&&i>=c.startTime&&o<=c.endTime&&(t.errors.push('The CSS property "'+r+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+i+'ms" and "'+o+'ms"'),p=!1),i=c.startTime),p&&(u[r]={startTime:i,endTime:o}),t.options&&(l=t.errors,s=t.options.params||{},(a=kr(e[r])).length&&a.forEach(function(e){s.hasOwnProperty(e)||l.push("Unable to resolve the local animation param "+e+" in the given list of values")}))}else t.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},e.prototype.visitKeyframes=function(e,t){var n=this,r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;var o=0,i=[],l=!1,s=!1,a=0,u=e.steps.map(function(e){var r=n._makeStyleAst(e,t),u=null!=r.offset?r.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(Br(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(Br(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(r.styles),c=0;return null!=u&&(o++,c=r.offset=u),s=s||c<0||c>1,l=l||c<a,a=c,i.push(c),r});s&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),l&&t.errors.push("Please ensure that all keyframe offsets are in order");var c=e.steps.length,p=0;o>0&&o<c?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==o&&(p=1/(c-1));var h=c-1,d=t.currentTime,f=t.currentAnimateTimings,y=f.duration;return u.forEach(function(e,o){var l=p>0?o==h?1:p*o:i[o],s=l*y;t.currentTime=d+f.delay+s,f.duration=s,n._validateStyleAst(e,t),e.offset=l,r.styles.push(e)}),r},e.prototype.visitReference=function(e,t){return{type:8,animation:Ir(this,Sr(e.animation),t),options:Hr(e.options)}},e.prototype.visitAnimateChild=function(e,t){return t.depCount++,{type:9,options:Hr(e.options)}},e.prototype.visitAnimateRef=function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Hr(e.options)}},e.prototype.visitQuery=function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var o=function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(Rr,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),i=o[0],l=o[1];t.currentQuerySelector=n.length?n+" "+i:i,tr(t.collectedStyles,t.currentQuerySelector,{});var s=Ir(this,Sr(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:l,animation:s,originalSelector:e.selector,options:Hr(e.options)}},e.prototype.visitStagger=function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:br(e.timings,t.errors,!0);return{type:12,animation:Ir(this,Sr(e.animation),t),timings:n,options:null}},e}(),Ur=function(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function Br(e){return!Array.isArray(e)&&"object"==typeof e}function Hr(e){var t;return e?(e=wr(e)).params&&(e.params=(t=e.params)?wr(t):null):e={},e}function qr(e,t,n){return{duration:e,delay:t,easing:n}}function zr(e,t,n,r,o,i,l,s){return void 0===l&&(l=null),void 0===s&&(s=!1),{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:o,delay:i,totalTime:o+i,easing:l,subTimeline:s}}var Qr=function(){function e(){this._map=new Map}return e.prototype.consume=function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t},e.prototype.append=function(e,t){var n=this._map.get(e);n||this._map.set(e,n=[]),n.push.apply(n,t)},e.prototype.has=function(e){return this._map.has(e)},e.prototype.clear=function(){this._map.clear()},e}(),Gr=new RegExp(":enter","g"),Kr=new RegExp(":leave","g");function Wr(e,t,n,r,o,i,l,s,a,u){return void 0===i&&(i={}),void 0===l&&(l={}),void 0===u&&(u=[]),(new Zr).buildKeyframes(e,t,n,r,o,i,l,s,a,u)}var Zr=function(){function e(){}return e.prototype.buildKeyframes=function(e,t,n,r,o,i,l,s,a,u){void 0===u&&(u=[]),a=a||new Qr;var c=new Xr(e,t,a,r,o,u,[]);c.options=s,c.currentTimeline.setStyles([i],null,c.errors,s),Ir(this,n,c);var p=c.timelines.filter(function(e){return e.containsAnimation()});if(p.length&&Object.keys(l).length){var h=p[p.length-1];h.allowOnlyTimelineStyles()||h.setStyles([l],null,c.errors,s)}return p.length?p.map(function(e){return e.buildKeyframes()}):[zr(t,[],[],[],0,0,"",!1)]},e.prototype.visitTrigger=function(e,t){},e.prototype.visitState=function(e,t){},e.prototype.visitTransition=function(e,t){},e.prototype.visitAnimateChild=function(e,t){var n=t.subInstructions.consume(t.element);if(n){var r=t.createSubContext(e.options),o=t.currentTimeline.currentTime,i=this._visitSubInstructions(n,r,r.options);o!=i&&t.transformIntoNewTimeline(i)}t.previousNode=e},e.prototype.visitAnimateRef=function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e},e.prototype._visitSubInstructions=function(e,t,n){var r=t.currentTimeline.currentTime,o=null!=n.duration?vr(n.duration):null,i=null!=n.delay?vr(n.delay):null;return 0!==o&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,o,i);r=Math.max(r,n.duration+n.delay)}),r},e.prototype.visitReference=function(e,t){t.updateOptions(e.options,!0),Ir(this,e.animation,t),t.previousNode=e},e.prototype.visitSequence=function(e,t){var n=this,r=t.subContextCount,o=t,i=e.options;if(i&&(i.params||i.delay)&&((o=t.createSubContext(i)).transformIntoNewTimeline(),null!=i.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=$r);var l=vr(i.delay);o.delayNextStep(l)}e.steps.length&&(e.steps.forEach(function(e){return Ir(n,e,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>r&&o.transformIntoNewTimeline()),t.previousNode=e},e.prototype.visitGroup=function(e,t){var n=this,r=[],o=t.currentTimeline.currentTime,i=e.options&&e.options.delay?vr(e.options.delay):0;e.steps.forEach(function(l){var s=t.createSubContext(e.options);i&&s.delayNextStep(i),Ir(n,l,s),o=Math.max(o,s.currentTimeline.currentTime),r.push(s.currentTimeline)}),r.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(o),t.previousNode=e},e.prototype._visitTiming=function(e,t){if(e.dynamic){var n=e.strValue;return br(t.params?Or(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}},e.prototype.visitAnimate=function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var o=e.style;5==o.type?this.visitKeyframes(o,t):(t.incrementTime(n.duration),this.visitStyle(o,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e},e.prototype.visitStyle=function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var o=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(o):n.setStyles(e.styles,o,t.errors,t.options),t.previousNode=e},e.prototype.visitKeyframes=function(e,t){var n=t.currentAnimateTimings,r=t.currentTimeline.duration,o=n.duration,i=t.createSubContext().currentTimeline;i.easing=n.easing,e.styles.forEach(function(e){i.forwardTime((e.offset||0)*o),i.setStyles(e.styles,e.easing,t.errors,t.options),i.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(i),t.transformIntoNewTimeline(r+o),t.previousNode=e},e.prototype.visitQuery=function(e,t){var n=this,r=t.currentTimeline.currentTime,o=e.options||{},i=o.delay?vr(o.delay):0;i&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=$r);var l=r,s=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!o.optional,t.errors);t.currentQueryTotal=s.length;var a=null;s.forEach(function(r,o){t.currentQueryIndex=o;var s=t.createSubContext(e.options,r);i&&s.delayNextStep(i),r===t.element&&(a=s.currentTimeline),Ir(n,e.animation,s),s.currentTimeline.applyStylesToKeyframe(),l=Math.max(l,s.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(l),a&&(t.currentTimeline.mergeTimelineCollectedStyles(a),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e},e.prototype.visitStagger=function(e,t){var n=t.parentContext,r=t.currentTimeline,o=e.timings,i=Math.abs(o.duration),l=i*(t.currentQueryTotal-1),s=i*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":s=l-s;break;case"full":s=n.currentStaggerTime}var a=t.currentTimeline;s&&a.delayNextStep(s);var u=a.currentTime;Ir(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)},e}(),$r={},Xr=function(){function e(e,t,n,r,o,i,l,s){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=i,this.timelines=l,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=$r,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new Yr(this._driver,t,0),l.push(this.currentTimeline)}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e,t){var n=this;if(e){var r=e,o=this.options;null!=r.duration&&(o.duration=vr(r.duration)),null!=r.delay&&(o.delay=vr(r.delay));var i=r.params;if(i){var l=o.params;l||(l=this.options.params={}),Object.keys(i).forEach(function(e){t&&l.hasOwnProperty(e)||(l[e]=Or(i[e],l,n.errors))})}}},e.prototype._copyOptions=function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e},e.prototype.createSubContext=function(t,n,r){void 0===t&&(t=null);var o=n||this.element,i=new e(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,r||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i},e.prototype.transformIntoNewTimeline=function(e){return this.previousNode=$r,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline},e.prototype.appendInstructionToTimeline=function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},o=new Jr(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(o),r},e.prototype.incrementTime=function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)},e.prototype.delayNextStep=function(e){e>0&&this.currentTimeline.delayNextStep(e)},e.prototype.invokeQuery=function(e,t,n,r,o,i){var l=[];if(r&&l.push(this.element),e.length>0){e=(e=e.replace(Gr,"."+this._enterClassName)).replace(Kr,"."+this._leaveClassName);var s=this._driver.query(this.element,e,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),l.push.apply(l,s)}return o||0!=l.length||i.push('`query("'+t+'")` returned zero elements. (Use `query("'+t+'", { optional: true })` if you wish to allow this.)'),l},e}(),Yr=function(){function e(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return e.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},e.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(e.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),e.prototype.delayNextStep=function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e},e.prototype.fork=function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)},e.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},e.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},e.prototype.forwardTime=function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()},e.prototype._updateStyle=function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}},e.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},e.prototype.applyEmptyStep=function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||qn,t._currentKeyframe[e]=qn}),this._currentEmptyStepKeyframe=this._currentKeyframe},e.prototype.setStyles=function(e,t,n,r){var o=this;t&&(this._previousKeyframe.easing=t);var i=r&&r.params||{},l=function(e,t){var n,r={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){r[e]=qn}):Cr(e,!1,r)}),r}(e,this._globalTimelineStyles);Object.keys(l).forEach(function(e){var t=Or(l[e],i,n);o._pendingStyles[e]=t,o._localTimelineStyles.hasOwnProperty(e)||(o._backFill[e]=o._globalTimelineStyles.hasOwnProperty(e)?o._globalTimelineStyles[e]:qn),o._updateStyle(e,t)})},e.prototype.applyStylesToKeyframe=function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))},e.prototype.snapshotCurrentStyles=function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})},e.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(e.prototype,"properties",{get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e},enumerable:!0,configurable:!0}),e.prototype.mergeTimelineCollectedStyles=function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var r=t._styleSummary[n],o=e._styleSummary[n];(!r||o.time>r.time)&&t._updateStyle(n,o.value)})},e.prototype.buildKeyframes=function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(i,l){var s=Cr(i,!0);Object.keys(s).forEach(function(e){var r=s[e];r==Zn?t.add(e):r==qn&&n.add(e)}),r||(s.offset=l/e.duration),o.push(s)});var i=t.size?Pr(t.values()):[],l=n.size?Pr(n.values()):[];if(r){var s=o[0],a=wr(s);s.offset=0,a.offset=1,o=[s,a]}return zr(this.element,o,i,l,this.duration,this.startTime,this.easing,!1)},e}(),Jr=function(e){function t(t,n,r,o,i,l,s){void 0===s&&(s=!1);var a=e.call(this,t,n,l.delay)||this;return a.element=n,a.keyframes=r,a.preStyleProps=o,a.postStyleProps=i,a._stretchStartingKeyframe=s,a.timings={duration:l.duration,delay:l.delay,easing:l.easing},a}return Object(f.b)(t,e),t.prototype.containsAnimation=function(){return this.keyframes.length>1},t.prototype.buildKeyframes=function(){var e=this.keyframes,t=this.timings,n=t.delay,r=t.duration,o=t.easing;if(this._stretchStartingKeyframe&&n){var i=[],l=r+n,s=n/l,a=Cr(e[0],!1);a.offset=0,i.push(a);var u=Cr(e[0],!1);u.offset=eo(s),i.push(u);for(var c=e.length-1,p=1;p<=c;p++){var h=Cr(e[p],!1);h.offset=eo((n+h.offset*r)/l),i.push(h)}r=l,n=0,o="",e=i}return zr(this.element,e,this.preStyleProps,this.postStyleProps,r,n,o,!0)},t}(Yr);function eo(e,t){void 0===t&&(t=3);var n=Math.pow(10,t-1);return Math.round(e*n)/n}var to=function(){},no=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(f.b)(t,e),t.prototype.normalizePropertyName=function(e,t){return Vr(e)},t.prototype.normalizeStyleValue=function(e,t,n,r){var o="",i=n.toString().trim();if(ro[t]&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{var l=n.match(/^[+-]?[\d\.]+([a-z]*)$/);l&&0==l[1].length&&r.push("Please provide a CSS unit value for "+e+":"+n)}return i+o},t}(to),ro=function(e){var t={};return"width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",").forEach(function(e){return t[e]=!0}),t}();function oo(e,t,n,r,o,i,l,s,a,u,c,p){return{type:0,element:e,triggerName:t,isRemovalTransition:o,fromState:n,fromStyles:i,toState:r,toStyles:l,timelines:s,queriedElements:a,preStyleProps:u,postStyleProps:c,errors:p}}var io={},lo=function(){function e(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}return e.prototype.match=function(e,t){return function(e,t,n){return e.some(function(e){return e(t,n)})}(this.ast.matchers,e,t)},e.prototype.buildStyles=function(e,t,n){var r=this._stateStyles["*"],o=this._stateStyles[e],i=r?r.buildStyles(t,n):{};return o?o.buildStyles(t,n):i},e.prototype.build=function(e,t,n,r,o,i,l,s,a){var u=[],c=this.ast.options&&this.ast.options.params||io,p=this.buildStyles(n,l&&l.params||io,u),h=s&&s.params||io,d=this.buildStyles(r,h,u),y=new Set,g=new Map,m=new Map,v="void"===r,_={params:Object(f.a)({},c,h)},b=Wr(e,t,this.ast.animation,o,i,p,d,_,a,u);if(u.length)return oo(t,this._triggerName,n,r,v,p,d,[],[],g,m,u);b.forEach(function(e){var n=e.element,r=tr(g,n,{});e.preStyleProps.forEach(function(e){return r[e]=!0});var o=tr(m,n,{});e.postStyleProps.forEach(function(e){return o[e]=!0}),n!==t&&y.add(n)});var w=Pr(y.values());return oo(t,this._triggerName,n,r,v,p,d,b,w,g,m)},e}(),so=function(){function e(e,t){this.styles=e,this.defaultParams=t}return e.prototype.buildStyles=function(e,t){var n={},r=wr(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var o=e;Object.keys(o).forEach(function(e){var i=o[e];i.length>1&&(i=Or(i,r,t)),n[e]=i})}}),n},e}(),ao=function(){function e(e,t){var n=this;this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(function(e){n.states[e.name]=new so(e.style,e.options&&e.options.params||{})}),uo(this.states,"true","1"),uo(this.states,"false","0"),t.transitions.forEach(function(t){n.transitionFactories.push(new lo(e,t,n.states))}),this.fallbackTransition=new lo(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(e.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),e.prototype.matchTransition=function(e,t){return this.transitionFactories.find(function(n){return n.match(e,t)})||null},e.prototype.matchStyles=function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)},e}();function uo(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var co=new Qr,po=function(){function e(e,t){this._driver=e,this._normalizer=t,this._animations={},this._playersById={},this.players=[]}return e.prototype.register=function(e,t){var n=[],r=Fr(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=r},e.prototype._buildPlayer=function(e,t,n){var r=e.element,o=Xn(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,o,e.duration,e.delay,e.easing,[])},e.prototype.create=function(e,t,n){var r=this;void 0===n&&(n={});var o,i=[],l=this._animations[e],s=new Map;if(l?(o=Wr(this._driver,t,l,"ng-enter","ng-leave",{},{},n,co,i)).forEach(function(e){var t=tr(s,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));s.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=r._driver.computeStyle(t,n,qn)})});var a=$n(o.map(function(e){var t=s.get(e.element);return r._buildPlayer(e,{},t)}));return this._playersById[e]=a,a.onDestroy(function(){return r.destroy(e)}),this.players.push(a),a},e.prototype.destroy=function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)},e.prototype._getPlayer=function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t},e.prototype.listen=function(e,t,n,r){var o=er(t,"","","");return Yn(this._getPlayer(e),n,o,r),function(){}},e.prototype.command=function(e,t,n,r){if("register"!=n)if("create"!=n){var o=this._getPlayer(e);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,r[0]||{});else this.register(e,r[0])},e}(),ho=[],fo={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!1},yo={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!0},go="__ng_removed",mo=function(){function e(e,t){void 0===t&&(t=""),this.namespaceId=t;var n=e&&e.hasOwnProperty("value");if(this.value=function(e){return null!=e?e:null}(n?e.value:e),n){var r=wr(e);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.absorbOptions=function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}},e}(),vo=new mo("void"),_o=new mo("DELETED"),bo=function(){function e(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Oo(t,this._hostClassName)}return e.prototype.listen=function(e,t,n,r){var o,i=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+t+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+t+'" because the provided event is undefined!');if("start"!=(o=n)&&"done"!=o)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+t+'" is not supported!');var l=tr(this._elementListeners,e,[]),s={name:t,phase:n,callback:r};l.push(s);var a=tr(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Oo(e,"ng-trigger"),Oo(e,"ng-trigger-"+t),a[t]=vo),function(){i._engine.afterFlush(function(){var e=l.indexOf(s);e>=0&&l.splice(e,1),i._triggers[t]||delete a[t]})}},e.prototype.register=function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)},e.prototype._getTrigger=function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'+e+'" has not been registered!');return t},e.prototype.trigger=function(e,t,n,r){var o=this;void 0===r&&(r=!0);var i=this._getTrigger(t),l=new Co(this.id,t,e),s=this._engine.statesByElement.get(e);s||(Oo(e,"ng-trigger"),Oo(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,s={}));var a=s[t],u=new mo(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&u.absorbOptions(a.options),s[t]=u,a){if(a===_o)return l}else a=vo;if("void"===u.value||a.value!==u.value){var c=tr(this._engine.playersByElement,e,[]);c.forEach(function(e){e.namespaceId==o.id&&e.triggerName==t&&e.queued&&e.destroy()});var p=i.matchTransition(a.value,u.value),h=!1;if(!p){if(!r)return;p=i.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:p,fromState:a,toState:u,player:l,isFallbackTransition:h}),h||(Oo(e,"ng-animate-queued"),l.onStart(function(){Po(e,"ng-animate-queued")})),l.onDone(function(){var t=o.players.indexOf(l);t>=0&&o.players.splice(t,1);var n=o._engine.playersByElement.get(e);if(n){var r=n.indexOf(l);r>=0&&n.splice(r,1)}}),this.players.push(l),c.push(l),l}if(!function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var o=0;o<n.length;o++){var i=n[o];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}(a.params,u.params)){var d=[],f=i.matchStyles(a.value,a.params,d),y=i.matchStyles(u.value,u.params,d);d.length?this._engine.reportError(d):this._engine.afterFlush(function(){xr(e,f),Er(e,y)})}},e.prototype.deregister=function(e){var t=this;delete this._triggers[e],this._engine.statesByElement.forEach(function(t,n){delete t[e]}),this._elementListeners.forEach(function(n,r){t._elementListeners.set(r,n.filter(function(t){return t.name!=e}))})},e.prototype.clearElementCache=function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var t=this._engine.playersByElement.get(e);t&&(t.forEach(function(e){return e.destroy()}),this._engine.playersByElement.delete(e))},e.prototype._signalRemovalForInnerTriggers=function(e,t,n){var r=this;void 0===n&&(n=!1),this._engine.driver.query(e,".ng-trigger",!0).forEach(function(e){if(!e[go]){var n=r._engine.fetchNamespacesByElement(e);n.size?n.forEach(function(n){return n.triggerLeaveAnimation(e,t,!1,!0)}):r.clearElementCache(e)}})},e.prototype.triggerLeaveAnimation=function(e,t,n,r){var o=this,i=this._engine.statesByElement.get(e);if(i){var l=[];if(Object.keys(i).forEach(function(t){if(o._triggers[t]){var n=o.trigger(e,t,"void",r);n&&l.push(n)}}),l.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&$n(l).onDone(function(){return o._engine.processLeaveNode(e)}),!0}return!1},e.prototype.prepareLeaveAnimationListeners=function(e){var t=this,n=this._elementListeners.get(e);if(n){var r=new Set;n.forEach(function(n){var o=n.name;if(!r.has(o)){r.add(o);var i=t._triggers[o].fallbackTransition,l=t._engine.statesByElement.get(e)[o]||vo,s=new mo("void"),a=new Co(t.id,o,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:o,transition:i,fromState:l,toState:s,player:a,isFallbackTransition:!0})}})}},e.prototype.removeNode=function(e,t){var n=this,r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t,!0),!this.triggerLeaveAnimation(e,t,!0)){var o=!1;if(r.totalAnimations){var i=r.players.length?r.playersByQueriedElement.get(e):[];if(i&&i.length)o=!0;else for(var l=e;l=l.parentNode;)if(r.statesByElement.get(l)){o=!0;break}}this.prepareLeaveAnimationListeners(e),o?r.markElementAsRemoved(this.id,e,!1,t):(r.afterFlush(function(){return n.clearElementCache(e)}),r.destroyInnerAnimations(e),r._onRemovalComplete(e,t))}},e.prototype.insertNode=function(e,t){Oo(e,this._hostClassName)},e.prototype.drainQueuedTransitions=function(e){var t=this,n=[];return this._queue.forEach(function(r){var o=r.player;if(!o.destroyed){var i=r.element,l=t._elementListeners.get(i);l&&l.forEach(function(t){if(t.name==r.triggerName){var n=er(i,r.triggerName,r.fromState.value,r.toState.value);n._data=e,Yn(r.player,t.phase,n,t.callback)}}),o.markedForDestroy?t._engine.afterFlush(function(){o.destroy()}):n.push(r)}}),this._queue=[],n.sort(function(e,n){var r=e.transition.ast.depCount,o=n.transition.ast.depCount;return 0==r||0==o?r-o:t._engine.driver.containsElement(e.element,n.element)?1:-1})},e.prototype.destroy=function(e){this.players.forEach(function(e){return e.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,e)},e.prototype.elementContainsData=function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),!!this._queue.find(function(t){return t.element===e})||t},e}(),wo=function(){function e(e,t){this.driver=e,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(e,t){}}return e.prototype._onRemovalComplete=function(e,t){this.onRemovalComplete(e,t)},Object.defineProperty(e.prototype,"queuedPlayers",{get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e},enumerable:!0,configurable:!0}),e.prototype.createNamespace=function(e,t){var n=new bo(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n},e.prototype._balanceNamespaceList=function(e,t){var n=this._namespaceList.length-1;if(n>=0){for(var r=!1,o=n;o>=0;o--)if(this.driver.containsElement(this._namespaceList[o].hostElement,t)){this._namespaceList.splice(o+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e},e.prototype.register=function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n},e.prototype.registerTrigger=function(e,t,n){var r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++},e.prototype.destroy=function(e,t){var n=this;if(e){var r=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(r);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(t)})}},e.prototype._fetchNamespace=function(e){return this._namespaceLookup[e]},e.prototype.fetchNamespacesByElement=function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=n[r[o]].namespaceId;if(i){var l=this._fetchNamespace(i);l&&t.add(l)}}return t},e.prototype.trigger=function(e,t,n,r){return!!Eo(t)&&(this._fetchNamespace(e).trigger(t,n,r),!0)},e.prototype.insertNode=function(e,t,n,r){if(Eo(t)){var o=t[go];o&&o.setForRemoval&&(o.setForRemoval=!1),e&&this._fetchNamespace(e).insertNode(t,n),r&&this.collectEnterElement(t)}},e.prototype.collectEnterElement=function(e){this.collectedEnterElements.push(e)},e.prototype.markElementAsDisabled=function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Oo(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Po(e,"ng-animate-disabled"))},e.prototype.removeNode=function(e,t,n){if(Eo(t)){var r=e?this._fetchNamespace(e):null;r?r.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n)}else this._onRemovalComplete(t,n)},e.prototype.markElementAsRemoved=function(e,t,n,r){this.collectedLeaveElements.push(t),t[go]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},e.prototype.listen=function(e,t,n,r,o){return Eo(t)?this._fetchNamespace(e).listen(t,n,r,o):function(){}},e.prototype._buildInstruction=function(e,t,n,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t)},e.prototype.destroyInnerAnimations=function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})},e.prototype.destroyActiveAnimationsForElement=function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()});var n=this.statesByElement.get(e);n&&Object.keys(n).forEach(function(e){return n[e]=_o})},e.prototype.finishActiveQueriedAnimationOnElement=function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})},e.prototype.whenRenderingDone=function(){var e=this;return new Promise(function(t){if(e.players.length)return $n(e.players).onDone(function(){return t()});t()})},e.prototype.processLeaveNode=function(e){var t=this,n=e[go];if(n&&n.setForRemoval){if(e[go]=fo,n.namespaceId){this.destroyInnerAnimations(e);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(n){t.markElementAsDisabled(e,!1)})},e.prototype.flush=function(e){var t=this;void 0===e&&(e=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,n){return t._balanceNamespaceList(e,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r<this.collectedEnterElements.length;r++)Oo(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var o=[];try{n=this._flushAnimations(o,e)}finally{for(r=0;r<o.length;r++)o[r]()}}else for(r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(e){return e()}),this._flushFns=[],this._whenQuietFns.length){var i=this._whenQuietFns;this._whenQuietFns=[],n.length?$n(n).onDone(function(){i.forEach(function(e){return e()})}):i.forEach(function(e){return e()})}},e.prototype.reportError=function(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+e.join("\n"))},e.prototype._flushAnimations=function(e,t){var n=this,r=new Qr,o=[],i=new Map,l=[],s=new Map,a=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(function(e){c.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),r=0;r<t.length;r++)c.add(t[r])});var p=pr(),h=Array.from(this.statesByElement.keys()),d=To(h,this.collectedEnterElements),y=new Map,g=0;d.forEach(function(e,t){var n="ng-enter"+g++;y.set(t,n),e.forEach(function(e){return Oo(e,n)})});for(var m=[],v=new Set,_=new Set,b=0;b<this.collectedLeaveElements.length;b++)(R=(D=this.collectedLeaveElements[b])[go])&&R.setForRemoval&&(m.push(D),v.add(D),R.hasAnimation?this.driver.query(D,".ng-star-inserted",!0).forEach(function(e){return v.add(e)}):_.add(D));var w=new Map,C=To(h,Array.from(v));C.forEach(function(e,t){var n="ng-leave"+g++;w.set(t,n),e.forEach(function(e){return Oo(e,n)})}),e.push(function(){d.forEach(function(e,t){var n=y.get(t);e.forEach(function(e){return Po(e,n)})}),C.forEach(function(e,t){var n=w.get(t);e.forEach(function(e){return Po(e,n)})}),m.forEach(function(e){n.processLeaveNode(e)})});for(var E=[],x=[],S=this._namespaceList.length-1;S>=0;S--)this._namespaceList[S].drainQueuedTransitions(t).forEach(function(e){var t=e.player;E.push(t);var i=e.element;if(p&&n.driver.containsElement(p,i)){var c=w.get(i),h=y.get(i),d=n._buildInstruction(e,r,h,c);if(d.errors&&d.errors.length)x.push(d);else{if(e.isFallbackTransition)return t.onStart(function(){return xr(i,d.fromStyles)}),t.onDestroy(function(){return Er(i,d.toStyles)}),void o.push(t);d.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),r.append(i,d.timelines),l.push({instruction:d,player:t,element:i}),d.queriedElements.forEach(function(e){return tr(s,e,[]).push(t)}),d.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var r=a.get(t);r||a.set(t,r=new Set),n.forEach(function(e){return r.add(e)})}}),d.postStyleProps.forEach(function(e,t){var n=Object.keys(e),r=u.get(t);r||u.set(t,r=new Set),n.forEach(function(e){return r.add(e)})})}}else t.destroy()});if(x.length){var T=[];x.forEach(function(e){T.push("@"+e.triggerName+" has failed due to:\n"),e.errors.forEach(function(e){return T.push("- "+e+"\n")})}),E.forEach(function(e){return e.destroy()}),this.reportError(T)}var k=new Map,O=new Map;l.forEach(function(e){var t=e.element;r.has(t)&&(O.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,k))}),o.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){tr(k,t,[]).push(e),e.destroy()})});var P=m.filter(function(e){return Vo(e,a,u)}),A=new Map;So(A,this.driver,_,u,qn).forEach(function(e){Vo(e,a,u)&&P.push(e)});var V=new Map;d.forEach(function(e,t){So(V,n.driver,new Set(e),a,Zn)}),P.forEach(function(e){var t=A.get(e),n=V.get(e);A.set(e,Object(f.a)({},t,n))});var I=[],N=[],j={};l.forEach(function(e){var t=e.element,l=e.player,s=e.instruction;if(r.has(t)){if(c.has(t))return l.onDestroy(function(){return Er(t,s.toStyles)}),void o.push(l);var a=j;if(O.size>1){for(var u=t,p=[];u=u.parentNode;){var h=O.get(u);if(h){a=h;break}p.push(u)}p.forEach(function(e){return O.set(e,a)})}var d=n._buildAnimation(l.namespaceId,s,k,i,V,A);if(l.setRealPlayer(d),a===j)I.push(l);else{var f=n.playersByElement.get(a);f&&f.length&&(l.parentPlayer=$n(f)),o.push(l)}}else xr(t,s.fromStyles),l.onDestroy(function(){return Er(t,s.toStyles)}),N.push(l),c.has(t)&&o.push(l)}),N.forEach(function(e){var t=i.get(e.element);if(t&&t.length){var n=$n(t);e.setRealPlayer(n)}}),o.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var M=0;M<m.length;M++){var D,R=(D=m[M])[go];if(Po(D,"ng-leave"),!R||!R.hasAnimation){var F=[];if(s.size){var L=s.get(D);L&&L.length&&F.push.apply(F,L);for(var U=this.driver.query(D,".ng-animating",!0),B=0;B<U.length;B++){var H=s.get(U[B]);H&&H.length&&F.push.apply(F,H)}}var q=F.filter(function(e){return!e.destroyed});q.length?Ao(this,D,q):this.processLeaveNode(D)}}return m.length=0,I.forEach(function(e){n.players.push(e),e.onDone(function(){e.destroy();var t=n.players.indexOf(e);n.players.splice(t,1)}),e.play()}),I},e.prototype.elementContainsData=function(e,t){var n=!1,r=t[go];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n},e.prototype.afterFlush=function(e){this._flushFns.push(e)},e.prototype.afterFlushAnimationsDone=function(e){this._whenQuietFns.push(e)},e.prototype._getPreviousPlayers=function(e,t,n,r,o){var i=[];if(t){var l=this.playersByQueriedElement.get(e);l&&(i=l)}else{var s=this.playersByElement.get(e);if(s){var a=!o||"void"==o;s.forEach(function(e){e.queued||(a||e.triggerName==r)&&i.push(e)})}}return(n||r)&&(i=i.filter(function(e){return!(n&&n!=e.namespaceId||r&&r!=e.triggerName)})),i},e.prototype._beforeAnimationBuild=function(e,t,n){for(var r=t.element,o=t.isRemovalTransition?void 0:e,i=t.isRemovalTransition?void 0:t.triggerName,l=function(e){var l=e.element,a=l!==r,u=tr(n,l,[]);s._getPreviousPlayers(l,a,o,i,t.toState).forEach(function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),u.push(e)})},s=this,a=0,u=t.timelines;a<u.length;a++)l(u[a]);xr(r,t.fromStyles)},e.prototype._buildAnimation=function(e,t,n,r,o,i){var l=this,s=t.triggerName,a=t.element,u=[],c=new Set,p=new Set,h=t.timelines.map(function(t){var h=t.element;c.add(h);var d=h[go];if(d&&d.removedBeforeQueried)return new Kn;var f,y,g=h!==a,m=(f=(n.get(h)||ho).map(function(e){return e.getRealPlayer()}),y=[],function e(t,n){for(var r=0;r<t.length;r++){var o=t[r];o instanceof Wn?e(o.players,n):n.push(o)}}(f,y),y).filter(function(e){return!!e.element&&e.element===h}),v=o.get(h),_=i.get(h),b=Xn(0,l._normalizer,0,t.keyframes,v,_),w=l._buildPlayer(t,b,m);if(t.subTimeline&&r&&p.add(h),g){var C=new Co(e,s,h);C.setRealPlayer(w),u.push(C)}return w});u.forEach(function(e){tr(l.playersByQueriedElement,e.element,[]).push(e),e.onDone(function(){return function(e,t,n){var r;if(e instanceof Map){if(r=e.get(t)){if(r.length){var o=r.indexOf(n);r.splice(o,1)}0==r.length&&e.delete(t)}}else(r=e[t])&&(r.length&&(o=r.indexOf(n),r.splice(o,1)),0==r.length&&delete e[t]);return r}(l.playersByQueriedElement,e.element,e)})}),c.forEach(function(e){return Oo(e,"ng-animating")});var d=$n(h);return d.onDestroy(function(){c.forEach(function(e){return Po(e,"ng-animating")}),Er(a,t.toStyles)}),p.forEach(function(e){tr(r,e,[]).push(d)}),d},e.prototype._buildPlayer=function(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new Kn},e}(),Co=function(){function e(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new Kn,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.queued=!0}return e.prototype.setRealPlayer=function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return Yn(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.queued=!1)},e.prototype.getRealPlayer=function(){return this._player},e.prototype.syncPlayerEvents=function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})},e.prototype._queueEvent=function(e,t){tr(this._queuedCallbacks,e,[]).push(t)},e.prototype.onDone=function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)},e.prototype.onStart=function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)},e.prototype.onDestroy=function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)},e.prototype.init=function(){this._player.init()},e.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},e.prototype.play=function(){!this.queued&&this._player.play()},e.prototype.pause=function(){!this.queued&&this._player.pause()},e.prototype.restart=function(){!this.queued&&this._player.restart()},e.prototype.finish=function(){this._player.finish()},e.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},e.prototype.reset=function(){!this.queued&&this._player.reset()},e.prototype.setPosition=function(e){this.queued||this._player.setPosition(e)},e.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},Object.defineProperty(e.prototype,"totalTime",{get:function(){return this._player.totalTime},enumerable:!0,configurable:!0}),e.prototype.triggerCallback=function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)},e}();function Eo(e){return e&&1===e.nodeType}function xo(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function So(e,t,n,r,o){var i=[];n.forEach(function(e){return i.push(xo(e))});var l=[];r.forEach(function(n,r){var i={};n.forEach(function(e){var n=i[e]=t.computeStyle(r,e,o);n&&0!=n.length||(r[go]=yo,l.push(r))}),e.set(r,i)});var s=0;return n.forEach(function(e){return xo(e,i[s++])}),l}function To(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var r=new Set(t),o=new Map;return t.forEach(function(e){var t=function e(t){if(!t)return 1;var i=o.get(t);if(i)return i;var l=t.parentNode;return i=n.has(l)?l:r.has(l)?1:e(l),o.set(t,i),i}(e);1!==t&&n.get(t).push(e)}),n}var ko="$$classes";function Oo(e,t){if(e.classList)e.classList.add(t);else{var n=e[ko];n||(n=e[ko]={}),n[t]=!0}}function Po(e,t){if(e.classList)e.classList.remove(t);else{var n=e[ko];n&&delete n[t]}}function Ao(e,t,n){$n(n).onDone(function(){return e.processLeaveNode(t)})}function Vo(e,t,n){var r=n.get(e);if(!r)return!1;var o=t.get(e);return o?r.forEach(function(e){return o.add(e)}):t.set(e,r),n.delete(e),!0}var Io=function(){function e(e,t){var n=this;this._driver=e,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new wo(e,t),this._timelineEngine=new po(e,t),this._transitionEngine.onRemovalComplete=function(e,t){return n.onRemovalComplete(e,t)}}return e.prototype.registerTrigger=function(e,t,n,r,o){var i=e+"-"+r,l=this._triggerCache[i];if(!l){var s=[],a=Fr(this._driver,o,s);if(s.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+s.join("\n - "));l=function(e,t){return new ao(e,t)}(r,a),this._triggerCache[i]=l}this._transitionEngine.registerTrigger(t,r,l)},e.prototype.register=function(e,t){this._transitionEngine.register(e,t)},e.prototype.destroy=function(e,t){this._transitionEngine.destroy(e,t)},e.prototype.onInsert=function(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)},e.prototype.onRemove=function(e,t,n){this._transitionEngine.removeNode(e,t,n)},e.prototype.disableAnimations=function(e,t){this._transitionEngine.markElementAsDisabled(e,t)},e.prototype.process=function(e,t,n,r){if("@"==n.charAt(0)){var o=nr(n);this._timelineEngine.command(o[0],t,o[1],r)}else this._transitionEngine.trigger(e,t,n,r)},e.prototype.listen=function(e,t,n,r,o){if("@"==n.charAt(0)){var i=nr(n);return this._timelineEngine.listen(i[0],t,i[1],o)}return this._transitionEngine.listen(e,t,n,r,o)},e.prototype.flush=function(e){void 0===e&&(e=-1),this._transitionEngine.flush(e)},Object.defineProperty(e.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),e.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},e}(),No=function(){function e(e,t,n,r){void 0===r&&(r=[]);var o=this;this.element=e,this.keyframes=t,this.options=n,this.previousPlayers=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.previousStyles={},this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay,(0===this._duration||0===this._delay)&&r.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return o.previousStyles[e]=t[e]})})}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},e.prototype._buildPlayer=function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes.map(function(e){return Cr(e,!1)}),n=Object.keys(this.previousStyles);if(n.length&&t.length){var r=t[0],o=[];if(n.forEach(function(t){r.hasOwnProperty(t)||o.push(t),r[t]=e.previousStyles[t]}),o.length)for(var i=this,l=function(){var e=t[s];o.forEach(function(t){e[t]=jo(i.element,t)})},s=1;s<t.length;s++)l()}this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}},e.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},e.prototype._triggerWebAnimation=function(e,t,n){return e.animate(t,n)},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0),this.domPlayer.play()},e.prototype.pause=function(){this.init(),this.domPlayer.pause()},e.prototype.finish=function(){this.init(),this._onFinish(),this.domPlayer.finish()},e.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},e.prototype.restart=function(){this.reset(),this.play()},e.prototype.hasStarted=function(){return this._started},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.setPosition=function(e){this.domPlayer.currentTime=e*this.time},e.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(e.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),e.prototype.beforeDestroy=function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:jo(e.element,n))}),this.currentSnapshot=t},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}();function jo(e,t){return window.getComputedStyle(e)[t]}var Mo=function(){function e(){}return e.prototype.validateStyleProperty=function(e){return cr(e)},e.prototype.matchesElement=function(e,t){return hr(e,t)},e.prototype.containsElement=function(e,t){return dr(e,t)},e.prototype.query=function(e,t,n){return fr(e,t,n)},e.prototype.computeStyle=function(e,t,n){return window.getComputedStyle(e)[t]},e.prototype.animate=function(e,t,n,r,o,i){void 0===i&&(i=[]);var l={duration:n,delay:r,fill:0==r?"both":"forwards"};o&&(l.easing=o);var s=i.filter(function(e){return e instanceof No});return new No(e,t,l,s)},e}(),Do=function(e){function t(t,n){var r=e.call(this)||this;return r._nextAnimationId=0,r._renderer=t.createRenderer(n.body,{id:"0",encapsulation:i.F.None,styles:[],data:{animation:[]}}),r}return Object(f.b)(t,e),t.prototype.build=function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?zn(e):e;return Lo(this._renderer,null,t,"register",[n]),new Ro(t,this._renderer)},t}(Hn),Ro=function(e){function t(t,n){var r=e.call(this)||this;return r._id=t,r._renderer=n,r}return Object(f.b)(t,e),t.prototype.create=function(e,t){return new Fo(this._id,e,t||{},this._renderer)},t}(function(){}),Fo=function(){function e(e,t,n,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return e.prototype._listen=function(e,t){return this._renderer.listen(this.element,"@@"+this.id+":"+e,t)},e.prototype._command=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return Lo(this._renderer,this.element,this.id,e,t)},e.prototype.onDone=function(e){this._listen("done",e)},e.prototype.onStart=function(e){this._listen("start",e)},e.prototype.onDestroy=function(e){this._listen("destroy",e)},e.prototype.init=function(){this._command("init")},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this._command("play"),this._started=!0},e.prototype.pause=function(){this._command("pause")},e.prototype.restart=function(){this._command("restart")},e.prototype.finish=function(){this._command("finish")},e.prototype.destroy=function(){this._command("destroy")},e.prototype.reset=function(){this._command("reset")},e.prototype.setPosition=function(e){this._command("setPosition",e)},e.prototype.getPosition=function(){return 0},e}();function Lo(e,t,n,r,o){return e.setProperty(t,"@@"+n+":"+r,o)}var Uo=function(){function e(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,t.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}return e.prototype.createRenderer=function(e,t){var n=this,r=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var o=this._rendererCache.get(r);return o||(o=new Bo("",r,this.engine),this._rendererCache.set(r,o)),o}var i=t.id,l=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(l,e),t.data.animation.forEach(function(t){return n.engine.registerTrigger(i,l,e,t.name,t)}),new Ho(this,l,r,this.engine)},e.prototype.begin=function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()},e.prototype._scheduleCountTask=function(){var e=this;Zone.current.scheduleMicroTask("incremenet the animation microtask",function(){return e._microtaskId++})},e.prototype.scheduleListenerCallback=function(e,t,n){var r=this;e>=0&&e<this._microtaskId?this._zone.run(function(){return t(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){r._zone.run(function(){r._animationCallbacksBuffer.forEach(function(e){(0,e[0])(e[1])}),r._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))},e.prototype.end=function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)}),this.delegate.end&&this.delegate.end()},e.prototype.whenRenderingDone=function(){return this.engine.whenRenderingDone()},e}(),Bo=function(){function e(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?function(e){return t.destroyNode(e)}:null}return Object.defineProperty(e.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()},e.prototype.createElement=function(e,t){return this.delegate.createElement(e,t)},e.prototype.createComment=function(e){return this.delegate.createComment(e)},e.prototype.createText=function(e){return this.delegate.createText(e)},e.prototype.appendChild=function(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)},e.prototype.insertBefore=function(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)},e.prototype.removeChild=function(e,t){this.engine.onRemove(this.namespaceId,t,this.delegate)},e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.parentNode=function(e){return this.delegate.parentNode(e)},e.prototype.nextSibling=function(e){return this.delegate.nextSibling(e)},e.prototype.setAttribute=function(e,t,n,r){this.delegate.setAttribute(e,t,n,r)},e.prototype.removeAttribute=function(e,t,n){this.delegate.removeAttribute(e,t,n)},e.prototype.addClass=function(e,t){this.delegate.addClass(e,t)},e.prototype.removeClass=function(e,t){this.delegate.removeClass(e,t)},e.prototype.setStyle=function(e,t,n,r){this.delegate.setStyle(e,t,n,r)},e.prototype.removeStyle=function(e,t,n){this.delegate.removeStyle(e,t,n)},e.prototype.setProperty=function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)},e.prototype.setValue=function(e,t){this.delegate.setValue(e,t)},e.prototype.listen=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.disableAnimations=function(e,t){this.engine.disableAnimations(e,t)},e}(),Ho=function(e){function t(t,n,r,o){var i=e.call(this,n,r,o)||this;return i.factory=t,i.namespaceId=n,i}return Object(f.b)(t,e),t.prototype.setProperty=function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)},t.prototype.listen=function(e,t,n){var r,o,i,l=this;if("@"==t.charAt(0)){var s=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),a=t.substr(1),u="";return"@"!=a.charAt(0)&&(a=(o=a,i=o.indexOf("."),r=[o.substring(0,i),o.substr(i+1)])[0],u=r[1]),this.engine.listen(this.namespaceId,s,a,u,function(e){l.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)},t}(Bo),qo=function(e){function t(t,n){return e.call(this,t,n)||this}return Object(f.b)(t,e),t}(Io);function zo(){return"undefined"!=typeof Element&&"function"==typeof Element.prototype.animate?new Mo:new yr}function Qo(){return new no}function Go(e,t,n){return new Uo(e,t,n)}var Ko=function(){},Wo=i.S(l,[d],function(e){return i._2([i._3(512,i.g,i.O,[[8,[Bn]],[3,i.g],i.q]),i._3(5120,i.p,i._8,[[3,i.p]]),i._3(4608,M,D,[i.p,[2,j]]),i._3(4608,i.f,i.f,[]),i._3(5120,i.a,i.X,[]),i._3(5120,i.n,i._4,[]),i._3(5120,i.o,i._6,[]),i._3(4608,dt,ft,[q]),i._3(6144,i.z,null,[dt]),i._3(4608,Fe,Le,[]),i._3(5120,pe,function(e,t,n,r,o){return[new De(e,t),new qe(n),new Ue(r,o)]},[q,i.s,q,q,Fe]),i._3(4608,he,he,[pe,i.s]),i._3(135680,ye,ye,[q]),i._3(4608,Ce,Ce,[he,ye]),i._3(5120,gr,zo,[]),i._3(5120,to,Qo,[]),i._3(4608,Io,qo,[gr,to]),i._3(5120,i.x,Go,[Ce,Io,i.s]),i._3(6144,fe,null,[ye]),i._3(4608,i.C,i.C,[i.s]),i._3(4608,re,re,[q]),i._3(4608,se,se,[q]),i._3(4608,Hn,Do,[i.x,ee]),i._3(4608,qt,qt,[]),i._3(4608,u,u,[]),i._3(512,H,H,[]),i._3(1024,i.i,Et,[]),i._3(1024,i.b,function(e){return[(t=e,ae("probe",ce),ae("coreTokens",Object(f.a)({},ue,(t||[]).reduce(function(e,t){return e[t.name]=t.token,e},{}))),function(){return ce})];var t},[[2,i.r]]),i._3(512,i.c,i.c,[[2,i.b]]),i._3(131584,i.e,i.e,[i.s,i.P,i.m,i.i,i.g,i.c]),i._3(512,i.d,i.d,[i.e]),i._3(512,xt,xt,[[3,xt]]),i._3(512,Ko,Ko,[]),i._3(512,Sn,Sn,[]),i._3(512,Tn,Tn,[]),i._3(512,l,l,[])])});Object(i.I)(),Ct().bootstrapModuleFactory(Wo).catch(function(e){return console.log(e)})},fRUx:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},grVA:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r={closed:!0,next:function(e){},error:function(e){throw e},complete:function(){}}},lI6h:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("6Xbx"),o=function(e){function t(){e.apply(this,arguments)}return Object(r.b)(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(n("E9/g").a)},mz3w:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){var t,r=n("xIGM").a.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}()},qLnt:function(e,t,n){"use strict";var r,o=n("1j/l"),i=n("NGRF"),l=n("B1iP"),s={e:{}};function a(){try{return r.apply(this,arguments)}catch(e){return s.e=e,s}}function u(e){return r=e,a}var c=n("6Xbx"),p=function(e){function t(t){e.call(this),this.errors=t;var n=Error.call(this,t?t.length+" errors occurred during unsubscription:\n "+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return Object(c.b)(t,e),t}(Error);n.d(t,"a",function(){return h});var h=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,r=this._parents,a=this._unsubscribe,c=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var h=-1,f=r?r.length:0;n;)n.remove(this),n=++h<f&&r[h]||null;if(Object(l.a)(a)&&u(a).call(this)===s&&(t=!0,e=e||(s.e instanceof p?d(s.e.errors):[s.e])),Object(o.a)(c))for(h=-1,f=c.length;++h<f;){var y=c[h];if(Object(i.a)(y)&&u(y.unsubscribe).call(y)===s){t=!0,e=e||[];var g=s.e;g instanceof p?e=e.concat(d(g.errors)):e.push(g)}}if(t)throw new p(e)}},e.prototype.add=function(t){if(!t||t===e.EMPTY)return e.EMPTY;if(t===this)return this;var n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.prototype._addParent=function(e){var t=this._parent,n=this._parents;t&&t!==e?n?-1===n.indexOf(e)&&n.push(e):this._parents=[e]:this._parent=e},e.EMPTY=((t=new e).closed=!0,t),e}();function d(e){return e.reduce(function(e,t){return e.concat(t instanceof p?t.errors:t)},[])}},qgI0:function(e,t,n){"use strict";var r=n("xIGM"),o=n("NGRF"),i=n("AP4T"),l=function(e){var t=e.Symbol;if("function"==typeof t)return t.iterator||(t.iterator=t("iterator polyfill")),t.iterator;var n=e.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=e.Map;if(r)for(var o=Object.getOwnPropertyNames(r.prototype),i=0;i<o.length;++i){var l=o[i];if("entries"!==l&&"size"!==l&&r.prototype[l]===r.prototype.entries)return l}return"@@iterator"}(r.a),s=n("6Xbx"),a=function(e){function t(t,n,r){e.call(this),this.parent=t,this.outerValue=n,this.outerIndex=r,this.index=0}return Object(s.b)(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(n("E9/g").a),u=n("mz3w");t.a=function(e,t,n,s){var c,p=new a(e,n,s);if(p.closed)return null;if(t instanceof i.a)return t._isScalar?(p.next(t.value),p.complete(),null):(p.syncErrorThrowable=!0,t.subscribe(p));if((c=t)&&"number"==typeof c.length){for(var h=0,d=t.length;h<d&&!p.closed;h++)p.next(t[h]);p.closed||p.complete()}else{if(t&&"function"!=typeof t.subscribe&&"function"==typeof t.then)return t.then(function(e){p.closed||(p.next(e),p.complete())},function(e){return p.error(e)}).then(null,function(e){r.a.setTimeout(function(){throw e})}),p;if(t&&"function"==typeof t[l])for(var f=t[l]();;){var y=f.next();if(y.done){p.complete();break}if(p.next(y.value),p.closed)break}else if(t&&"function"==typeof t[u.a]){var g=t[u.a]();if("function"==typeof g.subscribe)return g.subscribe(new a(e,n,s));p.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var m=Object(o.a)(t)?"an invalid object":"'"+t+"'";p.error(new TypeError("You provided "+m+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))}}return null}},xIGM:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return i});var r="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=r||"undefined"!=typeof e&&e||o}).call(t,n("fRUx"))}},[0]);