From 10dc637d72bcf782670fbd03479d32eae391e379 Mon Sep 17 00:00:00 2001 From: zpencer Date: Wed, 11 Jul 2018 12:59:35 -0700 Subject: [PATCH] channelz: use grpc web for angular app (#296) The grpc-web generated library is loaded in the html page via a + + - + diff --git a/grpc-zpages/cli/dist_channelz/main.5dde8b72505d5a34f8e5.js b/grpc-zpages/cli/dist_channelz/main.5dde8b72505d5a34f8e5.js deleted file mode 100644 index aae8b02..0000000 --- a/grpc-zpages/cli/dist_channelz/main.5dde8b72505d5a34f8e5.js +++ /dev/null @@ -1 +0,0 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{3:function(t,e,n){t.exports=n("zUnb")},crnd:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error('Cannot find module "'+t+'".');throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},zUnb:function(t,e,n){"use strict";n.r(e);var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),l=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)l.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return l}function a(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(q);function Y(t){return t}function X(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),$(Y,t)}var tt=function(t){function e(){var n=t.call(this,"object unsubscribed")||this;return n.name="ObjectUnsubscribedError",Object.setPrototypeOf(n,e.prototype),n}return o(e,t),e}(Error),et=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return o(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(w),nt=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return o(e,t),e}(E),rt=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return o(e,t),e.prototype[x]=function(){return new nt(this)},e.prototype.lift=function(t){var e=new ot(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new tt;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(E),at=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return o(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new w).add(this.source.subscribe(new ct(this.getSubject(),this))),t.closed?(this._connection=null,t=w.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return it()(this)},e}(O).prototype,st={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:at._subscribe},_isComplete:{value:at._isComplete,writable:!0},getSubject:{value:at.getSubject},connect:{value:at.connect},refCount:{value:at.refCount}},ct=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(nt);function pt(){return new rt}function ht(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}var ft=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==e?ht({providedIn:e.providedIn||"root",factory:e.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),dt="__parameters__";function vt(t,e,n){var r=function(t){return function(){for(var e=[],n=0;n ");else if("object"==typeof e){var o=[];for(var i in e)if(e.hasOwnProperty(i)){var l=e[i];o.push(i+":"+("string"==typeof l?JSON.stringify(l):St(l)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(Gt,"\n ")}function Qt(t,e){return new Error($t(t,e))}var Jt=void 0;function Yt(t){var e=Jt;return Jt=t,e}String;var Xt=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t}({}),te=new function(t){this.full="6.0.3",this.major="6.0.3".split(".")[0],this.minor="6.0.3".split(".")[1],this.patch="6.0.3".split(".").slice(2).join(".")}("6.0.3"),ee="ngDebugContext",ne="ngOriginalError",re="ngErrorLogger";function oe(t){return t[ee]}function ie(t){return t[ne]}function le(t){for(var e=[],n=1;n0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==o}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),Ze=function(){function t(){this._applications=new Map,$e.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),$e.findTestabilityInTree(this,t,e)},t.ctorParameters=function(){return[]},t}(),$e=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),Qe=!0,Je=!1,Ye=new ft("AllowMultipleToken");function Xe(){return Je=!0,Qe}var tn=function(t,e){this.name=t,this.token=e};function en(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,o=new ft(r);return function(e){void 0===e&&(e=[]);var i=nn();if(!i||i.injector.get(Ye,!1))if(t)t(n.concat(e).concat({provide:o,useValue:!0}));else{var l=n.concat(e).concat({provide:o,useValue:!0});!function(t){if(Ge&&!Ge.destroyed&&!Ge.injector.get(Ye,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ge=t.get(rn);var e=t.get(ge,null);e&&e.forEach(function(t){return t()})}(jt.create({providers:l,name:r}))}return function(t){var e=nn();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(o)}}function nn(){return Ge&&!Ge.destroyed?Ge:null}var rn=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,o="noop"===(n=e?e.ngZone:void 0)?new Ke:("zone.js"===n?void 0:n)||new Ue({enableLongStackTrace:Xe()}),i=[{provide:Ue,useValue:o}];return o.run(function(){var e=jt.create({providers:i,parent:r.injector,name:t.moduleType.name}),n=t.create(e),l=n.injector.get(ue,null);if(!l)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return un(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(t){l.handleError(t)}})}),function(t,e,o){try{var i=((l=n.injector.get(he)).runInitializers(),l.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return se(i)?i.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):i}catch(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}var l}(l,o)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.injector.get(Ce),o=on({},e);return r.createCompiler([o]).compileModuleAsync(t).then(function(t){return n.bootstrapModuleFactory(t,o)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(ln);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+St(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function on(t,e){return Array.isArray(e)?e.reduce(on,t):i({},t,e)}var ln=function(){function t(t,e,n,r,o,i){var l=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Xe(),this._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run(function(){l.tick()})}});var u=new O(function(t){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular(function(){t.next(l._stable),t.complete()})}),a=new O(function(t){var e;l._zone.runOutsideAngular(function(){e=l._zone.onStable.subscribe(function(){Ue.assertNotInAngularZone(),Et(function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,t.next(!0))})})});var n=l._zone.onUnstable.subscribe(function(){Ue.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof O?t[0]:X(n)(W(t,r))}(u,a.pipe(function(t){return it()((e=pt,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,st);return r.source=t,r.subjectFactory=n,r})(t));var e}))}return t.prototype.bootstrap=function(t,e){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=t instanceof xe?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var o=n instanceof Pe?null:this._injector.get(Re),i=n.create(jt.NULL,[],e||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var l=i.injector.get(We,null);return l&&i.injector.get(Ze).registerApplication(i.location.nativeElement,l),this._loadComponent(i),Xe()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},t.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,je(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;un(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(me,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),un(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=Me("ApplicationRef#tick()"),t}();function un(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var an=function(){},sn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),cn=function(){},pn=function(t){this.nativeElement=t},hn=function(){},fn=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Le,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[xt()]=function(){return this._results[xt()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),dn=function(){},vn={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},gn=function(){function t(t,e){this._compiler=t,this._config=e||vn}return t.prototype.load=function(t){return this._compiler instanceof we?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=u(t.split("#"),2),o=r[0],i=r[1];return void 0===i&&(i="default"),n("crnd")(o).then(function(t){return t[i]}).then(function(t){return yn(t,o,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=u(t.split("#"),2),r=e[0],o=e[1],i="NgFactory";return void 0===o&&(o="default",i=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[o+i]}).then(function(t){return yn(t,r,o)})},t}();function yn(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var mn=function(){},bn=function(){},_n=function(){},wn=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof Cn?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),Cn=function(t){function e(e,n,r){var o=t.call(this,e,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return o(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,o=this.childNodes.indexOf(t);-1!==o&&((n=this.childNodes).splice.apply(n,a([o+1,0],e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return function t(e,n,r){e.childNodes.forEach(function(e){e instanceof Cn&&(n(e)&&r.push(e),t(e,n,r))})}(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return function t(e,n,r){e instanceof Cn&&e.childNodes.forEach(function(e){n(e)&&r.push(e),e instanceof Cn&&t(e,n,r)})}(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(wn),xn=new Map;function En(t){return xn.get(t)||null}function kn(t){xn.set(t.nativeNode,t)}function Sn(t,e){var n=An(t),r=An(e);return n&&r?function(t,e,n){for(var r=t[xt()](),o=e[xt()]();;){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}}(t,e,Sn):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||kt(t,e)}var Tn=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),In=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function An(t){return!!On(t)&&(Array.isArray(t)||!(t instanceof Map)&&xt()in t)}function On(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var Pn=function(){function t(){}return t.prototype.supports=function(t){return An(t)},t.prototype.create=function(t){return new Nn(t)},t}(),Rn=function(t,e){return e},Nn=function(){function t(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Rn}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,o=null;e||n;){var i=!n||e&&e.currentIndex',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t=""+t+"";try{t=encodeURI(t)}catch(t){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(null);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(t){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0")}else this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();sr.hasOwnProperty(e)&&!ir.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(gr(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),dr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,vr=/([^\#-~ |!])/g;function gr(t){return t.replace(/&/g,"&").replace(dr,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(vr,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function yr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var mr=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"),br=/^url\(([^)]+)\)$/,_r=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({}),wr=function(){};function Cr(t,e,n){var r=t.state,o=1792&r;return o===e?(t.state=-1793&r|n,t.initIndex=-1,!0):o===n}function xr(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function Er(t,e){return t.nodes[e]}function kr(t,e){return t.nodes[e]}function Sr(t,e){return t.nodes[e]}function Tr(t,e){return t.nodes[e]}function Ir(t,e){return t.nodes[e]}var Ar={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 Or(t,e,n,r){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(t,e){var n=new Error(t);return Pr(n,e),n}(o,t)}function Pr(t,e){t[ee]=e,t[re]=e.logError.bind(e)}function Rr(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}var Nr=function(){},Vr=new Map;function Dr(t){var e=Vr.get(t);return e||(e=St(t)+"_"+Vr.size,Vr.set(t,e)),e}function Mr(t,e,n,r){if(Tn.isWrapped(r)){r=Tn.unwrap(r);var o=t.def.nodes[e].bindingIndex+n,i=Tn.unwrap(t.oldValues[o]);t.oldValues[o]=new Tn(i)}return r}var jr="$$undefined",Lr="$$empty";function Ur(t){return{id:jr,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}var zr=0;function Fr(t,e,n,r){return!(!(2&t.state)&&kt(t.oldValues[e.bindingIndex+n],r))}function Hr(t,e,n,r){return!!Fr(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function qr(t,e,n,r){var o=t.oldValues[e.bindingIndex+n];if(1&t.state||!Sn(o,r)){var i=e.bindings[n].name;throw Or(Ar.createDebugContext(t,e.nodeIndex),i+": "+o,i+": "+r,0!=(1&t.state))}}function Br(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function Gr(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function Kr(t,e,n,r){try{return Br(33554432&t.def.nodes[e].flags?kr(t,e).componentView:t),Ar.handleEvent(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}function Wr(t){return t.parent?kr(t.parent,t.parentNodeDef.nodeIndex):null}function Zr(t){return t.parent?t.parentNodeDef.parent:null}function $r(t,e){switch(201347067&e.flags){case 1:return kr(t,e.nodeIndex).renderElement;case 2:return Er(t,e.nodeIndex).renderText}}function Qr(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function Jr(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function Yr(t){return 1<-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var s=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:e.token.ngInjectableDef.factory,deps:[],index:s,token:e.token},t._providers[s]=wo,t._providers[s]=To(t,t._def.providersByKey[e.tokenKey])}return t._parent.get(e.token,n)}finally{Yt(i)}}function To(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(So(t,n[0]));case 2:return new e(So(t,n[0]),So(t,n[1]));case 3:return new e(So(t,n[0]),So(t,n[1]),So(t,n[2]));default:for(var o=new Array(r),i=0;i=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,Ro(n,e),Ar.dirtyParentQueries(r),Oo(r),r}function Ao(t,e,n){var r=e?$r(e,e.def.lastRenderRootNode):t.renderElement;oo(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Oo(t){oo(t,3,null,null,void 0)}function Po(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Ro(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var No=new Object;function Vo(t,e,n,r,o,i){return new Do(t,e,n,r,o,i)}var Do=function(t){function e(e,n,r,o,i,l){var u=t.call(this)||this;return u.selector=e,u.componentType=n,u._inputs=o,u._outputs=i,u.ngContentSelectors=l,u.viewDefFactory=r,u}return o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var o=ro(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,l=Ar.createRootView(t,e||[],n,o,r,No),u=Sr(l,i).instance;return n&&l.renderer.setAttribute(kr(l,0).renderElement,"ng-version",te.full),new Mo(l,new zo(l),u)},e}(xe),Mo=function(t){function e(e,n,r){var o=t.call(this)||this;return o._view=e,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return o(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new pn(kr(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Bo(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(function(){});function jo(t,e,n){return new Lo(t,e,n)}var Lo=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new pn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Bo(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=Zr(t),t=t.parent;return t?new Bo(t,e):new Bo(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Io(this._data,t);Ar.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new zo(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,o){var i=n||this.parentInjector;o||t instanceof Pe||(o=i.get(Re));var l=t.create(i,r,void 0,o);return this.insert(l.hostView,e),l},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,l=t;return o=l._view,i=(n=this._data).viewContainer._embeddedViews,null!==(r=e)&&void 0!==r||(r=i.length),o.viewContainerParent=this._view,Po(i,r,o),function(t,e){var n=Wr(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,o),Ar.dirtyParentQueries(o),Ao(n,r>0?i[r-1]:null,o),l.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,l,u=this._embeddedViews.indexOf(t._view);return o=e,l=(i=(n=this._data).viewContainer._embeddedViews)[r=u],Ro(i,r),null==o&&(o=i.length),Po(i,o,l),Ar.dirtyParentQueries(l),Oo(l),Ao(n,o>0?i[o-1]:null,l),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Io(this._data,t);e&&Ar.destroyView(e)},t.prototype.detach=function(t){var e=Io(this._data,t);return e?new zo(e):null},t}();function Uo(t){return new zo(t)}var zo=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return oo(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){Br(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{Ar.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Ar.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Ar.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Oo(this._view),Ar.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function Fo(t,e){return new Ho(t,e)}var Ho=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return o(e,t),e.prototype.createEmbeddedView=function(t){return new zo(Ar.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new pn(kr(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(mn);function qo(t,e){return new Bo(t,e)}var Bo=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=jt.THROW_IF_NOT_FOUND),Ar.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Dr(t)},e)},t}();function Go(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=kr(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Er(t,n.nodeIndex).renderText;if(20240&n.flags)return Sr(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function Ko(t){return new Wo(t.renderer)}var Wo=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=u(co(e),2),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,r=e.provider;switch(201347067&e.flags){case 512:return fi(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(vi(t,e,n,o[0]));case 2:return r(vi(t,e,n,o[0]),vi(t,e,n,o[1]));case 3:return r(vi(t,e,n,o[0]),vi(t,e,n,o[1]),vi(t,e,n,o[2]));default:for(var l=Array(i),u=0;u0)s=v,Ri(v)||(c=v);else for(;s&&d===s.nodeIndex+s.childCount;){var m=s.parent;m&&(m.childFlags|=s.childFlags,m.childMatchedQueries|=s.childMatchedQueries),c=(s=m)&&Ri(s)?s.renderParent:s}}return{factory:null,nodeFlags:l,rootNodeFlags:u,nodeMatchedQueries:a,flags:t,nodes:e,updateDirectives:n||Nr,updateRenderer:r||Nr,handleEvent:function(t,n,r,o){return e[n].element.handleEvent(t,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:f}}function Ri(t){return 0!=(1&t.flags)&&null===t.element.name}function Ni(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var o=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=o&&e.nodeIndex+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function Vi(t,e,n,r){var o=ji(t.root,t.renderer,t,e,n);return Li(o,t.component,r),Ui(o),o}function Di(t,e,n){var r=ji(t,t.renderer,null,null,e);return Li(r,n,n),Ui(r),r}function Mi(t,e,n,r){var o,i=e.element.componentRendererType;return o=i?t.root.rendererFactory.createRenderer(r,i):t.root.renderer,ji(t.root,o,t,e.element.componentProvider,n)}function ji(t,e,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:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:l,initIndex:-1}}function Li(t,e,n){t.component=e,t.context=n}function Ui(t){var e;Qr(t)&&(e=kr(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,o=0;o0&&_o(t,e,0,n)&&(f=!0),h>1&&_o(t,e,1,r)&&(f=!0),h>2&&_o(t,e,2,o)&&(f=!0),h>3&&_o(t,e,3,i)&&(f=!0),h>4&&_o(t,e,4,l)&&(f=!0),h>5&&_o(t,e,5,u)&&(f=!0),h>6&&_o(t,e,6,a)&&(f=!0),h>7&&_o(t,e,7,s)&&(f=!0),h>8&&_o(t,e,8,c)&&(f=!0),h>9&&_o(t,e,9,p)&&(f=!0),f}(t,e,n,r,o,i,l,u,a,s,c,p);case 2:return function(t,e,n,r,o,i,l,u,a,s,c,p){var h=!1,f=e.bindings,d=f.length;if(d>0&&Hr(t,e,0,n)&&(h=!0),d>1&&Hr(t,e,1,r)&&(h=!0),d>2&&Hr(t,e,2,o)&&(h=!0),d>3&&Hr(t,e,3,i)&&(h=!0),d>4&&Hr(t,e,4,l)&&(h=!0),d>5&&Hr(t,e,5,u)&&(h=!0),d>6&&Hr(t,e,6,a)&&(h=!0),d>7&&Hr(t,e,7,s)&&(h=!0),d>8&&Hr(t,e,8,c)&&(h=!0),d>9&&Hr(t,e,9,p)&&(h=!0),h){var v=e.text.prefix;d>0&&(v+=Oi(n,f[0])),d>1&&(v+=Oi(r,f[1])),d>2&&(v+=Oi(o,f[2])),d>3&&(v+=Oi(i,f[3])),d>4&&(v+=Oi(l,f[4])),d>5&&(v+=Oi(u,f[5])),d>6&&(v+=Oi(a,f[6])),d>7&&(v+=Oi(s,f[7])),d>8&&(v+=Oi(c,f[8])),d>9&&(v+=Oi(p,f[9]));var g=Er(t,e.nodeIndex).renderText;t.renderer.setValue(g,v)}return h}(t,e,n,r,o,i,l,u,a,s,c,p);case 16384:return function(t,e,n,r,o,i,l,u,a,s,c,p){var h=Sr(t,e.nodeIndex),f=h.instance,d=!1,v=void 0,g=e.bindings.length;return g>0&&Fr(t,e,0,n)&&(d=!0,v=yi(t,h,e,0,n,v)),g>1&&Fr(t,e,1,r)&&(d=!0,v=yi(t,h,e,1,r,v)),g>2&&Fr(t,e,2,o)&&(d=!0,v=yi(t,h,e,2,o,v)),g>3&&Fr(t,e,3,i)&&(d=!0,v=yi(t,h,e,3,i,v)),g>4&&Fr(t,e,4,l)&&(d=!0,v=yi(t,h,e,4,l,v)),g>5&&Fr(t,e,5,u)&&(d=!0,v=yi(t,h,e,5,u,v)),g>6&&Fr(t,e,6,a)&&(d=!0,v=yi(t,h,e,6,a,v)),g>7&&Fr(t,e,7,s)&&(d=!0,v=yi(t,h,e,7,s,v)),g>8&&Fr(t,e,8,c)&&(d=!0,v=yi(t,h,e,8,c,v)),g>9&&Fr(t,e,9,p)&&(d=!0,v=yi(t,h,e,9,p,v)),v&&f.ngOnChanges(v),65536&e.flags&&xr(t,256,e.nodeIndex)&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),d}(t,e,n,r,o,i,l,u,a,s,c,p);case 32:case 64:case 128:return function(t,e,n,r,o,i,l,u,a,s,c,p){var h=e.bindings,f=!1,d=h.length;if(d>0&&Hr(t,e,0,n)&&(f=!0),d>1&&Hr(t,e,1,r)&&(f=!0),d>2&&Hr(t,e,2,o)&&(f=!0),d>3&&Hr(t,e,3,i)&&(f=!0),d>4&&Hr(t,e,4,l)&&(f=!0),d>5&&Hr(t,e,5,u)&&(f=!0),d>6&&Hr(t,e,6,a)&&(f=!0),d>7&&Hr(t,e,7,s)&&(f=!0),d>8&&Hr(t,e,8,c)&&(f=!0),d>9&&Hr(t,e,9,p)&&(f=!0),f){var v=Tr(t,e.nodeIndex),g=void 0;switch(201347067&e.flags){case 32:g=new Array(h.length),d>0&&(g[0]=n),d>1&&(g[1]=r),d>2&&(g[2]=o),d>3&&(g[3]=i),d>4&&(g[4]=l),d>5&&(g[5]=u),d>6&&(g[6]=a),d>7&&(g[7]=s),d>8&&(g[8]=c),d>9&&(g[9]=p);break;case 64:g={},d>0&&(g[h[0].name]=n),d>1&&(g[h[1].name]=r),d>2&&(g[h[2].name]=o),d>3&&(g[h[3].name]=i),d>4&&(g[h[4].name]=l),d>5&&(g[h[5].name]=u),d>6&&(g[h[6].name]=a),d>7&&(g[h[7].name]=s),d>8&&(g[h[8].name]=c),d>9&&(g[h[9].name]=p);break;case 128:var y=n;switch(d){case 1:g=y.transform(n);break;case 2:g=y.transform(r);break;case 3:g=y.transform(r,o);break;case 4:g=y.transform(r,o,i);break;case 5:g=y.transform(r,o,i,l);break;case 6:g=y.transform(r,o,i,l,u);break;case 7:g=y.transform(r,o,i,l,u,a);break;case 8:g=y.transform(r,o,i,l,u,a,s);break;case 9:g=y.transform(r,o,i,l,u,a,s,c);break;case 10:g=y.transform(r,o,i,l,u,a,s,c,p)}}v.value=g}return f}(t,e,n,r,o,i,l,u,a,s,c,p);default:throw"unreachable"}}(t,e,r,o,i,l,u,s,c,p,h,f):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,o=0;o0&&qr(t,e,0,n),h>1&&qr(t,e,1,r),h>2&&qr(t,e,2,o),h>3&&qr(t,e,3,i),h>4&&qr(t,e,4,l),h>5&&qr(t,e,5,u),h>6&&qr(t,e,6,a),h>7&&qr(t,e,7,s),h>8&&qr(t,e,8,c),h>9&&qr(t,e,9,p)}(t,e,r,o,i,l,u,a,s,c,p,h):function(t,e,n){for(var r=0;r0){var i=new Set(t.modules);ul.forEach(function(e,r){if(i.has(r.ngInjectableDef.providedIn)){var o={token:r,flags:e.flags|(n?4096:0),deps:to(e.deps),value:e.value,index:t.providers.length};t.providers.push(o),t.providersByKey[Dr(r)]=o}})}}(t=t.factory(function(){return Nr})),t):t}(r))}var ll=new Map,ul=new Map,al=new Map;function sl(t){ll.set(t.token,t),"function"==typeof t.token&&t.token.ngInjectableDef&&"function"==typeof t.token.ngInjectableDef.providedIn&&ul.set(t.token,t)}function cl(t,e){var n=ro(ro(e.viewDefFactory).nodes[0].element.componentView);al.set(t,n)}function pl(){ll.clear(),ul.clear(),al.clear()}function hl(t){if(0===ll.size)return t;var e=function(t){for(var e=[],n=null,r=0;r=Zl.length?Zl[u]=null:d.tNode=Zl[u],Wl?($l=null,Kl.view!==ru&&2!==Kl.type||(ngDevMode&&zl(Kl.child,"previousOrParentNode's child should not have been set."),Kl.child=d)):Kl&&(ngDevMode&&zl(Kl.next,"previousOrParentNode's next property should not have been set "+u+"."),Kl.next=d,Kl.dynamicLContainerNode&&(Kl.dynamicLContainerNode.next=d))),Kl=d,Wl=!0,t=d,y=1),l=iu(t.data,t),e(y,n),uu(),pu()}finally{lu(l),Wl=v,Kl=g}return t}function pu(){for(var t=ru.child;null!==t;t=t.next)if(0!==t.dynamicViewCount&&t.views)for(var e=t,n=0;n"}(r))),ngDevMode&&Fl(o.data,"Component's host node should have an LView attached.");var i,l=o.data;8==(8&l.flags)&&6&l.flags&&(ngDevMode&&vu(t,Yl),du(l,o,ru.tView.directives[t],(i=Yl[t],Array.isArray(i)?i[0]:i)))}function fu(t){var e=gu(t);ngDevMode&&Fl(e.data,"Component host node should be attached to an LView"),du(e.data,e,e.view.tView.directives[e.tNode.flags>>13],t)}function du(t,e,n,r){var o=iu(t,e),i=n.template;try{i(1&t.flags?3:2,r),uu(),pu()}finally{lu(o)}}function vu(t,e){null==e&&(e=Jl),t>=(e?e.length:0)&&Hl("index expected to be a valid data index")}function gu(t){ngDevMode&&Fl(t,"expecting component got null");var e=t[tu];return ngDevMode&&Fl(t,"object is not a component"),e}o(function(t,e,n){var r=Xl.call(this,t.data,n)||this;return r._lViewNode=t,r},Xl=function(){function t(t,e){this._view=t,this.context=e}return t.prototype._setComponentContext=function(t,e){this._view=t,this.context=e},t.prototype.destroy=function(){},t.prototype.onDestroy=function(t){},t.prototype.markForCheck=function(){!function(t){for(var e=t;null!=e.parent;)e.flags|=4,e=e.parent;var n,r;e.flags|=4,ngDevMode&&Fl(e.context,"rootContext"),(n=e.context).clean==eu&&(n.clean=new Promise(function(t){return r=t}),n.scheduler(function(){var t,e;e=gu((t=function(t){ngDevMode&&Fl(t,"component");for(var e=gu(t).view;e.parent;)e=e.parent;return e}(n.component)).context.component),ngDevMode&&Fl(e.data,"Component host node should be attached to an LView"),function(n,r,o,i){var l=iu(t,e);try{Gl.begin&&Gl.begin(),su(),au(nu),hu(0,0)}finally{Gl.end&&Gl.end(),lu(l)}}(),r(null),n.clean=eu}))}(this._view)},t.prototype.detach=function(){this._view.flags&=-9},t.prototype.reattach=function(){this._view.flags|=8},t.prototype.detectChanges=function(){fu(this.context)},t.prototype.checkNoChanges=function(){!function(t){ou=!0;try{fu(t)}finally{ou=!1}}(this.context)},t}());var yu=function(){},mu=function(){this.title="Channelz"},bu=function(){},_u=new ft("Location Initialized"),wu=function(){},Cu=new ft("appBaseHref"),xu=function(){function t(e){var n=this;this._subject=new Le,this._platformStrategy=e;var r=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(Eu(r)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.path(!0),pop:!0,state:t.state,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Eu(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",t,e)},t.prototype.replaceState=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)},t}();function Eu(t){return t.replace(/\/index.html$/,"")}var ku=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return o(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=xu.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+xu.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+xu.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(wu),Su=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return o(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return xu.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+xu.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+xu.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+xu.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(wu),Tu=void 0,Iu=["en",[["a","p"],["AM","PM"],Tu],[["AM","PM"],Tu,Tu],[["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"]],Tu,[["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"]],Tu,[["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}",Tu,"{1} 'at' {0}",Tu],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],Au={},Ou=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),Pu=new ft("UseV4Plurals"),Ru=function(){},Nu=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return o(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return function(t){var e=t.toLowerCase().replace(/_/g,"-"),n=Au[e];if(n)return n;var r=e.split("-")[0];if(n=Au[r])return n;if("en"===r)return Iu;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[18]}(e||this.locale)(t)){case Ou.Zero:return"zero";case Ou.One:return"one";case Ou.Two:return"two";case Ou.Few:return"few";case Ou.Many:return"many";default:return"other"}},e}(Ru);function Vu(t,e){e=encodeURIComponent(e);try{for(var n=l(t.split(";")),r=n.next();!r.done;r=n.next()){var o=r.value,i=o.indexOf("="),a=u(-1==i?[o,""]:[o.slice(0,i),o.slice(i+1)],2),s=a[1];if(a[0].trim()===e)return decodeURIComponent(s)}}catch(t){c={error:t}}finally{try{r&&!r.done&&(p=n.return)&&p.call(n)}finally{if(c)throw c.error}}return null;var c,p}var Du=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),Mu=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){Xe()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((n=e).name||typeof n)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var n},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new Du(null,e.ngForOf,-1,-1),o),l=new ju(t,i);n.push(l)}else null==o?e._viewContainer.remove(r):(i=e._viewContainer.get(r),e._viewContainer.move(i,o),l=new ju(t,i),n.push(l))});for(var r=0;r0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o=2;return function(r){return r.pipe(t?Qu(function(e,n){return t(e,n,r)}):Y,ta(1),n?ua(e):ia(function(){return new Zu}))}}function pa(t){return function(e){var n=new ha(t),r=e.lift(n);return n.caught=r}}var ha=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new fa(t,this.selector,this.caught))},t}(),fa=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.selector=n,o.caught=r,o}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(H(this,n))}},e}(q);function da(t,e){return function(n){return n.lift(new va(t,e,n))}}var va=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new ga(t,this.predicate,this.thisArg,this.source))},t}(),ga=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.source=o,i.index=0,i.thisArg=r||i,i}return o(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(E),ya=function(){function t(t){if(this.total=t,this.total<0)throw new Xu}return t.prototype.call=function(t,e){return e.subscribe(new ma(t,this.total))},t}(),ma=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return o(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(E);function ba(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Qu(function(e,n){return t(e,n,r)}):Y,function(t){return t.lift(new ya(1))},n?ua(e):ia(function(){return new Zu}))}}function _a(){return X(1)}function wa(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Ca(t,e,n))}}var Ca=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new xa(t,this.accumulator,this.seed,this.hasSeed))},t}(),xa=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return o(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(E),Ea=null;function ka(){return Ea}var Sa,Ta={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Ia={"\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"},Aa={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"};_t.Node&&(Sa=_t.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var Oa,Pa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){var t;t=new e,Ea||(Ea=t)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){var r;(r=t)[e].apply(r,a(n))},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return Ta},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return Sa.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=this.getDefaultDocument().createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=this.getDefaultDocument().createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&this.isTemplateElement(t)?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;l||(l=t[i]=[]);var a=fs(e)?Zone.root:Zone.current;if(0===l.length)l.push({zone:a,handler:o});else{for(var s=!1,c=0;c-1},e}(Ka),_s=["alt","control","meta","shift"],ws={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Cs=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,r){var o=e.parseEventName(n),i=e.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return ka().onAndCancel(t,o.domEventName,i)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=e._normalizeKey(n.pop()),i="";if(_s.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=o,0!=n.length||0===o.length)return null;var l={};return l.domEventName=r,l.fullKey=i,l},e.getEventFullKey=function(t){var e="",n=ka().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),_s.forEach(function(r){r!=n&&(0,ws[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,n,r){return function(o){e.getEventFullKey(o)===t&&r.runGuarded(function(){return n(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(Ka),xs=function(){},Es=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return o(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case _r.NONE:return e;case _r.HTML:return e instanceof Ss?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{or=or||new Yn(t);var r=e?String(e):"";n=or.getInertBodyElement(r);var o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=or.getInertBodyElement(r)}while(r!==i);var l=new fr,u=l.sanitizeChildren(yr(n)||n);return Xe()&&l.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),u}finally{if(n)for(var a=yr(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}(this._doc,String(e)));case _r.STYLE:return e instanceof Ts?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(br);return e&&er(e[1])===e[1]||t.match(mr)&&function(t){for(var e=!0,n=!0,r=0;rt.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function ac(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function sc(t){return t.pipe(X(),da(function(t){return!0===t}))}function cc(t){return ce(t)?t:se(t)?Z(Promise.resolve(t)):Wu(t)}function pc(t,e,n){return n?function(t,e){return ic(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!vc(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,o){if(n.segments.length>o.length)return!!vc(l=n.segments.slice(0,o.length),o)&&!r.hasChildren();if(n.segments.length===o.length){if(!vc(n.segments,o))return!1;for(var i in r.children){if(!n.children[i])return!1;if(!t(n.children[i],r.children[i]))return!1}return!0}var l=o.slice(0,n.segments.length),u=o.slice(n.segments.length);return!!vc(n.segments,l)&&!!n.children[Qs]&&e(n.children[Qs],r,u)}(e,n,n.segments)}(t.root,e.root)}var hc=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Ys(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return bc.serialize(this)},t}(),fc=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,ac(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return _c(this)},t}(),dc=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=Ys(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Sc(this)},t}();function vc(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function gc(t,e){var n=[];return ac(t.children,function(t,r){r===Qs&&(n=n.concat(e(t,r)))}),ac(t.children,function(t,r){r!==Qs&&(n=n.concat(e(t,r)))}),n}var yc=function(){},mc=function(){function t(){}return t.prototype.parse=function(t){var e=new Pc(t);return new hc(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return _c(e);if(n){var r=e.children[Qs]?t(e.children[Qs],!1):"",o=[];return ac(e.children,function(e,n){n!==Qs&&o.push(n+":"+t(e,!1))}),o.length>0?r+"("+o.join("//")+")":r}var i=gc(e,function(n,r){return r===Qs?[t(e.children[Qs],!1)]:[r+":"+t(n,!1)]});return _c(e)+"/("+i.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return Cc(t)+"="+Cc(e)}).join("&"):Cc(t)+"="+Cc(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),bc=new mc;function _c(t){return t.segments.map(function(t){return Sc(t)}).join("/")}function wc(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Cc(t){return wc(t).replace(/%3B/gi,";")}function xc(t){return wc(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ec(t){return decodeURIComponent(t)}function kc(t){return Ec(t.replace(/\+/g,"%20"))}function Sc(t){return""+xc(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+xc(t)+"="+xc(e[t])}).join(""));var e}var Tc=/^[^\/()?;=#]+/;function Ic(t){var e=t.match(Tc);return e?e[0]:""}var Ac=/^[^=?&#]+/,Oc=/^[^?&#]+/,Pc=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new fc([],{}):new fc([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Qs]=new fc(t,e)),n},t.prototype.parseSegment=function(){var t=Ic(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new dc(Ec(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Ic(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Ic(this.remaining);r&&this.capture(n=r)}t[Ec(e)]=Ec(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(Ac))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var o=function(t){var e=t.match(Oc);return e?e[0]:""}(this.remaining);o&&this.capture(r=o)}var i=kc(n),l=kc(r);if(t.hasOwnProperty(i)){var u=t[i];Array.isArray(u)||(t[i]=u=[u]),u.push(l)}else t[i]=l}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Ic(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Qs);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[Qs]:new fc([],i),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),Rc=function(t){this.segmentGroup=t||null},Nc=function(t){this.urlTree=t};function Vc(t){return new O(function(e){return e.error(new Rc(t))})}function Dc(t){return new O(function(e){return e.error(new Nc(t))})}function Mc(t){return new O(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}var jc=function(){function t(t,e,n,r,o){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(Re)}return t.prototype.apply=function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Qs).pipe(B(function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)})).pipe(pa(function(e){if(e instanceof Nc)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof Rc)throw t.noMatchError(e);throw e}))},t.prototype.match=function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,Qs).pipe(B(function(n){return e.createUrlTree(n,t.queryParams,t.fragment)})).pipe(pa(function(t){if(t instanceof Rc)throw e.noMatchError(t);throw t}))},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r,o=t.segments.length>0?new fc([],((r={})[Qs]=t,r)):t;return new hc(o,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(B(function(t){return new fc([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,o){if(0===Object.keys(n).length)return Wu({});var i=[],l=[],u={};return ac(n,function(n,o){var a,s,c=(a=o,s=n,r.expandSegmentGroup(t,e,s,a)).pipe(B(function(t){return u[o]=t}));o===Qs?i.push(c):l.push(c)}),Wu.apply(null,i.concat(l)).pipe(_a(),ca(),B(function(){return u}))}(n.children)},t.prototype.expandSegment=function(t,e,n,r,o,i){var l=this;return Wu.apply(void 0,a(n)).pipe(B(function(u){return l.expandSegmentAgainstRoute(t,e,n,u,r,o,i).pipe(pa(function(t){if(t instanceof Rc)return Wu(null);throw t}))}),_a(),ba(function(t){return!!t}),pa(function(t,n){if(t instanceof Zu||"EmptyError"===t.name){if(l.noLeftoversInUrl(e,r,o))return Wu(new fc([],{}));throw new Rc(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,o,i,l){return Fc(r)!==i?Vc(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):Vc(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Dc(i):this.lineralizeSegments(n,i).pipe($(function(n){var i=new fc(n,{});return o.expandSegment(t,i,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var l=this,u=Lc(e,r,o),a=u.consumedSegments,s=u.lastChild,c=u.positionalParamSegments;if(!u.matched)return Vc(e);var p=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?Dc(p):this.lineralizeSegments(r,p).pipe($(function(r){return l.expandSegment(t,e,n,r.concat(o.slice(s)),i,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(B(function(t){return n._loadedConfig=t,new fc(r,{})})):Wu(new fc(r,{}));var u=Lc(e,n,r),a=u.consumedSegments,s=u.lastChild;if(!u.matched)return Vc(e);var c=r.slice(s);return this.getChildConfig(t,n).pipe($(function(t){var n=t.module,r=t.routes,u=function(t,e,n,r){return n.length>0&&function(t,e,n){return r.some(function(n){return zc(t,e,n)&&Fc(n)!==Qs})}(t,n)?{segmentGroup:Uc(new fc(e,function(t,e){var n,r,o={};o[Qs]=e;try{for(var i=l(t),u=i.next();!u.done;u=i.next()){var a=u.value;""===a.path&&Fc(a)!==Qs&&(o[Fc(a)]=new fc([],{}))}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}(r,new fc(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return r.some(function(n){return zc(t,e,n)})}(t,n)?{segmentGroup:Uc(new fc(t.segments,function(t,e,n,r){var o,u,a={};try{for(var s=l(n),c=s.next();!c.done;c=s.next()){var p=c.value;zc(t,e,p)&&!r[Fc(p)]&&(a[Fc(p)]=new fc([],{}))}}catch(t){o={error:t}}finally{try{c&&!c.done&&(u=s.return)&&u.call(s)}finally{if(o)throw o.error}}return i({},r,a)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,a,c,r),s=u.segmentGroup,p=u.slicedSegments;return 0===p.length&&s.hasChildren()?o.expandChildren(n,r,s).pipe(B(function(t){return new fc(a,t)})):0===r.length&&0===p.length?Wu(new fc(a,{})):o.expandSegment(n,s,r,p,Qs,!0).pipe(B(function(t){return new fc(a.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?Wu(new tc(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Wu(e._loadedConfig):function(t,e){var n=e.canLoad;return n&&0!==n.length?sc(Z(n).pipe(B(function(n){var r=t.get(n);return cc(r.canLoad?r.canLoad(e):r(e))}))):Wu(!0)}(t.injector,e).pipe($(function(r){return r?n.configLoader.load(t.injector,e).pipe(B(function(t){return e._loadedConfig=t,t})):function(t){return new O(function(e){return e.error(((n=Error("NavigationCancelingError: Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false")).ngNavigationCancelingError=!0,n));var n})}(e)})):Wu(new tc([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Wu(n);if(r.numberOfChildren>1||!r.children[Qs])return Mc(t.redirectTo);r=r.children[Qs]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var o=this.createSegmentGroup(t,e.root,n,r);return new hc(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return ac(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);n[r]=e[o]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var o=this,i=this.createSegments(t,e.segments,n,r),l={};return ac(e.children,function(e,i){l[i]=o.createSegmentGroup(t,e,n,r)}),new fc(i,l)},t.prototype.createSegments=function(t,e,n,r){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,r):o.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,r,o=0;try{for(var i=l(e),u=i.next();!u.done;u=i.next()){var a=u.value;if(a.path===t.path)return e.splice(o),a;o++}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return t},t}();function Lc(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||Xs)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Uc(t){if(1===t.numberOfChildren&&t.children[Qs]){var e=t.children[Qs];return new fc(t.segments.concat(e.segments),e.children)}return t}function zc(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Fc(t){return t.outlet||Qs}var Hc=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=qc(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=qc(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=Bc(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return Bc(t,this._root).map(function(t){return t.value})},t}();function qc(t,e){if(t===e.value)return e;try{for(var n=l(e.children),r=n.next();!r.done;r=n.next()){var o=qc(t,r.value);if(o)return o}}catch(t){i={error:t}}finally{try{r&&!r.done&&(u=n.return)&&u.call(n)}finally{if(i)throw i.error}}return null;var i,u}function Bc(t,e){if(t===e.value)return[e];try{for(var n=l(e.children),r=n.next();!r.done;r=n.next()){var o=Bc(t,r.value);if(o.length)return o.unshift(e),o}}catch(t){i={error:t}}finally{try{r&&!r.done&&(u=n.return)&&u.call(n)}finally{if(i)throw i.error}}return[];var i,u}var Gc=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function Kc(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var Wc=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,Xc(r,e),r}return o(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(Hc);function Zc(t,e){var n=function(t,e){var n=new Jc([],{},{},"",{},Qs,e,null,t.root,-1,{});return new Yc("",new Gc(n,[]))}(t,e),r=new Bu([new dc("",{})]),o=new Bu({}),i=new Bu({}),l=new Bu({}),u=new Bu(""),a=new $c(r,o,l,u,i,Qs,e,n.root);return a.snapshot=n.root,new Wc(new Gc(a,[]),n)}var $c=function(){function t(t,e,n,r,o,i,l,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=l,this._futureSnapshot=u}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(B(function(t){return Ys(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(B(function(t){return Ys(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Qc(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var o=n[r],l=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(l.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:i({},t.params,e.params),data:i({},t.data,e.data),resolve:i({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var Jc=function(){function t(t,e,n,r,o,i,l,u,a,s,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=l,this.routeConfig=u,this._urlSegment=a,this._lastPathIndex=s,this._resolve=c}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=Ys(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Ys(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),Yc=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,Xc(r,n),r}return o(e,t),e.prototype.toString=function(){return tp(this._root)},e}(Hc);function Xc(t,e){e.value._routerState=t,e.children.forEach(function(e){return Xc(t,e)})}function tp(t){var e=t.children.length>0?" { "+t.children.map(tp).join(", ")+" } ":"";return""+t.value+e}function ep(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,ic(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),ic(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&rp(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==uc(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),lp=function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n};function up(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Qs]:""+t}function ap(t,e,n){if(t||(t=new fc([],{})),0===t.segments.length&&t.hasChildren())return sp(t,e,n);var r=function(t,e,n){for(var r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o=n.length)return i;var l=t.segments[o],u=up(n[r]),a=r0&&void 0===u)break;if(u&&a&&"object"==typeof a&&void 0===a.outlets){if(!fp(u,a,l))return i;r+=2}else{if(!fp(u,{},l))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex=2?function(n){return I(wa(t,e),ta(1),ua(e))(n)}:function(e){return I(wa(function(e,n,r){return t(e,n,r+1)}),ta(1))(e)}}(function(t,e){return t})):Wu(null)},t.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},t.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},t.prototype.setupChildRouteGuards=function(t,e,n,r){var o=this,i=Kc(e);t.children.forEach(function(t){o.setupRouteGuards(t,i[t.value.outlet],n,r.concat([t.value])),delete i[t.value.outlet]}),ac(i,function(t,e){return o.deactivateRouteAndItsChildren(t,n.getContext(e))})},t.prototype.setupRouteGuards=function(t,e,n,r){var o=t.value,i=e?e.value:null,l=n?n.getContext(t.value.outlet):null;if(i&&o.routeConfig===i.routeConfig){var u=this.shouldRunGuardsAndResolvers(i,o,o.routeConfig.runGuardsAndResolvers);u?this.canActivateChecks.push(new dp(r)):(o.data=i.data,o._resolvedData=i._resolvedData),this.setupChildRouteGuards(t,e,o.component?l?l.children:null:n,r),u&&this.canDeactivateChecks.push(new vp(l.outlet.component,i))}else i&&this.deactivateRouteAndItsChildren(e,l),this.canActivateChecks.push(new dp(r)),this.setupChildRouteGuards(t,null,o.component?l?l.children:null:n,r)},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!np(t,e)||!ic(t.queryParams,e.queryParams);case"paramsChange":default:return!np(t,e)}},t.prototype.deactivateRouteAndItsChildren=function(t,e){var n=this,r=Kc(t),o=t.value;ac(r,function(t,r){n.deactivateRouteAndItsChildren(t,o.component?e?e.children.getContext(r):null:e)}),this.canDeactivateChecks.push(new vp(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))},t.prototype.runCanDeactivateChecks=function(){var t=this;return Z(this.canDeactivateChecks).pipe($(function(e){return t.runCanDeactivate(e.component,e.route)}),da(function(t){return!0===t}))},t.prototype.runCanActivateChecks=function(){var t=this;return Z(this.canActivateChecks).pipe($u(function(e){return sc(Z([t.fireChildActivationStart(e.route.parent),t.fireActivationStart(e.route),t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))}),da(function(t){return!0===t}))},t.prototype.fireActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new Zs(t)),Wu(!0)},t.prototype.fireChildActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new Ks(t)),Wu(!0)},t.prototype.runCanActivate=function(t){var e=this,n=t.routeConfig?t.routeConfig.canActivate:null;return n&&0!==n.length?sc(Z(n).pipe(B(function(n){var r=e.getToken(n,t);return cc(r.canActivate?r.canActivate(t,e.future):r(t,e.future)).pipe(ba())}))):Wu(!0)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1];return sc(Z(t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t})).pipe(B(function(t){return sc(Z(t.guards).pipe(B(function(r){var o=e.getToken(r,t.node);return cc(o.canActivateChild?o.canActivateChild(n,e.future):o(n,e.future)).pipe(ba())})))})))},t.prototype.extractCanActivateChild=function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?Z(r).pipe($(function(r){var o=n.getToken(r,e);return cc(o.canDeactivate?o.canDeactivate(t,e,n.curr,n.future):o(t,e,n.curr,n.future)).pipe(ba())})).pipe(da(function(t){return!0===t})):Wu(!0)},t.prototype.runResolve=function(t,e){return this.resolveNode(t._resolve,t).pipe(B(function(n){return t._resolvedData=n,t.data=i({},t.data,Qc(t,e).resolve),null}))},t.prototype.resolveNode=function(t,e){var n=this,r=Object.keys(t);if(0===r.length)return Wu({});if(1===r.length){var o=r[0];return this.getResolver(t[o],e).pipe(B(function(t){return(e={})[o]=t,e;var e}))}var i={};return Z(r).pipe($(function(r){return n.getResolver(t[r],e).pipe(B(function(t){return i[r]=t,t}))})).pipe(ca(),B(function(){return i}))},t.prototype.getResolver=function(t,e){var n=this.getToken(t,e);return cc(n.resolve?n.resolve(e,this.future):n(e,this.future))},t.prototype.getToken=function(t,e){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(n?n.module.injector:this.moduleInjector).get(t)},t}(),yp=function(){},mp=function(){function t(t,e,n,r,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o}return t.prototype.recognize=function(){try{var t=wp(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,Qs),n=new Jc([],Object.freeze({}),Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,{},Qs,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Gc(n,e),o=new Yc(this.url,r);return this.inheritParamsAndData(o._root),Wu(o)}catch(t){return new O(function(e){return e.error(t)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=Qc(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,o=gc(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},o.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),o=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+o+"'.")}n[t.value.outlet]=t.value}),o.sort(function(t,e){return t.value.outlet===Qs?-1:e.value.outlet===Qs?1:t.value.outlet.localeCompare(e.value.outlet)}),o},t.prototype.processSegment=function(t,e,n,r){try{for(var o=l(t),i=o.next();!i.done;i=o.next()){var u=i.value;try{return this.processSegmentAgainstRoute(u,e,n,r)}catch(t){if(!(t instanceof yp))throw t}}}catch(t){a={error:t}}finally{try{i&&!i.done&&(s=o.return)&&s.call(o)}finally{if(a)throw a.error}}if(this.noLeftoversInUrl(e,n,r))return[];throw new yp;var a,s},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new yp;if((t.outlet||Qs)!==r)throw new yp;var o,l=[],u=[];if("**"===t.path){var a=n.length>0?uc(n).parameters:{};o=new Jc(n,a,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,Ep(t),r,t.component,t,bp(e),_p(e)+n.length,kp(t))}else{var s=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new yp;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||Xs)(n,t,e);if(!r)throw new yp;var o={};ac(r.posParams,function(t,e){o[e]=t.path});var l=r.consumed.length>0?i({},o,r.consumed[r.consumed.length-1].parameters):o;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:l}}(e,t,n);l=s.consumedSegments,u=n.slice(s.lastChild),o=new Jc(l,s.parameters,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,Ep(t),r,t.component,t,bp(e),_p(e)+l.length,kp(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),p=wp(e,l,u,c),h=p.segmentGroup,f=p.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(c,h);return[new Gc(o,d)]}if(0===c.length&&0===f.length)return[new Gc(o,[])];var v=this.processSegment(c,h,f,Qs);return[new Gc(o,v)]},t}();function bp(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function _p(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function wp(t,e,n,r){if(n.length>0&&function(t,e,n){return r.some(function(n){return Cp(t,e,n)&&xp(n)!==Qs})}(t,n)){var o=new fc(e,function(t,e,n,r){var o,i,u={};u[Qs]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;try{for(var a=l(n),s=a.next();!s.done;s=a.next()){var c=s.value;if(""===c.path&&xp(c)!==Qs){var p=new fc([],{});p._sourceSegment=t,p._segmentIndexShift=e.length,u[xp(c)]=p}}}catch(t){o={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return u}(t,e,r,new fc(n,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return r.some(function(n){return Cp(t,e,n)})}(t,n)){var u=new fc(t.segments,function(t,e,n,r){var o,u,a={};try{for(var s=l(n),c=s.next();!c.done;c=s.next()){var p=c.value;if(Cp(t,e,p)&&!r[xp(p)]){var h=new fc([],{});h._sourceSegment=t,h._segmentIndexShift=t.segments.length,a[xp(p)]=h}}}catch(t){o={error:t}}finally{try{c&&!c.done&&(u=s.return)&&u.call(s)}finally{if(o)throw o.error}}return i({},r,a)}(t,n,r,t.children));return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:n}}var a=new fc(t.segments,t.children);return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:n}}function Cp(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function xp(t){return t.outlet||Qs}function Ep(t){return t.data||{}}function kp(t){return t.resolve||{}}var Sp=function(){},Tp=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),Ip=new ft("ROUTES"),Ap=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(B(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new tc(lc(o.injector.get(Ip)).map(oc),o)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?Z(this.loader.load(t)):cc(t()).pipe($(function(t){return t instanceof Ne?Wu(t):Z(e.compiler.compileModuleAsync(t))}))},t}(),Op=function(){},Pp=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function Rp(t){throw t}function Np(t){return Wu(null)}var Vp=function(){function t(t,e,n,r,o,i,l,u){var a=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=u,this.navigations=new Bu(null),this.navigationId=0,this.events=new rt,this.errorHandler=Rp,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Np,afterPreactivation:Np},this.urlHandlingStrategy=new Pp,this.routeReuseStrategy=new Tp,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.ngModule=o.get(Re),this.resetConfig(u),this.currentUrlTree=new hc(new fc([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new Ap(i,l,function(t){return a.triggerEvent(new Bs(t))},function(t){return a.triggerEvent(new Gs(t))}),this.routerState=Zc(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.urlSerializer.parse(e.url),r="popstate"===e.type?"popstate":"hashchange",o=e.state&&e.state.navigationId?{navigationId:e.state.navigationId}:null;setTimeout(function(){t.scheduleNavigation(n,r,o,{replaceUrl:!0})},0)}))},Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){ec(t),this.config=t.map(oc),this.navigated=!1,this.lastSuccessfulId=-1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var n=e.relativeTo,r=e.queryParams,o=e.fragment,l=e.preserveQueryParams,u=e.queryParamsHandling,s=e.preserveFragment;Xe()&&l&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,p=s?this.currentUrlTree.fragment:o,h=null;if(u)switch(u){case"merge":h=i({},this.currentUrlTree.queryParams,r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}else h=l?this.currentUrlTree.queryParams:r||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,r,o){if(0===n.length)return op(e.root,e.root,e,r,o);var i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ip(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,o){if("object"==typeof r&&null!=r){if(r.outlets){var i={};return ac(r.outlets,function(t,e){i[e]="string"==typeof t?t.split("/"):t}),a(t,[{outlets:i}])}if(r.segmentPath)return a(t,[r.segmentPath])}return"string"!=typeof r?a(t,[r]):0===o?(r.split("/").forEach(function(r,o){0==o&&"."===r||(0==o&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):a(t,[r])},[]);return new ip(n,e,r)}(n);if(i.toRoot())return op(e.root,new fc([],{}),e,r,o);var l=function(t,n,r){if(t.isAbsolute)return new lp(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new lp(r.snapshot._urlSegment,!0,0);var o=rp(t.commands[0])?0:1;return function(e,n,i){for(var l=r.snapshot._urlSegment,u=r.snapshot._lastPathIndex+o,a=t.numberOfDoubleDots;a>u;){if(a-=u,!(l=l.parent))throw new Error("Invalid number of '../'");u=l.segments.length}return new lp(l,!1,u-a)}()}(i,0,t),u=l.processChildren?sp(l.segmentGroup,l.index,i.commands):ap(l.segmentGroup,l.index,i.commands);return op(l.segmentGroup,u,e,r,o)}(c,this.currentUrlTree,t,h,p)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof hc?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;et?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return ph(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return ph(t.value)?null:fh.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(ph(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(ph(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(vh);return 0==e.length?null:function(t){return yh(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(vh);return 0==e.length?null:function(t){return function t(){for(var e,n=[],r=0;r=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t}(),Ih=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(Sh),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},t}(),Ah='\n

\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',Oh='\n
\n
\n \n
\n
';function Ph(t,e){return a(e.path,[t])}function Rh(t,e){t||Vh(e,"Cannot find control with"),e.valueAccessor||Vh(e,"No value accessor for form control with"),t.validator=dh.compose([t.validator,e.validator]),t.asyncValidator=dh.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Nh(t,e)})}(t,e),function(t,e){t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Nh(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function Nh(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Vh(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function Dh(t){return null!=t?dh.compose(t.map(Ch)):null}function Mh(t){return null!=t?dh.composeAsync(t.map(xh)):null}var jh=[bh,function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),Eh,function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=kt}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){try{for(var e=l(Array.from(this._optionMap.keys())),n=e.next();!n.done;n=e.next()){var r=n.value;if(this._compareWith(this._optionMap.get(r),t))return r}}catch(t){o={error:t}}finally{try{n&&!n.done&&(i=e.return)&&i.call(e)}finally{if(o)throw o.error}}return null;var o,i},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}(),function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=kt}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e,n=this;if(this.value=t,Array.isArray(t)){var r=t.map(function(t){return n._getOptionId(t)});e=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i0||this.disabled;var n,r},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(qh),Kh=function(t){function e(e,n,r){var o=t.call(this,zh(n),Fh(r,n))||this;return o.controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return o(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof Bh?t.value:t.getRawValue()})},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){try{for(var t=l(this.controls),e=t.next();!e.done;e=t.next())if(e.value.enabled)return!1}catch(t){n={error:t}}finally{try{e&&!e.done&&(r=t.return)&&r.call(t)}finally{if(n)throw n.error}}return this.controls.length>0||this.disabled;var n,r},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(qh),Wh=Promise.resolve(null),Zh=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new Le,r.form=new Gh({},Dh(e),Mh(n)),r}return o(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;Wh.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),Rh(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;Wh.then(function(){var n,r,o=e._findContainer(t.path);o&&o.removeControl(t.name),(r=(n=e._directives).indexOf(t))>-1&&n.splice(r,1)})},e.prototype.addFormGroup=function(t){var e=this;Wh.then(function(){var n=e._findContainer(t.path),r=new Gh({});(function(t,e){null==t&&Vh(e,"Cannot find control with"),t.validator=dh.compose([t.validator,e.validator]),t.asyncValidator=dh.composeAsync([t.asyncValidator,e.asyncValidator])})(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;Wh.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;Wh.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,e=this._directives,this.form._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e}(ch),$h=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n \n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+Ah+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+Oh)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+Ah+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+Oh)},t}(),Qh=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return o(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof Zh||$h.modelGroupParentException()},e}(Lh),Jh=Promise.resolve(null),Yh=function(t){function e(e,n,r,o){var i=t.call(this)||this;return i.control=new Bh,i._registered=!1,i.update=new Le,i._parent=e,i._rawValidators=n||[],i._rawAsyncValidators=r||[],i.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||Vh(t,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,o=void 0;return e.forEach(function(e){var i;e.constructor===wh?n=e:(i=e,jh.some(function(t){return i.constructor===t})?(r&&Vh(t,"More than one built-in value accessor matches form control with"),r=e):(o&&Vh(t,"More than one custom value accessor matches form control with"),o=e))}),o||r||n||(Vh(t,"No valid value accessor for form control with"),null)}(i,o),i}return o(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!kt(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?Ph(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Dh(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return Mh(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){Rh(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof Qh)&&this._parent instanceof Lh?$h.formGroupNameException():this._parent instanceof Qh||this._parent instanceof Zh||$h.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||$h.missingNameException()},e.prototype._updateValue=function(t){var e=this;Jh.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;Jh.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},e}(Sh),Xh=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?dh.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}(),tf=function(){},ef=function(){},nf=function(){function t(t){this.http=t,this.baseUrl="/grpcz_internal"}return t.prototype.makeUrl=function(t,e){var n=encodeURIComponent(t),r=encodeURIComponent(JSON.stringify(e));return this.baseUrl+"?full_method_name="+n+"&request="+r},t.prototype.getHelper=function(t){return console.log("getting: "+t),this.http.get(t,{responseType:"text"}).pipe(B(function(t){console.log("Received: "+t);var e=JSON.parse(t);return console.log("Parsed into: "+e),e}))},t.prototype.getServers=function(t){var e=this.makeUrl("grpc.channelz.v1.Channelz/GetServers",{startServerId:t});return this.getHelper(e)},t.prototype.getServerSockets=function(t,e){var n=this.makeUrl("grpc.channelz.v1.Channelz/GetServerSockets",{serverId:t,startSocketId:e});return this.getHelper(n)},t.prototype.getTopChannels=function(t){var e=this.makeUrl("grpc.channelz.v1.Channelz/GetTopChannels",{startChannelId:t});return this.getHelper(e)},t.prototype.getSubchannel=function(t){var e=this.makeUrl("grpc.channelz.v1.Channelz/GetSubchannel",{subchannelId:t});return this.getHelper(e)},t.prototype.getChannel=function(t){var e=this.makeUrl("grpc.channelz.v1.Channelz/GetChannel",{channelId:t});return this.getHelper(e)},t.prototype.getSocket=function(t){var e=this.makeUrl("grpc.channelz.v1.Channelz/GetSocket",{socketId:t});return this.getHelper(e)},t}(),rf=function(){function t(t,e,n){this.route=t,this.router=e,this.channelzService=n,this.startId=0}return t.prototype.ngOnInit=function(){var t=this;this.render(),this.route.params.subscribe(function(e){return t.render()})},t.prototype.processEntry=function(){this.router.navigateByUrl("/channelz/servers/"+this.startId)},t.prototype.render=function(){var t=this,e=this.route.snapshot.paramMap.get("startId");this.startId=null==e?0:+e,this.channelzService.getServers(this.startId).subscribe(function(e){return t.handleResponse(e)})},t.prototype.handleResponse=function(t){this.serversList=t.server,t.end||(this.nextId=this.serversList[this.serversList.length-1].ref.serverId)},t}(),of=Ur({encapsulation:0,styles:[[""]],data:{}});function lf(t){return Pi(0,[(t()(),go(0,0,null,null,3,"div",[],null,null,null,null,null)),(t()(),go(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,wu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"]))],function(t,e){t(e,2,0,ho(1,"/channelz/socket/",e.context.$implicit.socketId,""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.socketId,e.context.$implicit.name)})}function uf(t){return Pi(0,[(t()(),go(0,0,null,null,16,"tr",[],null,null,null,null,null)),(t()(),go(1,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),go(2,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,3).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(3,671744,null,0,jp,[Vp,$c,wu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(4,null,["","[","]"])),(t()(),go(5,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(6,null,["",""])),(t()(),go(7,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(8,null,["",""])),(t()(),go(9,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(10,null,["",""])),(t()(),go(11,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),Ii(12,null,["",""])),ii(0,Fu,[]),(t()(),go(14,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(16777216,null,null,1,null,lf)),oi(16,802816,null,0,Mu,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,3,0,ho(1,"/channelz/serversockets/",e.context.$implicit.ref.serverId,"")),t(e,16,0,e.context.$implicit.listenSocket)},function(t,e){t(e,2,0,Go(e,3).target,Go(e,3).href),t(e,4,0,e.context.$implicit.ref.serverId,e.context.$implicit.ref.name),t(e,6,0,e.context.$implicit.data.callsStarted),t(e,8,0,e.context.$implicit.data.callsSucceeded),t(e,10,0,e.context.$implicit.data.callsFailed),t(e,12,0,Mr(e,12,0,Go(e,13).transform(e.context.$implicit.data.lastCallStartedTimestamp)))})}function af(t){return Pi(0,[(t()(),go(0,0,null,null,3,"div",[],null,null,null,null,null)),(t()(),go(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,wu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(-1,null,["Click here for next page"]))],function(t,e){t(e,2,0,ho(1,"/channelz/servers/",e.component.nextId,""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href)})}function sf(t){return Pi(0,[(t()(),go(0,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),go(1,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Ii(-1,null,["End of results"]))],null,null)}function cf(t){return Pi(0,[(t()(),go(0,0,null,null,1,"h3",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Showing servers starting from:"])),(t()(),Ii(-1,null,["\nServer id:\n"])),(t()(),go(3,0,[["textbox",1]],null,7,"input",[["required",""],["type","text"]],[[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,"keyup.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==Go(t,4)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Go(t,4).onTouched()&&r),"compositionstart"===e&&(r=!1!==Go(t,4)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Go(t,4)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.startId=n)&&r),"keyup.enter"===e&&(r=!1!==o.processEntry()&&r),r},null,null)),oi(4,16384,null,0,wh,[cn,pn,[2,_h]],null,null),oi(5,16384,null,0,Xh,[],{required:[0,"required"]},null),li(1024,null,hh,function(t){return[t]},[Xh]),li(1024,null,mh,function(t){return[t]},[wh]),oi(8,671744,null,0,Yh,[[8,null],[6,hh],[8,null],[6,mh]],{model:[0,"model"]},{update:"ngModelChange"}),li(2048,null,Sh,null,[Yh]),oi(10,16384,null,0,Uh,[[4,Sh]],null,null),(t()(),go(11,0,null,null,1,"button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.processEntry()&&r),r},null,null)),(t()(),Ii(-1,null,["Refresh"])),(t()(),go(13,0,null,null,17,"div",[],null,null,null,null,null)),(t()(),go(14,0,null,null,16,"table",[],null,null,null,null,null)),(t()(),go(15,0,null,null,15,"tbody",[],null,null,null,null,null)),(t()(),go(16,0,null,null,12,"tr",[],null,null,null,null,null)),(t()(),go(17,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Server"])),(t()(),go(19,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Calls started"])),(t()(),go(21,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Calls succeeded"])),(t()(),go(23,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Calls failed"])),(t()(),go(25,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Last call started ts"])),(t()(),go(27,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Listen Sockets"])),(t()(),vo(16777216,null,null,1,null,uf)),oi(30,802816,null,0,Mu,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),vo(16777216,null,null,1,null,af)),oi(32,16384,null,0,Lu,[bn,mn],{ngIf:[0,"ngIf"]},null),(t()(),vo(16777216,null,null,1,null,sf)),oi(34,16384,null,0,Lu,[bn,mn],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,5,0,""),t(e,8,0,n.startId),t(e,30,0,n.serversList),t(e,32,0,n.nextId),t(e,34,0,!n.nextId)},function(t,e){t(e,3,0,Go(e,5).required?"":null,Go(e,10).ngClassUntouched,Go(e,10).ngClassTouched,Go(e,10).ngClassPristine,Go(e,10).ngClassDirty,Go(e,10).ngClassValid,Go(e,10).ngClassInvalid,Go(e,10).ngClassPending)})}var pf=Vo("app-servers",rf,function(t){return Pi(0,[(t()(),go(0,0,null,null,1,"app-servers",[],null,null,null,cf,of)),oi(1,114688,null,0,rf,[$c,Vp,nf],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),hf=function(){function t(){}return t.prototype.transform=function(e){return t.transform(e)},t.transform=function(t){return null==t?"NULL":JSON.stringify(t,null,2)},t}(),ff=function(){function t(){}return t.prototype.transform=function(e){return t.transform(e)},t.transform=function(t){if(null==t.tcpipAddress)return hf.transform(t);var e=JSON.parse(JSON.stringify(t)),n=e.tcpipAddress,r=atob(n.ipAddress);if(4===r.length)n.ipAddress=r.split("").map(function(t){return t.charCodeAt(0)}).join(".");else if(16===r.length){var o=r.split("").map(function(t){return("0"+t.charCodeAt(0).toString(16)).substr(-2)}).join("");n.ipAddress=o.match(/..../g).join(":")}return hf.transform(e)},t}(),df=function(){function t(t,e,n){this.route=t,this.router=e,this.channelzService=n,this.startId=0}return t.prototype.ngOnInit=function(){var t=this;this.render(),this.route.params.subscribe(function(e){return t.render()})},t.prototype.processEntry=function(){this.router.navigateByUrl("/channelz/topchannels/"+this.startId)},t.prototype.render=function(){var t=this,e=this.route.snapshot.paramMap.get("startId");this.startId=null==e?0:+e,this.channelzService.getTopChannels(this.startId).subscribe(function(e){return t.handleResponse(e)})},t.prototype.handleResponse=function(t){this.topChannelsList=t.channel,t.end||(this.nextId=this.topChannelsList[this.topChannelsList.length-1].ref.channelId)},t}(),vf=Ur({encapsulation:0,styles:[[""]],data:{}});function gf(t){return Pi(0,[(t()(),go(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),go(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,wu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/channel/",e.context.$implicit.channelId,""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.channelId,e.context.$implicit.name)})}function yf(t){return Pi(0,[(t()(),go(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),go(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,wu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/subchannel/",e.context.$implicit.subchannelId,""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.subchannelId,e.context.$implicit.name)})}function mf(t){return Pi(0,[(t()(),go(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),go(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,wu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/socket/",e.context.$implicit.socketId,""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.socketId,e.context.$implicit.name)})}function bf(t){return Pi(0,[(t()(),go(0,0,null,null,15,"tr",[],null,null,null,null,null)),(t()(),go(1,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(2,null,["","[","]"])),(t()(),go(3,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),go(4,0,null,null,2,"pre",[],null,null,null,null,null)),(t()(),Ii(5,null,["",""])),Ti(6,1),(t()(),go(7,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(16777216,null,null,1,null,gf)),oi(9,802816,null,0,Mu,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),go(10,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(16777216,null,null,1,null,yf)),oi(12,802816,null,0,Mu,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),go(13,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(16777216,null,null,1,null,mf)),oi(15,802816,null,0,Mu,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,9,0,e.context.$implicit.channelRef),t(e,12,0,e.context.$implicit.subchannelRef),t(e,15,0,e.context.$implicit.socketRef)},function(t,e){t(e,2,0,e.context.$implicit.ref.channelId,e.context.$implicit.ref.name),t(e,5,0,Mr(e,5,0,t(e,6,0,Go(e.parent,0),e.context.$implicit.data)))})}function _f(t){return Pi(0,[(t()(),go(0,0,null,null,3,"div",[],null,null,null,null,null)),(t()(),go(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,wu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(-1,null,["Click here for next page"]))],function(t,e){t(e,2,0,ho(1,"/channelz/topchannels/",e.component.nextId,""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href)})}function wf(t){return Pi(0,[(t()(),go(0,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),go(1,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Ii(-1,null,["End of results"]))],null,null)}function Cf(t){return Pi(0,[ii(0,hf,[]),(t()(),go(1,0,null,null,1,"h3",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Showing top level channels starting from:"])),(t()(),go(3,0,[["textbox",1]],null,7,"input",[["required",""],["type","text"]],[[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,"keyup.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==Go(t,4)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Go(t,4).onTouched()&&r),"compositionstart"===e&&(r=!1!==Go(t,4)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Go(t,4)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.startId=n)&&r),"keyup.enter"===e&&(r=!1!==o.processEntry()&&r),r},null,null)),oi(4,16384,null,0,wh,[cn,pn,[2,_h]],null,null),oi(5,16384,null,0,Xh,[],{required:[0,"required"]},null),li(1024,null,hh,function(t){return[t]},[Xh]),li(1024,null,mh,function(t){return[t]},[wh]),oi(8,671744,null,0,Yh,[[8,null],[6,hh],[8,null],[6,mh]],{model:[0,"model"]},{update:"ngModelChange"}),li(2048,null,Sh,null,[Yh]),oi(10,16384,null,0,Uh,[[4,Sh]],null,null),(t()(),go(11,0,null,null,1,"button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.processEntry()&&r),r},null,null)),(t()(),Ii(-1,null,["Refresh"])),(t()(),go(13,0,null,null,15,"div",[],null,null,null,null,null)),(t()(),go(14,0,null,null,14,"table",[],null,null,null,null,null)),(t()(),go(15,0,null,null,13,"tbody",[],null,null,null,null,null)),(t()(),go(16,0,null,null,10,"tr",[],null,null,null,null,null)),(t()(),go(17,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Channel"])),(t()(),go(19,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Data"])),(t()(),go(21,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Channels"])),(t()(),go(23,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Subchannels"])),(t()(),go(25,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Sockets"])),(t()(),vo(16777216,null,null,1,null,bf)),oi(28,802816,null,0,Mu,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),vo(16777216,null,null,1,null,_f)),oi(30,16384,null,0,Lu,[bn,mn],{ngIf:[0,"ngIf"]},null),(t()(),vo(16777216,null,null,1,null,wf)),oi(32,16384,null,0,Lu,[bn,mn],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,5,0,""),t(e,8,0,n.startId),t(e,28,0,n.topChannelsList),t(e,30,0,n.nextId),t(e,32,0,!n.nextId)},function(t,e){t(e,3,0,Go(e,5).required?"":null,Go(e,10).ngClassUntouched,Go(e,10).ngClassTouched,Go(e,10).ngClassPristine,Go(e,10).ngClassDirty,Go(e,10).ngClassValid,Go(e,10).ngClassInvalid,Go(e,10).ngClassPending)})}var xf=Vo("app-top-channels",df,function(t){return Pi(0,[(t()(),go(0,0,null,null,1,"app-top-channels",[],null,null,null,Cf,vf)),oi(1,114688,null,0,df,[$c,Vp,nf],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),Ef=function(){function t(t,e,n){this.route=t,this.router=e,this.channelzService=n}return t.prototype.ngOnInit=function(){var t=this;this.render(),this.route.params.subscribe(function(e){return t.render()})},t.prototype.processEntry=function(){this.router.navigateByUrl("/channelz/socket/"+this.enteredData)},t.prototype.render=function(){var t=this,e=this.route.snapshot.paramMap.get("id");this.id=null==e?0:+e,this.enteredData=this.id.toString(),this.channelzService.getSocket(+this.id).subscribe(function(e){return t.handleResponse(e)})},t.prototype.handleResponse=function(t){this.socket=t.socket,this.simplifiedData=this.simplifiedDataHelper()},t.prototype.simplifiedDataHelper=function(){if(null==this.socket.data)return{};var t=JSON.parse(JSON.stringify(this.socket.data));return t.option=null,t},t.prototype.socketOptions=function(){return null==this.socket.data||null==this.socket.data.option?[]:this.socket.data.option.map(function(t){return new function(t,e){this.name=t,this.value=e}(t.name,t.value?t.value:t.additional)})},t}(),kf=Ur({encapsulation:0,styles:[[""]],data:{}});function Sf(t){return Pi(0,[(t()(),go(0,0,null,null,6,"tr",[],null,null,null,null,null)),(t()(),go(1,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(2,null,["Socket Option: ",""])),(t()(),go(3,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),go(4,0,null,null,2,"pre",[],null,null,null,null,null)),(t()(),Ii(5,null,["",""])),Ti(6,1)],null,function(t,e){t(e,2,0,e.context.$implicit.name),t(e,5,0,Mr(e,5,0,t(e,6,0,Go(e.parent.parent,1),e.context.$implicit.value)))})}function Tf(t){return Pi(0,[(t()(),go(0,0,null,null,43,"div",[],null,null,null,null,null)),(t()(),go(1,0,null,null,42,"table",[],null,null,null,null,null)),(t()(),go(2,0,null,null,41,"tbody",[],null,null,null,null,null)),(t()(),go(3,0,null,null,4,"tr",[],null,null,null,null,null)),(t()(),go(4,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Field"])),(t()(),go(6,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Value"])),(t()(),go(8,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),go(9,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["SocketRef"])),(t()(),go(11,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),go(12,0,null,null,1,"pre",[],null,null,null,null,null)),(t()(),Ii(13,null,["","[","]"])),(t()(),go(14,0,null,null,6,"tr",[],null,null,null,null,null)),(t()(),go(15,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Local Address"])),(t()(),go(17,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),go(18,0,null,null,2,"pre",[],null,null,null,null,null)),(t()(),Ii(19,null,["",""])),Ti(20,1),(t()(),go(21,0,null,null,6,"tr",[],null,null,null,null,null)),(t()(),go(22,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Remote Address"])),(t()(),go(24,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),go(25,0,null,null,2,"pre",[],null,null,null,null,null)),(t()(),Ii(26,null,["",""])),Ti(27,1),(t()(),go(28,0,null,null,6,"tr",[],null,null,null,null,null)),(t()(),go(29,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Security"])),(t()(),go(31,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),go(32,0,null,null,2,"pre",[],null,null,null,null,null)),(t()(),Ii(33,null,["",""])),Ti(34,1),(t()(),go(35,0,null,null,6,"tr",[],null,null,null,null,null)),(t()(),go(36,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Data"])),(t()(),go(38,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),go(39,0,null,null,2,"pre",[],null,null,null,null,null)),(t()(),Ii(40,null,["",""])),Ti(41,1),(t()(),vo(16777216,null,null,1,null,Sf)),oi(43,802816,null,0,Mu,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,43,0,e.component.socketOptions())},function(t,e){var n=e.component;t(e,13,0,n.socket.ref.socketId,n.socket.ref.name),t(e,19,0,Mr(e,19,0,t(e,20,0,Go(e.parent,0),n.socket.local))),t(e,26,0,Mr(e,26,0,t(e,27,0,Go(e.parent,0),n.socket.remote))),t(e,33,0,Mr(e,33,0,t(e,34,0,Go(e.parent,1),n.socket.security))),t(e,40,0,Mr(e,40,0,t(e,41,0,Go(e.parent,1),n.simplifiedData)))})}function If(t){return Pi(0,[(t()(),go(0,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),go(1,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Socket does not exist"]))],null,null)}function Af(t){return Pi(0,[ii(0,ff,[]),ii(0,hf,[]),(t()(),go(2,0,null,null,1,"h3",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Showing socket:"])),(t()(),go(4,0,[["textbox",1]],null,7,"input",[["required",""],["type","text"]],[[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,"keyup.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==Go(t,5)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Go(t,5).onTouched()&&r),"compositionstart"===e&&(r=!1!==Go(t,5)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Go(t,5)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.enteredData=n)&&r),"keyup.enter"===e&&(r=!1!==o.processEntry()&&r),r},null,null)),oi(5,16384,null,0,wh,[cn,pn,[2,_h]],null,null),oi(6,16384,null,0,Xh,[],{required:[0,"required"]},null),li(1024,null,hh,function(t){return[t]},[Xh]),li(1024,null,mh,function(t){return[t]},[wh]),oi(9,671744,null,0,Yh,[[8,null],[6,hh],[8,null],[6,mh]],{model:[0,"model"]},{update:"ngModelChange"}),li(2048,null,Sh,null,[Yh]),oi(11,16384,null,0,Uh,[[4,Sh]],null,null),(t()(),go(12,0,null,null,1,"button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.processEntry()&&r),r},null,null)),(t()(),Ii(-1,null,["Refresh"])),(t()(),go(14,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),vo(16777216,null,null,1,null,Tf)),oi(16,16384,null,0,Lu,[bn,mn],{ngIf:[0,"ngIf"]},null),(t()(),vo(16777216,null,null,1,null,If)),oi(18,16384,null,0,Lu,[bn,mn],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,6,0,""),t(e,9,0,n.enteredData),t(e,16,0,n.socket),t(e,18,0,!n.socket)},function(t,e){t(e,4,0,Go(e,6).required?"":null,Go(e,11).ngClassUntouched,Go(e,11).ngClassTouched,Go(e,11).ngClassPristine,Go(e,11).ngClassDirty,Go(e,11).ngClassValid,Go(e,11).ngClassInvalid,Go(e,11).ngClassPending)})}var Of=Vo("app-socket",Ef,function(t){return Pi(0,[(t()(),go(0,0,null,null,1,"app-socket",[],null,null,null,Af,kf)),oi(1,114688,null,0,Ef,[$c,Vp,nf],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),Pf=function(){function t(t,e,n){this.route=t,this.router=e,this.channelzService=n,this.enteredData="0",this.id=0}return t.prototype.ngOnInit=function(){var t=this;this.render(),this.route.params.subscribe(function(e){return t.render()})},t.prototype.processEntry=function(){this.router.navigateByUrl("/channelz/channel/"+this.enteredData)},t.prototype.render=function(){var t=this,e=this.route.snapshot.paramMap.get("id");this.id=null==e?0:+e,this.enteredData=this.id.toString(),this.channelzService.getChannel(this.id).subscribe(function(e){return t.handleResponse(e)})},t.prototype.handleResponse=function(t){this.channel=t.channel},t}(),Rf=Ur({encapsulation:0,styles:[[""]],data:{}});function Nf(t){return Pi(0,[(t()(),go(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),go(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,wu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/channel/",e.context.$implicit.channelId,""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.channelId,e.context.$implicit.name)})}function Vf(t){return Pi(0,[(t()(),go(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),go(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,wu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/subchannel/",e.context.$implicit.subchannelId,""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.subchannelId,e.context.$implicit.name)})}function Df(t){return Pi(0,[(t()(),go(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),go(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,wu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/socket/",e.context.$implicit.socketId,""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.socketId,e.context.$implicit.name)})}function Mf(t){return Pi(0,[(t()(),go(0,0,null,null,38,"div",[],null,null,null,null,null)),(t()(),go(1,0,null,null,37,"table",[],null,null,null,null,null)),(t()(),go(2,0,null,null,36,"tbody",[],null,null,null,null,null)),(t()(),go(3,0,null,null,4,"tr",[],null,null,null,null,null)),(t()(),go(4,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Field"])),(t()(),go(6,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Value"])),(t()(),go(8,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),go(9,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["ChannelRef"])),(t()(),go(11,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),go(12,0,null,null,1,"pre",[],null,null,null,null,null)),(t()(),Ii(13,null,["","[","]"])),(t()(),go(14,0,null,null,6,"tr",[],null,null,null,null,null)),(t()(),go(15,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Data"])),(t()(),go(17,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),go(18,0,null,null,2,"pre",[],null,null,null,null,null)),(t()(),Ii(19,null,["",""])),Ti(20,1),(t()(),go(21,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),go(22,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Channels"])),(t()(),go(24,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(16777216,null,null,1,null,Nf)),oi(26,802816,null,0,Mu,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),go(27,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),go(28,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Subchannels"])),(t()(),go(30,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(16777216,null,null,1,null,Vf)),oi(32,802816,null,0,Mu,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),go(33,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),go(34,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Sockets"])),(t()(),go(36,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(16777216,null,null,1,null,Df)),oi(38,802816,null,0,Mu,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,26,0,n.channel.channelRef),t(e,32,0,n.channel.subchannelRef),t(e,38,0,n.channel.socketRef)},function(t,e){var n=e.component;t(e,13,0,n.channel.ref.channelId,n.channel.ref.name),t(e,19,0,Mr(e,19,0,t(e,20,0,Go(e.parent,0),n.channel.data)))})}function jf(t){return Pi(0,[(t()(),go(0,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),go(1,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Channel does not exist"]))],null,null)}function Lf(t){return Pi(0,[ii(0,hf,[]),(t()(),go(1,0,null,null,1,"h3",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Showing channel:"])),(t()(),go(3,0,[["textbox",1]],null,7,"input",[["required",""],["type","text"]],[[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,"keyup.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==Go(t,4)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Go(t,4).onTouched()&&r),"compositionstart"===e&&(r=!1!==Go(t,4)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Go(t,4)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.enteredData=n)&&r),"keyup.enter"===e&&(r=!1!==o.processEntry()&&r),r},null,null)),oi(4,16384,null,0,wh,[cn,pn,[2,_h]],null,null),oi(5,16384,null,0,Xh,[],{required:[0,"required"]},null),li(1024,null,hh,function(t){return[t]},[Xh]),li(1024,null,mh,function(t){return[t]},[wh]),oi(8,671744,null,0,Yh,[[8,null],[6,hh],[8,null],[6,mh]],{model:[0,"model"]},{update:"ngModelChange"}),li(2048,null,Sh,null,[Yh]),oi(10,16384,null,0,Uh,[[4,Sh]],null,null),(t()(),go(11,0,null,null,1,"button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.processEntry()&&r),r},null,null)),(t()(),Ii(-1,null,["Refresh"])),(t()(),go(13,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),vo(16777216,null,null,1,null,Mf)),oi(15,16384,null,0,Lu,[bn,mn],{ngIf:[0,"ngIf"]},null),(t()(),vo(16777216,null,null,1,null,jf)),oi(17,16384,null,0,Lu,[bn,mn],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,5,0,""),t(e,8,0,n.enteredData),t(e,15,0,n.channel),t(e,17,0,!n.channel&&n.id)},function(t,e){t(e,3,0,Go(e,5).required?"":null,Go(e,10).ngClassUntouched,Go(e,10).ngClassTouched,Go(e,10).ngClassPristine,Go(e,10).ngClassDirty,Go(e,10).ngClassValid,Go(e,10).ngClassInvalid,Go(e,10).ngClassPending)})}var Uf=Vo("app-channel",Pf,function(t){return Pi(0,[(t()(),go(0,0,null,null,1,"app-channel",[],null,null,null,Lf,Rf)),oi(1,114688,null,0,Pf,[$c,Vp,nf],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),zf=function(){function t(t,e,n){this.route=t,this.router=e,this.channelzService=n}return t.prototype.ngOnInit=function(){var t=this;this.render(),this.route.params.subscribe(function(e){return t.render()})},t.prototype.processEntry=function(){this.router.navigateByUrl("/channelz/subchannel/"+this.enteredData)},t.prototype.render=function(){var t=this,e=this.route.snapshot.paramMap.get("id");this.id=null==e?0:+e,this.enteredData=this.id.toString(),this.channelzService.getSubchannel(this.id).subscribe(function(e){return t.handleResponse(e)})},t.prototype.handleResponse=function(t){this.subchannel=t.subchannel},t}(),Ff=Ur({encapsulation:0,styles:[[""]],data:{}});function Hf(t){return Pi(0,[(t()(),go(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),go(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,wu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/channel/",e.context.$implicit.channelId,""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.channelId,e.context.$implicit.name)})}function qf(t){return Pi(0,[(t()(),go(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),go(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,wu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/subchannel/",e.context.$implicit.channelId,""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.subchannelId,e.context.$implicit.name)})}function Bf(t){return Pi(0,[(t()(),go(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),go(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,wu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/socket/",e.context.$implicit.socketId,""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.socketId,e.context.$implicit.name)})}function Gf(t){return Pi(0,[(t()(),go(0,0,null,null,38,"div",[],null,null,null,null,null)),(t()(),go(1,0,null,null,37,"table",[],null,null,null,null,null)),(t()(),go(2,0,null,null,36,"tbody",[],null,null,null,null,null)),(t()(),go(3,0,null,null,4,"tr",[],null,null,null,null,null)),(t()(),go(4,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Field"])),(t()(),go(6,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Value"])),(t()(),go(8,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),go(9,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["SubchannelRef"])),(t()(),go(11,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),go(12,0,null,null,1,"pre",[],null,null,null,null,null)),(t()(),Ii(13,null,["","[","]"])),(t()(),go(14,0,null,null,6,"tr",[],null,null,null,null,null)),(t()(),go(15,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Data"])),(t()(),go(17,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),go(18,0,null,null,2,"pre",[],null,null,null,null,null)),(t()(),Ii(19,null,["",""])),Ti(20,1),(t()(),go(21,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),go(22,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Channels"])),(t()(),go(24,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(16777216,null,null,1,null,Hf)),oi(26,802816,null,0,Mu,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),go(27,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),go(28,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Subchannels"])),(t()(),go(30,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(16777216,null,null,1,null,qf)),oi(32,802816,null,0,Mu,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),go(33,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),go(34,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Sockets"])),(t()(),go(36,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(16777216,null,null,1,null,Bf)),oi(38,802816,null,0,Mu,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,26,0,n.subchannel.channelRef),t(e,32,0,n.subchannel.subchannelRef),t(e,38,0,n.subchannel.socketRef)},function(t,e){var n=e.component;t(e,13,0,n.subchannel.ref.subchannelId,n.subchannel.ref.name),t(e,19,0,Mr(e,19,0,t(e,20,0,Go(e.parent,0),n.subchannel.data)))})}function Kf(t){return Pi(0,[(t()(),go(0,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),go(1,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Subchannel does not exist"]))],null,null)}function Wf(t){return Pi(0,[ii(0,hf,[]),(t()(),go(1,0,null,null,1,"h3",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Showing subchannel:"])),(t()(),go(3,0,[["textbox",1]],null,7,"input",[["required",""],["type","text"]],[[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,"keyup.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==Go(t,4)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Go(t,4).onTouched()&&r),"compositionstart"===e&&(r=!1!==Go(t,4)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Go(t,4)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.enteredData=n)&&r),"keyup.enter"===e&&(r=!1!==o.processEntry()&&r),r},null,null)),oi(4,16384,null,0,wh,[cn,pn,[2,_h]],null,null),oi(5,16384,null,0,Xh,[],{required:[0,"required"]},null),li(1024,null,hh,function(t){return[t]},[Xh]),li(1024,null,mh,function(t){return[t]},[wh]),oi(8,671744,null,0,Yh,[[8,null],[6,hh],[8,null],[6,mh]],{model:[0,"model"]},{update:"ngModelChange"}),li(2048,null,Sh,null,[Yh]),oi(10,16384,null,0,Uh,[[4,Sh]],null,null),(t()(),go(11,0,null,null,1,"button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.processEntry()&&r),r},null,null)),(t()(),Ii(-1,null,["Refresh"])),(t()(),go(13,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),vo(16777216,null,null,1,null,Gf)),oi(15,16384,null,0,Lu,[bn,mn],{ngIf:[0,"ngIf"]},null),(t()(),vo(16777216,null,null,1,null,Kf)),oi(17,16384,null,0,Lu,[bn,mn],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,5,0,""),t(e,8,0,n.enteredData),t(e,15,0,n.subchannel),t(e,17,0,!n.subchannel&&n.id)},function(t,e){t(e,3,0,Go(e,5).required?"":null,Go(e,10).ngClassUntouched,Go(e,10).ngClassTouched,Go(e,10).ngClassPristine,Go(e,10).ngClassDirty,Go(e,10).ngClassValid,Go(e,10).ngClassInvalid,Go(e,10).ngClassPending)})}var Zf=Vo("app-subchannel",zf,function(t){return Pi(0,[(t()(),go(0,0,null,null,1,"app-subchannel",[],null,null,null,Wf,Ff)),oi(1,114688,null,0,zf,[$c,Vp,nf],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),$f=function(){function t(t,e,n){this.route=t,this.router=e,this.channelzService=n}return t.prototype.ngOnInit=function(){var t=this;this.render(),this.route.params.subscribe(function(e){return t.render()})},t.prototype.processEntry=function(){this.router.navigateByUrl("/channelz/serversockets/"+this.serverId+"/"+this.socketStartId)},t.prototype.render=function(){var t=this,e=this.route.snapshot.paramMap.get("serverId");this.serverId=null==e?0:+e;var n=this.route.snapshot.paramMap.get("socketStartId");this.socketStartId=null==n?0:+n,this.channelzService.getServerSockets(this.serverId,this.socketStartId).subscribe(function(e){return t.handleResponse(e)})},t.prototype.handleResponse=function(t){this.sockets=t.socketRef,t.end||(this.nextSocketId=this.sockets[this.sockets.length-1].socketId)},t}(),Qf=Ur({encapsulation:0,styles:[[""]],data:{}});function Jf(t){return Pi(0,[(t()(),go(0,0,null,null,4,"tr",[],null,null,null,null,null)),(t()(),go(1,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),go(2,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,3).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(3,671744,null,0,jp,[Vp,$c,wu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(4,null,["","[","]"]))],function(t,e){t(e,3,0,ho(1,"/channelz/socket/",e.context.$implicit.socketId,""))},function(t,e){t(e,2,0,Go(e,3).target,Go(e,3).href),t(e,4,0,e.context.$implicit.socketId,e.context.$implicit.name)})}function Yf(t){return Pi(0,[(t()(),go(0,0,null,null,3,"div",[],null,null,null,null,null)),(t()(),go(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,wu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(-1,null,["Click here for next page"]))],function(t,e){var n=e.component;t(e,2,0,ho(2,"/channelz/serversockets/",n.serverId,"/",n.nextSocketId,""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href)})}function Xf(t){return Pi(0,[(t()(),go(0,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),go(1,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Ii(-1,null,["End of results"]))],null,null)}function td(t){return Pi(0,[(t()(),go(0,0,null,null,1,"h3",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Showing server sockets starting from:"])),(t()(),Ii(-1,null,["\nServer id:\n"])),(t()(),go(3,0,[["serverIdTextBox",1]],null,7,"input",[["required",""],["type","text"]],[[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,"keyup.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==Go(t,4)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Go(t,4).onTouched()&&r),"compositionstart"===e&&(r=!1!==Go(t,4)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Go(t,4)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.serverId=n)&&r),"keyup.enter"===e&&(r=!1!==o.processEntry()&&r),r},null,null)),oi(4,16384,null,0,wh,[cn,pn,[2,_h]],null,null),oi(5,16384,null,0,Xh,[],{required:[0,"required"]},null),li(1024,null,hh,function(t){return[t]},[Xh]),li(1024,null,mh,function(t){return[t]},[wh]),oi(8,671744,null,0,Yh,[[8,null],[6,hh],[8,null],[6,mh]],{model:[0,"model"]},{update:"ngModelChange"}),li(2048,null,Sh,null,[Yh]),oi(10,16384,null,0,Uh,[[4,Sh]],null,null),(t()(),Ii(-1,null,["\nStarting socket:\n"])),(t()(),go(12,0,[["socketStartIdTextBox",1]],null,7,"input",[["required",""],["type","text"]],[[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,"keyup.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==Go(t,13)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Go(t,13).onTouched()&&r),"compositionstart"===e&&(r=!1!==Go(t,13)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Go(t,13)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.socketStartId=n)&&r),"keyup.enter"===e&&(r=!1!==o.processEntry()&&r),r},null,null)),oi(13,16384,null,0,wh,[cn,pn,[2,_h]],null,null),oi(14,16384,null,0,Xh,[],{required:[0,"required"]},null),li(1024,null,hh,function(t){return[t]},[Xh]),li(1024,null,mh,function(t){return[t]},[wh]),oi(17,671744,null,0,Yh,[[8,null],[6,hh],[8,null],[6,mh]],{model:[0,"model"]},{update:"ngModelChange"}),li(2048,null,Sh,null,[Yh]),oi(19,16384,null,0,Uh,[[4,Sh]],null,null),(t()(),go(20,0,null,null,1,"button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.processEntry()&&r),r},null,null)),(t()(),Ii(-1,null,["Refresh"])),(t()(),go(22,0,null,null,7,"div",[],null,null,null,null,null)),(t()(),go(23,0,null,null,6,"table",[],null,null,null,null,null)),(t()(),go(24,0,null,null,5,"tbody",[],null,null,null,null,null)),(t()(),go(25,0,null,null,2,"tr",[],null,null,null,null,null)),(t()(),go(26,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Sockets"])),(t()(),vo(16777216,null,null,1,null,Jf)),oi(29,802816,null,0,Mu,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),vo(16777216,null,null,1,null,Yf)),oi(31,16384,null,0,Lu,[bn,mn],{ngIf:[0,"ngIf"]},null),(t()(),vo(16777216,null,null,1,null,Xf)),oi(33,16384,null,0,Lu,[bn,mn],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,5,0,""),t(e,8,0,n.serverId),t(e,14,0,""),t(e,17,0,n.socketStartId),t(e,29,0,n.sockets),t(e,31,0,n.nextSocketId),t(e,33,0,!n.nextSocketId)},function(t,e){t(e,3,0,Go(e,5).required?"":null,Go(e,10).ngClassUntouched,Go(e,10).ngClassTouched,Go(e,10).ngClassPristine,Go(e,10).ngClassDirty,Go(e,10).ngClassValid,Go(e,10).ngClassInvalid,Go(e,10).ngClassPending),t(e,12,0,Go(e,14).required?"":null,Go(e,19).ngClassUntouched,Go(e,19).ngClassTouched,Go(e,19).ngClassPristine,Go(e,19).ngClassDirty,Go(e,19).ngClassValid,Go(e,19).ngClassInvalid,Go(e,19).ngClassPending)})}var ed=Vo("app-server-sockets",$f,function(t){return Pi(0,[(t()(),go(0,0,null,null,1,"app-server-sockets",[],null,null,null,td,Qf)),oi(1,114688,null,0,$f,[$c,Vp,nf],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),nd=function(){function t(){}return t.prototype.ngOnInit=function(){},t}(),rd=Ur({encapsulation:0,styles:[[""]],data:{}});function od(t){return Pi(0,[(t()(),go(0,0,null,null,7,"div",[],null,null,null,null,null)),(t()(),go(1,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Java notes:"])),(t()(),go(3,0,null,null,4,"ul",[],null,null,null,null,null)),(t()(),go(4,0,null,null,1,"li",[],null,null,null,null,null)),(t()(),Ii(-1,null,["InProcessTransport is not a real socket, so in process servers and channels will not provide socket level stats. If you try to load an InProcesTransport, channelz will report that the socket is not found. This is normal. Use the provided channel, subchannel, or server level stats instead."])),(t()(),go(6,0,null,null,1,"li",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Not all stats specified by channelz.proto are exported yet, but they will be soon."]))],null,null)}var id=Vo("app-help",nd,function(t){return Pi(0,[(t()(),go(0,0,null,null,1,"app-help",[],null,null,null,od,rd)),oi(1,114688,null,0,nd,[],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),ld=Ur({encapsulation:0,styles:[[""]],data:{}});function ud(t){return Pi(0,[(t()(),go(0,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Channelz"])),(t()(),go(2,0,null,null,49,"nav",[],null,null,null,null,null)),(t()(),go(3,0,null,null,5,"a",[["routerLink","/channelz/servers"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,4).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(4,671744,[[2,4]],0,jp,[Vp,$c,wu],{routerLink:[0,"routerLink"]},null),oi(5,1720320,null,2,Up,[Vp,pn,cn,_n],{routerLinkActive:[0,"routerLinkActive"]},null),wi(603979776,1,{links:1}),wi(603979776,2,{linksWithHrefs:1}),(t()(),Ii(-1,null,["Servers"])),(t()(),Ii(-1,null,["\xa0\xa0 "])),(t()(),go(10,0,null,null,5,"a",[["routerLink","/channelz/topchannels"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,11).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(11,671744,[[4,4]],0,jp,[Vp,$c,wu],{routerLink:[0,"routerLink"]},null),oi(12,1720320,null,2,Up,[Vp,pn,cn,_n],{routerLinkActive:[0,"routerLinkActive"]},null),wi(603979776,3,{links:1}),wi(603979776,4,{linksWithHrefs:1}),(t()(),Ii(-1,null,["TopChannels"])),(t()(),Ii(-1,null,["\xa0\xa0 "])),(t()(),go(17,0,null,null,5,"a",[["routerLink","/channelz/serversockets"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,18).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(18,671744,[[6,4]],0,jp,[Vp,$c,wu],{routerLink:[0,"routerLink"]},null),oi(19,1720320,null,2,Up,[Vp,pn,cn,_n],{routerLinkActive:[0,"routerLinkActive"]},null),wi(603979776,5,{links:1}),wi(603979776,6,{linksWithHrefs:1}),(t()(),Ii(-1,null,["Server sockets"])),(t()(),Ii(-1,null,["\xa0\xa0 "])),(t()(),go(24,0,null,null,5,"a",[["routerLink","/channelz/channel"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,25).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(25,671744,[[8,4]],0,jp,[Vp,$c,wu],{routerLink:[0,"routerLink"]},null),oi(26,1720320,null,2,Up,[Vp,pn,cn,_n],{routerLinkActive:[0,"routerLinkActive"]},null),wi(603979776,7,{links:1}),wi(603979776,8,{linksWithHrefs:1}),(t()(),Ii(-1,null,["Channel"])),(t()(),Ii(-1,null,["\xa0\xa0 "])),(t()(),go(31,0,null,null,5,"a",[["routerLink","/channelz/subchannel"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,32).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(32,671744,[[10,4]],0,jp,[Vp,$c,wu],{routerLink:[0,"routerLink"]},null),oi(33,1720320,null,2,Up,[Vp,pn,cn,_n],{routerLinkActive:[0,"routerLinkActive"]},null),wi(603979776,9,{links:1}),wi(603979776,10,{linksWithHrefs:1}),(t()(),Ii(-1,null,["Subchannel"])),(t()(),Ii(-1,null,["\xa0\xa0 "])),(t()(),go(38,0,null,null,5,"a",[["routerLink","/channelz/socket"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,39).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(39,671744,[[12,4]],0,jp,[Vp,$c,wu],{routerLink:[0,"routerLink"]},null),oi(40,1720320,null,2,Up,[Vp,pn,cn,_n],{routerLinkActive:[0,"routerLinkActive"]},null),wi(603979776,11,{links:1}),wi(603979776,12,{linksWithHrefs:1}),(t()(),Ii(-1,null,["Socket"])),(t()(),Ii(-1,null,["\xa0\xa0 "])),(t()(),go(45,0,null,null,5,"a",[["routerLink","/channelz/help"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,46).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(46,671744,[[14,4]],0,jp,[Vp,$c,wu],{routerLink:[0,"routerLink"]},null),oi(47,1720320,null,2,Up,[Vp,pn,cn,_n],{routerLinkActive:[0,"routerLinkActive"]},null),wi(603979776,13,{links:1}),wi(603979776,14,{linksWithHrefs:1}),(t()(),Ii(-1,null,["Help"])),(t()(),Ii(-1,null,["\xa0\xa0\n"])),(t()(),go(52,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),oi(53,212992,null,0,Hp,[Fp,bn,Ae,[8,null],_n],null,null)],function(t,e){t(e,4,0,"/channelz/servers"),t(e,5,0,"active"),t(e,11,0,"/channelz/topchannels"),t(e,12,0,"active"),t(e,18,0,"/channelz/serversockets"),t(e,19,0,"active"),t(e,25,0,"/channelz/channel"),t(e,26,0,"active"),t(e,32,0,"/channelz/subchannel"),t(e,33,0,"active"),t(e,39,0,"/channelz/socket"),t(e,40,0,"active"),t(e,46,0,"/channelz/help"),t(e,47,0,"active"),t(e,53,0)},function(t,e){t(e,3,0,Go(e,4).target,Go(e,4).href),t(e,10,0,Go(e,11).target,Go(e,11).href),t(e,17,0,Go(e,18).target,Go(e,18).href),t(e,24,0,Go(e,25).target,Go(e,25).href),t(e,31,0,Go(e,32).target,Go(e,32).href),t(e,38,0,Go(e,39).target,Go(e,39).href),t(e,45,0,Go(e,46).target,Go(e,46).href)})}var ad=Vo("app-root",mu,function(t){return Pi(0,[(t()(),go(0,0,null,null,1,"app-root",[],null,null,null,ud,ld)),oi(1,49152,null,0,mu,[],null,null)],null,null)},{},{},[]),sd=function(){},cd=function(){},pd=function(){function t(t){var e=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){e.headers=new Map,t.split("\n").forEach(function(t){var n=t.indexOf(":");if(n>0){var r=t.slice(0,n),o=r.toLowerCase(),i=t.slice(n+1).trim();e.maybeSetNormalizedName(r,o),e.headers.has(o)?e.headers.get(o).push(i):e.headers.set(o,[i])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(o,r),e.maybeSetNormalizedName(n,o))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,a(n)),this.headers.set(e,r);break;case"d":var o=t.value;if(o){var i=this.headers.get(e);if(!i)return;0===(i=i.filter(function(t){return-1===o.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),hd=function(){function t(){}return t.prototype.encodeKey=function(t){return fd(t)},t.prototype.encodeValue=function(t){return fd(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function fd(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var dd=function(){function t(t){void 0===t&&(t={});var e,n,r,o=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new hd,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,r=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),o=u(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),i=o[0],l=o[1],a=r.get(i)||[];a.push(l),r.set(i,a)}),r)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];o.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],o=r.indexOf(e.value);-1!==o&&r.splice(o,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=null)},t}();function vd(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function gd(t){return"undefined"!=typeof Blob&&t instanceof Blob}function yd(t){return"undefined"!=typeof FormData&&t instanceof FormData}var md=function(){function t(t,e,n,r){var o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new pd),this.params){var i=this.params.toString();if(0===i.length)this.urlWithParams=e;else{var l=e.indexOf("?");this.urlWithParams=e+(-1===l?"?":l=200&&this.status<300}}(),wd=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=bd.ResponseHeader,n}return o(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(_d),Cd=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=bd.Response,n.body=void 0!==e.body?e.body:null,n}return o(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(_d),xd=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return o(e,t),e}(_d);function Ed(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var kd=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r,o=this;if(void 0===n&&(n={}),t instanceof md)r=t;else{var i;i=n.headers instanceof pd?n.headers:new pd(n.headers);var l=void 0;n.params&&(l=n.params instanceof dd?n.params:new dd({fromObject:n.params})),r=new md(t,e,void 0!==n.body?n.body:null,{headers:i,params:l,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var u=Wu(r).pipe($u(function(t){return o.handler.handle(t)}));if(t instanceof md||"events"===n.observe)return u;var a=u.pipe(Qu(function(t){return t instanceof Cd}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return a.pipe(B(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return a.pipe(B(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return a.pipe(B(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return a.pipe(B(function(t){return t.body}))}case"response":return a;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new dd).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,Ed(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,Ed(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,Ed(n,e))},t}(),Sd=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),Td=new ft("HTTP_INTERCEPTORS"),Id=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}(),Ad=/^\)\]\}',?\n/,Od=function(){},Pd=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),Rd=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new O(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var o=t.detectContentTypeHeader();null!==o&&r.setRequestHeader("Content-Type",o)}if(t.responseType){var i=t.responseType.toLowerCase();r.responseType="json"!==i?i:"text"}var l=t.serializeBody(),u=null,a=function(){if(null!==u)return u;var e=1223===r.status?204:r.status,n=r.statusText||"OK",o=new pd(r.getAllResponseHeaders()),i=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return u=new wd({headers:o,status:e,statusText:n,url:i})},s=function(){var e=a(),o=e.headers,i=e.status,l=e.statusText,u=e.url,s=null;204!==i&&(s=void 0===r.response?r.responseText:r.response),0===i&&(i=s?200:0);var c=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof s){var p=s;s=s.replace(Ad,"");try{s=""!==s?JSON.parse(s):null}catch(t){s=p,c&&(c=!1,s={error:t,text:s})}}c?(n.next(new Cd({body:s,headers:o,status:i,statusText:l,url:u||void 0})),n.complete()):n.error(new xd({error:s,headers:o,status:i,statusText:l,url:u||void 0}))},c=function(t){var e=new xd({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(e)},p=!1,h=function(e){p||(n.next(a()),p=!0);var o={type:bd.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(o.total=e.total),"text"===t.responseType&&r.responseText&&(o.partialText=r.responseText),n.next(o)},f=function(t){var e={type:bd.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",s),r.addEventListener("error",c),t.reportProgress&&(r.addEventListener("progress",h),null!==l&&r.upload&&r.upload.addEventListener("progress",f)),r.send(l),n.next({type:bd.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",s),t.reportProgress&&(r.removeEventListener("progress",h),null!==l&&r.upload&&r.upload.removeEventListener("progress",f)),r.abort()}})},t}(),Nd=new ft("XSRF_COOKIE_NAME"),Vd=new ft("XSRF_HEADER_NAME"),Dd=function(){},Md=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Vu(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}(),jd=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t}(),Ld=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(Td,[]);this.chain=e.reduceRight(function(t,e){return new Sd(t,e)},this.backend)}return this.chain.handle(t)},t}(),Ud=function(){function t(){}return t.disable=function(){return{ngModule:t,providers:[{provide:jd,useClass:Id}]}},t.withOptions=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[e.cookieName?{provide:Nd,useValue:e.cookieName}:[],e.headerName?{provide:Vd,useValue:e.headerName}:[]]}},t}(),zd=function(){},Fd=function(){},Hd=function(t,e,n){return new Ll(yu,[mu],function(t){return function(t){for(var e={},n=[],r=!1,o=0;o=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),l=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)l.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return l}function a(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(q);function Y(t){return t}function X(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),$(Y,t)}var tt=function(t){function e(){var n=t.call(this,"object unsubscribed")||this;return n.name="ObjectUnsubscribedError",Object.setPrototypeOf(n,e.prototype),n}return o(e,t),e}(Error),et=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return o(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(w),nt=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return o(e,t),e}(x),rt=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return o(e,t),e.prototype[S]=function(){return new nt(this)},e.prototype.lift=function(t){var e=new ot(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new tt;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(x),at=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return o(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new w).add(this.source.subscribe(new ct(this.getSubject(),this))),t.closed?(this._connection=null,t=w.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return it()(this)},e}(O).prototype,st={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:at._subscribe},_isComplete:{value:at._isComplete,writable:!0},getSubject:{value:at.getSubject},connect:{value:at.connect},refCount:{value:at.refCount}},ct=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(nt);function pt(){return new rt}function ht(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}var ft=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==e?ht({providedIn:e.providedIn||"root",factory:e.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),dt="__parameters__";function gt(t,e,n){var r=function(t){return function(){for(var e=[],n=0;n ");else if("object"==typeof e){var o=[];for(var i in e)if(e.hasOwnProperty(i)){var l=e[i];o.push(i+":"+("string"==typeof l?JSON.stringify(l):kt(l)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(Gt,"\n ")}function Qt(t,e){return new Error($t(t,e))}var Jt=void 0;function Yt(t){var e=Jt;return Jt=t,e}String;var Xt=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t}({}),te=new function(t){this.full="6.0.3",this.major="6.0.3".split(".")[0],this.minor="6.0.3".split(".")[1],this.patch="6.0.3".split(".").slice(2).join(".")}("6.0.3"),ee="ngDebugContext",ne="ngOriginalError",re="ngErrorLogger";function oe(t){return t[ee]}function ie(t){return t[ne]}function le(t){for(var e=[],n=1;n0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==o}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),Ze=function(){function t(){this._applications=new Map,$e.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),$e.findTestabilityInTree(this,t,e)},t.ctorParameters=function(){return[]},t}(),$e=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),Qe=!0,Je=!1,Ye=new ft("AllowMultipleToken");function Xe(){return Je=!0,Qe}var tn=function(t,e){this.name=t,this.token=e};function en(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,o=new ft(r);return function(e){void 0===e&&(e=[]);var i=nn();if(!i||i.injector.get(Ye,!1))if(t)t(n.concat(e).concat({provide:o,useValue:!0}));else{var l=n.concat(e).concat({provide:o,useValue:!0});!function(t){if(Ge&&!Ge.destroyed&&!Ge.injector.get(Ye,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ge=t.get(rn);var e=t.get(ve,null);e&&e.forEach(function(t){return t()})}(jt.create({providers:l,name:r}))}return function(t){var e=nn();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(o)}}function nn(){return Ge&&!Ge.destroyed?Ge:null}var rn=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,o="noop"===(n=e?e.ngZone:void 0)?new Ke:("zone.js"===n?void 0:n)||new Ue({enableLongStackTrace:Xe()}),i=[{provide:Ue,useValue:o}];return o.run(function(){var e=jt.create({providers:i,parent:r.injector,name:t.moduleType.name}),n=t.create(e),l=n.injector.get(ue,null);if(!l)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return un(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(t){l.handleError(t)}})}),function(t,e,o){try{var i=((l=n.injector.get(he)).runInitializers(),l.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return se(i)?i.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):i}catch(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}var l}(l,o)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.injector.get(Ce),o=on({},e);return r.createCompiler([o]).compileModuleAsync(t).then(function(t){return n.bootstrapModuleFactory(t,o)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(ln);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+kt(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function on(t,e){return Array.isArray(e)?e.reduce(on,t):i({},t,e)}var ln=function(){function t(t,e,n,r,o,i){var l=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Xe(),this._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run(function(){l.tick()})}});var u=new O(function(t){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular(function(){t.next(l._stable),t.complete()})}),a=new O(function(t){var e;l._zone.runOutsideAngular(function(){e=l._zone.onStable.subscribe(function(){Ue.assertNotInAngularZone(),xt(function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,t.next(!0))})})});var n=l._zone.onUnstable.subscribe(function(){Ue.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof O?t[0]:X(n)(W(t,r))}(u,a.pipe(function(t){return it()((e=pt,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,st);return r.source=t,r.subjectFactory=n,r})(t));var e}))}return t.prototype.bootstrap=function(t,e){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=t instanceof Se?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var o=n instanceof Pe?null:this._injector.get(Re),i=n.create(jt.NULL,[],e||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var l=i.injector.get(We,null);return l&&i.injector.get(Ze).registerApplication(i.location.nativeElement,l),this._loadComponent(i),Xe()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},t.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,je(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;un(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(me,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),un(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=Me("ApplicationRef#tick()"),t}();function un(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var an=function(){},sn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),cn=function(){},pn=function(t){this.nativeElement=t},hn=function(){},fn=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Le,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[St()]=function(){return this._results[St()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),dn=function(){},gn={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},vn=function(){function t(t,e){this._compiler=t,this._config=e||gn}return t.prototype.load=function(t){return this._compiler instanceof we?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=u(t.split("#"),2),o=r[0],i=r[1];return void 0===i&&(i="default"),n("crnd")(o).then(function(t){return t[i]}).then(function(t){return yn(t,o,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=u(t.split("#"),2),r=e[0],o=e[1],i="NgFactory";return void 0===o&&(o="default",i=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[o+i]}).then(function(t){return yn(t,r,o)})},t}();function yn(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var mn=function(){},bn=function(){},_n=function(){},wn=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof Cn?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),Cn=function(t){function e(e,n,r){var o=t.call(this,e,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return o(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,o=this.childNodes.indexOf(t);-1!==o&&((n=this.childNodes).splice.apply(n,a([o+1,0],e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return function t(e,n,r){e.childNodes.forEach(function(e){e instanceof Cn&&(n(e)&&r.push(e),t(e,n,r))})}(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return function t(e,n,r){e instanceof Cn&&e.childNodes.forEach(function(e){n(e)&&r.push(e),e instanceof Cn&&t(e,n,r)})}(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(wn),Sn=new Map;function xn(t){return Sn.get(t)||null}function En(t){Sn.set(t.nativeNode,t)}function kn(t,e){var n=An(t),r=An(e);return n&&r?function(t,e,n){for(var r=t[St()](),o=e[St()]();;){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}}(t,e,kn):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||Et(t,e)}var Tn=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),In=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function An(t){return!!On(t)&&(Array.isArray(t)||!(t instanceof Map)&&St()in t)}function On(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var Pn=function(){function t(){}return t.prototype.supports=function(t){return An(t)},t.prototype.create=function(t){return new Nn(t)},t}(),Rn=function(t,e){return e},Nn=function(){function t(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Rn}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,o=null;e||n;){var i=!n||e&&e.currentIndex',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t=""+t+"";try{t=encodeURI(t)}catch(t){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(null);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(t){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0")}else this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();sr.hasOwnProperty(e)&&!ir.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(vr(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),dr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gr=/([^\#-~ |!])/g;function vr(t){return t.replace(/&/g,"&").replace(dr,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(gr,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function yr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var mr=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"),br=/^url\(([^)]+)\)$/,_r=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({}),wr=function(){};function Cr(t,e,n){var r=t.state,o=1792&r;return o===e?(t.state=-1793&r|n,t.initIndex=-1,!0):o===n}function Sr(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function xr(t,e){return t.nodes[e]}function Er(t,e){return t.nodes[e]}function kr(t,e){return t.nodes[e]}function Tr(t,e){return t.nodes[e]}function Ir(t,e){return t.nodes[e]}var Ar={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 Or(t,e,n,r){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(t,e){var n=new Error(t);return Pr(n,e),n}(o,t)}function Pr(t,e){t[ee]=e,t[re]=e.logError.bind(e)}function Rr(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}var Nr=function(){},Vr=new Map;function Dr(t){var e=Vr.get(t);return e||(e=kt(t)+"_"+Vr.size,Vr.set(t,e)),e}function Mr(t,e,n,r){if(Tn.isWrapped(r)){r=Tn.unwrap(r);var o=t.def.nodes[e].bindingIndex+n,i=Tn.unwrap(t.oldValues[o]);t.oldValues[o]=new Tn(i)}return r}var jr="$$undefined",Lr="$$empty";function Ur(t){return{id:jr,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}var zr=0;function Fr(t,e,n,r){return!(!(2&t.state)&&Et(t.oldValues[e.bindingIndex+n],r))}function Hr(t,e,n,r){return!!Fr(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function qr(t,e,n,r){var o=t.oldValues[e.bindingIndex+n];if(1&t.state||!kn(o,r)){var i=e.bindings[n].name;throw Or(Ar.createDebugContext(t,e.nodeIndex),i+": "+o,i+": "+r,0!=(1&t.state))}}function Br(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function Gr(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function Kr(t,e,n,r){try{return Br(33554432&t.def.nodes[e].flags?Er(t,e).componentView:t),Ar.handleEvent(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}function Wr(t){return t.parent?Er(t.parent,t.parentNodeDef.nodeIndex):null}function Zr(t){return t.parent?t.parentNodeDef.parent:null}function $r(t,e){switch(201347067&e.flags){case 1:return Er(t,e.nodeIndex).renderElement;case 2:return xr(t,e.nodeIndex).renderText}}function Qr(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function Jr(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function Yr(t){return 1<-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var s=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:e.token.ngInjectableDef.factory,deps:[],index:s,token:e.token},t._providers[s]=wo,t._providers[s]=To(t,t._def.providersByKey[e.tokenKey])}return t._parent.get(e.token,n)}finally{Yt(i)}}function To(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(ko(t,n[0]));case 2:return new e(ko(t,n[0]),ko(t,n[1]));case 3:return new e(ko(t,n[0]),ko(t,n[1]),ko(t,n[2]));default:for(var o=new Array(r),i=0;i=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,Ro(n,e),Ar.dirtyParentQueries(r),Oo(r),r}function Ao(t,e,n){var r=e?$r(e,e.def.lastRenderRootNode):t.renderElement;oo(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Oo(t){oo(t,3,null,null,void 0)}function Po(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Ro(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var No=new Object;function Vo(t,e,n,r,o,i){return new Do(t,e,n,r,o,i)}var Do=function(t){function e(e,n,r,o,i,l){var u=t.call(this)||this;return u.selector=e,u.componentType=n,u._inputs=o,u._outputs=i,u.ngContentSelectors=l,u.viewDefFactory=r,u}return o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var o=ro(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,l=Ar.createRootView(t,e||[],n,o,r,No),u=kr(l,i).instance;return n&&l.renderer.setAttribute(Er(l,0).renderElement,"ng-version",te.full),new Mo(l,new zo(l),u)},e}(Se),Mo=function(t){function e(e,n,r){var o=t.call(this)||this;return o._view=e,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return o(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new pn(Er(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Bo(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(function(){});function jo(t,e,n){return new Lo(t,e,n)}var Lo=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new pn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Bo(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=Zr(t),t=t.parent;return t?new Bo(t,e):new Bo(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Io(this._data,t);Ar.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new zo(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,o){var i=n||this.parentInjector;o||t instanceof Pe||(o=i.get(Re));var l=t.create(i,r,void 0,o);return this.insert(l.hostView,e),l},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,l=t;return o=l._view,i=(n=this._data).viewContainer._embeddedViews,null!==(r=e)&&void 0!==r||(r=i.length),o.viewContainerParent=this._view,Po(i,r,o),function(t,e){var n=Wr(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,o),Ar.dirtyParentQueries(o),Ao(n,r>0?i[r-1]:null,o),l.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,l,u=this._embeddedViews.indexOf(t._view);return o=e,l=(i=(n=this._data).viewContainer._embeddedViews)[r=u],Ro(i,r),null==o&&(o=i.length),Po(i,o,l),Ar.dirtyParentQueries(l),Oo(l),Ao(n,o>0?i[o-1]:null,l),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Io(this._data,t);e&&Ar.destroyView(e)},t.prototype.detach=function(t){var e=Io(this._data,t);return e?new zo(e):null},t}();function Uo(t){return new zo(t)}var zo=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return oo(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){Br(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{Ar.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Ar.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Ar.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Oo(this._view),Ar.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function Fo(t,e){return new Ho(t,e)}var Ho=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return o(e,t),e.prototype.createEmbeddedView=function(t){return new zo(Ar.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new pn(Er(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(mn);function qo(t,e){return new Bo(t,e)}var Bo=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=jt.THROW_IF_NOT_FOUND),Ar.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Dr(t)},e)},t}();function Go(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Er(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return xr(t,n.nodeIndex).renderText;if(20240&n.flags)return kr(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function Ko(t){return new Wo(t.renderer)}var Wo=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=u(co(e),2),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,r=e.provider;switch(201347067&e.flags){case 512:return fi(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(gi(t,e,n,o[0]));case 2:return r(gi(t,e,n,o[0]),gi(t,e,n,o[1]));case 3:return r(gi(t,e,n,o[0]),gi(t,e,n,o[1]),gi(t,e,n,o[2]));default:for(var l=Array(i),u=0;u0)s=g,Ri(g)||(c=g);else for(;s&&d===s.nodeIndex+s.childCount;){var m=s.parent;m&&(m.childFlags|=s.childFlags,m.childMatchedQueries|=s.childMatchedQueries),c=(s=m)&&Ri(s)?s.renderParent:s}}return{factory:null,nodeFlags:l,rootNodeFlags:u,nodeMatchedQueries:a,flags:t,nodes:e,updateDirectives:n||Nr,updateRenderer:r||Nr,handleEvent:function(t,n,r,o){return e[n].element.handleEvent(t,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:f}}function Ri(t){return 0!=(1&t.flags)&&null===t.element.name}function Ni(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var o=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=o&&e.nodeIndex+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function Vi(t,e,n,r){var o=ji(t.root,t.renderer,t,e,n);return Li(o,t.component,r),Ui(o),o}function Di(t,e,n){var r=ji(t,t.renderer,null,null,e);return Li(r,n,n),Ui(r),r}function Mi(t,e,n,r){var o,i=e.element.componentRendererType;return o=i?t.root.rendererFactory.createRenderer(r,i):t.root.renderer,ji(t.root,o,t,e.element.componentProvider,n)}function ji(t,e,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:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:l,initIndex:-1}}function Li(t,e,n){t.component=e,t.context=n}function Ui(t){var e;Qr(t)&&(e=Er(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,o=0;o0&&_o(t,e,0,n)&&(f=!0),h>1&&_o(t,e,1,r)&&(f=!0),h>2&&_o(t,e,2,o)&&(f=!0),h>3&&_o(t,e,3,i)&&(f=!0),h>4&&_o(t,e,4,l)&&(f=!0),h>5&&_o(t,e,5,u)&&(f=!0),h>6&&_o(t,e,6,a)&&(f=!0),h>7&&_o(t,e,7,s)&&(f=!0),h>8&&_o(t,e,8,c)&&(f=!0),h>9&&_o(t,e,9,p)&&(f=!0),f}(t,e,n,r,o,i,l,u,a,s,c,p);case 2:return function(t,e,n,r,o,i,l,u,a,s,c,p){var h=!1,f=e.bindings,d=f.length;if(d>0&&Hr(t,e,0,n)&&(h=!0),d>1&&Hr(t,e,1,r)&&(h=!0),d>2&&Hr(t,e,2,o)&&(h=!0),d>3&&Hr(t,e,3,i)&&(h=!0),d>4&&Hr(t,e,4,l)&&(h=!0),d>5&&Hr(t,e,5,u)&&(h=!0),d>6&&Hr(t,e,6,a)&&(h=!0),d>7&&Hr(t,e,7,s)&&(h=!0),d>8&&Hr(t,e,8,c)&&(h=!0),d>9&&Hr(t,e,9,p)&&(h=!0),h){var g=e.text.prefix;d>0&&(g+=Oi(n,f[0])),d>1&&(g+=Oi(r,f[1])),d>2&&(g+=Oi(o,f[2])),d>3&&(g+=Oi(i,f[3])),d>4&&(g+=Oi(l,f[4])),d>5&&(g+=Oi(u,f[5])),d>6&&(g+=Oi(a,f[6])),d>7&&(g+=Oi(s,f[7])),d>8&&(g+=Oi(c,f[8])),d>9&&(g+=Oi(p,f[9]));var v=xr(t,e.nodeIndex).renderText;t.renderer.setValue(v,g)}return h}(t,e,n,r,o,i,l,u,a,s,c,p);case 16384:return function(t,e,n,r,o,i,l,u,a,s,c,p){var h=kr(t,e.nodeIndex),f=h.instance,d=!1,g=void 0,v=e.bindings.length;return v>0&&Fr(t,e,0,n)&&(d=!0,g=yi(t,h,e,0,n,g)),v>1&&Fr(t,e,1,r)&&(d=!0,g=yi(t,h,e,1,r,g)),v>2&&Fr(t,e,2,o)&&(d=!0,g=yi(t,h,e,2,o,g)),v>3&&Fr(t,e,3,i)&&(d=!0,g=yi(t,h,e,3,i,g)),v>4&&Fr(t,e,4,l)&&(d=!0,g=yi(t,h,e,4,l,g)),v>5&&Fr(t,e,5,u)&&(d=!0,g=yi(t,h,e,5,u,g)),v>6&&Fr(t,e,6,a)&&(d=!0,g=yi(t,h,e,6,a,g)),v>7&&Fr(t,e,7,s)&&(d=!0,g=yi(t,h,e,7,s,g)),v>8&&Fr(t,e,8,c)&&(d=!0,g=yi(t,h,e,8,c,g)),v>9&&Fr(t,e,9,p)&&(d=!0,g=yi(t,h,e,9,p,g)),g&&f.ngOnChanges(g),65536&e.flags&&Sr(t,256,e.nodeIndex)&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),d}(t,e,n,r,o,i,l,u,a,s,c,p);case 32:case 64:case 128:return function(t,e,n,r,o,i,l,u,a,s,c,p){var h=e.bindings,f=!1,d=h.length;if(d>0&&Hr(t,e,0,n)&&(f=!0),d>1&&Hr(t,e,1,r)&&(f=!0),d>2&&Hr(t,e,2,o)&&(f=!0),d>3&&Hr(t,e,3,i)&&(f=!0),d>4&&Hr(t,e,4,l)&&(f=!0),d>5&&Hr(t,e,5,u)&&(f=!0),d>6&&Hr(t,e,6,a)&&(f=!0),d>7&&Hr(t,e,7,s)&&(f=!0),d>8&&Hr(t,e,8,c)&&(f=!0),d>9&&Hr(t,e,9,p)&&(f=!0),f){var g=Tr(t,e.nodeIndex),v=void 0;switch(201347067&e.flags){case 32:v=new Array(h.length),d>0&&(v[0]=n),d>1&&(v[1]=r),d>2&&(v[2]=o),d>3&&(v[3]=i),d>4&&(v[4]=l),d>5&&(v[5]=u),d>6&&(v[6]=a),d>7&&(v[7]=s),d>8&&(v[8]=c),d>9&&(v[9]=p);break;case 64:v={},d>0&&(v[h[0].name]=n),d>1&&(v[h[1].name]=r),d>2&&(v[h[2].name]=o),d>3&&(v[h[3].name]=i),d>4&&(v[h[4].name]=l),d>5&&(v[h[5].name]=u),d>6&&(v[h[6].name]=a),d>7&&(v[h[7].name]=s),d>8&&(v[h[8].name]=c),d>9&&(v[h[9].name]=p);break;case 128:var y=n;switch(d){case 1:v=y.transform(n);break;case 2:v=y.transform(r);break;case 3:v=y.transform(r,o);break;case 4:v=y.transform(r,o,i);break;case 5:v=y.transform(r,o,i,l);break;case 6:v=y.transform(r,o,i,l,u);break;case 7:v=y.transform(r,o,i,l,u,a);break;case 8:v=y.transform(r,o,i,l,u,a,s);break;case 9:v=y.transform(r,o,i,l,u,a,s,c);break;case 10:v=y.transform(r,o,i,l,u,a,s,c,p)}}g.value=v}return f}(t,e,n,r,o,i,l,u,a,s,c,p);default:throw"unreachable"}}(t,e,r,o,i,l,u,s,c,p,h,f):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,o=0;o0&&qr(t,e,0,n),h>1&&qr(t,e,1,r),h>2&&qr(t,e,2,o),h>3&&qr(t,e,3,i),h>4&&qr(t,e,4,l),h>5&&qr(t,e,5,u),h>6&&qr(t,e,6,a),h>7&&qr(t,e,7,s),h>8&&qr(t,e,8,c),h>9&&qr(t,e,9,p)}(t,e,r,o,i,l,u,a,s,c,p,h):function(t,e,n){for(var r=0;r0){var i=new Set(t.modules);ul.forEach(function(e,r){if(i.has(r.ngInjectableDef.providedIn)){var o={token:r,flags:e.flags|(n?4096:0),deps:to(e.deps),value:e.value,index:t.providers.length};t.providers.push(o),t.providersByKey[Dr(r)]=o}})}}(t=t.factory(function(){return Nr})),t):t}(r))}var ll=new Map,ul=new Map,al=new Map;function sl(t){ll.set(t.token,t),"function"==typeof t.token&&t.token.ngInjectableDef&&"function"==typeof t.token.ngInjectableDef.providedIn&&ul.set(t.token,t)}function cl(t,e){var n=ro(ro(e.viewDefFactory).nodes[0].element.componentView);al.set(t,n)}function pl(){ll.clear(),ul.clear(),al.clear()}function hl(t){if(0===ll.size)return t;var e=function(t){for(var e=[],n=null,r=0;r=Zl.length?Zl[u]=null:d.tNode=Zl[u],Wl?($l=null,Kl.view!==ru&&2!==Kl.type||(ngDevMode&&zl(Kl.child,"previousOrParentNode's child should not have been set."),Kl.child=d)):Kl&&(ngDevMode&&zl(Kl.next,"previousOrParentNode's next property should not have been set "+u+"."),Kl.next=d,Kl.dynamicLContainerNode&&(Kl.dynamicLContainerNode.next=d))),Kl=d,Wl=!0,t=d,y=1),l=iu(t.data,t),e(y,n),uu(),pu()}finally{lu(l),Wl=g,Kl=v}return t}function pu(){for(var t=ru.child;null!==t;t=t.next)if(0!==t.dynamicViewCount&&t.views)for(var e=t,n=0;n"}(r))),ngDevMode&&Fl(o.data,"Component's host node should have an LView attached.");var i,l=o.data;8==(8&l.flags)&&6&l.flags&&(ngDevMode&&gu(t,Yl),du(l,o,ru.tView.directives[t],(i=Yl[t],Array.isArray(i)?i[0]:i)))}function fu(t){var e=vu(t);ngDevMode&&Fl(e.data,"Component host node should be attached to an LView"),du(e.data,e,e.view.tView.directives[e.tNode.flags>>13],t)}function du(t,e,n,r){var o=iu(t,e),i=n.template;try{i(1&t.flags?3:2,r),uu(),pu()}finally{lu(o)}}function gu(t,e){null==e&&(e=Jl),t>=(e?e.length:0)&&Hl("index expected to be a valid data index")}function vu(t){ngDevMode&&Fl(t,"expecting component got null");var e=t[tu];return ngDevMode&&Fl(t,"object is not a component"),e}o(function(t,e,n){var r=Xl.call(this,t.data,n)||this;return r._lViewNode=t,r},Xl=function(){function t(t,e){this._view=t,this.context=e}return t.prototype._setComponentContext=function(t,e){this._view=t,this.context=e},t.prototype.destroy=function(){},t.prototype.onDestroy=function(t){},t.prototype.markForCheck=function(){!function(t){for(var e=t;null!=e.parent;)e.flags|=4,e=e.parent;var n,r;e.flags|=4,ngDevMode&&Fl(e.context,"rootContext"),(n=e.context).clean==eu&&(n.clean=new Promise(function(t){return r=t}),n.scheduler(function(){var t,e;e=vu((t=function(t){ngDevMode&&Fl(t,"component");for(var e=vu(t).view;e.parent;)e=e.parent;return e}(n.component)).context.component),ngDevMode&&Fl(e.data,"Component host node should be attached to an LView"),function(n,r,o,i){var l=iu(t,e);try{Gl.begin&&Gl.begin(),su(),au(nu),hu(0,0)}finally{Gl.end&&Gl.end(),lu(l)}}(),r(null),n.clean=eu}))}(this._view)},t.prototype.detach=function(){this._view.flags&=-9},t.prototype.reattach=function(){this._view.flags|=8},t.prototype.detectChanges=function(){fu(this.context)},t.prototype.checkNoChanges=function(){!function(t){ou=!0;try{fu(t)}finally{ou=!1}}(this.context)},t}());var yu={production:!0,envoy_proxy_address:"http://localhost:9900"},mu=function(){},bu=function(){this.title="Channelz"},_u=function(){},wu=new ft("Location Initialized"),Cu=function(){},Su=new ft("appBaseHref"),xu=function(){function t(e){var n=this;this._subject=new Le,this._platformStrategy=e;var r=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(Eu(r)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.path(!0),pop:!0,state:t.state,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Eu(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",t,e)},t.prototype.replaceState=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)},t}();function Eu(t){return t.replace(/\/index.html$/,"")}var ku=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return o(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=xu.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+xu.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+xu.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(Cu),Tu=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return o(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return xu.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+xu.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+xu.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+xu.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(Cu),Iu=void 0,Au=["en",[["a","p"],["AM","PM"],Iu],[["AM","PM"],Iu,Iu],[["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"]],Iu,[["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"]],Iu,[["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}",Iu,"{1} 'at' {0}",Iu],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],Ou={},Pu=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),Ru=new ft("UseV4Plurals"),Nu=function(){},Vu=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return o(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return function(t){var e=t.toLowerCase().replace(/_/g,"-"),n=Ou[e];if(n)return n;var r=e.split("-")[0];if(n=Ou[r])return n;if("en"===r)return Au;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[18]}(e||this.locale)(t)){case Pu.Zero:return"zero";case Pu.One:return"one";case Pu.Two:return"two";case Pu.Few:return"few";case Pu.Many:return"many";default:return"other"}},e}(Nu);function Du(t,e){e=encodeURIComponent(e);try{for(var n=l(t.split(";")),r=n.next();!r.done;r=n.next()){var o=r.value,i=o.indexOf("="),a=u(-1==i?[o,""]:[o.slice(0,i),o.slice(i+1)],2),s=a[1];if(a[0].trim()===e)return decodeURIComponent(s)}}catch(t){c={error:t}}finally{try{r&&!r.done&&(p=n.return)&&p.call(n)}finally{if(c)throw c.error}}return null;var c,p}var Mu=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),ju=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){Xe()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((n=e).name||typeof n)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var n},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new Mu(null,e.ngForOf,-1,-1),o),l=new Lu(t,i);n.push(l)}else null==o?e._viewContainer.remove(r):(i=e._viewContainer.get(r),e._viewContainer.move(i,o),l=new Lu(t,i),n.push(l))});for(var r=0;r0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o=2;return function(r){return r.pipe(t?Qu(function(e,n){return t(e,n,r)}):Y,ta(1),n?ua(e):ia(function(){return new Zu}))}}function pa(t){return function(e){var n=new ha(t),r=e.lift(n);return n.caught=r}}var ha=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new fa(t,this.selector,this.caught))},t}(),fa=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.selector=n,o.caught=r,o}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(H(this,n))}},e}(q);function da(t,e){return function(n){return n.lift(new ga(t,e,n))}}var ga=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new va(t,this.predicate,this.thisArg,this.source))},t}(),va=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.source=o,i.index=0,i.thisArg=r||i,i}return o(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(x),ya=function(){function t(t){if(this.total=t,this.total<0)throw new Xu}return t.prototype.call=function(t,e){return e.subscribe(new ma(t,this.total))},t}(),ma=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return o(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(x);function ba(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Qu(function(e,n){return t(e,n,r)}):Y,function(t){return t.lift(new ya(1))},n?ua(e):ia(function(){return new Zu}))}}function _a(){return X(1)}function wa(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Ca(t,e,n))}}var Ca=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Sa(t,this.accumulator,this.seed,this.hasSeed))},t}(),Sa=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return o(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(x),xa=null;function Ea(){return xa}var ka,Ta={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Ia={"\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"},Aa={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"};_t.Node&&(ka=_t.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var Oa,Pa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){var t;t=new e,xa||(xa=t)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){var r;(r=t)[e].apply(r,a(n))},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return Ta},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return ka.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=this.getDefaultDocument().createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=this.getDefaultDocument().createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&this.isTemplateElement(t)?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;l||(l=t[i]=[]);var a=fs(e)?Zone.root:Zone.current;if(0===l.length)l.push({zone:a,handler:o});else{for(var s=!1,c=0;c-1},e}(Ka),_s=["alt","control","meta","shift"],ws={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Cs=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,r){var o=e.parseEventName(n),i=e.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Ea().onAndCancel(t,o.domEventName,i)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=e._normalizeKey(n.pop()),i="";if(_s.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=o,0!=n.length||0===o.length)return null;var l={};return l.domEventName=r,l.fullKey=i,l},e.getEventFullKey=function(t){var e="",n=Ea().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),_s.forEach(function(r){r!=n&&(0,ws[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,n,r){return function(o){e.getEventFullKey(o)===t&&r.runGuarded(function(){return n(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(Ka),Ss=function(){},xs=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return o(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case _r.NONE:return e;case _r.HTML:return e instanceof ks?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{or=or||new Yn(t);var r=e?String(e):"";n=or.getInertBodyElement(r);var o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=or.getInertBodyElement(r)}while(r!==i);var l=new fr,u=l.sanitizeChildren(yr(n)||n);return Xe()&&l.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),u}finally{if(n)for(var a=yr(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}(this._doc,String(e)));case _r.STYLE:return e instanceof Ts?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(br);return e&&er(e[1])===e[1]||t.match(mr)&&function(t){for(var e=!0,n=!0,r=0;rt.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function ac(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function sc(t){return t.pipe(X(),da(function(t){return!0===t}))}function cc(t){return ce(t)?t:se(t)?Z(Promise.resolve(t)):Wu(t)}function pc(t,e,n){return n?function(t,e){return ic(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!gc(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,o){if(n.segments.length>o.length)return!!gc(l=n.segments.slice(0,o.length),o)&&!r.hasChildren();if(n.segments.length===o.length){if(!gc(n.segments,o))return!1;for(var i in r.children){if(!n.children[i])return!1;if(!t(n.children[i],r.children[i]))return!1}return!0}var l=o.slice(0,n.segments.length),u=o.slice(n.segments.length);return!!gc(n.segments,l)&&!!n.children[Qs]&&e(n.children[Qs],r,u)}(e,n,n.segments)}(t.root,e.root)}var hc=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Ys(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return bc.serialize(this)},t}(),fc=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,ac(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return _c(this)},t}(),dc=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=Ys(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return kc(this)},t}();function gc(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function vc(t,e){var n=[];return ac(t.children,function(t,r){r===Qs&&(n=n.concat(e(t,r)))}),ac(t.children,function(t,r){r!==Qs&&(n=n.concat(e(t,r)))}),n}var yc=function(){},mc=function(){function t(){}return t.prototype.parse=function(t){var e=new Pc(t);return new hc(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return _c(e);if(n){var r=e.children[Qs]?t(e.children[Qs],!1):"",o=[];return ac(e.children,function(e,n){n!==Qs&&o.push(n+":"+t(e,!1))}),o.length>0?r+"("+o.join("//")+")":r}var i=vc(e,function(n,r){return r===Qs?[t(e.children[Qs],!1)]:[r+":"+t(n,!1)]});return _c(e)+"/("+i.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return Cc(t)+"="+Cc(e)}).join("&"):Cc(t)+"="+Cc(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),bc=new mc;function _c(t){return t.segments.map(function(t){return kc(t)}).join("/")}function wc(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Cc(t){return wc(t).replace(/%3B/gi,";")}function Sc(t){return wc(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function xc(t){return decodeURIComponent(t)}function Ec(t){return xc(t.replace(/\+/g,"%20"))}function kc(t){return""+Sc(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+Sc(t)+"="+Sc(e[t])}).join(""));var e}var Tc=/^[^\/()?;=#]+/;function Ic(t){var e=t.match(Tc);return e?e[0]:""}var Ac=/^[^=?&#]+/,Oc=/^[^?&#]+/,Pc=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new fc([],{}):new fc([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Qs]=new fc(t,e)),n},t.prototype.parseSegment=function(){var t=Ic(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new dc(xc(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Ic(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Ic(this.remaining);r&&this.capture(n=r)}t[xc(e)]=xc(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(Ac))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var o=function(t){var e=t.match(Oc);return e?e[0]:""}(this.remaining);o&&this.capture(r=o)}var i=Ec(n),l=Ec(r);if(t.hasOwnProperty(i)){var u=t[i];Array.isArray(u)||(t[i]=u=[u]),u.push(l)}else t[i]=l}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Ic(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Qs);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[Qs]:new fc([],i),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),Rc=function(t){this.segmentGroup=t||null},Nc=function(t){this.urlTree=t};function Vc(t){return new O(function(e){return e.error(new Rc(t))})}function Dc(t){return new O(function(e){return e.error(new Nc(t))})}function Mc(t){return new O(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}var jc=function(){function t(t,e,n,r,o){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(Re)}return t.prototype.apply=function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Qs).pipe(B(function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)})).pipe(pa(function(e){if(e instanceof Nc)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof Rc)throw t.noMatchError(e);throw e}))},t.prototype.match=function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,Qs).pipe(B(function(n){return e.createUrlTree(n,t.queryParams,t.fragment)})).pipe(pa(function(t){if(t instanceof Rc)throw e.noMatchError(t);throw t}))},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r,o=t.segments.length>0?new fc([],((r={})[Qs]=t,r)):t;return new hc(o,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(B(function(t){return new fc([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,o){if(0===Object.keys(n).length)return Wu({});var i=[],l=[],u={};return ac(n,function(n,o){var a,s,c=(a=o,s=n,r.expandSegmentGroup(t,e,s,a)).pipe(B(function(t){return u[o]=t}));o===Qs?i.push(c):l.push(c)}),Wu.apply(null,i.concat(l)).pipe(_a(),ca(),B(function(){return u}))}(n.children)},t.prototype.expandSegment=function(t,e,n,r,o,i){var l=this;return Wu.apply(void 0,a(n)).pipe(B(function(u){return l.expandSegmentAgainstRoute(t,e,n,u,r,o,i).pipe(pa(function(t){if(t instanceof Rc)return Wu(null);throw t}))}),_a(),ba(function(t){return!!t}),pa(function(t,n){if(t instanceof Zu||"EmptyError"===t.name){if(l.noLeftoversInUrl(e,r,o))return Wu(new fc([],{}));throw new Rc(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,o,i,l){return Fc(r)!==i?Vc(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):Vc(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Dc(i):this.lineralizeSegments(n,i).pipe($(function(n){var i=new fc(n,{});return o.expandSegment(t,i,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var l=this,u=Lc(e,r,o),a=u.consumedSegments,s=u.lastChild,c=u.positionalParamSegments;if(!u.matched)return Vc(e);var p=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?Dc(p):this.lineralizeSegments(r,p).pipe($(function(r){return l.expandSegment(t,e,n,r.concat(o.slice(s)),i,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(B(function(t){return n._loadedConfig=t,new fc(r,{})})):Wu(new fc(r,{}));var u=Lc(e,n,r),a=u.consumedSegments,s=u.lastChild;if(!u.matched)return Vc(e);var c=r.slice(s);return this.getChildConfig(t,n).pipe($(function(t){var n=t.module,r=t.routes,u=function(t,e,n,r){return n.length>0&&function(t,e,n){return r.some(function(n){return zc(t,e,n)&&Fc(n)!==Qs})}(t,n)?{segmentGroup:Uc(new fc(e,function(t,e){var n,r,o={};o[Qs]=e;try{for(var i=l(t),u=i.next();!u.done;u=i.next()){var a=u.value;""===a.path&&Fc(a)!==Qs&&(o[Fc(a)]=new fc([],{}))}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}(r,new fc(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return r.some(function(n){return zc(t,e,n)})}(t,n)?{segmentGroup:Uc(new fc(t.segments,function(t,e,n,r){var o,u,a={};try{for(var s=l(n),c=s.next();!c.done;c=s.next()){var p=c.value;zc(t,e,p)&&!r[Fc(p)]&&(a[Fc(p)]=new fc([],{}))}}catch(t){o={error:t}}finally{try{c&&!c.done&&(u=s.return)&&u.call(s)}finally{if(o)throw o.error}}return i({},r,a)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,a,c,r),s=u.segmentGroup,p=u.slicedSegments;return 0===p.length&&s.hasChildren()?o.expandChildren(n,r,s).pipe(B(function(t){return new fc(a,t)})):0===r.length&&0===p.length?Wu(new fc(a,{})):o.expandSegment(n,s,r,p,Qs,!0).pipe(B(function(t){return new fc(a.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?Wu(new tc(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Wu(e._loadedConfig):function(t,e){var n=e.canLoad;return n&&0!==n.length?sc(Z(n).pipe(B(function(n){var r=t.get(n);return cc(r.canLoad?r.canLoad(e):r(e))}))):Wu(!0)}(t.injector,e).pipe($(function(r){return r?n.configLoader.load(t.injector,e).pipe(B(function(t){return e._loadedConfig=t,t})):function(t){return new O(function(e){return e.error(((n=Error("NavigationCancelingError: Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false")).ngNavigationCancelingError=!0,n));var n})}(e)})):Wu(new tc([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Wu(n);if(r.numberOfChildren>1||!r.children[Qs])return Mc(t.redirectTo);r=r.children[Qs]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var o=this.createSegmentGroup(t,e.root,n,r);return new hc(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return ac(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);n[r]=e[o]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var o=this,i=this.createSegments(t,e.segments,n,r),l={};return ac(e.children,function(e,i){l[i]=o.createSegmentGroup(t,e,n,r)}),new fc(i,l)},t.prototype.createSegments=function(t,e,n,r){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,r):o.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,r,o=0;try{for(var i=l(e),u=i.next();!u.done;u=i.next()){var a=u.value;if(a.path===t.path)return e.splice(o),a;o++}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return t},t}();function Lc(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||Xs)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Uc(t){if(1===t.numberOfChildren&&t.children[Qs]){var e=t.children[Qs];return new fc(t.segments.concat(e.segments),e.children)}return t}function zc(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Fc(t){return t.outlet||Qs}var Hc=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=qc(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=qc(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=Bc(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return Bc(t,this._root).map(function(t){return t.value})},t}();function qc(t,e){if(t===e.value)return e;try{for(var n=l(e.children),r=n.next();!r.done;r=n.next()){var o=qc(t,r.value);if(o)return o}}catch(t){i={error:t}}finally{try{r&&!r.done&&(u=n.return)&&u.call(n)}finally{if(i)throw i.error}}return null;var i,u}function Bc(t,e){if(t===e.value)return[e];try{for(var n=l(e.children),r=n.next();!r.done;r=n.next()){var o=Bc(t,r.value);if(o.length)return o.unshift(e),o}}catch(t){i={error:t}}finally{try{r&&!r.done&&(u=n.return)&&u.call(n)}finally{if(i)throw i.error}}return[];var i,u}var Gc=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function Kc(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var Wc=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,Xc(r,e),r}return o(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(Hc);function Zc(t,e){var n=function(t,e){var n=new Jc([],{},{},"",{},Qs,e,null,t.root,-1,{});return new Yc("",new Gc(n,[]))}(t,e),r=new Bu([new dc("",{})]),o=new Bu({}),i=new Bu({}),l=new Bu({}),u=new Bu(""),a=new $c(r,o,l,u,i,Qs,e,n.root);return a.snapshot=n.root,new Wc(new Gc(a,[]),n)}var $c=function(){function t(t,e,n,r,o,i,l,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=l,this._futureSnapshot=u}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(B(function(t){return Ys(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(B(function(t){return Ys(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Qc(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var o=n[r],l=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(l.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:i({},t.params,e.params),data:i({},t.data,e.data),resolve:i({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var Jc=function(){function t(t,e,n,r,o,i,l,u,a,s,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=l,this.routeConfig=u,this._urlSegment=a,this._lastPathIndex=s,this._resolve=c}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=Ys(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Ys(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),Yc=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,Xc(r,n),r}return o(e,t),e.prototype.toString=function(){return tp(this._root)},e}(Hc);function Xc(t,e){e.value._routerState=t,e.children.forEach(function(e){return Xc(t,e)})}function tp(t){var e=t.children.length>0?" { "+t.children.map(tp).join(", ")+" } ":"";return""+t.value+e}function ep(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,ic(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),ic(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&rp(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==uc(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),lp=function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n};function up(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Qs]:""+t}function ap(t,e,n){if(t||(t=new fc([],{})),0===t.segments.length&&t.hasChildren())return sp(t,e,n);var r=function(t,e,n){for(var r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o=n.length)return i;var l=t.segments[o],u=up(n[r]),a=r0&&void 0===u)break;if(u&&a&&"object"==typeof a&&void 0===a.outlets){if(!fp(u,a,l))return i;r+=2}else{if(!fp(u,{},l))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex=2?function(n){return I(wa(t,e),ta(1),ua(e))(n)}:function(e){return I(wa(function(e,n,r){return t(e,n,r+1)}),ta(1))(e)}}(function(t,e){return t})):Wu(null)},t.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},t.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},t.prototype.setupChildRouteGuards=function(t,e,n,r){var o=this,i=Kc(e);t.children.forEach(function(t){o.setupRouteGuards(t,i[t.value.outlet],n,r.concat([t.value])),delete i[t.value.outlet]}),ac(i,function(t,e){return o.deactivateRouteAndItsChildren(t,n.getContext(e))})},t.prototype.setupRouteGuards=function(t,e,n,r){var o=t.value,i=e?e.value:null,l=n?n.getContext(t.value.outlet):null;if(i&&o.routeConfig===i.routeConfig){var u=this.shouldRunGuardsAndResolvers(i,o,o.routeConfig.runGuardsAndResolvers);u?this.canActivateChecks.push(new dp(r)):(o.data=i.data,o._resolvedData=i._resolvedData),this.setupChildRouteGuards(t,e,o.component?l?l.children:null:n,r),u&&this.canDeactivateChecks.push(new gp(l.outlet.component,i))}else i&&this.deactivateRouteAndItsChildren(e,l),this.canActivateChecks.push(new dp(r)),this.setupChildRouteGuards(t,null,o.component?l?l.children:null:n,r)},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!np(t,e)||!ic(t.queryParams,e.queryParams);case"paramsChange":default:return!np(t,e)}},t.prototype.deactivateRouteAndItsChildren=function(t,e){var n=this,r=Kc(t),o=t.value;ac(r,function(t,r){n.deactivateRouteAndItsChildren(t,o.component?e?e.children.getContext(r):null:e)}),this.canDeactivateChecks.push(new gp(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))},t.prototype.runCanDeactivateChecks=function(){var t=this;return Z(this.canDeactivateChecks).pipe($(function(e){return t.runCanDeactivate(e.component,e.route)}),da(function(t){return!0===t}))},t.prototype.runCanActivateChecks=function(){var t=this;return Z(this.canActivateChecks).pipe($u(function(e){return sc(Z([t.fireChildActivationStart(e.route.parent),t.fireActivationStart(e.route),t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))}),da(function(t){return!0===t}))},t.prototype.fireActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new Zs(t)),Wu(!0)},t.prototype.fireChildActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new Ks(t)),Wu(!0)},t.prototype.runCanActivate=function(t){var e=this,n=t.routeConfig?t.routeConfig.canActivate:null;return n&&0!==n.length?sc(Z(n).pipe(B(function(n){var r=e.getToken(n,t);return cc(r.canActivate?r.canActivate(t,e.future):r(t,e.future)).pipe(ba())}))):Wu(!0)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1];return sc(Z(t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t})).pipe(B(function(t){return sc(Z(t.guards).pipe(B(function(r){var o=e.getToken(r,t.node);return cc(o.canActivateChild?o.canActivateChild(n,e.future):o(n,e.future)).pipe(ba())})))})))},t.prototype.extractCanActivateChild=function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?Z(r).pipe($(function(r){var o=n.getToken(r,e);return cc(o.canDeactivate?o.canDeactivate(t,e,n.curr,n.future):o(t,e,n.curr,n.future)).pipe(ba())})).pipe(da(function(t){return!0===t})):Wu(!0)},t.prototype.runResolve=function(t,e){return this.resolveNode(t._resolve,t).pipe(B(function(n){return t._resolvedData=n,t.data=i({},t.data,Qc(t,e).resolve),null}))},t.prototype.resolveNode=function(t,e){var n=this,r=Object.keys(t);if(0===r.length)return Wu({});if(1===r.length){var o=r[0];return this.getResolver(t[o],e).pipe(B(function(t){return(e={})[o]=t,e;var e}))}var i={};return Z(r).pipe($(function(r){return n.getResolver(t[r],e).pipe(B(function(t){return i[r]=t,t}))})).pipe(ca(),B(function(){return i}))},t.prototype.getResolver=function(t,e){var n=this.getToken(t,e);return cc(n.resolve?n.resolve(e,this.future):n(e,this.future))},t.prototype.getToken=function(t,e){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(n?n.module.injector:this.moduleInjector).get(t)},t}(),yp=function(){},mp=function(){function t(t,e,n,r,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o}return t.prototype.recognize=function(){try{var t=wp(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,Qs),n=new Jc([],Object.freeze({}),Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,{},Qs,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Gc(n,e),o=new Yc(this.url,r);return this.inheritParamsAndData(o._root),Wu(o)}catch(t){return new O(function(e){return e.error(t)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=Qc(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,o=vc(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},o.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),o=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+o+"'.")}n[t.value.outlet]=t.value}),o.sort(function(t,e){return t.value.outlet===Qs?-1:e.value.outlet===Qs?1:t.value.outlet.localeCompare(e.value.outlet)}),o},t.prototype.processSegment=function(t,e,n,r){try{for(var o=l(t),i=o.next();!i.done;i=o.next()){var u=i.value;try{return this.processSegmentAgainstRoute(u,e,n,r)}catch(t){if(!(t instanceof yp))throw t}}}catch(t){a={error:t}}finally{try{i&&!i.done&&(s=o.return)&&s.call(o)}finally{if(a)throw a.error}}if(this.noLeftoversInUrl(e,n,r))return[];throw new yp;var a,s},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new yp;if((t.outlet||Qs)!==r)throw new yp;var o,l=[],u=[];if("**"===t.path){var a=n.length>0?uc(n).parameters:{};o=new Jc(n,a,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,xp(t),r,t.component,t,bp(e),_p(e)+n.length,Ep(t))}else{var s=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new yp;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||Xs)(n,t,e);if(!r)throw new yp;var o={};ac(r.posParams,function(t,e){o[e]=t.path});var l=r.consumed.length>0?i({},o,r.consumed[r.consumed.length-1].parameters):o;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:l}}(e,t,n);l=s.consumedSegments,u=n.slice(s.lastChild),o=new Jc(l,s.parameters,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,xp(t),r,t.component,t,bp(e),_p(e)+l.length,Ep(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),p=wp(e,l,u,c),h=p.segmentGroup,f=p.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(c,h);return[new Gc(o,d)]}if(0===c.length&&0===f.length)return[new Gc(o,[])];var g=this.processSegment(c,h,f,Qs);return[new Gc(o,g)]},t}();function bp(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function _p(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function wp(t,e,n,r){if(n.length>0&&function(t,e,n){return r.some(function(n){return Cp(t,e,n)&&Sp(n)!==Qs})}(t,n)){var o=new fc(e,function(t,e,n,r){var o,i,u={};u[Qs]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;try{for(var a=l(n),s=a.next();!s.done;s=a.next()){var c=s.value;if(""===c.path&&Sp(c)!==Qs){var p=new fc([],{});p._sourceSegment=t,p._segmentIndexShift=e.length,u[Sp(c)]=p}}}catch(t){o={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return u}(t,e,r,new fc(n,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return r.some(function(n){return Cp(t,e,n)})}(t,n)){var u=new fc(t.segments,function(t,e,n,r){var o,u,a={};try{for(var s=l(n),c=s.next();!c.done;c=s.next()){var p=c.value;if(Cp(t,e,p)&&!r[Sp(p)]){var h=new fc([],{});h._sourceSegment=t,h._segmentIndexShift=t.segments.length,a[Sp(p)]=h}}}catch(t){o={error:t}}finally{try{c&&!c.done&&(u=s.return)&&u.call(s)}finally{if(o)throw o.error}}return i({},r,a)}(t,n,r,t.children));return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:n}}var a=new fc(t.segments,t.children);return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:n}}function Cp(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Sp(t){return t.outlet||Qs}function xp(t){return t.data||{}}function Ep(t){return t.resolve||{}}var kp=function(){},Tp=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),Ip=new ft("ROUTES"),Ap=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(B(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new tc(lc(o.injector.get(Ip)).map(oc),o)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?Z(this.loader.load(t)):cc(t()).pipe($(function(t){return t instanceof Ne?Wu(t):Z(e.compiler.compileModuleAsync(t))}))},t}(),Op=function(){},Pp=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function Rp(t){throw t}function Np(t){return Wu(null)}var Vp=function(){function t(t,e,n,r,o,i,l,u){var a=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=u,this.navigations=new Bu(null),this.navigationId=0,this.events=new rt,this.errorHandler=Rp,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Np,afterPreactivation:Np},this.urlHandlingStrategy=new Pp,this.routeReuseStrategy=new Tp,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.ngModule=o.get(Re),this.resetConfig(u),this.currentUrlTree=new hc(new fc([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new Ap(i,l,function(t){return a.triggerEvent(new Bs(t))},function(t){return a.triggerEvent(new Gs(t))}),this.routerState=Zc(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.urlSerializer.parse(e.url),r="popstate"===e.type?"popstate":"hashchange",o=e.state&&e.state.navigationId?{navigationId:e.state.navigationId}:null;setTimeout(function(){t.scheduleNavigation(n,r,o,{replaceUrl:!0})},0)}))},Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){ec(t),this.config=t.map(oc),this.navigated=!1,this.lastSuccessfulId=-1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var n=e.relativeTo,r=e.queryParams,o=e.fragment,l=e.preserveQueryParams,u=e.queryParamsHandling,s=e.preserveFragment;Xe()&&l&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,p=s?this.currentUrlTree.fragment:o,h=null;if(u)switch(u){case"merge":h=i({},this.currentUrlTree.queryParams,r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}else h=l?this.currentUrlTree.queryParams:r||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,r,o){if(0===n.length)return op(e.root,e.root,e,r,o);var i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ip(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,o){if("object"==typeof r&&null!=r){if(r.outlets){var i={};return ac(r.outlets,function(t,e){i[e]="string"==typeof t?t.split("/"):t}),a(t,[{outlets:i}])}if(r.segmentPath)return a(t,[r.segmentPath])}return"string"!=typeof r?a(t,[r]):0===o?(r.split("/").forEach(function(r,o){0==o&&"."===r||(0==o&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):a(t,[r])},[]);return new ip(n,e,r)}(n);if(i.toRoot())return op(e.root,new fc([],{}),e,r,o);var l=function(t,n,r){if(t.isAbsolute)return new lp(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new lp(r.snapshot._urlSegment,!0,0);var o=rp(t.commands[0])?0:1;return function(e,n,i){for(var l=r.snapshot._urlSegment,u=r.snapshot._lastPathIndex+o,a=t.numberOfDoubleDots;a>u;){if(a-=u,!(l=l.parent))throw new Error("Invalid number of '../'");u=l.segments.length}return new lp(l,!1,u-a)}()}(i,0,t),u=l.processChildren?sp(l.segmentGroup,l.index,i.commands):ap(l.segmentGroup,l.index,i.commands);return op(l.segmentGroup,u,e,r,o)}(c,this.currentUrlTree,t,h,p)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof hc?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;et?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return gh(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return gh(t.value)?null:yh.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(gh(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(gh(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(bh);return 0==e.length?null:function(t){return wh(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(bh);return 0==e.length?null:function(t){return function t(){for(var e,n=[],r=0;r=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t}(),Rh=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(Oh),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},t}(),Nh='\n

\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',Vh='\n
\n
\n \n
\n
';function Dh(t,e){return a(e.path,[t])}function Mh(t,e){t||Lh(e,"Cannot find control with"),e.valueAccessor||Lh(e,"No value accessor for form control with"),t.validator=mh.compose([t.validator,e.validator]),t.asyncValidator=mh.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&jh(t,e)})}(t,e),function(t,e){t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&jh(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function jh(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Lh(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function Uh(t){return null!=t?mh.compose(t.map(kh)):null}function zh(t){return null!=t?mh.composeAsync(t.map(Th)):null}var Fh=[Sh,function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),Ih,function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Et}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){try{for(var e=l(Array.from(this._optionMap.keys())),n=e.next();!n.done;n=e.next()){var r=n.value;if(this._compareWith(this._optionMap.get(r),t))return r}}catch(t){o={error:t}}finally{try{n&&!n.done&&(i=e.return)&&i.call(e)}finally{if(o)throw o.error}}return null;var o,i},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}(),function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Et}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e,n=this;if(this.value=t,Array.isArray(t)){var r=t.map(function(t){return n._getOptionId(t)});e=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i0||this.disabled;var n,r},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(Wh),Qh=function(t){function e(e,n,r){var o=t.call(this,Bh(n),Gh(r,n))||this;return o.controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return o(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof Zh?t.value:t.getRawValue()})},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){try{for(var t=l(this.controls),e=t.next();!e.done;e=t.next())if(e.value.enabled)return!1}catch(t){n={error:t}}finally{try{e&&!e.done&&(r=t.return)&&r.call(t)}finally{if(n)throw n.error}}return this.controls.length>0||this.disabled;var n,r},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(Wh),Jh=Promise.resolve(null),Yh=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new Le,r.form=new $h({},Uh(e),zh(n)),r}return o(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;Jh.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),Mh(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;Jh.then(function(){var n,r,o=e._findContainer(t.path);o&&o.removeControl(t.name),(r=(n=e._directives).indexOf(t))>-1&&n.splice(r,1)})},e.prototype.addFormGroup=function(t){var e=this;Jh.then(function(){var n=e._findContainer(t.path),r=new $h({});(function(t,e){null==t&&Lh(e,"Cannot find control with"),t.validator=mh.compose([t.validator,e.validator]),t.asyncValidator=mh.composeAsync([t.asyncValidator,e.asyncValidator])})(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;Jh.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;Jh.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,e=this._directives,this.form._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e}(dh),Xh=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n \n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+Nh+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+Vh)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+Nh+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+Vh)},t}(),tf=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return o(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof Yh||Xh.modelGroupParentException()},e}(Hh),ef=Promise.resolve(null),nf=function(t){function e(e,n,r,o){var i=t.call(this)||this;return i.control=new Zh,i._registered=!1,i.update=new Le,i._parent=e,i._rawValidators=n||[],i._rawAsyncValidators=r||[],i.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||Lh(t,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,o=void 0;return e.forEach(function(e){var i;e.constructor===Eh?n=e:(i=e,Fh.some(function(t){return i.constructor===t})?(r&&Lh(t,"More than one built-in value accessor matches form control with"),r=e):(o&&Lh(t,"More than one custom value accessor matches form control with"),o=e))}),o||r||n||(Lh(t,"No valid value accessor for form control with"),null)}(i,o),i}return o(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Et(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?Dh(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Uh(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return zh(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){Mh(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof tf)&&this._parent instanceof Hh?Xh.formGroupNameException():this._parent instanceof tf||this._parent instanceof Yh||Xh.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Xh.missingNameException()},e.prototype._updateValue=function(t){var e=this;ef.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;ef.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},e}(Oh),rf=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?mh.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}(),of=function(){},lf=function(){},uf=function(){function t(t){this.http=t,this.client=new proto.grpc.channelz.v1.ChannelzClient(yu.envoy_proxy_address);var e=new Int8Array(32);window.crypto.getRandomValues(e);var n=btoa(e.toString());document.cookie="grpc-channelz-v1-channelz-token="+n+";path=/",this.xsrfMeta={"grpc-channelz-v1-channelz-token":n}}return t.prototype.functionToObserver=function(t,e){var n=this;return new O(function(r){t.bind(n.client)(e,n.xsrfMeta,function(t,e){r.next(e),r.complete()})})},t.prototype.getServers=function(t){var e=new proto.grpc.channelz.v1.GetServersRequest;return e.setStartServerId(t),this.functionToObserver(this.client.getServers,e)},t.prototype.getServerSockets=function(t,e){var n=new proto.grpc.channelz.v1.GetServerSocketsRequest;return n.setServerId(t),n.setStartSocketId(e),this.functionToObserver(this.client.getServerSockets,n)},t.prototype.getTopChannels=function(t){var e=new proto.grpc.channelz.v1.GetTopChannelsRequest;return e.setStartChannelId(t),this.functionToObserver(this.client.getTopChannels,e)},t.prototype.getSubchannel=function(t){var e=new proto.grpc.channelz.v1.GetSubchannelRequest;return e.setSubchannelId(t),this.functionToObserver(this.client.getSubchannel,e)},t.prototype.getChannel=function(t){var e=new proto.grpc.channelz.v1.GetChannelRequest;return e.setChannelId(t),this.functionToObserver(this.client.getChannel,e)},t.prototype.getSocket=function(t){var e=new proto.grpc.channelz.v1.GetSocketRequest;return e.setSocketId(t),this.functionToObserver(this.client.getSocket,e)},t}(),af=function(){function t(t,e,n){this.route=t,this.router=e,this.channelzService=n,this.startId=0}return t.prototype.ngOnInit=function(){var t=this;this.render(),this.route.params.subscribe(function(e){return t.render()})},t.prototype.processEntry=function(){this.router.navigateByUrl("/channelz/servers/"+this.startId)},t.prototype.render=function(){var t=this,e=this.route.snapshot.paramMap.get("startId");this.startId=null==e?0:+e,this.channelzService.getServers(this.startId).subscribe(function(e){return t.handleResponse(e)})},t.prototype.handleResponse=function(t){this.serversList=t.getServerList(),this.nextId=t.getEnd()?null:this.serversList[this.serversList.length-1].getRef().getServerId()},t}(),sf=Ur({encapsulation:0,styles:[[""]],data:{}});function cf(t){return Pi(0,[(t()(),vo(0,0,null,null,3,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"]))],function(t,e){t(e,2,0,ho(1,"/channelz/socket/",e.context.$implicit.getSocketId(),""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.getSocketId(),e.context.$implicit.getName())})}function pf(t){return Pi(0,[(t()(),vo(0,0,null,null,16,"tr",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),vo(2,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,3).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(3,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(4,null,["","[","]"])),(t()(),vo(5,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(6,null,["",""])),(t()(),vo(7,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(8,null,["",""])),(t()(),vo(9,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(10,null,["",""])),(t()(),vo(11,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),Ii(12,null,["",""])),Ti(13,1),(t()(),vo(14,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,cf)),oi(16,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,3,0,ho(1,"/channelz/serversockets/",e.context.$implicit.getRef().getServerId(),"")),t(e,16,0,e.context.$implicit.getListenSocketList())},function(t,e){t(e,2,0,Go(e,3).target,Go(e,3).href),t(e,4,0,e.context.$implicit.getRef().getServerId(),e.context.$implicit.getRef().getName()),t(e,6,0,e.context.$implicit.getData().getCallsStarted()),t(e,8,0,e.context.$implicit.getData().getCallsSucceeded()),t(e,10,0,e.context.$implicit.getData().getCallsFailed()),t(e,12,0,Mr(e,12,0,t(e,13,0,Go(e.parent,0),e.context.$implicit.getData().getLastCallStartedTimestamp())))})}function hf(t){return Pi(0,[(t()(),vo(0,0,null,null,3,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(-1,null,["Click here for next page"]))],function(t,e){t(e,2,0,ho(1,"/channelz/servers/",e.component.nextId,""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href)})}function ff(t){return Pi(0,[(t()(),vo(0,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Ii(-1,null,["End of results"]))],null,null)}function df(t){return Pi(0,[ii(0,ch,[]),(t()(),vo(1,0,null,null,1,"h3",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Showing servers starting from:"])),(t()(),Ii(-1,null,["\nServer id:\n"])),(t()(),vo(4,0,[["textbox",1]],null,7,"input",[["required",""],["type","text"]],[[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,"keyup.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==Go(t,5)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Go(t,5).onTouched()&&r),"compositionstart"===e&&(r=!1!==Go(t,5)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Go(t,5)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.startId=n)&&r),"keyup.enter"===e&&(r=!1!==o.processEntry()&&r),r},null,null)),oi(5,16384,null,0,Eh,[cn,pn,[2,xh]],null,null),oi(6,16384,null,0,rf,[],{required:[0,"required"]},null),li(1024,null,vh,function(t){return[t]},[rf]),li(1024,null,Ch,function(t){return[t]},[Eh]),oi(9,671744,null,0,nf,[[8,null],[6,vh],[8,null],[6,Ch]],{model:[0,"model"]},{update:"ngModelChange"}),li(2048,null,Oh,null,[nf]),oi(11,16384,null,0,qh,[[4,Oh]],null,null),(t()(),vo(12,0,null,null,1,"button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.processEntry()&&r),r},null,null)),(t()(),Ii(-1,null,["Refresh"])),(t()(),vo(14,0,null,null,17,"div",[],null,null,null,null,null)),(t()(),vo(15,0,null,null,16,"table",[],null,null,null,null,null)),(t()(),vo(16,0,null,null,15,"tbody",[],null,null,null,null,null)),(t()(),vo(17,0,null,null,12,"tr",[],null,null,null,null,null)),(t()(),vo(18,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Server"])),(t()(),vo(20,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Calls started"])),(t()(),vo(22,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Calls succeeded"])),(t()(),vo(24,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Calls failed"])),(t()(),vo(26,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Last call started ts"])),(t()(),vo(28,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Listen Sockets"])),(t()(),go(16777216,null,null,1,null,pf)),oi(31,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),go(16777216,null,null,1,null,hf)),oi(33,16384,null,0,Uu,[bn,mn],{ngIf:[0,"ngIf"]},null),(t()(),go(16777216,null,null,1,null,ff)),oi(35,16384,null,0,Uu,[bn,mn],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,6,0,""),t(e,9,0,n.startId),t(e,31,0,n.serversList),t(e,33,0,n.nextId),t(e,35,0,!n.nextId)},function(t,e){t(e,4,0,Go(e,6).required?"":null,Go(e,11).ngClassUntouched,Go(e,11).ngClassTouched,Go(e,11).ngClassPristine,Go(e,11).ngClassDirty,Go(e,11).ngClassValid,Go(e,11).ngClassInvalid,Go(e,11).ngClassPending)})}var gf=Vo("app-servers",af,function(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"app-servers",[],null,null,null,df,sf)),oi(1,114688,null,0,af,[$c,Vp,uf],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),vf=function(){function t(t,e,n){this.route=t,this.router=e,this.channelzService=n,this.startId=0}return t.prototype.ngOnInit=function(){var t=this;this.render(),this.route.params.subscribe(function(e){return t.render()})},t.prototype.processEntry=function(){this.router.navigateByUrl("/channelz/topchannels/"+this.startId)},t.prototype.render=function(){var t=this,e=this.route.snapshot.paramMap.get("startId");this.startId=null==e?0:+e,this.channelzService.getTopChannels(this.startId).subscribe(function(e){return t.handleResponse(e)})},t.prototype.channelDataHelperProxy=function(t){return sh(t)},t.prototype.handleResponse=function(t){this.topChannelsList=t.getChannelList(),this.nextId=t.getEnd()?null:this.topChannelsList[this.topChannelsList.length-1].getRef().getChannelId()},t}(),yf=Ur({encapsulation:0,styles:[[""]],data:{}});function mf(t){return Pi(0,[(t()(),vo(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/channel/",e.context.$implicit.getChannelId(),""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.getChannelId(),e.context.$implicit.getName())})}function bf(t){return Pi(0,[(t()(),vo(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/subchannel/",e.context.$implicit.getSubchannelId(),""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.getSubchannelId(),e.context.$implicit.getName())})}function _f(t){return Pi(0,[(t()(),vo(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/socket/",e.context.$implicit.getSocketId(),""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.getSocketId(),e.context.$implicit.getName())})}function wf(t){return Pi(0,[(t()(),vo(0,0,null,null,16,"tr",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),vo(2,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,3).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(3,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(4,null,["","[","]"])),(t()(),vo(5,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(6,0,null,null,1,"pre",[],null,null,null,null,null)),(t()(),Ii(7,null,["",""])),(t()(),vo(8,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,mf)),oi(10,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),vo(11,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,bf)),oi(13,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),vo(14,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,_f)),oi(16,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,3,0,ho(1,"/channelz/channel/",e.context.$implicit.getRef().getChannelId(),"")),t(e,10,0,e.context.$implicit.getChannelRefList()),t(e,13,0,e.context.$implicit.getSubchannelRefList()),t(e,16,0,e.context.$implicit.getSocketRefList())},function(t,e){var n=e.component;t(e,2,0,Go(e,3).target,Go(e,3).href),t(e,4,0,e.context.$implicit.getRef().getChannelId(),e.context.$implicit.getRef().getName()),t(e,7,0,n.channelDataHelperProxy(e.context.$implicit.getData()))})}function Cf(t){return Pi(0,[(t()(),vo(0,0,null,null,3,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(-1,null,["Click here for next page"]))],function(t,e){t(e,2,0,ho(1,"/channelz/topchannels/",e.component.nextId,""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href)})}function Sf(t){return Pi(0,[(t()(),vo(0,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Ii(-1,null,["End of results"]))],null,null)}function xf(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"h3",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Showing top level channels starting from:"])),(t()(),vo(2,0,[["textbox",1]],null,7,"input",[["required",""],["type","text"]],[[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,"keyup.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==Go(t,3)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Go(t,3).onTouched()&&r),"compositionstart"===e&&(r=!1!==Go(t,3)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Go(t,3)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.startId=n)&&r),"keyup.enter"===e&&(r=!1!==o.processEntry()&&r),r},null,null)),oi(3,16384,null,0,Eh,[cn,pn,[2,xh]],null,null),oi(4,16384,null,0,rf,[],{required:[0,"required"]},null),li(1024,null,vh,function(t){return[t]},[rf]),li(1024,null,Ch,function(t){return[t]},[Eh]),oi(7,671744,null,0,nf,[[8,null],[6,vh],[8,null],[6,Ch]],{model:[0,"model"]},{update:"ngModelChange"}),li(2048,null,Oh,null,[nf]),oi(9,16384,null,0,qh,[[4,Oh]],null,null),(t()(),vo(10,0,null,null,1,"button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.processEntry()&&r),r},null,null)),(t()(),Ii(-1,null,["Refresh"])),(t()(),vo(12,0,null,null,15,"div",[],null,null,null,null,null)),(t()(),vo(13,0,null,null,14,"table",[],null,null,null,null,null)),(t()(),vo(14,0,null,null,13,"tbody",[],null,null,null,null,null)),(t()(),vo(15,0,null,null,10,"tr",[],null,null,null,null,null)),(t()(),vo(16,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Channel"])),(t()(),vo(18,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Data"])),(t()(),vo(20,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Channels"])),(t()(),vo(22,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Subchannels"])),(t()(),vo(24,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Sockets"])),(t()(),go(16777216,null,null,1,null,wf)),oi(27,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),go(16777216,null,null,1,null,Cf)),oi(29,16384,null,0,Uu,[bn,mn],{ngIf:[0,"ngIf"]},null),(t()(),go(16777216,null,null,1,null,Sf)),oi(31,16384,null,0,Uu,[bn,mn],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,4,0,""),t(e,7,0,n.startId),t(e,27,0,n.topChannelsList),t(e,29,0,n.nextId),t(e,31,0,!n.nextId)},function(t,e){t(e,2,0,Go(e,4).required?"":null,Go(e,9).ngClassUntouched,Go(e,9).ngClassTouched,Go(e,9).ngClassPristine,Go(e,9).ngClassDirty,Go(e,9).ngClassValid,Go(e,9).ngClassInvalid,Go(e,9).ngClassPending)})}var Ef=Vo("app-top-channels",vf,function(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"app-top-channels",[],null,null,null,xf,yf)),oi(1,114688,null,0,vf,[$c,Vp,uf],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),kf=function(t,e){this.name=t,this.value=e},Tf=function(){function t(t,e,n){this.route=t,this.router=e,this.channelzService=n}return t.prototype.ngOnInit=function(){var t=this;this.render(),this.route.params.subscribe(function(e){return t.render()})},t.prototype.processEntry=function(){this.router.navigateByUrl("/channelz/socket/"+this.enteredData)},t.prototype.render=function(){var t=this,e=this.route.snapshot.paramMap.get("id");this.id=null==e?0:+e,this.enteredData=this.id.toString(),this.channelzService.getSocket(+this.id).subscribe(function(e){return t.handleResponse(e)})},t.prototype.handleResponse=function(t){this.socket=t.getSocket(),this.simplifiedData=this.simplifiedDataHelper(),this.securiyStr=this.securityHelper(this.socket.getSecurity())},t.prototype.simplifiedDataHelper=function(){var t=this.socket.getData();return null==t?"undefined":"Streams started: "+t.getStreamsStarted()+"\nStreams succeeded: "+t.getStreamsSucceeded()+"\nStreams failed: "+t.getStreamsFailed()+"\nMessages sent: "+t.getMessagesSent()+"\nMessages received: "+t.getMessagesReceived()+"\nKeepalives sent: "+t.getKeepAlivesSent()+"\nLast local stream created: "+ch.transform(t.getLastLocalStreamCreatedTimestamp())+"\nLast remote stream created: "+ch.transform(t.getLastRemoteStreamCreatedTimestamp())+"\nLast message sent: "+ch.transform(t.getLastMessageSentTimestamp())+"\nLast message received: "+ch.transform(t.getLastMessageReceivedTimestamp())+"\nLocal flow control window: "+t.getLocalFlowControlWindow()+"\nRemote flow control window: "+t.getRemoteFlowControlWindow()+"\n"},t.prototype.securityHelper=function(t){if(null==t)return"plaintext";if(null!=t.getTls()){var e=t.getTls();return"standard name: "+e.getStandardName()+"\nother name: "+e.getOtherName()+"\nlocal cert (base64): "+btoa(e.getLocalCertificate())+"\nremote cert (base64): "+btoa(e.getRemoteCertificate())}if(null!=t.getOther()){var n=t.getOther();return"name: "+n.getName()+"\nvalue: "+ah(n.getValue())}return"plaintext"},t.prototype.socketOptions=function(){var t=this.socket.getData();return null==t||null==t.getOptionList()?[]:t.getOptionList().map(function(t){return null!=t.getAdditional()?new kf(t.getName(),ah(t.getAdditional())):new kf(t.getName(),t.getValue())})},t}(),If=Ur({encapsulation:0,styles:[[""]],data:{}});function Af(t){return Pi(0,[(t()(),vo(0,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(2,null,["Socket Option: ",""])),(t()(),vo(3,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(4,0,null,null,1,"pre",[],null,null,null,null,null)),(t()(),Ii(5,null,["",""]))],null,function(t,e){t(e,2,0,e.context.$implicit.name),t(e,5,0,e.context.$implicit.value)})}function Of(t){return Pi(0,[(t()(),vo(0,0,null,null,41,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,40,"table",[],null,null,null,null,null)),(t()(),vo(2,0,null,null,39,"tbody",[],null,null,null,null,null)),(t()(),vo(3,0,null,null,4,"tr",[],null,null,null,null,null)),(t()(),vo(4,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Field"])),(t()(),vo(6,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Value"])),(t()(),vo(8,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(9,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Socketref"])),(t()(),vo(11,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(12,0,null,null,1,"pre",[],null,null,null,null,null)),(t()(),Ii(13,null,["","[","]"])),(t()(),vo(14,0,null,null,6,"tr",[],null,null,null,null,null)),(t()(),vo(15,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Local Address"])),(t()(),vo(17,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),vo(18,0,null,null,2,"pre",[],null,null,null,null,null)),(t()(),Ii(19,null,["",""])),Ti(20,1),(t()(),vo(21,0,null,null,6,"tr",[],null,null,null,null,null)),(t()(),vo(22,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Remote Address"])),(t()(),vo(24,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),vo(25,0,null,null,2,"pre",[],null,null,null,null,null)),(t()(),Ii(26,null,["",""])),Ti(27,1),(t()(),vo(28,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(29,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Security"])),(t()(),vo(31,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(32,0,null,null,1,"pre",[],null,null,null,null,null)),(t()(),Ii(33,null,["",""])),(t()(),vo(34,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(35,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Data"])),(t()(),vo(37,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(38,0,null,null,1,"pre",[],null,null,null,null,null)),(t()(),Ii(39,null,["",""])),(t()(),go(16777216,null,null,1,null,Af)),oi(41,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,41,0,e.component.socketOptions())},function(t,e){var n=e.component;t(e,13,0,n.socket.getRef().getSocketId(),n.socket.getRef().getName()),t(e,19,0,Mr(e,19,0,t(e,20,0,Go(e.parent,0),n.socket.getLocal()))),t(e,26,0,Mr(e,26,0,t(e,27,0,Go(e.parent,0),n.socket.getRemote()))),t(e,33,0,n.securiyStr),t(e,39,0,n.simplifiedData)})}function Pf(t){return Pi(0,[(t()(),vo(0,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Socket does not exist"]))],null,null)}function Rf(t){return Pi(0,[ii(0,ph,[]),(t()(),vo(1,0,null,null,1,"h3",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Showing socket:"])),(t()(),vo(3,0,[["textbox",1]],null,7,"input",[["required",""],["type","text"]],[[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,"keyup.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==Go(t,4)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Go(t,4).onTouched()&&r),"compositionstart"===e&&(r=!1!==Go(t,4)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Go(t,4)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.enteredData=n)&&r),"keyup.enter"===e&&(r=!1!==o.processEntry()&&r),r},null,null)),oi(4,16384,null,0,Eh,[cn,pn,[2,xh]],null,null),oi(5,16384,null,0,rf,[],{required:[0,"required"]},null),li(1024,null,vh,function(t){return[t]},[rf]),li(1024,null,Ch,function(t){return[t]},[Eh]),oi(8,671744,null,0,nf,[[8,null],[6,vh],[8,null],[6,Ch]],{model:[0,"model"]},{update:"ngModelChange"}),li(2048,null,Oh,null,[nf]),oi(10,16384,null,0,qh,[[4,Oh]],null,null),(t()(),vo(11,0,null,null,1,"button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.processEntry()&&r),r},null,null)),(t()(),Ii(-1,null,["Refresh"])),(t()(),vo(13,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,Of)),oi(15,16384,null,0,Uu,[bn,mn],{ngIf:[0,"ngIf"]},null),(t()(),go(16777216,null,null,1,null,Pf)),oi(17,16384,null,0,Uu,[bn,mn],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,5,0,""),t(e,8,0,n.enteredData),t(e,15,0,n.socket),t(e,17,0,!n.socket)},function(t,e){t(e,3,0,Go(e,5).required?"":null,Go(e,10).ngClassUntouched,Go(e,10).ngClassTouched,Go(e,10).ngClassPristine,Go(e,10).ngClassDirty,Go(e,10).ngClassValid,Go(e,10).ngClassInvalid,Go(e,10).ngClassPending)})}var Nf=Vo("app-socket",Tf,function(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"app-socket",[],null,null,null,Rf,If)),oi(1,114688,null,0,Tf,[$c,Vp,uf],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),Vf=function(){function t(t,e,n){this.route=t,this.router=e,this.channelzService=n,this.enteredData="0",this.id=0}return t.prototype.ngOnInit=function(){var t=this;this.render(),this.route.params.subscribe(function(e){return t.render()})},t.prototype.processEntry=function(){this.router.navigateByUrl("/channelz/channel/"+this.enteredData)},t.prototype.render=function(){var t=this,e=this.route.snapshot.paramMap.get("id");this.id=null==e?0:+e,this.enteredData=this.id.toString(),this.channelzService.getChannel(this.id).subscribe(function(e){return t.handleResponse(e)})},t.prototype.handleResponse=function(t){this.channel=t.getChannel(),this.channelDataStr=sh(this.channel.getData())},t}(),Df=Ur({encapsulation:0,styles:[[""]],data:{}});function Mf(t){return Pi(0,[(t()(),vo(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/channel/",e.context.$implicit.getChannelId(),""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.getChannelId(),e.context.$implicit.getName())})}function jf(t){return Pi(0,[(t()(),vo(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/subchannel/",e.context.$implicit.getSubchannelId(),""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.getSubchannelId(),e.context.$implicit.getName())})}function Lf(t){return Pi(0,[(t()(),vo(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/socket/",e.context.$implicit.getSocketId(),""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.getSocketId(),e.context.$implicit.getName())})}function Uf(t){return Pi(0,[(t()(),vo(0,0,null,null,37,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,36,"table",[],null,null,null,null,null)),(t()(),vo(2,0,null,null,35,"tbody",[],null,null,null,null,null)),(t()(),vo(3,0,null,null,4,"tr",[],null,null,null,null,null)),(t()(),vo(4,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Field"])),(t()(),vo(6,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Value"])),(t()(),vo(8,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(9,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["ChannelRef"])),(t()(),vo(11,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(12,0,null,null,1,"pre",[],null,null,null,null,null)),(t()(),Ii(13,null,["","[","]"])),(t()(),vo(14,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(15,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Data"])),(t()(),vo(17,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(18,0,null,null,1,"pre",[],null,null,null,null,null)),(t()(),Ii(19,null,["",""])),(t()(),vo(20,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(21,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Channels"])),(t()(),vo(23,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,Mf)),oi(25,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),vo(26,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(27,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Subchannels"])),(t()(),vo(29,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,jf)),oi(31,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),vo(32,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(33,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Sockets"])),(t()(),vo(35,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,Lf)),oi(37,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,25,0,n.channel.getChannelRefList()),t(e,31,0,n.channel.getSubchannelRefList()),t(e,37,0,n.channel.getSocketRefList())},function(t,e){var n=e.component;t(e,13,0,n.channel.getRef().getChannelId(),n.channel.getRef().getName()),t(e,19,0,n.channelDataStr)})}function zf(t){return Pi(0,[(t()(),vo(0,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Channel does not exist"]))],null,null)}function Ff(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"h3",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Showing channel:"])),(t()(),vo(2,0,[["textbox",1]],null,7,"input",[["required",""],["type","text"]],[[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,"keyup.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==Go(t,3)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Go(t,3).onTouched()&&r),"compositionstart"===e&&(r=!1!==Go(t,3)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Go(t,3)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.enteredData=n)&&r),"keyup.enter"===e&&(r=!1!==o.processEntry()&&r),r},null,null)),oi(3,16384,null,0,Eh,[cn,pn,[2,xh]],null,null),oi(4,16384,null,0,rf,[],{required:[0,"required"]},null),li(1024,null,vh,function(t){return[t]},[rf]),li(1024,null,Ch,function(t){return[t]},[Eh]),oi(7,671744,null,0,nf,[[8,null],[6,vh],[8,null],[6,Ch]],{model:[0,"model"]},{update:"ngModelChange"}),li(2048,null,Oh,null,[nf]),oi(9,16384,null,0,qh,[[4,Oh]],null,null),(t()(),vo(10,0,null,null,1,"button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.processEntry()&&r),r},null,null)),(t()(),Ii(-1,null,["Refresh"])),(t()(),vo(12,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,Uf)),oi(14,16384,null,0,Uu,[bn,mn],{ngIf:[0,"ngIf"]},null),(t()(),go(16777216,null,null,1,null,zf)),oi(16,16384,null,0,Uu,[bn,mn],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,4,0,""),t(e,7,0,n.enteredData),t(e,14,0,n.channel),t(e,16,0,!n.channel&&n.id)},function(t,e){t(e,2,0,Go(e,4).required?"":null,Go(e,9).ngClassUntouched,Go(e,9).ngClassTouched,Go(e,9).ngClassPristine,Go(e,9).ngClassDirty,Go(e,9).ngClassValid,Go(e,9).ngClassInvalid,Go(e,9).ngClassPending)})}var Hf=Vo("app-channel",Vf,function(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"app-channel",[],null,null,null,Ff,Df)),oi(1,114688,null,0,Vf,[$c,Vp,uf],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),qf=function(){function t(t,e,n){this.route=t,this.router=e,this.channelzService=n}return t.prototype.ngOnInit=function(){var t=this;this.render(),this.route.params.subscribe(function(e){return t.render()})},t.prototype.processEntry=function(){this.router.navigateByUrl("/channelz/subchannel/"+this.enteredData)},t.prototype.render=function(){var t=this,e=this.route.snapshot.paramMap.get("id");this.id=null==e?0:+e,this.enteredData=this.id.toString(),this.channelzService.getSubchannel(this.id).subscribe(function(e){return t.handleResponse(e)})},t.prototype.handleResponse=function(t){this.subchannel=t.getSubchannel(),this.subchannelDataStr=sh(this.subchannel.getData())},t}(),Bf=Ur({encapsulation:0,styles:[[""]],data:{}});function Gf(t){return Pi(0,[(t()(),vo(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/channel/",e.context.$implicit.getChannelId(),""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.getChannelId(),e.context.$implicit.getName())})}function Kf(t){return Pi(0,[(t()(),vo(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/subchannel/",e.context.$implicit.getChannelId(),""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.getSubchannelId(),e.context.$implicit.getName())})}function Wf(t){return Pi(0,[(t()(),vo(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/socket/",e.context.$implicit.getSocketId(),""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.getSocketId(),e.context.$implicit.getName())})}function Zf(t){return Pi(0,[(t()(),vo(0,0,null,null,37,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,36,"table",[],null,null,null,null,null)),(t()(),vo(2,0,null,null,35,"tbody",[],null,null,null,null,null)),(t()(),vo(3,0,null,null,4,"tr",[],null,null,null,null,null)),(t()(),vo(4,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Field"])),(t()(),vo(6,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Value"])),(t()(),vo(8,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(9,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["SubchannelRef"])),(t()(),vo(11,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(12,0,null,null,1,"pre",[],null,null,null,null,null)),(t()(),Ii(13,null,["","[","]"])),(t()(),vo(14,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(15,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Data"])),(t()(),vo(17,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(18,0,null,null,1,"pre",[],null,null,null,null,null)),(t()(),Ii(19,null,["",""])),(t()(),vo(20,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(21,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Channels"])),(t()(),vo(23,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,Gf)),oi(25,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),vo(26,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(27,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Subchannels"])),(t()(),vo(29,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,Kf)),oi(31,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),vo(32,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(33,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Sockets"])),(t()(),vo(35,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,Wf)),oi(37,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,25,0,n.subchannel.getChannelRefList()),t(e,31,0,n.subchannel.getSubchannelRefList()),t(e,37,0,n.subchannel.getSocketRefList())},function(t,e){var n=e.component;t(e,13,0,n.subchannel.getRef().getSubchannelId(),n.subchannel.getRef().getName()),t(e,19,0,n.subchannelDataStr)})}function $f(t){return Pi(0,[(t()(),vo(0,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Subchannel does not exist"]))],null,null)}function Qf(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"h3",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Showing subchannel:"])),(t()(),vo(2,0,[["textbox",1]],null,7,"input",[["required",""],["type","text"]],[[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,"keyup.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==Go(t,3)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Go(t,3).onTouched()&&r),"compositionstart"===e&&(r=!1!==Go(t,3)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Go(t,3)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.enteredData=n)&&r),"keyup.enter"===e&&(r=!1!==o.processEntry()&&r),r},null,null)),oi(3,16384,null,0,Eh,[cn,pn,[2,xh]],null,null),oi(4,16384,null,0,rf,[],{required:[0,"required"]},null),li(1024,null,vh,function(t){return[t]},[rf]),li(1024,null,Ch,function(t){return[t]},[Eh]),oi(7,671744,null,0,nf,[[8,null],[6,vh],[8,null],[6,Ch]],{model:[0,"model"]},{update:"ngModelChange"}),li(2048,null,Oh,null,[nf]),oi(9,16384,null,0,qh,[[4,Oh]],null,null),(t()(),vo(10,0,null,null,1,"button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.processEntry()&&r),r},null,null)),(t()(),Ii(-1,null,["Refresh"])),(t()(),vo(12,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,Zf)),oi(14,16384,null,0,Uu,[bn,mn],{ngIf:[0,"ngIf"]},null),(t()(),go(16777216,null,null,1,null,$f)),oi(16,16384,null,0,Uu,[bn,mn],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,4,0,""),t(e,7,0,n.enteredData),t(e,14,0,n.subchannel),t(e,16,0,!n.subchannel&&n.id)},function(t,e){t(e,2,0,Go(e,4).required?"":null,Go(e,9).ngClassUntouched,Go(e,9).ngClassTouched,Go(e,9).ngClassPristine,Go(e,9).ngClassDirty,Go(e,9).ngClassValid,Go(e,9).ngClassInvalid,Go(e,9).ngClassPending)})}var Jf=Vo("app-subchannel",qf,function(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"app-subchannel",[],null,null,null,Qf,Bf)),oi(1,114688,null,0,qf,[$c,Vp,uf],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),Yf=function(){function t(t,e,n){this.route=t,this.router=e,this.channelzService=n}return t.prototype.ngOnInit=function(){var t=this;this.render(),this.route.params.subscribe(function(e){return t.render()})},t.prototype.processEntry=function(){this.router.navigateByUrl("/channelz/serversockets/"+this.serverId+"/"+this.socketStartId)},t.prototype.render=function(){var t=this,e=this.route.snapshot.paramMap.get("serverId");this.serverId=null==e?0:+e;var n=this.route.snapshot.paramMap.get("socketStartId");this.socketStartId=null==n?0:+n,this.channelzService.getServerSockets(this.serverId,this.socketStartId).subscribe(function(e){return t.handleResponse(e)})},t.prototype.handleResponse=function(t){this.sockets=t.getSocketRefList(),this.nextSocketId=t.getEnd()?null:this.sockets[this.sockets.length-1].getSocketId()},t}(),Xf=Ur({encapsulation:0,styles:[[""]],data:{}});function td(t){return Pi(0,[(t()(),vo(0,0,null,null,4,"tr",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),vo(2,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,3).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(3,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(4,null,["","[","]"]))],function(t,e){t(e,3,0,ho(1,"/channelz/socket/",e.context.$implicit.getSocketId(),""))},function(t,e){t(e,2,0,Go(e,3).target,Go(e,3).href),t(e,4,0,e.context.$implicit.getSocketId(),e.context.$implicit.getName())})}function ed(t){return Pi(0,[(t()(),vo(0,0,null,null,3,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(-1,null,["Click here for next page"]))],function(t,e){var n=e.component;t(e,2,0,ho(2,"/channelz/serversockets/",n.serverId,"/",n.nextSocketId,""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href)})}function nd(t){return Pi(0,[(t()(),vo(0,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Ii(-1,null,["End of results"]))],null,null)}function rd(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"h3",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Showing server sockets starting from:"])),(t()(),Ii(-1,null,["\nServer id:\n"])),(t()(),vo(3,0,[["serverIdTextBox",1]],null,7,"input",[["required",""],["type","text"]],[[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,"keyup.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==Go(t,4)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Go(t,4).onTouched()&&r),"compositionstart"===e&&(r=!1!==Go(t,4)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Go(t,4)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.serverId=n)&&r),"keyup.enter"===e&&(r=!1!==o.processEntry()&&r),r},null,null)),oi(4,16384,null,0,Eh,[cn,pn,[2,xh]],null,null),oi(5,16384,null,0,rf,[],{required:[0,"required"]},null),li(1024,null,vh,function(t){return[t]},[rf]),li(1024,null,Ch,function(t){return[t]},[Eh]),oi(8,671744,null,0,nf,[[8,null],[6,vh],[8,null],[6,Ch]],{model:[0,"model"]},{update:"ngModelChange"}),li(2048,null,Oh,null,[nf]),oi(10,16384,null,0,qh,[[4,Oh]],null,null),(t()(),Ii(-1,null,["\nStarting socket:\n"])),(t()(),vo(12,0,[["socketStartIdTextBox",1]],null,7,"input",[["required",""],["type","text"]],[[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,"keyup.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==Go(t,13)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Go(t,13).onTouched()&&r),"compositionstart"===e&&(r=!1!==Go(t,13)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Go(t,13)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.socketStartId=n)&&r),"keyup.enter"===e&&(r=!1!==o.processEntry()&&r),r},null,null)),oi(13,16384,null,0,Eh,[cn,pn,[2,xh]],null,null),oi(14,16384,null,0,rf,[],{required:[0,"required"]},null),li(1024,null,vh,function(t){return[t]},[rf]),li(1024,null,Ch,function(t){return[t]},[Eh]),oi(17,671744,null,0,nf,[[8,null],[6,vh],[8,null],[6,Ch]],{model:[0,"model"]},{update:"ngModelChange"}),li(2048,null,Oh,null,[nf]),oi(19,16384,null,0,qh,[[4,Oh]],null,null),(t()(),vo(20,0,null,null,1,"button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.processEntry()&&r),r},null,null)),(t()(),Ii(-1,null,["Refresh"])),(t()(),vo(22,0,null,null,7,"div",[],null,null,null,null,null)),(t()(),vo(23,0,null,null,6,"table",[],null,null,null,null,null)),(t()(),vo(24,0,null,null,5,"tbody",[],null,null,null,null,null)),(t()(),vo(25,0,null,null,2,"tr",[],null,null,null,null,null)),(t()(),vo(26,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Sockets"])),(t()(),go(16777216,null,null,1,null,td)),oi(29,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),go(16777216,null,null,1,null,ed)),oi(31,16384,null,0,Uu,[bn,mn],{ngIf:[0,"ngIf"]},null),(t()(),go(16777216,null,null,1,null,nd)),oi(33,16384,null,0,Uu,[bn,mn],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,5,0,""),t(e,8,0,n.serverId),t(e,14,0,""),t(e,17,0,n.socketStartId),t(e,29,0,n.sockets),t(e,31,0,n.nextSocketId),t(e,33,0,!n.nextSocketId)},function(t,e){t(e,3,0,Go(e,5).required?"":null,Go(e,10).ngClassUntouched,Go(e,10).ngClassTouched,Go(e,10).ngClassPristine,Go(e,10).ngClassDirty,Go(e,10).ngClassValid,Go(e,10).ngClassInvalid,Go(e,10).ngClassPending),t(e,12,0,Go(e,14).required?"":null,Go(e,19).ngClassUntouched,Go(e,19).ngClassTouched,Go(e,19).ngClassPristine,Go(e,19).ngClassDirty,Go(e,19).ngClassValid,Go(e,19).ngClassInvalid,Go(e,19).ngClassPending)})}var od=Vo("app-server-sockets",Yf,function(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"app-server-sockets",[],null,null,null,rd,Xf)),oi(1,114688,null,0,Yf,[$c,Vp,uf],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),id=function(){function t(){}return t.prototype.ngOnInit=function(){},t}(),ld=Ur({encapsulation:0,styles:[[""]],data:{}});function ud(t){return Pi(0,[(t()(),vo(0,0,null,null,5,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Java notes:"])),(t()(),vo(3,0,null,null,2,"ul",[],null,null,null,null,null)),(t()(),vo(4,0,null,null,1,"li",[],null,null,null,null,null)),(t()(),Ii(-1,null,["InProcessTransport is not a real socket, so in process servers and channels will not provide socket level stats. If you try to load an InProcesTransport, channelz will report that the socket is not found. This is normal. Use the provided channel, subchannel, or server level stats instead."]))],null,null)}var ad=Vo("app-help",id,function(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"app-help",[],null,null,null,ud,ld)),oi(1,114688,null,0,id,[],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),sd=Ur({encapsulation:0,styles:[[""]],data:{}});function cd(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Channelz"])),(t()(),vo(2,0,null,null,49,"nav",[],null,null,null,null,null)),(t()(),vo(3,0,null,null,5,"a",[["routerLink","/channelz/servers"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,4).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(4,671744,[[2,4]],0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),oi(5,1720320,null,2,Up,[Vp,pn,cn,_n],{routerLinkActive:[0,"routerLinkActive"]},null),wi(603979776,1,{links:1}),wi(603979776,2,{linksWithHrefs:1}),(t()(),Ii(-1,null,["Servers"])),(t()(),Ii(-1,null,["\xa0\xa0 "])),(t()(),vo(10,0,null,null,5,"a",[["routerLink","/channelz/topchannels"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,11).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(11,671744,[[4,4]],0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),oi(12,1720320,null,2,Up,[Vp,pn,cn,_n],{routerLinkActive:[0,"routerLinkActive"]},null),wi(603979776,3,{links:1}),wi(603979776,4,{linksWithHrefs:1}),(t()(),Ii(-1,null,["TopChannels"])),(t()(),Ii(-1,null,["\xa0\xa0 "])),(t()(),vo(17,0,null,null,5,"a",[["routerLink","/channelz/serversockets"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,18).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(18,671744,[[6,4]],0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),oi(19,1720320,null,2,Up,[Vp,pn,cn,_n],{routerLinkActive:[0,"routerLinkActive"]},null),wi(603979776,5,{links:1}),wi(603979776,6,{linksWithHrefs:1}),(t()(),Ii(-1,null,["Server sockets"])),(t()(),Ii(-1,null,["\xa0\xa0 "])),(t()(),vo(24,0,null,null,5,"a",[["routerLink","/channelz/channel"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,25).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(25,671744,[[8,4]],0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),oi(26,1720320,null,2,Up,[Vp,pn,cn,_n],{routerLinkActive:[0,"routerLinkActive"]},null),wi(603979776,7,{links:1}),wi(603979776,8,{linksWithHrefs:1}),(t()(),Ii(-1,null,["Channel"])),(t()(),Ii(-1,null,["\xa0\xa0 "])),(t()(),vo(31,0,null,null,5,"a",[["routerLink","/channelz/subchannel"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,32).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(32,671744,[[10,4]],0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),oi(33,1720320,null,2,Up,[Vp,pn,cn,_n],{routerLinkActive:[0,"routerLinkActive"]},null),wi(603979776,9,{links:1}),wi(603979776,10,{linksWithHrefs:1}),(t()(),Ii(-1,null,["Subchannel"])),(t()(),Ii(-1,null,["\xa0\xa0 "])),(t()(),vo(38,0,null,null,5,"a",[["routerLink","/channelz/socket"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,39).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(39,671744,[[12,4]],0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),oi(40,1720320,null,2,Up,[Vp,pn,cn,_n],{routerLinkActive:[0,"routerLinkActive"]},null),wi(603979776,11,{links:1}),wi(603979776,12,{linksWithHrefs:1}),(t()(),Ii(-1,null,["Socket"])),(t()(),Ii(-1,null,["\xa0\xa0 "])),(t()(),vo(45,0,null,null,5,"a",[["routerLink","/channelz/help"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,46).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(46,671744,[[14,4]],0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),oi(47,1720320,null,2,Up,[Vp,pn,cn,_n],{routerLinkActive:[0,"routerLinkActive"]},null),wi(603979776,13,{links:1}),wi(603979776,14,{linksWithHrefs:1}),(t()(),Ii(-1,null,["Help"])),(t()(),Ii(-1,null,["\xa0\xa0\n"])),(t()(),vo(52,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),oi(53,212992,null,0,Hp,[Fp,bn,Ae,[8,null],_n],null,null)],function(t,e){t(e,4,0,"/channelz/servers"),t(e,5,0,"active"),t(e,11,0,"/channelz/topchannels"),t(e,12,0,"active"),t(e,18,0,"/channelz/serversockets"),t(e,19,0,"active"),t(e,25,0,"/channelz/channel"),t(e,26,0,"active"),t(e,32,0,"/channelz/subchannel"),t(e,33,0,"active"),t(e,39,0,"/channelz/socket"),t(e,40,0,"active"),t(e,46,0,"/channelz/help"),t(e,47,0,"active"),t(e,53,0)},function(t,e){t(e,3,0,Go(e,4).target,Go(e,4).href),t(e,10,0,Go(e,11).target,Go(e,11).href),t(e,17,0,Go(e,18).target,Go(e,18).href),t(e,24,0,Go(e,25).target,Go(e,25).href),t(e,31,0,Go(e,32).target,Go(e,32).href),t(e,38,0,Go(e,39).target,Go(e,39).href),t(e,45,0,Go(e,46).target,Go(e,46).href)})}var pd=Vo("app-root",bu,function(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"app-root",[],null,null,null,cd,sd)),oi(1,49152,null,0,bu,[],null,null)],null,null)},{},{},[]),hd=function(){},fd=function(){},dd=function(){function t(t){var e=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){e.headers=new Map,t.split("\n").forEach(function(t){var n=t.indexOf(":");if(n>0){var r=t.slice(0,n),o=r.toLowerCase(),i=t.slice(n+1).trim();e.maybeSetNormalizedName(r,o),e.headers.has(o)?e.headers.get(o).push(i):e.headers.set(o,[i])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(o,r),e.maybeSetNormalizedName(n,o))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,a(n)),this.headers.set(e,r);break;case"d":var o=t.value;if(o){var i=this.headers.get(e);if(!i)return;0===(i=i.filter(function(t){return-1===o.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),gd=function(){function t(){}return t.prototype.encodeKey=function(t){return vd(t)},t.prototype.encodeValue=function(t){return vd(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function vd(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var yd=function(){function t(t){void 0===t&&(t={});var e,n,r,o=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new gd,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,r=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),o=u(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),i=o[0],l=o[1],a=r.get(i)||[];a.push(l),r.set(i,a)}),r)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];o.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],o=r.indexOf(e.value);-1!==o&&r.splice(o,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=null)},t}();function md(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function bd(t){return"undefined"!=typeof Blob&&t instanceof Blob}function _d(t){return"undefined"!=typeof FormData&&t instanceof FormData}var wd=function(){function t(t,e,n,r){var o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new dd),this.params){var i=this.params.toString();if(0===i.length)this.urlWithParams=e;else{var l=e.indexOf("?");this.urlWithParams=e+(-1===l?"?":l=200&&this.status<300}}(),xd=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=Cd.ResponseHeader,n}return o(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(Sd),Ed=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=Cd.Response,n.body=void 0!==e.body?e.body:null,n}return o(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(Sd),kd=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return o(e,t),e}(Sd);function Td(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var Id=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r,o=this;if(void 0===n&&(n={}),t instanceof wd)r=t;else{var i;i=n.headers instanceof dd?n.headers:new dd(n.headers);var l=void 0;n.params&&(l=n.params instanceof yd?n.params:new yd({fromObject:n.params})),r=new wd(t,e,void 0!==n.body?n.body:null,{headers:i,params:l,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var u=Wu(r).pipe($u(function(t){return o.handler.handle(t)}));if(t instanceof wd||"events"===n.observe)return u;var a=u.pipe(Qu(function(t){return t instanceof Ed}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return a.pipe(B(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return a.pipe(B(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return a.pipe(B(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return a.pipe(B(function(t){return t.body}))}case"response":return a;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new yd).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,Td(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,Td(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,Td(n,e))},t}(),Ad=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),Od=new ft("HTTP_INTERCEPTORS"),Pd=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}(),Rd=/^\)\]\}',?\n/,Nd=function(){},Vd=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),Dd=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new O(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var o=t.detectContentTypeHeader();null!==o&&r.setRequestHeader("Content-Type",o)}if(t.responseType){var i=t.responseType.toLowerCase();r.responseType="json"!==i?i:"text"}var l=t.serializeBody(),u=null,a=function(){if(null!==u)return u;var e=1223===r.status?204:r.status,n=r.statusText||"OK",o=new dd(r.getAllResponseHeaders()),i=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return u=new xd({headers:o,status:e,statusText:n,url:i})},s=function(){var e=a(),o=e.headers,i=e.status,l=e.statusText,u=e.url,s=null;204!==i&&(s=void 0===r.response?r.responseText:r.response),0===i&&(i=s?200:0);var c=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof s){var p=s;s=s.replace(Rd,"");try{s=""!==s?JSON.parse(s):null}catch(t){s=p,c&&(c=!1,s={error:t,text:s})}}c?(n.next(new Ed({body:s,headers:o,status:i,statusText:l,url:u||void 0})),n.complete()):n.error(new kd({error:s,headers:o,status:i,statusText:l,url:u||void 0}))},c=function(t){var e=new kd({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(e)},p=!1,h=function(e){p||(n.next(a()),p=!0);var o={type:Cd.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(o.total=e.total),"text"===t.responseType&&r.responseText&&(o.partialText=r.responseText),n.next(o)},f=function(t){var e={type:Cd.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",s),r.addEventListener("error",c),t.reportProgress&&(r.addEventListener("progress",h),null!==l&&r.upload&&r.upload.addEventListener("progress",f)),r.send(l),n.next({type:Cd.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",s),t.reportProgress&&(r.removeEventListener("progress",h),null!==l&&r.upload&&r.upload.removeEventListener("progress",f)),r.abort()}})},t}(),Md=new ft("XSRF_COOKIE_NAME"),jd=new ft("XSRF_HEADER_NAME"),Ld=function(){},Ud=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Du(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}(),zd=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t}(),Fd=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(Od,[]);this.chain=e.reduceRight(function(t,e){return new Ad(t,e)},this.backend)}return this.chain.handle(t)},t}(),Hd=function(){function t(){}return t.disable=function(){return{ngModule:t,providers:[{provide:zd,useClass:Pd}]}},t.withOptions=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[e.cookieName?{provide:Md,useValue:e.cookieName}:[],e.headerName?{provide:jd,useValue:e.headerName}:[]]}},t}(),qd=function(){},Bd=function(){},Gd=function(t,e,n){return new Ll(mu,[bu],function(t){return function(t){for(var e={},n=[],r=!1,o=0;o",this._properties=t&&t.properties||{},this._zoneDelegate=new c(this,this._parent&&this._parent._zoneDelegate,t)}return t.assertZonePatched=function(){if(e.Promise!==O.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(t,"root",{get:function(){for(var e=t.current;e.parent;)e=e.parent;return e},enumerable:!0,configurable:!0}),Object.defineProperty(t,"current",{get:function(){return D.zone},enumerable:!0,configurable:!0}),Object.defineProperty(t,"currentTask",{get:function(){return j},enumerable:!0,configurable:!0}),t.__load_patch=function(o,i){if(O.hasOwnProperty(o))throw Error("Already loaded patch: "+o);if(!e["__Zone_disable_"+o]){var a="Zone:"+o;n(a),O[o]=i(e,t,S),r(a,a)}},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),t.prototype.get=function(e){var t=this.getZoneWith(e);if(t)return t._properties[e]},t.prototype.getZoneWith=function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null},t.prototype.fork=function(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)},t.prototype.wrap=function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);var n=this._zoneDelegate.intercept(this,e,t),r=this;return function(){return r.runGuarded(n,this,arguments,t)}},t.prototype.run=function(e,t,n,r){void 0===t&&(t=void 0),void 0===n&&(n=null),void 0===r&&(r=null),D={parent:D,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{D=D.parent}},t.prototype.runGuarded=function(e,t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),D={parent:D,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{D=D.parent}},t.prototype.runTask=function(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||g).name+"; Execution: "+this.name+")");if(e.state!==y||e.type!==x){var r=e.state!=k;r&&e._transitionTo(k,m),e.runCount++;var o=j;j=e,D={parent:D,zone:this};try{e.type==E&&e.data&&!e.data.isPeriodic&&(e.cancelFn=null);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{e.state!==y&&e.state!==T&&(e.type==x||e.data&&e.data.isPeriodic?r&&e._transitionTo(m,k):(e.runCount=0,this._updateTaskCount(e,-1),r&&e._transitionTo(y,k,y))),D=D.parent,j=o}}},t.prototype.scheduleTask=function(e){if(e.zone&&e.zone!==this)for(var t=this;t;){if(t===e.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+e.zone.name);t=t.parent}e._transitionTo(_,y);var n=[];e._zoneDelegates=n,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(t){throw e._transitionTo(T,_,y),this._zoneDelegate.handleError(this,t),t}return e._zoneDelegates===n&&this._updateTaskCount(e,1),e.state==_&&e._transitionTo(m,_),e},t.prototype.scheduleMicroTask=function(e,t,n,r){return this.scheduleTask(new u(w,e,t,n,r,null))},t.prototype.scheduleMacroTask=function(e,t,n,r,o){return this.scheduleTask(new u(E,e,t,n,r,o))},t.prototype.scheduleEventTask=function(e,t,n,r,o){return this.scheduleTask(new u(x,e,t,n,r,o))},t.prototype.cancelTask=function(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||g).name+"; Execution: "+this.name+")");e._transitionTo(b,m,k);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(T,b),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(y,b),e.runCount=0,e},t.prototype._updateTaskCount=function(e,t){var n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(var r=0;r0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})},e}(),u=function(){function t(n,r,o,i,a,c){this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=i,this.scheduleFn=a,this.cancelFn=c,this.callback=o;var u=this;this.invoke=n===x&&i&&i.useG?t.invokeTask:function(){return t.invokeTask.call(e,u,this,arguments)}}return t.invokeTask=function(e,t,n){e||(e=this),Z++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==Z&&d(),Z--}},Object.defineProperty(t.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),t.prototype.cancelScheduleRequest=function(){this._transitionTo(y,_)},t.prototype._transitionTo=function(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(this.type+" '"+this.source+"': can not transition to '"+e+"', expecting state '"+t+"'"+(n?" or '"+n+"'":"")+", was '"+this._state+"'.");this._state=e,e==y&&(this._zoneDelegates=null)},t.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId:Object.prototype.toString.call(this)},t.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},t}(),s=z("setTimeout"),l=z("Promise"),f=z("then"),p=[],h=!1;function v(t){0===Z&&0===p.length&&(o||e[l]&&(o=e[l].resolve(0)),o?o[f](d):e[s](d,0)),t&&p.push(t)}function d(){if(!h){for(h=!0;p.length;){var e=p;p=[];for(var t=0;t=0;n--)"function"==typeof e[n]&&(e[n]=p(e[n],t+"_"+n));return e}function b(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var T="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,w=!("nw"in y)&&void 0!==y.process&&"[object process]"==={}.toString.call(y.process),E=!w&&!T&&!(!d||!g.HTMLElement),x=void 0!==y.process&&"[object process]"==={}.toString.call(y.process)&&!T&&!(!d||!g.HTMLElement),O={},S=function(e){if(e=e||y.event){var t=O[e.type];t||(t=O[e.type]=v("ON_PROPERTY"+e.type));var n=(this||e.target||y)[t],r=n&&n.apply(this,arguments);return void 0==r||r||e.preventDefault(),r}};function D(n,r,o){var i=e(n,r);if(!i&&o&&e(o,r)&&(i={enumerable:!0,configurable:!0}),i&&i.configurable){delete i.writable,delete i.value;var a=i.get,c=i.set,u=r.substr(2),s=O[u];s||(s=O[u]=v("ON_PROPERTY"+u)),i.set=function(e){var t=this;t||n!==y||(t=y),t&&(t[s]&&t.removeEventListener(u,S),c&&c.apply(t,m),"function"==typeof e?(t[s]=e,t.addEventListener(u,S,!1)):t[s]=null)},i.get=function(){var e=this;if(e||n!==y||(e=y),!e)return null;var t=e[s];if(t)return t;if(a){var o=a&&a.call(this);if(o)return i.set.call(this,o),"function"==typeof e[_]&&e.removeAttribute(r),o}return null},t(n,r,i)}}function j(e,t,n){if(t)for(var r=0;r1?new c(t,n):new c(t),f=e(l,"onmessage");return f&&!1===f.configurable?(u=r(l),s=l,[i,a,"send","close"].forEach(function(e){u[e]=function(){var t=o.call(arguments);if(e===i||e===a){var n=t.length>0?t[0]:void 0;if(n){var r=Zone.__symbol__("ON_PROPERTY"+n);l[r]=u[r]}}return l[e].apply(l,t)}})):u=l,j(u,["close","error","message","open"],s),u};var u=n.WebSocket;for(var s in c)u[s]=c[s]}(0,u)}}var fe=v("unbound");Zone.__load_patch("util",function(e,t,n){n.patchOnProperties=j,n.patchMethod=z,n.bindArguments=k}),Zone.__load_patch("timers",function(e){K(e,"set","clear","Timeout"),K(e,"set","clear","Interval"),K(e,"set","clear","Immediate")}),Zone.__load_patch("requestAnimationFrame",function(e){K(e,"request","cancel","AnimationFrame"),K(e,"mozRequest","mozCancel","AnimationFrame"),K(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",function(e,t){for(var n=["alert","prompt","confirm"],r=0;r=0&&"function"==typeof n[r.cbIdx]?h(r.name,n[r.cbIdx],r,i,null):e.apply(t,n)}})}()}),Zone.__load_patch("XHR",function(e,t){!function(t){var s=XMLHttpRequest.prototype,l=s[c],f=s[u];if(!l){var p=e.XMLHttpRequestEventTarget;if(p){var v=p.prototype;l=v[c],f=v[u]}}var d="readystatechange",g="scheduled";function y(e){XMLHttpRequest[i]=!1;var t=e.data,r=t.target,a=r[o];l||(l=r[c],f=r[u]),a&&f.call(r,d,a);var s=r[o]=function(){r.readyState===r.DONE&&!t.aborted&&XMLHttpRequest[i]&&e.state===g&&e.invoke()};return l.call(r,d,s),r[n]||(r[n]=e),b.apply(r,t.args),XMLHttpRequest[i]=!0,e}function _(){}function m(e){var t=e.data;return t.aborted=!0,T.apply(t.target,t.args)}var k=z(s,"open",function(){return function(e,t){return e[r]=0==t[2],e[a]=t[1],k.apply(e,t)}}),b=z(s,"send",function(){return function(e,t){return e[r]?b.apply(e,t):h("XMLHttpRequest.send",_,{target:e,url:e[a],isPeriodic:!1,delay:null,args:t,aborted:!1},y,m)}}),T=z(s,"abort",function(){return function(e){var t=e[n];if(t&&"string"==typeof t.type){if(null==t.cancelFn||t.data&&t.data.aborted)return;t.zone.cancelTask(t)}}})}();var n=v("xhrTask"),r=v("xhrSync"),o=v("xhrListener"),i=v("xhrScheduled"),a=v("xhrURL")}),Zone.__load_patch("geolocation",function(t){t.navigator&&t.navigator.geolocation&&function(t,n){for(var r=t.constructor.name,o=function(o){var i=n[o],a=t[i];if(a){if(!b(e(t,i)))return"continue";t[i]=function(e){var t=function(){return e.apply(this,k(arguments,r+"."+i))};return M(t,e),t}(a)}},i=0;i0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(o(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(o(this,"Map"),0===e?0:e,t)}},r,!0)},"9gX7":function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},Afnz:function(e,t,n){"use strict";var r=n("LQAc"),o=n("XKFU"),i=n("KroJ"),a=n("Mukb"),c=n("hPIQ"),u=n("QaDb"),s=n("fyDq"),l=n("OP3Y"),f=n("K0xU")("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,v,d,g,y){u(n,t,v);var _,m,k,b=function(e){if(!p&&e in x)return x[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",w="values"==d,E=!1,x=e.prototype,O=x[f]||x["@@iterator"]||d&&x[d],S=O||b(d),D=d?w?b("entries"):S:void 0,j="Array"==t&&x.entries||O;if(j&&(k=l(j.call(new e)))!==Object.prototype&&k.next&&(s(k,T,!0),r||"function"==typeof k[f]||a(k,f,h)),w&&O&&"values"!==O.name&&(E=!0,S=function(){return O.call(this)}),r&&!y||!p&&!E&&x[f]||a(x,f,S),c[t]=S,c[T]=h,d)if(_={values:w?S:b("values"),keys:g?S:b("keys"),entries:D},y)for(m in _)m in x||i(x,m,_[m]);else o(o.P+o.F*(p||E),t,_);return _}},BqfV:function(e,t,n){var r=n("N6cJ"),o=n("y3w9"),i=r.get,a=r.key;r.exp({getOwnMetadata:function(e,t){return i(e,o(t),arguments.length<3?void 0:a(arguments[2]))}})},CkkT:function(e,t,n){var r=n("m0Pp"),o=n("Ymqv"),i=n("S/j/"),a=n("ne8i"),c=n("zRwo");e.exports=function(e,t){var n=1==e,u=2==e,s=3==e,l=4==e,f=6==e,p=5==e||f,h=t||c;return function(t,c,v){for(var d,g,y=i(t),_=o(y),m=r(c,v,3),k=a(_.length),b=0,T=n?h(t,k):u?h(t,0):void 0;k>b;b++)if((p||b in _)&&(g=m(d=_[b],b,y),e))if(n)T[b]=g;else if(g)switch(e){case 3:return!0;case 5:return d;case 6:return b;case 2:T.push(d)}else if(l)return!1;return f?-1:s||l?l:T}}},DVgA:function(e,t,n){var r=n("zhAb"),o=n("4R4u");e.exports=Object.keys||function(e){return r(e,o)}},EK0E:function(e,t,n){"use strict";var r,o=n("CkkT")(0),i=n("KroJ"),a=n("Z6vF"),c=n("czNK"),u=n("ZD67"),s=n("0/R4"),l=n("eeVq"),f=n("s5qY"),p=a.getWeak,h=Object.isExtensible,v=u.ufstore,d={},g=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(e){if(s(e)){var t=p(e);return!0===t?v(f(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return u.def(f(this,"WeakMap"),e,t)}},_=e.exports=n("4LiD")("WeakMap",g,y,u,!0,!0);l(function(){return 7!=(new _).set((Object.freeze||Object)(d),7).get(d)})&&(c((r=u.getConstructor(g,"WeakMap")).prototype,y),a.NEED=!0,o(["delete","has","get","set"],function(e){var t=_.prototype,n=t[e];i(t,e,function(t,o){if(s(t)&&!h(t)){this._f||(this._f=new r);var i=this._f[e](t,o);return"set"==e?this:i}return n.call(this,t,o)})}))},EWmC:function(e,t,n){var r=n("LZWt");e.exports=Array.isArray||function(e){return"Array"==r(e)}},EemH:function(e,t,n){var r=n("UqcF"),o=n("RjD/"),i=n("aCFj"),a=n("apmT"),c=n("aagx"),u=n("xpql"),s=Object.getOwnPropertyDescriptor;t.f=n("nh4g")?s:function(e,t){if(e=i(e),t=a(t,!0),u)try{return s(e,t)}catch(e){}if(c(e,t))return o(!r.f.call(e,t),e[t])}},FJW5:function(e,t,n){var r=n("hswa"),o=n("y3w9"),i=n("DVgA");e.exports=n("nh4g")?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),c=a.length,u=0;c>u;)r.f(e,n=a[u++],t[n]);return e}},FZcq:function(e,t,n){n("49D4"),n("zq+C"),n("45Tv"),n("uAtd"),n("BqfV"),n("fN/3"),n("iW+S"),n("7Dlh"),n("Opxb"),e.exports=n("g3g5").Reflect},H6hf:function(e,t,n){var r=n("y3w9");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},"I8a+":function(e,t,n){var r=n("LZWt"),o=n("K0xU")("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},Iw71:function(e,t,n){var r=n("0/R4"),o=n("dyZX").document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},"J+6e":function(e,t,n){var r=n("I8a+"),o=n("K0xU")("iterator"),i=n("hPIQ");e.exports=n("g3g5").getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},JiEa:function(e,t){t.f=Object.getOwnPropertySymbols},K0xU:function(e,t,n){var r=n("VTer")("wks"),o=n("ylqs"),i=n("dyZX").Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},KroJ:function(e,t,n){var r=n("dyZX"),o=n("Mukb"),i=n("aagx"),a=n("ylqs")("src"),c=Function.toString,u=(""+c).split("toString");n("g3g5").inspectSource=function(e){return c.call(e)},(e.exports=function(e,t,n,c){var s="function"==typeof n;s&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(s&&(i(n,a)||o(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:c?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||c.call(this)})},Kuth:function(e,t,n){var r=n("y3w9"),o=n("FJW5"),i=n("4R4u"),a=n("YTvA")("IE_PROTO"),c=function(){},u=function(){var e,t=n("Iw71")("iframe"),r=i.length;for(t.style.display="none",n("+rLv").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(" + + + + + + diff --git a/grpc-zpages/web/channelzui/dist/main.d37ac69a3b9f4f5fdef0.js b/grpc-zpages/web/channelzui/dist/main.d37ac69a3b9f4f5fdef0.js new file mode 100644 index 0000000..02d8cc4 --- /dev/null +++ b/grpc-zpages/web/channelzui/dist/main.d37ac69a3b9f4f5fdef0.js @@ -0,0 +1 @@ +(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{3:function(t,e,n){t.exports=n("zUnb")},crnd:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error('Cannot find module "'+t+'".');throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},zUnb:function(t,e,n){"use strict";n.r(e);var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function u(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,o,i=n.call(t),l=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)l.push(r.value)}catch(t){o={error:t}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return l}function a(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(q);function Y(t){return t}function X(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),$(Y,t)}var tt=function(t){function e(){var n=t.call(this,"object unsubscribed")||this;return n.name="ObjectUnsubscribedError",Object.setPrototypeOf(n,e.prototype),n}return o(e,t),e}(Error),et=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return o(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(w),nt=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return o(e,t),e}(x),rt=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return o(e,t),e.prototype[S]=function(){return new nt(this)},e.prototype.lift=function(t){var e=new ot(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new tt;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),o=0;o1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(x),at=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return o(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new w).add(this.source.subscribe(new ct(this.getSubject(),this))),t.closed?(this._connection=null,t=w.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return it()(this)},e}(O).prototype,st={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:at._subscribe},_isComplete:{value:at._isComplete,writable:!0},getSubject:{value:at.getSubject},connect:{value:at.connect},refCount:{value:at.refCount}},ct=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(nt);function pt(){return new rt}function ht(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}var ft=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==e?ht({providedIn:e.providedIn||"root",factory:e.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),dt="__parameters__";function gt(t,e,n){var r=function(t){return function(){for(var e=[],n=0;n ");else if("object"==typeof e){var o=[];for(var i in e)if(e.hasOwnProperty(i)){var l=e[i];o.push(i+":"+("string"==typeof l?JSON.stringify(l):kt(l)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(Gt,"\n ")}function Qt(t,e){return new Error($t(t,e))}var Jt=void 0;function Yt(t){var e=Jt;return Jt=t,e}String;var Xt=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t}({}),te=new function(t){this.full="6.0.3",this.major="6.0.3".split(".")[0],this.minor="6.0.3".split(".")[1],this.patch="6.0.3".split(".").slice(2).join(".")}("6.0.3"),ee="ngDebugContext",ne="ngOriginalError",re="ngErrorLogger";function oe(t){return t[ee]}function ie(t){return t[ne]}function le(t){for(var e=[],n=1;n0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==o}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),Ze=function(){function t(){this._applications=new Map,$e.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),$e.findTestabilityInTree(this,t,e)},t.ctorParameters=function(){return[]},t}(),$e=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),Qe=!0,Je=!1,Ye=new ft("AllowMultipleToken");function Xe(){return Je=!0,Qe}var tn=function(t,e){this.name=t,this.token=e};function en(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,o=new ft(r);return function(e){void 0===e&&(e=[]);var i=nn();if(!i||i.injector.get(Ye,!1))if(t)t(n.concat(e).concat({provide:o,useValue:!0}));else{var l=n.concat(e).concat({provide:o,useValue:!0});!function(t){if(Ge&&!Ge.destroyed&&!Ge.injector.get(Ye,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ge=t.get(rn);var e=t.get(ve,null);e&&e.forEach(function(t){return t()})}(jt.create({providers:l,name:r}))}return function(t){var e=nn();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(o)}}function nn(){return Ge&&!Ge.destroyed?Ge:null}var rn=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,o="noop"===(n=e?e.ngZone:void 0)?new Ke:("zone.js"===n?void 0:n)||new Ue({enableLongStackTrace:Xe()}),i=[{provide:Ue,useValue:o}];return o.run(function(){var e=jt.create({providers:i,parent:r.injector,name:t.moduleType.name}),n=t.create(e),l=n.injector.get(ue,null);if(!l)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return un(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(t){l.handleError(t)}})}),function(t,e,o){try{var i=((l=n.injector.get(he)).runInitializers(),l.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return se(i)?i.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):i}catch(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}var l}(l,o)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.injector.get(Ce),o=on({},e);return r.createCompiler([o]).compileModuleAsync(t).then(function(t){return n.bootstrapModuleFactory(t,o)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(ln);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+kt(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function on(t,e){return Array.isArray(e)?e.reduce(on,t):i({},t,e)}var ln=function(){function t(t,e,n,r,o,i){var l=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Xe(),this._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run(function(){l.tick()})}});var u=new O(function(t){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular(function(){t.next(l._stable),t.complete()})}),a=new O(function(t){var e;l._zone.runOutsideAngular(function(){e=l._zone.onStable.subscribe(function(){Ue.assertNotInAngularZone(),xt(function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,t.next(!0))})})});var n=l._zone.onUnstable.subscribe(function(){Ue.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof O?t[0]:X(n)(W(t,r))}(u,a.pipe(function(t){return it()((e=pt,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,st);return r.source=t,r.subjectFactory=n,r})(t));var e}))}return t.prototype.bootstrap=function(t,e){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=t instanceof Se?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var o=n instanceof Pe?null:this._injector.get(Re),i=n.create(jt.NULL,[],e||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var l=i.injector.get(We,null);return l&&i.injector.get(Ze).registerApplication(i.location.nativeElement,l),this._loadComponent(i),Xe()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},t.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,je(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;un(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(me,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),un(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=Me("ApplicationRef#tick()"),t}();function un(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var an=function(){},sn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),cn=function(){},pn=function(t){this.nativeElement=t},hn=function(){},fn=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Le,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[St()]=function(){return this._results[St()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),dn=function(){},gn={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},vn=function(){function t(t,e){this._compiler=t,this._config=e||gn}return t.prototype.load=function(t){return this._compiler instanceof we?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=u(t.split("#"),2),o=r[0],i=r[1];return void 0===i&&(i="default"),n("crnd")(o).then(function(t){return t[i]}).then(function(t){return yn(t,o,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=u(t.split("#"),2),r=e[0],o=e[1],i="NgFactory";return void 0===o&&(o="default",i=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[o+i]}).then(function(t){return yn(t,r,o)})},t}();function yn(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var mn=function(){},bn=function(){},_n=function(){},wn=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof Cn?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),Cn=function(t){function e(e,n,r){var o=t.call(this,e,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=e,o}return o(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,r=this,o=this.childNodes.indexOf(t);-1!==o&&((n=this.childNodes).splice.apply(n,a([o+1,0],e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=r}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return function t(e,n,r){e.childNodes.forEach(function(e){e instanceof Cn&&(n(e)&&r.push(e),t(e,n,r))})}(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return function t(e,n,r){e instanceof Cn&&e.childNodes.forEach(function(e){n(e)&&r.push(e),e instanceof Cn&&t(e,n,r)})}(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(wn),Sn=new Map;function xn(t){return Sn.get(t)||null}function En(t){Sn.set(t.nativeNode,t)}function kn(t,e){var n=An(t),r=An(e);return n&&r?function(t,e,n){for(var r=t[St()](),o=e[St()]();;){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}}(t,e,kn):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||Et(t,e)}var Tn=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),In=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function An(t){return!!On(t)&&(Array.isArray(t)||!(t instanceof Map)&&St()in t)}function On(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var Pn=function(){function t(){}return t.prototype.supports=function(t){return An(t)},t.prototype.create=function(t){return new Nn(t)},t}(),Rn=function(t,e){return e},Nn=function(){function t(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Rn}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,o=null;e||n;){var i=!n||e&&e.currentIndex',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t=""+t+"";try{t=encodeURI(t)}catch(t){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(null);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(t){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0")}else this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();sr.hasOwnProperty(e)&&!ir.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(vr(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e},t}(),dr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,gr=/([^\#-~ |!])/g;function vr(t){return t.replace(/&/g,"&").replace(dr,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(gr,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function yr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var mr=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"),br=/^url\(([^)]+)\)$/,_r=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({}),wr=function(){};function Cr(t,e,n){var r=t.state,o=1792&r;return o===e?(t.state=-1793&r|n,t.initIndex=-1,!0):o===n}function Sr(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function xr(t,e){return t.nodes[e]}function Er(t,e){return t.nodes[e]}function kr(t,e){return t.nodes[e]}function Tr(t,e){return t.nodes[e]}function Ir(t,e){return t.nodes[e]}var Ar={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 Or(t,e,n,r){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(t,e){var n=new Error(t);return Pr(n,e),n}(o,t)}function Pr(t,e){t[ee]=e,t[re]=e.logError.bind(e)}function Rr(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}var Nr=function(){},Vr=new Map;function Dr(t){var e=Vr.get(t);return e||(e=kt(t)+"_"+Vr.size,Vr.set(t,e)),e}function Mr(t,e,n,r){if(Tn.isWrapped(r)){r=Tn.unwrap(r);var o=t.def.nodes[e].bindingIndex+n,i=Tn.unwrap(t.oldValues[o]);t.oldValues[o]=new Tn(i)}return r}var jr="$$undefined",Lr="$$empty";function Ur(t){return{id:jr,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}var zr=0;function Fr(t,e,n,r){return!(!(2&t.state)&&Et(t.oldValues[e.bindingIndex+n],r))}function Hr(t,e,n,r){return!!Fr(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function qr(t,e,n,r){var o=t.oldValues[e.bindingIndex+n];if(1&t.state||!kn(o,r)){var i=e.bindings[n].name;throw Or(Ar.createDebugContext(t,e.nodeIndex),i+": "+o,i+": "+r,0!=(1&t.state))}}function Br(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function Gr(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function Kr(t,e,n,r){try{return Br(33554432&t.def.nodes[e].flags?Er(t,e).componentView:t),Ar.handleEvent(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}function Wr(t){return t.parent?Er(t.parent,t.parentNodeDef.nodeIndex):null}function Zr(t){return t.parent?t.parentNodeDef.parent:null}function $r(t,e){switch(201347067&e.flags){case 1:return Er(t,e.nodeIndex).renderElement;case 2:return xr(t,e.nodeIndex).renderText}}function Qr(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function Jr(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function Yr(t){return 1<-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var s=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:e.token.ngInjectableDef.factory,deps:[],index:s,token:e.token},t._providers[s]=wo,t._providers[s]=To(t,t._def.providersByKey[e.tokenKey])}return t._parent.get(e.token,n)}finally{Yt(i)}}function To(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(ko(t,n[0]));case 2:return new e(ko(t,n[0]),ko(t,n[1]));case 3:return new e(ko(t,n[0]),ko(t,n[1]),ko(t,n[2]));default:for(var o=new Array(r),i=0;i=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,Ro(n,e),Ar.dirtyParentQueries(r),Oo(r),r}function Ao(t,e,n){var r=e?$r(e,e.def.lastRenderRootNode):t.renderElement;oo(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Oo(t){oo(t,3,null,null,void 0)}function Po(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Ro(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var No=new Object;function Vo(t,e,n,r,o,i){return new Do(t,e,n,r,o,i)}var Do=function(t){function e(e,n,r,o,i,l){var u=t.call(this)||this;return u.selector=e,u.componentType=n,u._inputs=o,u._outputs=i,u.ngContentSelectors=l,u.viewDefFactory=r,u}return o(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var o=ro(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,l=Ar.createRootView(t,e||[],n,o,r,No),u=kr(l,i).instance;return n&&l.renderer.setAttribute(Er(l,0).renderElement,"ng-version",te.full),new Mo(l,new zo(l),u)},e}(Se),Mo=function(t){function e(e,n,r){var o=t.call(this)||this;return o._view=e,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return o(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new pn(Er(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Bo(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(function(){});function jo(t,e,n){return new Lo(t,e,n)}var Lo=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new pn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Bo(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=Zr(t),t=t.parent;return t?new Bo(t,e):new Bo(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Io(this._data,t);Ar.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new zo(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,o){var i=n||this.parentInjector;o||t instanceof Pe||(o=i.get(Re));var l=t.create(i,r,void 0,o);return this.insert(l.hostView,e),l},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,l=t;return o=l._view,i=(n=this._data).viewContainer._embeddedViews,null!==(r=e)&&void 0!==r||(r=i.length),o.viewContainerParent=this._view,Po(i,r,o),function(t,e){var n=Wr(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,o),Ar.dirtyParentQueries(o),Ao(n,r>0?i[r-1]:null,o),l.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,l,u=this._embeddedViews.indexOf(t._view);return o=e,l=(i=(n=this._data).viewContainer._embeddedViews)[r=u],Ro(i,r),null==o&&(o=i.length),Po(i,o,l),Ar.dirtyParentQueries(l),Oo(l),Ao(n,o>0?i[o-1]:null,l),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Io(this._data,t);e&&Ar.destroyView(e)},t.prototype.detach=function(t){var e=Io(this._data,t);return e?new zo(e):null},t}();function Uo(t){return new zo(t)}var zo=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return oo(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){Br(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{Ar.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Ar.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Ar.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Oo(this._view),Ar.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function Fo(t,e){return new Ho(t,e)}var Ho=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return o(e,t),e.prototype.createEmbeddedView=function(t){return new zo(Ar.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new pn(Er(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(mn);function qo(t,e){return new Bo(t,e)}var Bo=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=jt.THROW_IF_NOT_FOUND),Ar.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Dr(t)},e)},t}();function Go(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Er(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return xr(t,n.nodeIndex).renderText;if(20240&n.flags)return kr(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function Ko(t){return new Wo(t.renderer)}var Wo=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=u(co(e),2),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,r=e.provider;switch(201347067&e.flags){case 512:return fi(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(gi(t,e,n,o[0]));case 2:return r(gi(t,e,n,o[0]),gi(t,e,n,o[1]));case 3:return r(gi(t,e,n,o[0]),gi(t,e,n,o[1]),gi(t,e,n,o[2]));default:for(var l=Array(i),u=0;u0)s=g,Ri(g)||(c=g);else for(;s&&d===s.nodeIndex+s.childCount;){var m=s.parent;m&&(m.childFlags|=s.childFlags,m.childMatchedQueries|=s.childMatchedQueries),c=(s=m)&&Ri(s)?s.renderParent:s}}return{factory:null,nodeFlags:l,rootNodeFlags:u,nodeMatchedQueries:a,flags:t,nodes:e,updateDirectives:n||Nr,updateRenderer:r||Nr,handleEvent:function(t,n,r,o){return e[n].element.handleEvent(t,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:f}}function Ri(t){return 0!=(1&t.flags)&&null===t.element.name}function Ni(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var o=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=o&&e.nodeIndex+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function Vi(t,e,n,r){var o=ji(t.root,t.renderer,t,e,n);return Li(o,t.component,r),Ui(o),o}function Di(t,e,n){var r=ji(t,t.renderer,null,null,e);return Li(r,n,n),Ui(r),r}function Mi(t,e,n,r){var o,i=e.element.componentRendererType;return o=i?t.root.rendererFactory.createRenderer(r,i):t.root.renderer,ji(t.root,o,t,e.element.componentProvider,n)}function ji(t,e,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:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:l,initIndex:-1}}function Li(t,e,n){t.component=e,t.context=n}function Ui(t){var e;Qr(t)&&(e=Er(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,o=0;o0&&_o(t,e,0,n)&&(f=!0),h>1&&_o(t,e,1,r)&&(f=!0),h>2&&_o(t,e,2,o)&&(f=!0),h>3&&_o(t,e,3,i)&&(f=!0),h>4&&_o(t,e,4,l)&&(f=!0),h>5&&_o(t,e,5,u)&&(f=!0),h>6&&_o(t,e,6,a)&&(f=!0),h>7&&_o(t,e,7,s)&&(f=!0),h>8&&_o(t,e,8,c)&&(f=!0),h>9&&_o(t,e,9,p)&&(f=!0),f}(t,e,n,r,o,i,l,u,a,s,c,p);case 2:return function(t,e,n,r,o,i,l,u,a,s,c,p){var h=!1,f=e.bindings,d=f.length;if(d>0&&Hr(t,e,0,n)&&(h=!0),d>1&&Hr(t,e,1,r)&&(h=!0),d>2&&Hr(t,e,2,o)&&(h=!0),d>3&&Hr(t,e,3,i)&&(h=!0),d>4&&Hr(t,e,4,l)&&(h=!0),d>5&&Hr(t,e,5,u)&&(h=!0),d>6&&Hr(t,e,6,a)&&(h=!0),d>7&&Hr(t,e,7,s)&&(h=!0),d>8&&Hr(t,e,8,c)&&(h=!0),d>9&&Hr(t,e,9,p)&&(h=!0),h){var g=e.text.prefix;d>0&&(g+=Oi(n,f[0])),d>1&&(g+=Oi(r,f[1])),d>2&&(g+=Oi(o,f[2])),d>3&&(g+=Oi(i,f[3])),d>4&&(g+=Oi(l,f[4])),d>5&&(g+=Oi(u,f[5])),d>6&&(g+=Oi(a,f[6])),d>7&&(g+=Oi(s,f[7])),d>8&&(g+=Oi(c,f[8])),d>9&&(g+=Oi(p,f[9]));var v=xr(t,e.nodeIndex).renderText;t.renderer.setValue(v,g)}return h}(t,e,n,r,o,i,l,u,a,s,c,p);case 16384:return function(t,e,n,r,o,i,l,u,a,s,c,p){var h=kr(t,e.nodeIndex),f=h.instance,d=!1,g=void 0,v=e.bindings.length;return v>0&&Fr(t,e,0,n)&&(d=!0,g=yi(t,h,e,0,n,g)),v>1&&Fr(t,e,1,r)&&(d=!0,g=yi(t,h,e,1,r,g)),v>2&&Fr(t,e,2,o)&&(d=!0,g=yi(t,h,e,2,o,g)),v>3&&Fr(t,e,3,i)&&(d=!0,g=yi(t,h,e,3,i,g)),v>4&&Fr(t,e,4,l)&&(d=!0,g=yi(t,h,e,4,l,g)),v>5&&Fr(t,e,5,u)&&(d=!0,g=yi(t,h,e,5,u,g)),v>6&&Fr(t,e,6,a)&&(d=!0,g=yi(t,h,e,6,a,g)),v>7&&Fr(t,e,7,s)&&(d=!0,g=yi(t,h,e,7,s,g)),v>8&&Fr(t,e,8,c)&&(d=!0,g=yi(t,h,e,8,c,g)),v>9&&Fr(t,e,9,p)&&(d=!0,g=yi(t,h,e,9,p,g)),g&&f.ngOnChanges(g),65536&e.flags&&Sr(t,256,e.nodeIndex)&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),d}(t,e,n,r,o,i,l,u,a,s,c,p);case 32:case 64:case 128:return function(t,e,n,r,o,i,l,u,a,s,c,p){var h=e.bindings,f=!1,d=h.length;if(d>0&&Hr(t,e,0,n)&&(f=!0),d>1&&Hr(t,e,1,r)&&(f=!0),d>2&&Hr(t,e,2,o)&&(f=!0),d>3&&Hr(t,e,3,i)&&(f=!0),d>4&&Hr(t,e,4,l)&&(f=!0),d>5&&Hr(t,e,5,u)&&(f=!0),d>6&&Hr(t,e,6,a)&&(f=!0),d>7&&Hr(t,e,7,s)&&(f=!0),d>8&&Hr(t,e,8,c)&&(f=!0),d>9&&Hr(t,e,9,p)&&(f=!0),f){var g=Tr(t,e.nodeIndex),v=void 0;switch(201347067&e.flags){case 32:v=new Array(h.length),d>0&&(v[0]=n),d>1&&(v[1]=r),d>2&&(v[2]=o),d>3&&(v[3]=i),d>4&&(v[4]=l),d>5&&(v[5]=u),d>6&&(v[6]=a),d>7&&(v[7]=s),d>8&&(v[8]=c),d>9&&(v[9]=p);break;case 64:v={},d>0&&(v[h[0].name]=n),d>1&&(v[h[1].name]=r),d>2&&(v[h[2].name]=o),d>3&&(v[h[3].name]=i),d>4&&(v[h[4].name]=l),d>5&&(v[h[5].name]=u),d>6&&(v[h[6].name]=a),d>7&&(v[h[7].name]=s),d>8&&(v[h[8].name]=c),d>9&&(v[h[9].name]=p);break;case 128:var y=n;switch(d){case 1:v=y.transform(n);break;case 2:v=y.transform(r);break;case 3:v=y.transform(r,o);break;case 4:v=y.transform(r,o,i);break;case 5:v=y.transform(r,o,i,l);break;case 6:v=y.transform(r,o,i,l,u);break;case 7:v=y.transform(r,o,i,l,u,a);break;case 8:v=y.transform(r,o,i,l,u,a,s);break;case 9:v=y.transform(r,o,i,l,u,a,s,c);break;case 10:v=y.transform(r,o,i,l,u,a,s,c,p)}}g.value=v}return f}(t,e,n,r,o,i,l,u,a,s,c,p);default:throw"unreachable"}}(t,e,r,o,i,l,u,s,c,p,h,f):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,o=0;o0&&qr(t,e,0,n),h>1&&qr(t,e,1,r),h>2&&qr(t,e,2,o),h>3&&qr(t,e,3,i),h>4&&qr(t,e,4,l),h>5&&qr(t,e,5,u),h>6&&qr(t,e,6,a),h>7&&qr(t,e,7,s),h>8&&qr(t,e,8,c),h>9&&qr(t,e,9,p)}(t,e,r,o,i,l,u,a,s,c,p,h):function(t,e,n){for(var r=0;r0){var i=new Set(t.modules);ul.forEach(function(e,r){if(i.has(r.ngInjectableDef.providedIn)){var o={token:r,flags:e.flags|(n?4096:0),deps:to(e.deps),value:e.value,index:t.providers.length};t.providers.push(o),t.providersByKey[Dr(r)]=o}})}}(t=t.factory(function(){return Nr})),t):t}(r))}var ll=new Map,ul=new Map,al=new Map;function sl(t){ll.set(t.token,t),"function"==typeof t.token&&t.token.ngInjectableDef&&"function"==typeof t.token.ngInjectableDef.providedIn&&ul.set(t.token,t)}function cl(t,e){var n=ro(ro(e.viewDefFactory).nodes[0].element.componentView);al.set(t,n)}function pl(){ll.clear(),ul.clear(),al.clear()}function hl(t){if(0===ll.size)return t;var e=function(t){for(var e=[],n=null,r=0;r=Zl.length?Zl[u]=null:d.tNode=Zl[u],Wl?($l=null,Kl.view!==ru&&2!==Kl.type||(ngDevMode&&zl(Kl.child,"previousOrParentNode's child should not have been set."),Kl.child=d)):Kl&&(ngDevMode&&zl(Kl.next,"previousOrParentNode's next property should not have been set "+u+"."),Kl.next=d,Kl.dynamicLContainerNode&&(Kl.dynamicLContainerNode.next=d))),Kl=d,Wl=!0,t=d,y=1),l=iu(t.data,t),e(y,n),uu(),pu()}finally{lu(l),Wl=g,Kl=v}return t}function pu(){for(var t=ru.child;null!==t;t=t.next)if(0!==t.dynamicViewCount&&t.views)for(var e=t,n=0;n"}(r))),ngDevMode&&Fl(o.data,"Component's host node should have an LView attached.");var i,l=o.data;8==(8&l.flags)&&6&l.flags&&(ngDevMode&&gu(t,Yl),du(l,o,ru.tView.directives[t],(i=Yl[t],Array.isArray(i)?i[0]:i)))}function fu(t){var e=vu(t);ngDevMode&&Fl(e.data,"Component host node should be attached to an LView"),du(e.data,e,e.view.tView.directives[e.tNode.flags>>13],t)}function du(t,e,n,r){var o=iu(t,e),i=n.template;try{i(1&t.flags?3:2,r),uu(),pu()}finally{lu(o)}}function gu(t,e){null==e&&(e=Jl),t>=(e?e.length:0)&&Hl("index expected to be a valid data index")}function vu(t){ngDevMode&&Fl(t,"expecting component got null");var e=t[tu];return ngDevMode&&Fl(t,"object is not a component"),e}o(function(t,e,n){var r=Xl.call(this,t.data,n)||this;return r._lViewNode=t,r},Xl=function(){function t(t,e){this._view=t,this.context=e}return t.prototype._setComponentContext=function(t,e){this._view=t,this.context=e},t.prototype.destroy=function(){},t.prototype.onDestroy=function(t){},t.prototype.markForCheck=function(){!function(t){for(var e=t;null!=e.parent;)e.flags|=4,e=e.parent;var n,r;e.flags|=4,ngDevMode&&Fl(e.context,"rootContext"),(n=e.context).clean==eu&&(n.clean=new Promise(function(t){return r=t}),n.scheduler(function(){var t,e;e=vu((t=function(t){ngDevMode&&Fl(t,"component");for(var e=vu(t).view;e.parent;)e=e.parent;return e}(n.component)).context.component),ngDevMode&&Fl(e.data,"Component host node should be attached to an LView"),function(n,r,o,i){var l=iu(t,e);try{Gl.begin&&Gl.begin(),su(),au(nu),hu(0,0)}finally{Gl.end&&Gl.end(),lu(l)}}(),r(null),n.clean=eu}))}(this._view)},t.prototype.detach=function(){this._view.flags&=-9},t.prototype.reattach=function(){this._view.flags|=8},t.prototype.detectChanges=function(){fu(this.context)},t.prototype.checkNoChanges=function(){!function(t){ou=!0;try{fu(t)}finally{ou=!1}}(this.context)},t}());var yu={production:!0,envoy_proxy_address:"http://localhost:9900"},mu=function(){},bu=function(){this.title="Channelz"},_u=function(){},wu=new ft("Location Initialized"),Cu=function(){},Su=new ft("appBaseHref"),xu=function(){function t(e){var n=this;this._subject=new Le,this._platformStrategy=e;var r=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(Eu(r)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.path(!0),pop:!0,state:t.state,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Eu(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",t,e)},t.prototype.replaceState=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)},t}();function Eu(t){return t.replace(/\/index.html$/,"")}var ku=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return o(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=xu.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+xu.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+xu.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(Cu),Tu=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return o(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return xu.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+xu.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+xu.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+xu.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(Cu),Iu=void 0,Au=["en",[["a","p"],["AM","PM"],Iu],[["AM","PM"],Iu,Iu],[["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"]],Iu,[["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"]],Iu,[["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}",Iu,"{1} 'at' {0}",Iu],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],Ou={},Pu=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),Ru=new ft("UseV4Plurals"),Nu=function(){},Vu=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return o(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return function(t){var e=t.toLowerCase().replace(/_/g,"-"),n=Ou[e];if(n)return n;var r=e.split("-")[0];if(n=Ou[r])return n;if("en"===r)return Au;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[18]}(e||this.locale)(t)){case Pu.Zero:return"zero";case Pu.One:return"one";case Pu.Two:return"two";case Pu.Few:return"few";case Pu.Many:return"many";default:return"other"}},e}(Nu);function Du(t,e){e=encodeURIComponent(e);try{for(var n=l(t.split(";")),r=n.next();!r.done;r=n.next()){var o=r.value,i=o.indexOf("="),a=u(-1==i?[o,""]:[o.slice(0,i),o.slice(i+1)],2),s=a[1];if(a[0].trim()===e)return decodeURIComponent(s)}}catch(t){c={error:t}}finally{try{r&&!r.done&&(p=n.return)&&p.call(n)}finally{if(c)throw c.error}}return null;var c,p}var Mu=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),ju=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){Xe()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((n=e).name||typeof n)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var n},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new Mu(null,e.ngForOf,-1,-1),o),l=new Lu(t,i);n.push(l)}else null==o?e._viewContainer.remove(r):(i=e._viewContainer.get(r),e._viewContainer.move(i,o),l=new Lu(t,i),n.push(l))});for(var r=0;r0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o=2;return function(r){return r.pipe(t?Qu(function(e,n){return t(e,n,r)}):Y,ta(1),n?ua(e):ia(function(){return new Zu}))}}function pa(t){return function(e){var n=new ha(t),r=e.lift(n);return n.caught=r}}var ha=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new fa(t,this.selector,this.caught))},t}(),fa=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.selector=n,o.caught=r,o}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(H(this,n))}},e}(q);function da(t,e){return function(n){return n.lift(new ga(t,e,n))}}var ga=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new va(t,this.predicate,this.thisArg,this.source))},t}(),va=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.source=o,i.index=0,i.thisArg=r||i,i}return o(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(x),ya=function(){function t(t){if(this.total=t,this.total<0)throw new Xu}return t.prototype.call=function(t,e){return e.subscribe(new ma(t,this.total))},t}(),ma=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return o(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(x);function ba(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Qu(function(e,n){return t(e,n,r)}):Y,function(t){return t.lift(new ya(1))},n?ua(e):ia(function(){return new Zu}))}}function _a(){return X(1)}function wa(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Ca(t,e,n))}}var Ca=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Sa(t,this.accumulator,this.seed,this.hasSeed))},t}(),Sa=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return o(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(x),xa=null;function Ea(){return xa}var ka,Ta={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Ia={"\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"},Aa={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"};_t.Node&&(ka=_t.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var Oa,Pa=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){var t;t=new e,xa||(xa=t)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){var r;(r=t)[e].apply(r,a(n))},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return Ta},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return ka.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=this.getDefaultDocument().createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=this.getDefaultDocument().createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&this.isTemplateElement(t)?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;l||(l=t[i]=[]);var a=fs(e)?Zone.root:Zone.current;if(0===l.length)l.push({zone:a,handler:o});else{for(var s=!1,c=0;c-1},e}(Ka),_s=["alt","control","meta","shift"],ws={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Cs=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,r){var o=e.parseEventName(n),i=e.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Ea().onAndCancel(t,o.domEventName,i)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=e._normalizeKey(n.pop()),i="";if(_s.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),i+=t+".")}),i+=o,0!=n.length||0===o.length)return null;var l={};return l.domEventName=r,l.fullKey=i,l},e.getEventFullKey=function(t){var e="",n=Ea().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),_s.forEach(function(r){r!=n&&(0,ws[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,n,r){return function(o){e.getEventFullKey(o)===t&&r.runGuarded(function(){return n(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(Ka),Ss=function(){},xs=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return o(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case _r.NONE:return e;case _r.HTML:return e instanceof ks?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{or=or||new Yn(t);var r=e?String(e):"";n=or.getInertBodyElement(r);var o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=or.getInertBodyElement(r)}while(r!==i);var l=new fr,u=l.sanitizeChildren(yr(n)||n);return Xe()&&l.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),u}finally{if(n)for(var a=yr(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}(this._doc,String(e)));case _r.STYLE:return e instanceof Ts?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(br);return e&&er(e[1])===e[1]||t.match(mr)&&function(t){for(var e=!0,n=!0,r=0;rt.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function ac(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function sc(t){return t.pipe(X(),da(function(t){return!0===t}))}function cc(t){return ce(t)?t:se(t)?Z(Promise.resolve(t)):Wu(t)}function pc(t,e,n){return n?function(t,e){return ic(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!gc(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,o){if(n.segments.length>o.length)return!!gc(l=n.segments.slice(0,o.length),o)&&!r.hasChildren();if(n.segments.length===o.length){if(!gc(n.segments,o))return!1;for(var i in r.children){if(!n.children[i])return!1;if(!t(n.children[i],r.children[i]))return!1}return!0}var l=o.slice(0,n.segments.length),u=o.slice(n.segments.length);return!!gc(n.segments,l)&&!!n.children[Qs]&&e(n.children[Qs],r,u)}(e,n,n.segments)}(t.root,e.root)}var hc=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Ys(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return bc.serialize(this)},t}(),fc=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,ac(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return _c(this)},t}(),dc=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=Ys(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return kc(this)},t}();function gc(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function vc(t,e){var n=[];return ac(t.children,function(t,r){r===Qs&&(n=n.concat(e(t,r)))}),ac(t.children,function(t,r){r!==Qs&&(n=n.concat(e(t,r)))}),n}var yc=function(){},mc=function(){function t(){}return t.prototype.parse=function(t){var e=new Pc(t);return new hc(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return _c(e);if(n){var r=e.children[Qs]?t(e.children[Qs],!1):"",o=[];return ac(e.children,function(e,n){n!==Qs&&o.push(n+":"+t(e,!1))}),o.length>0?r+"("+o.join("//")+")":r}var i=vc(e,function(n,r){return r===Qs?[t(e.children[Qs],!1)]:[r+":"+t(n,!1)]});return _c(e)+"/("+i.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return Cc(t)+"="+Cc(e)}).join("&"):Cc(t)+"="+Cc(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),bc=new mc;function _c(t){return t.segments.map(function(t){return kc(t)}).join("/")}function wc(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Cc(t){return wc(t).replace(/%3B/gi,";")}function Sc(t){return wc(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function xc(t){return decodeURIComponent(t)}function Ec(t){return xc(t.replace(/\+/g,"%20"))}function kc(t){return""+Sc(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+Sc(t)+"="+Sc(e[t])}).join(""));var e}var Tc=/^[^\/()?;=#]+/;function Ic(t){var e=t.match(Tc);return e?e[0]:""}var Ac=/^[^=?&#]+/,Oc=/^[^?&#]+/,Pc=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new fc([],{}):new fc([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[Qs]=new fc(t,e)),n},t.prototype.parseSegment=function(){var t=Ic(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new dc(xc(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Ic(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Ic(this.remaining);r&&this.capture(n=r)}t[xc(e)]=xc(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(Ac))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var o=function(t){var e=t.match(Oc);return e?e[0]:""}(this.remaining);o&&this.capture(r=o)}var i=Ec(n),l=Ec(r);if(t.hasOwnProperty(i)){var u=t[i];Array.isArray(u)||(t[i]=u=[u]),u.push(l)}else t[i]=l}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Ic(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Qs);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[Qs]:new fc([],i),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),Rc=function(t){this.segmentGroup=t||null},Nc=function(t){this.urlTree=t};function Vc(t){return new O(function(e){return e.error(new Rc(t))})}function Dc(t){return new O(function(e){return e.error(new Nc(t))})}function Mc(t){return new O(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}var jc=function(){function t(t,e,n,r,o){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(Re)}return t.prototype.apply=function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Qs).pipe(B(function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)})).pipe(pa(function(e){if(e instanceof Nc)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof Rc)throw t.noMatchError(e);throw e}))},t.prototype.match=function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,Qs).pipe(B(function(n){return e.createUrlTree(n,t.queryParams,t.fragment)})).pipe(pa(function(t){if(t instanceof Rc)throw e.noMatchError(t);throw t}))},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r,o=t.segments.length>0?new fc([],((r={})[Qs]=t,r)):t;return new hc(o,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(B(function(t){return new fc([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,o){if(0===Object.keys(n).length)return Wu({});var i=[],l=[],u={};return ac(n,function(n,o){var a,s,c=(a=o,s=n,r.expandSegmentGroup(t,e,s,a)).pipe(B(function(t){return u[o]=t}));o===Qs?i.push(c):l.push(c)}),Wu.apply(null,i.concat(l)).pipe(_a(),ca(),B(function(){return u}))}(n.children)},t.prototype.expandSegment=function(t,e,n,r,o,i){var l=this;return Wu.apply(void 0,a(n)).pipe(B(function(u){return l.expandSegmentAgainstRoute(t,e,n,u,r,o,i).pipe(pa(function(t){if(t instanceof Rc)return Wu(null);throw t}))}),_a(),ba(function(t){return!!t}),pa(function(t,n){if(t instanceof Zu||"EmptyError"===t.name){if(l.noLeftoversInUrl(e,r,o))return Wu(new fc([],{}));throw new Rc(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,o,i,l){return Fc(r)!==i?Vc(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):Vc(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Dc(i):this.lineralizeSegments(n,i).pipe($(function(n){var i=new fc(n,{});return o.expandSegment(t,i,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var l=this,u=Lc(e,r,o),a=u.consumedSegments,s=u.lastChild,c=u.positionalParamSegments;if(!u.matched)return Vc(e);var p=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?Dc(p):this.lineralizeSegments(r,p).pipe($(function(r){return l.expandSegment(t,e,n,r.concat(o.slice(s)),i,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(B(function(t){return n._loadedConfig=t,new fc(r,{})})):Wu(new fc(r,{}));var u=Lc(e,n,r),a=u.consumedSegments,s=u.lastChild;if(!u.matched)return Vc(e);var c=r.slice(s);return this.getChildConfig(t,n).pipe($(function(t){var n=t.module,r=t.routes,u=function(t,e,n,r){return n.length>0&&function(t,e,n){return r.some(function(n){return zc(t,e,n)&&Fc(n)!==Qs})}(t,n)?{segmentGroup:Uc(new fc(e,function(t,e){var n,r,o={};o[Qs]=e;try{for(var i=l(t),u=i.next();!u.done;u=i.next()){var a=u.value;""===a.path&&Fc(a)!==Qs&&(o[Fc(a)]=new fc([],{}))}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}(r,new fc(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return r.some(function(n){return zc(t,e,n)})}(t,n)?{segmentGroup:Uc(new fc(t.segments,function(t,e,n,r){var o,u,a={};try{for(var s=l(n),c=s.next();!c.done;c=s.next()){var p=c.value;zc(t,e,p)&&!r[Fc(p)]&&(a[Fc(p)]=new fc([],{}))}}catch(t){o={error:t}}finally{try{c&&!c.done&&(u=s.return)&&u.call(s)}finally{if(o)throw o.error}}return i({},r,a)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,a,c,r),s=u.segmentGroup,p=u.slicedSegments;return 0===p.length&&s.hasChildren()?o.expandChildren(n,r,s).pipe(B(function(t){return new fc(a,t)})):0===r.length&&0===p.length?Wu(new fc(a,{})):o.expandSegment(n,s,r,p,Qs,!0).pipe(B(function(t){return new fc(a.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?Wu(new tc(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Wu(e._loadedConfig):function(t,e){var n=e.canLoad;return n&&0!==n.length?sc(Z(n).pipe(B(function(n){var r=t.get(n);return cc(r.canLoad?r.canLoad(e):r(e))}))):Wu(!0)}(t.injector,e).pipe($(function(r){return r?n.configLoader.load(t.injector,e).pipe(B(function(t){return e._loadedConfig=t,t})):function(t){return new O(function(e){return e.error(((n=Error("NavigationCancelingError: Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false")).ngNavigationCancelingError=!0,n));var n})}(e)})):Wu(new tc([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Wu(n);if(r.numberOfChildren>1||!r.children[Qs])return Mc(t.redirectTo);r=r.children[Qs]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var o=this.createSegmentGroup(t,e.root,n,r);return new hc(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return ac(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);n[r]=e[o]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var o=this,i=this.createSegments(t,e.segments,n,r),l={};return ac(e.children,function(e,i){l[i]=o.createSegmentGroup(t,e,n,r)}),new fc(i,l)},t.prototype.createSegments=function(t,e,n,r){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,r):o.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,r,o=0;try{for(var i=l(e),u=i.next();!u.done;u=i.next()){var a=u.value;if(a.path===t.path)return e.splice(o),a;o++}}catch(t){n={error:t}}finally{try{u&&!u.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return t},t}();function Lc(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||Xs)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Uc(t){if(1===t.numberOfChildren&&t.children[Qs]){var e=t.children[Qs];return new fc(t.segments.concat(e.segments),e.children)}return t}function zc(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Fc(t){return t.outlet||Qs}var Hc=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=qc(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=qc(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=Bc(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return Bc(t,this._root).map(function(t){return t.value})},t}();function qc(t,e){if(t===e.value)return e;try{for(var n=l(e.children),r=n.next();!r.done;r=n.next()){var o=qc(t,r.value);if(o)return o}}catch(t){i={error:t}}finally{try{r&&!r.done&&(u=n.return)&&u.call(n)}finally{if(i)throw i.error}}return null;var i,u}function Bc(t,e){if(t===e.value)return[e];try{for(var n=l(e.children),r=n.next();!r.done;r=n.next()){var o=Bc(t,r.value);if(o.length)return o.unshift(e),o}}catch(t){i={error:t}}finally{try{r&&!r.done&&(u=n.return)&&u.call(n)}finally{if(i)throw i.error}}return[];var i,u}var Gc=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function Kc(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var Wc=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,Xc(r,e),r}return o(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(Hc);function Zc(t,e){var n=function(t,e){var n=new Jc([],{},{},"",{},Qs,e,null,t.root,-1,{});return new Yc("",new Gc(n,[]))}(t,e),r=new Bu([new dc("",{})]),o=new Bu({}),i=new Bu({}),l=new Bu({}),u=new Bu(""),a=new $c(r,o,l,u,i,Qs,e,n.root);return a.snapshot=n.root,new Wc(new Gc(a,[]),n)}var $c=function(){function t(t,e,n,r,o,i,l,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=l,this._futureSnapshot=u}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(B(function(t){return Ys(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(B(function(t){return Ys(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Qc(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var o=n[r],l=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(l.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:i({},t.params,e.params),data:i({},t.data,e.data),resolve:i({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var Jc=function(){function t(t,e,n,r,o,i,l,u,a,s,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=l,this.routeConfig=u,this._urlSegment=a,this._lastPathIndex=s,this._resolve=c}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=Ys(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Ys(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),Yc=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,Xc(r,n),r}return o(e,t),e.prototype.toString=function(){return tp(this._root)},e}(Hc);function Xc(t,e){e.value._routerState=t,e.children.forEach(function(e){return Xc(t,e)})}function tp(t){var e=t.children.length>0?" { "+t.children.map(tp).join(", ")+" } ":"";return""+t.value+e}function ep(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,ic(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),ic(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&rp(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==uc(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),lp=function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n};function up(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Qs]:""+t}function ap(t,e,n){if(t||(t=new fc([],{})),0===t.segments.length&&t.hasChildren())return sp(t,e,n);var r=function(t,e,n){for(var r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o=n.length)return i;var l=t.segments[o],u=up(n[r]),a=r0&&void 0===u)break;if(u&&a&&"object"==typeof a&&void 0===a.outlets){if(!fp(u,a,l))return i;r+=2}else{if(!fp(u,{},l))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex=2?function(n){return I(wa(t,e),ta(1),ua(e))(n)}:function(e){return I(wa(function(e,n,r){return t(e,n,r+1)}),ta(1))(e)}}(function(t,e){return t})):Wu(null)},t.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},t.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},t.prototype.setupChildRouteGuards=function(t,e,n,r){var o=this,i=Kc(e);t.children.forEach(function(t){o.setupRouteGuards(t,i[t.value.outlet],n,r.concat([t.value])),delete i[t.value.outlet]}),ac(i,function(t,e){return o.deactivateRouteAndItsChildren(t,n.getContext(e))})},t.prototype.setupRouteGuards=function(t,e,n,r){var o=t.value,i=e?e.value:null,l=n?n.getContext(t.value.outlet):null;if(i&&o.routeConfig===i.routeConfig){var u=this.shouldRunGuardsAndResolvers(i,o,o.routeConfig.runGuardsAndResolvers);u?this.canActivateChecks.push(new dp(r)):(o.data=i.data,o._resolvedData=i._resolvedData),this.setupChildRouteGuards(t,e,o.component?l?l.children:null:n,r),u&&this.canDeactivateChecks.push(new gp(l.outlet.component,i))}else i&&this.deactivateRouteAndItsChildren(e,l),this.canActivateChecks.push(new dp(r)),this.setupChildRouteGuards(t,null,o.component?l?l.children:null:n,r)},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!np(t,e)||!ic(t.queryParams,e.queryParams);case"paramsChange":default:return!np(t,e)}},t.prototype.deactivateRouteAndItsChildren=function(t,e){var n=this,r=Kc(t),o=t.value;ac(r,function(t,r){n.deactivateRouteAndItsChildren(t,o.component?e?e.children.getContext(r):null:e)}),this.canDeactivateChecks.push(new gp(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))},t.prototype.runCanDeactivateChecks=function(){var t=this;return Z(this.canDeactivateChecks).pipe($(function(e){return t.runCanDeactivate(e.component,e.route)}),da(function(t){return!0===t}))},t.prototype.runCanActivateChecks=function(){var t=this;return Z(this.canActivateChecks).pipe($u(function(e){return sc(Z([t.fireChildActivationStart(e.route.parent),t.fireActivationStart(e.route),t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))}),da(function(t){return!0===t}))},t.prototype.fireActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new Zs(t)),Wu(!0)},t.prototype.fireChildActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new Ks(t)),Wu(!0)},t.prototype.runCanActivate=function(t){var e=this,n=t.routeConfig?t.routeConfig.canActivate:null;return n&&0!==n.length?sc(Z(n).pipe(B(function(n){var r=e.getToken(n,t);return cc(r.canActivate?r.canActivate(t,e.future):r(t,e.future)).pipe(ba())}))):Wu(!0)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1];return sc(Z(t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t})).pipe(B(function(t){return sc(Z(t.guards).pipe(B(function(r){var o=e.getToken(r,t.node);return cc(o.canActivateChild?o.canActivateChild(n,e.future):o(n,e.future)).pipe(ba())})))})))},t.prototype.extractCanActivateChild=function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?Z(r).pipe($(function(r){var o=n.getToken(r,e);return cc(o.canDeactivate?o.canDeactivate(t,e,n.curr,n.future):o(t,e,n.curr,n.future)).pipe(ba())})).pipe(da(function(t){return!0===t})):Wu(!0)},t.prototype.runResolve=function(t,e){return this.resolveNode(t._resolve,t).pipe(B(function(n){return t._resolvedData=n,t.data=i({},t.data,Qc(t,e).resolve),null}))},t.prototype.resolveNode=function(t,e){var n=this,r=Object.keys(t);if(0===r.length)return Wu({});if(1===r.length){var o=r[0];return this.getResolver(t[o],e).pipe(B(function(t){return(e={})[o]=t,e;var e}))}var i={};return Z(r).pipe($(function(r){return n.getResolver(t[r],e).pipe(B(function(t){return i[r]=t,t}))})).pipe(ca(),B(function(){return i}))},t.prototype.getResolver=function(t,e){var n=this.getToken(t,e);return cc(n.resolve?n.resolve(e,this.future):n(e,this.future))},t.prototype.getToken=function(t,e){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(n?n.module.injector:this.moduleInjector).get(t)},t}(),yp=function(){},mp=function(){function t(t,e,n,r,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o}return t.prototype.recognize=function(){try{var t=wp(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,Qs),n=new Jc([],Object.freeze({}),Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,{},Qs,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Gc(n,e),o=new Yc(this.url,r);return this.inheritParamsAndData(o._root),Wu(o)}catch(t){return new O(function(e){return e.error(t)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=Qc(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,o=vc(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},o.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),o=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+o+"'.")}n[t.value.outlet]=t.value}),o.sort(function(t,e){return t.value.outlet===Qs?-1:e.value.outlet===Qs?1:t.value.outlet.localeCompare(e.value.outlet)}),o},t.prototype.processSegment=function(t,e,n,r){try{for(var o=l(t),i=o.next();!i.done;i=o.next()){var u=i.value;try{return this.processSegmentAgainstRoute(u,e,n,r)}catch(t){if(!(t instanceof yp))throw t}}}catch(t){a={error:t}}finally{try{i&&!i.done&&(s=o.return)&&s.call(o)}finally{if(a)throw a.error}}if(this.noLeftoversInUrl(e,n,r))return[];throw new yp;var a,s},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new yp;if((t.outlet||Qs)!==r)throw new yp;var o,l=[],u=[];if("**"===t.path){var a=n.length>0?uc(n).parameters:{};o=new Jc(n,a,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,xp(t),r,t.component,t,bp(e),_p(e)+n.length,Ep(t))}else{var s=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new yp;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||Xs)(n,t,e);if(!r)throw new yp;var o={};ac(r.posParams,function(t,e){o[e]=t.path});var l=r.consumed.length>0?i({},o,r.consumed[r.consumed.length-1].parameters):o;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:l}}(e,t,n);l=s.consumedSegments,u=n.slice(s.lastChild),o=new Jc(l,s.parameters,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,xp(t),r,t.component,t,bp(e),_p(e)+l.length,Ep(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),p=wp(e,l,u,c),h=p.segmentGroup,f=p.slicedSegments;if(0===f.length&&h.hasChildren()){var d=this.processChildren(c,h);return[new Gc(o,d)]}if(0===c.length&&0===f.length)return[new Gc(o,[])];var g=this.processSegment(c,h,f,Qs);return[new Gc(o,g)]},t}();function bp(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function _p(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function wp(t,e,n,r){if(n.length>0&&function(t,e,n){return r.some(function(n){return Cp(t,e,n)&&Sp(n)!==Qs})}(t,n)){var o=new fc(e,function(t,e,n,r){var o,i,u={};u[Qs]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;try{for(var a=l(n),s=a.next();!s.done;s=a.next()){var c=s.value;if(""===c.path&&Sp(c)!==Qs){var p=new fc([],{});p._sourceSegment=t,p._segmentIndexShift=e.length,u[Sp(c)]=p}}}catch(t){o={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}return u}(t,e,r,new fc(n,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return r.some(function(n){return Cp(t,e,n)})}(t,n)){var u=new fc(t.segments,function(t,e,n,r){var o,u,a={};try{for(var s=l(n),c=s.next();!c.done;c=s.next()){var p=c.value;if(Cp(t,e,p)&&!r[Sp(p)]){var h=new fc([],{});h._sourceSegment=t,h._segmentIndexShift=t.segments.length,a[Sp(p)]=h}}}catch(t){o={error:t}}finally{try{c&&!c.done&&(u=s.return)&&u.call(s)}finally{if(o)throw o.error}}return i({},r,a)}(t,n,r,t.children));return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:n}}var a=new fc(t.segments,t.children);return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:n}}function Cp(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Sp(t){return t.outlet||Qs}function xp(t){return t.data||{}}function Ep(t){return t.resolve||{}}var kp=function(){},Tp=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),Ip=new ft("ROUTES"),Ap=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(B(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new tc(lc(o.injector.get(Ip)).map(oc),o)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?Z(this.loader.load(t)):cc(t()).pipe($(function(t){return t instanceof Ne?Wu(t):Z(e.compiler.compileModuleAsync(t))}))},t}(),Op=function(){},Pp=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function Rp(t){throw t}function Np(t){return Wu(null)}var Vp=function(){function t(t,e,n,r,o,i,l,u){var a=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=u,this.navigations=new Bu(null),this.navigationId=0,this.events=new rt,this.errorHandler=Rp,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Np,afterPreactivation:Np},this.urlHandlingStrategy=new Pp,this.routeReuseStrategy=new Tp,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.ngModule=o.get(Re),this.resetConfig(u),this.currentUrlTree=new hc(new fc([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new Ap(i,l,function(t){return a.triggerEvent(new Bs(t))},function(t){return a.triggerEvent(new Gs(t))}),this.routerState=Zc(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(e){var n=t.urlSerializer.parse(e.url),r="popstate"===e.type?"popstate":"hashchange",o=e.state&&e.state.navigationId?{navigationId:e.state.navigationId}:null;setTimeout(function(){t.scheduleNavigation(n,r,o,{replaceUrl:!0})},0)}))},Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){ec(t),this.config=t.map(oc),this.navigated=!1,this.lastSuccessfulId=-1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var n=e.relativeTo,r=e.queryParams,o=e.fragment,l=e.preserveQueryParams,u=e.queryParamsHandling,s=e.preserveFragment;Xe()&&l&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var c=n||this.routerState.root,p=s?this.currentUrlTree.fragment:o,h=null;if(u)switch(u){case"merge":h=i({},this.currentUrlTree.queryParams,r);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=r||null}else h=l?this.currentUrlTree.queryParams:r||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,e,n,r,o){if(0===n.length)return op(e.root,e.root,e,r,o);var i=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new ip(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,o){if("object"==typeof r&&null!=r){if(r.outlets){var i={};return ac(r.outlets,function(t,e){i[e]="string"==typeof t?t.split("/"):t}),a(t,[{outlets:i}])}if(r.segmentPath)return a(t,[r.segmentPath])}return"string"!=typeof r?a(t,[r]):0===o?(r.split("/").forEach(function(r,o){0==o&&"."===r||(0==o&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):a(t,[r])},[]);return new ip(n,e,r)}(n);if(i.toRoot())return op(e.root,new fc([],{}),e,r,o);var l=function(t,n,r){if(t.isAbsolute)return new lp(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new lp(r.snapshot._urlSegment,!0,0);var o=rp(t.commands[0])?0:1;return function(e,n,i){for(var l=r.snapshot._urlSegment,u=r.snapshot._lastPathIndex+o,a=t.numberOfDoubleDots;a>u;){if(a-=u,!(l=l.parent))throw new Error("Invalid number of '../'");u=l.segments.length}return new lp(l,!1,u-a)}()}(i,0,t),u=l.processChildren?sp(l.segmentGroup,l.index,i.commands):ap(l.segmentGroup,l.index,i.commands);return op(l.segmentGroup,u,e,r,o)}(c,this.currentUrlTree,t,h,p)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof hc?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;et?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return gh(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return gh(t.value)?null:yh.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(gh(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(gh(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(bh);return 0==e.length?null:function(t){return wh(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(bh);return 0==e.length?null:function(t){return function t(){for(var e,n=[],r=0;r=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t}(),Rh=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(Oh),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},t}(),Nh='\n

\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',Vh='\n
\n
\n \n
\n
';function Dh(t,e){return a(e.path,[t])}function Mh(t,e){t||Lh(e,"Cannot find control with"),e.valueAccessor||Lh(e,"No value accessor for form control with"),t.validator=mh.compose([t.validator,e.validator]),t.asyncValidator=mh.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&jh(t,e)})}(t,e),function(t,e){t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&jh(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function jh(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function Lh(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function Uh(t){return null!=t?mh.compose(t.map(kh)):null}function zh(t){return null!=t?mh.composeAsync(t.map(Th)):null}var Fh=[Sh,function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),Ih,function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Et}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){try{for(var e=l(Array.from(this._optionMap.keys())),n=e.next();!n.done;n=e.next()){var r=n.value;if(this._compareWith(this._optionMap.get(r),t))return r}}catch(t){o={error:t}}finally{try{n&&!n.done&&(i=e.return)&&i.call(e)}finally{if(o)throw o.error}}return null;var o,i},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}(),function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Et}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e,n=this;if(this.value=t,Array.isArray(t)){var r=t.map(function(t){return n._getOptionId(t)});e=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var o=n.selectedOptions,i=0;i0||this.disabled;var n,r},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(Wh),Qh=function(t){function e(e,n,r){var o=t.call(this,Bh(n),Gh(r,n))||this;return o.controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return o(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof Zh?t.value:t.getRawValue()})},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){try{for(var t=l(this.controls),e=t.next();!e.done;e=t.next())if(e.value.enabled)return!1}catch(t){n={error:t}}finally{try{e&&!e.done&&(r=t.return)&&r.call(t)}finally{if(n)throw n.error}}return this.controls.length>0||this.disabled;var n,r},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(Wh),Jh=Promise.resolve(null),Yh=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new Le,r.form=new $h({},Uh(e),zh(n)),r}return o(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;Jh.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),Mh(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;Jh.then(function(){var n,r,o=e._findContainer(t.path);o&&o.removeControl(t.name),(r=(n=e._directives).indexOf(t))>-1&&n.splice(r,1)})},e.prototype.addFormGroup=function(t){var e=this;Jh.then(function(){var n=e._findContainer(t.path),r=new $h({});(function(t,e){null==t&&Lh(e,"Cannot find control with"),t.validator=mh.compose([t.validator,e.validator]),t.asyncValidator=mh.composeAsync([t.asyncValidator,e.asyncValidator])})(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;Jh.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;Jh.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,e=this._directives,this.form._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e}(dh),Xh=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n \n
\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+Nh+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+Vh)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+Nh+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+Vh)},t}(),tf=function(t){function e(e,n,r){var o=t.call(this)||this;return o._parent=e,o._validators=n,o._asyncValidators=r,o}return o(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof Yh||Xh.modelGroupParentException()},e}(Hh),ef=Promise.resolve(null),nf=function(t){function e(e,n,r,o){var i=t.call(this)||this;return i.control=new Zh,i._registered=!1,i.update=new Le,i._parent=e,i._rawValidators=n||[],i._rawAsyncValidators=r||[],i.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e)||Lh(t,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,o=void 0;return e.forEach(function(e){var i;e.constructor===Eh?n=e:(i=e,Fh.some(function(t){return i.constructor===t})?(r&&Lh(t,"More than one built-in value accessor matches form control with"),r=e):(o&&Lh(t,"More than one custom value accessor matches form control with"),o=e))}),o||r||n||(Lh(t,"No valid value accessor for form control with"),null)}(i,o),i}return o(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Et(e,n.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?Dh(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return Uh(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return zh(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){Mh(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof tf)&&this._parent instanceof Hh?Xh.formGroupNameException():this._parent instanceof tf||this._parent instanceof Yh||Xh.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Xh.missingNameException()},e.prototype._updateValue=function(t){var e=this;ef.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;ef.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},e}(Oh),rf=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?mh.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}(),of=function(){},lf=function(){},uf=function(){function t(t){this.http=t,this.client=new proto.grpc.channelz.v1.ChannelzClient(yu.envoy_proxy_address);var e=new Int8Array(32);window.crypto.getRandomValues(e);var n=btoa(e.toString());document.cookie="grpc-channelz-v1-channelz-token="+n+";path=/",this.xsrfMeta={"grpc-channelz-v1-channelz-token":n}}return t.prototype.functionToObserver=function(t,e){var n=this;return new O(function(r){t.bind(n.client)(e,n.xsrfMeta,function(t,e){r.next(e),r.complete()})})},t.prototype.getServers=function(t){var e=new proto.grpc.channelz.v1.GetServersRequest;return e.setStartServerId(t),this.functionToObserver(this.client.getServers,e)},t.prototype.getServerSockets=function(t,e){var n=new proto.grpc.channelz.v1.GetServerSocketsRequest;return n.setServerId(t),n.setStartSocketId(e),this.functionToObserver(this.client.getServerSockets,n)},t.prototype.getTopChannels=function(t){var e=new proto.grpc.channelz.v1.GetTopChannelsRequest;return e.setStartChannelId(t),this.functionToObserver(this.client.getTopChannels,e)},t.prototype.getSubchannel=function(t){var e=new proto.grpc.channelz.v1.GetSubchannelRequest;return e.setSubchannelId(t),this.functionToObserver(this.client.getSubchannel,e)},t.prototype.getChannel=function(t){var e=new proto.grpc.channelz.v1.GetChannelRequest;return e.setChannelId(t),this.functionToObserver(this.client.getChannel,e)},t.prototype.getSocket=function(t){var e=new proto.grpc.channelz.v1.GetSocketRequest;return e.setSocketId(t),this.functionToObserver(this.client.getSocket,e)},t}(),af=function(){function t(t,e,n){this.route=t,this.router=e,this.channelzService=n,this.startId=0}return t.prototype.ngOnInit=function(){var t=this;this.render(),this.route.params.subscribe(function(e){return t.render()})},t.prototype.processEntry=function(){this.router.navigateByUrl("/channelz/servers/"+this.startId)},t.prototype.render=function(){var t=this,e=this.route.snapshot.paramMap.get("startId");this.startId=null==e?0:+e,this.channelzService.getServers(this.startId).subscribe(function(e){return t.handleResponse(e)})},t.prototype.handleResponse=function(t){this.serversList=t.getServerList(),this.nextId=t.getEnd()?null:this.serversList[this.serversList.length-1].getRef().getServerId()},t}(),sf=Ur({encapsulation:0,styles:[[""]],data:{}});function cf(t){return Pi(0,[(t()(),vo(0,0,null,null,3,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"]))],function(t,e){t(e,2,0,ho(1,"/channelz/socket/",e.context.$implicit.getSocketId(),""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.getSocketId(),e.context.$implicit.getName())})}function pf(t){return Pi(0,[(t()(),vo(0,0,null,null,16,"tr",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),vo(2,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,3).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(3,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(4,null,["","[","]"])),(t()(),vo(5,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(6,null,["",""])),(t()(),vo(7,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(8,null,["",""])),(t()(),vo(9,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(10,null,["",""])),(t()(),vo(11,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),Ii(12,null,["",""])),Ti(13,1),(t()(),vo(14,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,cf)),oi(16,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,3,0,ho(1,"/channelz/serversockets/",e.context.$implicit.getRef().getServerId(),"")),t(e,16,0,e.context.$implicit.getListenSocketList())},function(t,e){t(e,2,0,Go(e,3).target,Go(e,3).href),t(e,4,0,e.context.$implicit.getRef().getServerId(),e.context.$implicit.getRef().getName()),t(e,6,0,e.context.$implicit.getData().getCallsStarted()),t(e,8,0,e.context.$implicit.getData().getCallsSucceeded()),t(e,10,0,e.context.$implicit.getData().getCallsFailed()),t(e,12,0,Mr(e,12,0,t(e,13,0,Go(e.parent,0),e.context.$implicit.getData().getLastCallStartedTimestamp())))})}function hf(t){return Pi(0,[(t()(),vo(0,0,null,null,3,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(-1,null,["Click here for next page"]))],function(t,e){t(e,2,0,ho(1,"/channelz/servers/",e.component.nextId,""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href)})}function ff(t){return Pi(0,[(t()(),vo(0,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Ii(-1,null,["End of results"]))],null,null)}function df(t){return Pi(0,[ii(0,ch,[]),(t()(),vo(1,0,null,null,1,"h3",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Showing servers starting from:"])),(t()(),Ii(-1,null,["\nServer id:\n"])),(t()(),vo(4,0,[["textbox",1]],null,7,"input",[["required",""],["type","text"]],[[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,"keyup.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==Go(t,5)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Go(t,5).onTouched()&&r),"compositionstart"===e&&(r=!1!==Go(t,5)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Go(t,5)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.startId=n)&&r),"keyup.enter"===e&&(r=!1!==o.processEntry()&&r),r},null,null)),oi(5,16384,null,0,Eh,[cn,pn,[2,xh]],null,null),oi(6,16384,null,0,rf,[],{required:[0,"required"]},null),li(1024,null,vh,function(t){return[t]},[rf]),li(1024,null,Ch,function(t){return[t]},[Eh]),oi(9,671744,null,0,nf,[[8,null],[6,vh],[8,null],[6,Ch]],{model:[0,"model"]},{update:"ngModelChange"}),li(2048,null,Oh,null,[nf]),oi(11,16384,null,0,qh,[[4,Oh]],null,null),(t()(),vo(12,0,null,null,1,"button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.processEntry()&&r),r},null,null)),(t()(),Ii(-1,null,["Refresh"])),(t()(),vo(14,0,null,null,17,"div",[],null,null,null,null,null)),(t()(),vo(15,0,null,null,16,"table",[],null,null,null,null,null)),(t()(),vo(16,0,null,null,15,"tbody",[],null,null,null,null,null)),(t()(),vo(17,0,null,null,12,"tr",[],null,null,null,null,null)),(t()(),vo(18,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Server"])),(t()(),vo(20,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Calls started"])),(t()(),vo(22,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Calls succeeded"])),(t()(),vo(24,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Calls failed"])),(t()(),vo(26,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Last call started ts"])),(t()(),vo(28,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Listen Sockets"])),(t()(),go(16777216,null,null,1,null,pf)),oi(31,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),go(16777216,null,null,1,null,hf)),oi(33,16384,null,0,Uu,[bn,mn],{ngIf:[0,"ngIf"]},null),(t()(),go(16777216,null,null,1,null,ff)),oi(35,16384,null,0,Uu,[bn,mn],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,6,0,""),t(e,9,0,n.startId),t(e,31,0,n.serversList),t(e,33,0,n.nextId),t(e,35,0,!n.nextId)},function(t,e){t(e,4,0,Go(e,6).required?"":null,Go(e,11).ngClassUntouched,Go(e,11).ngClassTouched,Go(e,11).ngClassPristine,Go(e,11).ngClassDirty,Go(e,11).ngClassValid,Go(e,11).ngClassInvalid,Go(e,11).ngClassPending)})}var gf=Vo("app-servers",af,function(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"app-servers",[],null,null,null,df,sf)),oi(1,114688,null,0,af,[$c,Vp,uf],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),vf=function(){function t(t,e,n){this.route=t,this.router=e,this.channelzService=n,this.startId=0}return t.prototype.ngOnInit=function(){var t=this;this.render(),this.route.params.subscribe(function(e){return t.render()})},t.prototype.processEntry=function(){this.router.navigateByUrl("/channelz/topchannels/"+this.startId)},t.prototype.render=function(){var t=this,e=this.route.snapshot.paramMap.get("startId");this.startId=null==e?0:+e,this.channelzService.getTopChannels(this.startId).subscribe(function(e){return t.handleResponse(e)})},t.prototype.channelDataHelperProxy=function(t){return sh(t)},t.prototype.handleResponse=function(t){this.topChannelsList=t.getChannelList(),this.nextId=t.getEnd()?null:this.topChannelsList[this.topChannelsList.length-1].getRef().getChannelId()},t}(),yf=Ur({encapsulation:0,styles:[[""]],data:{}});function mf(t){return Pi(0,[(t()(),vo(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/channel/",e.context.$implicit.getChannelId(),""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.getChannelId(),e.context.$implicit.getName())})}function bf(t){return Pi(0,[(t()(),vo(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/subchannel/",e.context.$implicit.getSubchannelId(),""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.getSubchannelId(),e.context.$implicit.getName())})}function _f(t){return Pi(0,[(t()(),vo(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/socket/",e.context.$implicit.getSocketId(),""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.getSocketId(),e.context.$implicit.getName())})}function wf(t){return Pi(0,[(t()(),vo(0,0,null,null,16,"tr",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),vo(2,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,3).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(3,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(4,null,["","[","]"])),(t()(),vo(5,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(6,0,null,null,1,"pre",[],null,null,null,null,null)),(t()(),Ii(7,null,["",""])),(t()(),vo(8,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,mf)),oi(10,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),vo(11,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,bf)),oi(13,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),vo(14,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,_f)),oi(16,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,3,0,ho(1,"/channelz/channel/",e.context.$implicit.getRef().getChannelId(),"")),t(e,10,0,e.context.$implicit.getChannelRefList()),t(e,13,0,e.context.$implicit.getSubchannelRefList()),t(e,16,0,e.context.$implicit.getSocketRefList())},function(t,e){var n=e.component;t(e,2,0,Go(e,3).target,Go(e,3).href),t(e,4,0,e.context.$implicit.getRef().getChannelId(),e.context.$implicit.getRef().getName()),t(e,7,0,n.channelDataHelperProxy(e.context.$implicit.getData()))})}function Cf(t){return Pi(0,[(t()(),vo(0,0,null,null,3,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(-1,null,["Click here for next page"]))],function(t,e){t(e,2,0,ho(1,"/channelz/topchannels/",e.component.nextId,""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href)})}function Sf(t){return Pi(0,[(t()(),vo(0,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Ii(-1,null,["End of results"]))],null,null)}function xf(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"h3",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Showing top level channels starting from:"])),(t()(),vo(2,0,[["textbox",1]],null,7,"input",[["required",""],["type","text"]],[[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,"keyup.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==Go(t,3)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Go(t,3).onTouched()&&r),"compositionstart"===e&&(r=!1!==Go(t,3)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Go(t,3)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.startId=n)&&r),"keyup.enter"===e&&(r=!1!==o.processEntry()&&r),r},null,null)),oi(3,16384,null,0,Eh,[cn,pn,[2,xh]],null,null),oi(4,16384,null,0,rf,[],{required:[0,"required"]},null),li(1024,null,vh,function(t){return[t]},[rf]),li(1024,null,Ch,function(t){return[t]},[Eh]),oi(7,671744,null,0,nf,[[8,null],[6,vh],[8,null],[6,Ch]],{model:[0,"model"]},{update:"ngModelChange"}),li(2048,null,Oh,null,[nf]),oi(9,16384,null,0,qh,[[4,Oh]],null,null),(t()(),vo(10,0,null,null,1,"button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.processEntry()&&r),r},null,null)),(t()(),Ii(-1,null,["Refresh"])),(t()(),vo(12,0,null,null,15,"div",[],null,null,null,null,null)),(t()(),vo(13,0,null,null,14,"table",[],null,null,null,null,null)),(t()(),vo(14,0,null,null,13,"tbody",[],null,null,null,null,null)),(t()(),vo(15,0,null,null,10,"tr",[],null,null,null,null,null)),(t()(),vo(16,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Channel"])),(t()(),vo(18,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Data"])),(t()(),vo(20,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Channels"])),(t()(),vo(22,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Subchannels"])),(t()(),vo(24,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Sockets"])),(t()(),go(16777216,null,null,1,null,wf)),oi(27,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),go(16777216,null,null,1,null,Cf)),oi(29,16384,null,0,Uu,[bn,mn],{ngIf:[0,"ngIf"]},null),(t()(),go(16777216,null,null,1,null,Sf)),oi(31,16384,null,0,Uu,[bn,mn],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,4,0,""),t(e,7,0,n.startId),t(e,27,0,n.topChannelsList),t(e,29,0,n.nextId),t(e,31,0,!n.nextId)},function(t,e){t(e,2,0,Go(e,4).required?"":null,Go(e,9).ngClassUntouched,Go(e,9).ngClassTouched,Go(e,9).ngClassPristine,Go(e,9).ngClassDirty,Go(e,9).ngClassValid,Go(e,9).ngClassInvalid,Go(e,9).ngClassPending)})}var Ef=Vo("app-top-channels",vf,function(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"app-top-channels",[],null,null,null,xf,yf)),oi(1,114688,null,0,vf,[$c,Vp,uf],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),kf=function(t,e){this.name=t,this.value=e},Tf=function(){function t(t,e,n){this.route=t,this.router=e,this.channelzService=n}return t.prototype.ngOnInit=function(){var t=this;this.render(),this.route.params.subscribe(function(e){return t.render()})},t.prototype.processEntry=function(){this.router.navigateByUrl("/channelz/socket/"+this.enteredData)},t.prototype.render=function(){var t=this,e=this.route.snapshot.paramMap.get("id");this.id=null==e?0:+e,this.enteredData=this.id.toString(),this.channelzService.getSocket(+this.id).subscribe(function(e){return t.handleResponse(e)})},t.prototype.handleResponse=function(t){this.socket=t.getSocket(),this.simplifiedData=this.simplifiedDataHelper(),this.securiyStr=this.securityHelper(this.socket.getSecurity())},t.prototype.simplifiedDataHelper=function(){var t=this.socket.getData();return null==t?"undefined":"Streams started: "+t.getStreamsStarted()+"\nStreams succeeded: "+t.getStreamsSucceeded()+"\nStreams failed: "+t.getStreamsFailed()+"\nMessages sent: "+t.getMessagesSent()+"\nMessages received: "+t.getMessagesReceived()+"\nKeepalives sent: "+t.getKeepAlivesSent()+"\nLast local stream created: "+ch.transform(t.getLastLocalStreamCreatedTimestamp())+"\nLast remote stream created: "+ch.transform(t.getLastRemoteStreamCreatedTimestamp())+"\nLast message sent: "+ch.transform(t.getLastMessageSentTimestamp())+"\nLast message received: "+ch.transform(t.getLastMessageReceivedTimestamp())+"\nLocal flow control window: "+t.getLocalFlowControlWindow()+"\nRemote flow control window: "+t.getRemoteFlowControlWindow()+"\n"},t.prototype.securityHelper=function(t){if(null==t)return"plaintext";if(null!=t.getTls()){var e=t.getTls();return"standard name: "+e.getStandardName()+"\nother name: "+e.getOtherName()+"\nlocal cert (base64): "+btoa(e.getLocalCertificate())+"\nremote cert (base64): "+btoa(e.getRemoteCertificate())}if(null!=t.getOther()){var n=t.getOther();return"name: "+n.getName()+"\nvalue: "+ah(n.getValue())}return"plaintext"},t.prototype.socketOptions=function(){var t=this.socket.getData();return null==t||null==t.getOptionList()?[]:t.getOptionList().map(function(t){return null!=t.getAdditional()?new kf(t.getName(),ah(t.getAdditional())):new kf(t.getName(),t.getValue())})},t}(),If=Ur({encapsulation:0,styles:[[""]],data:{}});function Af(t){return Pi(0,[(t()(),vo(0,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(2,null,["Socket Option: ",""])),(t()(),vo(3,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(4,0,null,null,1,"pre",[],null,null,null,null,null)),(t()(),Ii(5,null,["",""]))],null,function(t,e){t(e,2,0,e.context.$implicit.name),t(e,5,0,e.context.$implicit.value)})}function Of(t){return Pi(0,[(t()(),vo(0,0,null,null,41,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,40,"table",[],null,null,null,null,null)),(t()(),vo(2,0,null,null,39,"tbody",[],null,null,null,null,null)),(t()(),vo(3,0,null,null,4,"tr",[],null,null,null,null,null)),(t()(),vo(4,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Field"])),(t()(),vo(6,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Value"])),(t()(),vo(8,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(9,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Socketref"])),(t()(),vo(11,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(12,0,null,null,1,"pre",[],null,null,null,null,null)),(t()(),Ii(13,null,["","[","]"])),(t()(),vo(14,0,null,null,6,"tr",[],null,null,null,null,null)),(t()(),vo(15,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Local Address"])),(t()(),vo(17,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),vo(18,0,null,null,2,"pre",[],null,null,null,null,null)),(t()(),Ii(19,null,["",""])),Ti(20,1),(t()(),vo(21,0,null,null,6,"tr",[],null,null,null,null,null)),(t()(),vo(22,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Remote Address"])),(t()(),vo(24,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),vo(25,0,null,null,2,"pre",[],null,null,null,null,null)),(t()(),Ii(26,null,["",""])),Ti(27,1),(t()(),vo(28,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(29,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Security"])),(t()(),vo(31,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(32,0,null,null,1,"pre",[],null,null,null,null,null)),(t()(),Ii(33,null,["",""])),(t()(),vo(34,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(35,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Data"])),(t()(),vo(37,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(38,0,null,null,1,"pre",[],null,null,null,null,null)),(t()(),Ii(39,null,["",""])),(t()(),go(16777216,null,null,1,null,Af)),oi(41,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,41,0,e.component.socketOptions())},function(t,e){var n=e.component;t(e,13,0,n.socket.getRef().getSocketId(),n.socket.getRef().getName()),t(e,19,0,Mr(e,19,0,t(e,20,0,Go(e.parent,0),n.socket.getLocal()))),t(e,26,0,Mr(e,26,0,t(e,27,0,Go(e.parent,0),n.socket.getRemote()))),t(e,33,0,n.securiyStr),t(e,39,0,n.simplifiedData)})}function Pf(t){return Pi(0,[(t()(),vo(0,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Socket does not exist"]))],null,null)}function Rf(t){return Pi(0,[ii(0,ph,[]),(t()(),vo(1,0,null,null,1,"h3",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Showing socket:"])),(t()(),vo(3,0,[["textbox",1]],null,7,"input",[["required",""],["type","text"]],[[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,"keyup.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==Go(t,4)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Go(t,4).onTouched()&&r),"compositionstart"===e&&(r=!1!==Go(t,4)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Go(t,4)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.enteredData=n)&&r),"keyup.enter"===e&&(r=!1!==o.processEntry()&&r),r},null,null)),oi(4,16384,null,0,Eh,[cn,pn,[2,xh]],null,null),oi(5,16384,null,0,rf,[],{required:[0,"required"]},null),li(1024,null,vh,function(t){return[t]},[rf]),li(1024,null,Ch,function(t){return[t]},[Eh]),oi(8,671744,null,0,nf,[[8,null],[6,vh],[8,null],[6,Ch]],{model:[0,"model"]},{update:"ngModelChange"}),li(2048,null,Oh,null,[nf]),oi(10,16384,null,0,qh,[[4,Oh]],null,null),(t()(),vo(11,0,null,null,1,"button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.processEntry()&&r),r},null,null)),(t()(),Ii(-1,null,["Refresh"])),(t()(),vo(13,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,Of)),oi(15,16384,null,0,Uu,[bn,mn],{ngIf:[0,"ngIf"]},null),(t()(),go(16777216,null,null,1,null,Pf)),oi(17,16384,null,0,Uu,[bn,mn],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,5,0,""),t(e,8,0,n.enteredData),t(e,15,0,n.socket),t(e,17,0,!n.socket)},function(t,e){t(e,3,0,Go(e,5).required?"":null,Go(e,10).ngClassUntouched,Go(e,10).ngClassTouched,Go(e,10).ngClassPristine,Go(e,10).ngClassDirty,Go(e,10).ngClassValid,Go(e,10).ngClassInvalid,Go(e,10).ngClassPending)})}var Nf=Vo("app-socket",Tf,function(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"app-socket",[],null,null,null,Rf,If)),oi(1,114688,null,0,Tf,[$c,Vp,uf],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),Vf=function(){function t(t,e,n){this.route=t,this.router=e,this.channelzService=n,this.enteredData="0",this.id=0}return t.prototype.ngOnInit=function(){var t=this;this.render(),this.route.params.subscribe(function(e){return t.render()})},t.prototype.processEntry=function(){this.router.navigateByUrl("/channelz/channel/"+this.enteredData)},t.prototype.render=function(){var t=this,e=this.route.snapshot.paramMap.get("id");this.id=null==e?0:+e,this.enteredData=this.id.toString(),this.channelzService.getChannel(this.id).subscribe(function(e){return t.handleResponse(e)})},t.prototype.handleResponse=function(t){this.channel=t.getChannel(),this.channelDataStr=sh(this.channel.getData())},t}(),Df=Ur({encapsulation:0,styles:[[""]],data:{}});function Mf(t){return Pi(0,[(t()(),vo(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/channel/",e.context.$implicit.getChannelId(),""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.getChannelId(),e.context.$implicit.getName())})}function jf(t){return Pi(0,[(t()(),vo(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/subchannel/",e.context.$implicit.getSubchannelId(),""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.getSubchannelId(),e.context.$implicit.getName())})}function Lf(t){return Pi(0,[(t()(),vo(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/socket/",e.context.$implicit.getSocketId(),""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.getSocketId(),e.context.$implicit.getName())})}function Uf(t){return Pi(0,[(t()(),vo(0,0,null,null,37,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,36,"table",[],null,null,null,null,null)),(t()(),vo(2,0,null,null,35,"tbody",[],null,null,null,null,null)),(t()(),vo(3,0,null,null,4,"tr",[],null,null,null,null,null)),(t()(),vo(4,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Field"])),(t()(),vo(6,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Value"])),(t()(),vo(8,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(9,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["ChannelRef"])),(t()(),vo(11,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(12,0,null,null,1,"pre",[],null,null,null,null,null)),(t()(),Ii(13,null,["","[","]"])),(t()(),vo(14,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(15,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Data"])),(t()(),vo(17,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(18,0,null,null,1,"pre",[],null,null,null,null,null)),(t()(),Ii(19,null,["",""])),(t()(),vo(20,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(21,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Channels"])),(t()(),vo(23,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,Mf)),oi(25,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),vo(26,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(27,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Subchannels"])),(t()(),vo(29,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,jf)),oi(31,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),vo(32,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(33,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Sockets"])),(t()(),vo(35,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,Lf)),oi(37,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,25,0,n.channel.getChannelRefList()),t(e,31,0,n.channel.getSubchannelRefList()),t(e,37,0,n.channel.getSocketRefList())},function(t,e){var n=e.component;t(e,13,0,n.channel.getRef().getChannelId(),n.channel.getRef().getName()),t(e,19,0,n.channelDataStr)})}function zf(t){return Pi(0,[(t()(),vo(0,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Channel does not exist"]))],null,null)}function Ff(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"h3",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Showing channel:"])),(t()(),vo(2,0,[["textbox",1]],null,7,"input",[["required",""],["type","text"]],[[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,"keyup.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==Go(t,3)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Go(t,3).onTouched()&&r),"compositionstart"===e&&(r=!1!==Go(t,3)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Go(t,3)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.enteredData=n)&&r),"keyup.enter"===e&&(r=!1!==o.processEntry()&&r),r},null,null)),oi(3,16384,null,0,Eh,[cn,pn,[2,xh]],null,null),oi(4,16384,null,0,rf,[],{required:[0,"required"]},null),li(1024,null,vh,function(t){return[t]},[rf]),li(1024,null,Ch,function(t){return[t]},[Eh]),oi(7,671744,null,0,nf,[[8,null],[6,vh],[8,null],[6,Ch]],{model:[0,"model"]},{update:"ngModelChange"}),li(2048,null,Oh,null,[nf]),oi(9,16384,null,0,qh,[[4,Oh]],null,null),(t()(),vo(10,0,null,null,1,"button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.processEntry()&&r),r},null,null)),(t()(),Ii(-1,null,["Refresh"])),(t()(),vo(12,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,Uf)),oi(14,16384,null,0,Uu,[bn,mn],{ngIf:[0,"ngIf"]},null),(t()(),go(16777216,null,null,1,null,zf)),oi(16,16384,null,0,Uu,[bn,mn],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,4,0,""),t(e,7,0,n.enteredData),t(e,14,0,n.channel),t(e,16,0,!n.channel&&n.id)},function(t,e){t(e,2,0,Go(e,4).required?"":null,Go(e,9).ngClassUntouched,Go(e,9).ngClassTouched,Go(e,9).ngClassPristine,Go(e,9).ngClassDirty,Go(e,9).ngClassValid,Go(e,9).ngClassInvalid,Go(e,9).ngClassPending)})}var Hf=Vo("app-channel",Vf,function(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"app-channel",[],null,null,null,Ff,Df)),oi(1,114688,null,0,Vf,[$c,Vp,uf],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),qf=function(){function t(t,e,n){this.route=t,this.router=e,this.channelzService=n}return t.prototype.ngOnInit=function(){var t=this;this.render(),this.route.params.subscribe(function(e){return t.render()})},t.prototype.processEntry=function(){this.router.navigateByUrl("/channelz/subchannel/"+this.enteredData)},t.prototype.render=function(){var t=this,e=this.route.snapshot.paramMap.get("id");this.id=null==e?0:+e,this.enteredData=this.id.toString(),this.channelzService.getSubchannel(this.id).subscribe(function(e){return t.handleResponse(e)})},t.prototype.handleResponse=function(t){this.subchannel=t.getSubchannel(),this.subchannelDataStr=sh(this.subchannel.getData())},t}(),Bf=Ur({encapsulation:0,styles:[[""]],data:{}});function Gf(t){return Pi(0,[(t()(),vo(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/channel/",e.context.$implicit.getChannelId(),""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.getChannelId(),e.context.$implicit.getName())})}function Kf(t){return Pi(0,[(t()(),vo(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/subchannel/",e.context.$implicit.getChannelId(),""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.getSubchannelId(),e.context.$implicit.getName())})}function Wf(t){return Pi(0,[(t()(),vo(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(3,null,["","[","]"])),(t()(),Ii(-1,null,[", "]))],function(t,e){t(e,2,0,ho(1,"/channelz/socket/",e.context.$implicit.getSocketId(),""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href),t(e,3,0,e.context.$implicit.getSocketId(),e.context.$implicit.getName())})}function Zf(t){return Pi(0,[(t()(),vo(0,0,null,null,37,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,36,"table",[],null,null,null,null,null)),(t()(),vo(2,0,null,null,35,"tbody",[],null,null,null,null,null)),(t()(),vo(3,0,null,null,4,"tr",[],null,null,null,null,null)),(t()(),vo(4,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Field"])),(t()(),vo(6,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Value"])),(t()(),vo(8,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(9,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["SubchannelRef"])),(t()(),vo(11,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(12,0,null,null,1,"pre",[],null,null,null,null,null)),(t()(),Ii(13,null,["","[","]"])),(t()(),vo(14,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(15,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Data"])),(t()(),vo(17,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),vo(18,0,null,null,1,"pre",[],null,null,null,null,null)),(t()(),Ii(19,null,["",""])),(t()(),vo(20,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(21,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Channels"])),(t()(),vo(23,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,Gf)),oi(25,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),vo(26,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(27,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Subchannels"])),(t()(),vo(29,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,Kf)),oi(31,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),vo(32,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),vo(33,0,null,null,1,"td",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Sockets"])),(t()(),vo(35,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,Wf)),oi(37,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,25,0,n.subchannel.getChannelRefList()),t(e,31,0,n.subchannel.getSubchannelRefList()),t(e,37,0,n.subchannel.getSocketRefList())},function(t,e){var n=e.component;t(e,13,0,n.subchannel.getRef().getSubchannelId(),n.subchannel.getRef().getName()),t(e,19,0,n.subchannelDataStr)})}function $f(t){return Pi(0,[(t()(),vo(0,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Subchannel does not exist"]))],null,null)}function Qf(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"h3",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Showing subchannel:"])),(t()(),vo(2,0,[["textbox",1]],null,7,"input",[["required",""],["type","text"]],[[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,"keyup.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==Go(t,3)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Go(t,3).onTouched()&&r),"compositionstart"===e&&(r=!1!==Go(t,3)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Go(t,3)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.enteredData=n)&&r),"keyup.enter"===e&&(r=!1!==o.processEntry()&&r),r},null,null)),oi(3,16384,null,0,Eh,[cn,pn,[2,xh]],null,null),oi(4,16384,null,0,rf,[],{required:[0,"required"]},null),li(1024,null,vh,function(t){return[t]},[rf]),li(1024,null,Ch,function(t){return[t]},[Eh]),oi(7,671744,null,0,nf,[[8,null],[6,vh],[8,null],[6,Ch]],{model:[0,"model"]},{update:"ngModelChange"}),li(2048,null,Oh,null,[nf]),oi(9,16384,null,0,qh,[[4,Oh]],null,null),(t()(),vo(10,0,null,null,1,"button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.processEntry()&&r),r},null,null)),(t()(),Ii(-1,null,["Refresh"])),(t()(),vo(12,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),go(16777216,null,null,1,null,Zf)),oi(14,16384,null,0,Uu,[bn,mn],{ngIf:[0,"ngIf"]},null),(t()(),go(16777216,null,null,1,null,$f)),oi(16,16384,null,0,Uu,[bn,mn],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,4,0,""),t(e,7,0,n.enteredData),t(e,14,0,n.subchannel),t(e,16,0,!n.subchannel&&n.id)},function(t,e){t(e,2,0,Go(e,4).required?"":null,Go(e,9).ngClassUntouched,Go(e,9).ngClassTouched,Go(e,9).ngClassPristine,Go(e,9).ngClassDirty,Go(e,9).ngClassValid,Go(e,9).ngClassInvalid,Go(e,9).ngClassPending)})}var Jf=Vo("app-subchannel",qf,function(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"app-subchannel",[],null,null,null,Qf,Bf)),oi(1,114688,null,0,qf,[$c,Vp,uf],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),Yf=function(){function t(t,e,n){this.route=t,this.router=e,this.channelzService=n}return t.prototype.ngOnInit=function(){var t=this;this.render(),this.route.params.subscribe(function(e){return t.render()})},t.prototype.processEntry=function(){this.router.navigateByUrl("/channelz/serversockets/"+this.serverId+"/"+this.socketStartId)},t.prototype.render=function(){var t=this,e=this.route.snapshot.paramMap.get("serverId");this.serverId=null==e?0:+e;var n=this.route.snapshot.paramMap.get("socketStartId");this.socketStartId=null==n?0:+n,this.channelzService.getServerSockets(this.serverId,this.socketStartId).subscribe(function(e){return t.handleResponse(e)})},t.prototype.handleResponse=function(t){this.sockets=t.getSocketRefList(),this.nextSocketId=t.getEnd()?null:this.sockets[this.sockets.length-1].getSocketId()},t}(),Xf=Ur({encapsulation:0,styles:[[""]],data:{}});function td(t){return Pi(0,[(t()(),vo(0,0,null,null,4,"tr",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),vo(2,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,3).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(3,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(4,null,["","[","]"]))],function(t,e){t(e,3,0,ho(1,"/channelz/socket/",e.context.$implicit.getSocketId(),""))},function(t,e){t(e,2,0,Go(e,3).target,Go(e,3).href),t(e,4,0,e.context.$implicit.getSocketId(),e.context.$implicit.getName())})}function ed(t){return Pi(0,[(t()(),vo(0,0,null,null,3,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,2,"a",[],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,2).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(2,671744,null,0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),(t()(),Ii(-1,null,["Click here for next page"]))],function(t,e){var n=e.component;t(e,2,0,ho(2,"/channelz/serversockets/",n.serverId,"/",n.nextSocketId,""))},function(t,e){t(e,1,0,Go(e,2).target,Go(e,2).href)})}function nd(t){return Pi(0,[(t()(),vo(0,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Ii(-1,null,["End of results"]))],null,null)}function rd(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"h3",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Showing server sockets starting from:"])),(t()(),Ii(-1,null,["\nServer id:\n"])),(t()(),vo(3,0,[["serverIdTextBox",1]],null,7,"input",[["required",""],["type","text"]],[[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,"keyup.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==Go(t,4)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Go(t,4).onTouched()&&r),"compositionstart"===e&&(r=!1!==Go(t,4)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Go(t,4)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.serverId=n)&&r),"keyup.enter"===e&&(r=!1!==o.processEntry()&&r),r},null,null)),oi(4,16384,null,0,Eh,[cn,pn,[2,xh]],null,null),oi(5,16384,null,0,rf,[],{required:[0,"required"]},null),li(1024,null,vh,function(t){return[t]},[rf]),li(1024,null,Ch,function(t){return[t]},[Eh]),oi(8,671744,null,0,nf,[[8,null],[6,vh],[8,null],[6,Ch]],{model:[0,"model"]},{update:"ngModelChange"}),li(2048,null,Oh,null,[nf]),oi(10,16384,null,0,qh,[[4,Oh]],null,null),(t()(),Ii(-1,null,["\nStarting socket:\n"])),(t()(),vo(12,0,[["socketStartIdTextBox",1]],null,7,"input",[["required",""],["type","text"]],[[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,"keyup.enter"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,e,n){var r=!0,o=t.component;return"input"===e&&(r=!1!==Go(t,13)._handleInput(n.target.value)&&r),"blur"===e&&(r=!1!==Go(t,13).onTouched()&&r),"compositionstart"===e&&(r=!1!==Go(t,13)._compositionStart()&&r),"compositionend"===e&&(r=!1!==Go(t,13)._compositionEnd(n.target.value)&&r),"ngModelChange"===e&&(r=!1!==(o.socketStartId=n)&&r),"keyup.enter"===e&&(r=!1!==o.processEntry()&&r),r},null,null)),oi(13,16384,null,0,Eh,[cn,pn,[2,xh]],null,null),oi(14,16384,null,0,rf,[],{required:[0,"required"]},null),li(1024,null,vh,function(t){return[t]},[rf]),li(1024,null,Ch,function(t){return[t]},[Eh]),oi(17,671744,null,0,nf,[[8,null],[6,vh],[8,null],[6,Ch]],{model:[0,"model"]},{update:"ngModelChange"}),li(2048,null,Oh,null,[nf]),oi(19,16384,null,0,qh,[[4,Oh]],null,null),(t()(),vo(20,0,null,null,1,"button",[],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.processEntry()&&r),r},null,null)),(t()(),Ii(-1,null,["Refresh"])),(t()(),vo(22,0,null,null,7,"div",[],null,null,null,null,null)),(t()(),vo(23,0,null,null,6,"table",[],null,null,null,null,null)),(t()(),vo(24,0,null,null,5,"tbody",[],null,null,null,null,null)),(t()(),vo(25,0,null,null,2,"tr",[],null,null,null,null,null)),(t()(),vo(26,0,null,null,1,"th",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Sockets"])),(t()(),go(16777216,null,null,1,null,td)),oi(29,802816,null,0,ju,[bn,mn,Fn],{ngForOf:[0,"ngForOf"]},null),(t()(),go(16777216,null,null,1,null,ed)),oi(31,16384,null,0,Uu,[bn,mn],{ngIf:[0,"ngIf"]},null),(t()(),go(16777216,null,null,1,null,nd)),oi(33,16384,null,0,Uu,[bn,mn],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,5,0,""),t(e,8,0,n.serverId),t(e,14,0,""),t(e,17,0,n.socketStartId),t(e,29,0,n.sockets),t(e,31,0,n.nextSocketId),t(e,33,0,!n.nextSocketId)},function(t,e){t(e,3,0,Go(e,5).required?"":null,Go(e,10).ngClassUntouched,Go(e,10).ngClassTouched,Go(e,10).ngClassPristine,Go(e,10).ngClassDirty,Go(e,10).ngClassValid,Go(e,10).ngClassInvalid,Go(e,10).ngClassPending),t(e,12,0,Go(e,14).required?"":null,Go(e,19).ngClassUntouched,Go(e,19).ngClassTouched,Go(e,19).ngClassPristine,Go(e,19).ngClassDirty,Go(e,19).ngClassValid,Go(e,19).ngClassInvalid,Go(e,19).ngClassPending)})}var od=Vo("app-server-sockets",Yf,function(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"app-server-sockets",[],null,null,null,rd,Xf)),oi(1,114688,null,0,Yf,[$c,Vp,uf],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),id=function(){function t(){}return t.prototype.ngOnInit=function(){},t}(),ld=Ur({encapsulation:0,styles:[[""]],data:{}});function ud(t){return Pi(0,[(t()(),vo(0,0,null,null,5,"div",[],null,null,null,null,null)),(t()(),vo(1,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Java notes:"])),(t()(),vo(3,0,null,null,2,"ul",[],null,null,null,null,null)),(t()(),vo(4,0,null,null,1,"li",[],null,null,null,null,null)),(t()(),Ii(-1,null,["InProcessTransport is not a real socket, so in process servers and channels will not provide socket level stats. If you try to load an InProcesTransport, channelz will report that the socket is not found. This is normal. Use the provided channel, subchannel, or server level stats instead."]))],null,null)}var ad=Vo("app-help",id,function(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"app-help",[],null,null,null,ud,ld)),oi(1,114688,null,0,id,[],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),sd=Ur({encapsulation:0,styles:[[""]],data:{}});function cd(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),Ii(-1,null,["Channelz"])),(t()(),vo(2,0,null,null,49,"nav",[],null,null,null,null,null)),(t()(),vo(3,0,null,null,5,"a",[["routerLink","/channelz/servers"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,4).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(4,671744,[[2,4]],0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),oi(5,1720320,null,2,Up,[Vp,pn,cn,_n],{routerLinkActive:[0,"routerLinkActive"]},null),wi(603979776,1,{links:1}),wi(603979776,2,{linksWithHrefs:1}),(t()(),Ii(-1,null,["Servers"])),(t()(),Ii(-1,null,["\xa0\xa0 "])),(t()(),vo(10,0,null,null,5,"a",[["routerLink","/channelz/topchannels"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,11).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(11,671744,[[4,4]],0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),oi(12,1720320,null,2,Up,[Vp,pn,cn,_n],{routerLinkActive:[0,"routerLinkActive"]},null),wi(603979776,3,{links:1}),wi(603979776,4,{linksWithHrefs:1}),(t()(),Ii(-1,null,["TopChannels"])),(t()(),Ii(-1,null,["\xa0\xa0 "])),(t()(),vo(17,0,null,null,5,"a",[["routerLink","/channelz/serversockets"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,18).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(18,671744,[[6,4]],0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),oi(19,1720320,null,2,Up,[Vp,pn,cn,_n],{routerLinkActive:[0,"routerLinkActive"]},null),wi(603979776,5,{links:1}),wi(603979776,6,{linksWithHrefs:1}),(t()(),Ii(-1,null,["Server sockets"])),(t()(),Ii(-1,null,["\xa0\xa0 "])),(t()(),vo(24,0,null,null,5,"a",[["routerLink","/channelz/channel"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,25).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(25,671744,[[8,4]],0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),oi(26,1720320,null,2,Up,[Vp,pn,cn,_n],{routerLinkActive:[0,"routerLinkActive"]},null),wi(603979776,7,{links:1}),wi(603979776,8,{linksWithHrefs:1}),(t()(),Ii(-1,null,["Channel"])),(t()(),Ii(-1,null,["\xa0\xa0 "])),(t()(),vo(31,0,null,null,5,"a",[["routerLink","/channelz/subchannel"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,32).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(32,671744,[[10,4]],0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),oi(33,1720320,null,2,Up,[Vp,pn,cn,_n],{routerLinkActive:[0,"routerLinkActive"]},null),wi(603979776,9,{links:1}),wi(603979776,10,{linksWithHrefs:1}),(t()(),Ii(-1,null,["Subchannel"])),(t()(),Ii(-1,null,["\xa0\xa0 "])),(t()(),vo(38,0,null,null,5,"a",[["routerLink","/channelz/socket"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,39).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(39,671744,[[12,4]],0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),oi(40,1720320,null,2,Up,[Vp,pn,cn,_n],{routerLinkActive:[0,"routerLinkActive"]},null),wi(603979776,11,{links:1}),wi(603979776,12,{linksWithHrefs:1}),(t()(),Ii(-1,null,["Socket"])),(t()(),Ii(-1,null,["\xa0\xa0 "])),(t()(),vo(45,0,null,null,5,"a",[["routerLink","/channelz/help"],["routerLinkActive","active"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Go(t,46).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),oi(46,671744,[[14,4]],0,jp,[Vp,$c,Cu],{routerLink:[0,"routerLink"]},null),oi(47,1720320,null,2,Up,[Vp,pn,cn,_n],{routerLinkActive:[0,"routerLinkActive"]},null),wi(603979776,13,{links:1}),wi(603979776,14,{linksWithHrefs:1}),(t()(),Ii(-1,null,["Help"])),(t()(),Ii(-1,null,["\xa0\xa0\n"])),(t()(),vo(52,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),oi(53,212992,null,0,Hp,[Fp,bn,Ae,[8,null],_n],null,null)],function(t,e){t(e,4,0,"/channelz/servers"),t(e,5,0,"active"),t(e,11,0,"/channelz/topchannels"),t(e,12,0,"active"),t(e,18,0,"/channelz/serversockets"),t(e,19,0,"active"),t(e,25,0,"/channelz/channel"),t(e,26,0,"active"),t(e,32,0,"/channelz/subchannel"),t(e,33,0,"active"),t(e,39,0,"/channelz/socket"),t(e,40,0,"active"),t(e,46,0,"/channelz/help"),t(e,47,0,"active"),t(e,53,0)},function(t,e){t(e,3,0,Go(e,4).target,Go(e,4).href),t(e,10,0,Go(e,11).target,Go(e,11).href),t(e,17,0,Go(e,18).target,Go(e,18).href),t(e,24,0,Go(e,25).target,Go(e,25).href),t(e,31,0,Go(e,32).target,Go(e,32).href),t(e,38,0,Go(e,39).target,Go(e,39).href),t(e,45,0,Go(e,46).target,Go(e,46).href)})}var pd=Vo("app-root",bu,function(t){return Pi(0,[(t()(),vo(0,0,null,null,1,"app-root",[],null,null,null,cd,sd)),oi(1,49152,null,0,bu,[],null,null)],null,null)},{},{},[]),hd=function(){},fd=function(){},dd=function(){function t(t){var e=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){e.headers=new Map,t.split("\n").forEach(function(t){var n=t.indexOf(":");if(n>0){var r=t.slice(0,n),o=r.toLowerCase(),i=t.slice(n+1).trim();e.maybeSetNormalizedName(r,o),e.headers.has(o)?e.headers.get(o).push(i):e.headers.set(o,[i])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(o,r),e.maybeSetNormalizedName(n,o))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,a(n)),this.headers.set(e,r);break;case"d":var o=t.value;if(o){var i=this.headers.get(e);if(!i)return;0===(i=i.filter(function(t){return-1===o.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),gd=function(){function t(){}return t.prototype.encodeKey=function(t){return vd(t)},t.prototype.encodeValue=function(t){return vd(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function vd(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var yd=function(){function t(t){void 0===t&&(t={});var e,n,r,o=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new gd,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,r=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),o=u(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),i=o[0],l=o[1],a=r.get(i)||[];a.push(l),r.set(i,a)}),r)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];o.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],o=r.indexOf(e.value);-1!==o&&r.splice(o,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=null)},t}();function md(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function bd(t){return"undefined"!=typeof Blob&&t instanceof Blob}function _d(t){return"undefined"!=typeof FormData&&t instanceof FormData}var wd=function(){function t(t,e,n,r){var o;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==n?n:null,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new dd),this.params){var i=this.params.toString();if(0===i.length)this.urlWithParams=e;else{var l=e.indexOf("?");this.urlWithParams=e+(-1===l?"?":l=200&&this.status<300}}(),xd=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=Cd.ResponseHeader,n}return o(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(Sd),Ed=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=Cd.Response,n.body=void 0!==e.body?e.body:null,n}return o(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(Sd),kd=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return o(e,t),e}(Sd);function Td(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var Id=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r,o=this;if(void 0===n&&(n={}),t instanceof wd)r=t;else{var i;i=n.headers instanceof dd?n.headers:new dd(n.headers);var l=void 0;n.params&&(l=n.params instanceof yd?n.params:new yd({fromObject:n.params})),r=new wd(t,e,void 0!==n.body?n.body:null,{headers:i,params:l,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var u=Wu(r).pipe($u(function(t){return o.handler.handle(t)}));if(t instanceof wd||"events"===n.observe)return u;var a=u.pipe(Qu(function(t){return t instanceof Ed}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return a.pipe(B(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return a.pipe(B(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return a.pipe(B(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return a.pipe(B(function(t){return t.body}))}case"response":return a;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new yd).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,Td(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,Td(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,Td(n,e))},t}(),Ad=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),Od=new ft("HTTP_INTERCEPTORS"),Pd=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}(),Rd=/^\)\]\}',?\n/,Nd=function(){},Vd=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),Dd=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new O(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var o=t.detectContentTypeHeader();null!==o&&r.setRequestHeader("Content-Type",o)}if(t.responseType){var i=t.responseType.toLowerCase();r.responseType="json"!==i?i:"text"}var l=t.serializeBody(),u=null,a=function(){if(null!==u)return u;var e=1223===r.status?204:r.status,n=r.statusText||"OK",o=new dd(r.getAllResponseHeaders()),i=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return u=new xd({headers:o,status:e,statusText:n,url:i})},s=function(){var e=a(),o=e.headers,i=e.status,l=e.statusText,u=e.url,s=null;204!==i&&(s=void 0===r.response?r.responseText:r.response),0===i&&(i=s?200:0);var c=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof s){var p=s;s=s.replace(Rd,"");try{s=""!==s?JSON.parse(s):null}catch(t){s=p,c&&(c=!1,s={error:t,text:s})}}c?(n.next(new Ed({body:s,headers:o,status:i,statusText:l,url:u||void 0})),n.complete()):n.error(new kd({error:s,headers:o,status:i,statusText:l,url:u||void 0}))},c=function(t){var e=new kd({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(e)},p=!1,h=function(e){p||(n.next(a()),p=!0);var o={type:Cd.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(o.total=e.total),"text"===t.responseType&&r.responseText&&(o.partialText=r.responseText),n.next(o)},f=function(t){var e={type:Cd.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",s),r.addEventListener("error",c),t.reportProgress&&(r.addEventListener("progress",h),null!==l&&r.upload&&r.upload.addEventListener("progress",f)),r.send(l),n.next({type:Cd.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",s),t.reportProgress&&(r.removeEventListener("progress",h),null!==l&&r.upload&&r.upload.removeEventListener("progress",f)),r.abort()}})},t}(),Md=new ft("XSRF_COOKIE_NAME"),jd=new ft("XSRF_HEADER_NAME"),Ld=function(){},Ud=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Du(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}(),zd=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t}(),Fd=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(Od,[]);this.chain=e.reduceRight(function(t,e){return new Ad(t,e)},this.backend)}return this.chain.handle(t)},t}(),Hd=function(){function t(){}return t.disable=function(){return{ngModule:t,providers:[{provide:zd,useClass:Pd}]}},t.withOptions=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[e.cookieName?{provide:Md,useValue:e.cookieName}:[],e.headerName?{provide:jd,useValue:e.headerName}:[]]}},t}(),qd=function(){},Bd=function(){},Gd=function(t,e,n){return new Ll(mu,[bu],function(t){return function(t){for(var e={},n=[],r=!1,o=0;o",this._properties=t&&t.properties||{},this._zoneDelegate=new c(this,this._parent&&this._parent._zoneDelegate,t)}return t.assertZonePatched=function(){if(e.Promise!==O.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(t,"root",{get:function(){for(var e=t.current;e.parent;)e=e.parent;return e},enumerable:!0,configurable:!0}),Object.defineProperty(t,"current",{get:function(){return D.zone},enumerable:!0,configurable:!0}),Object.defineProperty(t,"currentTask",{get:function(){return j},enumerable:!0,configurable:!0}),t.__load_patch=function(o,i){if(O.hasOwnProperty(o))throw Error("Already loaded patch: "+o);if(!e["__Zone_disable_"+o]){var a="Zone:"+o;n(a),O[o]=i(e,t,S),r(a,a)}},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),t.prototype.get=function(e){var t=this.getZoneWith(e);if(t)return t._properties[e]},t.prototype.getZoneWith=function(e){for(var t=this;t;){if(t._properties.hasOwnProperty(e))return t;t=t._parent}return null},t.prototype.fork=function(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)},t.prototype.wrap=function(e,t){if("function"!=typeof e)throw new Error("Expecting function got: "+e);var n=this._zoneDelegate.intercept(this,e,t),r=this;return function(){return r.runGuarded(n,this,arguments,t)}},t.prototype.run=function(e,t,n,r){void 0===t&&(t=void 0),void 0===n&&(n=null),void 0===r&&(r=null),D={parent:D,zone:this};try{return this._zoneDelegate.invoke(this,e,t,n,r)}finally{D=D.parent}},t.prototype.runGuarded=function(e,t,n,r){void 0===t&&(t=null),void 0===n&&(n=null),void 0===r&&(r=null),D={parent:D,zone:this};try{try{return this._zoneDelegate.invoke(this,e,t,n,r)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{D=D.parent}},t.prototype.runTask=function(e,t,n){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||g).name+"; Execution: "+this.name+")");if(e.state!==y||e.type!==x){var r=e.state!=k;r&&e._transitionTo(k,m),e.runCount++;var o=j;j=e,D={parent:D,zone:this};try{e.type==E&&e.data&&!e.data.isPeriodic&&(e.cancelFn=null);try{return this._zoneDelegate.invokeTask(this,e,t,n)}catch(e){if(this._zoneDelegate.handleError(this,e))throw e}}finally{e.state!==y&&e.state!==T&&(e.type==x||e.data&&e.data.isPeriodic?r&&e._transitionTo(m,k):(e.runCount=0,this._updateTaskCount(e,-1),r&&e._transitionTo(y,k,y))),D=D.parent,j=o}}},t.prototype.scheduleTask=function(e){if(e.zone&&e.zone!==this)for(var t=this;t;){if(t===e.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+e.zone.name);t=t.parent}e._transitionTo(_,y);var n=[];e._zoneDelegates=n,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(t){throw e._transitionTo(T,_,y),this._zoneDelegate.handleError(this,t),t}return e._zoneDelegates===n&&this._updateTaskCount(e,1),e.state==_&&e._transitionTo(m,_),e},t.prototype.scheduleMicroTask=function(e,t,n,r){return this.scheduleTask(new u(w,e,t,n,r,null))},t.prototype.scheduleMacroTask=function(e,t,n,r,o){return this.scheduleTask(new u(E,e,t,n,r,o))},t.prototype.scheduleEventTask=function(e,t,n,r,o){return this.scheduleTask(new u(x,e,t,n,r,o))},t.prototype.cancelTask=function(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||g).name+"; Execution: "+this.name+")");e._transitionTo(b,m,k);try{this._zoneDelegate.cancelTask(this,e)}catch(t){throw e._transitionTo(T,b),this._zoneDelegate.handleError(this,t),t}return this._updateTaskCount(e,-1),e._transitionTo(y,b),e.runCount=0,e},t.prototype._updateTaskCount=function(e,t){var n=e._zoneDelegates;-1==t&&(e._zoneDelegates=null);for(var r=0;r0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:e})},e}(),u=function(){function t(n,r,o,i,a,c){this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=i,this.scheduleFn=a,this.cancelFn=c,this.callback=o;var u=this;this.invoke=n===x&&i&&i.useG?t.invokeTask:function(){return t.invokeTask.call(e,u,this,arguments)}}return t.invokeTask=function(e,t,n){e||(e=this),P++;try{return e.runCount++,e.zone.runTask(e,t,n)}finally{1==P&&d(),P--}},Object.defineProperty(t.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),t.prototype.cancelScheduleRequest=function(){this._transitionTo(y,_)},t.prototype._transitionTo=function(e,t,n){if(this._state!==t&&this._state!==n)throw new Error(this.type+" '"+this.source+"': can not transition to '"+e+"', expecting state '"+t+"'"+(n?" or '"+n+"'":"")+", was '"+this._state+"'.");this._state=e,e==y&&(this._zoneDelegates=null)},t.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId:Object.prototype.toString.call(this)},t.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},t}(),s=z("setTimeout"),l=z("Promise"),f=z("then"),p=[],h=!1;function v(t){0===P&&0===p.length&&(o||e[l]&&(o=e[l].resolve(0)),o?o[f](d):e[s](d,0)),t&&p.push(t)}function d(){if(!h){for(h=!0;p.length;){var e=p;p=[];for(var t=0;t=0;n--)"function"==typeof e[n]&&(e[n]=p(e[n],t+"_"+n));return e}function b(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var T="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,w=!("nw"in y)&&void 0!==y.process&&"[object process]"==={}.toString.call(y.process),E=!w&&!T&&!(!d||!g.HTMLElement),x=void 0!==y.process&&"[object process]"==={}.toString.call(y.process)&&!T&&!(!d||!g.HTMLElement),O={},S=function(e){if(e=e||y.event){var t=O[e.type];t||(t=O[e.type]=v("ON_PROPERTY"+e.type));var n=(this||e.target||y)[t],r=n&&n.apply(this,arguments);return void 0==r||r||e.preventDefault(),r}};function D(n,r,o){var i=e(n,r);if(!i&&o&&e(o,r)&&(i={enumerable:!0,configurable:!0}),i&&i.configurable){delete i.writable,delete i.value;var a=i.get,c=i.set,u=r.substr(2),s=O[u];s||(s=O[u]=v("ON_PROPERTY"+u)),i.set=function(e){var t=this;t||n!==y||(t=y),t&&(t[s]&&t.removeEventListener(u,S),c&&c.apply(t,m),"function"==typeof e?(t[s]=e,t.addEventListener(u,S,!1)):t[s]=null)},i.get=function(){var e=this;if(e||n!==y||(e=y),!e)return null;var t=e[s];if(t)return t;if(a){var o=a&&a.call(this);if(o)return i.set.call(this,o),"function"==typeof e[_]&&e.removeAttribute(r),o}return null},t(n,r,i)}}function j(e,t,n){if(t)for(var r=0;r1?new c(t,n):new c(t),f=e(l,"onmessage");return f&&!1===f.configurable?(u=r(l),s=l,[i,a,"send","close"].forEach(function(e){u[e]=function(){var t=o.call(arguments);if(e===i||e===a){var n=t.length>0?t[0]:void 0;if(n){var r=Zone.__symbol__("ON_PROPERTY"+n);l[r]=u[r]}}return l[e].apply(l,t)}})):u=l,j(u,["close","error","message","open"],s),u};var u=n.WebSocket;for(var s in c)u[s]=c[s]}(0,u)}}var fe=v("unbound");Zone.__load_patch("util",function(e,t,n){n.patchOnProperties=j,n.patchMethod=z,n.bindArguments=k}),Zone.__load_patch("timers",function(e){K(e,"set","clear","Timeout"),K(e,"set","clear","Interval"),K(e,"set","clear","Immediate")}),Zone.__load_patch("requestAnimationFrame",function(e){K(e,"request","cancel","AnimationFrame"),K(e,"mozRequest","mozCancel","AnimationFrame"),K(e,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",function(e,t){for(var n=["alert","prompt","confirm"],r=0;r=0&&"function"==typeof n[r.cbIdx]?h(r.name,n[r.cbIdx],r,i,null):e.apply(t,n)}})}()}),Zone.__load_patch("XHR",function(e,t){!function(t){var s=XMLHttpRequest.prototype,l=s[c],f=s[u];if(!l){var p=e.XMLHttpRequestEventTarget;if(p){var v=p.prototype;l=v[c],f=v[u]}}var d="readystatechange",g="scheduled";function y(e){XMLHttpRequest[i]=!1;var t=e.data,r=t.target,a=r[o];l||(l=r[c],f=r[u]),a&&f.call(r,d,a);var s=r[o]=function(){r.readyState===r.DONE&&!t.aborted&&XMLHttpRequest[i]&&e.state===g&&e.invoke()};return l.call(r,d,s),r[n]||(r[n]=e),b.apply(r,t.args),XMLHttpRequest[i]=!0,e}function _(){}function m(e){var t=e.data;return t.aborted=!0,T.apply(t.target,t.args)}var k=z(s,"open",function(){return function(e,t){return e[r]=0==t[2],e[a]=t[1],k.apply(e,t)}}),b=z(s,"send",function(){return function(e,t){return e[r]?b.apply(e,t):h("XMLHttpRequest.send",_,{target:e,url:e[a],isPeriodic:!1,delay:null,args:t,aborted:!1},y,m)}}),T=z(s,"abort",function(){return function(e){var t=e[n];if(t&&"string"==typeof t.type){if(null==t.cancelFn||t.data&&t.data.aborted)return;t.zone.cancelTask(t)}}})}();var n=v("xhrTask"),r=v("xhrSync"),o=v("xhrListener"),i=v("xhrScheduled"),a=v("xhrURL")}),Zone.__load_patch("geolocation",function(t){t.navigator&&t.navigator.geolocation&&function(t,n){for(var r=t.constructor.name,o=function(o){var i=n[o],a=t[i];if(a){if(!b(e(t,i)))return"continue";t[i]=function(e){var t=function(){return e.apply(this,k(arguments,r+"."+i))};return M(t,e),t}(a)}},i=0;i0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(o(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(o(this,"Map"),0===e?0:e,t)}},r,!0)},"9gX7":function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},Afnz:function(e,t,n){"use strict";var r=n("LQAc"),o=n("XKFU"),i=n("KroJ"),a=n("Mukb"),c=n("hPIQ"),u=n("QaDb"),s=n("fyDq"),l=n("OP3Y"),f=n("K0xU")("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,v,d,g,y){u(n,t,v);var _,m,k,b=function(e){if(!p&&e in x)return x[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},T=t+" Iterator",w="values"==d,E=!1,x=e.prototype,O=x[f]||x["@@iterator"]||d&&x[d],S=O||b(d),D=d?w?b("entries"):S:void 0,j="Array"==t&&x.entries||O;if(j&&(k=l(j.call(new e)))!==Object.prototype&&k.next&&(s(k,T,!0),r||"function"==typeof k[f]||a(k,f,h)),w&&O&&"values"!==O.name&&(E=!0,S=function(){return O.call(this)}),r&&!y||!p&&!E&&x[f]||a(x,f,S),c[t]=S,c[T]=h,d)if(_={values:w?S:b("values"),keys:g?S:b("keys"),entries:D},y)for(m in _)m in x||i(x,m,_[m]);else o(o.P+o.F*(p||E),t,_);return _}},BqfV:function(e,t,n){var r=n("N6cJ"),o=n("y3w9"),i=r.get,a=r.key;r.exp({getOwnMetadata:function(e,t){return i(e,o(t),arguments.length<3?void 0:a(arguments[2]))}})},CkkT:function(e,t,n){var r=n("m0Pp"),o=n("Ymqv"),i=n("S/j/"),a=n("ne8i"),c=n("zRwo");e.exports=function(e,t){var n=1==e,u=2==e,s=3==e,l=4==e,f=6==e,p=5==e||f,h=t||c;return function(t,c,v){for(var d,g,y=i(t),_=o(y),m=r(c,v,3),k=a(_.length),b=0,T=n?h(t,k):u?h(t,0):void 0;k>b;b++)if((p||b in _)&&(g=m(d=_[b],b,y),e))if(n)T[b]=g;else if(g)switch(e){case 3:return!0;case 5:return d;case 6:return b;case 2:T.push(d)}else if(l)return!1;return f?-1:s||l?l:T}}},DVgA:function(e,t,n){var r=n("zhAb"),o=n("4R4u");e.exports=Object.keys||function(e){return r(e,o)}},EK0E:function(e,t,n){"use strict";var r,o=n("CkkT")(0),i=n("KroJ"),a=n("Z6vF"),c=n("czNK"),u=n("ZD67"),s=n("0/R4"),l=n("eeVq"),f=n("s5qY"),p=a.getWeak,h=Object.isExtensible,v=u.ufstore,d={},g=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(e){if(s(e)){var t=p(e);return!0===t?v(f(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return u.def(f(this,"WeakMap"),e,t)}},_=e.exports=n("4LiD")("WeakMap",g,y,u,!0,!0);l(function(){return 7!=(new _).set((Object.freeze||Object)(d),7).get(d)})&&(c((r=u.getConstructor(g,"WeakMap")).prototype,y),a.NEED=!0,o(["delete","has","get","set"],function(e){var t=_.prototype,n=t[e];i(t,e,function(t,o){if(s(t)&&!h(t)){this._f||(this._f=new r);var i=this._f[e](t,o);return"set"==e?this:i}return n.call(this,t,o)})}))},EWmC:function(e,t,n){var r=n("LZWt");e.exports=Array.isArray||function(e){return"Array"==r(e)}},EemH:function(e,t,n){var r=n("UqcF"),o=n("RjD/"),i=n("aCFj"),a=n("apmT"),c=n("aagx"),u=n("xpql"),s=Object.getOwnPropertyDescriptor;t.f=n("nh4g")?s:function(e,t){if(e=i(e),t=a(t,!0),u)try{return s(e,t)}catch(e){}if(c(e,t))return o(!r.f.call(e,t),e[t])}},FJW5:function(e,t,n){var r=n("hswa"),o=n("y3w9"),i=n("DVgA");e.exports=n("nh4g")?Object.defineProperties:function(e,t){o(e);for(var n,a=i(t),c=a.length,u=0;c>u;)r.f(e,n=a[u++],t[n]);return e}},FZcq:function(e,t,n){n("49D4"),n("zq+C"),n("45Tv"),n("uAtd"),n("BqfV"),n("fN/3"),n("iW+S"),n("7Dlh"),n("Opxb"),e.exports=n("g3g5").Reflect},H6hf:function(e,t,n){var r=n("y3w9");e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},"I8a+":function(e,t,n){var r=n("LZWt"),o=n("K0xU")("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(a=r(t))&&"function"==typeof t.callee?"Arguments":a}},Iw71:function(e,t,n){var r=n("0/R4"),o=n("dyZX").document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},"J+6e":function(e,t,n){var r=n("I8a+"),o=n("K0xU")("iterator"),i=n("hPIQ");e.exports=n("g3g5").getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},JiEa:function(e,t){t.f=Object.getOwnPropertySymbols},K0xU:function(e,t,n){var r=n("VTer")("wks"),o=n("ylqs"),i=n("dyZX").Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},KroJ:function(e,t,n){var r=n("dyZX"),o=n("Mukb"),i=n("aagx"),a=n("ylqs")("src"),c=Function.toString,u=(""+c).split("toString");n("g3g5").inspectSource=function(e){return c.call(e)},(e.exports=function(e,t,n,c){var s="function"==typeof n;s&&(i(n,"name")||o(n,"name",t)),e[t]!==n&&(s&&(i(n,a)||o(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:c?e[t]?e[t]=n:o(e,t,n):(delete e[t],o(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||c.call(this)})},Kuth:function(e,t,n){var r=n("y3w9"),o=n("FJW5"),i=n("4R4u"),a=n("YTvA")("IE_PROTO"),c=function(){},u=function(){var e,t=n("Iw71")("iframe"),r=i.length;for(t.style.display="none",n("+rLv").appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write(" tag. +declare var proto: any; @Injectable() export class ChannelzService { - baseUrl = "/grpcz_internal"; + xsrfMeta: {}; - constructor(private http: HttpClient) {} - - private makeUrl(method: string, req: {}): string { - const encodedMethod = encodeURIComponent(method); - const encodedReq = encodeURIComponent(JSON.stringify(req)); - return `${this.baseUrl}?full_method_name=${encodedMethod}&request=${encodedReq}`; + constructor(private http: HttpClient) { + const arr = new Int8Array(32); // 256 bits of entropy + window.crypto.getRandomValues(arr); + const xsrfVal = btoa(arr.toString()); + document.cookie = `grpc-channelz-v1-channelz-token=${xsrfVal};path=/`; + this.xsrfMeta = {"grpc-channelz-v1-channelz-token": xsrfVal}; } - getHelper(url: string) { - console.log("getting: " + url); - return this.http.get(url, {responseType: "text"}) - .pipe(map((buf: string) => { - console.log(`Received: ${buf}`); - // TODO: only parse if 200, otherwise put error into UI - const json = JSON.parse(buf); - console.log(`Parsed into: ${json}`); - return json; - })); + private client = new proto.grpc.channelz.v1.ChannelzClient( + environment.envoy_proxy_address); + + private functionToObserver(rpcMethod: any, req: any): Observable { + return new Observable(observer => { + // To pass a method around as a parameter, the method must be bound + // to an instance of the object. In this case it is the client. + rpcMethod.bind(this.client)(req, this.xsrfMeta, function(err, response) { + observer.next(response); + observer.complete(); + }) + } + ) } getServers(startId: number): Observable<{}> { - const url = this.makeUrl( - "grpc.channelz.v1.Channelz/GetServers", {"startServerId": startId}); - return this.getHelper(url); + const req = new proto.grpc.channelz.v1.GetServersRequest(); + req.setStartServerId(startId); + return this.functionToObserver(this.client.getServers, req); } getServerSockets(serverId: number, startId: number): Observable<{}> { - const url = this.makeUrl( - "grpc.channelz.v1.Channelz/GetServerSockets", - {"serverId": serverId, "startSocketId": startId}); - return this.getHelper(url); + const req = new proto.grpc.channelz.v1.GetServerSocketsRequest(); + req.setServerId(serverId); + req.setStartSocketId(startId); + return this.functionToObserver(this.client.getServerSockets, req); } getTopChannels(startId: number): Observable<{}> { - const url = this.makeUrl( - "grpc.channelz.v1.Channelz/GetTopChannels", {"startChannelId": startId}); - return this.getHelper(url); + const req = new proto.grpc.channelz.v1.GetTopChannelsRequest(); + req.setStartChannelId(startId); + return this.functionToObserver(this.client.getTopChannels, req); } getSubchannel(id: number): Observable<{}> { - const url = this.makeUrl( - "grpc.channelz.v1.Channelz/GetSubchannel", {"subchannelId": id}); - return this.getHelper(url); + const req = new proto.grpc.channelz.v1.GetSubchannelRequest(); + req.setSubchannelId(id); + return this.functionToObserver(this.client.getSubchannel, req); } getChannel(id: number): Observable<{}> { - const url = this.makeUrl( - "grpc.channelz.v1.Channelz/GetChannel", {"channelId": id}); - return this.getHelper(url); + const req = new proto.grpc.channelz.v1.GetChannelRequest(); + req.setChannelId(id); + return this.functionToObserver(this.client.getChannel, req); } getSocket(id: number): Observable<{}> { - const url = this.makeUrl( - "grpc.channelz.v1.Channelz/GetSocket", {"socketId": id}); - return this.getHelper(url); + const req = new proto.grpc.channelz.v1.GetSocketRequest(); + req.setSocketId(id); + return this.functionToObserver(this.client.getSocket, req); } } diff --git a/grpc-zpages/web/channelzui/src/app/help/help.component.html b/grpc-zpages/web/channelzui/src/app/help/help.component.html index 9e36031..7ceb553 100644 --- a/grpc-zpages/web/channelzui/src/app/help/help.component.html +++ b/grpc-zpages/web/channelzui/src/app/help/help.component.html @@ -5,6 +5,5 @@ not provide socket level stats. If you try to load an InProcesTransport, channelz will report that the socket is not found. This is normal. Use the provided channel, subchannel, or server level stats instead. -
  • Not all stats specified by channelz.proto are exported yet, but they will be soon.
  • diff --git a/grpc-zpages/web/channelzui/src/app/server-sockets/server-sockets.component.html b/grpc-zpages/web/channelzui/src/app/server-sockets/server-sockets.component.html index d2b93bc..f1a1e0b 100644 --- a/grpc-zpages/web/channelzui/src/app/server-sockets/server-sockets.component.html +++ b/grpc-zpages/web/channelzui/src/app/server-sockets/server-sockets.component.html @@ -11,7 +11,7 @@ Starting socket: - {{s['socketId']}}[{{s['name']}}] + {{s.getSocketId()}}[{{s.getName()}}] diff --git a/grpc-zpages/web/channelzui/src/app/server-sockets/server-sockets.component.ts b/grpc-zpages/web/channelzui/src/app/server-sockets/server-sockets.component.ts index 4f2f6ef..2cc6cf1 100644 --- a/grpc-zpages/web/channelzui/src/app/server-sockets/server-sockets.component.ts +++ b/grpc-zpages/web/channelzui/src/app/server-sockets/server-sockets.component.ts @@ -55,10 +55,12 @@ export class ServerSocketsComponent implements OnInit { } private handleResponse(resp: any): void { - this.sockets = resp['socketRef']; - if (!resp['end']) { + this.sockets = resp.getSocketRefList(); + if (!resp.getEnd()) { const last = this.sockets[this.sockets.length - 1]; - this.nextSocketId = last['socketId']; + this.nextSocketId = last.getSocketId(); + } else { + this.nextSocketId = null; } } } diff --git a/grpc-zpages/web/channelzui/src/app/servers/servers.component.html b/grpc-zpages/web/channelzui/src/app/servers/servers.component.html index 839f48d..9db9832 100644 --- a/grpc-zpages/web/channelzui/src/app/servers/servers.component.html +++ b/grpc-zpages/web/channelzui/src/app/servers/servers.component.html @@ -13,14 +13,14 @@ Server id: Listen Sockets - {{server['ref']['serverId']}}[{{server['ref']['name']}}] - {{server['data']['callsStarted']}} - {{server['data']['callsSucceeded']}} - {{server['data']['callsFailed']}} - {{server['data']['lastCallStartedTimestamp'] | json}} + {{server.getRef().getServerId()}}[{{server.getRef().getName()}}] + {{server.getData().getCallsStarted()}} + {{server.getData().getCallsSucceeded()}} + {{server.getData().getCallsFailed()}} + {{server.getData().getLastCallStartedTimestamp() | dateFromProto}} -
    - {{lsock['socketId']}}[{{lsock['name']}}] + diff --git a/grpc-zpages/web/channelzui/src/app/servers/servers.component.ts b/grpc-zpages/web/channelzui/src/app/servers/servers.component.ts index db843ff..7cbb78b 100644 --- a/grpc-zpages/web/channelzui/src/app/servers/servers.component.ts +++ b/grpc-zpages/web/channelzui/src/app/servers/servers.component.ts @@ -50,10 +50,12 @@ export class ServersComponent implements OnInit { } private handleResponse(resp: any): void { - this.serversList = resp['server']; - if (!resp['end']) { + this.serversList = resp.getServerList(); + if (!resp.getEnd()) { const last = this.serversList[this.serversList.length - 1]; - this.nextId = last['ref']['serverId']; + this.nextId = last.getRef().getServerId(); + } else { + this.nextId = null; } } } diff --git a/grpc-zpages/web/channelzui/src/app/socket/socket.component.html b/grpc-zpages/web/channelzui/src/app/socket/socket.component.html index 8970a7a..0730177 100644 --- a/grpc-zpages/web/channelzui/src/app/socket/socket.component.html +++ b/grpc-zpages/web/channelzui/src/app/socket/socket.component.html @@ -9,29 +9,28 @@ Value - SocketRef -
    {{socket['ref']['socketId']}}[{{socket['ref']['name']}}]
    + Socketref +
    {{socket.getRef().getSocketId()}}[{{socket.getRef().getName()}}]
    Local Address -
    {{socket['local'] | addrpretty}}
    +
    {{socket.getLocal() | addrToString}}
    Remote Address -
    {{socket['remote'] | addrpretty}}
    +
    {{socket.getRemote() | addrToString}}
    Security -
    {{socket['security'] | jsonpretty}}
    +
    {{securiyStr}}
    Data -
    {{simplifiedData | jsonpretty}}
    +
    {{simplifiedData}}
    - Socket Option: {{opt['name']}} - -
    {{opt.value | jsonpretty}}
    + Socket Option: {{opt.name}} +
    {{opt.value}}
    diff --git a/grpc-zpages/web/channelzui/src/app/socket/socket.component.ts b/grpc-zpages/web/channelzui/src/app/socket/socket.component.ts index d302db9..ac67872 100644 --- a/grpc-zpages/web/channelzui/src/app/socket/socket.component.ts +++ b/grpc-zpages/web/channelzui/src/app/socket/socket.component.ts @@ -18,7 +18,7 @@ import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { ChannelzService } from '../channelz.service'; -import { JsonPretty } from '../utils' +import { DateFromProto, protoAnyToStringHelper } from '../utils' export class SocketOpt { constructor(public name: string, public value: string) {} @@ -34,6 +34,7 @@ export class SocketComponent implements OnInit { socket: any; id: number; simplifiedData: any; + securiyStr: string; constructor( private route: ActivatedRoute, @@ -58,32 +59,65 @@ export class SocketComponent implements OnInit { } private handleResponse(socketResponse: any): void { - this.socket = socketResponse['socket']; + this.socket = socketResponse.getSocket(); this.simplifiedData = this.simplifiedDataHelper(); + this.securiyStr = this.securityHelper(this.socket.getSecurity()); } /** * Returns a copy of the socket data, but with socket options removed. */ - simplifiedDataHelper(): any { - if (this.socket['data'] == null) { - return {}; + simplifiedDataHelper(): string { + const data = this.socket.getData(); + if (data == null) { + return "undefined"; + } + return `Streams started: ${data.getStreamsStarted()} +Streams succeeded: ${data.getStreamsSucceeded()} +Streams failed: ${data.getStreamsFailed()} +Messages sent: ${data.getMessagesSent()} +Messages received: ${data.getMessagesReceived()} +Keepalives sent: ${data.getKeepAlivesSent()} +Last local stream created: ${DateFromProto.transform(data.getLastLocalStreamCreatedTimestamp())} +Last remote stream created: ${DateFromProto.transform(data.getLastRemoteStreamCreatedTimestamp())} +Last message sent: ${DateFromProto.transform(data.getLastMessageSentTimestamp())} +Last message received: ${DateFromProto.transform(data.getLastMessageReceivedTimestamp())} +Local flow control window: ${data.getLocalFlowControlWindow()} +Remote flow control window: ${data.getRemoteFlowControlWindow()} +` + } + + securityHelper(security: any): string { + if (security == null) { + return "plaintext"; + } + if (security.getTls() != null) { + const tls = security.getTls(); + return `standard name: ${tls.getStandardName()} +other name: ${tls.getOtherName()} +local cert (base64): ${btoa(tls.getLocalCertificate())} +remote cert (base64): ${btoa(tls.getRemoteCertificate())}`; + } else if (security.getOther() != null) { + const other = security.getOther(); + return `name: ${other.getName()} +value: ${protoAnyToStringHelper(other.getValue())}`; + } else { + return "plaintext" } - const copy: any = JSON.parse(JSON.stringify(this.socket.data)); - copy['option'] = null; - return copy; } socketOptions(): SocketOpt[] { - if (this.socket['data'] == null || this.socket['data']['option'] == null) { + const data = this.socket.getData(); + if (data == null || data.getOptionList() == null) { return []; } - return this.socket['data']['option'].map((opt: any) => { - // value OR additional is set - if (opt['value']) { - return new SocketOpt(opt['name'], opt['value']); + + return data.getOptionList().map((opt: any) => { + if (opt.getAdditional() != null) { + return new SocketOpt( + opt.getName(), protoAnyToStringHelper(opt.getAdditional())); } else { - return new SocketOpt(opt['name'], opt['additional']); + return new SocketOpt(opt.getName(), opt.getValue()); } }); } diff --git a/grpc-zpages/web/channelzui/src/app/subchannel/subchannel.component.html b/grpc-zpages/web/channelzui/src/app/subchannel/subchannel.component.html index 04ad274..4baadba 100644 --- a/grpc-zpages/web/channelzui/src/app/subchannel/subchannel.component.html +++ b/grpc-zpages/web/channelzui/src/app/subchannel/subchannel.component.html @@ -10,33 +10,33 @@ SubchannelRef -
    {{subchannel['ref']['subchannelId']}}[{{subchannel['ref']['name']}}]
    +
    {{subchannel.getRef().getSubchannelId()}}[{{subchannel.getRef().getName()}}]
    Data -
    {{subchannel['data'] | jsonpretty}}
    +
    {{subchannelDataStr}}
    Channels -
    - {{ref['channelId']}}[{{ref['name']}}], + Subchannels -
    - {{ref['subchannelId']}}[{{ref['name']}}], + Sockets -
    - {{ref['socketId']}}[{{ref['name']}}], + diff --git a/grpc-zpages/web/channelzui/src/app/subchannel/subchannel.component.ts b/grpc-zpages/web/channelzui/src/app/subchannel/subchannel.component.ts index 7d805f1..9483806 100644 --- a/grpc-zpages/web/channelzui/src/app/subchannel/subchannel.component.ts +++ b/grpc-zpages/web/channelzui/src/app/subchannel/subchannel.component.ts @@ -18,6 +18,7 @@ import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { ChannelzService } from '../channelz.service'; +import { channelDataHelper } from '../utils'; @Component({ selector: 'app-subchannel', @@ -28,6 +29,7 @@ export class SubchannelComponent implements OnInit { enteredData: string; subchannel: any; id: number; + subchannelDataStr: string; constructor( private route: ActivatedRoute, @@ -52,6 +54,7 @@ export class SubchannelComponent implements OnInit { } private handleResponse(resp: any): void { - this.subchannel = resp['subchannel']; + this.subchannel = resp.getSubchannel(); + this.subchannelDataStr = channelDataHelper(this.subchannel.getData()); } } diff --git a/grpc-zpages/web/channelzui/src/app/top-channels/top-channels.component.html b/grpc-zpages/web/channelzui/src/app/top-channels/top-channels.component.html index 494f6e0..ec52520 100644 --- a/grpc-zpages/web/channelzui/src/app/top-channels/top-channels.component.html +++ b/grpc-zpages/web/channelzui/src/app/top-channels/top-channels.component.html @@ -11,21 +11,21 @@ Sockets - {{c['ref']['channelId']}}[{{c['ref']['name']}}] -
    {{c.data | jsonpretty}}
    + {{c.getRef().getChannelId()}}[{{c.getRef().getName()}}] +
    {{channelDataHelperProxy(c.getData())}}
    -
    - {{ref['channelId']}}[{{ref['name']}}], + -
    - {{ref['subchannelId']}}[{{ref['name']}}], + -
    - {{ref['socketId']}}[{{ref['name']}}], + diff --git a/grpc-zpages/web/channelzui/src/app/top-channels/top-channels.component.ts b/grpc-zpages/web/channelzui/src/app/top-channels/top-channels.component.ts index 7ccc37b..d880cf7 100644 --- a/grpc-zpages/web/channelzui/src/app/top-channels/top-channels.component.ts +++ b/grpc-zpages/web/channelzui/src/app/top-channels/top-channels.component.ts @@ -18,6 +18,7 @@ import { Component, OnInit } from '@angular/core'; import { ActivatedRoute, Router } from '@angular/router'; import { ChannelzService } from '../channelz.service'; +import { channelDataHelper } from '../utils'; @Component({ selector: 'app-top-channels', @@ -50,11 +51,17 @@ export class TopChannelsComponent implements OnInit { .subscribe((resp: any) => this.handleResponse(resp)); } + channelDataHelperProxy(channelData: any): string { + return channelDataHelper(channelData); + } + private handleResponse(resp: any): void { - this.topChannelsList = resp['channel']; - if (!resp['end']) { + this.topChannelsList = resp.getChannelList(); + if (!resp.getEnd()) { const last = this.topChannelsList[this.topChannelsList.length - 1]; - this.nextId = last['ref']['channelId']; + this.nextId = last.getRef().getChannelId(); + } else { + this.nextId = null; } } } diff --git a/grpc-zpages/web/channelzui/src/app/utils.ts b/grpc-zpages/web/channelzui/src/app/utils.ts index 6c04712..0264cbe 100644 --- a/grpc-zpages/web/channelzui/src/app/utils.ts +++ b/grpc-zpages/web/channelzui/src/app/utils.ts @@ -17,51 +17,69 @@ import { Pipe, PipeTransform } from '@angular/core'; +declare var protoAnyToString: any; +declare var protoEnumToString: any; +declare var proto: any; -@Pipe({name: 'jsonpretty'}) -export class JsonPretty implements PipeTransform { - transform(value: any): string { - return JsonPretty.transform(value); +export function protoAnyToStringHelper(packedAny: any): string { + return protoAnyToString(packedAny); +} + +export function channelDataHelper(channelData: any): string { + return `state: ${protoEnumToString(proto.grpc.channelz.v1.ChannelConnectivityState.State, channelData.getState().getState())} +target: ${channelData.getTarget()} +calls started: ${channelData.getCallsStarted()} +calls succeeded: ${channelData.getCallsSucceeded()} +calls failed: ${channelData.getCallsFailed()} +last call started: ${DateFromProto.transform(channelData.getLastCallStartedTimestamp())}`; +} + +@Pipe({name: 'dateFromProto'}) +export class DateFromProto implements PipeTransform { + transform(protodate: any): string { + return DateFromProto.transform(protodate); } - static transform(value: any): string { - if (value == null) { - return "NULL"; + static transform(protodate: any): string { + if (protodate == null) { + return "undefined" } - return JSON.stringify(value, null, 2); + // the 0 is required to set the initial date to unix epoch + const date = new Date(0); + date.setUTCSeconds(protodate.getSeconds()); + date.setUTCMilliseconds(protodate.getNanos() / 1000000.0); + return date.toISOString(); } } - -@Pipe({name: 'addrpretty'}) -export class AddrPretty implements PipeTransform { +@Pipe({name: 'addrToString'}) +export class AddrToString implements PipeTransform { transform(value: any): string { - return AddrPretty.transform(value); + return AddrToString.transform(value); } - static transform(addr: {}): string { - if (addr['tcpipAddress'] == null) { - return JsonPretty.transform(addr); - } - const copy = JSON.parse(JSON.stringify(addr)); - const tcpIp = copy['tcpipAddress']; - const ipAddress = tcpIp['ipAddress']; - const binary = atob(ipAddress); - const addressLen = binary.length; - if (binary.length === 4) { - // ipv4: turn bytes into decimal form - tcpIp['ipAddress'] = binary - .split("") - .map((c: string) => c.charCodeAt(0)) - .join("."); - } else if (binary.length === 16) { - // ipv6: turn bytes into hex, pad with a 0 so always 2 digits long - const hex = binary.split("") - .map((c: string) => ("0" + c.charCodeAt(0).toString(16)).substr(-2)) + static transform(addr: any): string { + if (addr == null) { + return "undefined" + } else if (addr.getUdsAddress() != null) { + return addr.getUdsAddress(); + } else if (addr.getOtherAddress() != null) { + return protoAnyToStringHelper(addr.getOtherAddress().getValue()); + } else { + const tcpAddrPort = addr.getTcpipAddress(); + const tcpAddr = tcpAddrPort.getIpAddress(); + if (tcpAddr.length === 4) { + // ipv4: turn bytes into decimal form + return tcpAddr + .join(".") + ":" + tcpAddrPort.getPort(); + } else if (tcpAddr.length === 16) { + // ipv6: turn bytes into hex, pad with a 0 so always 2 digits long + const hex = tcpAddr + .map((c: number) => ("0" + c.toString(16)).substr(-2)) .join(""); - // use regex to split into 4 character chunks - tcpIp['ipAddress'] = hex.match(/..../g).join(":"); + // use regex to split into 4 character chunks + return "[" + hex.match(/..../g).join(":") + "]:" + tcpAddrPort.getPort(); + } } - return JsonPretty.transform(copy); } } diff --git a/grpc-zpages/web/channelzui/src/environments/environment.prod.ts b/grpc-zpages/web/channelzui/src/environments/environment.prod.ts index 3612073..970330a 100644 --- a/grpc-zpages/web/channelzui/src/environments/environment.prod.ts +++ b/grpc-zpages/web/channelzui/src/environments/environment.prod.ts @@ -1,3 +1,4 @@ export const environment = { - production: true + production: true, + envoy_proxy_address: 'http://localhost:9900', }; diff --git a/grpc-zpages/web/channelzui/src/environments/environment.ts b/grpc-zpages/web/channelzui/src/environments/environment.ts index b7f639a..ce9b2ba 100644 --- a/grpc-zpages/web/channelzui/src/environments/environment.ts +++ b/grpc-zpages/web/channelzui/src/environments/environment.ts @@ -4,5 +4,6 @@ // The list of which env maps to which file can be found in `.angular-cli.json`. export const environment = { - production: false + production: false, + envoy_proxy_address: 'http://localhost:9900', }; diff --git a/grpc-zpages/web/channelzui/src/index.html b/grpc-zpages/web/channelzui/src/index.html index df6b9a4..7882381 100644 --- a/grpc-zpages/web/channelzui/src/index.html +++ b/grpc-zpages/web/channelzui/src/index.html @@ -7,6 +7,9 @@ + + +