text: (window.webpackJsonp=window.webpackJsonp||[]).push([[6],{"5jva":function(t,n,e){"use strict";e.r(n);var r=e("CcnG"),l=e("K9Ia"),o=e("ny24"),i=e("qdx5"),a=e.n(i),u=e("vmHy"),c=e("mrSG"),s=e("nkY7"),p=e("isby"),h=e("MGBS"),b=e("zotm"),d=e("IUTb"),f={},y=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,n){return n.subscribe(new v(t,this.resultSelector))},t}(),v=function(t){function n(n,e){var r=t.call(this,n)||this;return r.resultSelector=e,r.active=0,r.values=[],r.observables=[],r}return c.c(n,t),n.prototype._next=function(t){this.values.push(f),this.observables.push(t)},n.prototype._complete=function(){var t=this.observables,n=t.length;if(0===n)this.destination.complete();else{this.active=n,this.toRespond=n;for(var e=0;e<n;e++){var r=t[e];this.add(Object(b.a)(this,r,r,e))}}},n.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},n.prototype.notifyNext=function(t,n,e,r,l){var o=this.values,i=this.toRespond?o[e]===f?--this.toRespond:this.toRespond:0;o[e]=n,0===i&&(this.resultSelector?this._tryResultSelector(o):this.destination.next(o.slice()))},n.prototype._tryResultSelector=function(t){var n;try{n=this.resultSelector.apply(this,t)}catch(e){return void this.destination.error(e)}this.destination.next(n)},n}(h.a),g=e("p0ib"),C=e("0/uQ"),S=e("15JJ"),j=e("67Y/"),m=e("Yl65"),x=function(){function t(t){this.chartService=t}return t.prototype.getPlotlyConfig=function(){var t=this,n=null,e=null;return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=null,r=null;return Object(s.a)(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Object(p.a)(t[0])&&(t=t[0]),Object(d.a)(t,r).lift(new y(e))}(this.chartService.config,this.chartService.data).pipe(Object(S.a)(function(r){var l=r[0],o=r[1],i=[];return l!==n&&(n=l,i.push(t.buildChartConfig(l)),e&&o===e&&i.push(t.buildChartData(l,e,!0))),o!==e&&(e=o,i.push(t.buildChartData(l,o,!0))),Object(g.a)(Object(C.a)(i),t.chartService.dataAdded.pipe(Object(j.a)(function(n){return t.buildChartData(l,n,!1)})))}))},t.prototype.buildChartConfig=function(t){if(!t)return null;try{var n=t.toConfig({locale:"en"});return{type:"react",data:n.data,layout:n.layout}}catch(e){return{type:"error",error:"Failed to build chart data: "+e.toString()}}},t.prototype.buildChartData=function(t,n,e){void 0===e&&(e=!1);var r={x:[],y:[],text:[]},l=[],o={locale:"en",resolveValue:function(t,n){return Object(m.a)(t,n.split("."))}};try{var i=Object.keys(r);return t.traces.forEach(function(t,e){var a=t.toDataConfig(n,o);l.push(e);for(var u=0,c=i;u<c.length;u++){var s=c[u];r[s].push(a[s]?a[s]:[])}}),{type:e?"update":"extend",data:r,indices:l}}catch(a){return{type:"error",error:"Failed to build chart data: "+a.toString()}}},t}(),O=function(){function t(t){this.plotlyService=t,this.destroy=new l.a,this.error=null}return t.prototype.ngOnDestroy=function(){this.destroy.complete()},t.prototype.ngAfterViewInit=function(){var t=this;this.plotlyService.getPlotlyConfig().pipe(Object(o.a)(this.destroy)).subscribe(function(n){t.error=null,console.log("configChange",n);try{"react"===n.type&&(t.chart=a.a.react(t.chartContainer.nativeElement,n.data,n.layout)),"update"===n.type&&a.a.update(t.chartContainer.nativeElement,n.data,null,n.indices),"extend"===n.type&&a.a.extendTraces(t.chartContainer.nativeElement,n.data,n.indices)}catch(e){t.error=e.toString()}"error"===n.type&&(t.error=n.error)})},t}(),w=O,D=function(){return function(){}}(),J=e("Ip0R"),R=r.ob({encapsulation:0,styles:[[""]],data:{}});function I(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,1,"pre",[],null,null,null,null,null)),(t()(),r.Hb(1,null,["",""]))],null,function(t,n){t(n,1,0,n.component.error)})}function k(t){return r.Jb(2,[r.Fb(402653184,1,{chartContainer:0}),(t()(),r.qb(1,0,[[1,0],["chartContainer",1]],null,0,"div",[],null,null,null,null,null)),(t()(),r.hb(16777216,null,null,1,null,I)),r.pb(3,16384,null,0,J.j,[r.P,r.M],{ngIf:[0,"ngIf"]},null)],function(t,n){t(n,3,0,n.component.error)},null)}function E(t){return r.Jb(0,[(t()(),r.qb(0,0,null,null,2,"app-dyn-chart-plotly-basic",[],null,null,null,k,R)),r.Eb(512,null,x,x,[u.a]),r.pb(2,4374528,null,0,O,[x],null,null)],null,null)}var q=r.mb("app-dyn-chart-plotly-basic",O,E,{},{},[]),F=e("sdfu");e.d(n,"DynChartPlotlyBasicModuleNgFactory",function(){return P});var P=r.nb(D,[],function(t){return r.xb([r.yb(512,r.j,r.cb,[[8,[q]],[3,r.j],r.x]),r.yb(4608,J.l,J.k,[r.u,[2,J.v]]),r.yb(1073742336,J.b,J.b,[]),r.yb(1073742336,D,D,[]),r.yb(256,F.a,w,[])])})}}]);