!function(e){function t(t){for(var n,a,s=t[0],c=t[1],l=t[2],d=0,p=[];d0?360-o:-o};var r=function(e){return 45===e?1:Math.tan(e*Math.PI/180)};exports.degreeToPoints=function(e){var t,n=e%360;switch(n=n<0?n+360:n,Math.floor(n/45)){case 0:t={x1:0,y1:1,x2:1,y2:1-r(n)};break;case 1:t={x1:0,y1:1,x2:1/r(n),y2:0};break;case 2:t={x1:1,y1:1,x2:1-r(n-90),y2:0};break;case 3:t={x1:1,y1:1,x2:0,y2:1-1/r(n-90)};break;case 4:t={x1:1,y1:0,x2:0,y2:r(n-180)};break;case 5:t={x1:1,y1:0,x2:1-1/r(n-180),y2:1};break;case 6:t={x1:0,y1:0,x2:r(n-270),y2:1};break;case 7:t={x1:0,y1:0,x2:1,y2:1/r(n-270)}}return t}},1193:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ServiceConnectionManager=void 0;var r=t(4),n=r.__importDefault(t(1194)),i=t(22),o=t(1933),a=r.__importStar(t(1199)),s=t(67),c=t(423),l=function(e,t,r){var l=this;this.connState=i.observable.box(!1),this.authState=i.observable.box(0),this.payloadQueue=i.observable.array([],{deep:!1}),this.error=new o.Subject,this.heartbeat=function(e){l.payloadQueue.push({event:"hb",payload:e})},this.sendRequest=function(e,t,r){if(void 0===r&&(r=30),3===l.authState.get())throw new Error(c.Errors[c.CODES.UNAUTHENTICATED]("Fail to send request upon unauthenticated connection"));return new Promise((function(n,i){var o=s.v4(),a=setTimeout((function(){l.socket.removeEventListener("message",u),l.socket.removeEventListener("exception",d),i(c.Errors[c.CODES.REQUEST_TIMEOUT]("Request timeout"))}),1e3*r);l.payloadQueue.push({event:"openService",payload:{serviceId:o,type:e,config:t}});var u=function(e){o===e.serviceId&&(clearTimeout(a),n(e.payload),l.payloadQueue.push({event:"closeService",payload:{serviceId:o}}),l.socket.removeEventListener("message",u),l.socket.removeEventListener("exception",d))},d=function(e){o===e.serviceId&&(clearTimeout(a),i(e.payload),l.socket.removeEventListener("message",u),l.socket.removeEventListener("exception",d))};l.socket.on("message",u),l.socket.on("exception",d)}))},this.openService=function(e,t){if(3===l.authState.get())throw new Error(c.Errors[c.CODES.UNAUTHENTICATED]("Fail to send request upon unauthenticated connection"));var r=s.v4(),n=new o.Subject,a=new o.Subject,u=null,d=!0,p=function(e){r===e.serviceId&&n.next(e.payload)},b=function(e){r===e.serviceId&&a.next(e.payload)};l.socket.on("message",p),l.socket.on("exception",b);var h=function(){d||(l.payloadQueue.push({event:"closeService",payload:{serviceId:r}}),l.socket.removeEventListener("message",p),l.socket.removeEventListener("exception",b),d=!0)},f=i.autorun((function(){2===l.authState.get()&&(h(),l.socket.on("message",p),l.socket.on("exception",b),l.payloadQueue.push({event:"openService",payload:{serviceId:r,type:e,config:t}}),u&&l.payloadQueue.push({event:"reconfigure",payload:{serviceId:r,config:u}}),d=!1)}),{name:"auto reopen service on reconnect/reauth"}),g=function(e){u=e,l.payloadQueue.push({event:"reconfigure",payload:{serviceId:r,config:e}})};return Object.defineProperties(g,{output:{enumerable:!1,get:function(){return n}},error:{enumerable:!1,get:function(){return a}},close:{enumerable:!1,writable:!1,value:function(){h(),f&&f()}}}),g},this.destroy=function(){l.stopAutoAuth&&l.stopAutoAuth(),l.stopSending&&l.stopSending(),l.socket.connected&&l.socket.close()},this.socket=a.connect(e,{path:n.default("/",t,"/datagw"),transports:["websocket"]}),this.socket.on("exception",(function(e){l.error.next(e.payload)})),this.socket.on("error",(function(e){l.connState.set(!1),l.authState.set(0),l.error.next(c.Errors[c.CODES.INTERNAL_SERVER_ERROR](e.message))})),this.socket.on("connect_error",(function(e){l.connState.set(!1),l.authState.set(0),l.error.next(c.Errors[c.CODES.CONNECT_ERROR](e.message))})),this.socket.on("connect_timeout",(function(e){l.connState.set(!1),l.authState.set(0),l.error.next(c.Errors[c.CODES.CONNECT_TIMEOUT](e.message))})),this.socket.on("reconnect_error",(function(e){l.connState.set(!1),l.authState.set(0),l.error.next(c.Errors[c.CODES.RECONNECT_ERROR](e.message))})),this.socket.on("reconnect_timeout",(function(e){l.connState.set(!1),l.authState.set(0),l.error.next(c.Errors[c.CODES.RECONNECT_TIMEOUT](e.message))})),this.socket.on("connect",(function(){l.connState.set(!0)})),this.socket.on("reconnect",(function(){l.connState.set(!0)})),this.socket.on("disconnect",(function(){l.connState.set(!1),l.authState.set(0)})),this.socket.on("authenticated",(function(){l.authState.set(2)})),this.socket.on("unauthorized",(function(e){l.authState.set(3),l.socket.io.reconnection(!1),l.error.next(c.Errors[c.CODES.UNAUTHENTICATED](e.message))})),this.stopAutoAuth=i.autorun((function(){l.connState.get()&&(l.authState.set(1),l.socket.emit("authentication",{token:r}))}),{name:"conn state monitoring"}),this.stopSending=i.autorun((function(){switch(l.authState.get()){case 3:l.payloadQueue.clear();break;case 2:for(;l.payloadQueue.length;){var e=l.payloadQueue.shift();l.socket.emit(e.event,e.payload)}}}),{name:"sending pending req"})};exports.ServiceConnectionManager=l},1223:function(e,exports){},1226:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getAccessToken=exports.revokeAccessToken=exports.refreshAccessToken=exports.createAccessToken=exports.checkAccessToken=exports.rmTokenCookie=exports.getToken=exports.normalizeToken=exports.isShareCodeToken=exports.isIAMToken=void 0;var r=t(4),n=r.__importStar(t(1227)),i=t(3),o=t(582),a=t(423),s=a.Errors[a.CODES.GET_ACCESS_TOKEN_FAILED],c=(o.AppConfig.APIRoot,o.AppConfig.FEAPIRoot,function(e,t){return o.AppConfig.APIRoot+"/tokens/"+e+"/"+t});function l(e,t,n,i){return r.__awaiter(this,void 0,void 0,(function(){var o;return r.__generator(this,(function(r){switch(r.label){case 0:return[4,fetch(e,{method:t,credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify(i)})];case 1:if(!(o=r.sent()).ok)throw n;return[2,"DELETE"===t?null:o.json()]}}))}))}function u(e,t){return l(c(e,t),"GET",s('Unable to get access token for dashboard of id "'+t+'"'))}function d(e,t,r){return l(c(e,t),"POST",s('Unable to create access token for dashboard of id "'+t+'"'),{password:r||""})}exports.isIAMToken=function(e){return i.isPlainObject(e)&&"iam"===e.type},exports.isShareCodeToken=function(e){return i.isPlainObject(e)&&"sharecode"===e.type},exports.normalizeToken=function(e){return i.isString(e)?{type:"iam",value:e}:e},exports.getToken=function(){return r.__awaiter(void 0,void 0,void 0,(function(){var e,t,s,c,l,u,d,p;return r.__generator(this,(function(r){switch(r.label){case 0:return(e=n.get("viz-v3-token"))?[2,JSON.parse(e)]:[3,1];case 1:return t=o.AppConfig.APIRoot+"/tokens/v3/",s=(n.get("bce-user-info")||"").replace(/\"/g,""),[4,fetch(t,{cache:"no-cache",method:"POST",credentials:"same-origin",headers:{Accept:"application/json","Content-Type":"application/json",csrftoken:s,withcookie:"true"}})];case 2:return(c=r.sent()).ok?[4,c.json()]:[3,4];case 3:if(0===(l=r.sent()).status)return u=l.data,d=u.token,(p=u.cookies)&&i.forEach(p,(function(e,t){n.set(t,e)})),1/96,n.set("viz-v3-token",d,{expires:.010416666666666666}),[2,d];throw a.Errors[l.status](l.message);case 4:throw 403===c.status?a.Errors[a.CODES.UNAUTHENTICATED]("Please login"):a.Errors[a.CODES.RESOLVE_TOKEN_BY_BCE_SESSION_FAILED]("Unable to resolve token using bce-session");case 5:return[2]}}))}))},exports.rmTokenCookie=function(){n.get("viz-v3-token")&&n.remove("viz-v3-token")},exports.checkAccessToken=u,exports.createAccessToken=d,exports.refreshAccessToken=function(e,t){return l(c(e,t),"PUT",s('Unable to refresh access token for dashboard of id "'+t+'"'))},exports.revokeAccessToken=function(e,t){return l(c(e,t),"DELETE",s('Unable to revoke access token for dashboard of id "'+t+'"'))},exports.getAccessToken=function(e,t){return r.__awaiter(void 0,void 0,void 0,(function(){var n;return r.__generator(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,u(e,t)];case 1:return(n=r.sent())?[2,n]:[2,d(e,t)];case 2:throw r.sent(),s('Unable to get access token for dashboard of id "'+t+'"');case 3:return[2]}}))}))}},1228:function(e,exports,t){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.tsToDt=void 0;var r=t(36);exports.tsToDt=function(e,t){return void 0===e&&(e=0),void 0===t&&(t="YYYY-MM-DD HH:mm:ss"),0!=+e&&r.format(new Date(+e),t)}},127:function(e,t,r){"use strict";var n=r(13);r.d(t,"a",(function(){return n.i})),r.d(t,"b",(function(){return n.p})),r.d(t,"c",(function(){return n.v}))},129:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(2),i=r(13),o=r(56),a=r(34),s=r(181),c=r(153),l={typeId:"6dcb4040-e60c-4ce5-aca0-37730c923433",ver:"1.1",propsSchema:{color:Object(i.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),showTooltip:Object(n.I)(!0),tooltipConfine:Object(n.I)(!0),tooltipPadding:Object(n.B)(0),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipTitleColor:Object(n.j)("#333"),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipTrigger:Object(i.y)("axis"),tooltipAxisColor:Object(n.j)("#108CEE"),showDataZoomX:Object(n.I)(!0),showDataShadow:Object(n.I)(!1),dataZoomHeight:Object(n.E)(8),dataZoomBottom:Object(n.B)(20),dataZoomBorderColor:Object(n.j)("transparent"),dataZoomTextColor:Object(n.j)("transparent"),dataZoomBgColor:Object(n.j)("#EAF6FE"),dataZoomFillerColor:Object(n.j)("rgba(16, 140, 238, 0.5)"),dataZoomHandleIcon:Object(i.l)("image://data:image/svg+xml;utf8,\n \n \n \n \n \n \n \n "),dataZoomStart:Object(n.C)(0),dataZoomEnd:Object(n.C)(100),showLegend:Object(n.I)(!0),legendOrient:Object(i.h)("horizontal"),legendHorizontalAlign:Object(n.t)("right"),legendVerticalAlign:Object(n.N)("top"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(20),legendPaddingTop:Object(n.B)(20),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendItemWidth:Object(n.A)(12),legendItemHeight:Object(n.A)(12),legendSelected:Object(i.o)([]),lockLegendAspectRatio:Object(n.I)(!0),legendItemGap:Object(n.B)(20),showXAxis:Object(n.I)(!0),showYAxis:Object(n.I)(!0),showXAxisLabel:Object(n.I)(!0),showYAxisLabel:Object(n.I)(!0),showSplitLineX:Object(n.I)(!1),showSplitLineY:Object(n.I)(!0),showXAxisTick:Object(n.I)(!1),showYAxisTick:Object(n.I)(!1),showXAxisLine:Object(n.I)(!1),showYAxisLine:Object(n.I)(!1),xAxisLineColor:Object(n.j)("#CBD3E0"),yAxisLineColor:Object(n.j)("#CBD3E0"),xAxisTextColor:Object(n.j)("#333"),xAxisFontStyle:Object(n.p)("normal"),xAxisFontWeight:Object(n.q)("normal"),xAxisFontFamily:Object(n.n)("sans-serif"),xAxisFontSize:Object(n.o)(12),xAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),yAxisTextColor:Object(n.j)("#333"),yAxisFontStyle:Object(n.p)("normal"),yAxisFontWeight:Object(n.q)("normal"),yAxisFontFamily:Object(n.n)("sans-serif"),yAxisFontSize:Object(n.o)(12),yAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),axisUnit:Object(i.r)(""),axisPointerType:Object(i.c)("shadow"),axisPointerShadowColor:Object(n.j)("rgba(16, 140, 238, 0.1)"),legendIcon:Object(i.n)("rect"),stackEnable:Object(n.I)(!1),showBarLabel:Object(n.I)(!1),seriesType:Object(i.s)("bar"),seriesMap:Object(i.j)({seriesOpt:[{xCol:0,yCol:1,seriesName:"\u6e29\u5ea6"},{xCol:0,yCol:2,seriesName:"\u7a7a\u6c14\u8d28\u91cf"}],dataTable:{headers:[{name:"\u57ce\u5e02",type:"string"},{name:"\u6e29\u5ea6",type:"number"},{name:"\u7a7a\u6c14\u8d28\u91cf",type:"number"}],data:[["\u5317\u4eac",33,25],["\u4e0a\u6d77",35,38],["\u5e7f\u5dde",26,25]]}}),customizedSeries:Object(s.a)([]),barWidth:Object(n.E)(16),width:Object(n.A)(300),height:Object(n.A)(200),dumb:Object(n.I)(!1),min:Object(i.a)("auto"),max:Object(i.a)("auto")},component:c.a,eventsSchema:{currentLegendSelected:i.o,currentDatazoomRange:i.g},interactSessionMiddleware:o.c,propsResolver:a.a}},13:function(e,t,r){"use strict";r.d(t,"a",(function(){return s})),r.d(t,"c",(function(){return c})),r.d(t,"e",(function(){return l})),r.d(t,"f",(function(){return u})),r.d(t,"g",(function(){return d})),r.d(t,"h",(function(){return p})),r.d(t,"r",(function(){return b})),r.d(t,"i",(function(){return h})),r.d(t,"j",(function(){return g})),r.d(t,"k",(function(){return m})),r.d(t,"l",(function(){return O})),r.d(t,"m",(function(){return f})),r.d(t,"n",(function(){return j})),r.d(t,"o",(function(){return x})),r.d(t,"s",(function(){return S})),r.d(t,"t",(function(){return y})),r.d(t,"u",(function(){return C})),r.d(t,"v",(function(){return E})),r.d(t,"w",(function(){return R})),r.d(t,"x",(function(){return I})),r.d(t,"y",(function(){return P})),r.d(t,"z",(function(){return k})),r.d(t,"d",(function(){return B})),r.d(t,"b",(function(){return L})),r.d(t,"p",(function(){return F})),r.d(t,"q",(function(){return z}));var n=r(2),i=Object(n.H)("0",{regexp:/(^(\-|\+)?\d+(\.\d+)?$)/i.toString()}),o=Object(n.k)(["auto","dataMin","dataMax"]),a=Object(n.C)(0),s=Object(n.d)([a,o,i]),c=Object(n.k)(["line","shadow","cross"]),l=Object(n.e)(Object(n.e)(Object(n.d)([Object(n.C)(0),Object(n.g)(null)])),[]),u=Object(n.w)({lat:n.x,lng:n.z}),d=Object(n.w)({type:Object(n.g)("datazoom"),start:Object(n.C)(0,{max:100,min:0}),end:Object(n.C)(100,{max:100,min:0}),dataZoomId:Object(n.H)(""),from:Object(n.H)("")}),p=Object(n.k)(["horizontal","vertical"]),b=Object(n.k)(["","default","k","M","G","T","P","E","none","qian","wan","yi","wanyi"]),h=Object(n.e)(n.r),f=Object(n.H)("",{regexp:/^[^<>\\]*$/.toString(),maxLength:1e3}),g=Object(n.w)({seriesOpt:Object(n.e)(Object(n.d)([Object(n.w)({xCol:n.B,yCol:n.B,seriesName:f}),Object(n.w)({type:Object(n.g)("grid"),xCol:n.B,yCol:n.B,seriesName:f})])),dataTable:n.J},{semChecker:function(e){return function(e,t){return e.every((function(e){return function(e,t){return e.xCol",{regexp:"/^(?![sS])|image://?/i"}),j=Object(n.k)(["circle","rect","roundRect","triangle","diamond","pin","arrow"]),v=r(3),y=Object(n.e)(Object(n.H)("")),w=Object(n.c)({},(function(e){return Object(v.every)(e,(function(e){return Object(v.isBoolean)(e)}))})),x=Object(n.d)([w,y]),S=Object(n.k)(["line","bar","pie","scatter","map","gauge","lineBar","radar","bubble"]),C=Object(n.k)(["circle","emptyCircle","path://M 50 10 A 40 40 0 1 0 50 90 A 40 40 0 1 0 50 10 Z M 50 20 A 30 30 0 1 1 50 80 A 30 30 0 1 1 50 20 Z","rect","roundRect","triangle","diamond","pin","arrow"]),A=["","none","underline","line-through","overline"],E=Object(n.H)("none",{semChecker:function(e){return e.split(" ").every((function(e){return A.indexOf(e)>-1}))}}),_=function(e,t){return e600&&t>300?s.createElement("svg",{version:"1.1",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 348 100",style:{pointerEvents:"none",position:"absolute",height:"30px",width:"100px",right:"20px",bottom:"10px"}},s.createElement("g",{fill:"rgb(215, 215, 215)",fillOpacity:.5},s.createElement("g",null,s.createElement("rect",{x:"120.9",y:"25.1",width:"14.3",height:"48"})),s.createElement("g",null,s.createElement("path",{d:"M167.5,23.9c-7.2,0-13.2,2.4-18.2,7.3c-5,4.9-7.4,10.8-7.4,17.9c0,7,2.5,12.9,7.4,17.8c4.9,4.9,10.9,7.4,17.8,7.4\n\t\t\tc7,0,13-2.4,17.9-7.3c4.9-4.9,7.3-10.9,7.3-17.9c0-6.9-2.4-12.8-7.3-17.8C180.2,26.4,174.3,23.9,167.5,23.9z M174.6,56.9\n\t\t\tc-2.1,2.1-4.6,3.2-7.5,3.2c-2.9,0-5.4-1.1-7.5-3.2s-3.1-4.8-3.1-7.8c0-3,1-5.6,3.1-7.8s4.6-3.2,7.5-3.2c3,0,5.5,1.1,7.5,3.2\n\t\t\ts3.1,4.8,3.1,7.8C177.7,52.2,176.7,54.8,174.6,56.9z"})),s.createElement("g",null,s.createElement("polygon",{points:"348,25.1 310.8,25.1 310.8,38.9 326.4,38.9 311.6,73.1 347.8,73.1 347.8,59.3 333.1,59.3 \t\t"})),s.createElement("g",null,s.createElement("rect",{x:"291.7",y:"25.1",width:"14.3",height:"48"})),s.createElement("g",null,s.createElement("polygon",{points:"267.8,40.1 263.4,25.1 246.9,25.1 267.7,75.9 288.6,25.1 272.7,25.1 \t\t"})),s.createElement("g",null,s.createElement("polygon",{points:"194.7,38.9 205.7,38.9 205.7,73.1 219.9,73.1 219.9,38.9 230.8,38.9 230.8,25.1 194.7,25.1 \t\t"})),s.createElement("g",null,s.createElement("path",{d:"M36.7,75.8L20,66.1c-1-0.6-1.6-1.6-1.6-2.8V44.2c0-3.7-2-7.1-5.2-9L0,27.7v41.4c0,4.1,2.2,7.9,5.8,9.9l36.2,20.8V84.8\n\t\t\tC41.9,81.1,40,77.6,36.7,75.8z"})),s.createElement("g",null,s.createElement("path",{d:"M74,29.9l13.1-7.6L63.5,8.7L50.8,1.4c-3.6-2.1-8-2.1-11.6,0L2.9,22.3L16,29.9c3.2,1.9,7.2,1.9,10.4,0l16.9-9.7\n\t\t\tc0.2-0.1,0.5-0.2,0.7-0.3c0.8-0.2,1.7-0.1,2.5,0.3l16.9,9.7C66.8,31.7,70.8,31.7,74,29.9z"})),s.createElement("g",null,s.createElement("path",{d:"M71.7,44.2v19.1c0,1.2-0.6,2.2-1.6,2.8l-16.8,9.7c-3.2,1.9-5.2,5.3-5.2,9v15.1l36.2-20.8c3.6-2.1,5.8-5.9,5.8-10V27.7\n\t\t\tl-13.1,7.6C73.6,37.1,71.7,40.5,71.7,44.2z"})))):null},f=r(215),g=r.n(f),m=r(916),O=r.n(m);!function(e){e.RegisterPipeline="RegisterPipeline",e.UnregisterPipeline="UnregisterPipeline",e.UpdatePipeline="UpdatePipeline",e.ExecutePipeline="ExecutePipeline",e.RegisterSimulationGenerator="RegisterSimulationGenerator",e.UnregisterSimulationGenerator="UnregisterSimulationGenerator",e.UpdateSimulationGenerator="UpdateSimulationGenerator",e.ExecuteSimulationGenerator="ExecuteSimulationGenerator",e.RegisterUDF="RegisterUDF",e.UnregisterUDF="UnregisterUDF",e.UpdateUDF="UpdateUDF",e.CallUDF="CallUDF"}(o||(o={}));for(var j=function(e){var t=new O.a;return t.onmessage=function(t){var r=t.data,n=r.reqId,i=r.body,a=e[n].resolve;switch(i.type){case o.ExecutePipeline:case o.CallUDF:a(i);break;case o.RegisterSimulationGenerator:case o.UnregisterSimulationGenerator:case o.UpdateSimulationGenerator:case o.ExecuteSimulationGenerator:a(i);break;default:a()}delete e[n]},t},v=[],y="object"==typeof navigator?Math.max((navigator.hardwareConcurrency||4)-1,1):1,w=0;w>>16)*a&65535)<<16)&4294967295)<<15|c>>>17))*s+(((c>>>16)*s&65535)<<16)&4294967295)<<13|i>>>19))+((5*(i>>>16)&65535)<<16)&4294967295))+((58964+(o>>>16)&65535)<<16);switch(c=0,r){case 3:c^=(255&e.charCodeAt(l+2))<<16;case 2:c^=(255&e.charCodeAt(l+1))<<8;case 1:i^=c=(65535&(c=(c=(65535&(c^=255&e.charCodeAt(l)))*a+(((c>>>16)*a&65535)<<16)&4294967295)<<15|c>>>17))*s+(((c>>>16)*s&65535)<<16)&4294967295}return i^=e.length,i=2246822507*(65535&(i^=i>>>16))+((2246822507*(i>>>16)&65535)<<16)&4294967295,i=3266489909*(65535&(i^=i>>>13))+((3266489909*(i>>>16)&65535)<<16)&4294967295,(i^=i>>>16)>>>0}(t.callerId,C)%v.length],o=i.promises,a=i.worker,s=g.a.generate();o[s]={message:t,resolve:r,reject:n},a.postMessage({reqId:s,body:t})}({message:e,resolve:t,reject:r})}))},E=r(3),_=r(22),T=r(11),R=function(){function e(e,t){this.serviceConnMgr=t,this.table=e,this.getServiceConfigForOpen=this.getServiceConfigForOpen.bind(this),this.getServiceConfigForReconfig=this.getServiceConfigForReconfig.bind(this)}return e.prototype.getServiceConfigForOpen=function(){throw new Error("You must implement this method in your subclass")},e.prototype.getServiceConfigForReconfig=function(){throw new Error("You must implement this method in your subclass")},e.prototype.init=function(){var e=this;return this.tableService=this.serviceConnMgr.openService("dataTable",this.getServiceConfigForOpen()),this.stopWatchConfigChange=Object(_.reaction)(this.getServiceConfigForReconfig,(function(t){return e.tableService(t)})),this.tableService.output.subscribe(this.table.feedTableData),this},e.prototype.destroy=function(){this.tableService.close(),this.stopWatchConfigChange()},e}(),I=function(e){function t(t,r){var n=e.call(this,t,r)||this;n.dmSubSourcer=t.sourcer;var i=!0;return n.disposer=Object(_.autorun)((function(){var t=n.dmSubSourcer.isPaused;i?i=!1:t?e.prototype.destroy.call(n):e.prototype.init.call(n)}),{name:"react to DM isPaused"}),n}return Object(a.__extends)(t,e),t.prototype.getServiceConfigForOpen=function(){return Object(T.d)(this.dmSubSourcer)},t.prototype.getServiceConfigForReconfig=function(){return Object(T.d)(this.dmSubSourcer.states)},t.prototype.destroy=function(){this.disposer&&this.disposer(),e.prototype.destroy.call(this)},t}(R),P=function(){function e(e){var t=this;this.table=e,this.feedDisposer=Object(_.autorun)((function(){t.table.feedTableData(t.table.sourcer.tableData)}),{delay:1})}return e.prototype.destroy=function(){this.feedDisposer()},e}(),k=new Set,B=[],N=null,D=Number.MAX_SAFE_INTEGER,M=function(){if(B.length){var e=Date.now();Object(E.each)(B,(function(t){e>=t.nextRunAt&&(t.task(),t.nextRunAt=e+t.interval),D=Math.min(D,t.nextRunAt)})),setTimeout(M,D-e)}else N=null,D=Number.MAX_SAFE_INTEGER};function L(e){k.has(e)&&(Object(E.remove)(B,(function(t){return t.id===e})),k.delete(e))}var F,z=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.tsdbQuerySourcer=t.sourcer,n.configAtom=Object(_.createAtom)("filterConfig"),n.updateConfig=n.updateConfig.bind(n),n.intervalTaskId=null,n.config=n.tsdbQuerySourcer.liveQuery.getQueryObject(),n.destroy=n.destroy.bind(n),n.disposer=Object(_.autorun)((function(){var e=n.tsdbQuerySourcer.liveQuery;switch(n.intervalTaskId&&(L(n.intervalTaskId),n.intervalTaskId=null),e.trigger.type){case"interval":n.intervalTaskId=function(e,t,r){void 0===r&&(r=!1);var n=f.generate();return B.push({id:n,task:e,interval:t,nextRunAt:Date.now()+t}),k.add(n),null===N?(N=setTimeout(M,t),D=Date.now()+t):D>Date.now()+t&&(clearTimeout(N),N=setTimeout(M,t)),r&&e(),n}(n.updateConfig,e.trigger.interval,!0);break;case"once":n.updateConfig()}}),{name:"react to tsdb query changes"}),n}return Object(a.__extends)(t,e),t.prototype.updateConfig=function(){"once"!==this.tsdbQuerySourcer.liveQuery.trigger.type&&this.tsdbQuerySourcer.isPaused||(this.configAtom.reportChanged(),this.config=this.tsdbQuerySourcer.liveQuery.getQueryObject().query)},t.prototype.getServiceConfigForOpen=function(){var e=this.tsdbQuerySourcer;return{tsdbId:e.tsdbId,region:e.region,endpoint:e.endpoint,type:e.type,liveQuery:e.liveQuery.getQueryObject()}},t.prototype.getServiceConfigForReconfig=function(){return this.configAtom.reportObserved(),this.config},t.prototype.destroy=function(){L(this.intervalTaskId),this.disposer&&this.disposer(),e.prototype.destroy.call(this)},t}(R),W=r(27),U=r(41),H=function(e,t){var r=e.x,n=e.y,i=U.c.transformMat2d(U.c.create(),U.c.fromValues(r,n),t);return new W.b(i[0],i[1])},V=function(e,t){var r=H(e.tl,t),n=H(e.tr,t),i=H(e.br,t),o=H(e.bl,t),a=Math.min(r[0],n[0],i[0],o[0]),s=Math.max(r[0],n[0],i[0],o[0]),c=Math.min(r[1],n[1],i[1],o[1]),l=Math.max(r[1],n[1],i[1],o[1]);return new W.a(a,c,s-a,l-c)},G=function(){for(var e=[],t=0;tt+s?n:t+s,i=ia+c?o:a+c})),new W.a(r,i,n-r,o-i)},Y=function(e){var t=e[0],r=e[1],n=e[2],i=e[3],o=e[4],a=e[5],s=t*i-r*n,c=1,l=1,u=0;if(0!==t||0!==r){var d=Math.sqrt(t*t+r*r);u=r>0?Math.acos(t/d):-Math.acos(t/d),c=d,l=s/d}else if(0!==n||0!==i){var p=Math.sqrt(n*n+i*i);u=Math.PI/2-(i>0?Math.acos(-n/p):-Math.acos(n/p)),c=s/p,l=p}else c=0,l=0;return{rotateDeg:(q(u)+360)%360,sx:c,sy:l,tx:o,ty:a}},Z=function(e){return U.a.invert(U.a.create(),e)},X=function(e){return e*Math.PI/180},q=function(e){return 180*e/Math.PI},K=Object(b.k)(["contain","cover","fill"]),J=T.i.model("CanvasSetting",{width:T.i.refinement(T.i.number,b.D.validate),height:T.i.refinement(T.i.number,b.D.validate),backgroundColor:T.i.maybeNull(T.i.refinement(T.i.frozen(),b.r.validate)),backgroundImage:T.i.maybeNull(T.i.refinement(T.i.string,b.K.validate)),fillMode:T.i.maybeNull(T.i.refinement(T.i.string,K.validate))}),Q=r(67),ee=T.i.enumeration("Region",["bj","gz"]),te=T.i.enumeration("ColType",["string","number","boolean","date"]),re=T.i.refinement("DMEndpoint",T.i.string,(function(){return!0})),ne=T.i.refinement("DMDeviceName",T.i.string,(function(){return!0})),ie=T.i.refinement("TSDBEndpoint",T.i.string,(function(){return!0})),oe=(F=new RegExp("^[\\w\\u4e00-\\u9fa5]{1,20}$"),function(e){return F.test(e)}),ae=T.i.refinement("ColName",T.i.string,oe),se=T.i.refinement("ColIndex",T.i.number,(function(e){return Object(E.isInteger)(e)&&e>=0})),ce=T.i.refinement("ColsIndex",T.i.array(se),(function(e){return Object(E.isArray)(e)&&Object(E.every)(e,(function(e){return Object(E.isInteger)(e)&&e>=0}))&&Object(E.uniq)(e).length===e.length})),le=(T.i.refinement("RowIndex",T.i.number,(function(e){return Object(E.isInteger)(e)&&e>=0})),function(e){return e.length<200}),ue=(T.i.refinement("SerieName",T.i.string,le),function(e){return e.length>0&&e.length<=20}),de=(T.i.refinement("DashboardName",T.i.string,ue),function(e){return 00}))}).preProcessSnapshot((function(e){return e.id?e:Object(a.__assign)(Object(a.__assign)({},e),{id:Object(Q.v4)()})})).volatile((function(e){return{isPaused:!1}})).views((function(e){return{getSchema:function(){return Object(a.__spreadArrays)([{name:"timestamp",type:"date"},{name:"device",type:"string"}],e.states.slice())},get runtimeConfig(){return{}}}})).actions((function(e){return{setStates:function(t){e.states=t},updateRuntimeConfig:function(e){},pause:function(){e.isPaused||(e.isPaused=!0)},resume:function(){e.isPaused&&(e.isPaused=!1)}}}))),fe=r(917),ge=function(e){return Object(E.reduce)(e,(function(e,t){return Math.max(e,t.length)}),0)},me=function(e,t){void 0===t&&(t=ge(e));var r=Object(E.map)(Object(E.range)(t),(function(){return{string:0,number:0,boolean:0}}));return Object(E.each)(e,(function(e){return Object(E.each)(e,(function(e,t){var n=r[t];Object(E.isNumber)(e)?n.number+=1:Object(E.isString)(e)?n.string+=1:Object(E.isBoolean)(e)&&(n.boolean+=1)}))})),Object(E.map)(r,(function(e){if(e.boolean!==e.number||e.boolean!==e.string)return Object(E.reduce)(Object(E.entries)(e),(function(e,t){var r=t[0],n=t[1];return e.count>n?e:{name:r,count:n}}),{name:void 0,count:0}).name}))};function Oe(e,t){void 0===t&&(t={headerStrategy:"firstrow"});var r={TooFewFields:"\u5217\u592a\u5c11",TooManyFields:"\u5217\u592a\u591a"};return e.forEach((function(e){var n;switch(e.row=(n=e.row,n+=1,"firstrow"===t.headerStrategy?n+1:n),e.code){case"TooFewFields":case"TooManyFields":var i=/ expected (\d+) fields but parsed (\d+)/.exec(e.message),o=i[1],a=i[2];e.message=r[e.code]+" \u5e94\u8be5\u6709"+o+"\u5217\uff0c\u5b9e\u9645\u6709"+a+"\u5217"}})),e}var je,ve=function(e,t){var r="firstrow"===t.headerStrategy,n=fe.parse(e,{header:r,dynamicTyping:!0,skipEmptyLines:!0,preview:1e3,transform:function(e){return void 0===e?null:e}}),i=n.data,o=n.errors,a=n.meta;if(o&&o.length)throw Oe(o);var s=[];r?a.fields.map((function(e){s.push({name:e,type:"string"})})):Object(E.each)(Object(E.range)(ge(i)),(function(e,t){s.push({name:"Column_"+(t+1),type:"string"})}));var c=r?Object(E.map)(i,(function(e){return Object(E.map)(s,(function(t){var r=t.name;return e[r]}))})):i;return Object(E.each)(me(c),(function(e,t){s[t].type=e||s[t].type})),{headers:s,data:c}},ye=T.i.model("StaticCSV",{id:T.i.identifier,type:T.i.literal("staticcsv"),options:T.i.frozen(),source:T.i.string}).volatile((function(e){return{isPaused:!0}})).views((function(e){return{get tableData(){return ve(e.source,e.options)}}})).views((function(e){return{getSchema:function(){return e.tableData.headers},get runtimeConfig(){return{source:e.source}}}})).actions((function(e){return{setContent:function(t){var r=t.options,n=void 0===r?e.options:r,i=t.source,o=void 0===i?e.source:i;e.options=n,e.source=o},updateRuntimeConfig:function(t){try{ve(t.source,e.options),e.source=t.source}catch(e){console.log("bad csv format")}},pause:function(){},resume:function(){}}})),we=r(94);function xe(e,t){return void 0===t&&(t=JSON.parse(e)),function(e,t,r){void 0===r&&(r=[]);return Object(E.reduce)(e,(function(e,r,n){if(Object(E.isArray)(r)||!Object(E.isObject)(r)){var i=[n];return Object(a.__spreadArrays)(e,[Object(a.__assign)({error:je.NonObjectArrayElement},Ae(t,i))])}return Object(a.__spreadArrays)(e,Ce(r,t,[n]))}),[])}(t,Object(we.b)(e,{locations:!0}).body[0].expression)}function Se(e,t){return void 0===t&&(t=JSON.parse(e)),Object(E.isArray)(t)?xe(e,t):Object(E.isObject)(t)?function(e,t){void 0===t&&(t=JSON.parse(e));var r=Object(we.b)("["+e+"]",{locations:!0}),n=r.body[0].expression.elements[0],i=r.loc.start.line-1;return Ce(t,n).map((function(e){var t=e.error,r=e.start,n=e.end;return{start:{ln:r.ln,col:r.ln===i?r.col-1:r.col},error:t,end:n}}))}(e,t):[{error:je.UnsupportedValue,start:{ln:0,col:0},end:{ln:0,col:0}}]}function Ce(e,t,r){return void 0===r&&(r=[]),Object(E.reduce)(Object(E.entries)(e),(function(e,n){var i=n[0],o=n[1];return Object(E.isObject)(o)?Object(a.__spreadArrays)(e,[Object(a.__assign)({error:je.NonPrimitiveObjectValue},Ae(t,Object(a.__spreadArrays)(r,[i])))]):e}),[])}function Ae(e,t){var r=_e.get(e,t);_e.isObjectPropery(r)&&(r=r.key);var n=r.loc,i=n.start,o=n.end;return{start:{ln:i.line-1,col:i.column},end:{ln:o.line-1,col:o.column}}}!function(e){e.UnsupportedValue="\u4e0d\u652f\u6301\u7684JSON\u7c7b\u578b\uff0c\u53ea\u80fd\u662fJSON\u5bf9\u8c61\u3001\u6216JSON\u5bf9\u8c61\u6570\u7ec4",e.NonObjectArrayElement="\u65e0\u6548\u7684\u6570\u7ec4\u5143\u7d20\uff0c\u6570\u7ec4\u5143\u7d20\u5e94\u5f53\u662fJSON\u5bf9\u8c61",e.NonPrimitiveObjectValue="\u65e0\u6548\u7684JSON\u5bf9\u8c61\u503c\uff0c\u53ea\u80fd\u662fstring\u3001number\u3001\u6216boolean\u7c7b\u578b"}(je||(je={}));var Ee,_e=function(){function e(){}return e.get=function(t,r){for(var n=0,i=r;n|<|>=|<=)\s?[-+]?([0-9]+|[0-9]*\.[0-9]+)$)|(^(=|!=)\s?\'(.+)\'$)/,Fe=T.i.refinement("ValueCondition",T.i.string,(function(e){return Le.test(e)})),ze=T.i.maybe,We=T.i.model({field:T.i.string,value:Fe}),Ue=T.i.model({tag:T.i.string,in:ze(T.i.array(T.i.string)),notIn:ze(T.i.array(T.i.string))}).actions((function(e){return{afterCreate:function(){if(!e.in&&!e.notIn)throw new Error("Invalid Tag Filter condition")}}})),He=T.i.model({start:T.i.number,end:T.i.number,tags:ze(T.i.array(Ue)),fields:ze(T.i.array(We))}),Ve=T.i.model({name:T.i.string,tags:T.i.array(T.i.string)}),Ge=T.i.model({name:T.i.enumeration("AggrType",["Avg","Dev","Count","First","Last","LeastSquares","Max","Min","Percentile","Sum","Diff","Div","Scale"]),sampling:ze(T.i.string),percentile:ze(T.i.refinement(T.i.number,(function(e){return e>0&&e<=1}))),divisor:ze(T.i.number),factor:ze(T.i.number)}).actions((function(e){return{afterCreate:function(){switch(e.name){case"Percentile":if(!e.percentile)throw new Error("Invalid Aggration condition: missing percentile");break;case"Div":if(!e.divisor)throw new Error("Invalid Aggration condition: missing divisor");break;case"Scale":if(!e.factor)throw new Error("Invalid Aggration condition: missing factor")}}}})),Ye=T.i.model({type:T.i.enumeration("FillType",["Linear","Previous","Fixed"]),interval:T.i.string,maxWriteInterval:ze(T.i.string),value:ze(T.i.union(T.i.number,T.i.string)),field:ze(T.i.string)}).actions((function(e){return{afterCreate:function(){if("Fixed"===e.type&&(void 0===e.value||null===e.value))throw new Error("Invalid Fill condition: missing value")}}})),Ze=new Set([5e3,1e4,3e4,6e4,3e5,9e5,18e5,36e5,72e5,864e5]),Xe=["none","last5min","last15min","last30min","last1hour","last3hour","last6hour","last12hour","last24hour","last2days","last7days","last30days","last90days","last6months","last1year","last2years","last5years","yesterday","daybeforeyesterday","thisdaylastweek","previousweek","previousmonth","previousyear","today","todaysofar","thisweek","thisweeksofar","thismonth","thismonthsofar","thisyear","thisyearsofar"],qe=36e5,Ke=864e5,$e=T.i.model({type:T.i.literal("once"),rangeRule:T.i.enumeration("TSDBQueryTimeRangeRule",Xe)}),Je=T.i.model({type:T.i.literal("interval"),interval:T.i.refinement("TSDBQueryInterval",T.i.number,(function(e){return Ze.has(e)})),rangeRule:T.i.enumeration("TSDBQueryTimeRangeRule",Xe)}),Qe=T.i.union(Je,$e),et=T.i.model({metric:T.i.string,fields:T.i.array(T.i.frozen()),tags:ze(T.i.array(T.i.string)),filters:He,groupBy:ze(T.i.array(Ve)),limit:T.i.optional(T.i.refinement(T.i.number,(function(e){return Object(E.isInteger)(e)&&e>0&&e<=1e3})),1e3),aggregators:ze(T.i.array(Ge)),order:ze(T.i.enumeration("OrderBy",["Asc","Desc"])),fills:ze(T.i.array(Ye))}),tt=T.i.model({query:et,trigger:T.i.union($e,Je)}).extend((function(e){var t;return{views:{get resultTableSchema(){return t=e.query,r=[{name:"timestamp",type:"date"}],n=t.metric,i=t.fields,o=t.tags||[],a=t.groupBy||[],Object(E.each)(i,(function(e){var t=Object(E.isString)(e)?e:e.name,i=Object(E.isString)(e)?"string":e.type;r.push({name:Me(n,t),type:i})})),Object(E.each)(o,(function(e){return r.push({name:e,type:"string"})})),Object(E.each)(a,(function(e){"Tag"===e.name&&Object(E.each)(e.tags,(function(e){r.some((function(t){return t.name===e}))||r.push({name:e,type:"string"})}))})),r;var t,r,n,i,o,a},getFilters:function(){var r=e.trigger,n=Object(a.__assign)({},t);if("none"!==r.rangeRule){var i=function(e){var t,r,n=Date.now(),i=n;switch(e){case"last5min":r=n-3e5;break;case"last15min":r=n-9e5;break;case"last30min":r=n-18e5;break;case"last1hour":r=n-qe;break;case"last3hour":r=n-108e5;break;case"last6hour":r=n-216e5;break;case"last12hour":r=n-432e5;break;case"last24hour":r=n-Ke;break;case"last2days":r=n-1728e5;break;case"last7days":r=n-6048e5;break;case"last30days":r=n-2592e6;break;case"last90days":r=n-7776e6;break;case"last6months":r=+Object(De.subMonths)(new Date,6);break;case"last1year":r=+Object(De.subYears)(new Date,1);break;case"last2years":r=+Object(De.subYears)(new Date,2);break;case"last5years":r=+Object(De.subYears)(new Date,5);break;case"yesterday":r=+Object(De.startOfYesterday)(),i=+Object(De.endOfYesterday)();break;case"daybeforeyesterday":t=Object(De.subDays)(new Date,2),r=+Object(De.startOfDay)(t),i=+Object(De.endOfDay)(t);break;case"thisdaylastweek":t=Object(De.subDays)(new Date,7),r=+Object(De.startOfDay)(t),i=+Object(De.endOfDay)(t);break;case"previousweek":t=Object(De.subDays)(new Date,7),r=+Object(De.startOfWeek)(t),i=+Object(De.endOfWeek)(t);break;case"previousmonth":t=Object(De.subMonths)(new Date,1),r=+Object(De.startOfMonth)(t),i=+Object(De.endOfMonth)(t);break;case"previousyear":t=Object(De.subYears)(new Date,1),r=+Object(De.startOfYear)(t),i=+Object(De.endOfYear)(t);break;case"today":r=+Object(De.startOfToday)(),i=+Object(De.endOfToday)();break;case"todaysofar":r=+Object(De.startOfToday)();break;case"thisweek":r=+Object(De.startOfWeek)(new Date),i=+Object(De.endOfWeek)(new Date);break;case"thisweeksofar":r=+Object(De.startOfWeek)(new Date);break;case"thismonth":r=+Object(De.startOfMonth)(new Date),i=+Object(De.endOfMonth)(new Date);break;case"thismonthsofar":r=+Object(De.startOfMonth)(new Date);break;case"thisyear":r=+Object(De.startOfYear)(new Date),i=+Object(De.endOfYear)(new Date);break;case"thisyearsofar":r=+Object(De.startOfYear)(new Date)}return{start:r,end:i}}(r.rangeRule),o=i.start,s=i.end;n.start=o,n.end=s}return n},getQueryObject:function(){var t=JSON.parse(JSON.stringify(Object(T.d)(e)));return t.query.filters=e.getFilters(),t}},actions:{afterCreate:function(){t=JSON.parse(JSON.stringify(Object(T.d)(e.query.filters)))},setFilter:function(r){e.query.filters=He.create(Object(a.__assign)(Object(a.__assign)({},Object(T.d)(e.query.filters)),r)),t=JSON.parse(JSON.stringify(Object(T.d)(e.query.filters)))},setTrigger:function(t){e.trigger=Qe.create(t)}}}})),rt=T.i.model("TSDBLiveQuery",{id:T.i.identifier,type:T.i.literal("tsdblivequery"),tsdbId:T.i.string,region:ee,endpoint:ie,liveQuery:tt}).preProcessSnapshot((function(e){return e.id?e:Object(a.__assign)(Object(a.__assign)({},e),{id:Object(Q.v4)()})})).volatile((function(e){return{isPaused:!1}})).views((function(e){return{getSchema:function(){return e.liveQuery.resultTableSchema},get runtimeConfig(){return{filters:Object(T.d)(e.liveQuery.query.filters),trigger:Object(T.d)(e.liveQuery.trigger)}}}})).actions((function(e){return{setQuery:function(t){e.liveQuery=tt.create(t)},updateRuntimeConfig:function(t){try{var r=t.filters,n=t.trigger;r&&e.liveQuery.setFilter(r),n&&e.liveQuery.setTrigger(n)}catch(e){console.log("bad config for tsdb")}},pause:function(){"once"===e.liveQuery.trigger.type||e.isPaused||(e.isPaused=!0)},resume:function(){"once"!==e.liveQuery.trigger.type&&e.isPaused&&(e.isPaused=!1)}}}));!function(e){e[e.boolean=0]="boolean",e[e.date=1]="date",e[e.number=2]="number",e[e.string=3]="string"}(Te||(Te={})),function(e){e[e.random=0]="random",e[e.specified=1]="specified",e[e.auto=2]="auto"}(Re||(Re={}));var nt,it=T.i.union(T.i.literal(1),T.i.literal(-1)),ot=T.i.refinement(T.i.number,(function(e){return e>0&&Number.isFinite(e)}));!function(e){e.Second="0",e.Minute="1",e.Hour="2",e.Day="3",e.Week="4",e.Month="5",e.Year="6"}(nt||(nt={}));var at=T.i.enumeration(Object.values(nt)),st=T.i.refinement(T.i.number,(function(e){return!!new Date(e)})),ct=T.i.model({value:T.i.refinement(T.i.number,(function(e){return Number.isInteger(e)})),unit:at}),lt=T.i.union(st,ct),ut=T.i.model("TimePeriod",{start:lt,end:lt}).actions((function(e){var t=function(e,t,r){try{Object(T.h)("abs"===r?st:ct,e),Object(T.h)("abs"===r?st:ct,t)}catch(e){return!1}return!0};return{afterCreate:function(){var r=e.start,n=e.end;if(!t(r,n,"abs")&&!t(r,n,"rel"))throw new Error("\u8d77\u6b62\u65f6\u95f4\u6709\u8bef")}}})),dt=T.i.model({value:T.i.refinement(T.i.number,(function(e){return e>=0&&Number.isInteger(e)})),unit:at}),pt=T.i.model("BaseNumberRule",{category:T.i.literal(Te.number)}),bt=pt.named("RandomNumberRule").props({type:T.i.literal(Re.random),displayName:"\u968f\u673a",min:T.i.number,max:T.i.number,precision:T.i.refinement(T.i.number,(function(e){return 0<=e&&e<=5&&Number.isInteger(e)}))}),ht=pt.named("SpecifiedNumberRule").props({type:T.i.literal(Re.specified),displayName:"\u6307\u5b9a",dataset:T.i.refinement(T.i.array(T.i.number),(function(e){return e.every((function(e){return Number.isFinite(e)}))}))}),ft=pt.named("AutoNumberRule").props({type:T.i.literal(Re.auto),displayName:"\u81ea\u589e/\u51cf",start:T.i.number,step:ot,mode:it}),gt=T.i.union(bt,ht,ft),mt=T.i.model("BaseBooleanRule",{category:T.i.literal(Te.boolean)}),Ot=mt.named("RandomBooleanRule").props({type:T.i.literal(Re.random),displayName:"\u968f\u673a"}),jt=mt.named("SpecifiedBooleanRule").props({type:T.i.literal(Re.specified),displayName:"\u6307\u5b9a",dataset:T.i.refinement(T.i.array(T.i.boolean),(function(e){return e.every((function(e){return"boolean"==typeof e}))}))}),vt=T.i.union(Ot,jt),yt=T.i.model("BaseStringRule",{category:T.i.literal(Te.string)}),wt=yt.named("RandomStringRule").props({type:T.i.literal(Re.random),displayName:"\u968f\u673a",preset:T.i.enumeration(["name","email","city"])}),xt=yt.named("SpecifiedStringRule").props({type:T.i.literal(Re.specified),displayName:"\u6307\u5b9a",dataset:T.i.refinement(T.i.array(T.i.string),(function(e){return e.every((function(e){return"string"==typeof e&&e.length<=200}))}))}),St=T.i.union(wt,xt),Ct=T.i.model("BaseDateRule",{category:T.i.literal(Te.date)}),At=Ct.named("RandomDateRule").props({type:T.i.literal(Re.random),displayName:"\u968f\u673a",period:ut}),Et=Ct.named("SpecifiedDateRule").props({type:T.i.literal(Re.specified),displayName:"\u6307\u5b9a",dataset:T.i.refinement(T.i.array(T.i.number),(function(e){return e.every((function(e){return Number.isInteger(e)}))}))}),_t=Ct.named("AutoDateRule").props({type:T.i.literal(Re.auto),displayName:"\u81ea\u589e/\u51cf",start:lt,step:dt,mode:it}),Tt=T.i.union(At,Et,_t),Rt=T.i.union(gt,vt,St,Tt),It=T.i.model("ColumnSetting",{name:T.i.refinement(T.i.string,(function(e){return 0=0})),sourcer:Mt,pipelineId:"",ver:T.i.literal(2)}).preProcessSnapshot((function(e){return e.id?e:Object(a.__assign)(Object(a.__assign)({},e),{id:Object(Q.v4)()})})).extend((function(e){var t,r,n=_.observable.box(Dt.initializing),i=_.observable.box(!1),o=_.observable.box(!1),s=_.observable.box(null,{deep:!1}),c=_.observable.box(null,{deep:!1}),l=function(r,i){n.set(Dt.running),i?e.pipeline.pushToProcessingQueue({tableData:r,dataTableNode:e,originData:e.isAppend?c.get():void 0},(function(){c.set(t),o.get()?n.set(Dt.paused):n.set(Dt.stable)})):e.pipeline.pushToProcessingQueue({tableData:r,dataTableNode:e},(function(){o.get()?n.set(Dt.paused):n.set(Dt.stable)}))};return{actions:{afterCreate:function(){if(e.activeStep>e.transformers.length)throw new Error("Invalid active step index");var i=Object(_.observe)(e,"originalSchema",(function(){n.set(Dt.initializing),s.set(null),t=null,c.set(null),r=null}));Object(T.a)(e,i)},afterAttach:function(){if(!e.pipeline){var t=Object(T.c)(e,2).createPipeline(e.name+"\u5904\u7406\u6d41\u7a0b");e.pipelineId=t.id}},setName:function(t){e.name=t},setAppend:function(t){e.isAppend=t},setStatus:function(e){n.set(e)},setTransformedResult:function(e){s.set(e)},setCurrentProcessing:function(e){t=e},setActiveStep:function(t){if(e.isDebuggable){if(t>e.transformers.length||t<0)throw new Error("Invalid active step index");e.activeStep=t,l(c.get(),!1)}},setActiveStepByID:function(t){var r=-1;e.transformers.forEach((function(e,n){-1===r&&e.id===t&&(r=n)})),e.setActiveStep(r+1)},pause:function(r){if(void 0===r&&(r=!1),!o.get())switch(e.status){case Dt.initializing:0;break;case Dt.initialized:i.set(r),o.set(!0);break;case Dt.stable:r?r!==i.get()?(i.set(!0),o.set(!0),l(c.get(),!1)):n.set(Dt.paused):(i.set(!1),o.set(!0),n.set(Dt.paused));break;case Dt.running:r?i.get()?o.set(!0):(i.set(!0),o.set(!0),l(t,!1)):i.get()?(i.set(!1),o.set(!0),l(t,!1)):o.set(!0);break;default:0}},resume:function(){if(o.get())switch(e.status){case Dt.initializing:0;break;case Dt.initialized:i.set(!1),o.set(!1);break;case Dt.paused:i.get()?(i.set(!1),o.set(!1),l(r||c.get(),!1)):(o.set(!1),r?l(r,!1):n.set(Dt.stable));break;case Dt.running:i.get()&&(i.set(!1),o.set(!1),l(t,!1));break;case Dt.stable:i.get()?(i.set(!1),o.set(!1),l(r?t:c.get(),!1)):o.set(!1)}},feedTableData:function(t){var i,o;if(e.originalSchema.length>200)console.warn("DataTable could not exceed 200 columns");else if(t.data.length>Ft&&(console.warn("DataTable will be trancated to first 1000 rows"),t.data=t.data.slice(0,Ft)),i=t.headers,o=e.originalSchema,i.length===o.length&&Object(E.every)(i,(function(e,t){return e.type===o[t].type})))switch(e.status){case Dt.initializing:n.set(Dt.initialized),l(t,!0);break;case Dt.initialized:l(t,!0);break;case Dt.paused:r=t;break;case Dt.running:case Dt.stable:if(e.isAskingForPause){r=t;break}l(t,!0)}else console.warn("Receiving mismatched data")},updateRuntimeConfig:function(t){e.sourcer.updateRuntimeConfig(t)},applyTransformer:function(t){e.pipeline.applyTransformer(t)},editTransformer:function(t,r){e.pipeline.editTransformer(t,r)},removeTransformer:function(t){e.pipeline.removeTransformer(t)},pauseSourcer:function(){e.sourcer.pause()},resumeSourcer:function(){e.sourcer.resume()},isSourcerPaused:function(){return e.sourcer.isPaused}},views:{get taskExecutor(){return Object(T.c)(e,2).taskExecutor},get isStable(){return e.status===Dt.stable||e.isPaused},get isPaused(){return e.status===Dt.paused},get isDebuggable(){return e.isPaused&&i.get()},get isDebugging(){return i.get()},get isAskingForPause(){return o.get()},get status(){return n.get()},get tableData(){return c.get()},get type(){return e.sourcer.type},get pipeline(){if(e.pipelineId&&Object(T.e)(e,2))return Object(T.c)(e,2).pipelines.find((function(t){return t.id===e.pipelineId}))},get transformers(){return e.pipeline?e.pipeline.transformers:[]},get activeTransformers(){return e.pipeline?e.pipeline.transformers.slice(0,e.activeStep):[]},getTransformer:function(t){return e.transformers.find((function(e){return e.id===t}))||null},getTransformerIndex:function(t){return e.transformers.findIndex((function(e){return e.id===t}))},get transformResult(){return e.isStable||s.get()?s.get():null},get originalSchema(){return e.sourcer.getSchema()},getTransformOutput:function(t){return Object(a.__awaiter)(this,void 0,void 0,(function(){var r;return Object(a.__generator)(this,(function(n){switch(e.status){case Dt.paused:return r=Math.max(Object(E.findIndex)(e.transformers,{id:t}),0),[2,e.pipeline.processUntil({tableData:c.get(),dataTableNode:e,untilStep:r})];default:return console.info("Pipeline is not in paused state"),[2,null]}return[2]}))}))},get runtimeConfig(){return e.sourcer.runtimeConfig}}}})),Wt=r(520),Ut=T.i.model("AbstractTransformer",{id:T.i.identifier}).preProcessSnapshot((function(e){return e.id?e:Object(a.__assign)(Object(a.__assign)({},e),{id:Object(Q.v4)()})})).views((function(){return{isCompatible:function(e){throw new Error("You must implement this method in your subclass")},get transFunc(){throw new Error("You must implement this method in your subclass")},getSchema:function(e){throw new Error("You must implement this method in your subclass")}}})),Ht=function(e,t){"string"==typeof e&&(e=Object(we.b)(e,Ht.PARSE_OPTIONS)),this.ast=e,this.initFunc_=t,this.paused_=!1,this.polyfills_=[],this.functionCounter_=0,this.stepFunctions_=Object.create(null);var r,n=/^step([A-Z]\w*)$/;for(var i in this)"function"==typeof this[i]&&(r=i.match(n))&&(this.stepFunctions_[r[1]]=this[i].bind(this));this.global=this.createScope(this.ast,null);var o=new we.a(Ht.PARSE_OPTIONS,this.polyfills_.join("\n"));this.ast=o.parse(),this.polyfills_=void 0,this.stripLocations_(this.ast,void 0,void 0);var a=new Ht.State(this.ast,this.global);a.done=!1,this.stateStack=[a],this.run(),this.value=void 0,this.ast=e,(a=new Ht.State(this.ast,this.global)).done=!1,this.stateStack.length=0,this.stateStack[0]=a,this.nodeConstructor=o.startNode.bind(o),this.stateStack=this.stateStack,this.OBJECT=this.OBJECT,this.OBJECT_PROTO=this.OBJECT_PROTO,this.FUNCTION=this.FUNCTION,this.FUNCTION_PROTO=this.FUNCTION_PROTO,this.ARRAY=this.ARRAY,this.ARRAY_PROTO=this.ARRAY_PROTO,this.REGEXP=this.REGEXP,this.REGEXP_PROTO=this.REGEXP_PROTO,this.DATE=this.DATE,this.DATE_PROTO=this.DATE_PROTO,this.UNDEFINED=void 0,this.NULL=null,this.NAN=NaN,this.TRUE=!0,this.FALSE=!1,this.STRING_EMPTY="",this.NUMBER_ZERO=0,this.NUMBER_ONE=1};Ht.PARSE_OPTIONS={ecmaVersion:6},Ht.READONLY_DESCRIPTOR={configurable:!0,enumerable:!0,writable:!1},Ht.NONENUMERABLE_DESCRIPTOR={configurable:!0,enumerable:!1,writable:!0},Ht.READONLY_NONENUMERABLE_DESCRIPTOR={configurable:!0,enumerable:!1,writable:!1},Ht.VARIABLE_DESCRIPTOR={configurable:!1,enumerable:!0,writable:!0},Ht.STEP_ERROR={},Ht.SCOPE_REFERENCE={},Ht.VALUE_IN_DESCRIPTOR={},Ht.toStringCycles_=[];var Vt=Ht.prototype;Vt.appendCode=function(e){var t=this.stateStack[0];if(!t||"Program"!==t.node.type)throw Error("Expecting original AST to start with a Program node.");if("string"==typeof e&&(e=Object(we.b)(e,Ht.PARSE_OPTIONS)),!e||"Program"!==e.type)throw Error("Expecting new AST to start with a Program node.");this.populateScope_(e,t.scope);for(var r,n=0;r=e.body[n];n++)t.node.body.push(r);t.done=!1},Vt.step=function(){var e=this.stateStack,t=e[e.length-1];if(!t)return!1;var r=t.node,n=r.type;if("Program"===n&&t.done)return!1;if(this.paused_)return!0;try{var i=this.stepFunctions_[n](e,t,r)}catch(e){if(e!==Ht.STEP_ERROR)throw e}return i&&e.push(i),!!r.end||this.step()},Vt.run=function(){for(;!this.paused_&&this.step(););return this.paused_},Vt.initGlobalScope=function(e){this.setProperty(e,"NaN",NaN,Ht.READONLY_DESCRIPTOR),this.setProperty(e,"Infinity",1/0,Ht.READONLY_DESCRIPTOR),this.setProperty(e,"undefined",void 0,Ht.READONLY_DESCRIPTOR),this.setProperty(e,"window",e,Ht.READONLY_DESCRIPTOR),this.setProperty(e,"this",e,Ht.READONLY_DESCRIPTOR),this.setProperty(e,"self",e),this.OBJECT_PROTO=new Ht.Object(null),this.FUNCTION_PROTO=new Ht.Object(this.OBJECT_PROTO),this.initFunction(e),this.initObject(e),e.proto=this.OBJECT_PROTO,this.setProperty(e,"constructor",this.OBJECT),this.initArray(e),this.initString(e),this.initBoolean(e),this.initNumber(e),this.initDate(e),this.initRegExp(e),this.initError(e),this.initMath(e),this.initJSON(e);var t=this,r=this.createNativeFunction((function(e){throw EvalError("Can't happen")}),!1);r.eval=!0,this.setProperty(e,"eval",r),this.setProperty(e,"parseInt",this.createNativeFunction(parseInt,!1)),this.setProperty(e,"parseFloat",this.createNativeFunction(parseFloat,!1)),this.setProperty(e,"isNaN",this.createNativeFunction(isNaN,!1)),this.setProperty(e,"isFinite",this.createNativeFunction(isFinite,!1));for(var n=[[decodeURI,"decodeURI"],[decodeURIComponent,"decodeURIComponent"],[encodeURI,"encodeURI"],[encodeURIComponent,"encodeURIComponent"]],i=0;i>> 0;","if (arguments.length > 1) T = thisArg;","k = 0;","while (k < len) {","if (k in O && !callbackfn.call(T, O[k], k, O)) return false;","k++;","}","return true;","}","});","Object.defineProperty(Array.prototype, 'filter',","{configurable: true, writable: true, value:","function(fun/*, thisArg*/) {","if (this === void 0 || this === null || typeof fun !== 'function') throw TypeError();","var t = Object(this);","var len = t.length >>> 0;","var res = [];","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in t) {","var val = t[i];","if (fun.call(thisArg, val, i, t)) res.push(val);","}","}","return res;","}","});","Object.defineProperty(Array.prototype, 'forEach',","{configurable: true, writable: true, value:","function(callback, thisArg) {","if (!this || typeof callback !== 'function') throw TypeError();","var T, k;","var O = Object(this);","var len = O.length >>> 0;","if (arguments.length > 1) T = thisArg;","k = 0;","while (k < len) {","if (k in O) callback.call(T, O[k], k, O);","k++;","}","}","});","Object.defineProperty(Array.prototype, 'map',","{configurable: true, writable: true, value:","function(callback, thisArg) {","if (!this || typeof callback !== 'function') new TypeError;","var T, A, k;","var O = Object(this);","var len = O.length >>> 0;","if (arguments.length > 1) T = thisArg;","A = new Array(len);","k = 0;","while (k < len) {","if (k in O) A[k] = callback.call(T, O[k], k, O);","k++;","}","return A;","}","});","Object.defineProperty(Array.prototype, 'reduce',","{configurable: true, writable: true, value:","function(callback /*, initialValue*/) {","if (!this || typeof callback !== 'function') throw TypeError();","var t = Object(this), len = t.length >>> 0, k = 0, value;","if (arguments.length === 2) {","value = arguments[1];","} else {","while (k < len && !(k in t)) k++;","if (k >= len) {","throw TypeError('Reduce of empty array with no initial value');","}","value = t[k++];","}","for (; k < len; k++) {","if (k in t) value = callback(value, t[k], k, t);","}","return value;","}","});","Object.defineProperty(Array.prototype, 'reduceRight',","{configurable: true, writable: true, value:","function(callback /*, initialValue*/) {","if (null === this || 'undefined' === typeof this || 'function' !== typeof callback) throw TypeError();","var t = Object(this), len = t.length >>> 0, k = len - 1, value;","if (arguments.length >= 2) {","value = arguments[1];","} else {","while (k >= 0 && !(k in t)) k--;","if (k < 0) {","throw TypeError('Reduce of empty array with no initial value');","}","value = t[k--];","}","for (; k >= 0; k--) {","if (k in t) value = callback(value, t[k], k, t);","}","return value;","}","});","Object.defineProperty(Array.prototype, 'some',","{configurable: true, writable: true, value:","function(fun/*, thisArg*/) {","if (!this || typeof fun !== 'function') throw TypeError();","var t = Object(this);","var len = t.length >>> 0;","var thisArg = arguments.length >= 2 ? arguments[1] : void 0;","for (var i = 0; i < len; i++) {","if (i in t && fun.call(thisArg, t[i], i, t)) {","return true;","}","}","return false;","}","});","(function() {","var sort_ = Array.prototype.sort;","Array.prototype.sort = function(opt_comp) {","if (typeof opt_comp !== 'function') {","return sort_.call(this);","}","for (var i = 0; i < this.length; i++) {","var changes = 0;","for (var j = 0; j < this.length - i - 1; j++) {","if (opt_comp(this[j], this[j + 1]) > 0) {","var swap = this[j];","this[j] = this[j + 1];","this[j + 1] = swap;","changes++;","}","}","if (!changes) break;","}","return this;","};","})();","Object.defineProperty(Array.prototype, 'toLocaleString',","{configurable: true, writable: true, value:","function() {","var out = [];","for (var i = 0; i < this.length; i++) {","out[i] = (this[i] === null || this[i] === undefined) ? '' : this[i].toLocaleString();","}","return out.join(',');","}","});","")},Vt.initString=function(e){var t,r=this;t=function(e){return e=String(e),r.calledWithNew()?(this.data=e,this):e},this.STRING=this.createNativeFunction(t,!0),this.setProperty(e,"String",this.STRING),this.setProperty(this.STRING,"fromCharCode",this.createNativeFunction(String.fromCharCode,!1),Ht.NONENUMERABLE_DESCRIPTOR);for(var n=["charAt","charCodeAt","concat","indexOf","lastIndexOf","slice","substr","substring","toLocaleLowerCase","toLocaleUpperCase","toLowerCase","toUpperCase","trim"],i=0;i= 0; i--) {","str = str.substring(0, subs[i][0]) + subs[i][2] + str.substring(subs[i][0] + subs[i][1]);","}","} else {","var i = str.indexOf(substr);","if (i !== -1) {","var inject = newSubstr(str.substr(i, substr.length), i, str);","str = str.substring(0, i) + inject + str.substring(i + substr.length);","}","}","return str;","};","})();","")},Vt.initBoolean=function(e){var t,r=this;t=function(e){return e=Boolean(e),r.calledWithNew()?(this.data=e,this):e},this.BOOLEAN=this.createNativeFunction(t,!0),this.setProperty(e,"Boolean",this.BOOLEAN)},Vt.initNumber=function(e){var t,r=this;t=function(e){return e=Number(e),r.calledWithNew()?(this.data=e,this):e},this.NUMBER=this.createNativeFunction(t,!0),this.setProperty(e,"Number",this.NUMBER);for(var n=["MAX_VALUE","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"],i=0;i>>0;return t===Number(e)?t:NaN},Ht.legalArrayIndex=function(e){var t=e>>>0;return String(t)===String(e)&&4294967295!==t?t:NaN},Ht.Value,Ht.Object=function(e){this.getter=Object.create(null),this.setter=Object.create(null),this.properties=Object.create(null),this.proto=e},Ht.Object.prototype.proto=null,Ht.Object.prototype.isObject=!0,Ht.Object.prototype.class="Object",Ht.Object.prototype.data=null,Ht.Object.prototype.toString=function(){if("Array"===this.class){(n=Ht.toStringCycles_).push(this);try{for(var e=[],t=0;t0;n.pop()){var i=n[n.length-1];switch(i.node.type){case"TryStatement":return void(i.cv={type:e,value:t,label:r});case"CallExpression":case"NewExpression":if(e===Ht.Completion.RETURN)return void(i.value=t);if(e!==Ht.Completion.THROW)throw Error("Unsynatctic break/continue not rejected by Acorn")}if(e===Ht.Completion.BREAK){if(r?i.labels&&-1!==i.labels.indexOf(r):i.isLoop||i.isSwitch)return void n.pop()}else if(e===Ht.Completion.CONTINUE&&(r?i.labels&&-1!==i.labels.indexOf(r):i.isLoop))return}var o;if(this.isa(t,this.ERROR)){var a={EvalError:EvalError,RangeError:RangeError,ReferenceError:ReferenceError,SyntaxError:SyntaxError,TypeError:TypeError,URIError:URIError},s=this.getProperty(t,"name").toString(),c=this.getProperty(t,"message").valueOf();o=(e=a[s]||Error)(c)}else o=String(t);throw o},Vt.createGetter_=function(e,t){var r=Array.isArray(t)?t[0]:t,n=this.nodeConstructor();n.type="CallExpression";var i=new Ht.State(n,this.stateStack[this.stateStack.length-1].scope);return i.doneCallee_=!0,i.funcThis_=r,i.func_=e,i.doneArgs_=!0,i.arguments_=[],i},Vt.createSetter_=function(e,t,r){var n=Array.isArray(t)?t[0]:this.global,i=this.nodeConstructor();i.type="CallExpression";var o=new Ht.State(i,this.stateStack[this.stateStack.length-1].scope);return o.doneCallee_=!0,o.funcThis_=n,o.func_=e,o.doneArgs_=!0,o.arguments_=[r],o},Ht.State=function(e,t){this.node=e,this.scope=t},Vt.stepArrayExpression=function(e,t,r){var n=r.elements,i=t.n_||0;for(t.array_?(this.setProperty(t.array_,i,t.value),i++):(t.array_=this.createObjectProto(this.ARRAY_PROTO),t.array_.properties.length=n.length);i>=":a>>=s;break;case">>>=":a>>>=s;break;case"&=":a&=s;break;case"^=":a^=s;break;case"|=":a|=s;break;default:throw SyntaxError("Unknown assignment expression: "+r.operator)}var c=this.setValue(t.leftReference_,a);if(c)return t.doneSetter_=a,this.createSetter_(c,t.leftReference_,a);e.pop(),e[e.length-1].value=a},Vt.stepBinaryExpression=function(e,t,r){if(!t.doneLeft_)return t.doneLeft_=!0,new Ht.State(r.left,t.scope);if(!t.doneRight_)return t.doneRight_=!0,t.leftValue_=t.value,new Ht.State(r.right,t.scope);e.pop();var n,i=t.leftValue_,o=t.value;switch(r.operator){case"==":n=i==o;break;case"!=":n=i!=o;break;case"===":n=i===o;break;case"!==":n=i!==o;break;case">":n=i>o;break;case">=":n=i>=o;break;case"<":n=i>":n=i>>o;break;case">>>":n=i>>>o;break;case"in":o&&o.isObject||this.throwException(this.TYPE_ERROR,"'in' expects an object, not '"+o+"'"),n=this.hasProperty(o,i);break;case"instanceof":this.isa(o,this.FUNCTION)||this.throwException(this.TYPE_ERROR,"Right-hand side of instanceof is not an object"),n=!!i.isObject&&this.isa(i,o);break;default:throw SyntaxError("Unknown binary operator: "+r.operator)}e[e.length-1].value=n},Vt.stepBlockStatement=function(e,t,r){var n=t.n_||0,i=r.body[n];if(i)return t.n_=n+1,new Ht.State(i,t.scope);e.pop()},Vt.stepBreakStatement=function(e,t,r){var n=r.label&&r.label.name;this.unwind(Ht.Completion.BREAK,void 0,n)},Vt.stepCallExpression=function(e,t,r){if(!t.doneCallee_){t.doneCallee_=1;var n=new Ht.State(r.callee,t.scope);return n.components=!0,n}if(1===t.doneCallee_){t.doneCallee_=2;var i=t.value;if(Array.isArray(i)){if(t.func_=this.getValue(i),i[0]===Ht.SCOPE_REFERENCE?t.directEval_="eval"===i[1]:t.funcThis_=i[0],(i=t.func_)&&"object"==typeof i&&i.isGetter)return i.isGetter=!1,t.doneCallee_=1,this.createGetter_(i,t.value)}else t.func_=i;t.arguments_=[],t.n_=0}i=t.func_;if(!t.doneArgs_){if(0!==t.n_&&t.arguments_.push(t.value),r.arguments[t.n_])return new Ht.State(r.arguments[t.n_++],t.scope);"NewExpression"===r.type?(i.illegalConstructor&&this.throwException(this.TYPE_ERROR,i+" is not a constructor"),t.funcThis_=this.createObject(i),t.isConstructor=!0):void 0===t.funcThis_&&(t.funcThis_=t.scope.strict?void 0:this.global),t.doneArgs_=!0}if(t.doneExec_)e.pop(),t.isConstructor&&"object"!=typeof t.value?e[e.length-1].value=t.funcThis_:e[e.length-1].value=t.value;else{t.doneExec_=!0,i&&i.isObject||this.throwException(this.TYPE_ERROR,i+" is not a function");var o=i.node;if(o){for(var a=this.createScope(o.body,i.parentScope),s=0;ss?t.arguments_[s]:void 0;this.setProperty(a,c,l)}var u=this.createObjectProto(this.ARRAY_PROTO);for(s=0;s=0&&!r;i--)n(t[i])&&(r=t[i]);r.locals=r.locals||{},e.declarations.forEach((function(e){var t=e.id;return er(t,r)}))},FunctionDeclaration:function(e,t){for(var r=null,n=t.length-2;n>=0&&!r;n--)Zt(t[n])&&(r=t[n]);r.locals=r.locals||{},r.locals[e.id.name]=!0,tr(e)},Function:tr,ClassDeclaration:function(e,t){for(var r=null,n=t.length-2;n>=0&&!r;n--)Zt(t[n])&&(r=t[n]);r.locals=r.locals||{},r.locals[e.id.name]=!0},TryStatement:function(e){e.handler&&(e.handler.locals=e.handler.locals||{},e.handler.locals[e.handler.param.name]=!0)}},Gt.b);var i=function(e,t){var n=e.name;if("undefined"!==n){for(var i=0,o=t;i0&&(a=setTimeout((function(){s="timeout"})));!s&&o.step(););clearTimeout(a),s?i(s):n({result:o.pseudoToNative(o.value)})}catch(e){i(e.toString())}}))},sr=new Set(["NaN","Infinity","undefined","window","this","self","Function","Object","constructor","Array","String","Boolean","Number","Date","RegExp","Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","Math","JSON","eval","parseInt","parseFloat","isNaN","isFinite","alert"]),cr=new Set(["cell"]),lr=function(e,t){if(null===(e=function(e){return Object(E.isString)(e)||Object(E.isBoolean)(e)||Object(E.isDate)(e)?e:Object(E.isNil)(e)||Object(E.isNumber)(e)&&isNaN(e)?null:e===Number.POSITIVE_INFINITY?Number.MAX_VALUE:e===Number.NEGATIVE_INFINITY?Number.MIN_VALUE:Object(E.isNumber)(e)?e:Object(E.isArray)(e)?Object(E.get)(e,0,null):Object(E.isFunction)(e)||Object(E.isObject)(e)?e.toString():void 0}(e)))return e;if(Object(E.isDate)(e)&&(e=+e),Object(E.isString)(e)||Object(E.isNumber)(e)||Object(E.isBoolean)(e)){var r=Object(E.isString)(e)?"string":Object(E.isNumber)(e)?Object(E.isInteger)(e)?"integer":"number":"boolean";return Object(b.h)(r,t)(e)}},ur=function(e){switch(e.type){case"customjs":return function(t){return Object(a.__awaiter)(void 0,void 0,void 0,(function(){var r,n,i,o,s,c,l,u,d,p,b,h,f;return Object(a.__generator)(this,(function(a){switch(a.label){case 0:return r=t.headers,n=t.data,o=(i=e).baseCol,s=i.globalVars,c=i.code,l=i.outType,u=r[o].type,d="date"!==u?E.identity:function(e){return new Date(e)},p=function(e,t){return function(r){return Object(E.map)(r,(function(r){return t(r[e])}))}}(o,d)(n),b={rows:n,col:p,header:r[o].name},h=function(e,t){return"\nvar "+e.concat("rowCount = rows.length").join(", ")+";\nvar userFn = "+t+";\n\nfunction boundFn(cell, rowIndex) {\n return userFn(cell, rowIndex, col, rows, header);\n};\n\ncol.map(boundFn);\n"}(s,c),[4,ar(b,h,1e3)];case 1:return f=a.sent(),[2,Object(E.map)(f.result,(function(e){return lr(e,l)}))]}}))}))};default:throw new Error("Unknown formula "+e.type)}},dr=T.i.model({outType:T.i.enumeration("OutputType",["string","number","boolean","date"])}).actions((function(e){return{setOutType:function(t){e.outType=t}}})).views((function(){return{isCalculableSchema:function(e){throw new Error("You must implement this method in your subclass")}}})).props({type:T.i.literal("customjs"),baseCol:se,code:T.i.refinement("JSCode",T.i.string,(function(e){try{return function(e){try{var t=Object(we.b)(e,{ecmaVersion:5,sourceType:"script",locations:!0});if("Program"!==t.type)throw new Error("\u811a\u672c\u5185\u5bb9\u6709\u8bef");if(1!==t.body.length||"FunctionDeclaration"!==t.body[0].type)throw new Error("\u811a\u672c\u5fc5\u987b\u662f\u4e00\u4e2a\u51fd\u6570\u5b9a\u4e49");Object(Gt.c)(t,{WithStatement:function(e){throw new Error("\u4e0d\u652f\u6301\u201cwith\u201d\u8bed\u53e5 "+nr(e.loc.start))}},Gt.b),rr(t,!0).forEach((function(e){var t=e.name,r=e.node;if(ir.has(t))throw new Error('\u4e0d\u652f\u6301\u53d8\u91cf "'+t+'" '+nr(r.loc.start))}))}catch(e){return e.message}}(e),!0}catch(e){return!1}}))}).views((function(e){return{get globalVars(){return t=e.code,rr(t).filter((function(e){return!sr.has(e)&&!cr.has(e)}));var t},isCalculableSchema:function(t){return e.baseCol200?a.slice(0,200):a},get transFunc(){var t=this;return function(r){return Object(a.__awaiter)(t,void 0,void 0,(function(){var t,n,i,o,s,c,l;return Object(a.__generator)(this,(function(a){for(t=r.data,n=this.getSchema(r),i=Object(E.uniq)(t.map((function(t){return t[e.cfg.firstCol]}))),o=Array(i.length).fill(null),l=0;le.length-1||a>t.length-1)throw new Error("baseCol is out of range");var c=e[a],l=t[a],u=vr[s](c,l);if(0!==u)return u}return 0},vr={descending:function(e,t){return et?-1:0},ascending:function(e,t){return et?1:0}},yr=Ut.named("SortRows").props({type:T.i.literal("sortrows"),cfg:T.i.array(T.i.model({baseCol:se,order:T.i.optional(T.i.enumeration("order",["descending","ascending"]),"ascending")}))}).views((function(e){return{isCompatible:function(t){return Object(E.every)(e.cfg,(function(e,r){var n=e.baseCol;e.order;return 0<=n&&n1e3?i.data.slice(i.data.length+r.data.length-1e3,i.data.length):i.data,r.data)),n.setCurrentProcessing(r),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,t(r,n)];case 2:return o.sent(),[3,4];case 3:return e=o.sent(),console.error(e),[3,4];case 4:return[2]}}))}))})));return{actions:{getUsedDataTable:function(){return Object(T.c)(e,2).dataTables.find((function(t){return t.pipelineId===e.id}))},applyTransformer:function(t){var r=e.getUsedDataTable();if(!r)throw new Error("Cannot find used data table");if(r.isDebuggable){var n=xr.create(t);if(!n.isCompatible(r.transformResult.finalSchema))throw new Error("Cannot add incompatible transformer");e.transformers.splice(r.activeStep),e.transformers.push(n),r.setActiveStep(r.activeStep+1)}},editTransformer:function(t,n){var i=e.getUsedDataTable();if(!i)throw new Error("Cannot find used data table");if(i.isDebuggable){var o=-1;if(e.transformers.forEach((function(e,r){-1===o&&e.id===t&&(o=r)})),-1===o)throw new Error("Cannot find transformer with id: "+t);var s=xr.create(Object(a.__assign)(Object(a.__assign)({},n),{id:t}));e.transformers.splice(o,1,s),r.push({tableData:i.tableData,dataTableNode:i})}},removeTransformer:function(t){var r=e.getUsedDataTable();if(!r)throw new Error("Cannot find used data table");if(r.isDebuggable){var n=-1;e.transformers.forEach((function(e,r){-1===n&&e.id===t&&(n=r)})),-1!==n&&(e.transformers.splice(n,1),r.activeStep-1>=n&&r.setActiveStep(r.activeStep-1))}},pushToProcessingQueue:function(e,t){r.length()<10?r.push(e,t):console.warn("Too many pending table processing tasks")},processUntil:function(t){var r=t.tableData,n=t.dataTableNode,i=t.untilStep;return new Promise((function(t,o){console.assert(0<=i&&i1?arguments[1]:{},i={},o={visualFormatString:we},a=we,s=i,c=null,l=":",u={type:"literal",value:":",description:'":"'},d=function(e,t,r,n,i){return{orientation:e?e[0]:"horizontal",cascade:(t||[]).concat([r],[].concat.apply([],n),i||[])}},p="H",b={type:"literal",value:"H",description:'"H"'},h="V",f={type:"literal",value:"V",description:'"V"'},g=function(e){return"H"==e?"horizontal":"vertical"},m="|",O={type:"literal",value:"|",description:'"|"'},j=function(){return{view:null}},v="[",y={type:"literal",value:"[",description:'"["'},w="]",x={type:"literal",value:"]",description:'"]"'},S=function(e,t){return Me(e,t?{constraints:t}:{})},C="-",A={type:"literal",value:"-",description:'"-"'},E=function(e){return e},_=function(){return[{relation:"equ",constant:"default",$parserOffset:Oe()}]},T="",R=function(){return[{relation:"equ",constant:0,$parserOffset:Oe()}]},I=function(e){return[{relation:"equ",constant:e,$parserOffset:Oe()}]},P="(",k={type:"literal",value:"(",description:'"("'},B=",",N={type:"literal",value:",",description:'","'},D=")",M={type:"literal",value:")",description:'")"'},L=function(e,t){return[e].concat(t.map((function(e){return e[1]})))},F="@",z={type:"literal",value:"@",description:'"@"'},W=function(e,t,r){return Me({relation:"equ"},e||{},t,r?r[1]:{})},U="==",H={type:"literal",value:"==",description:'"=="'},V=function(){return{relation:"equ",$parserOffset:Oe()}},G="<=",Y={type:"literal",value:"<=",description:'"<="'},Z=function(){return{relation:"leq",$parserOffset:Oe()}},X=">=",q={type:"literal",value:">=",description:'">="'},K=function(){return{relation:"geq",$parserOffset:Oe()}},J=/^[0-9]/,Q={type:"class",value:"[0-9]",description:"[0-9]"},ee=function(e){return{priority:parseInt(e.join(""),10)}},te=function(e){return{constant:e}},re=/^[a-zA-Z_]/,ne={type:"class",value:"[a-zA-Z_]",description:"[a-zA-Z_]"},ie=/^[a-zA-Z0-9_]/,oe={type:"class",value:"[a-zA-Z0-9_]",description:"[a-zA-Z0-9_]"},ae=function(e,t){return{view:e+t}},se=".",ce={type:"literal",value:".",description:'"."'},le=function(e,t){return parseFloat(e.concat(".").concat(t).join(""))},ue=function(e){return parseInt(e.join(""),10)},de=0,pe=0,be=0,he={line:1,column:1,seenCR:!1},fe=0,ge=[],me=0;if("startRule"in n){if(!(n.startRule in o))throw new Error("Can't start parsing from rule \""+n.startRule+'".');a=o[n.startRule]}function Oe(){return pe}function je(e){return be!==e&&(be>e&&(be=0,he={line:1,column:1,seenCR:!1}),function(e,r,n){var i,o;for(i=r;ife&&(fe=de,ge=[]),ge.push(e))}function ye(r,n,i){var o=je(i),a=it.description?1:0}));t1?n.slice(0,-1).join(", ")+" or "+n[e.length-1]:n[0])+" but "+(t?'"'+function(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,(function(e){return"\\x0"+t(e)})).replace(/[\x10-\x1F\x80-\xFF]/g,(function(e){return"\\x"+t(e)})).replace(/[\u0180-\u0FFF]/g,(function(e){return"\\u0"+t(e)})).replace(/[\u1080-\uFFFF]/g,(function(e){return"\\u"+t(e)}))}(t)+'"':"end of input")+" found."}(n,a),n,a,i,o.line,o.column)}function we(){var e,r,n,o,a,p,b,h;if(e=de,r=de,(n=xe())!==i?(58===t.charCodeAt(de)?(o=l,de++):(o=i,0===me&&ve(u)),o!==i?r=n=[n,o]:(de=r,r=s)):(de=r,r=s),r===i&&(r=c),r!==i)if(n=de,(o=Se())!==i&&(a=Ae())!==i?n=o=[o,a]:(de=n,n=s),n===i&&(n=c),n!==i)if((o=Ce())!==i){for(a=[],p=de,(b=Ae())!==i&&(h=Ce())!==i?p=b=[b,h]:(de=p,p=s);p!==i;)a.push(p),p=de,(b=Ae())!==i&&(h=Ce())!==i?p=b=[b,h]:(de=p,p=s);a!==i?(p=de,(b=Ae())!==i&&(h=Se())!==i?p=b=[b,h]:(de=p,p=s),p===i&&(p=c),p!==i?(pe=e,e=r=d(r,n,o,a,p)):(de=e,e=s)):(de=e,e=s)}else de=e,e=s;else de=e,e=s;else de=e,e=s;return e}function xe(){var e,r;return e=de,72===t.charCodeAt(de)?(r=p,de++):(r=i,0===me&&ve(b)),r===i&&(86===t.charCodeAt(de)?(r=h,de++):(r=i,0===me&&ve(f))),r!==i&&(pe=e,r=g(r)),e=r}function Se(){var e,r;return e=de,124===t.charCodeAt(de)?(r=m,de++):(r=i,0===me&&ve(O)),r!==i&&(pe=e,r=j()),e=r}function Ce(){var e,r,n,o,a;return e=de,91===t.charCodeAt(de)?(r=v,de++):(r=i,0===me&&ve(y)),r!==i&&(n=Ne())!==i?((o=Te())===i&&(o=c),o!==i?(93===t.charCodeAt(de)?(a=w,de++):(a=i,0===me&&ve(x)),a!==i?(pe=e,e=r=S(n,o)):(de=e,e=s)):(de=e,e=s)):(de=e,e=s),e}function Ae(){var e,r,n,o;return e=de,45===t.charCodeAt(de)?(r=C,de++):(r=i,0===me&&ve(A)),r!==i&&(n=Ee())!==i?(45===t.charCodeAt(de)?(o=C,de++):(o=i,0===me&&ve(A)),o!==i?(pe=e,e=r=E(n)):(de=e,e=s)):(de=e,e=s),e===i&&(e=de,45===t.charCodeAt(de)?(r=C,de++):(r=i,0===me&&ve(A)),r!==i&&(pe=e,r=_()),(e=r)===i&&(e=de,(r=T)!==i&&(pe=e,r=R()),e=r)),e}function Ee(){var e;return(e=_e())===i&&(e=Te()),e}function _e(){var e,t;return e=de,(t=De())!==i&&(pe=e,t=I(t)),e=t}function Te(){var e,r,n,o,a,c,l;if(e=de,40===t.charCodeAt(de)?(r=P,de++):(r=i,0===me&&ve(k)),r!==i)if((n=Re())!==i){for(o=[],a=de,44===t.charCodeAt(de)?(c=B,de++):(c=i,0===me&&ve(N)),c!==i&&(l=Re())!==i?a=c=[c,l]:(de=a,a=s);a!==i;)o.push(a),a=de,44===t.charCodeAt(de)?(c=B,de++):(c=i,0===me&&ve(N)),c!==i&&(l=Re())!==i?a=c=[c,l]:(de=a,a=s);o!==i?(41===t.charCodeAt(de)?(a=D,de++):(a=i,0===me&&ve(M)),a!==i?(pe=e,e=r=L(n,o)):(de=e,e=s)):(de=e,e=s)}else de=e,e=s;else de=e,e=s;return e}function Re(){var e,r,n,o,a,l;return e=de,(r=Ie())===i&&(r=c),r!==i&&(n=Pe())!==i?(o=de,64===t.charCodeAt(de)?(a=F,de++):(a=i,0===me&&ve(z)),a!==i&&(l=ke())!==i?o=a=[a,l]:(de=o,o=s),o===i&&(o=c),o!==i?(pe=e,e=r=W(r,n,o)):(de=e,e=s)):(de=e,e=s),e}function Ie(){var e,r;return e=de,t.substr(de,2)===U?(r=U,de+=2):(r=i,0===me&&ve(H)),r!==i&&(pe=e,r=V()),(e=r)===i&&(e=de,t.substr(de,2)===G?(r=G,de+=2):(r=i,0===me&&ve(Y)),r!==i&&(pe=e,r=Z()),(e=r)===i&&(e=de,t.substr(de,2)===X?(r=X,de+=2):(r=i,0===me&&ve(q)),r!==i&&(pe=e,r=K()),e=r)),e}function Pe(){var e;return(e=Be())===i&&(e=Ne()),e}function ke(){var e,r,n;if(e=de,r=[],J.test(t.charAt(de))?(n=t.charAt(de),de++):(n=i,0===me&&ve(Q)),n!==i)for(;n!==i;)r.push(n),J.test(t.charAt(de))?(n=t.charAt(de),de++):(n=i,0===me&&ve(Q));else r=s;return r!==i&&(pe=e,r=ee(r)),e=r}function Be(){var e,t;return e=de,(t=De())!==i&&(pe=e,t=te(t)),e=t}function Ne(){var e,r,n,o,a;if(e=de,r=de,n=[],re.test(t.charAt(de))?(o=t.charAt(de),de++):(o=i,0===me&&ve(ne)),o!==i)for(;o!==i;)n.push(o),re.test(t.charAt(de))?(o=t.charAt(de),de++):(o=i,0===me&&ve(ne));else n=s;if(n!==i&&(n=t.substring(r,de)),(r=n)!==i){for(n=de,o=[],ie.test(t.charAt(de))?(a=t.charAt(de),de++):(a=i,0===me&&ve(oe));a!==i;)o.push(a),ie.test(t.charAt(de))?(a=t.charAt(de),de++):(a=i,0===me&&ve(oe));o!==i&&(o=t.substring(n,de)),(n=o)!==i?(pe=e,e=r=ae(r,n)):(de=e,e=s)}else de=e,e=s;return e}function De(){var e,r,n,o,a;if(e=de,r=[],J.test(t.charAt(de))?(n=t.charAt(de),de++):(n=i,0===me&&ve(Q)),n!==i)for(;n!==i;)r.push(n),J.test(t.charAt(de))?(n=t.charAt(de),de++):(n=i,0===me&&ve(Q));else r=s;if(r!==i)if(46===t.charCodeAt(de)?(n=se,de++):(n=i,0===me&&ve(ce)),n!==i){if(o=[],J.test(t.charAt(de))?(a=t.charAt(de),de++):(a=i,0===me&&ve(Q)),a!==i)for(;a!==i;)o.push(a),J.test(t.charAt(de))?(a=t.charAt(de),de++):(a=i,0===me&&ve(Q));else o=s;o!==i?(pe=e,e=r=le(r,o)):(de=e,e=s)}else de=e,e=s;else de=e,e=s;if(e===i){if(e=de,r=[],J.test(t.charAt(de))?(n=t.charAt(de),de++):(n=i,0===me&&ve(Q)),n!==i)for(;n!==i;)r.push(n),J.test(t.charAt(de))?(n=t.charAt(de),de++):(n=i,0===me&&ve(Q));else r=s;r!==i&&(pe=e,r=ue(r)),e=r}return e}function Me(e){for(var t=[],r=1;r1?arguments[1]:{},i={},o={visualFormatStringExt:Yt},a=Yt,s=i,c="C:",l={type:"literal",value:"C:",description:'"C:"'},u=null,d=function(e,t,r,n){return{type:"attribute",view:e.view,attributes:[t].concat(r)}},p=function(e,t){return{attr:e,predicates:t}},b=":",h={type:"literal",value:":",description:'":"'},f=function(e,t,r,n,i,o){return{type:"vfl",orientation:e?e[0]:"horizontal",cascade:(t||[]).concat(r,[].concat.apply([],n),i||[])}},g="HV",m={type:"literal",value:"HV",description:'"HV"'},O=function(){return"horzvert"},j="H",v={type:"literal",value:"H",description:'"H"'},y=function(){return"horizontal"},w="V",x={type:"literal",value:"V",description:'"V"'},S=function(){return"vertical"},C="Z",A={type:"literal",value:"Z",description:'"Z"'},E=function(){return"zIndex"},_=" ",T={type:"literal",value:" ",description:'" "'},R="//",I={type:"literal",value:"//",description:'"//"'},P={type:"any",description:"any character"},k="|",B={type:"literal",value:"|",description:'"|"'},N=function(){return{view:null}},D="[",M={type:"literal",value:"[",description:'"["'},L=",",F={type:"literal",value:",",description:'","'},z="]",W={type:"literal",value:"]",description:'"]"'},U=function(e,t){return t.length?[e].concat([].concat.apply([],t)):e},H=function(e,t,r){return wr(wr(e,t?{constraints:t}:{}),r?{cascade:r}:{})},V=function(e,t){return[].concat([].concat.apply([],e),[t])},G="->",Y={type:"literal",value:"->",description:'"->"'},Z=function(){return[{relation:"none"}]},X="-",q={type:"literal",value:"-",description:'"-"'},K=function(e){return e},J=function(){return[{relation:"equ",constant:"default"}]},Q="~",ee={type:"literal",value:"~",description:'"~"'},te=function(){return[{relation:"equ",equalSpacing:!0}]},re="",ne=function(){return[{relation:"equ",constant:0}]},ie=function(e){return[{relation:"equ",multiplier:e.multiplier}]},oe=function(e){return[{relation:"equ",constant:e}]},ae="(",se={type:"literal",value:"(",description:'"("'},ce=")",le={type:"literal",value:")",description:'")"'},ue=function(e,t){return[e].concat(t.map((function(e){return e[1]})))},de="@",pe={type:"literal",value:"@",description:'"@"'},be=function(e,t,r){return wr({relation:"equ"},e||{},t,r?r[1]:{})},he=function(e,t,r){return wr({relation:"equ",equalSpacing:!0},e||{},t,r?r[1]:{})},fe="==",ge={type:"literal",value:"==",description:'"=="'},me=function(){return{relation:"equ"}},Oe="<=",je={type:"literal",value:"<=",description:'"<="'},ve=function(){return{relation:"leq"}},ye=">=",we={type:"literal",value:">=",description:'">="'},xe=function(){return{relation:"geq"}},Se=/^[0-9]/,Ce={type:"class",value:"[0-9]",description:"[0-9]"},Ae=function(e){return{priority:parseInt(e.join(""),10)}},Ee=function(e){return{constant:e}},_e=function(e){return{constant:-e}},Te="+",Re={type:"literal",value:"+",description:'"+"'},Ie="%",Pe={type:"literal",value:"%",description:'"%"'},ke=function(e){return{view:null,multiplier:e/100}},Be=function(e){return{view:null,multiplier:e/-100}},Ne=function(e,t,r,n){return{view:e.view,attribute:t||void 0,multiplier:r||1,constant:n||void 0}},De=".left",Me={type:"literal",value:".left",description:'".left"'},Le=function(){return"left"},Fe=".right",ze={type:"literal",value:".right",description:'".right"'},We=function(){return"right"},Ue=".top",He={type:"literal",value:".top",description:'".top"'},Ve=function(){return"top"},Ge=".bottom",Ye={type:"literal",value:".bottom",description:'".bottom"'},Ze=function(){return"bottom"},Xe=".width",qe={type:"literal",value:".width",description:'".width"'},Ke=function(){return"width"},$e=".height",Je={type:"literal",value:".height",description:'".height"'},Qe=function(){return"height"},et=".centerX",tt={type:"literal",value:".centerX",description:'".centerX"'},rt=function(){return"centerX"},nt=".centerY",it={type:"literal",value:".centerY",description:'".centerY"'},ot=function(){return"centerY"},at="/",st={type:"literal",value:"/",description:'"/"'},ct=function(e){return 1/e},lt="/+",ut={type:"literal",value:"/+",description:'"/+"'},dt="/-",pt={type:"literal",value:"/-",description:'"/-"'},bt=function(e){return-1/e},ht="*",ft={type:"literal",value:"*",description:'"*"'},gt=function(e){return e},mt="*+",Ot={type:"literal",value:"*+",description:'"*+"'},jt="*-",vt={type:"literal",value:"*-",description:'"*-"'},yt=function(e){return-e},wt=/^[a-zA-Z_]/,xt={type:"class",value:"[a-zA-Z_]",description:"[a-zA-Z_]"},St=/^[a-zA-Z0-9_]/,Ct={type:"class",value:"[a-zA-Z0-9_]",description:"[a-zA-Z0-9_]"},At=function(e,t,r){return{view:e+t,range:r,$parserOffset:Ut()}},Et=function(e,t){return{view:e+t,$parserOffset:Ut()}},_t="..",Tt={type:"literal",value:"..",description:'".."'},Rt=function(e){return parseInt(e)},It=".",Pt={type:"literal",value:".",description:'"."'},kt=function(e,t){return parseFloat(e.concat(".").concat(t).join(""))},Bt=function(e){return parseInt(e.join(""),10)},Nt=0,Dt=0,Mt=0,Lt={line:1,column:1,seenCR:!1},Ft=0,zt=[],Wt=0;if("startRule"in n){if(!(n.startRule in o))throw new Error("Can't start parsing from rule \""+n.startRule+'".');a=o[n.startRule]}function Ut(){return Dt}function Ht(e){return Mt!==e&&(Mt>e&&(Mt=0,Lt={line:1,column:1,seenCR:!1}),function(e,r,n){var i,o;for(i=r;iFt&&(Ft=Nt,zt=[]),zt.push(e))}function Gt(r,n,i){var o=Ht(i),a=it.description?1:0}));t1?n.slice(0,-1).join(", ")+" or "+n[e.length-1]:n[0])+" but "+(t?'"'+function(e){function t(e){return e.charCodeAt(0).toString(16).toUpperCase()}return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\x08/g,"\\b").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\f/g,"\\f").replace(/\r/g,"\\r").replace(/[\x00-\x07\x0B\x0E\x0F]/g,(function(e){return"\\x0"+t(e)})).replace(/[\x10-\x1F\x80-\xFF]/g,(function(e){return"\\x"+t(e)})).replace(/[\u0180-\u0FFF]/g,(function(e){return"\\u0"+t(e)})).replace(/[\u1080-\uFFFF]/g,(function(e){return"\\u"+t(e)}))}(t)+'"':"end of input")+" found."}(n,a),n,a,i,o.line,o.column)}function Yt(){var e;return(e=qt())===i&&(e=Zt()),e}function Zt(){var e,r,n,o,a,p;if(e=Nt,t.substr(Nt,2)===c?(r=c,Nt+=2):(r=i,0===Wt&&Vt(l)),r!==i)if((n=jr())!==i)if((o=Xt())!==i){for(a=[],p=Xt();p!==i;)a.push(p),p=Xt();a!==i?((p=$t())===i&&(p=u),p!==i?(Dt=e,e=r=d(n,o,a,p)):(Nt=e,e=s)):(Nt=e,e=s)}else Nt=e,e=s;else Nt=e,e=s;else Nt=e,e=s;return e}function Xt(){var e,t,r;return e=Nt,(t=fr())!==i&&(r=or())!==i?(Dt=e,e=t=p(t,r)):(Nt=e,e=s),e}function qt(){var e,r,n,o,a,c,l,d;if(e=Nt,r=Nt,(n=Kt())!==i?(58===t.charCodeAt(Nt)?(o=b,Nt++):(o=i,0===Wt&&Vt(h)),o!==i?r=n=[n,o]:(Nt=r,r=s)):(Nt=r,r=s),r===i&&(r=u),r!==i)if(n=Nt,(o=Jt())!==i&&(a=rr())!==i?n=o=[o,a]:(Nt=n,n=s),n===i&&(n=u),n!==i)if((o=Qt())!==i){for(a=[],c=Nt,(l=rr())!==i&&(d=Qt())!==i?c=l=[l,d]:(Nt=c,c=s);c!==i;)a.push(c),c=Nt,(l=rr())!==i&&(d=Qt())!==i?c=l=[l,d]:(Nt=c,c=s);a!==i?(c=Nt,(l=rr())!==i&&(d=Jt())!==i?c=l=[l,d]:(Nt=c,c=s),c===i&&(c=u),c!==i?((l=$t())===i&&(l=u),l!==i?(Dt=e,e=r=f(r,n,o,a,c,l)):(Nt=e,e=s)):(Nt=e,e=s)):(Nt=e,e=s)}else Nt=e,e=s;else Nt=e,e=s;else Nt=e,e=s;return e}function Kt(){var e,r;return e=Nt,t.substr(Nt,2)===g?(r=g,Nt+=2):(r=i,0===Wt&&Vt(m)),r!==i&&(Dt=e,r=O()),(e=r)===i&&(e=Nt,72===t.charCodeAt(Nt)?(r=j,Nt++):(r=i,0===Wt&&Vt(v)),r!==i&&(Dt=e,r=y()),(e=r)===i&&(e=Nt,86===t.charCodeAt(Nt)?(r=w,Nt++):(r=i,0===Wt&&Vt(x)),r!==i&&(Dt=e,r=S()),(e=r)===i&&(e=Nt,90===t.charCodeAt(Nt)?(r=C,Nt++):(r=i,0===Wt&&Vt(A)),r!==i&&(Dt=e,r=E()),e=r))),e}function $t(){var e,r,n,o,a;for(e=Nt,r=[],32===t.charCodeAt(Nt)?(n=_,Nt++):(n=i,0===Wt&&Vt(T));n!==i;)r.push(n),32===t.charCodeAt(Nt)?(n=_,Nt++):(n=i,0===Wt&&Vt(T));if(r!==i)if(t.substr(Nt,2)===R?(n=R,Nt+=2):(n=i,0===Wt&&Vt(I)),n!==i){for(o=[],t.length>Nt?(a=t.charAt(Nt),Nt++):(a=i,0===Wt&&Vt(P));a!==i;)o.push(a),t.length>Nt?(a=t.charAt(Nt),Nt++):(a=i,0===Wt&&Vt(P));o!==i?e=r=[r,n,o]:(Nt=e,e=s)}else Nt=e,e=s;else Nt=e,e=s;return e}function Jt(){var e,r;return e=Nt,124===t.charCodeAt(Nt)?(r=k,Nt++):(r=i,0===Wt&&Vt(B)),r!==i&&(Dt=e,r=N()),e=r}function Qt(){var e,r,n,o,a,c,l;if(e=Nt,91===t.charCodeAt(Nt)?(r=D,Nt++):(r=i,0===Wt&&Vt(M)),r!==i)if((n=er())!==i){for(o=[],a=Nt,44===t.charCodeAt(Nt)?(c=L,Nt++):(c=i,0===Wt&&Vt(F)),c!==i&&(l=er())!==i?a=c=[c,l]:(Nt=a,a=s);a!==i;)o.push(a),a=Nt,44===t.charCodeAt(Nt)?(c=L,Nt++):(c=i,0===Wt&&Vt(F)),c!==i&&(l=er())!==i?a=c=[c,l]:(Nt=a,a=s);o!==i?(93===t.charCodeAt(Nt)?(a=z,Nt++):(a=i,0===Wt&&Vt(W)),a!==i?(Dt=e,e=r=U(n,o)):(Nt=e,e=s)):(Nt=e,e=s)}else Nt=e,e=s;else Nt=e,e=s;return e}function er(){var e,t,r,n;return e=Nt,(t=Or())!==i?((r=or())===i&&(r=u),r!==i?((n=tr())===i&&(n=u),n!==i?(Dt=e,e=t=H(t,r,n)):(Nt=e,e=s)):(Nt=e,e=s)):(Nt=e,e=s),e}function tr(){var e,r,n,o,a,c;if(e=Nt,58===t.charCodeAt(Nt)?(r=b,Nt++):(r=i,0===Wt&&Vt(h)),r!==i){if(n=[],o=Nt,(a=rr())!==i&&(c=Qt())!==i?o=a=[a,c]:(Nt=o,o=s),o!==i)for(;o!==i;)n.push(o),o=Nt,(a=rr())!==i&&(c=Qt())!==i?o=a=[a,c]:(Nt=o,o=s);else n=s;n!==i&&(o=rr())!==i?(Dt=e,e=r=V(n,o)):(Nt=e,e=s)}else Nt=e,e=s;return e}function rr(){var e,r,n,o;return e=Nt,t.substr(Nt,2)===G?(r=G,Nt+=2):(r=i,0===Wt&&Vt(Y)),r!==i&&(Dt=e,r=Z()),(e=r)===i&&(e=Nt,45===t.charCodeAt(Nt)?(r=X,Nt++):(r=i,0===Wt&&Vt(q)),r!==i&&(n=nr())!==i?(45===t.charCodeAt(Nt)?(o=X,Nt++):(o=i,0===Wt&&Vt(q)),o!==i?(Dt=e,e=r=K(n)):(Nt=e,e=s)):(Nt=e,e=s),e===i&&(e=Nt,45===t.charCodeAt(Nt)?(r=X,Nt++):(r=i,0===Wt&&Vt(q)),r!==i&&(Dt=e,r=J()),(e=r)===i&&(e=Nt,126===t.charCodeAt(Nt)?(r=Q,Nt++):(r=i,0===Wt&&Vt(ee)),r!==i&&(n=sr())!==i?(126===t.charCodeAt(Nt)?(o=Q,Nt++):(o=i,0===Wt&&Vt(ee)),o!==i?(Dt=e,e=r=K(n)):(Nt=e,e=s)):(Nt=e,e=s),e===i&&(e=Nt,126===t.charCodeAt(Nt)?(r=Q,Nt++):(r=i,0===Wt&&Vt(ee)),r!==i&&(Dt=e,r=te()),(e=r)===i&&(e=Nt,(r=re)!==i&&(Dt=e,r=ne()),e=r))))),e}function nr(){var e;return(e=ir())===i&&(e=or()),e}function ir(){var e,t;return e=Nt,(t=br())!==i&&(Dt=e,t=ie(t)),(e=t)===i&&(e=Nt,(t=yr())!==i&&(Dt=e,t=oe(t)),e=t),e}function or(){var e,r,n,o,a,c,l;if(e=Nt,40===t.charCodeAt(Nt)?(r=ae,Nt++):(r=i,0===Wt&&Vt(se)),r!==i)if((n=ar())!==i){for(o=[],a=Nt,44===t.charCodeAt(Nt)?(c=L,Nt++):(c=i,0===Wt&&Vt(F)),c!==i&&(l=ar())!==i?a=c=[c,l]:(Nt=a,a=s);a!==i;)o.push(a),a=Nt,44===t.charCodeAt(Nt)?(c=L,Nt++):(c=i,0===Wt&&Vt(F)),c!==i&&(l=ar())!==i?a=c=[c,l]:(Nt=a,a=s);o!==i?(41===t.charCodeAt(Nt)?(a=ce,Nt++):(a=i,0===Wt&&Vt(le)),a!==i?(Dt=e,e=r=ue(n,o)):(Nt=e,e=s)):(Nt=e,e=s)}else Nt=e,e=s;else Nt=e,e=s;return e}function ar(){var e,r,n,o,a,c;return e=Nt,(r=lr())===i&&(r=u),r!==i&&(n=ur())!==i?(o=Nt,64===t.charCodeAt(Nt)?(a=de,Nt++):(a=i,0===Wt&&Vt(pe)),a!==i&&(c=dr())!==i?o=a=[a,c]:(Nt=o,o=s),o===i&&(o=u),o!==i?(Dt=e,e=r=be(r,n,o)):(Nt=e,e=s)):(Nt=e,e=s),e}function sr(){var e,r,n,o,a,c,l;if(e=Nt,40===t.charCodeAt(Nt)?(r=ae,Nt++):(r=i,0===Wt&&Vt(se)),r!==i)if((n=cr())!==i){for(o=[],a=Nt,44===t.charCodeAt(Nt)?(c=L,Nt++):(c=i,0===Wt&&Vt(F)),c!==i&&(l=cr())!==i?a=c=[c,l]:(Nt=a,a=s);a!==i;)o.push(a),a=Nt,44===t.charCodeAt(Nt)?(c=L,Nt++):(c=i,0===Wt&&Vt(F)),c!==i&&(l=cr())!==i?a=c=[c,l]:(Nt=a,a=s);o!==i?(41===t.charCodeAt(Nt)?(a=ce,Nt++):(a=i,0===Wt&&Vt(le)),a!==i?(Dt=e,e=r=ue(n,o)):(Nt=e,e=s)):(Nt=e,e=s)}else Nt=e,e=s;else Nt=e,e=s;return e}function cr(){var e,r,n,o,a,c;return e=Nt,(r=lr())===i&&(r=u),r!==i&&(n=ur())!==i?(o=Nt,64===t.charCodeAt(Nt)?(a=de,Nt++):(a=i,0===Wt&&Vt(pe)),a!==i&&(c=dr())!==i?o=a=[a,c]:(Nt=o,o=s),o===i&&(o=u),o!==i?(Dt=e,e=r=he(r,n,o)):(Nt=e,e=s)):(Nt=e,e=s),e}function lr(){var e,r;return e=Nt,t.substr(Nt,2)===fe?(r=fe,Nt+=2):(r=i,0===Wt&&Vt(ge)),r!==i&&(Dt=e,r=me()),(e=r)===i&&(e=Nt,t.substr(Nt,2)===Oe?(r=Oe,Nt+=2):(r=i,0===Wt&&Vt(je)),r!==i&&(Dt=e,r=ve()),(e=r)===i&&(e=Nt,t.substr(Nt,2)===ye?(r=ye,Nt+=2):(r=i,0===Wt&&Vt(we)),r!==i&&(Dt=e,r=xe()),e=r)),e}function ur(){var e;return(e=br())===i&&(e=pr())===i&&(e=hr()),e}function dr(){var e,r,n;if(e=Nt,r=[],Se.test(t.charAt(Nt))?(n=t.charAt(Nt),Nt++):(n=i,0===Wt&&Vt(Ce)),n!==i)for(;n!==i;)r.push(n),Se.test(t.charAt(Nt))?(n=t.charAt(Nt),Nt++):(n=i,0===Wt&&Vt(Ce));else r=s;return r!==i&&(Dt=e,r=Ae(r)),e=r}function pr(){var e,r,n;return e=Nt,(r=yr())!==i&&(Dt=e,r=Ee(r)),(e=r)===i&&(e=Nt,45===t.charCodeAt(Nt)?(r=X,Nt++):(r=i,0===Wt&&Vt(q)),r!==i&&(n=yr())!==i?(Dt=e,e=r=_e(n)):(Nt=e,e=s),e===i&&(e=Nt,43===t.charCodeAt(Nt)?(r=Te,Nt++):(r=i,0===Wt&&Vt(Re)),r!==i&&(n=yr())!==i?(Dt=e,e=r=Ee(n)):(Nt=e,e=s))),e}function br(){var e,r,n,o;return e=Nt,(r=yr())!==i?(37===t.charCodeAt(Nt)?(n=Ie,Nt++):(n=i,0===Wt&&Vt(Pe)),n!==i?(Dt=e,e=r=ke(r)):(Nt=e,e=s)):(Nt=e,e=s),e===i&&(e=Nt,45===t.charCodeAt(Nt)?(r=X,Nt++):(r=i,0===Wt&&Vt(q)),r!==i&&(n=yr())!==i?(37===t.charCodeAt(Nt)?(o=Ie,Nt++):(o=i,0===Wt&&Vt(Pe)),o!==i?(Dt=e,e=r=Be(n)):(Nt=e,e=s)):(Nt=e,e=s),e===i&&(e=Nt,43===t.charCodeAt(Nt)?(r=Te,Nt++):(r=i,0===Wt&&Vt(Re)),r!==i&&(n=yr())!==i?(37===t.charCodeAt(Nt)?(o=Ie,Nt++):(o=i,0===Wt&&Vt(Pe)),o!==i?(Dt=e,e=r=ke(n)):(Nt=e,e=s)):(Nt=e,e=s))),e}function hr(){var e,t,r,n,o;return e=Nt,(t=jr())!==i?((r=fr())===i&&(r=u),r!==i?((n=gr())===i&&(n=u),n!==i?((o=mr())===i&&(o=u),o!==i?(Dt=e,e=t=Ne(t,r,n,o)):(Nt=e,e=s)):(Nt=e,e=s)):(Nt=e,e=s)):(Nt=e,e=s),e}function fr(){var e,r;return e=Nt,t.substr(Nt,5)===De?(r=De,Nt+=5):(r=i,0===Wt&&Vt(Me)),r!==i&&(Dt=e,r=Le()),(e=r)===i&&(e=Nt,t.substr(Nt,6)===Fe?(r=Fe,Nt+=6):(r=i,0===Wt&&Vt(ze)),r!==i&&(Dt=e,r=We()),(e=r)===i&&(e=Nt,t.substr(Nt,4)===Ue?(r=Ue,Nt+=4):(r=i,0===Wt&&Vt(He)),r!==i&&(Dt=e,r=Ve()),(e=r)===i&&(e=Nt,t.substr(Nt,7)===Ge?(r=Ge,Nt+=7):(r=i,0===Wt&&Vt(Ye)),r!==i&&(Dt=e,r=Ze()),(e=r)===i&&(e=Nt,t.substr(Nt,6)===Xe?(r=Xe,Nt+=6):(r=i,0===Wt&&Vt(qe)),r!==i&&(Dt=e,r=Ke()),(e=r)===i&&(e=Nt,t.substr(Nt,7)===$e?(r=$e,Nt+=7):(r=i,0===Wt&&Vt(Je)),r!==i&&(Dt=e,r=Qe()),(e=r)===i&&(e=Nt,t.substr(Nt,8)===et?(r=et,Nt+=8):(r=i,0===Wt&&Vt(tt)),r!==i&&(Dt=e,r=rt()),(e=r)===i&&(e=Nt,t.substr(Nt,8)===nt?(r=nt,Nt+=8):(r=i,0===Wt&&Vt(it)),r!==i&&(Dt=e,r=ot()),e=r))))))),e}function gr(){var e,r,n;return e=Nt,47===t.charCodeAt(Nt)?(r=at,Nt++):(r=i,0===Wt&&Vt(st)),r!==i&&(n=yr())!==i?(Dt=e,e=r=ct(n)):(Nt=e,e=s),e===i&&(e=Nt,t.substr(Nt,2)===lt?(r=lt,Nt+=2):(r=i,0===Wt&&Vt(ut)),r!==i&&(n=yr())!==i?(Dt=e,e=r=ct(n)):(Nt=e,e=s),e===i&&(e=Nt,t.substr(Nt,2)===dt?(r=dt,Nt+=2):(r=i,0===Wt&&Vt(pt)),r!==i&&(n=yr())!==i?(Dt=e,e=r=bt(n)):(Nt=e,e=s),e===i&&(e=Nt,42===t.charCodeAt(Nt)?(r=ht,Nt++):(r=i,0===Wt&&Vt(ft)),r!==i&&(n=yr())!==i?(Dt=e,e=r=gt(n)):(Nt=e,e=s),e===i&&(e=Nt,t.substr(Nt,2)===mt?(r=mt,Nt+=2):(r=i,0===Wt&&Vt(Ot)),r!==i&&(n=yr())!==i?(Dt=e,e=r=gt(n)):(Nt=e,e=s),e===i&&(e=Nt,t.substr(Nt,2)===jt?(r=jt,Nt+=2):(r=i,0===Wt&&Vt(vt)),r!==i&&(n=yr())!==i?(Dt=e,e=r=yt(n)):(Nt=e,e=s)))))),e}function mr(){var e,r,n;return e=Nt,45===t.charCodeAt(Nt)?(r=X,Nt++):(r=i,0===Wt&&Vt(q)),r!==i&&(n=yr())!==i?(Dt=e,e=r=yt(n)):(Nt=e,e=s),e===i&&(e=Nt,43===t.charCodeAt(Nt)?(r=Te,Nt++):(r=i,0===Wt&&Vt(Re)),r!==i&&(n=yr())!==i?(Dt=e,e=r=gt(n)):(Nt=e,e=s)),e}function Or(){var e,r,n,o,a;if(e=Nt,r=Nt,n=[],wt.test(t.charAt(Nt))?(o=t.charAt(Nt),Nt++):(o=i,0===Wt&&Vt(xt)),o!==i)for(;o!==i;)n.push(o),wt.test(t.charAt(Nt))?(o=t.charAt(Nt),Nt++):(o=i,0===Wt&&Vt(xt));else n=s;if(n!==i&&(n=t.substring(r,Nt)),(r=n)!==i){for(n=Nt,o=[],St.test(t.charAt(Nt))?(a=t.charAt(Nt),Nt++):(a=i,0===Wt&&Vt(Ct));a!==i;)o.push(a),St.test(t.charAt(Nt))?(a=t.charAt(Nt),Nt++):(a=i,0===Wt&&Vt(Ct));o!==i&&(o=t.substring(n,Nt)),(n=o)!==i&&(o=vr())!==i?(Dt=e,e=r=At(r,n,o)):(Nt=e,e=s)}else Nt=e,e=s;if(e===i){if(e=Nt,r=Nt,n=[],wt.test(t.charAt(Nt))?(o=t.charAt(Nt),Nt++):(o=i,0===Wt&&Vt(xt)),o!==i)for(;o!==i;)n.push(o),wt.test(t.charAt(Nt))?(o=t.charAt(Nt),Nt++):(o=i,0===Wt&&Vt(xt));else n=s;if(n!==i&&(n=t.substring(r,Nt)),(r=n)!==i){for(n=Nt,o=[],St.test(t.charAt(Nt))?(a=t.charAt(Nt),Nt++):(a=i,0===Wt&&Vt(Ct));a!==i;)o.push(a),St.test(t.charAt(Nt))?(a=t.charAt(Nt),Nt++):(a=i,0===Wt&&Vt(Ct));o!==i&&(o=t.substring(n,Nt)),(n=o)!==i?(Dt=e,e=r=Et(r,n)):(Nt=e,e=s)}else Nt=e,e=s}return e}function jr(){var e,r,n,o,a;if(e=Nt,r=Nt,n=[],wt.test(t.charAt(Nt))?(o=t.charAt(Nt),Nt++):(o=i,0===Wt&&Vt(xt)),o!==i)for(;o!==i;)n.push(o),wt.test(t.charAt(Nt))?(o=t.charAt(Nt),Nt++):(o=i,0===Wt&&Vt(xt));else n=s;if(n!==i&&(n=t.substring(r,Nt)),(r=n)!==i){for(n=Nt,o=[],St.test(t.charAt(Nt))?(a=t.charAt(Nt),Nt++):(a=i,0===Wt&&Vt(Ct));a!==i;)o.push(a),St.test(t.charAt(Nt))?(a=t.charAt(Nt),Nt++):(a=i,0===Wt&&Vt(Ct));o!==i&&(o=t.substring(n,Nt)),(n=o)!==i?(Dt=e,e=r=Et(r,n)):(Nt=e,e=s)}else Nt=e,e=s;return e}function vr(){var e,r,n,o;if(e=Nt,t.substr(Nt,2)===_t?(r=_t,Nt+=2):(r=i,0===Wt&&Vt(Tt)),r!==i){if(n=[],Se.test(t.charAt(Nt))?(o=t.charAt(Nt),Nt++):(o=i,0===Wt&&Vt(Ce)),o!==i)for(;o!==i;)n.push(o),Se.test(t.charAt(Nt))?(o=t.charAt(Nt),Nt++):(o=i,0===Wt&&Vt(Ce));else n=s;n!==i?(Dt=e,e=r=Rt(n)):(Nt=e,e=s)}else Nt=e,e=s;return e}function yr(){var e,r,n,o,a;if(e=Nt,r=[],Se.test(t.charAt(Nt))?(n=t.charAt(Nt),Nt++):(n=i,0===Wt&&Vt(Ce)),n!==i)for(;n!==i;)r.push(n),Se.test(t.charAt(Nt))?(n=t.charAt(Nt),Nt++):(n=i,0===Wt&&Vt(Ce));else r=s;if(r!==i)if(46===t.charCodeAt(Nt)?(n=It,Nt++):(n=i,0===Wt&&Vt(Pt)),n!==i){if(o=[],Se.test(t.charAt(Nt))?(a=t.charAt(Nt),Nt++):(a=i,0===Wt&&Vt(Ce)),a!==i)for(;a!==i;)o.push(a),Se.test(t.charAt(Nt))?(a=t.charAt(Nt),Nt++):(a=i,0===Wt&&Vt(Ce));else o=s;o!==i?(Dt=e,e=r=kt(r,o)):(Nt=e,e=s)}else Nt=e,e=s;else Nt=e,e=s;if(e===i){if(e=Nt,r=[],Se.test(t.charAt(Nt))?(n=t.charAt(Nt),Nt++):(n=i,0===Wt&&Vt(Ce)),n!==i)for(;n!==i;)r.push(n),Se.test(t.charAt(Nt))?(n=t.charAt(Nt),Nt++):(n=i,0===Wt&&Vt(Ce));else r=s;r!==i&&(Dt=e,r=Bt(r)),e=r}return e}function wr(e){for(var t=[],r=1;r1&&e.constraints.push({view1:"_~"+e.lineIndex+":1~",attr1:e.horizontal?Ar.a.WIDTH:Ar.a.HEIGHT,relation:e.relation.relation||Er.a.EQU,view2:r,attr2:e.horizontal?Ar.a.WIDTH:Ar.a.HEIGHT,priority:e.relation.priority}),e.equalSpacerIndex++,e.relation.view||e.relation.multiplier&&1!==e.relation.multiplier?(e.constraints.push({view1:r,attr1:e.horizontal?Ar.a.WIDTH:Ar.a.HEIGHT,relation:e.relation.relation||Er.a.EQU,view2:e.relation.view,attr2:e.horizontal?Ar.a.WIDTH:Ar.a.HEIGHT,priority:e.relation.priority,multiplier:e.relation.multiplier}),e.relation.multiplier=void 0):e.relation.constant&&(e.constraints.push({view1:r,attr1:e.horizontal?Ar.a.WIDTH:Ar.a.HEIGHT,relation:Er.a.EQU,view2:null,attr2:Ar.a.CONST,priority:e.relation.priority,constant:e.relation.constant}),e.relation.constant=void 0);for(var n=0;n1?g[1]:""}else 0===l.indexOf("//"+b+":")&&(o[p]=l.substring(3+b.length))}if(o.viewport){var j=o.viewport,v=j["aspect-ratio"];v&&(v=v.split("/"),j["aspect-ratio"]=parseInt(v[0])/parseInt(v[1])),void 0!==j.height&&(j.height="intrinsic"===j.height||parseInt(j.height)),void 0!==j.width&&(j.width="intrinsic"===j.width||parseInt(j.width)),void 0!==j["max-height"]&&(j["max-height"]=parseInt(j["max-height"])),void 0!==j["max-width"]&&(j["max-width"]=parseInt(j["max-width"])),void 0!==j["min-height"]&&(j["min-height"]=parseInt(j["min-height"])),void 0!==j["min-width"]&&(j["min-width"]=parseInt(j["min-width"]))}if(o.widths)for(i in o.widths){var y="intrinsic"===o.widths[i]||parseInt(o.widths[i]);o.widths[i]=y,(void 0===y||isNaN(y))&&delete o.widths[i]}if(o.heights)for(i in o.heights){var w="intrinsic"===o.heights[i]||parseInt(o.heights[i]);o.heights[i]=w,(void 0===w||isNaN(w))&&delete o.heights[i]}if(o.spacing){var x=JSON.parse(o.spacing);if(o.spacing=x,Array.isArray(x)){for(var S=0,C=x.length;S=1&&o>d){var p=(c-s)*d,b=s-r.spanStart,h=r.spanEnd-c;if(0===b)n.push({id:l,spanStart:e,spanEnd:e+p});else if(0===h)n.push({id:l,spanStart:t-p,spanEnd:t});else{var f=(s-r.spanStart)/(r.spanEnd-c),g=(O=e+(i-p)/(f+1)*f)+p;n.push({id:l,spanStart:O,spanEnd:g})}}else if(o>=u){g=(O=(s-r.spanStart)*o+e)+(c-s)*o;n.push({id:l,spanStart:O,spanEnd:g})}else{var m=(c-s)*u;b=s-r.spanStart,h=r.spanEnd-c;if(0===b)n.push({id:l,spanStart:e,spanEnd:e+m});else if(0===h)n.push({id:l,spanStart:t-m,spanEnd:t});else{var O;f=(s-r.spanStart)/(r.spanEnd-c),g=(O=e+(i-m)/(f+1)*f)+m;n.push({id:l,spanStart:O,spanEnd:g})}}}))}return n},this.id="cell_"+e,this.members=t.slice(),this.leadingGapFixed=this.members[0].marginMode===Fr.LeadingFixed,this.trailingGapFixed=this.members[0].marginMode===Fr.TrailingFixed,this.rangeStart=Math.min.apply(Math,Object(E.map)(this.members,"rangeStart")),this.rangeEnd=Math.max.apply(Math,Object(E.map)(this.members,"rangeEnd")),this.spanStart=Math.min.apply(Math,Object(E.map)(this.members,"spanStart")),this.spanEnd=Math.max.apply(Math,Object(E.map)(this.members,"spanEnd")),this.minSpan=Math.max.apply(Math,Object(E.map)(this.members,(function(e){var t=e.spanStart;return(e.spanEnd-t)*e.minSpanRatio}))),this.minSpanRatio=this.span>0?this.minSpan/this.span:1,this.maxSpanRatio=this.calcMaxSpanRatio(),this.maxSpan=this.maxSpanRatio>=1?this.span*this.maxSpanRatio:null}return e.prototype.calcMaxSpanRatio=function(){if(Object(E.every)(this.members,(function(e){return e.maxSpanRatio>=1}))){var e=Object(E.map)(this.members,(function(e){return e.maxSpanRatio}));return Math.max.apply(Math,e)}return-1},Object.defineProperty(e.prototype,"span",{get:function(){return this.spanEnd-this.spanStart},enumerable:!1,configurable:!0}),e}(),Gr=function(){function e(e,t){var r=this;this.cells=[],this.cell=function(e){if(e0&&(j.fixed=o.cell(d-1).trailingGapFixed||b),j.fixed||0===j.span?c.push(j):s.push(j),a.push("["+j.name+"]["+p.id+"]"),l=m,0===O?r.push("["+p.id+"(==0)]"):(1===h&&1===f||u.push({cell:p,id:p.id}),r.push("["+p.id+"(>="+Math.max(Zr(f*O),.1)+")]"),h>=1&&r.push("["+p.id+"(<="+Math.max(Zr(h*O),.1)+")]"),r.push("["+p.id+"("+Zr(O)+"@99)]"))}var v={name:"gap_"+e+"_"+o.size,span:t-l,fixed:o.cell(o.size-1).trailingGapFixed};v.fixed?c.push(v):s.push(v),a.push("["+v.name+"]|"),Object(E.each)(c,(function(e){r.push("["+e.name+"("+Zr(e.span)+")]")})),Object(E.each)(s,(function(e,t){t&&r.push("["+e.name+"(=="+s[0].name+".width*"+Zr(e.span/s[0].span)+")]"),r.push("["+e.name+"("+Zr(e.span)+"@100)]")})),u.sort((function(e,t){return e.cell.minSpanRatio*e.cell.span-t.cell.minSpanRatio*t.cell.span})),Object(E.each)(u,(function(e,t){var n=e.cell,i=e.id;t&&r.push("["+i+"(=="+u[0].id+".width*"+Zr(n.span/u[0].cell.span)+")]")})),r.push(a.join(""))},a=0;a-1){n=!0;break}}while(r.length);return!n},isUsingTable:function(t){return e.refTable===t.id}}}})),ln=T.i.optional(T.i.refinement("Matrix2d",T.i.array(T.i.number),(function(e){return 6===e.length})),[1,0,0,1,0,0]),un=T.i.optional(T.i.refinement("MarginMode",T.i.number,(function(e){return 0===e||1===e||2===e})),2),dn=T.i.optional(T.i.refinement("MaxSpanRatio",T.i.number,(function(e){return e>=1||-1===e})),-1),pn=T.i.optional(T.i.refinement("MinSpanRatio",T.i.number,(function(e){return e>=0&&e<=1})),0),bn=T.i.optional(T.i.model("RotationAxis",{x:T.i.refinement(T.i.number,(function(e){return e>=0&&e<=1})),y:T.i.refinement(T.i.number,(function(e){return e>=0&&e<=1}))}),{x:.5,y:.5}),hn=function(e,t,r){Object(E.has)(t,r)&&!Object(E.has)(e,r)&&(e[r]=t[r])},fn=new Set(["x","y","width","height","rotate"]),gn=T.i.model("Transformable",{id:T.i.identifier,name:pe,locked:T.i.optional(T.i.boolean,!1),apsectRatioFreezed:T.i.optional(T.i.literal(!1),!1),aspectRatioLocked:T.i.optional(T.i.boolean,!1),hMarginMode:un,vMarginMode:un,maxWidthRatio:dn,minWidthRatio:pn,maxHeightRatio:dn,minHeightRatio:pn,rotationAxis:bn,transMat:ln,builtinProps:T.i.optional(T.i.frozen(),{}),initProps:T.i.optional(T.i.frozen(),{}),ownerGroup:T.i.maybeNull(T.i.reference(T.i.late((function(){return Cn})))),prev:T.i.maybeNull(T.i.reference(T.i.union(T.i.late((function(){return xn})),T.i.late((function(){return Cn}))))),next:T.i.maybeNull(T.i.reference(T.i.union(T.i.late((function(){return xn})),T.i.late((function(){return Cn}))))),bindings:T.i.optional(T.i.array(cn),[])}).preProcessSnapshot((function(e){var t=e.id||Object(Q.v4)(),r=e.builtinProps||{};return hn(r,e.initProps||{},"hidden"),hn(r,e.initProps||{},"vFlipped"),hn(r,e.initProps||{},"hFlipped"),hn(r,e.initProps||{},"background"),hn(r,e.initProps||{},"borderStyle"),hn(r,e.initProps||{},"borderWidth"),hn(r,e.initProps||{},"borderColor"),Object(a.__assign)(Object(a.__assign)({builtinProps:r},e),{id:t})})).extend((function(e){var t=_.observable.map({},{deep:!1}),r=_.observable.map({},{deep:!1}),n=_.observable.box(null,{deep:!1});return{views:{get ownerDashboard(){return Object(T.c)(e,2)},get propOverrideLevel(){return e.ownerDashboard.propOverrideLevel},get hasLayoutPropsBindings(){var t=e.bindings.reduce((function(e,t){return t.builtin&&e.add(tn(t.toProp)),e}),new Set),r=e.bindings.reduce((function(e,t){return t.builtin||e.add(tn(t.toProp)),e}),new Set);return nn(t,fn)||nn(r,e.mbrRelatedProps)},get isAspectRatioLocked(){return e.aspectRatioLocked},get rootGroup(){for(var t=e.ownerGroup;t&&t.ownerGroup;)t=t.ownerGroup;return t},get builtinPropSchemas(){return Object(a.__assign)({x:b.m,y:b.m,width:b.A,height:b.A,rotate:b.m,hidden:Object(b.I)(!1),vFlipped:Object(b.I)(!1),hFlipped:Object(b.I)(!1)},e.additionalBuiltinPropSchemas)},get additionalBuiltinPropSchemas(){return{}},get propSchemas(){return{}},isBuiltinProp:function(t){return Object(E.has)(e.builtinPropSchemas,tn(t))},getBuiltinPropSchema:function(t){return e.builtinPropSchemas[tn(t)]},hasProp:function(t){return Object(E.has)(e.propSchemas,tn(t))},getPropSchema:function(t){return e.propSchemas[tn(t)]},resolveProps:function(e,t){return e},resolveMbrProps:function(e,t){return{width:e.width,height:e.height}},get mbrRelatedProps(){return new Set(Object(E.keys)(e.resolveMbrProps(new W.a(0,0,10,10),e.getPropsBagAt(qr.DEFAULT))))},get builtinPropsBag(){return e.getBuiltinPropsBagAt(e.propOverrideLevel)},get propsBag(){return e.getPropsBagAt(e.propOverrideLevel)},get transform(){return e.getTransformAt(e.propOverrideLevel)},get globalTransMat(){return e.getGlobalTransMatAt(e.propOverrideLevel)},get globalInvertTransMat(){return e.getGlobalInvertTransMatAt(e.propOverrideLevel)},get rotateDeg(){return 0},get globalRotateDeg(){return Y(e.globalTransMat).rotateDeg+e.rotateDeg},get clientRotateDeg(){return Y(e.transform).rotateDeg},get mbr(){return e.getMbrAt(e.propOverrideLevel)},calcMbrAt:function(e,t){throw new Error("Unimplemented")},get clientMbr(){return e.getClientMbrAt(e.propOverrideLevel)},get clientRectifiedMbr(){return e.getClientRectifiedMbrAt(e.propOverrideLevel)},get globalMbr(){return e.getGlobalMbrAt(e.propOverrideLevel)},get globalRectifiedMbr(){return e.getGlobalRectifiedMbrAt(e.propOverrideLevel)},get globalMbrPosition(){return e.getGlobalMbrPositionAt(e.propOverrideLevel)},get globalCoordOrigin(){return e.getGlobalCoordOriginAt(e.propOverrideLevel)},getBuiltinPropsBagAt:function(r){var n=Object(E.mapValues)(e.builtinPropSchemas,"defaultValue"),i={x:e.getGlobalMbrPositionAt(r).x,y:e.getGlobalMbrPositionAt(r).y,width:e.getMbrAt(r).width,height:e.getMbrAt(r).height,rotate:e.getGlobalRotateDegAt(r)};switch(r){case qr.DEFAULT:return Object(a.__assign)({propsBag:n},i);case qr.INITED:return Object(E.each)(e.builtinProps,(function(e,t){n[t]=e})),Object(a.__assign)(Object(a.__assign)({},n),i);case qr.RUNTIME:return Object(E.each)(e.builtinProps,(function(e,t){n[t]=e})),t.forEach((function(e,t){n[t]=e})),Object(a.__assign)(Object(a.__assign)({},n),i)}},getPropsBagAt:function(t){var n=Object(E.mapValues)(e.propSchemas,"defaultValue");switch(t){case qr.DEFAULT:return n;case qr.INITED:return Object(E.each)(e.initProps,(function(e,t){n[t]=e})),n;case qr.RUNTIME:return Object(E.each)(e.initProps,(function(e,t){n[t]=e})),r.forEach((function(e,t){n[t]=e})),n}},getTransformAt:function(t){switch(t){case qr.INITED:return e.transMat.slice();case qr.RUNTIME:return n.get()?n.get().slice():e.transMat.slice();case qr.DEFAULT:return U.a.create()}},getInvertTransformAt:function(t){return Z(e.getTransformAt(t))},getGlobalTransMatAt:function(t){for(var r=U.a.create(),n=e;n;)U.a.multiply(r,n.getTransformAt(t),r),n=n.ownerGroup;return r},getGlobalInvertTransMatAt:function(t){return Z(e.getGlobalTransMatAt(t))},getGlobalRotateDegAt:function(t){return Y(e.getGlobalTransMatAt(t)).rotateDeg+e.rotateDeg},getClientRotateDegAt:function(t){return Y(e.getTransformAt(t)).rotateDeg},getMbrAt:function(t){return e.calcMbrAt(e.getPropsBagAt(t),t)},getClientMbrAt:function(t){return V(e.getMbrAt(t),e.getTransformAt(t))},getGlobalMbrAt:function(t){return V(e.mbr,e.getGlobalTransMatAt(t))},getClientRectifiedMbrAt:function(t){var r=e.getMbrAt(t),n=e.getClientRotateDegAt(t),i=H(r.center,e.getTransformAt(t));if(450&&(r.has(o)?n.push(i):r.add(o))}if(t){var a=Object(E.cloneDeep)(e);return a.pipelines=[],a.dataTables.forEach((function(e){if(e.ver=2,e.sourcer=e.pipeline[0],e.pipeline.length>1){var t=Object(Q.v4)();e.pipelineId=t;for(var r={id:t,name:e.name+"\u5904\u7406\u6d41\u7a0b",transformers:[]},n=1;n=0&&Number.isInteger(t)))throw new Error("non-negative int number is expected, got: "+t);if(!("number"==typeof r&&r>0&&Number.isInteger(r)))throw new Error("positive int number is expected, got: "+r);if(!(Object(E.isArray)(n)&&n.length>0))throw new Error("column settings array is expected, got: "+n);return!0},e.prototype.subscribe=function(e){var t=g.a.generate();return this.listeners.set(t,e),t},e.prototype.unsubscribe=function(e){this.listeners.has(e)&&this.listeners.delete(e)},e.prototype.clearAll=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){switch(e.label){case 0:return[4,this.stop()];case 1:return e.sent(),this.listeners.clear(),[2]}}))}))},Object.defineProperty(e.prototype,"idOfListeners",{get:function(){return this.listeners.keys()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"numberOfListeners",{get:function(){return this.listeners.size},enumerable:!1,configurable:!0}),e.prototype.registerToTaskExecutor=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){var e;return Object(a.__generator)(this,(function(t){switch(t.label){case 0:return[4,A({callerId:this.id,type:o.RegisterSimulationGenerator,payload:{id:this.id,config:{batchSize:this.batchSize,rules:this.rulesToWorkerRules(this.columnSettings)}}})];case 1:if(!(e=t.sent())||!e.payload||!e.payload.id||e.payload.id!==this.id)throw new Error("error when RegisterSimulationGenerator in dashboardTaskExecutor");return[2]}}))}))},e.prototype.execInTaskExecutor=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){var e,t,r=this;return Object(a.__generator)(this,(function(n){switch(n.label){case 0:return[4,A({callerId:this.id,type:o.ExecuteSimulationGenerator,payload:{id:this.id}})];case 1:if(!(e=n.sent())||!e.payload||!e.payload.tableData||e.payload.id!==this.id)throw new Error("error when ExecuteSimulationGenerator in dashboardTaskExecutor");return t=e.payload.tableData,this.listeners.forEach((function(e){return e(t)})),this.interval>0&&(this.timer=window.setTimeout((function(){return Object(a.__awaiter)(r,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){return this.execInTaskExecutor(),[2]}))}))}),1e3*this.interval)),[2]}}))}))},e.prototype.unregisterFromTaskExecutor=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){var e;return Object(a.__generator)(this,(function(t){switch(t.label){case 0:return[4,A({callerId:this.id,type:o.UnregisterSimulationGenerator,payload:{id:this.id}})];case 1:if(!(e=t.sent())||!e.payload||!e.payload.id||e.payload.id!==this.id)throw new Error("error when UNRegisterSimulationGenerator in dashboardTaskExecutor");return[2]}}))}))},e.prototype.start=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){switch(e.label){case 0:return[4,this.registerToTaskExecutor()];case 1:return e.sent(),[4,this.execInTaskExecutor()];case 2:return e.sent(),[2]}}))}))},e.prototype.stop=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){switch(e.label){case 0:return window.clearTimeout(this.timer),[4,this.unregisterFromTaskExecutor()];case 1:return e.sent(),[2]}}))}))},e.prototype.update=function(e){return Object(a.__awaiter)(this,void 0,void 0,(function(){var t,r,n;return Object(a.__generator)(this,(function(i){switch(i.label){case 0:return[4,this.stop()];case 1:return i.sent(),t=e.interval,r=e.batchSize,n=e.columnSettings,this.preconditionGuard(e),this.interval=t,this.batchSize=r,this.columnSettings=n,[2]}}))}))},e.prototype.pause=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){return window.clearTimeout(this.timer),[2]}))}))},e.prototype.resume=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){return this.execInTaskExecutor(),[2]}))}))},e.prototype.destroy=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){switch(e.label){case 0:return[4,this.clearAll()];case 1:return e.sent(),[2]}}))}))},e}(),kn=function(){function e(e){var t=this;this.table=e,this.sourcer=e.sourcer,this.simulationGenerator=new Pn(this.sourcerToPlainConfig()),this.simulationGenerator.subscribe((function(e){t.table.feedTableData({headers:t.sourcer.getSchema(),data:e})})),this.simulationGenerator.start(),this.feedDisposer=Object(_.autorun)((function(){return Object(a.__awaiter)(t,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){switch(e.label){case 0:return this.sourcer.isAppend,[4,this.simulationGenerator.update(this.sourcerToPlainConfig())];case 1:return e.sent(),[4,this.simulationGenerator.start()];case 2:return e.sent(),[2]}}))}))}));var r=!0;this.pauseDisposer=Object(_.autorun)((function(){var e=t.sourcer.isPaused;r?r=!1:e?t.simulationGenerator.pause():t.simulationGenerator.resume()}))}return e.prototype.sourcerToPlainConfig=function(){var e=this.sourcer,t=e.interval,r=e.batchSize,n=e.columnSettings;return{interval:t,batchSize:r,columnSettings:Object(_.isObservable)(n)?Object(_.toJS)(n):n.map((function(e){return Object(_.toJS)(e)}))}},e.prototype.destroy=function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){switch(e.label){case 0:return this.feedDisposer(),this.feedDisposer=null,this.pauseDisposer(),this.pauseDisposer=null,[4,this.simulationGenerator.destroy()];case 1:return e.sent(),this.simulationGenerator=null,[2]}}))}))},e}(),Bn=function(){function e(e){var t=this;this.table=e,this.feedDisposer=Object(_.autorun)((function(){t.table.feedTableData(t.table.sourcer.tableData)}),{delay:1})}return e.prototype.destroy=function(){this.feedDisposer()},e}(),Nn=function(e,t){switch(e.sourcer.type){case"tsdblivequery":return new z(e,t).init();case"dmsub":return new I(e,t).init();case"staticcsv":case"staticjson":return new P(e);case"simulation":return new kn(e);case"board":return new Bn(e)}},Dn=/^\/[0-9]+$/,Mn=function(e,t){var r=this;this.dataTableFeeders=new Map,this.pipelineChangeDisposers=new Map,this.buildDataTableFeederInner=function(e){r.dataTableFeeders.set(e.id,Nn(e,r.serviceConnMgr))},this.buildDataTablePipelineInner=function(e){return Object(a.__awaiter)(r,void 0,void 0,(function(){var t;return Object(a.__generator)(this,(function(r){switch(r.label){case 0:return[4,A({callerId:e.id,type:o.RegisterPipeline,payload:{id:e.id,pipeline:Object(E.map)(e.transformers,(function(e){return Object(T.d)(e)}))}})];case 1:return r.sent(),t=Object(_.reaction)((function(){return Object(E.map)(e.transformers,(function(e){return Object(T.d)(e)}))}),(function(t){A({callerId:e.id,type:o.UpdatePipeline,payload:{id:e.id,pipeline:t}})}),{name:"ReactToPipelineChange"}),this.pipelineChangeDisposers.set(e.id,t),[2]}}))}))},this.buildDataTableFeedersAndPipelines=function(){var e=[];r.dashboard.dataTables.forEach((function(t){"dmsub"!==t.sourcer.type?(r.buildDataTableFeederInner(t),r.buildDataTablePipelineInner(t)):e.push(t)}));var t,n=0,i=function(){for(t=0;t<5&&n\\]/i,qn=Object(b.H)("",{semChecker:function(e){return!e||Zn.test(e.trim())&&!Xn.test(e)}}),Kn=Object(b.k)(["line","shadow","cross"]),$n=Object(b.k)(["","default","k","M","G","T","P","E","none","qian","wan","yi","wanyi"]),Jn=Object(b.k)(["horizontal","vertical"]),Qn=Object(b.w)({seriesOpt:Object(b.e)(Object(b.d)([Object(b.w)({xCol:b.B,yCol:b.B,seriesName:qn}),Object(b.w)({type:Object(b.g)("grid"),xCol:b.B,yCol:b.B,seriesName:qn})])),dataTable:b.J},{semChecker:function(e){return function(e,t){return e.every((function(e){return function(e,t){return e.xCol",{regexp:"/^(?![sS])|image://?/i"}),ni=Object(b.k)(["circle","rect","roundRect","triangle","diamond","pin","arrow"]),ii=Object(b.k)(["line","bar","pie","scatter","map","gauge","lineBar","radar","bubble"]),oi=Object(b.H)("0",{regexp:/(^(\-|\+)?\d+(\.\d+)?$)/i.toString()}),ai=Object(b.k)(["auto","dataMin","dataMax"]),si=Object(b.C)(0),ci=Object(b.d)([si,ai,oi]),li=Object(b.c)({},(function(e){return Object.keys(e).every((function(t){return"boolean"==typeof e[t]}))})),ui=Object(b.d)([li,Object(b.e)(Object(b.H)(""))]),di={propsSchema:{color:ei(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),paddingBottom:Object(b.B)(60),paddingLeft:Object(b.B)(60),paddingRight:Object(b.B)(60),paddingTop:Object(b.B)(60),showTooltip:Object(b.I)(!0),tooltipConfine:Object(b.I)(!0),tooltipPadding:Object(b.B)(0),tooltipBorder:Object(b.y)("none"),tooltipBorderRadius:Object(b.B)(0),tooltipBackgroundColor:Object(b.j)("rgba(234, 246, 254, 0.9)"),tooltipTitleColor:Object(b.j)("#333"),tooltipContentColor:Object(b.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(b.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipTrigger:ti("axis"),tooltipAxisColor:Object(b.j)("#108CEE"),showDataZoomX:Object(b.I)(!0),showDataShadow:Object(b.I)(!1),dataZoomHeight:Object(b.E)(8),dataZoomBottom:Object(b.B)(20),dataZoomBorderColor:Object(b.j)("transparent"),dataZoomTextColor:Object(b.j)("transparent"),dataZoomBgColor:Object(b.j)("#EAF6FE"),dataZoomFillerColor:Object(b.j)("rgba(16, 140, 238, 0.5)"),dataZoomHandleIcon:ri("image://data:image/svg+xml;utf8,\n \n \n \n \n \n \n \n "),showLegend:Object(b.I)(!0),legendOrient:Jn("horizontal"),legendHorizontalAlign:Object(b.t)("right"),legendVerticalAlign:Object(b.N)("top"),legendPaddingBottom:Object(b.B)(0),legendPaddingLeft:Object(b.B)(20),legendPaddingRight:Object(b.B)(20),legendPaddingTop:Object(b.B)(20),legendFontStyle:Object(b.p)("normal"),legendFontWeight:Object(b.q)("normal"),legendFontFamily:Object(b.n)("sans-serif"),legendFontSize:Object(b.o)(12),legendItemWidth:Object(b.A)(12),legendItemHeight:Object(b.A)(12),legendSelected:ui([]),lockLegendAspectRatio:Object(b.I)(!0),legendItemGap:Object(b.B)(20),showXAxis:Object(b.I)(!0),showYAxis:Object(b.I)(!0),showXAxisLabel:Object(b.I)(!0),showYAxisLabel:Object(b.I)(!0),showSplitLineX:Object(b.I)(!0),showSplitLineY:Object(b.I)(!0),showXAxisTick:Object(b.I)(!0),showYAxisTick:Object(b.I)(!0),showXAxisLine:Object(b.I)(!0),showYAxisLine:Object(b.I)(!0),splitLineColor:Object(b.j)("rgba(203, 211, 224, 0.6)"),axisLineColor:Object(b.j)("#CBD3E0"),xAxisTextColor:Object(b.j)("#333"),xAxisFontStyle:Object(b.p)("normal"),xAxisFontWeight:Object(b.q)("normal"),xAxisFontFamily:Object(b.n)("sans-serif"),xAxisFontSize:Object(b.o)(12),yAxisTextColor:Object(b.j)("#333"),yAxisFontStyle:Object(b.p)("normal"),yAxisFontWeight:Object(b.q)("normal"),yAxisFontFamily:Object(b.n)("sans-serif"),yAxisFontSize:Object(b.o)(12),axisUnit:$n(""),axisPointerType:Kn("shadow"),axisPointerShadowColor:Object(b.j)("rgba(16, 140, 238, 0.1)"),legendIcon:ni("rect"),stackEnable:Object(b.I)(!1),showBarLabel:Object(b.I)(!1),seriesType:ii("bar"),seriesMap:Qn({seriesOpt:[{xCol:0,yCol:1,seriesName:"\u6e29\u5ea6"},{xCol:0,yCol:2,seriesName:"\u7a7a\u6c14\u8d28\u91cf"}],dataTable:{headers:[{name:"\u57ce\u5e02",type:"string"},{name:"\u6e29\u5ea6",type:"number"},{name:"\u7a7a\u6c14\u8d28\u91cf",type:"number"}],data:[["\u5317\u4eac",33,25],["\u4e0a\u6d77",35,38],["\u5e7f\u5dde",26,25]]}}),customizedSeries:Object(b.e)(Object(b.w)({seriesName:qn,color:b.r,type:Object(b.g)("bar"),barWidth:b.E},{defVal:{seriesName:"",color:"#108cee",type:"bar",barWidth:16}})),barWidth:Object(b.E)(16),width:Object(b.A)(300),height:Object(b.A)(200),dumb:Object(b.I)(!1),min:ci("auto"),max:ci("auto")},eventsSchema:{currentLegendSelected:ui}},pi={bindingSheet:[{type:"CollapsableGroup",headerTextKey:"\u56fe\u8868\u7ed1\u5b9a",items:[{type:"Row",labelKey:"\u5e8f\u5217",path:"/seriesMap",binder:{type:"dataseries",seriesCfg:[{key:"xCol",labelKey:"X\u8f74"},{key:"yCol",labelKey:"Y\u8f74",multiple:!0}],wrapUpCode:"\n ({\n dataTable: tableData,\n seriesOpt: series.yCol.map(function(y, i) {\n var seriesName = (0 <= i && i < tableData.headers.length) ? tableData.headers[i].name : undefined;\n var opt = {yCol: y, seriesName: seriesName};\n Object.keys(series).forEach(function (key) {\n if (key === 'yCol') {\n return;\n }\n opt[key] = series[key];\n });\n return opt;\n })\n });\n "}}]}],propsSheet:[{type:"CollapsableGroup",headerTextKey:"",items:[{type:"Row",labelKey:"\u540d\u79f0",items:[{path:"/name",type:"textInput"}]},{type:"Row",items:[{path:"/x",type:"numberInput",cfg:{precision:1,unit:"px",label:"X"}},{path:"/y",type:"numberInput",cfg:{precision:1,unit:"px",label:"Y"}}]},{type:"Row",items:[{path:"/width",type:"numberInput",cfg:{min:0,precision:1,unit:"px",label:"\u5bbd"}},{path:"/aspectRatioLock",type:"lockBtn"},{path:"/height",type:"numberInput",cfg:{min:0,precision:1,unit:"px",label:"\u9ad8"}}]},{type:"Row",labelKey:"\u65cb\u8f6c\u8f74",items:[{path:"/rotateAxis",type:"select",desiredWidth:65,cfg:{options:[{value:"tl",label:"\u5de6\u4e0a"},{value:"tm",label:"\u4e0a\u4e2d"},{value:"tr",label:"\u53f3\u4e0a"},{value:"c",label:"\u6b63\u4e2d"},{value:"rm",label:"\u53f3\u4e2d"},{value:"br",label:"\u53f3\u4e0b"},{value:"bm",label:"\u4e0b\u4e2d"},{value:"bl",label:"\u5de6\u4e0b"},{value:"lm",label:"\u5de6\u4e2d"}]}},{path:"/rotate",type:"numberInput",desiredWidth:98,cfg:{min:0,precision:1,unit:"\xb0",label:"\u89d2\u5ea6"}}]},{type:"Row",labelKey:"",items:[{path:"/hidden",type:"hiddenBtn"},{path:"/locked",type:"lockedBtn"}]}]}],themedProps:{color:10,tooltipBackgroundColor:{key:"lightaccent",opacity:.9},tooltipTitleColor:"darkshades",tooltipContentColor:{key:"darkshades",opacity:.9},xAxisTextColor:"darkshades",yAxisTextColor:"darkshades",splitLineColor:{key:"lightaccent",opacity:.6},axisLineColor:"darkaccent",dataZoomBgColor:"lightaccent",dataZoomFillerColor:{key:"primary",opacity:.5},axisPointerShadowColor:{key:"primary",opacity:.1}}},bi={static:"//gz.bcebos.com/v1/iotviz/widget-depot/bar-chart-widget/1.1/staticRenderer.js"},hi={id:"bar-chart",version:"1.1",creatorId:"developer",nameKey:"\u67f1\u56fe\u56fe",categoryId:"chart",sectionId:"bar",iconUrl:"barbar.png"},fi=function(e,t){return e\\]/i)))}}),latCol:b.x,lngCol:b.z,groupByCols:Object(b.e)(b.B),displayCols:Object(b.e)(b.B),vizType:Object(b.k)(["track","marker",null]),tableData:b.J},{semChecker:function(e){var t=e.latCol,r=e.lngCol,n=e.groupByCols,i=e.tableData,o=i.headers,a=i.headers.length;return a>0&&fi(t,a)&&fi(r,a)&&o[t].type===b.a.Number&&o[r].type===b.a.Number&&(n||[]).every((function(e){return fi(e,a)}))||0===a}}),mi=Object(b.w)({lat:Object(b.C)(0,{max:90,min:-90}),lng:Object(b.C)(0,{max:180,min:-180})}),Oi={propsSchema:{ak:Object(b.K)("HyHLo6qWIgbBWvozBRxt7lCKuu2AADWD"),autoCenter:Object(b.I)(!0),center:mi({lng:121.476336,lat:31.236375}),dumb:Object(b.I)(!1),height:Object(b.A)(400),mapStyle:Object(b.K)("normal"),series:gi({name:"\u8f66\u8f86",latCol:1,lngCol:2,groupByCols:[],displayCols:[1,2],vizType:"marker",tableData:{headers:[{name:"timestamp",type:"date"},{name:"latitude",type:"number"},{name:"longitude",type:"number"}],data:[[1522937078e3,31.240996978719,121.57874440327],[1522937078e3,31.271645130971,121.48660161389],[1522937078e3,31.166585790601,121.405366589],[1522937077e3,31.166516344183,121.40539650257],[1522937076e3,31.166516344183,121.40539650257],[1522937075e3,31.24078618039,121.57882471179],[152293678e4,31.181443360772,121.49435758367]]}}),showCityPicker:Object(b.I)(!1),width:Object(b.A)(500),zoom:Object(b.E)(13),name:Object(b.K)("\u8bbe\u5907\u5730\u56fe"),vizType:Object(b.k)(["track","marker",null],"marker")},eventsSchema:{currentZoom:b.E,currentCenter:mi,currentClicked:Object(b.c)({})}},ji={bindingSheet:[{type:"CollapsableGroup",headerTextKey:"\u5c5e\u6027\u7ed1\u5b9a",items:[{type:"Row",labelKey:"\u6570\u636e",path:"/series",binder:{type:"dataseries",seriesCfg:[{key:"latCol",labelKey:"\u7eac\u5ea6"},{key:"lngCol",labelKey:"\u7ecf\u5ea6"},{key:"groupByCols",labelKey:"\u5206\u7ec4",multiple:!0,optional:!0},{key:"displayCols",labelKey:"\u4fe1\u606f",multiple:!0,optional:!0}],wrapUpCode:"\n {\n name: '',\n vizType: null,\n tableData: tableData,\n latCol: series.latCol,\n lngCol: series.lngCol,\n groupByCols: series.groupByCols,\n displayCols: series.displayCols\n };\n "}}]}],propSheet:[{type:"CollapsableGroup",headerTextKey:"\u663e\u793a",items:[{type:"Row",labelKey:"\u7f29\u653e",items:[{path:"/zoom",type:"numberInput",cfg:{min:1,max:20}}]},{type:"Row",labelKey:"\u57ce\u5e02\u5217\u8868",items:[{path:"/showCityPicker",type:"switch"}]},{type:"Row",labelKey:"\u81ea\u52a8\u5c45\u4e2d",items:[{path:"/autoCenter",type:"switch"}]},{type:"Row",labelKey:"\u6807\u9898",items:[{path:"/name",type:"textInput"}]},{type:"Row",labelKey:"\u7c7b\u578b",items:[{path:"/vizType",type:"select",cfg:{options:[{value:"marker",label:"\u4f4d\u6807"},{value:"track",label:"\u8f68\u8ff9"}]}}]}]}],themedProps:function(e){switch(e.name){case"dark":return{mapStyle:"dark"};case"fluo":return{mapStyle:"bluenight"};case"light":default:return{mapStyle:"normal"}}}},vi={static:"//gz.bcebos.com/v1/iotviz/widget-depot/basic-map-widget/1.0/staticRenderer.js"},yi={id:"basic-map",version:"1.0",creatorId:"developer",nameKey:"\u8857\u56fe\u56fe",categoryId:"map",sectionId:"map",iconUrl:"mapmap.png"},wi=[n,i];function xi(e,t){return wi.find((function(r){var n=r.index;return n.id===e&&n.version===t}))}var Si=function(e,t){return Object(a.__awaiter)(void 0,void 0,void 0,(function(){var r;return Object(a.__generator)(this,(function(n){return[2,(r=xi(e,t))?r.designerMeta:null]}))}))},Ci=function(e,t){return Object(a.__awaiter)(void 0,void 0,void 0,(function(){var r;return Object(a.__generator)(this,(function(n){return[2,(r=xi(e,t))?r.implementations:null]}))}))},Ai=r(523),Ei=r.n(Ai);function _i(e){var t=Object(s.useState)(Object(Q.v4)())[0],r=Object(s.useState)(null),n=r[0],i=r[1],o=Object(s.useCallback)((function(){var r=function(e,t){var r=function(){var e={};function t(t,r){if(e[t]){var n=e[t].indexOf(r);-1!==n&&e[t].splice(n,1)}}return{on:function(r,n){return e[r]||(e[r]=[]),-1===e[r].indexOf(n)&&e[r].push(n),function(){return t(r,n)}},off:t,offType:function(t){e[t]=[]},fire:function(t){for(var r=[],n=1;n=c/o)switch(a){case"fill":n({width:"100%",height:"100%"});break;case"cover":n({width:"auto",height:"100%"});break;case"contain":n({width:"100%",height:"auto"})}else switch(a){case"fill":n({width:"100%",height:"100%"});break;case"cover":n({width:"100%",height:"auto"});break;case"contain":n({width:"auto",height:"100%"})}};var f;switch(i.state){case Ni.DASHBOARD_READY_TO_RENDER:var g=function(){if("responsive"===i.dashboardFillMode)return{width:"100%",height:"100%"};var e=i.scale,t=e.scaleX,r=e.scaleY,n=i.dashboardModel;return{width:n.getCanvasSetting("width")*t+"px",height:n.getCanvasSetting("height")*r+"px"}}(),m=g.width,O=g.height;return c.a.createElement(d.a,{style:{position:"relative",width:"100%",height:"100%",overflow:"auto"}},c.a.createElement(d.b,{onResize:function(e,t){i.onContainerSized(e,t)}},c.a.createElement("div",{style:{position:"relative",width:""+m,height:""+O}},function(){var e=i.dashboardUI,t=i.dashboardModel,n=i.scale,s=n.scaleX,l=n.scaleY,u=t.getCanvasSetting("width"),d=t.getCanvasSetting("height"),h=t.getCanvasSetting("backgroundColor"),f=t.getCanvasSetting("backgroundImage"),g=/\.svg/i.test(f);return c.a.createElement("div",{style:{position:"relative",width:u+"px",height:d+"px",background:Object(b.F)(h),overflow:"hidden",transformOrigin:"0 0",transform:"scale("+s+", "+l+")"}},!!f&&!g&&c.a.createElement("img",{id:"canvasBackgroundImage",src:p.AssetUtils.toUserUploadedImageUrl(f),style:Object(a.__assign)({position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"},r),ref:o}),e)}(),!i.enableCustomizeLogo&&c.a.createElement(h,{containerWidth:i.containerWidth,containerHeight:i.containerHeight}))));case Ni.UNAUTHENTICATED:return c.a.createElement(zi,{enableCustomizeLoading:i.enableCustomizeLogo,imageURL:i.loadingImg,message:"Unauthenticated. Please check your token."});case Ni.FATAL_ERROR:return c.a.createElement(zi,{enableCustomizeLoading:i.enableCustomizeLogo,imageURL:i.loadingImg,message:"Fatal Error: "+(f=i.errors,(f.length&&f[0].message||"Unknown Error")+".")});default:return c.a.createElement(zi,{enableCustomizeLoading:i.enableCustomizeLogo,imageURL:i.loadingImg,message:Ui(i,"Loading Dashboard ...")})}}));function Ui(e,t){return e.enableCustomizeLogo&&e.loadingMsg||t}var Hi=r(239),Vi=r(961);var Gi,Yi,Zi,Xi=!1,qi=(Vi.create({tag:"iotviz-player",url:p.AppConfig.playerURL,dimensions:{width:"100%",height:"100%"},domain:/.*/,defaultLogLevel:"debug",prerenderTemplate:function(e){var t=e.document.createElement("html"),r="Loading Player ...",n=Hi.renderToStaticMarkup(s.createElement(zi,{enableCustomizeLoading:Xi,imageURL:Gi,message:Xi&&Yi||r}));return t.innerHTML=''+n,t},containerTemplate:function(e){var t=e.id,r=e.tag,n=e.context,i=e.CLASS,o=e.outlet,a=e.jsxDom,s=e.dimensions,c=s.width,l=s.height;return a("div",{id:t,class:i.ZOID+" "+i.ZOID+"-tag-"+r+" "+i.ZOID+"-context-"+n},a("style",null,"\n #"+t+", #"+t+" > ."+i.OUTLET+" {\n width: "+c+";\n height: "+l+";\n }\n #"+t+" > ."+i.OUTLET+" {\n display: block;\n position: relative;\n }\n #"+t+" > ."+i.OUTLET+" > iframe {\n height: 100%;\n width: 100%;\n position: absolute;\n top: 0;\n left: 0;\n transition: opacity .2s ease-in-out;\n }\n #"+t+" > ."+i.OUTLET+" > iframe."+i.VISIBLE+" {\n opacity: 1;\n }\n #"+t+" > ."+i.OUTLET+" > iframe."+i.INVISIBLE+" {\n opacity: 0;\n }\n "),o)},attributes:{iframe:{title:"",src:(Zi=navigator&&navigator.userAgent||"",/(iPhone|iPad|iPod|iOS)/i.test(Zi)&&/(MicroMessenger)/i.test(Zi)?"/_.foolwechat":""),allowfullscreen:!0}},props:{uid:{type:"string",def:function(){return p.AppConfig.buildId},queryParam:!1},isOffline:{type:"boolean",required:!1,default:function(){return!1}},dashboardId:{type:"string",required:!0},dashboardName:{type:"string",required:!1},dashboardSpec:{type:"string",required:!1},dashboardSign:{type:"string",required:!1},loadingDraft:{type:"boolean",required:!0},token:{type:"object",required:!0},fillMode:{type:"string",required:!0},enableCustomizeLogo:{type:"boolean",required:!1},loadingImg:{type:"string",required:!1},loadingMsg:{type:"string",required:!1},onload:{type:"function",required:!0},getDashboardConfigRealAPI:{type:"function",required:!0},updateDataTablesConfigsRealAPI:{type:"function",required:!0},getWidgetPropRealAPI:{type:"function",required:!0},setWidgetsPropsRealAPI:{type:"function",required:!0},onWidgetEventRealAPI:{type:"function",required:!0},unWidgetEventRealAPI:{type:"function",required:!0},onWidgetDOMEventRealAPI:{type:"function",required:!0},pauseDataTableSourcerRealAPI:{type:"function",required:!0},resumeDataTableSourcerRealAPI:{type:"function",required:!0},isDataTableSourcerPausedRealAPI:{type:"function",required:!0}}}),window.xprops),Ki=qi.dashboardId,$i=qi.dashboardName,Ji=qi.dashboardSpec,Qi=qi.isOffline,eo=qi.token,to=qi.loadingDraft,ro=qi.fillMode,no=qi.enableCustomizeLogo,io=qi.loadingImg,oo=qi.loadingMsg,ao=qi.onload,so=qi.getDashboardConfigRealAPI,co=qi.updateDataTablesConfigsRealAPI,lo=qi.onWidgetDOMEventRealAPI,uo=qi.getWidgetPropRealAPI,po=qi.setWidgetsPropsRealAPI,bo=qi.onWidgetEventRealAPI,ho=qi.unWidgetEventRealAPI,fo=qi.pauseDataTableSourcerRealAPI,go=qi.resumeDataTableSourcerRealAPI,mo=qi.isDataTableSourcerPausedRealAPI,Oo=new Li({dashboardId:Ki,dashboardName:$i,dashboardSpec:Ji,isOffline:Qi,token:eo,loadingDraft:to,enableCustomizeLogo:no,loadingImg:io,loadingMsg:oo,onload:function(){return Object(a.__awaiter)(this,void 0,void 0,(function(){return Object(a.__generator)(this,(function(e){switch(e.label){case 0:return[4,so((function(){return Oo.dashboardConfig}))];case 1:return e.sent(),[4,co(Oo.updateDataTablesConfigs)];case 2:return e.sent(),[4,uo(Oo.getWidgetProp)];case 3:return e.sent(),[4,po(Oo.setWidgetsProps)];case 4:return e.sent(),[4,bo(Oo.onWidgetEvent)];case 5:return e.sent(),[4,ho(Oo.unWidgetEvent)];case 6:return e.sent(),[4,lo(Oo.onWidgetDOMEvent)];case 7:return e.sent(),[4,fo(Oo.pauseDataTableSourcer)];case 8:return e.sent(),[4,go(Oo.resumeDataTableSourcer)];case 9:return e.sent(),[4,mo(Oo.isDataTableSourcerPaused)];case 10:return e.sent(),[4,ao()];case 11:return e.sent(),[2]}}))}))},fillMode:ro});l.render(s.createElement((function(e){var t=e.store;return Object(s.useEffect)((function(){return t.init(),function(){return t.destroy()}}),[]),c.a.createElement(u.b,{playerStore:t},c.a.createElement(Wi,null))}),{store:Oo}),document.getElementById("playerroot"))},1934:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return w}));var n,i=r(2),o=r(13),a=r(3),s=function(e,t){return e0&&s(t,l)&&s(r,l)&&c[t].type===i.a.Number&&c[r].type===i.a.Number&&Object(a.every)(n,(function(e){return s(e,l)}))||0===l}}),l=r(4),u=r(68),d=r(51),p=r(0),b=r(62);!function(e){e.Track="track",e.Marker="marker"}(n||(n={}));var h=function(e,t,r,n,i){var o,s,c,l,u=null===(o=null==r?void 0:r.series)||void 0===o?void 0:o.displays;if((null==i?void 0:i.isCustomWindow)&&1===(null==u?void 0:u.length)&&"iframeUrl"===(null==u?void 0:u[0])){l='\n
\n \n
\n';var d=null===(c=null===(s=window)||void 0===s?void 0:s.BMapLib)||void 0===c?void 0:c.InfoBox;return n&&d?new d(n,l,{boxStyle:{width:i.windowWidth+"px",height:i.windowHeight+"px"},closeIconUrl:"https://iotviz2.cdn.bcebos.com/static/image/iw_close.gif",closeIconMargin:"10px",enableAutoPan:!0,align:"INFOBOX_AT_TOP"}):new BMap.InfoWindow(l)}l=function(e){return'\n\n '+Object(a.map)(e,(function(e){return"\n\n \n \n"})).join("\n")+"\n
"+e.name+':'+e.value+"
\n"}(function(e,t){return Object(a.map)(t.series.displays,(function(t){return{name:t,value:e.raw[t]}}))}(t,r));var p={width:0,height:0,title:'
'+e+"
"};return new BMap.InfoWindow(l,p)};function f(e,t,r,n){var i=e.values.map((function(e){var t=e.lat,r=e.lng;return new BMap.Point(r,t)})),o=new BMap.Polyline(i,{strokeColor:r});return o.addEventListener("click",(function(r){var a=function(e,t){var r=e.lat,n=e.lng,i=Number.MAX_VALUE;return t.reduce((function(e,t,o){var a=Math.pow(t.lat-r,2)+Math.pow(t.lng-n,2);return a32503564800?Math.floor(e/1e3):e}var m=function(e){return function(t){if(t){if(Object(h.isArray)(t))return Object(h.map)(t,m(e));if(Object(h.isObject)(t)){var r=Object(h.toPairs)(t).map((function(t){var r=t[0],n=t[1];return[e(r),m(e)(n)]}));return Object(h.fromPairs)(r)}return t}return t}},O=m(h.camelCase),j=m(h.snakeCase),v=r(509),y=r.n(v);function w(e,t){var r=function e(t,r,n,i,o){if(void 0===i&&(i=0),void 0===o&&(o=r.length-1),o-i>1){var a=Math.floor((o-i)/2)+i,s=n(t,r[a]);return 0===s?a:s>0?e(t,r,n,a,o):e(t,r,n,i,a)}return n(t,r[i])<=0?i:n(t,r[o])>=0?o:[i,o]}(e,t,(function(e,t){return e.loc_time-t.loc_time}));if(Object(h.isArray)(r)){var n=r[0],i=r[1],o=Math.abs(e.loc_time-t[n].loc_time);return Math.abs(e.loc_time-t[i].loc_time)>o?n:i}return r}function x(e,t,r){if(!t||!t.length)return[];if(!e||!e.length)return[{points:t}];var n=Object(h.map)(e,(function(e){var n=e.speeding_points,i=n[0],o=n[1];return{points:t.slice(w(i,t),w(o,t)),showSpeed:!1,showDirection:!1,lineColor:r}}));return Object(u.__spreadArrays)([{points:t}],n)}var S=function(e){function t(t){var r=e.call(this,t)||this;return r.needRefresh=function(e){var t=r.props,n=t.vehicleId,i=t.startTime,o=t.endTime;return n!==e.vehicleId||i!==e.startTime||o!==e.endTime},r.needRefreshProcess=function(e){var t=r.props,n=t.needProcess,i=t.needDenoise,o=t.needVacuate,a=t.needMapMatch,s=t.radiusThreshold,c=t.transportMode,l=t.points;return r.needRefresh(e)||n!==e.needProcess&&e.needProcess||i!==e.needDenoise||o!==e.needVacuate||a!==e.needMapMatch||s!==e.radiusThreshold||c!==e.transportMode||l!==e.points},r.needRefreshDrivingBehavior=function(e){var t=r.props,n=(t.needProcess,t.needMapMatch),i=t.transportMode,o=t.needDrivingBehavior,a=t.showSpeeding,s=t.speedingThreshold,c=t.showHarshAcceleration,l=t.harshAccelerationThreshold,u=t.showHarshBreaking,d=t.harshBreakingThreshold,p=t.showHarshSteering,b=t.harshSteeringThreshold,h=t.drivingBehavior;return r.needRefresh(e)||o!==e.needDrivingBehavior||a!==e.showSpeeding||c!==e.showHarshAcceleration||u!==e.showHarshBreaking||p!==e.showHarshSteering||s!==e.speedingThreshold||l!==e.harshAccelerationThreshold||d!==e.harshBreakingThreshold||b!==e.harshSteeringThreshold||n!==e.needMapMatch||i!==e.transportMode||h!==e.drivingBehavior},r.request=function(e){return Object(u.__awaiter)(r,void 0,void 0,(function(){var t;return Object(u.__generator)(this,(function(r){switch(r.label){case 0:return e=O(e),[4,this.serviceConnMgr.sendRequest("telematics",e)];case 1:return t=r.sent(),[2,j(t)]}}))}))},r.loadPoints=function(e){return Object(u.__awaiter)(r,void 0,void 0,(function(){var t,r,n,i,o,a,s,c,l,d,p;return Object(u.__generator)(this,(function(b){switch(b.label){case 0:return t=e.vehicleId,r=e.startTime,n=e.endTime,i=e.needProcess,o=e.needDenoise,a=e.needVacuate,s=e.needMapMatch,c=e.radiusThreshold,l=e.transportMode,e.loadstart,e.loadend,(d=e.points)?(d.length?this.setState({points:d,speedingTracks:x([],d,e.speedingColor)}):this.setState({points:[],speedingTracks:[]}),[2]):r&&n&&t?(this.setState({selected:-1}),[4,this.request((h={vehicle_id:t,start_time:r,end_time:n,process_option:i?{need_denoise:o,need_vacuate:a,need_mapmatch:s,radius_threshold:c,transport_mode:l}:void 0},m=h.start_time,O=h.end_time,j=h.process_option,Object(u.__assign)(Object(u.__assign)({type:"gettrack"},h),{start_time:g(m),end_time:g(O),is_processed:j?1:0,process_option:f(j)})))]):[3,2];case 1:if(p=b.sent().points,this.props.points&&this.props.points.length)return[2];this.setState({speedingTracks:x(this.state.drivingBehavior.speeding,p,this.props.speedingColor),points:p}),b.label=2;case 2:return[2]}var h,m,O,j}))}))},r.loadDrivingBehaviour=function(e){return Object(u.__awaiter)(r,void 0,void 0,(function(){var t,r,n,i,o,a,s,c,l,d,p,b,h,m,O;return Object(u.__generator)(this,(function(j){switch(j.label){case 0:return e.needDrivingBehavior?(t=e.vehicleId,r=e.startTime,n=e.endTime,i=e.showSpeeding,o=e.speedingThreshold,a=e.showHarshAcceleration,s=e.harshAccelerationThreshold,c=e.showHarshBreaking,l=e.harshBreakingThreshold,d=e.showHarshSteering,p=e.harshSteeringThreshold,b=e.needProcess,h=e.needMapMatch,m=e.transportMode,e.loadstart,e.loadend,e.drivingBehavior?(this.setState((function(t){return{drivingBehavior:e.drivingBehavior,speedingTracks:x(e.drivingBehavior.speeding,t.points,e.speedingColor)}})),[2]):r&&n&&t?[4,this.request((v={vehicle_id:t,start_time:r,end_time:n,speeding_threshold:o,harsh_acceleration_threshold:s,harsh_breaking_threshold:l,harsh_steering_threshold:p,process_option:b?{need_mapmatch:h,transport_mode:m}:void 0},Object(u.__assign)(Object(u.__assign)({type:"getdrivingbehavior"},v),{start_time:g(v.start_time),end_time:g(v.end_time),process_option:f(v.process_option)})))]:[2]):(this.setState({drivingBehavior:{speeding:[],harsh_acceleration:[],harsh_breaking:[],harsh_steering:[]},speedingTracks:x([],this.state.points,this.props.speedingColor)}),[2]);case 1:return O=j.sent(),!this.props.needDrivingBehavior||this.props.drivingBehavior?[2]:(i||(O.speeding=[]),a||(O.harsh_acceleration=[]),c||(O.harsh_breaking=[]),d||(O.harsh_steering=[]),this.state.points&&this.state.points.length?this.setState({drivingBehavior:O,speedingTracks:x(O.speeding,this.state.points,this.props.speedingColor)}):this.setState({drivingBehavior:O}),[2])}var v}))}))},r.loadPointInfo=function(e){return Object(u.__awaiter)(r,void 0,void 0,(function(){var t,r,n,i,o;return Object(u.__generator)(this,(function(a){switch(a.label){case 0:return t=this.props,t.vehicleId,t.startTime,t.loadstart,t.loadend,[4,this.lookupAddress(e)];case 1:return r=a.sent(),n=e.latitude,i=e.longitude,o=e.loc_time,this.setState({content:[{key:"\u5750\u6807",value:i+", "+n},{key:"\u4f4d\u7f6e",value:r},{key:"\u65f6\u95f4",value:y()(new Date(1e3*o),"YYYY-MM-DD HH:mm:ss")}]}),[2]}}))}))},r.lookupAddress=function(e){return Object(u.__awaiter)(r,void 0,void 0,(function(){var t;return Object(u.__generator)(this,(function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,Object(p.j)(this.props.ak,{lat:e.latitude,lng:e.longitude})];case 1:return[2,r.sent().formatted_address];case 2:return t=r.sent(),console.error("fail to lookup real address",t),[2,"\u65e0\u6cd5\u83b7\u5f97\u5730\u5740"];case 3:return[2]}}))}))},r.handlePlay=function(e){return r.setState({playing:e})},r.handleTrackClick=function(e){var t=r.state.points.indexOf(e);r.setState({selected:t,content:void 0}),r.loadPointInfo(e)},r.handleClosePopInfo=function(){return r.setState({selected:-1})},r.renderPopInfo=function(){var e=r.state,t=e.content,n=(e.points,e.selected),i=r.state.points[n],o=i.longitude,a=i.latitude;return d.createElement(p.f,{pin:!0,longitude:o,latitude:a,title:d.createElement("div",{style:{fontWeight:900,textAlign:"center"}},r.props.vehicleId),content:t,busy:!t,onClose:r.handleClosePopInfo})},r.imgSrc=function(e){return e?r.props.assetUtils.toUserUploadedImageUrl(e):null},r.serviceConnMgr=t.serviceConnMgr,r.state={points:[],selected:-1,drivingBehavior:{speeding:[],harsh_acceleration:[],harsh_breaking:[],harsh_steering:[]}},r}return Object(u.__extends)(t,e),t.prototype.UNSAFE_componentWillReceiveProps=function(e,t){return Object(u.__awaiter)(this,void 0,void 0,(function(){var t,r,n,i;return Object(u.__generator)(this,(function(o){switch(o.label){case 0:return this.props.playState!==e.playState&&"stop"===e.playState&&this.setState({playing:void 0}),t=[],this.needRefreshProcess(e)&&t.push(this.loadPoints(e)),this.needRefreshDrivingBehavior(e)&&t.push(this.loadDrivingBehaviour(e)),t.length?(e.loadstart&&e.loadstart({type:"loadstart"}),[4,Promise.all(t)]):[3,2];case 1:o.sent(),e.loadend&&e.loadend({type:"loadend"}),o.label=2;case 2:return this.props.speedingColor!==e.speedingColor&&(r=this.state,n=r.drivingBehavior.speeding,i=r.points,this.setState({speedingTracks:x(n,i,e.speedingColor)})),[2]}}))}))},t.prototype.componentDidMount=function(){return Object(u.__awaiter)(this,void 0,void 0,(function(){return Object(u.__generator)(this,(function(e){switch(e.label){case 0:return this.props.loadstart&&this.props.loadstart({type:"loadend"}),[4,Promise.all([this.loadPoints(this.props),this.loadDrivingBehaviour(this.props)])];case 1:return e.sent(),this.props.loadend&&this.props.loadend({type:"loadend"}),[2]}}))}))},t.prototype.render=function(){var e=this.props,t=e.ak,r=e.center,n=e.zoom,i=e.mapStyle,o=e.dragging,a=e.scrollWheelZoom,s=e.doubleClickZoom,c=e.showLegend,l=e.showPlayer,b=e.startTime,h=e.endTime,f=e.playSpeed,g=e.playState,m=e.indicatorIcon,O=e.hideTrackDirection,j=e.hideTrackSpeed,v=e.trackColor,y=e.trackWidth,w=e.speedingIcon,x=e.harshAccelerationIcon,S=e.harshBreakingIcon,C=e.harshSteeringIcon,A=e.playerPosition,E=e.currentZoom,_=e.playstatechange,T=(e.assetUtils,this.state),R=T.playing,I=T.points,P=T.selected,k=T.drivingBehavior,B=T.speedingTracks,N=void 0===B?[]:B,D={ak:t,center:r,zoom:n,mapStyle:i,dragging:o,scrollWheelZoom:a,doubleClickZoom:s,onZoom:E};return N.length&&delete D.center,d.createElement(p.c,Object(u.__assign)({className:"iotviz-widget-map",ak:t},D),d.createElement(p.i,{showDirection:!O,showSpeed:!j,lineColor:v,lineWidth:y,points:N,onClick:this.handleTrackClick}),d.createElement(p.b,{speedingTracks:N.slice(1),speedingIcon:this.imgSrc(w),harshAccelerationIcon:this.imgSrc(x),harshAccelerationPoints:k.harsh_acceleration,harshBreakingIcon:this.imgSrc(S),harshBreakingPoints:k.harsh_breaking,harshSteeringIcon:this.imgSrc(C),harshSteeringPoints:k.harsh_steering}),R&&d.createElement(p.a,{longitude:R.longitude,latitude:R.latitude,direction:R.direction,image:this.imgSrc(m)}),-1!==P&&this.renderPopInfo(),c&&d.createElement(p.g,{y:l?110:70}),d.createElement(p.e,{offset:{x:27,y:l?60:20}}),d.createElement(p.h,{breakon:300,speed:f,points:I,offset:{x:20,y:20},fromTime:new Date(b),toTime:new Date(h),onProgress:this.handlePlay,onPlayStateChange:_,showPlayer:l,playState:g,position:A}))},t.displayName="TelematicsTrackMap",t.defaultProps={playSpeed:30,needProcess:!0,needDenoise:!0,needVacuate:!0,needMapMatch:!0,radiusThreshold:0,transportMode:"driving",needDrivingBehavior:!1,showSpeeding:!0,speedingThreshold:0,speedingColor:"#f00",showHarshAcceleration:!0,harshAccelerationThreshold:1.67,showHarshBreaking:!0,harshBreakingThreshold:-1.67,showHarshSteering:!0,harshSteeringThreshold:5,playerPosition:"bottom"},t=Object(u.__decorate)([Object(b.c)("serviceConnMgr"),Object(b.c)("assetUtils")],t)}(d.Component),C=60*Math.floor(Date.now()/1e3/60)*1e3,A=C-864e5,E=C;var _={metadata:{typeId:"46172819-9cff-4dce-ba04-5df91900a6a6",ver:"1.0",propsSchema:{ak:Object(n.K)("HyHLo6qWIgbBWvozBRxt7lCKuu2AADWD"),center:Object(i.f)({lng:121.476336,lat:31.236375}),doubleClickZoom:Object(n.I)(!0),dragging:Object(n.I)(!0),dumb:Object(n.I)(!1),endTime:Object(n.M)(E),vehicleId:Object(n.K)(""),harshAccelerationIcon:Object(n.K)(""),harshAccelerationThreshold:Object(n.m)(1.67),harshBreakingIcon:Object(n.K)(""),harshBreakingThreshold:Object(n.m)(-1.67),harshSteeringIcon:Object(n.K)(""),harshSteeringThreshold:Object(n.m)(5),height:Object(n.A)(400),hideTrackDirection:Object(n.I)(!1),hideTrackSpeed:Object(n.I)(!1),indicatorIcon:Object(n.K)(""),mapStyle:Object(n.K)("normal"),needDenoise:Object(n.I)(!0),needDrivingBehavior:Object(n.I)(!1),needMapMatch:Object(n.I)(!0),needProcess:Object(n.I)(!0),needVacuate:Object(n.I)(!0),playSpeed:Object(n.E)(30),playState:s("play"),playerPosition:a("bottom"),points:c(null),drivingBehavior:o(null),radiusThreshold:Object(n.m)(0),scrollWheelZoom:Object(n.I)(!0),showHarshAcceleration:Object(n.I)(!0),showHarshBreaking:Object(n.I)(!0),showHarshSteering:Object(n.I)(!0),showLegend:Object(n.I)(!0),showPlayer:Object(n.I)(!0),showSpeeding:Object(n.I)(!0),speedingColor:Object(n.K)("#f00"),speedingIcon:Object(n.K)(""),speedingThreshold:Object(n.m)(0),startTime:Object(n.M)(A),trackColor:Object(n.K)("#8b8b89"),trackWidth:Object(n.E)(10),transportMode:l("driving"),width:Object(n.A)(500),zoom:Object(n.E)(13)},eventsSchema:{currentZoom:n.E,playstatechange:n.K,loadstart:Object(n.c)({}),loadend:Object(n.c)({})},interactSessionMiddleware:function(e){return{onStart:function(){e.onRTProp("currentZoom",(function(t){return e.overridePropsBag("zoom",t)}))},onStop:function(){e.unRTProp("currentZoom")}}},component:S},publicProps:{ak:!0,center:!0,startTime:!0,endTime:!0,vehicleId:!0,playState:!0,playSpeed:!0,points:!0,drivingBehavior:!0},publicEvents:{playstatechange:!0,loadstart:!0,loadend:!0}}},1936:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return w}));var n=r(4),i=r(3),o=r(2),a=r(56),s=r(13),c=r(34),l=function(e,t){return e\n \n \n \n \n \n \n "),dataZoomHeight:Object(o.E)(8),dataZoomTextColor:Object(o.j)("transparent"),dataZoomStart:Object(o.C)(0),dataZoomEnd:Object(o.C)(100),dumb:Object(o.I)(!1),height:Object(o.A)(260),ifSmooth:Object(o.I)(!1),legendFontFamily:Object(o.n)("sans-serif"),legendFontSize:Object(o.o)(12),legendFontStyle:Object(o.p)("normal"),legendFontWeight:Object(o.q)("normal"),legendHorizontalAlign:Object(o.t)("right"),legendItemGap:Object(o.B)(15),legendItemHeight:Object(o.A)(7),legendItemWidth:Object(o.A)(19),legendOrient:Object(s.h)("horizontal"),legendPaddingBottom:Object(o.B)(0),legendPaddingLeft:Object(o.B)(20),legendPaddingRight:Object(o.B)(20),legendPaddingTop:Object(o.B)(12),legendSelected:Object(s.o)({}),legendVerticalAlign:Object(o.N)("top"),lockLegendAspectRatio:Object(o.I)(!0),paddingBottom:Object(o.B)(40),paddingLeft:Object(o.B)(60),paddingRight:Object(o.B)(60),paddingTop:Object(o.B)(60),multiColors:f([["#108CEE","#47BAFD","#7EDEFF","#0060EE","#0349C2","#AEF0FB","#022CA4","#00119B"],["#F38900","#FEB600","#FDCB55","#FDD880","#C96705","#FFE6AB","#A04B00","#853200"]]),seriesMap:p({seriesOpt:{xCol:0,y0Cols:[1],y1Cols:[2],groupByCols:[3]},dataTable:{headers:[{name:"\u65f6\u95f4\u6233",type:"date"},{name:"\u6e29\u5ea6",type:"number"},{name:"\u84b8\u53d1\u91cf",type:"number"},{name:"\u57ce\u5e02",type:"string"}],data:[[15436224e5,16,160,"\u5317\u4eac"],[15436224e5,20,225,"\u4e0a\u6d77"],[15436296e5,30,210,"\u5317\u4eac"],[15436296e5,27,170,"\u4e0a\u6d77"],[15436368e5,38,225,"\u5317\u4eac"],[15436368e5,29,200,"\u4e0a\u6d77"],[1543644e6,30,180,"\u5317\u4eac"],[1543644e6,25,230,"\u4e0a\u6d77"]]}}),seriesType:Object(s.s)("line"),showAreaStyle:Object(o.I)(!1),showDataShadow:Object(o.I)(!1),showDataZoomX:Object(o.I)(!1),showLegend:Object(o.I)(!0),showSymbol:Object(o.I)(!0),showTooltip:Object(o.I)(!0),symbol:Object(s.u)("emptyCircle"),symbolSize:Object(o.E)(4),tooltipAxisColor:Object(o.j)("#108CEE"),tooltipBackgroundColor:Object(o.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(o.y)("none"),tooltipBorderRadius:Object(o.B)(0),tooltipConfine:Object(o.I)(!0),tooltipContentColor:Object(o.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(o.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(o.B)(0),tooltipTitleColor:Object(o.j)("#333"),tooltipTrigger:Object(s.y)("axis"),width:Object(o.A)(450),stackEnable:Object(o.I)(!1)},Object(a.a)("x","time")),Object(i.omit)(Object(a.a)("y0","value"),["y0AxisTextColor"])),Object(i.omit)(Object(a.a)("y1","value"),["y1AxisTextColor"])),{xAxisFeatures:Object(s.b)({axisType:"time",axisDateFormatter:"HH:mm"}),xAxisLineColor:Object(o.j)("#CBD3E0"),y0AxisLineColor:Object(o.j)("#108CEE"),y1AxisLineColor:Object(o.j)("#F38900")}),eventsSchema:{currentLegendSelected:s.o,currentDatazoomRange:s.g},interactSessionMiddleware:a.c,component:y,propsResolver:c.a}}},1937:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return O}));var n=r(2),i=r(27),o=r(4),a=r(62),s=r(0),c=r(33),l=r(389),u=r(41),d=function(e,t,r,n,i){var o=function(e,t,r,n){var i=u.d.fromValues(t.x,t.y,n.x,n.y),o=u.b.fromValues(e.x,e.y,1,0,-e.y,e.x,0,1,r.x,r.y,1,0,-r.y,r.x,0,1),a=u.b.create();return u.b.invert(a,o),[a[0]*i[0]+a[1]*i[1]+a[2]*i[2]+a[3]*i[3],a[4]*i[0]+a[5]*i[1]+a[6]*i[2]+a[7]*i[3],a[8]*i[0]+a[9]*i[1]+a[10]*i[2]+a[11]*i[3],a[12]*i[0]+a[13]*i[1]+a[14]*i[2]+a[15]*i[3]]}(e,t,r,n),a=o[0],s=o[1],c=o[2],l=o[3],d=i.x,p=i.y;return{x:a*d+s*p+c,y:s*d-a*p+l}},p=function(e,t,r,n){var i,o,a=(i=e,o=t,Math.sqrt(Math.pow(i.x-o.x,2)+Math.pow(i.y-o.y,2))),s=d({x:0,y:0},{x:0,y:0},{x:a,y:0},{x:a,y:0},{x:n*a,y:r});return d({x:0,y:0},e,{x:a,y:0},t,s)},b=r(93),h=function(e){return e+"-gs"},f=function(e){var t,r,i,c=e.id,l=e.startX,u=e.startY,d=e.endX,f=e.endY,g=e.ctrlPointHeight,m=e.ctrlPointXRatio,O=e.stroke,j=e.strokeWidth,v=e.markerStart,y=e.markerEnd,w=(i=function(e,t,r,n){var i=function(e,t,r){return t/(2*(1-n)*n)-e*(1-n)/(2*n)-r*n/(2*(1-n))};return{x:i(e.x,t.x,r.x),y:i(e.y,t.y,r.y)}}(t={x:l,y:u},p(t,r={x:d,y:f},g,m),r,.5),"\n M "+t.x+" "+t.y+"\n Q "+i.x+" "+i.y+", "+r.x+" "+r.y+"\n ");return s.createElement("g",null,s.createElement("defs",null,function(){var t,r=e.id,i=e.startX,c=e.startY,l=e.endX,u=e.endY,d=e.stroke,p=Object(b.a)(d);if(!p)return null;if(p){var f=(l+i)/2,g=(u+c)/2;switch(d.type){case"linear":var m=360-Object(a.pointsToDegree)(d.deg);t={gradient:Object(o.__assign)(Object(o.__assign)({},d),{deg:{x1:i,y1:c,x2:l,y2:u}}),options:{gradientUnits:"userSpaceOnUse",gradientTransform:"rotate("+m+","+f+","+g+")"}};break;case"circle":t={gradient:Object(o.__assign)(Object(o.__assign)({},d),{pos:{x:f,y:g}}),options:{gradientUnits:"userSpaceOnUse"}}}}return s.createElement(n.b,Object(o.__assign)({id:h(r)},t))}(),!!v&&v,!!y&&y),s.createElement("path",{id:c,d:w,stroke:Object(b.a)(O)?"url(#"+h(c)+")":O,strokeWidth:j,fill:"transparent",markerStart:"url(#start-"+c+")",markerEnd:"url(#end-"+c+")"}))};f.displayName="Curve",f.defaultProps={strokeWidth:1};var g=Object(c.a)(l.a)(f),m=r(28),O={metadata:{typeId:"22779814-0d2f-458c-91a6-40c5bfe501f2",ver:"1.0",mediaType:i.c.SVG,propsSchema:{startX:Object(n.m)(0),startY:Object(n.m)(100),endX:Object(n.m)(100),endY:Object(n.m)(100),ctrlPointXRatio:Object(n.m)(.5),ctrlPointHeight:Object(n.m)(-20),fill:Object(n.r)("#3399FF"),stroke:Object(n.r)("#3399FF"),strokeWidth:Object(n.A)(1),endpointStart:Object(m.d)("none"),endpointEnd:Object(m.d)("none")},eventsSchema:{},mbrDef:{mbrCalculator:function(e){var t=e.startX,r=e.startY,n=e.endX,o=e.endY,a=Math.abs(n-t),s=Math.abs(o-r);return new i.a(Math.min(t,n),Math.min(r,o),a,s)},mbrUpdater:function(e,t){var r=e.x,n=e.y,i=e.width,o=e.height,a=t.startX,s=t.startY,c=t.endX,l=t.endY,u=a,d=s,p=c,b=l;return i=0===i?.01:i,o=0===o?.01:o,ac&&(p=r,u=r+i),sl&&(d=n+o,b=n),{startX:u,startY:d,endX:p,endY:b}}},component:g},publicProps:{fill:!0,stroke:!0}}},1938:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return C}));var n,i,o=r(2),a=Object(o.H)("",{maxLength:1}),s=r(4),c=r(0),l=r(17),u=r(304),d=r(3),p=function(e){return e.cardWidth},b=function(e){return e.cardHeight},h=function(e){return e.cardSpacing},f=function(e){return e.paddingTop},g=function(e){return e.paddingLeft},m=Object(u.createSelector)((function(e){return e.score}),(function(e){return e.numIntegerDigits}),(function(e){return e.padIntegerPart}),(function(e){return e.numFractionalDigits}),(function(e){return e.padFractionalPart}),(function(e,t,r,n,i){var o=(e||0).toFixed(n).split("."),a=o[0],c=o[1],l=void 0===c?"":c,u=Object(d.dropWhile)(a,(function(e){return"0"===e})),p=Object(d.dropRightWhile)(l,(function(e){return"0"===e})),b=e<0?"-":"";for(0===u.length&&u.push("0"),b&&r&&(u.shift(),t>u.length&&t--);u.length=e&&(n=0);var i=[new o.b(n,0)];return i.push(new o.b(e,0)),i.push(new o.b(e-n,t)),i.push(new o.b(0,t)),function(e){return Object(d.map)(e,(function(e){return e.x+","+e.y})).join(" ")}(i)},h=function(e){var t=e.id,r=e.width,n=e.height,o=e.inclineDeg,a=e.mergedFill,s=e.isMergedFillGradient,l=e.stroke,u=e.strokeWidth;return c.createElement("g",null,c.createElement("defs",null,s&&c.createElement(i.b,{id:t,gradient:a})),c.createElement("polygon",{points:b(r,n,o),fill:s?"url(#"+t+")":a,stroke:l,strokeWidth:u}))};h.displayName="Parallelogram",h.defaultProps={strokeWidth:1};var f=Object(l.a)(p.a,u.a)(h),g={metadata:{typeId:"a2267005-5218-49f6-99b4-c45fa2ee4aa7",ver:"1.0",mediaType:o.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({width:Object(i.A)(150),inclineDeg:Object(i.A)(30)},a.c),a.b),a.a),propsResolver:s.a,component:f},publicProps:{fill:!0,stroke:!0}}},1945:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return u}));var n=r(2),i=Object(n.e)(Object(n.w)({url:Object(n.H)("https://iotviz2.cdn.bcebos.com/static/asset/flv%E9%BB%98%E8%AE%A4%E8%A7%86%E9%A2%91.flv",{regexp:/^(http|ws)?s?:\/\/[\w-]+(\.[\w-]+)+([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])?\.flv([\w.,@?^=%&:\/~+#-]*[\w@?^=%&\/~+#-])?/i.toString()})})),o=r(4),a=r(0),s=r.n(a),c=r(392),l={},u={metadata:{typeId:"3fc7f92d-9008-44fe-8027-9e166ae9be61",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),width:Object(n.A)(320),height:Object(n.A)(180),series:i([{url:"https://iotviz2.cdn.bcebos.com/static/asset/flv%E9%BB%98%E8%AE%A4%E8%A7%86%E9%A2%91.flv"}]),controls:Object(n.I)(!0),autoplay:Object(n.I)(!1),loop:Object(n.I)(!1),muted:Object(n.I)(!0)},eventsSchema:{},component:function(e){var t=e.id,r=e.width,n=e.height,i=e.series,u=e.controls,d=e.autoplay,p=e.loop,b=e.muted,h=Object(a.useRef)(null),f=Object(a.useState)([]),g=f[0],m=f[1],O=function(){return Object(o.__awaiter)(void 0,void 0,void 0,(function(){var e,t,r;return Object(o.__generator)(this,(function(n){switch(n.label){case 0:return e=i.map((function(e){return t=e.url,r=document.createElement("video"),new Promise((function(e,n){if(l[t])e(l[t]);else{var i=c.a.createPlayer({type:"flv",url:t});i.attachMediaElement(r),i.load(),i.on(c.a.Events.LOADING_COMPLETE,(function(){l[t]=r.duration,e(r.duration),i.unload()}))}}));var t,r})),[4,Promise.all(e)];case 1:return t=n.sent(),r=i.map((function(e,r){return Object(o.__assign)(Object(o.__assign)({},e),{duration:1e3*t[r]})})),m(r),[2]}}))}))};return Object(a.useEffect)((function(){O()}),[i]),Object(a.useEffect)((function(){if(g.length){var e=c.a.createPlayer({type:"flv",segments:g});e.attachMediaElement(h.current),e.load()}}),[g]),Object(a.useEffect)((function(){O()}),[]),s.a.createElement("div",{id:"widget-"+t,className:"iotviz-widget-video"},s.a.createElement("video",{controls:u,width:r,height:n,autoPlay:d,loop:p,muted:b,controlsList:"nodownload",disablePictureInPicture:!0,ref:h}))}}}},1946:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return u}));var n=r(2),i=r(3),o=Object(n.c)({},(function(e){return Object(i.every)(e,(function(e){return!Object(i.has)(e,"width")||e.width>0}))})),a=r(4),s=r(960),c=r(0),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),t.prototype.consolidateColDefs=function(){for(var e=0,t=this.props,r=t.colsNum,n=t.data,i=[];e1&&r<2*d?{borderTopWidth:0}:{borderLeftWidth:0},B=Object(s.isArray)(u)&&u.length>2&&r>=2*d&&r0?60/a:0;return l.createElement(m,{id:"config-"+n,theme:{rotationDuration:g,rotationDirection:o}},l.createElement("div",{style:{animationDuration:g+"s"},className:i?"":"paused",dangerouslySetInnerHTML:{__html:d},ref:c}))})),g={CW:Object(u.e)(n||(n=Object(c.__makeTemplateObject)(["0% {transform: rotate(0deg);} 100% {transform: rotate(360deg);}"],["0% {transform: rotate(0deg);} 100% {transform: rotate(360deg);}"]))),CCW:Object(u.e)(i||(i=Object(c.__makeTemplateObject)(["0% {transform: rotate(0deg);} 100% {transform: rotate(-360deg);}"],["0% {transform: rotate(0deg);} 100% {transform: rotate(-360deg);}"])))},m=u.d.div(o||(o=Object(c.__makeTemplateObject)(["\n position: relative;\n width: 100%;\n height: 100%;\n overflow: hidden;\n\n & img,\n & div,\n & div svg {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n > div {\n animation-name: ",";\n animation-timing-function: linear;\n animation-iteration-count: infinite;\n // duration \u5728 inline, \u539f\u56e0\u662f\u907f\u514d styled \u751f\u6210\u8fc7\u591a\u7684 css class\n }\n\n > div.paused {\n animation-play-state: paused;\n }\n"],["\n position: relative;\n width: 100%;\n height: 100%;\n overflow: hidden;\n\n & img,\n & div,\n & div svg {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n > div {\n animation-name: ",";\n animation-timing-function: linear;\n animation-iteration-count: infinite;\n // duration \u5728 inline, \u539f\u56e0\u662f\u907f\u514d styled \u751f\u6210\u8fc7\u591a\u7684 css class\n }\n\n > div.paused {\n animation-play-state: paused;\n }\n"])),(function(e){return g[e.theme.rotationDirection]}));f.displayName="Fan";var O={metadata:{typeId:"108bd6b0-d7af-11ea-b159-a9ba831ad50a",ver:"1.1",propsSchema:{dumb:Object(a.I)(!1),spinning:Object(a.I)(!0),rpm:Object(a.B)(60),rotationDirection:s("CW")},component:f}}},1950:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return u}));var n=r(2),i=r(13),o=r(4),a=r(0),s=function(e){"Tab"===e.key&&e.preventDefault()},c=function(e){function t(t){var r=e.call(this,t)||this;return r.onContentChange=function(e){r.setState({value:e.target.value}),r.props.onChange(e.target.value)},r.onKeyUp=function(e){switch(e.key){case"Enter":r.props.onSubmit();case"Escape":r.props.onCancel()}},r.inputRef=a.createRef(),r}return Object(o.__extends)(t,e),t.prototype.componentDidMount=function(){this.inputRef.current.focus()},t.prototype.render=function(){var e=this.props.label.propsBag,t=e.height,r=e.horizontalAlignment,n=e.textDecoration,i=e.color,c=e.fontFamily,l=e.fontStyle,u=e.fontSize,d=e.fontWeight,p=e.paddingBottom,b=e.paddingLeft,h=e.paddingRight,f=e.paddingTop,g=this.props.value,m={width:"100%",height:"100%",userSelect:"none",textAlign:r,textDecoration:n,wordBreak:"break-all",color:i,fontFamily:c,fontStyle:l,fontSize:u+"px",fontWeight:d,lineHeight:t+"px",paddingBottom:p+"px",paddingLeft:b+"px",paddingRight:h+"px",paddingTop:f+"px",overflow:"hidden"},O="justify"===r?Object(o.__assign)(Object(o.__assign)({},m),{textJustify:"distribute-all-lines",textAlignLast:"justify"}):m;return a.createElement("input",{ref:this.inputRef,style:O,value:g,onChange:this.onContentChange,onKeyUp:this.onKeyUp,onKeyDown:s})},t}(a.Component),l=function(e){function t(t){return e.call(this,t)||this}return Object(o.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.id,r=e.height,n=e.horizontalAlignment,i=e.textDecoration,s=e.color,c=e.fontFamily,l=e.fontStyle,u=e.fontSize,d=e.fontWeight,p=e.paddingBottom,b=e.paddingLeft,h=e.paddingRight,f=e.paddingTop,g=e.text,m=e.hasShadow,O=e.offsetX,j=e.offsetY,v=e.blurRadius,y=e.shadowColor,w={width:"100%",height:"100%",userSelect:"none",textAlign:n,textDecoration:i,wordBreak:"break-all",color:s,fontFamily:c+", sans-serif",fontStyle:l,fontSize:u+"px",fontWeight:d,lineHeight:r+"px",paddingBottom:p+"px",paddingLeft:b+"px",paddingRight:h+"px",paddingTop:f+"px",overflow:"hidden",textShadow:m?y+" "+O+"px "+j+"px "+v+"px":"unset"},x="justify"===n?Object(o.__assign)(Object(o.__assign)({},w),{textJustify:"distribute-all-lines",textAlignLast:"justify"}):w;return a.createElement("div",{id:"widget-"+t,draggable:!1,style:x},g)},t.displayName="Label",t}(a.PureComponent),u={metadata:{typeId:"f82809b1-4fbb-4f10-9c07-1fc7bf048903",ver:"1.0",propsSchema:{color:Object(n.j)("#333"),dumb:Object(n.I)(!1),fontFamily:Object(n.n)("sans-serif"),fontSize:Object(n.o)(15),fontStyle:Object(n.p)("normal"),fontWeight:Object(n.q)("normal"),height:Object(n.A)(50),horizontalAlignment:Object(n.t)("left"),lineHeight:Object(n.E)(50),paddingBottom:Object(n.B)(0),paddingLeft:Object(n.B)(10),paddingRight:Object(n.B)(10),paddingTop:Object(n.B)(0),text:Object(n.K)(""),textDecoration:Object(i.v)("none"),width:Object(n.A)(200),hasShadow:Object(n.f)(!1),offsetX:Object(n.m)(0),offsetY:Object(n.m)(0),blurRadius:Object(n.m)(0),shadowColor:Object(n.j)("rgba(0,0,0,.1)")},eventsSchema:{currentContent:n.K,complete:n.I},interactSessionMiddleware:function(e){var t;return{onStart:function(e){t=e},getInplaceEditor:function(){return a.createElement(c,{label:e,value:e.propsBag.text,onCancel:t,onSubmit:t,onChange:function(t){return e.overridePropsBag("text",t)}})},onStop:function(){}}},component:l},publicProps:{text:!0,color:!0}}},1951:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return g}));var n=r(4),i=r(540),o=r(3),a=r(0),s=a.memo((function(e){var t=e.layers,r=Object(n.__rest)(e,["layers"]),s=a.useMemo((function(){return function(e){return Object(o.map)(e,(function(e){return e.layerType===i.b.EffectScatter?Object(n.__assign)(Object(n.__assign)({},e),{data:l(e.data)}):Object(n.__assign)(Object(n.__assign)({},e),{data:u(e.data)})}))}(t)}),[t]);return a.createElement(i.a,Object(n.__assign)({},r,{layers:s}))}));function c(e,t){return Object(o.inRange)(e,0,t.headers.length)}function l(e){var t=e.series,r=e.table,n=t.latCol,i=t.lngCol,o=t.valueCol;return c(n,r)&&c(i,r)&&c(o,r)?r.data.map((function(e){return{lat:e[n],lng:e[i],value:e[o]}})):[]}function u(e){var t=e.series,r=e.table,n=t.gbcodeCol,i=t.valueCol;return c(n,r)&&c(i,r)?r.data.map((function(e){return{gbcode:e[n],value:e[i]}})):[]}var d,p=r(2),b=Object(p.w)({lat:p.x,lng:p.z},{defVal:{lat:31.9527,lng:104.2882}}),h=Object(p.w)({layerType:Object(p.g)("choropleth"),data:Object(p.w)({table:p.J,series:Object(p.w)({gbcodeCol:Object(p.v)(-1),valueCol:Object(p.v)(-1)})}),gbcode:Object(p.K)("156000000"),stroke:Object(p.I)(!0),strokeColor:Object(p.j)("#595775"),strokeType:Object(p.k)(["continuous","dash1","dash2","dash3"],"continuous"),strokeWidth:Object(p.B)(2),fill:Object(p.I)(!0),fillColor:Object(p.j)("#ABA6BF"),fillColorScale:(void 0===d&&(d="#ABA6BF"),Object(p.w)({stops:Object(p.e)(Object(p.w)({color:Object(p.j)(d),offset:Object(p.C)(0,{min:0,max:1})}),[{offset:0,color:"#1D65A6"},{offset:.34,color:"#FFF74E"},{offset:1,color:"#BF988F"}])})),labelVisible:Object(p.I)(!1),labelFontColor:Object(p.j)("rgba(255, 255, 255, 1)"),labelFontSize:Object(p.o)(13),labelFontWeight:p.q,labelFontStyle:p.p}),f=Object(p.w)({layerType:Object(p.g)("effectScatter"),data:Object(p.w)({table:p.J,series:Object(p.w)({latCol:Object(p.v)(-1),lngCol:Object(p.v)(-1),valueCol:Object(p.v)(-1)})}),color:Object(p.j)("rgba(220, 208, 130, .66)"),size:Object(p.A)(10),sizeScale:Object(p.w)({min:Object(p.D)(10),max:Object(p.D)(20)}),breathDepth:Object(p.C)(.3,{min:0,max:1}),breathDelay:Object(p.A)(200)}),g={metadata:{typeId:"79cdf1c1-da1e-48f1-92f6-ace564d28cc5",ver:"1.0",propsSchema:{fumb:Object(p.I)(!1),height:Object(p.A)(400),width:Object(p.A)(600),useInitView:Object(p.I)(!1),center:b,zoom:Object(p.A)(3),layers:Object(p.e)(Object(p.d)([h,f]),[h.defaultValue,f.defaultValue])},eventsSchema:{},component:s}}},1952:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return l}));var n=r(2),i=r(127),o=r(164),a=r(3),s=r(0),c=r.n(s),l={metadata:{typeId:"a21a536f-d87c-4de9-9828-51c9b04619ae",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),width:Object(n.A)(160),height:Object(n.A)(30),value:Object(n.K)("a"),valueColor:Object(n.j)("#333"),valueFontFamily:Object(n.n)("sans-serif"),valueFontSize:Object(n.o)(12),valueFontStyle:Object(n.p)("normal"),valueFontWeight:Object(n.q)("normal"),inputPaddingLeft:Object(n.A)(10),inputBackground:Object(n.r)("#fff"),inputBorderStyle:Object(n.y)("solid"),inputBorderColor:Object(n.j)("#e2e5ec"),inputBorderColorHover:Object(n.j)("#108cee"),inputBorderWidth:Object(n.A)(1),inputBorderRadius:Object(n.A)(0),inputBoxShadowShow:Object(n.I)(!1),inputBoxInset:Object(n.I)(!1),inputBoxOffsetX:Object(n.m)(0),inputBoxOffsetY:Object(n.m)(0),inputBoxBlurRadius:Object(n.A)(0),inputBoxSpreadRadius:Object(n.m)(0),inputBoxColor:Object(n.j)("rgba(0, 0, 0, 0.15)"),indicatorShow:Object(n.I)(!0),indicatorSize:Object(n.B)(10),indicatorColor:Object(n.j)("#979797"),indicatorPadding:Object(n.A)(5),menuMaxHeight:Object(n.D)(180),menuBorderStyle:Object(n.y)("none"),menuBorderColor:Object(n.j)("#e2e5ec"),menuBorderWidth:Object(n.A)(1),menuBorderRadius:Object(n.A)(0),menuBoxShadowShow:Object(n.I)(!0),menuBoxInset:Object(n.I)(!1),menuBoxOffsetX:Object(n.m)(0),menuBoxOffsetY:Object(n.m)(2),menuBoxBlurRadius:Object(n.A)(8),menuBoxSpreadRadius:Object(n.m)(0),menuBoxColor:Object(n.j)("rgba(0, 0, 0, 0.15)"),optionValue:Object(i.b)([{value:"a",label:"\u9009\u9879A"},{value:"b",label:"\u9009\u9879B"},{value:"c",label:"\u9009\u9879C"}]),optionHeight:Object(n.D)(24),optionBg:Object(n.r)("#fff"),optionBgHover:Object(n.r)("#eaf6fe"),optionBgActive:Object(n.r)("#108cee"),optionFontFamily:Object(n.n)("sans-serif"),optionFontSize:Object(n.o)(12),optionColor:Object(n.j)("#000"),optionColorHover:Object(n.j)("#108cee"),optionColorActive:Object(n.j)("#fff"),optionFontWeight:Object(n.q)("normal"),optionFontStyle:Object(n.p)("normal")},eventsSchema:{onload:n.K,onValueChange:n.K},interactSessionMiddleware:function(e){return{onStart:function(){e.onRTProp("onload",(function(e){})),e.onRTProp("onValueChange",(function(t){e.overridePropsBag("value",t)}))},onStop:function(){e.unRTProp("onload"),e.unRTProp("onValueChange")}}},component:function(e){var t=e.id,r=e.width,i=e.value,l=e.valueColor,u=e.valueFontFamily,d=e.valueFontSize,p=e.valueFontWeight,b=e.valueFontStyle,h=e.inputPaddingLeft,f=e.inputBackground,g=e.inputBorderStyle,m=e.inputBorderColor,O=e.inputBorderColorHover,j=e.inputBorderWidth,v=e.inputBorderRadius,y=e.inputBoxShadowShow,w=e.inputBoxInset,x=e.inputBoxOffsetX,S=e.inputBoxOffsetY,C=e.inputBoxBlurRadius,A=e.inputBoxSpreadRadius,E=e.inputBoxColor,_=e.indicatorShow,T=e.indicatorSize,R=e.indicatorColor,I=e.indicatorPadding,P=(e.menuGap,e.menuMaxHeight),k=e.menuBorderStyle,B=e.menuBorderColor,N=e.menuBorderWidth,D=e.menuBorderRadius,M=e.menuBoxShadowShow,L=e.menuBoxInset,F=e.menuBoxOffsetX,z=e.menuBoxOffsetY,W=e.menuBoxBlurRadius,U=e.menuBoxSpreadRadius,H=e.menuBoxColor,V=e.optionValue,G=e.optionHeight,Y=e.optionBg,Z=e.optionBgHover,X=e.optionBgActive,q=e.optionFontFamily,K=e.optionFontSize,J=e.optionColor,Q=e.optionColorHover,ee=e.optionColorActive,te=e.optionFontWeight,re=e.optionFontStyle,ne=e.onload,ie=e.onValueChange,oe=e.updateData,ae=Object(s.useRef)(null),se=Object(s.useState)("scale(1)"),ce=se[0],le=se[1];Object(s.useEffect)((function(){ne(i)}),[]),Object(s.useEffect)((function(){for(var e=ae.current.parentNode,t=/.*(scale\(((-?\d+)(\.\d+)?(\,\s(-?\d+)(\.\d+)?)?)\))/i;e;){var r=e.innerHTML.split(">")[0].match(t);if(Object(a.isArray)(r))return void le(r[1]);e=e.parentNode}}));var ue=(w?"inset ":"")+x+"px "+S+"px "+C+"px "+A+"px "+E,de=(L?"inset ":"")+F+"px "+z+"px "+W+"px "+U+"px "+H,pe={container:{height:"100%",background:Object(n.F)(f),borderStyle:g,borderColor:m,hoverBorderColor:O,borderWidth:j+"px",borderRadius:v+"px",boxShadow:""+(y?ue:"unset")},input:{height:"100%",fontFamily:u+", sans-serif",fontStyle:b,fontSize:d+"px",fontWeight:p,color:l,paddingLeft:h+"px",backgroundColor:"transparent"},indicator:{size:T,color:R,padding:I},menu:{width:r,maxHeight:P+"px",borderStyle:k,borderColor:B,borderWidth:N+"px",borderRadius:D+"px",background:Object(n.F)(Y),transform:ce,transformOrigin:"0 0",boxShadow:""+(M?de:"unset")},option:{height:G+"px",lineHeight:G+"px",fontFamily:q,fontSize:K+"px",fontStyle:re,fontWeight:te,color:J,hoverColor:Q,activeColor:ee,hoverBgColor:Object(n.F)(Z),activeBgColor:Object(n.F)(X),paddingLeft:h+"px"}};return c.a.createElement("div",{ref:ae,style:{height:"100%"},id:"widget-"+t},c.a.createElement(o.c,{options:V,value:i,onChange:function(e){ie(e),oe("/value",e)},styles:pe,hasIndicator:_,needTooltip:!1}))}},publicProps:{value:!0}}},1953:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return u}));var n,i=r(2),o=r(4),a=r(962),s=r(0),c=r.n(s),l=r(17),u=(r(1824),{metadata:{typeId:"9ae4ff9e-902e-11ea-bb37-0242ac130002",ver:"1.0",propsSchema:{dumb:Object(i.I)(!1),width:Object(i.A)(44),height:Object(i.A)(22),value:Object(i.I)(!0),bgColorOn:Object(i.j)("#108cee"),bgColorOff:Object(i.j)("#aaa"),bgBorderColor:Object(i.j)("transparent"),bgBorderWidth:Object(i.A)(1),bgBorderStyle:Object(i.y)("solid"),checkedText:Object(i.K)("\u5f00"),unCheckedText:Object(i.K)("\u5173"),fontColorOn:Object(i.j)("#fff"),fontColorOff:Object(i.j)("#fff"),fontFamily:Object(i.n)("sans-serif"),fontSize:Object(i.o)(12),fontStyle:Object(i.p)("normal"),fontWeight:Object(i.q)("normal"),sliderColorOn:Object(i.j)("#fff"),sliderColorOff:Object(i.j)("#fff"),sliderBorderColor:Object(i.j)("#fff"),sliderBorderWidth:Object(i.A)(1),sliderBorderStyle:Object(i.y)("none")},eventsSchema:{onload:i.I,onValueChange:i.I},interactSessionMiddleware:function(e){return{onStart:function(){e.onRTProp("onload",(function(e){})),e.onRTProp("onValueChange",(function(t){e.overridePropsBag("value",t)}))},onStop:function(){e.unRTProp("onload"),e.unRTProp("onValueChange")}}},component:function(e){var t=e.id,r=e.height,i=e.value,u=e.bgColorOn,d=e.bgColorOff,p=e.bgBorderColor,b=e.bgBorderWidth,h=e.bgBorderStyle,f=e.checkedText,g=e.unCheckedText,m=e.fontColorOn,O=e.fontColorOff,j=e.fontFamily,v=e.fontSize,y=e.fontStyle,w=e.fontWeight,x=e.onload,S=e.onValueChange,C=e.updateData,A=e.sliderColorOn,E=e.sliderColorOff,_=e.sliderBorderColor,T=e.sliderBorderWidth,R=e.sliderBorderStyle;Object(s.useEffect)((function(){x(i)}),[]);var I=r/22,P=Object(l.d)((function(e){return c.a.createElement("div",Object(o.__assign)({},e))}))(n||(n=Object(o.__makeTemplateObject)(["\n .ife-switch {\n transform: scale(",");\n transform-origin: 0 0;\n background-color: ",";\n border-color: ",";\n border-width: ","px;\n border-style: ",";\n &:after {\n height: calc(100% - 2px);\n background-color: ",";\n border-color: ",";\n border-width: ","px;\n border-style: ",";\n }\n }\n .ife-switch-checked {\n background-color: ",";\n }\n .ife-switch-inner {\n font-family: ",", sans-serif;\n font-style: ",";\n font-size: ","px;\n font-weight: ",";\n color: ",";\n }\n "],["\n .ife-switch {\n transform: scale(",");\n transform-origin: 0 0;\n background-color: ",";\n border-color: ",";\n border-width: ","px;\n border-style: ",";\n &:after {\n height: calc(100% - 2px);\n background-color: ",";\n border-color: ",";\n border-width: ","px;\n border-style: ",";\n }\n }\n .ife-switch-checked {\n background-color: ",";\n }\n .ife-switch-inner {\n font-family: ",", sans-serif;\n font-style: ",";\n font-size: ","px;\n font-weight: ",";\n color: ",";\n }\n "])),I,d,p,b,h,i?A:E,_,T,R,u,j,y,v,w,i?m:O);return c.a.createElement(P,{id:"widget-"+t},c.a.createElement(a.a,{checkedChildren:f,unCheckedChildren:g,onChange:function(e){S(e),C("/value",e)},checked:i}))}},publicProps:{value:!0}})},1954:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return p}));var n=r(2),i=r(13),o=r(4),a=r(97),s=r(36),c=r(51),l=r(0);function u(e){return{type:"getlatestpoint",vehicleId:e}}var d=function(e){function t(t){var r=e.call(this,t)||this;return r.loadPoint=function(e){var t=e.vehicleId;return Object(o.__awaiter)(r,void 0,void 0,(function(){var e,r,n;return Object(o.__generator)(this,(function(i){switch(i.label){case 0:if(!t)return[2];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.serviceConnMgr.sendRequest("telematics",u(t))];case 2:return e=i.sent(),(r=e.geoInfo).loc_time=r.locTime,n={entity_name:this.props.vehicleId,entity_desc:"",latest_location:r},this.setState({points:[n],showTooltip:!0}),this.loadPointInfo(n),[3,4];case 3:throw i.sent();case 4:return[2]}}))}))},r.loadAddress=function(e,t){return Object(o.__awaiter)(r,void 0,void 0,(function(){var r;return Object(o.__generator)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,Object(a.j)(this.props.ak,{lat:e,lng:t})];case 1:return[2,n.sent().formatted_address];case 2:return r=n.sent(),console.error("fail to lookup real address",r),[2,"\u65e0\u6cd5\u83b7\u5f97\u5730\u5740"];case 3:return[2]}}))}))},r.loadPointInfo=function(e){var t=e.latest_location,n=t.latitude,i=t.longitude,a=t.loc_time;return Object(o.__awaiter)(r,void 0,void 0,(function(){var e;return Object(o.__generator)(this,(function(t){switch(t.label){case 0:return[4,this.loadAddress(n,i)];case 1:return e=t.sent(),this.setState({content:[{key:"\u65f6\u95f4",value:String(Object(s.format)(1e3*a,"YYYY-MM-DD HH:mm:ss"))},{key:"\u5750\u6807",value:i+", "+n},{key:"\u4f4d\u7f6e",value:e}]}),[2]}}))}))},r.handleClick=function(){r.setState({showTooltip:!0,content:void 0}),r.loadPointInfo(r.state.points[0])},r.handleClosePopInfo=function(){return r.setState({showTooltip:!1})},r.renderPopInfo=function(){var e=r.state,t=e.content,n=(e.showTooltip,e.points[0].latest_location),i=n.longitude,o=n.latitude;return l.createElement(a.f,{longitude:i,latitude:o,title:l.createElement("div",{style:{fontWeight:900,textAlign:"center"}},r.props.vehicleId),content:t,busy:!t,onClose:r.handleClosePopInfo})},r.serviceConnMgr=t.serviceConnMgr,r.state={showTooltip:!1,style:function(){return{color:t.color}}},r}return Object(o.__extends)(t,e),t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=e.color;e.vehicleId!==this.props.vehicleId&&this.loadPoint(e),t!==this.props.color&&this.setState({style:function(){return{color:e.color}}})},t.prototype.componentDidMount=function(){this.loadPoint(this.props)},t.prototype.render=function(){var e=this.props,t=e.ak,r=e.center,n=e.zoom,i=e.mapStyle,s=e.dragging,c=e.scrollWheelZoom,u=e.doubleClickZoom,d=e.currentZoom,p=this.state,b=p.points,h=p.showTooltip,f=p.style,g={ak:t,center:r,zoom:n,mapStyle:i,dragging:s,scrollWheelZoom:c,doubleClickZoom:u,onZoom:d};return l.createElement(a.c,Object(o.__assign)({className:"iotviz-widget-map",ak:t},g),b&&l.createElement(a.d,{markerStyle:f,points:b,onClick:this.handleClick}),h&&this.renderPopInfo(),l.createElement(a.e,{offset:{x:20,y:20}}))},t.displayName="TelematicsMarkersMap",t=Object(o.__decorate)([Object(c.c)("serviceConnMgr")],t)}(l.Component),p={metadata:{typeId:"5e6a5711-caa9-4f72-a897-820b682a225e",ver:"1.0",propsSchema:{ak:Object(n.K)("HyHLo6qWIgbBWvozBRxt7lCKuu2AADWD"),center:Object(i.f)({lng:121.476336,lat:31.236375}),color:Object(n.j)("rgba(0, 166, 239, 1)"),doubleClickZoom:Object(n.I)(!0),dragging:Object(n.I)(!0),dumb:Object(n.I)(!1),vehicleId:Object(n.K)(""),height:Object(n.A)(400),mapStyle:Object(n.K)("normal"),scrollWheelZoom:Object(n.I)(!0),width:Object(n.A)(500),zoom:Object(n.E)(13)},eventsSchema:{currentZoom:n.E},interactSessionMiddleware:function(e){return{onStart:function(){e.onRTProp("currentZoom",(function(t){return e.overridePropsBag("zoom",t)}))},onStop:function(){e.unRTProp("currentZoom")}}},component:d},publicProps:{ak:!0,vehicleId:!0}}},1955:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return O}));var n=r(4),i=r(2),o=r(27),a=r(13),s=r(28),c=r(305),l=r.n(c),u=r(0),d=r(239),p=r(33),b=r(81),h=r(82);r(3);var f=function(e){var t,r,n,o,a,s,c=e.id,p=e.width,b=e.height,h=e.cornerRadius,f=e.xARatio,g=e.yARatio,m=e.xERatio,O=e.yERatio,j=e.xFRatio,v=e.yFRatio,y=e.mergedFill,w=e.isMergedFillGradient,x=e.stroke,S=e.strokeWidth,C=h*(Math.min(p,b)/2),A=f*p,E=g*b,_=m*p,T=O*b,R=j*p,I=v*b,P={models:{rect:new l.a.models.RoundRectangle(p,b,C),triangle:new l.a.models.ConnectTheDots(!0,(t=A,r=b-E,n=_,o=b-T,a=R,s=b-I,[[t,r],[n,o],[a,s]]))},origin:[0,0]};l.a.model.combine(P.models.rect,P.models.triangle,!1,!0,!1,!0);var k=l.a.exporter.toSVG({models:{polygons:P}});k=k.replace(/(|<\/g><\/svg>)/g,"");var B=d.renderToStaticMarkup(u.createElement("defs",null,w&&u.createElement(i.b,{id:c,gradient:y})));k=B+k;var N=A<0?A:0,D=E<0?E:0;return u.createElement("g",{dangerouslySetInnerHTML:{__html:k},fill:w?"url(#"+c+")":y,stroke:x,strokeWidth:S,style:{transform:"translateX("+N+"px) translateY("+D+"px)"}})};f.displayName="Callout",f.defaultProps={strokeWidth:1};var g=Object(p.a)(h.a,b.a)(f),m=r(49),O={metadata:{typeId:"ace4075d-0c07-46c9-b2ac-bdf13b7452c5",ver:"1.0",mediaType:o.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({cornerRadius:Object(a.z)(.1),xARatio:Object(i.m)(-.1),yARatio:Object(i.m)(.5),xBRatio:Object(a.z)(0),yBRatio:Object(a.z)(.46),xERatio:Object(a.z)(.05),yERatio:Object(a.z)(.44),xFRatio:Object(a.z)(.05),yFRatio:Object(a.z)(.56)},s.c),s.b),s.a),propsResolver:m.a,component:g},publicProps:{fill:!0,stroke:!0}}},1956:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return f}));var n=r(4),i=r(27),o=r(28),a=r(49),s=r(0),c=r(33),l=r(2),u=r(81),d=r(82),p=r(93),b=function(e){var t=e.id,r=e.width,n=e.height,i=e.fill,o=e.maskInfo,a=e.stroke,c=e.strokeWidth,u=r/2,d=n/2,b=Object(p.a)(i);return o.width=r,o.height=n,s.createElement("g",null,s.createElement("defs",null,(b||o.needMask)&&s.createElement(l.b,{id:t,gradient:i,mask:o})),s.createElement("ellipse",{x:0,y:0,cx:u,cy:d,rx:u,ry:d,fill:b?"url(#"+t+")":i,stroke:a,strokeWidth:c}),o.needMask&&s.createElement("rect",{x:0,y:0,width:r,height:n,fill:o.color,mask:"url(#"+t+"-mask)",strokeWidth:0}))};b.displayName="Ellipse",b.defaultProps={strokeWidth:1};var h=Object(c.a)(d.a,u.b)(b),f={metadata:{typeId:"29afd62d-9a33-421c-81e5-390513cef7d2",ver:"1.0",mediaType:i.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({},o.c),o.b),o.a),propsResolver:a.a,component:h},publicProps:{fill:!0,stroke:!0}}},1957:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return f}));var n=r(2),i=r(27),o=r(4),a=r(62),s=r(0),c=r(33),l=r(389),u=r(93),d=function(e){return e+"-gs"},p=function(e){var t=e.id,r=e.stroke,i=e.strokeWidth,c=e.x1,l=e.y1,p=e.x2,b=e.y2,h=e.markerStart,f=e.markerEnd;return s.createElement("g",null,s.createElement("defs",null,function(){var t,r=e.id,i=e.startX,c=e.startY,l=e.endX,p=e.endY,b=e.stroke,h=Object(u.a)(b);if(!h)return null;if(h){var f=(l+i)/2,g=(p+c)/2;switch(b.type){case"linear":var m=360-Object(a.pointsToDegree)(b.deg);t={gradient:Object(o.__assign)(Object(o.__assign)({},b),{deg:{x1:i,y1:c,x2:l,y2:p}}),options:{gradientUnits:"userSpaceOnUse",gradientTransform:"rotate("+m+","+f+","+g+")"}};break;case"circle":t={gradient:Object(o.__assign)(Object(o.__assign)({},b),{pos:{x:f,y:g}}),options:{gradientUnits:"userSpaceOnUse"}}}}return s.createElement(n.b,Object(o.__assign)({id:d(r)},t))}(),!!h&&h,!!f&&f),s.createElement("line",{x1:c,y1:l,x2:p,y2:b,stroke:Object(u.a)(r)?"url(#"+d(t)+")":r,strokeWidth:i,markerStart:"url(#start-"+t+")",markerEnd:"url(#end-"+t+")"}))};p.displayName="Line",p.defaultProps={strokeWidth:1};var b=Object(c.a)(l.a)(p),h=r(28),f={metadata:{typeId:"f3411175-b618-4172-9681-7e830bfd60e9",ver:"1.0",mediaType:i.c.SVG,propsSchema:{startX:Object(n.m)(100),startY:Object(n.m)(0),endX:Object(n.m)(0),endY:Object(n.m)(100),fill:Object(n.r)("#3399FF"),stroke:Object(n.r)("#3399FF"),strokeWidth:Object(n.A)(1),endpointStart:Object(h.d)("none"),endpointEnd:Object(h.d)("none")},eventsSchema:{},mbrDef:{mbrCalculator:function(e){var t=e.startX,r=e.startY,n=e.endX,o=e.endY,a=Math.abs(n-t),s=Math.abs(o-r);return new i.a(Math.min(t,n),Math.min(r,o),a,s)},mbrUpdater:function(e,t){var r=e.x,n=e.y,i=e.width,o=e.height,a=t.startX,s=t.startY,c=t.endX,l=t.endY,u=a,d=s,p=c,b=l;return i=0===i?.01:i,o=0===o?.01:o,ac&&(p=r,u=r+i),sl&&(d=n+o,b=n),{startX:u,startY:d,endX:p,endY:b}}},component:b},publicProps:{fill:!0,stroke:!0}}},1958:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return g}));var n=r(4),i=r(2),o=r(27),a=r(28),s=r(13),c=r(49),l=r(0),u=r(33),d=r(81),p=function(e,t,r){return"number"!=typeof r||r<0||r>1?"":0===r?e/2+",0 "+e+","+t+" 0,"+t:1===r?"0,0 "+e+",0 "+e+","+t+" 0,"+t:[e*(1-r)/2+",0",e*(1+r)/2+",0",e+","+t,"0,"+t,e*(1-r)/2+",0"].join(" ")},b=r(82),h=function(e){var t=e.id,r=e.width,n=e.height,o=e.baseRatio,a=e.mergedFill,s=e.isMergedFillGradient,c=e.stroke,u=e.strokeWidth;return l.createElement("g",null,l.createElement("defs",null,s&&l.createElement(i.b,{id:t,gradient:a})),l.createElement("polygon",{points:p(r,n,o),fill:s?"url(#"+t+")":a,stroke:c,strokeWidth:u}))};h.displayName="Trapezoid",h.defaultProps={strokeWidth:1};var f=Object(u.a)(b.a,d.a)(h),g={metadata:{typeId:"4250f88d-9e35-42b5-af47-7be40c0b924f",ver:"1.0",mediaType:o.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({width:Object(i.A)(150),baseRatio:Object(s.z)(.5)},a.c),a.b),a.a),propsResolver:c.a,component:f},publicProps:{fill:!0,stroke:!0}}},1959:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return m}));var n=r(4),i=r(2),o=r(13),a=r(28),s=r(27),c=r(49),l=r(0),u=r(33),d=r(81),p=r(82),b=r(93),h=function(e,t,r){return"0,"+t+" "+e+","+t+" "+e*r+",0"},f=function(e){var t=e.id,r=e.width,n=e.height,o=e.vertexDisplacement,a=e.fill,s=e.maskInfo,c=e.stroke,u=e.strokeWidth,d=Object(b.a)(a);return s.width=r,s.height=n,l.createElement("g",null,l.createElement("defs",null,(d||s.needMask)&&l.createElement(i.b,{id:t,gradient:a,mask:s})),l.createElement("polygon",{points:h(r,n,o),fill:d?"url(#"+t+")":a,stroke:c,strokeWidth:u}),s.needMask&&l.createElement("rect",{x:0,y:0,width:r,height:n,fill:s.color,mask:"url(#"+t+"-mask)",strokeWidth:0}))};f.displayName="Triangle",f.defaultProps={strokeWidth:1};var g=Object(u.a)(p.a,d.b)(f),m={metadata:{typeId:"e1de9750-49f1-430b-a125-0a6d66044c1b",ver:"1.0",mediaType:s.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({width:Object(i.A)(150),vertexDisplacement:Object(o.z)(.5)},a.c),a.b),a.a),propsResolver:c.a,component:g},publicProps:{fill:!0,stroke:!0}}},1961:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return p}));var n=r(2),i=r(4),o=r(0),a=r(17),s=a.d.div(c||(c=Object(i.__makeTemplateObject)(["\n overflow: hidden;\n"],["\n overflow: hidden;\n"])));s.displayName="AnnouncementWrapper";var c,l,u=a.d.span(l||(l=Object(i.__makeTemplateObject)(["\n display: inline-block;\n padding: 0 10px;\n white-space: nowrap;\n"],["\n display: inline-block;\n padding: 0 10px;\n white-space: nowrap;\n"])));u.displayName="AnnouncementContainer";var d=r(127),p={metadata:{typeId:"7bb53af6-22c2-4252-9377-85f789b2a502",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),width:Object(n.A)(200),height:Object(n.A)(30),text:Object(n.K)("\u7269\u53ef\u89c6\u652f\u6301\u6a2a\u5411\u6eda\u52a8\u7684\u516c\u544a\u7ec4\u4ef6\u4e86\uff01\u8fd9\u6761\u516c\u544a\u4f1a\u5faa\u73af\u6eda\u52a8\u64ad\u653e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5b83\u6765\u516c\u5e03\u4e00\u4e9b\u4fe1\u606f\u3002\u5b83\u4e5f\u53ef\u4ee5\u7ed1\u5b9a\u6570\u636e\u6e90\u4ece\u800c\u52a8\u6001\u663e\u793a\u4fe1\u606f\u3002"),scrollTime:Object(n.A)(8e3),pauseTime:Object(n.A)(3e3),fontFamily:Object(n.n)("sans-serif"),fontSize:Object(n.o)(16),fontColor:Object(n.j)("#333"),fontStyle:Object(n.p)("normal"),fontWeight:Object(n.q)("normal"),textDecoration:Object(d.c)("none")},component:function(e){var t=e.id,r=e.width,n=e.height,i=e.text,a=e.pauseTime,c=e.scrollTime,l=e.fontColor,d=e.fontSize,p=e.fontFamily,b=e.fontWeight,h=e.fontStyle,f=e.textDecoration,g=o.useRef(null),m=o.useRef(null),O=o.useState(!0),j=O[0],v=O[1],y=o.useState(!1),w=y[0],x=y[1],S=o.useState(!1),C=S[0],A=S[1],E=o.useState(""),_=E[0],T=E[1],R="transform "+c+"ms linear";return o.useEffect((function(){var e=m.current.offsetWidth-r;e>0?(A(!1),v(!0),T("translateX(-"+e+"px)")):(A(!0),v(!1),T("translateX(0)"))}),[r,i]),o.useEffect((function(){var e;if(!C){var t=function(){v(!0),e=setTimeout((function(){x(!0),e=setTimeout((function(){v(!1),window.requestAnimationFrame((function(){x(!1),window.requestAnimationFrame((function(){t()}))}))}),c+a)}),a)};return t(),function(){clearTimeout(e)}}clearTimeout(e)}),[C,a,c,_]),o.createElement(s,{style:{width:r,height:n},ref:g,id:"widget-"+t},o.createElement(u,{ref:m,style:{minWidth:r,height:n,lineHeight:n+"px",color:l,fontSize:d,fontFamily:p,fontWeight:b,fontStyle:h,textDecoration:f,transition:j?R:"",transform:w?_:"",textAlign:"center"}},i))}}}},1962:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return b}));var n=r(2),i=r(4),o=r(0),a=r(17),s=a.d.div(c||(c=Object(i.__makeTemplateObject)(["\n overflow: hidden;\n"],["\n overflow: hidden;\n"])));s.displayName="AnnouncementListWrapper";var c,l,u=a.d.div(l||(l=Object(i.__makeTemplateObject)(["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"],["\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));u.displayName="AnnouncementListText";var d=r(127),p=Object(n.e)(Object(n.w)({text:Object(n.H)("")})),b={metadata:{typeId:"31d906e4-4b61-4ec9-9f3a-ddfe68afba54",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),width:Object(n.A)(300),height:Object(n.A)(60),textArr:p([{text:"\u7269\u53ef\u89c6\u652f\u6301\u7eb5\u5411\u6eda\u52a8\u7684\u516c\u544a\u7ec4\u4ef6\u4e86\uff01"},{text:"\u8fd9\u4e9b\u516c\u544a\u4f1a\u81ea\u52a8\u6eda\u52a8\uff0c\u5faa\u73af\u64ad\u653e\u3002"},{text:"\u60a8\u53ef\u4ee5\u7528\u5b83\u6765\u516c\u5e03\u4e00\u7cfb\u5217\u7684\u4fe1\u606f"},{text:"\u4e5f\u53ef\u4ee5\u7ed1\u5b9a\u5230\u6570\u636e\u6e90\u7684\u67d0\u4e00\u5217\u4e0a"}]),textAlign:Object(n.t)("center"),lineHeight:Object(n.A)(30),scrollTime:Object(n.A)(500),pauseTime:Object(n.A)(3e3),endPauseTime:Object(n.A)(3e3),fontFamily:Object(n.n)("sans-serif"),fontSize:Object(n.o)(16),fontColor:Object(n.j)("#333"),fontStyle:Object(n.p)("normal"),fontWeight:Object(n.q)("normal"),textDecoration:Object(d.c)("none")},component:function(e){var t=e.id,r=e.width,n=e.height,i=e.textArr,a=e.lineHeight,c=e.pauseTime,l=e.endPauseTime,d=e.scrollTime,p=e.fontColor,b=e.fontSize,h=e.fontFamily,f=e.textAlign,g=e.fontWeight,m=e.fontStyle,O=e.textDecoration,j=o.useRef(null),v=o.useRef(null),y=o.useState(!0),w=y[0],x=y[1],S=o.useState(!1),C=S[0],A=S[1],E=o.useState(0),_=E[0],T=E[1],R=o.useState(0),I=R[0],P=R[1],k="transform "+d+"ms linear";return o.useEffect((function(){var e=v.current.offsetHeight-n;e>0?(A(!1),x(!0),T(e)):(A(!0),x(!1),T(0))}),[n,i.length]),o.useEffect((function(){var e,t;if(C||0===_)return clearTimeout(e),void clearInterval(t);var r=function(){x(!0),e=setTimeout((function(){t=setInterval((function(){P((function(n){var i=n+a;return i<_?i:(clearInterval(t),e=setTimeout((function(){x(!1),window.requestAnimationFrame((function(){P(0),window.requestAnimationFrame((function(){r()}))}))}),l),_)}))}),c)}),l)};return r(),function(){clearTimeout(e),clearInterval(t)}}),[C,c,l,d,_]),o.createElement(s,{style:{width:r,height:n},ref:j,id:"widget-"+t},o.createElement("div",{ref:v,style:{width:r,minHeight:n,transition:w?k:"",transform:"translateY(-"+I+"px)"}},i.map((function(e,n){return o.createElement(u,{key:t+"-"+n,style:{fontSize:b,fontFamily:h,color:p,fontWeight:g,fontStyle:m,textDecoration:O,textAlign:f,textJustify:"justify"===f?"distribute-all-lines":"auto",textAlignLast:"justify"===f?"justify":"auto",width:r,height:a,lineHeight:a+"px"}},e.text)}))))}}}},1963:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return h}));var n=r(2),i=r(13),o=r(4),a=r(40),s=r(3),c=r(0),l=r(16),u=r(23),d=[u.e,u.f,u.h,Object(u.k)("series"),u.x,u.b,u.z,u.A,u.c],p=function(e){function t(t){var r=e.call(this,t)||this;return r.onRef=r.onRef.bind(r),r.ecOpt={},r}return Object(o.__extends)(t,e),t.prototype.componentDidUpdate=function(e){if(this.props.series!==e.series){this.ecOpt={};var t=Object(s.reduce)(d,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;Object(s.isEmpty)(t.series)&&delete t.dataZoom,this.echarts.setOption(t,!0,!0)}else{t=Object(s.reduce)(d,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:e,nextProps:this.props}).patchOpt;Object(s.isEmpty)(t)||this.echarts.setOption(t)}this.props.width===e.width&&this.props.height===e.height||this.echarts.resize()},t.prototype.componentDidMount=function(){this.echarts=Object(a.init)(Object(l.findDOMNode)(this.container),null);var e=Object(s.reduce)(d,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;this.echarts.setOption(e,!0)},t.prototype.componentWillUnmount=function(){Object(a.dispose)(this.echarts)},t.prototype.render=function(){return c.createElement("div",{style:{width:"100%",height:"100%",userSelect:"none"},ref:this.onRef})},t.prototype.onRef=function(e){this.container=e},t.displayName="BarChart",t.defaultProps={showXAxisTick:!1,showYAxisTick:!1,showXAxisLine:!1,showYAxisLine:!1,themeName:"light"},t}(c.Component),b=r(34),h={metadata:{typeId:"6dcb4040-e60c-4ce5-aca0-37730c923433",ver:"1.0",propsSchema:{color:Object(i.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),showTooltip:Object(n.I)(!0),tooltipConfine:Object(n.I)(!0),tooltipPadding:Object(n.B)(0),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipTitleColor:Object(n.j)("#333"),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipTrigger:Object(i.y)("axis"),tooltipAxisColor:Object(n.j)("#108CEE"),showDataZoomX:Object(n.I)(!0),showDataShadow:Object(n.I)(!1),dataZoomHeight:Object(n.E)(8),dataZoomBottom:Object(n.B)(20),dataZoomBorderColor:Object(n.j)("transparent"),dataZoomTextColor:Object(n.j)("transparent"),dataZoomBgColor:Object(n.j)("#EAF6FE"),dataZoomFillerColor:Object(n.j)("rgba(16, 140, 238, 0.5)"),dataZoomHandleIcon:Object(i.l)("image://data:image/svg+xml;utf8,\n \n \n \n \n \n \n \n "),showLegend:Object(n.I)(!0),legendOrient:Object(i.h)("horizontal"),legendHorizontalAlign:Object(n.t)("right"),legendVerticalAlign:Object(n.N)("top"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(20),legendPaddingTop:Object(n.B)(20),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendItemWidth:Object(n.A)(12),legendItemHeight:Object(n.A)(12),legendSelected:Object(i.o)({}),lockLegendAspectRatio:Object(n.I)(!0),legendItemGap:Object(n.B)(20),showXAxis:Object(n.I)(!0),showYAxis:Object(n.I)(!0),showXAxisLabel:Object(n.I)(!0),showYAxisLabel:Object(n.I)(!0),showSplitLineX:Object(n.I)(!1),showSplitLineY:Object(n.I)(!0),showXAxisTick:Object(n.I)(!1),showYAxisTick:Object(n.I)(!1),showXAxisLine:Object(n.I)(!1),showYAxisLine:Object(n.I)(!1),xAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),yAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),xAxisLineColor:Object(n.j)("#CBD3E0"),yAxisLineColor:Object(n.j)("#CBD3E0"),xAxisTextColor:Object(n.j)("#333"),xAxisFontStyle:Object(n.p)("normal"),xAxisFontWeight:Object(n.q)("normal"),xAxisFontFamily:Object(n.n)("sans-serif"),xAxisFontSize:Object(n.o)(12),yAxisTextColor:Object(n.j)("#333"),yAxisFontStyle:Object(n.p)("normal"),yAxisFontWeight:Object(n.q)("normal"),yAxisFontFamily:Object(n.n)("sans-serif"),yAxisFontSize:Object(n.o)(12),series:Object(i.t)(["\u6e29\u5ea6","\u7a7a\u6c14\u8d28\u91cf"]),axisUnit:Object(i.r)(""),axisPointerType:Object(i.c)("shadow"),axisPointerShadowColor:Object(n.j)("rgba(16, 140, 238, 0.1)"),legendIcon:Object(i.n)("rect"),stackEnable:Object(n.I)(!1),showBarLabel:Object(n.I)(!1),category:Object(i.t)(["\u5317\u4eac","\u4e0a\u6d77","\u5e7f\u5dde"]),data:Object(i.e)([[33,35,26],[55,33,25]]),width:Object(n.A)(300),height:Object(n.A)(200),hidden:Object(n.I)(!1),dumb:Object(n.I)(!1),background:Object(n.i)("transparent"),borderStyle:Object(n.y)("none"),borderWidth:Object(n.B)(0),borderColor:Object(n.j)("transparent"),min:Object(i.a)("auto"),max:Object(i.a)("auto")},component:p,propsResolver:b.a}}},1964:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return d}));var n=r(2),i=r(13),o=r(62),a=r(164),s=r(51),c=r(0),l=r.n(c),u=Object(s.d)((function(e){var t=e.id,r=e.width,n=e.height,i=e.text,s=e.color,c=e.fontFamily,u=e.fontSize,d=e.fontWeight,p=e.fontStyle,b=e.textDecoration,h=e.padding,f=e.align,g=e.bgColor,m=e.bgImage,O=e.imgFillMode,j=e.btnBorderStyle,v=e.btnBorderColor,y=e.btnBorderWidth,w=e.btnborderRadius,x=e.isLinked,S=e.href,C=void 0===S?"":S,A=e.blankPage;m&&!/^http(s):/.test(m)&&(m=o.AssetUtils.toUserUploadedImageUrl(m.replace(/@.+$/,"")));var E={minWidth:0,verticalAlign:"top",width:r,height:n,fontFamily:c+", sans-serif",fontStyle:p,fontSize:u+"px",fontWeight:d,color:s,textDecoration:b,paddingLeft:h+"px",paddingRight:h+"px",backgroundColor:g,backgroundImage:"url("+m+")",backgroundPosition:"center",backgroundRepeat:"no-repeat",backgroundSize:O,borderStyle:j,borderColor:v,borderWidth:y+"px",borderLeftWidth:y+"px",borderRadius:w+"px",textAlign:f};return l.a.createElement("div",{id:"widget-"+t},l.a.createElement("a",{href:C,target:A?"_blank":"_top",onClick:function(e){x&&""!==C.trim()||e.preventDefault()}},l.a.createElement(a.a,{value:i,style:E},i)))})),d={metadata:{typeId:"ce553754-8b45-4ebf-af4c-d881d654e2c6",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),width:Object(n.A)(68),height:Object(n.A)(30),text:Object(n.K)("\u6309\u94ae"),color:Object(n.j)("#fff"),fontFamily:Object(n.n)("sans-serif"),fontSize:Object(n.o)(12),fontStyle:Object(n.p)("normal"),fontWeight:Object(n.q)("normal"),textDecoration:Object(i.v)("none"),padding:Object(n.A)(10),align:Object(n.t)("center"),bgColor:Object(n.j)("#108cee"),bgImage:Object(n.K)(""),imgFillMode:Object(n.K)("100% 100%"),btnBorderStyle:Object(n.y)("none"),btnBorderColor:Object(n.j)("#ccc"),btnBorderWidth:Object(n.A)(1),btnborderRadius:Object(n.A)(0),isLinked:Object(n.I)(!1),href:Object(n.K)(""),blankPage:Object(n.I)(!0)},eventsSchema:{},component:u},publicProps:{text:!0}}},1965:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return d}));var n=r(2),i=r(0),o=r(51),a=i.useState,s=i.useEffect,c=i.useRef,l=function(e,t,r){return void 0===r&&(r="PLACEHOLDER"),e.replace(r,t)},u=Object(o.c)("assetUtils")((function(e){var t=e.id,r=e.assetUtils,n=e.displayText,o=a(""),u=o[0],d=o[1],p=a(u),b=p[0],h=p[1],f=c(!0);return s((function(){return function(){return f.current=!1}}),[]),s((function(){fetch(r.toWidgetAssetUrl("flow/meter2.svg?etag=25b083a27e5d9661b72a2a87ed9d3413","ConfigurationImage")).then((function(e){return e.ok||304===e.status?e.text():""})).then((function(t){f.current&&(d(t),h(l(t,e.displayText)))}))}),[r]),s((function(){h(l(u,n))}),[n]),i.createElement("div",{id:"meter2-"+t},i.createElement("div",{dangerouslySetInnerHTML:{__html:b}}))}));u.displayName="Meter2";var d={metadata:{typeId:"2f40c610-e132-11ea-8ea6-b192d7d83377",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),width:Object(n.A)(93),height:Object(n.A)(188),displayText:Object(n.K)("")},component:u}}},1966:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return m}));var n=r(2),i=r(4),o=r(0),a=r(17),s=r(51),c=Object(s.c)("assetUtils")((function(e){var t,r=e.id,n=e.assetUtils,i=e.direction;t=Math.max(e.flow,0);var a=n.toWidgetAssetUrl("flow/pipe_with_wave_pipe2.svg?etag=8e3804e1caff460daed49797fa6b9db3","ConfigurationImage"),s=n.toWidgetAssetUrl("flow/pipe_with_wave_wave5.svg?etag=facdf0f31184c9c9aa61175877894d1d","ConfigurationImage");return o.createElement("div",{id:"pipewithwave-"+r,style:{position:"relative",width:"100%",height:"100%",background:"url("+a+") top left/100% 100% no-repeat",overflow:"hidden"}},o.createElement("div",{style:{position:"absolute",bottom:0,left:0,width:"100%",height:t+"%",overflow:"hidden"}},o.createElement(f,{style:{backgroundImage:"url("+s+")"},theme:{direction:i>=0?"leftward":"rightward"}}),o.createElement(g,null)," "))}));c.displayName="PipeWithWave";var l,u,d,p,b=150,h={leftward:Object(a.e)(l||(l=Object(i.__makeTemplateObject)(["\n 0% {transform: translate3d(","px, 0, 0);}\n 100% {transform: translate3d(","px, 0, 0);}\n "],["\n 0% {transform: translate3d(","px, 0, 0);}\n 100% {transform: translate3d(","px, 0, 0);}\n "])),-150,-300),rightward:Object(a.e)(u||(u=Object(i.__makeTemplateObject)(["\n 0% {transform: translate3d(","px, 0, 0);}\n 100% {transform: translate3d(","px, 0, 0);}\n "],["\n 0% {transform: translate3d(","px, 0, 0);}\n 100% {transform: translate3d(","px, 0, 0);}\n "])),-300,-150)},f=a.d.div(d||(d=Object(i.__makeTemplateObject)(["\n position: absolute;\n top: 0;\n left: 0;\n width: ","px; // \u4e5f\u5c31\u662f\u8bf4\u53ea\u80fd\u663e\u793a 40 \u4e2a\u6ce2\u957f, \u592a\u5bbd\u7684\u8bdd\u5c31\u4e0d\u884c\u4e86\n height: ","px;\n\n // bg image \u5728 inline style \u91cc\n background-position: bottom left;\n background-size: ","px ","px;\n\n animation: "," 1.3s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;\n"],["\n position: absolute;\n top: 0;\n left: 0;\n width: ","px; // \u4e5f\u5c31\u662f\u8bf4\u53ea\u80fd\u663e\u793a 40 \u4e2a\u6ce2\u957f, \u592a\u5bbd\u7684\u8bdd\u5c31\u4e0d\u884c\u4e86\n height: ","px;\n\n // bg image \u5728 inline style \u91cc\n background-position: bottom left;\n background-size: ","px ","px;\n\n animation: "," 1.3s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;\n"])),6e3,18,b,18,(function(e){return h[e.theme.direction]})),g=a.d.div(p||(p=Object(i.__makeTemplateObject)(["\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: calc(100% - ","px + 2px); // \u9664\u53bb Wave \u5176\u4ed6\u7684\u90fd\u7b97\u662f Base, 2px \u662f\u4e3a\u4e86\u9632\u6b62\u95f4\u9699\n background: #79B0E7;\n"],["\n position: absolute;\n bottom: 0;\n left: 0;\n width: 100%;\n height: calc(100% - ","px + 2px); // \u9664\u53bb Wave \u5176\u4ed6\u7684\u90fd\u7b97\u662f Base, 2px \u662f\u4e3a\u4e86\u9632\u6b62\u95f4\u9699\n background: #79B0E7;\n"])),18),m={metadata:{typeId:"33b42fe0-d7e9-11ea-9aa1-45e6b368718d",ver:"1.1",propsSchema:{dumb:Object(n.I)(!1),flow:Object(n.B)(50),direction:Object(n.u)(1)},component:c}}},1967:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return p}));var n,i=r(2),o=r(4),a=r(0),s=r(17),c=r(51),l=r(3),u=function(e){function t(t){var r=e.call(this,t)||this;return r.state={svg:""},r}return Object(o.__extends)(t,e),t.prototype.componentWillUnmount=function(){this.hasMounted=!1},t.prototype.componentDidMount=function(){var e=this;this.hasMounted=!0;var t=this.props,r=t.assetUtils,n=t.imageKey;fetch(r.toWidgetAssetUrl(n,"ConfigurationImage")).then((function(e){return e.ok||304===e.status?e.text():""})).then((function(t){e.hasMounted&&e.setState({svg:t})}))},t.prototype.render=function(){var e=this.props,t=e.id,r=(e.imageKey,e.waterLevel),n=Object(l.clamp)(Math.round(100-+r),0,100);return a.createElement(d,{id:"config-"+t,theme:{height:n}},a.createElement("div",{dangerouslySetInnerHTML:{__html:this.state.svg}}))},t.displayName="Tank",t=Object(o.__decorate)([Object(c.c)("assetUtils")],t)}(a.Component),d=s.d.div(n||(n=Object(o.__makeTemplateObject)(["\n position: relative;\n width: 100%;\n height: 100%;\n overflow: hidden;\n\n & img,\n & div,\n & div svg {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n & svg .mask {\n height: ","px;\n transition: height 0.2s ease;\n }\n"],["\n position: relative;\n width: 100%;\n height: 100%;\n overflow: hidden;\n\n & img,\n & div,\n & div svg {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n & svg .mask {\n height: ","px;\n transition: height 0.2s ease;\n }\n"])),(function(e){return e.theme.height})),p={metadata:{typeId:"56837b48-074c-492f-8e18-2be222036396",ver:"1.0",propsSchema:{dumb:Object(i.I)(!1),height:Object(i.A)(188),imageKey:Object(i.K)("flow/tank.svg?etag=aa0f278fff340ec73e434ab1d017e0a2"),waterLevel:Object(i.A)(90),width:Object(i.A)(210)},component:u}}},1968:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return c}));var n=r(2),i=r(4),o=r(0),a=r(51),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.render=function(){var e=this.props,t=e.id,r=e.imageKey;return o.createElement("div",{id:"deco-"+t+"-"+ +new Date,style:{width:"100%",height:"100%",overflow:"hidden"}},o.createElement("img",{src:this.props.assetUtils.toWidgetAssetUrl(r,"Decoration"),style:{display:"block",width:"100%",height:"100%"}}))},t.displayName="Decoration",t=Object(i.__decorate)([Object(a.c)("assetUtils")],t)}(o.Component),c={metadata:{typeId:"e7d9041a-9e6d-4572-8194-25afb40bf539",ver:"1.0",propsSchema:{width:Object(n.A)(300),height:Object(n.A)(300),imageKey:Object(n.K)("placeholder"),dumb:n.I},component:s}}},1969:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return f}));var n=r(2),i=r(27),o=r(3),a=r(4),s=r(0),c=r(51),l=r(2022),u=function(e){function t(t){var r=e.call(this,t)||this;return r.placeHolder=s.createElement("p",{style:{width:"100%",height:"100%",margin:0,display:"flex",alignItems:"center",justifyContent:"space-around",backgroundColor:"#fff",userSelect:"none"},draggable:!1},s.createElement(l.a,{size:"4em",style:{opacity:.6}})),r}return Object(a.__extends)(t,e),t.prototype.render=function(){var e=this,t=this.props,r=t.id,n=t.paddingBottom,i=t.paddingLeft,o=t.paddingRight,a=t.paddingTop,c=t.src,l=t.useAbs,u=t.fillMode,d=c.trim(),h=!d;return l||/^http(s)?/.test(c)?d.replace(/\@.*/gi,""):d=this.props.assetUtils.toUserUploadedImageUrl(b(p(c))),s.createElement("div",{id:"widget-"+r,draggable:!1,style:{width:"100%",height:"100%",paddingBottom:n+"px",paddingLeft:i+"px",paddingRight:o+"px",paddingTop:a+"px"}},h?this.placeHolder:s.createElement("div",{draggable:!1,ref:function(t){return e.image=t},key:d,style:{width:"100%",height:"100%",backgroundImage:"url("+d+")",backgroundSize:u,backgroundRepeat:"no-repeat",backgroundPosition:"center"}}))},t.displayName="Image",t=Object(a.__decorate)([Object(c.c)("assetUtils")],t)}(s.PureComponent),d=function(e){return/(.*\.(jpg|jpeg|png|gif|svg))/i.test(e)};function p(e){if(!Object(o.isString)(e))return"";if(/\?etag\=/i.test(e)){var t=/(.*\.(jpg|jpeg|png|gif|svg)\?etag\=\S+)?\@(\d+(\.\d+)?)\*(\d+(\.\d+)?)\@(\d+(\.\d+)?)\*(\d+(\.\d+)?)$/i,r=e.match(t);return Object(o.isArray)(r)?{src:r[1],srcWidth:Number(r[3]),srcHeight:Number(r[5]),width:Number(r[7]),height:Number(r[9])}:d(e)?e:""}t=/(.*\.(jpg|jpeg|png|gif|svg))?\@(\d+(\.\d+)?)\*(\d+(\.\d+)?)\@(\d+(\.\d+)?)\*(\d+(\.\d+)?)$/i,r=e.match(t);return Object(o.isArray)(r)?{src:r[1],srcWidth:Number(r[3]),srcHeight:Number(r[5]),width:Number(r[7]),height:Number(r[9])}:d(e)?e:""}var b=function(e){return Object(o.isString)(e)?e:e.src},h=function(e,t){return Object(o.isString)(e)?0:e[t]},f={metadata:{typeId:"fa9e4c9e-89ab-4b77-b567-e6e4a525e255",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(200),paddingBottom:Object(n.B)(0),paddingLeft:Object(n.B)(0),paddingRight:Object(n.B)(0),paddingTop:Object(n.B)(0),src:Object(n.K)(""),useAbs:Object(n.I)(!1),visibility:Object(n.I)(!0),width:Object(n.A)(200),fillMode:Object(n.K)("100% 100%")},component:u,mbrDef:{mbrCalculator:function(e){var t=e.src,r=e.width,n=e.height,o=p(t),a=h(o,"width")||r,s=h(o,"height")||n;return new i.a(0,0,a,s)},mbrUpdater:function(e,t){var r=t.src,n=e.width,i=e.height,o=/(.*)\@(\d+(\.\d+)?)\*(\d+(\.\d+)?)?$/i;return{src:o.test(r)?r.replace(o,(function(e,t){return t+"@"+n+"*"+i})):r+"@"+n+"*"+i+"@"+n+"*"+i}}}}}},1970:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return f}));var n,i=r(2),o=r(4),a=r(0),s=r(17),c=r(141),l=r(62);!function(e){e.NONE="none",e.RIGHT="right",e.BOTTOM="bottom"}(n||(n={}));var u=s.d.div(d||(d=Object(o.__makeTemplateObject)(["\n overflow: hidden;\n"],["\n overflow: hidden;\n"])));u.displayName="ImageListContainer";var d,p,b=s.d.div(p||(p=Object(o.__makeTemplateObject)(["\n float: left;\n background-repeat: no-repeat;\n background-size: 100% 100%;\n"],["\n float: left;\n background-repeat: no-repeat;\n background-size: 100% 100%;\n"])));b.displayName="ImageListUnit";var h=r(127),f={metadata:{typeId:"a21a5d81-5d05-4f0a-aa27-917d64a8fdca",ver:"1.0",propsSchema:{dumb:Object(i.I)(!1),width:Object(i.A)(615),height:Object(i.A)(80),data:Object(i.J)({tableData:{headers:[{name:"URL",type:"string"},{name:"\u6587\u5b57",type:"string"}],data:[["https://iotviz2.cdn.bcebos.com/static/image/man1.png","37.3"],["https://iotviz2.cdn.bcebos.com/static/image/man2.png","38.0"],["https://iotviz2.cdn.bcebos.com/static/image/man1.png","37.4"],["https://iotviz2.cdn.bcebos.com/static/image/man2.png","38.1"],["https://iotviz2.cdn.bcebos.com/static/image/man1.png","37.5"],["https://iotviz2.cdn.bcebos.com/static/image/man2.png","38.2"]]},imageIndex:0,textIndex:1}),autoScroll:Object(i.I)(!0),scrollInterval:Object(i.A)(5e3),scrollOffset:Object(i.A)(630),unitWidth:Object(i.A)(195),unitHeight:Object(i.A)(80),unitBackgroundColor:Object(i.K)("#14192d"),unitBackgroundImage:Object(i.K)("https://iotviz2-user.gz.bcebos.com/dev/a0333bd605cb453aa5e1717b26393a58/images/unitBack.png"),unitGap:Object(i.A)(15),imgWidth:Object(i.A)(80),imgHeight:Object(i.A)(80),imgFillMode:Object(i.K)("100% 100%"),textPosition:Object(i.K)("right"),imageTextGap:Object(i.A)(15),fontFamily:Object(i.n)("Digital-7Mono"),fontSize:Object(i.o)(36),fontColor:Object(i.j)("#eba945"),fontStyle:Object(i.p)("normal"),fontWeight:Object(i.q)("normal"),textDecoration:Object(h.c)("none")},component:function(e){var t=e.data.tableData.data;if(0===t.length||e.data.imageIndex>=t[0].length)return a.createElement(a.Fragment,null);var r=e.unitWidth,n=e.unitHeight,i=e.unitBackgroundColor,o=e.unitBackgroundImage,s=e.unitGap,d=e.id,p=e.imgWidth,h=e.imgHeight,f=e.imgFillMode,g=e.textPosition,m=e.imageTextGap,O=e.fontColor,j=e.fontSize,v=e.fontFamily,y=e.fontWeight,w=e.fontStyle,x=e.textDecoration,S=e.autoScroll,C=e.scrollInterval,A=e.scrollOffset,E=r*t.length+s*(t.length-1);o&&!/^http(s):/.test(o)&&(o=l.AssetUtils.toUserUploadedImageUrl(o.replace(/@.+$/,"")));var _=a.useRef(null),T=a.useRef(null);return a.useEffect((function(){var e,t=0,r=function(){(t+=A)>E&&(t=0),_.current.scrollLeft=t};S?e=setInterval(r,Math.max(C,1e3)):clearInterval(e);var n=function(){S&&clearInterval(e)},i=function(){S&&(t=_.current.scrollLeft,e=setInterval(r,Math.max(C,1e3)))};return T.current.addEventListener("mouseenter",n),T.current.addEventListener("mouseleave",i),function(){clearInterval(e),T.current.removeEventListener("mouseenter",n),T.current.removeEventListener("mouseleave",i)}}),[S,A,r,s,t]),a.createElement(c.a,{style:{width:e.width+"px",height:e.height+"px",overflowX:"auto",scrollBehavior:"smooth"},ref:_,id:"widget-"+d},a.createElement(u,{style:{width:E,height:n},ref:T},t.map((function(c,l){return a.createElement(b,{key:"image-list-unit-"+l,style:{width:r,height:n,backgroundColor:i,backgroundImage:"url("+o+")",marginRight:l===t.length-1?0:s}},"none"===g&&a.createElement(a.Fragment,null,a.createElement("div",{className:"image-list-image",style:{width:p,height:h,marginLeft:(r-p)/2,marginTop:(n-h)/2,backgroundImage:"url("+c[e.data.imageIndex]+")",backgroundSize:f,backgroundRepeat:"no-repeat"}})),"right"===g&&a.createElement(a.Fragment,null,a.createElement("div",{className:"image-list-image",style:{width:p,height:h,marginTop:(n-h)/2,marginRight:m,backgroundImage:"url("+c[e.data.imageIndex]+")",backgroundSize:f,backgroundRepeat:"no-repeat",float:"left"}}),a.createElement("div",{className:"image-list-text",style:{width:r-p-m,height:n,lineHeight:1.1*n+"px",fontSize:j,fontFamily:v,fontWeight:y,fontStyle:w,textDecoration:x,color:O,float:"left"}},e.data.textIndext){var n=e;e=t,t=n}return r<=e?0:r>=t?1:(r-e)/(t-e)},c=function(e,t,r){return Object(o.a)(e)[r?"brighter":"darker"](t).toString()},l=function(e){function t(t){return e.call(this,t)||this}return Object(i.__extends)(t,e),t.prototype.getMarkerText=function(){var e=this.props,t=e.showPercentage,r=e.startValue,n=e.endValue,i=e.currentValue;return t?new Number(100*s(r,n,i)).toFixed(0)+"%":i},t.prototype.renderMarker=function(e){var t=this.props,r=t.id,n=t.klevel,i=t.brighter,o=t.showMarker,s=(t.showPercentage,t.barBaseColor),l=t.barSize,u=t.textColor,d=t.fontFamily,p=t.fontSize,b=t.fontStyle,h=t.fontWeight;t.startValue,t.endValue,t.currentValue;if(o){var f=Math.max(l/2,e-l/2),g=Math.max(l/4,3),m=r+"-rg";return a.createElement("g",{transform:"translate("+f+", 0)"},a.createElement("defs",null,a.createElement("filter",{id:m,x:"-40%",y:"-40%",width:"180%",height:"180%",filterUnits:"userSpaceOnUse"},a.createElement("feGaussianBlur",{in:"SourceGraphic",stdDeviation:"10"}),a.createElement("feOffset",{dx:"5",dy:"5",result:"offsetblur"}),a.createElement("feOffset",{dx:"-5",dy:"-5",result:"offsetblur"}))),a.createElement("circle",{transform:"translate(0, "+l/2+")",cx:0,cy:0,r:Math.max(g+7,10),fill:c(s,n+10,i),filter:"url(#"+m+")"}),a.createElement("circle",{transform:"translate(0, "+l/2+")",cx:0,cy:0,r:g,fill:c(s,n+10,i)}),a.createElement("text",{transform:"translate(0, -5)",fill:u,textAnchor:"middle",style:{fontFamily:d,fontSize:p,fontStyle:b,fontWeight:h}},this.getMarkerText()),a.createElement("polygon",{transform:"translate(0, "+(l+5)+")",points:"0,0 "+-g+","+g+" "+g+","+g,fill:c(s,n,i)}))}return null},t.prototype.render=function(){var e=this.props,t=e.id,r=e.width,i=e.height,o=e.brighter,l=e.klevel,u=e.barBaseColor,d=e.barBgColor,p=e.barSize,b=(e.fontFamily,e.fontSize,e.fontStyle,e.textColor,e.showPercentage,e.showMarker,e.startValue),h=e.endValue,f=e.currentValue,g={width:"100%",height:"100%",padding:"0 10",overflow:"visible"},m=Math.max(20,r-20),O=function(e,t,r,n){return s(e,t,r)*n}(b,h,f,m),j=t+"-lg",v="string"!=typeof d;return a.createElement("svg",{style:g,width:m,height:i},a.createElement("defs",null,a.createElement("linearGradient",{id:j},a.createElement("stop",{offset:0,stopColor:u}),a.createElement("stop",{offset:1,stopColor:c(u,l,o)}))),a.createElement("g",{transform:"translate(0, "+i/2+")"},v&&a.createElement("defs",null,a.createElement(n.b,{id:"barBgGradient",gradient:d})),a.createElement("rect",{rx:p/2,ry:p/2,fill:v?"url(#barBgGradient)":d,height:p,width:m}),a.createElement("rect",{rx:p/2,ry:p/2,fill:"url(#"+j+")",height:p,width:O}),this.renderMarker(O)))},t.displayName="PercentageBar",t}(a.PureComponent),u={metadata:{typeId:"2d17f148-e258-4e1d-9db8-35a866f8e468",ver:"1.0",propsSchema:{barBaseColor:Object(n.j)("rgb(23,117,234)"),barBgColor:Object(n.r)("rgb(31,46,80)"),barSize:Object(n.m)(10),brighter:Object(n.I)(!0),currentValue:Object(n.m)(75),dumb:Object(n.I)(!1),endValue:Object(n.m)(100),fontFamily:Object(n.n)("sans-serif"),fontSize:Object(n.o)(15),fontStyle:Object(n.p)("normal"),fontWeight:Object(n.q)("normal"),height:Object(n.A)(50),klevel:Object(n.B)(3),showMarker:Object(n.I)(!0),showPercentage:Object(n.I)(!0),startValue:Object(n.m)(0),textColor:Object(n.j)("#108CEE"),width:Object(n.A)(150)},eventsSchema:{},component:l},publicProps:{textColor:!0,barColor:!0,currentValue:!0,startValue:!0,endValue:!0}}},1973:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return h}));var n=r(2),i=r(13),o=r(4),a=r(40),s=r(3),c=r(0),l=r(16),u=r(23),d=[u.e,u.f,u.h,Object(u.k)("series"),u.x,u.t,u.z,u.A,u.u],p=function(e){function t(t){var r=e.call(this,t)||this;return r.ecOpt={},r.onRef=function(e){r.container=e},r}return Object(o.__extends)(t,e),t.prototype.componentDidUpdate=function(e){if(this.props.series!==e.series){this.ecOpt={};var t=Object(s.reduce)(d,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;Object(s.isEmpty)(t.series)&&delete t.dataZoom,this.echarts.setOption(t,!0)}else{t=Object(s.reduce)(d,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:e,nextProps:this.props}).patchOpt;Object(s.isEmpty)(t)||this.echarts.setOption(t)}this.props.width===e.width&&this.props.height===e.height||this.echarts.resize()},t.prototype.componentDidMount=function(){this.echarts=Object(a.init)(Object(l.findDOMNode)(this.container),null);var e=Object(s.reduce)(d,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;this.echarts.setOption(e)},t.prototype.componentWillUnmount=function(){Object(a.dispose)(this.echarts)},t.prototype.render=function(){return c.createElement("div",{style:{width:"100%",height:"100%"},ref:this.onRef})},t.displayName="TimeSeriesBarChart",t.defaultProps={showXAxisTick:!1,showYAxisTick:!1,showXAxisLine:!1,showYAxisLine:!1,themeName:"light"},t}(c.Component),b=r(34),h={metadata:{typeId:"d8e16173-d095-4e1e-8838-5b6c4e5d9cc1",ver:"1.0",propsSchema:{xAxisLineColor:Object(n.j)("#CBD3E0"),yAxisLineColor:Object(n.j)("#CBD3E0"),axisUnit:Object(i.r)(""),background:Object(n.i)("transparent"),borderColor:Object(n.j)("transparent"),borderStyle:Object(n.y)("none"),borderWidth:Object(n.B)(0),color:Object(i.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),data:Object(i.x)([[[1503474800837,null],[1503474810837,33],[1503474820837,34],[1503474830837,null]],[[1503474800837,null],[1503474810837,35],[1503474820837,35],[1503474830837,null]],[[1503474800837,null],[1503474810837,55],[1503474820837,53],[1503474830837,null]],[[1503474800837,null],[1503474810837,26],[1503474820837,20],[1503474830837,null]]]),dataZoomBgColor:Object(n.j)("#EAF6FE"),dataZoomBorderColor:Object(n.j)("transparent"),dataZoomBottom:Object(n.B)(20),dataZoomFillerColor:Object(n.j)("rgba(16, 140, 238, 0.5)"),dataZoomHandleIcon:Object(i.l)("image://data:image/svg+xml;utf8,\n \n \n \n \n \n \n \n "),dataZoomHeight:Object(n.E)(8),dataZoomTextColor:Object(n.j)("transparent"),dumb:Object(n.I)(!1),height:Object(n.A)(300),hidden:Object(n.I)(!1),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("right"),legendIcon:Object(i.n)("rect"),legendItemGap:Object(n.B)(15),legendItemHeight:Object(n.A)(12),legendItemWidth:Object(n.A)(12),legendOrient:Object(i.h)("horizontal"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(20),legendPaddingTop:Object(n.B)(20),legendSelected:Object(i.o)({}),legendVerticalAlign:Object(n.N)("top"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),series:Object(i.t)(["\u5317\u4eac\u6e29\u5ea6","\u4e0a\u6d77\u6e29\u5ea6","\u5317\u4eac\u7a7a\u6c14\u8d28\u91cf","\u4e0a\u6d77\u7a7a\u6c14\u8d28\u91cf"]),showDataShadow:Object(n.I)(!1),showDataZoomX:Object(n.I)(!0),showLegend:Object(n.I)(!0),showSplitLineX:Object(n.I)(!1),showSplitLineY:Object(n.I)(!0),showTooltip:Object(n.I)(!0),showXAxis:Object(n.I)(!0),showXAxisLabel:Object(n.I)(!0),showXAxisLine:Object(n.I)(!1),showXAxisTick:Object(n.I)(!1),showYAxis:Object(n.I)(!0),showYAxisLabel:Object(n.I)(!0),showYAxisLine:Object(n.I)(!1),showYAxisTick:Object(n.I)(!1),xAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),yAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),tooltipAxisColor:Object(n.j)("#108CEE"),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),tooltipTrigger:Object(i.y)("axis"),width:Object(n.A)(400),xAxisFontFamily:Object(n.n)("sans-serif"),xAxisFontSize:Object(n.o)(12),xAxisFontStyle:Object(n.p)("normal"),xAxisFontWeight:Object(n.q)("normal"),xAxisLabelFormatter:Object(n.L)("HH:mm:ss"),xAxisTextColor:Object(n.j)("#333"),yAxisFontFamily:Object(n.n)("sans-serif"),yAxisFontSize:Object(n.o)(12),yAxisFontStyle:Object(n.p)("normal"),yAxisFontWeight:Object(n.q)("normal"),yAxisTextColor:Object(n.j)("#333"),min:Object(i.a)("auto"),max:Object(i.a)("auto")},eventsSchema:{},component:p,propsResolver:b.a}}},1974:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return d}));var n=r(4),i=r(294),o=r(2),a=r(27),s=r(28),c=r(49),l=r(356),u={typeId:"c65a06a7-e309-4e5f-9283-778da9abc2b8",ver:"1.0",mediaType:a.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({type:Object(o.K)("chord"),width:Object(o.A)(150),height:Object(o.A)(150),degree:Object(o.A)(230)},s.c),s.b),s.a),propsResolver:c.a,component:l.a},d=Object(n.__assign)(Object(n.__assign)({},i.commonSettings),{metadata:u})},1975:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return d}));var n=r(4),i=r(294),o=r(2),a=r(28),s=r(27),c=r(49),l=r(356),u={typeId:"27195d9a-a141-4590-a474-c843884c74ff",ver:"1.0",mediaType:s.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({type:Object(o.K)("pie"),width:Object(o.A)(150),height:Object(o.A)(150),degree:Object(o.A)(230)},a.c),a.b),a.a),propsResolver:c.a,component:l.a},d=Object(n.__assign)(Object(n.__assign)({},i.commonSettings),{metadata:u})},1976:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return a}));var n=r(2),i=r(0),o=r.n(i),a={metadata:{typeId:"c9be614e-a6f8-11ea-bb37-0242ac130002",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),width:Object(n.A)(320),height:Object(n.A)(180),src:Object(n.K)("https://iotviz2.cdn.bcebos.com/\u5ba3\u4f20\u89c6\u9891/\u4e09\u5206\u949f\u5236\u4f5c\u7269\u53ef\u89c6\u5927\u5c4f.mp4"),controls:Object(n.I)(!0),autoplay:Object(n.I)(!1),loop:Object(n.I)(!1),muted:Object(n.I)(!0)},eventsSchema:{},component:function(e){var t=e.id,r=e.width,n=e.height,i=e.src,a=e.controls,s=e.autoplay,c=e.loop,l=e.muted;return o.a.createElement("div",{id:"widget-"+t,key:i,className:"iotviz-widget-video"},o.a.createElement("video",{controls:a,width:r,height:n,autoPlay:s,loop:c,muted:l,controlsList:"nodownload",disablePictureInPicture:!0},o.a.createElement("source",{src:i,type:"video/mp4"}),o.a.createElement("source",{src:i,type:"video/webm"}),"Sorry, your browser doesn't support embedded videos."))}},publicProps:{src:!0}}},1977:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return l}));var n=r(2),i=r(4),o=r(0),a=r.n(o),s=r(964),c=(r(1928),r(1929),function(e){var t=Object(o.useRef)(null),r=Object(o.useRef)(null);return Object(o.useEffect)((function(){return r.current=Object(s.a)(t.current,e,(function(){})),function(){r.current&&r.current.dispose()}}),[]),a.a.createElement("div",null,a.a.createElement("div",{"data-vjs-player":!0},a.a.createElement("video",{ref:t,className:"video-js vjs-theme-forest"})))}),l={metadata:{typeId:"d08d6eb9-9875-4e3a-a5a9-844168f17d2b",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),width:Object(n.A)(480),height:Object(n.A)(270),src:Object(n.K)("https://gcalic.v.myalicdn.com/gc/wgw05_1/index.m3u8?contentid=2820180516001"),autoplay:Object(n.I)(!1),muted:Object(n.I)(!0)},eventsSchema:{},component:function(e){var t=e.id,r=e.width,n=e.height,o=e.src,s=e.autoplay,l=e.muted,u={width:r,height:n,autoplay:s,controls:!0,muted:l,sources:[{src:o,type:"application/x-mpegURL"}]},d=o+s+l+r+n;return a.a.createElement("div",{id:"widget-"+t,key:d,className:"iotviz-widget-video"},a.a.createElement(c,Object(i.__assign)({},u)))}},publicProps:{src:!0}}},1978:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return l}));var n=r(4),i=r(2),o=r(13),a=r(361),s=r(296),c=r(385),l={metadata:{typeId:"2758ac24-ff00-11ea-adc1-0242ac120002",ver:"1.0",propsSchema:Object(n.__assign)(Object(n.__assign)({},s.a.propsSchema),{type:Object(i.K)("scatter3D"),yAxisType:Object(o.d)("value"),seriesMap:Object(c.a)({seriesOpt:{xCol:1,yCol:2,zCol:3},tableData:s.b}),opacity:Object(i.B)(50),visualMapMin:Object(i.m)(100),visualMapMax:Object(i.m)(400)}),component:a.a,eventsSchema:{}}}},1979:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return d}));var n=r(4),i=r(2),o=r(56),a=r(13),s=r(34),c=r(153),l=r(129),u=r(181),d={metadata:{typeId:"5a86883d-3c9d-4665-baa9-1b94c707fc83",ver:"1.1",propsSchema:Object(n.__assign)(Object(n.__assign)({},l.a.propsSchema),{seriesType:Object(a.s)("lineBar"),customizedSeries:Object(u.b)([]),ifSmooth:Object(i.I)(!1)}),component:c.a,eventsSchema:l.a.eventsSchema,interactSessionMiddleware:o.c,propsResolver:s.a}}},1980:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return d}));var n=r(4),i=r(2),o=r(56),a=r(13),s=r(34),c=r(153),l=r(129),u=r(181),d={metadata:{typeId:"87721d3b-0e6c-402f-9905-391c724b1041",ver:"1.1",propsSchema:Object(n.__assign)(Object(n.__assign)({},l.a.propsSchema),{stackEnable:Object(i.I)(!0),seriesMap:Object(a.j)({seriesOpt:[{xCol:0,yCol:1,seriesName:"PM2.5"},{xCol:0,yCol:2,seriesName:"PM10"}],dataTable:{headers:[{name:"\u57ce\u5e02",type:"string"},{name:"PM2.5",type:"number"},{name:"PM10",type:"number"}],data:[["\u5317\u4eac",30,67],["\u4e0a\u6d77",39,68],["\u5e7f\u5dde",21,39]]}}),barWidth:Object(i.E)(35),customizedSeries:Object(u.c)([])}),component:c.a,eventsSchema:l.a.eventsSchema,interactSessionMiddleware:o.c,propsResolver:s.a}}},1981:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return u}));var n=r(4),i=r(2),o=r(13),a=r(34),s=r(153),c=r(246),l=r(181),u={metadata:{typeId:"d12345fd-f946-4b64-94e9-532019cdb8b2",ver:"1.1",propsSchema:Object(n.__assign)(Object(n.__assign)({},c.a.propsSchema),{seriesMap:Object(o.j)({seriesOpt:[{xCol:0,yCol:1,seriesName:"PM2.5"},{xCol:0,yCol:2,seriesName:"PM10"}],dataTable:{headers:[{name:"\u57ce\u5e02",type:"string"},{name:"PM2.5",type:"number"},{name:"PM10",type:"number"}],data:[["\u5317\u4eac",30,67],["\u4e0a\u6d77",39,68],["\u5e7f\u5dde",21,39]]}}),stackEnable:Object(i.I)(!0),customizedSeries:Object(l.c)([])}),component:s.a,eventsSchema:c.a.eventsSchema,interactSessionMiddleware:c.a.interactSessionMiddleware,propsResolver:a.a}}},1982:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return o}));var n=r(2),i=r(72),o={metadata:{typeId:"ffd75623-b334-44b9-9392-bf8143989f38",ver:"1.1",propsSchema:{width:Object(n.A)(300),height:Object(n.A)(300),imageKey:Object(n.K)("placeholder"),dumb:n.I},component:i.a}}},1983:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return o}));var n=r(2),i=r(72),o={metadata:{typeId:"4785ebca-e655-4f4f-a0a7-fa0b8016e516",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(105),imageKey:Object(n.K)("flow/meter.svg?etag=82f2ba6c149524036cf00a4a5a71c553")},component:i.a}}},1984:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return o}));var n=r(2),i=r(72),o={metadata:{typeId:"d3c09216-0baa-4a2d-9cea-6a561dfaa6fe",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(183),imageKey:Object(n.K)("flow/meterdigital.svg?etag=d901443539bce87c18dceb7c679c1fdb"),width:Object(n.A)(171)},component:i.a}}},1985:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return o}));var n=r(2),i=r(72),o={metadata:{typeId:"e8793f51-0703-494d-b49c-277709cde722",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(202),imageKey:Object(n.K)("flow/motor.svg?etag=e70d4a1c631ca18bd9df537efd66774b"),width:Object(n.A)(316)},component:i.a}}},1986:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return o}));var n=r(2),i=r(72),o={metadata:{typeId:"92ed6e35-353b-4ff7-ba85-16754263251a",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(43),imageKey:Object(n.K)("flow/pipe.svg?etag=6788f608728e1c3d86dd06d5dbf3275c"),width:Object(n.A)(105)},component:i.a}}},1987:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return o}));var n=r(2),i=r(72),o={metadata:{typeId:"63d77dbf-4ab8-4cc1-a341-7473798ec41f",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(88),imageKey:Object(n.K)("flow/pipe_cross.svg?etag=d60504013d4e297c5235787062ddafc8"),width:Object(n.A)(98)},component:i.a}}},1988:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return o}));var n=r(2),i=r(72),o={metadata:{typeId:"2fdd81cf-f224-4686-bf20-b7be7d5d5ef4",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(89),imageKey:Object(n.K)("flow/pipe_curved.svg?etag=decd906801fe508318c01a179ca3868c"),width:Object(n.A)(93)},component:i.a}}},1989:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return o}));var n=r(2),i=r(72),o={metadata:{typeId:"2dde46f8-f5e7-445c-889e-ee26578fa525",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(85),imageKey:Object(n.K)("flow/pipe_t.svg?etag=63e2d9d5511c65ad63bad6b7b89acae4"),width:Object(n.A)(65)},component:i.a}}},1990:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return o}));var n=r(2),i=r(72),o={metadata:{typeId:"807f7529-ec32-4e2e-bd00-3dbf4c1f0e30",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(195),imageKey:Object(n.K)("flow/pump.svg?etag=5ae7a99d1d8b406a9bc333eb6d0fdbfe"),width:Object(n.A)(270)},component:i.a}}},1991:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return o}));var n=r(2),i=r(72),o={metadata:{typeId:"7ed33b1b-bd15-43cc-9f4d-60c596c6db56",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(245),imageKey:Object(n.K)("flow/transformer.svg?etag=d58b62d7c6eaaee65df8b702017f5ead"),width:Object(n.A)(245)},component:i.a}}},1992:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return o}));var n=r(2),i=r(72),o={metadata:{typeId:"799ab483-b28c-401a-98e2-5b4c03d8ec06",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(86),imageKey:Object(n.K)("flow/valve.svg?etag=71743f9e4c06d9fa9ff1a7faa021079a"),width:Object(n.A)(129)},component:i.a}}},1993:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return o}));var n=r(2),i=r(72),o={metadata:{typeId:"c4758e89-0f2a-4528-bae0-2f1037dba585",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(86),imageKey:Object(n.K)("flow/valve2.svg?etag=faa61a34ddf82e509e0dc084a804f43a"),width:Object(n.A)(129)},component:i.a}}},1994:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return o}));var n=r(2),i=r(363),o={metadata:{typeId:"6a757758-ef53-439b-abce-ffd1c95b0684",ver:"1.0",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(50),iconColor:Object(n.j)("#3399FF"),iconKey:Object(n.K)("common/idea.svg"),paddingBottom:Object(n.B)(0),paddingLeft:Object(n.B)(0),paddingRight:Object(n.B)(0),paddingTop:Object(n.B)(0),width:Object(n.A)(50)},component:i.a},publicProps:{iconColor:!0}}},1995:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return o}));var n=r(2),i=r(363),o={metadata:{typeId:"6a757758-ef53-439b-abce-ffd1c95b0684",ver:"1.1",propsSchema:{dumb:Object(n.I)(!1),height:Object(n.A)(50),iconColor:Object(n.j)("#3399FF"),iconKey:Object(n.K)("common/idea.svg"),paddingBottom:Object(n.B)(0),paddingLeft:Object(n.B)(0),paddingRight:Object(n.B)(0),paddingTop:Object(n.B)(0),width:Object(n.A)(50)},component:i.a},publicProps:{iconColor:!0}}},1996:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return s}));var n=r(2),i=r(13),o=r(34),a=r(364),s={metadata:{typeId:"601c2a93-55f9-4dc0-b36c-8bd0e35ab3af",ver:"1.0",propsSchema:{xAxisLineColor:Object(n.j)("#CBD3E0"),yAxisLineColor:Object(n.j)("#CBD3E0"),axisUnit:Object(i.r)(""),background:Object(n.i)("transparent"),borderColor:Object(n.j)("transparent"),borderStyle:Object(n.y)("none"),borderWidth:Object(n.B)(0),category:Object(i.t)(["\u5317\u4eac","\u4e0a\u6d77","\u5e7f\u5dde","\u6df1\u5733","\u96c4\u5b89","\u676d\u5dde","\u56db\u5ddd"]),color:Object(i.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),data:Object(i.e)([[33,35,26,13,25,23,34],[25,38,25,45,39,20,23]]),dataZoomBgColor:Object(n.j)("#EAF6FE"),dataZoomBorderColor:Object(n.j)("transparent"),dataZoomBottom:Object(n.B)(20),dataZoomFillerColor:Object(n.j)("rgba(16, 140, 238, 0.5)"),dataZoomHandleIcon:Object(i.l)("image://data:image/svg+xml;utf8,\n \n \n \n \n \n \n \n "),dataZoomHeight:Object(n.E)(8),dataZoomTextColor:Object(n.j)("transparent"),dumb:Object(n.I)(!1),height:Object(n.A)(200),hidden:Object(n.I)(!1),ifSmooth:Object(n.I)(!1),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("right"),legendItemGap:Object(n.B)(20),legendItemHeight:Object(n.A)(7),legendItemWidth:Object(n.A)(19),legendOrient:Object(i.h)("horizontal"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(20),legendPaddingTop:Object(n.B)(20),legendSelected:Object(i.o)({}),legendVerticalAlign:Object(n.N)("top"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(48),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),series:Object(i.t)(["\u6e29\u5ea6","\u7a7a\u6c14\u8d28\u91cf"]),showAreaStyle:Object(n.I)(!0),showDataShadow:Object(n.I)(!1),showDataZoomX:Object(n.I)(!1),showLegend:Object(n.I)(!0),showSplitLineX:Object(n.I)(!1),showSplitLineY:Object(n.I)(!0),showSymbol:Object(n.I)(!1),showTooltip:Object(n.I)(!0),showXAxis:Object(n.I)(!0),showXAxisLabel:Object(n.I)(!0),showXAxisLine:Object(n.I)(!1),showXAxisTick:Object(n.I)(!1),showYAxis:Object(n.I)(!0),showYAxisLabel:Object(n.I)(!0),showYAxisLine:Object(n.I)(!1),showYAxisTick:Object(n.I)(!1),xAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),yAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),stackEnable:Object(n.I)(!1),symbol:Object(i.u)("path://M 50 10 A 40 40 0 1 0 50 90 A 40 40 0 1 0 50 10 Z M 50 20 A 30 30 0 1 1 50 80 A 30 30 0 1 1 50 20 Z"),symbolSize:Object(n.E)(1),tooltipAxisColor:Object(n.j)("#108CEE"),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),tooltipTrigger:Object(i.y)("axis"),width:Object(n.A)(350),xAxisFontFamily:Object(n.n)("sans-serif"),xAxisFontSize:Object(n.o)(12),xAxisFontStyle:Object(n.p)("normal"),xAxisFontWeight:Object(n.q)("normal"),xAxisTextColor:Object(n.j)("#333"),yAxisFontFamily:Object(n.n)("sans-serif"),yAxisFontSize:Object(n.o)(12),yAxisFontStyle:Object(n.p)("normal"),yAxisFontWeight:Object(n.q)("normal"),yAxisTextColor:Object(n.j)("#333"),min:Object(i.a)("auto"),max:Object(i.a)("auto")},eventsSchema:{},component:a.a,propsResolver:o.a}}},1997:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return d}));var n=r(4),i=r(2),o=r(56),a=r(13),s=r(34),c=r(365),l=r(298),u=r(386),d={metadata:{typeId:"601c2a93-55f9-4dc0-b36c-8bd0e35ab3af",ver:"1.1",propsSchema:Object(n.__assign)(Object(n.__assign)({},l.a.propsSchema),{paddingBottom:Object(i.B)(48),seriesMap:Object(a.j)({seriesOpt:[{xCol:0,yCol:1,seriesName:"\u6e29\u5ea6"},{xCol:0,yCol:2,seriesName:"\u7a7a\u6c14\u8d28\u91cf"}],dataTable:{headers:[{name:"\u57ce\u5e02",type:"string"},{name:"\u6e29\u5ea6",type:"number"},{name:"\u7a7a\u6c14\u8d28\u91cf",type:"number"}],data:[["\u5317\u4eac",33,25],["\u4e0a\u6d77",35,38],["\u5e7f\u5dde",26,25],["\u6df1\u5733",13,45],["\u96c4\u5b89",25,39],["\u676d\u5dde",23,20],["\u56db\u5ddd",24,23]]}}),showAreaStyle:Object(i.I)(!0),showDataZoomX:Object(i.I)(!1),showSplitLineX:Object(i.I)(!1),showXAxisTick:Object(i.I)(!1),showYAxisLine:Object(i.I)(!1),showYAxisTick:Object(i.I)(!1),symbol:Object(a.u)("path://M 50 10 A 40 40 0 1 0 50 90 A 40 40 0 1 0 50 10 Z M 50 20 A 30 30 0 1 1 50 80 A 30 30 0 1 1 50 20 Z"),width:Object(i.A)(350),yAxisTextColor:Object(i.j)("#333"),customizedSeries:Object(u.a)([])}),component:c.a,eventsSchema:l.a.eventsSchema,interactSessionMiddleware:o.c,propsResolver:s.a}}},1998:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return s}));var n=r(2),i=r(13),o=r(364),a=r(34),s={metadata:{typeId:"79883428-5dfd-40f8-b6b5-89dc0efbdf87",ver:"1.0",propsSchema:{xAxisLineColor:Object(n.j)("#CBD3E0"),yAxisLineColor:Object(n.j)("#CBD3E0"),axisUnit:Object(i.r)(""),background:Object(n.i)("transparent"),borderColor:Object(n.j)("transparent"),borderStyle:Object(n.y)("none"),borderWidth:Object(n.B)(0),category:Object(i.t)(["\u5317\u4eac","\u4e0a\u6d77","\u5e7f\u5dde"]),color:Object(i.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),data:Object(i.e)([[33,45,26],[55,33,25]]),dataZoomBgColor:Object(n.j)("#EAF6FE"),dataZoomBorderColor:Object(n.j)("transparent"),dataZoomBottom:Object(n.B)(20),dataZoomFillerColor:Object(n.j)("rgba(16, 140, 238, 0.5)"),dataZoomHandleIcon:Object(i.l)("image://data:image/svg+xml;utf8,\n \n \n \n \n \n \n \n "),dataZoomHeight:Object(n.E)(8),dataZoomTextColor:Object(n.j)("transparent"),dumb:Object(n.I)(!1),height:Object(n.A)(200),hidden:Object(n.I)(!1),ifSmooth:Object(n.I)(!1),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("right"),legendItemGap:Object(n.B)(20),legendItemHeight:Object(n.A)(7),legendItemWidth:Object(n.A)(19),legendOrient:Object(i.h)("horizontal"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(20),legendPaddingTop:Object(n.B)(20),legendSelected:Object(i.o)({}),legendVerticalAlign:Object(n.N)("top"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),series:Object(i.t)(["\u6e29\u5ea6","\u7a7a\u6c14\u8d28\u91cf"]),showAreaStyle:Object(n.I)(!1),showDataShadow:Object(n.I)(!1),showDataZoomX:Object(n.I)(!0),showLegend:Object(n.I)(!0),showSplitLineX:Object(n.I)(!1),showSplitLineY:Object(n.I)(!0),showSymbol:Object(n.I)(!1),showTooltip:Object(n.I)(!0),showXAxis:Object(n.I)(!0),showXAxisLabel:Object(n.I)(!0),showXAxisLine:Object(n.I)(!1),showXAxisTick:Object(n.I)(!1),showYAxis:Object(n.I)(!0),showYAxisLabel:Object(n.I)(!0),showYAxisLine:Object(n.I)(!1),showYAxisTick:Object(n.I)(!1),xAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),yAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),stackEnable:Object(n.I)(!1),symbol:Object(i.u)("emptyCircle"),symbolSize:Object(n.E)(1),tooltipAxisColor:Object(n.j)("#108CEE"),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),tooltipTrigger:Object(i.y)("axis"),width:Object(n.A)(300),xAxisFontFamily:Object(n.n)("sans-serif"),xAxisFontSize:Object(n.o)(12),xAxisFontStyle:Object(n.p)("normal"),xAxisFontWeight:Object(n.q)("normal"),xAxisTextColor:Object(n.j)("#333"),yAxisFontFamily:Object(n.n)("sans-serif"),yAxisFontSize:Object(n.o)(12),yAxisFontStyle:Object(n.p)("normal"),yAxisFontWeight:Object(n.q)("normal"),yAxisTextColor:Object(n.j)("#333"),min:Object(i.a)("auto"),max:Object(i.a)("auto")},eventsSchema:{},component:o.a,propsResolver:a.a}}},1999:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return c}));var n=r(2),i=r(13),o=r(112),a=r(366),s=r(34),c={metadata:{typeId:"8299f336-7cd7-4ae0-9fa7-4ecd54224078",ver:"1.0",propsSchema:{background:Object(n.i)("transparent"),borderColor:Object(n.j)("transparent"),borderStyle:Object(n.y)("none"),borderWidth:Object(n.B)(0),category:Object(i.t)(["\u5e7f\u5dde\u6e29\u5ea6","\u6df1\u5733\u6e29\u5ea6","\u5317\u4eac\u6e29\u5ea6","\u4e0a\u6d77\u6e29\u5ea6"]),centerX:Object(n.B)(33),centerY:Object(n.B)(50),color:Object(i.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),data:Object(i.e)([[38,37,3,8]]),dumb:Object(n.I)(!1),height:Object(n.A)(230),hidden:Object(n.I)(!1),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("right"),legendIcon:Object(i.n)("rect"),legendItemGap:Object(n.B)(20),legendItemHeight:Object(n.A)(12),legendItemWidth:Object(n.A)(12),legendOrient:Object(i.h)("vertical"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(60),legendPaddingTop:Object(n.B)(20),legendSelected:Object(i.o)({}),legendVerticalAlign:Object(n.N)("middle"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),roseType:Object(o.c)(!1),series:Object(i.t)(["\u6e29\u5ea6"]),showLegend:Object(n.I)(!0),showTooltip:Object(n.I)(!0),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),width:Object(n.A)(360)},eventsSchema:{},component:a.a,propsResolver:s.a}}},2:function(e,t,r){"use strict";r.d(t,"c",(function(){return c})),r.d(t,"d",(function(){return u})),r.d(t,"e",(function(){return b})),r.d(t,"f",(function(){return h})),r.d(t,"g",(function(){return f})),r.d(t,"k",(function(){return g})),r.d(t,"v",(function(){return m})),r.d(t,"w",(function(){return j})),r.d(t,"C",(function(){return v})),r.d(t,"H",(function(){return w})),r.d(t,"a",(function(){return n})),r.d(t,"i",(function(){return k})),r.d(t,"j",(function(){return A})),r.d(t,"r",(function(){return I})),r.d(t,"s",(function(){return B})),r.d(t,"u",(function(){return N})),r.d(t,"B",(function(){return D})),r.d(t,"E",(function(){return M})),r.d(t,"m",(function(){return L})),r.d(t,"A",(function(){return F})),r.d(t,"D",(function(){return z})),r.d(t,"J",(function(){return W})),r.d(t,"n",(function(){return U})),r.d(t,"o",(function(){return H})),r.d(t,"p",(function(){return V})),r.d(t,"q",(function(){return Y})),r.d(t,"y",(function(){return Z})),r.d(t,"x",(function(){return X})),r.d(t,"z",(function(){return q})),r.d(t,"I",(function(){return G})),r.d(t,"K",(function(){return K})),r.d(t,"M",(function(){return J})),r.d(t,"L",(function(){return Q})),r.d(t,"t",(function(){return ee})),r.d(t,"N",(function(){return te})),r.d(t,"h",(function(){return ae})),r.d(t,"F",(function(){return le})),r.d(t,"l",(function(){return Oe})),r.d(t,"G",(function(){return je})),r.d(t,"b",(function(){return ye}));var n,i=r(914),o=new(r.n(i).a),a=r(3);function s(e){return null===e||(Object.freeze(e),Object.getOwnPropertyNames(e).forEach((function(t){!e.hasOwnProperty(t)||null===e[t]||"object"!=typeof e[t]&&"function"!=typeof e[t]||Object.isFrozen(e[t])||s(e[t])}))),e}!function(e){e.Any="any",e.String="string",e.Number="number",e.Integer="integer",e.Boolean="boolean",e.Array="array",e.Date="date",e.Object="object"}(n||(n={}));var c=function(e,t){void 0===t&&(t=function(e){return!0});var r={default:e};if(Object(a.isUndefined)(e))throw new Error("Default value could not be undefined");if(!o.validate(r,e))throw new Error("Invalid default value: "+JSON.stringify(e));if(!t(e))throw new Error("Illegal default value: "+JSON.stringify(e));var i=function(e){return c(e,t)};return Object.defineProperties(i,{validate:{value:function(e){return!Object(a.isUndefined)(e)&&o.validate(r,e)&&t(e)},writable:!1,configurable:!1},jsType:{value:n.Any,writable:!1,configurable:!1},defaultValue:{value:s(e),enumerable:!1,configurable:!1},jsonSchema:{value:s(r),enumerable:!1,configurable:!1}}),i},l=r(4),u=function(e,t){var r,i={anyOf:Object(a.map)(e,"jsonSchema")};if(t&&(Object(a.has)(t,"id")&&(i.$id=t.id),Object(a.has)(t,"defVal")&&(r=t.defVal)),!e.length)throw new Error("No item schema found");if(Object(a.isUndefined)(r))r=e[0].defaultValue;else if(!Object(a.some)(e,(function(e){return e.validate(r)})))throw new Error("Invalid default value: "+JSON.stringify(r));i.default=r;var o=function(r){return u(e,Object(l.__assign)(Object(l.__assign)({},t||{}),{defVal:r}))};return Object.defineProperties(o,{validate:{value:function(t){return Object(a.some)(e,(function(e){return e.validate(t)}))},writable:!1,configurable:!1},jsType:{value:n.Any,writable:!1,configurable:!1},defaultValue:{value:s(r),enumerable:!1,configurable:!1},jsonSchema:{value:s(i),enumerable:!1,configurable:!1}}),o},d=r(359),p=function(e,t,r,n,i){return void 0===r&&(r=!1),void 0===n&&(n=0),void 0===i&&(i=Number.MAX_SAFE_INTEGER),!!Object(d.isArray)(e)&&(!(0===e.length&&n>0)&&(!(e.length>i)&&((!r||Object(a.uniq)(e).length===e.length)&&Object(a.every)(e,t))))},b=function(e,t,r){var i={type:"array",items:e.jsonSchema},o=!1,c=0,l=Number.MAX_SAFE_INTEGER;if(r&&(Object(a.has)(r,"id")&&(i.$id=r.id),Object(a.has)(r,"unique")&&(i.uniqueItems=r.unique,o=r.unique),Object(a.has)(r,"maxItems")&&(i.maxItems=r.maxItems,l=r.maxItems),Object(a.has)(r,"minItems")&&(i.minItems=r.minItems,c=r.minItems)),Object(a.isUndefined)(t))t=[],r&&Object(a.has)(r,"minItems")&&(t=Object(a.times)(r.minItems,(function(){return e.defaultValue})));else if(!p(t,e.validate,o,c,l))throw new Error("Invalid default value: "+JSON.stringify(t));i.default=t;var u=function(t){return b(e,t,r)};return Object.defineProperties(u,{validate:{value:function(t){return p(t,e.validate,o,c,l)},writable:!1,configurable:!1},jsType:{value:n.Array,writable:!1,configurable:!1},defaultValue:{value:s(t),enumerable:!1,configurable:!1},jsonSchema:{value:s(i),enumerable:!1,configurable:!1}}),u},h=function(e){var t={type:"boolean",default:e};if(!o.validate(t,e))throw new Error("Invalid default value: "+JSON.stringify(e));var r=function(e){return h(e)};return Object.defineProperties(r,{validate:{value:function(e){return o.validate(t,e)},writable:!1,configurable:!1},jsType:{value:n.Boolean,writable:!1,configurable:!1},defaultValue:{value:e,writable:!1,configurable:!1},jsonSchema:{value:s(t),enumerable:!1,configurable:!1}}),r},f=function(e){var t={const:e,default:e};if(Object(d.isUndefined)(e))throw new Error("Default value could not be 'undefined'");if(!o.validate(t,e))throw new Error("Invalid default value: "+JSON.stringify(e));var r=function(e){return f(e)};return Object.defineProperties(r,{validate:{value:function(e){return o.validate(t,e)},writable:!1,configurable:!1},jsType:{value:n.Any,writable:!1,configurable:!1},defaultValue:{value:s(e),enumerable:!1,configurable:!1},jsonSchema:{value:s(t),enumerable:!1,configurable:!1}}),r},g=function(e,t){var r={enum:e};if(t=void 0===t?e[0]:t,!o.validate(r,t))throw new Error("Invalid default value: "+JSON.stringify(t));r.default=t;var i=function(t){return g(e,t)};return Object.defineProperties(i,{validate:{value:function(e){return o.validate(r,e)},writable:!1,configurable:!1},jsType:{value:n.Any,writable:!1,configurable:!1},defaultValue:{value:s(t),enumerable:!1,configurable:!1},jsonSchema:{get:function(){return r},enumerable:!1,configurable:!1}}),i},m=function(e,t){var r={type:"integer",default:e},i=function(e){return!0};if(t&&(Object(a.has)(t,"max")&&(r.maximum=t.max),Object(a.has)(t,"min")&&(r.minimum=t.min),Object(a.has)(t,"exclusiveMax")&&(r.exclusiveMaximum=t.exclusiveMax),Object(a.has)(t,"exclusiveMin")&&(r.exclusiveMinimum=t.exclusiveMin),Object(a.has)(t,"multipleOf")&&(r.multipleOf=t.multipleOf),Object(a.has)(t,"semChecker")&&(i=t.semChecker)),!o.validate(r,e))throw new Error("Invalid default value: "+JSON.stringify(e));if(!i(e))throw new Error("Illegal default value: "+JSON.stringify(e));var c=function(e){return m(e,t)};return Object.defineProperties(c,{validate:{value:function(e){return o.validate(r,e)&&i(e)},writable:!1,configurable:!1},jsType:{value:n.Integer,writable:!1,configurable:!1},defaultValue:{value:e,writable:!1,configurable:!1},jsonSchema:{value:s(r),enumerable:!1,configurable:!1}}),c},O=function(e,t){return Object(a.keys)(e).length===Object(a.keys)(t).length&&Object(a.every)(t,(function(t,r){return Object(a.has)(e,r)&&t.validate(e[r])}))},j=function(e,t){var r,i={type:"object",properties:Object(a.mapValues)(e,(function(e){return e.jsonSchema})),required:Object(a.keys)(e)},o=function(e){return!0};if(t&&(Object(a.has)(t,"id")&&(i.$id=t.id),Object(a.has)(t,"defVal")&&(r=t.defVal),Object(a.has)(t,"semChecker")&&(o=t.semChecker)),Object(a.isUndefined)(r))r=Object(a.mapValues)(e,(function(e){return e.defaultValue}));else if(!O(r,e))throw new Error("Invalid default value: "+JSON.stringify(r));if(!o(r))throw new Error("Illegal default value: "+JSON.stringify(r));i.default=r;var c=function(r){return j(e,Object(l.__assign)(Object(l.__assign)({},t||{}),{defVal:r}))};return Object.defineProperties(c,{validate:{value:function(t){return O(t,e)&&o(t)},writable:!1,configurable:!1},jsType:{value:n.Object,writable:!1,configurable:!1},defaultValue:{value:s(r),enumerable:!1,configurable:!1},jsonSchema:{value:s(i),enumerable:!1,configurable:!1}}),c},v=function(e,t){var r={type:"number",default:e},i=function(e){return!0};if(t&&(Object(a.has)(t,"max")&&(r.maximum=t.max),Object(a.has)(t,"min")&&(r.minimum=t.min),Object(a.has)(t,"exclusiveMax")&&(r.exclusiveMaximum=t.exclusiveMax),Object(a.has)(t,"exclusiveMin")&&(r.exclusiveMinimum=t.exclusiveMin),Object(a.has)(t,"multipleOf")&&(r.multipleOf=t.multipleOf),Object(a.has)(t,"semChecker")&&(i=t.semChecker)),!o.validate(r,e))throw new Error("Invalid default value: "+JSON.stringify(e));if(!i(e))throw new Error("Illegal default value: "+JSON.stringify(e));var c=function(e){return v(e,t)};return Object.defineProperties(c,{validate:{value:function(e){return o.validate(r,e)&&i(e)},writable:!1,configurable:!1},jsType:{value:n.Number,writable:!1,configurable:!1},defaultValue:{value:e,writable:!1,configurable:!1},jsonSchema:{value:s(r),enumerable:!1,configurable:!1}}),c},y=r(915);r.n(y)()(o,["regexp"]);var w=function(e,t){var r={type:"string",default:e},i=function(e){return!0};if(t&&(Object(a.has)(t,"minLength")&&(r.minLength=t.minLength),Object(a.has)(t,"maxLength")&&(r.maxLength=t.maxLength),Object(a.has)(t,"regexp")&&(r.regexp=t.regexp),Object(a.has)(t,"semChecker")&&(i=t.semChecker)),!o.validate(r,e))throw new Error("Invalid default value: "+JSON.stringify(e));if(!i(e))throw new Error("Illegal default value: "+JSON.stringify(e));var c=function(e){return w(e,t)};return Object.defineProperties(c,{validate:{value:function(e){return o.validate(r,e)&&i(e)},writable:!1,configurable:!1},jsType:{value:n.String,writable:!1,configurable:!1},defaultValue:{value:e,writable:!1,configurable:!1},jsonSchema:{value:s(r),enumerable:!1,configurable:!1}}),c},x=function(e,t){return o.validate(e,t)||o.errorsText(function(e){if(e&&e.length){for(var t=0;t0?o-270:o+90)+"deg"}(e.deg)+", "+ce(e.stops)+")":"circle"===e.type?"radial-gradient(circle at "+(n=e.pos,i=n.x,o=n.y,"top "+se(o)+" left "+se(i)+", ")+ce(e.stops)+")":void 0;var n,i,o}));if(!r[t.length-1]&&r[t.length-2]){var i=n.pop(),o=n.pop();r.pop(),r.pop(),n.push(o+" "+i)}return n.length>1&&r.forEach((function(e,t){if(e){var r=n[t];n[t]="linear-gradient("+r+", "+r+") /* converted from color */"}})),n.join(",\n")},ue=r(75),de=r.n(ue),pe=function(e){return""===(e=Object(a.trim)(e))?"/":e="/"===(e="/"!==e[0]?"/"+e:e)[e.length-1]?e.substring(0,e.length-1):e},be=function(e){if("/"===(e=pe(e)))return[];var t=e.split("/");return t.shift(),t},he=function(e){return"/"+e.join("/")},fe=function(e,t){for(var r=e.indexOf("/"),n=e.indexOf("/",r+1);r>=0||!isNaN(+e);){var i=r\n \n \n \n \n \n \n "),dataZoomHeight:Object(n.E)(8),dataZoomTextColor:Object(n.j)("transparent"),dumb:Object(n.I)(!1),height:Object(n.A)(300),hidden:Object(n.I)(!1),ifSmooth:Object(n.I)(!1),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("right"),legendItemGap:Object(n.B)(15),legendItemHeight:Object(n.A)(7),legendItemWidth:Object(n.A)(19),legendOrient:Object(i.h)("horizontal"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(20),legendPaddingTop:Object(n.B)(20),legendSelected:Object(i.o)({}),legendVerticalAlign:Object(n.N)("top"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(80),series:Object(i.t)(["\u5317\u4eac\u6e29\u5ea6","\u4e0a\u6d77\u6e29\u5ea6","\u5e7f\u5dde\u6e29\u5ea6","\u5317\u4eac\u7a7a\u6c14\u8d28\u91cf","\u4e0a\u6d77\u7a7a\u6c14\u8d28\u91cf","\u5e7f\u5dde\u7a7a\u6c14\u8d28\u91cf"]),showAreaStyle:Object(n.I)(!1),showDataShadow:Object(n.I)(!1),showDataZoomX:Object(n.I)(!0),showLegend:Object(n.I)(!0),showSplitLineX:Object(n.I)(!1),showSplitLineY:Object(n.I)(!0),showSymbol:Object(n.I)(!0),showTooltip:Object(n.I)(!0),showXAxis:Object(n.I)(!0),showXAxisLabel:Object(n.I)(!0),showXAxisLine:Object(n.I)(!1),showXAxisTick:Object(n.I)(!1),showYAxis:Object(n.I)(!0),showYAxisLabel:Object(n.I)(!0),showYAxisLine:Object(n.I)(!1),showYAxisTick:Object(n.I)(!1),xAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),yAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),symbol:Object(i.u)("emptyCircle"),tooltipAxisColor:Object(n.j)("#108CEE"),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),tooltipTrigger:Object(i.y)("axis"),width:Object(n.A)(400),xAxisFontFamily:Object(n.n)("sans-serif"),xAxisFontSize:Object(n.o)(12),xAxisFontStyle:Object(n.p)("normal"),xAxisFontWeight:Object(n.q)("normal"),xAxisLabelFormatter:Object(n.L)("HH:mm:ss"),xAxisTextColor:Object(n.j)("#333"),yAxisFontFamily:Object(n.n)("sans-serif"),yAxisFontSize:Object(n.o)(12),yAxisFontStyle:Object(n.p)("normal"),yAxisFontWeight:Object(n.q)("normal"),yAxisTextColor:Object(n.j)("#333"),min:Object(i.a)("auto"),max:Object(i.a)("auto")},component:o.a,propsResolver:a.a}}},2007:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return s}));var n=r(2),i=r(13),o=r(34),a=r(380),s={metadata:{typeId:"91651c64-a646-41b0-85b4-ec76c2d40663",ver:"1.0",propsSchema:{xAxisLineColor:Object(n.j)("#CBD3E0"),yAxisLineColor:Object(n.j)("#CBD3E0"),axisUnit:Object(i.r)(""),background:Object(n.i)("transparent"),borderColor:Object(n.j)("transparent"),borderStyle:Object(n.y)("none"),borderWidth:Object(n.B)(0),color:Object(i.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),data:Object(i.x)([[[1503474810837,22],[1503474820837,22],[1503474830837,19],[1503474840837,17],[1503474850837,18],[1503474860837,17],[1503474870837,15]],[[1503474810837,21],[1503474820837,23],[1503474830837,17],[1503474840837,18],[1503474850837,19],[1503474860837,18],[1503474870837,17]],[[1503474810837,3],[1503474820837,4],[1503474830837,7],[1503474840837,7],[1503474850837,9],[1503474860837,10],[1503474870837,12]],[[1503474810837,12],[1503474820837,11],[1503474830837,18],[1503474840837,20],[1503474850837,21],[1503474860837,19],[1503474870837,20]]]),dataZoomBgColor:Object(n.j)("#EAF6FE"),dataZoomBorderColor:Object(n.j)("transparent"),dataZoomBottom:Object(n.B)(20),dataZoomFillerColor:Object(n.j)("rgba(16, 140, 238, 0.5)"),dataZoomHandleIcon:Object(i.l)("image://data:image/svg+xml;utf8,\n \n \n \n \n \n \n \n "),dataZoomHeight:Object(n.E)(8),dataZoomTextColor:Object(n.j)("transparent"),dumb:Object(n.I)(!1),height:Object(n.A)(300),hidden:Object(n.I)(!1),ifSmooth:Object(n.I)(!1),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("right"),legendItemGap:Object(n.B)(15),legendItemHeight:Object(n.A)(7),legendItemWidth:Object(n.A)(19),legendOrient:Object(i.h)("horizontal"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(20),legendPaddingTop:Object(n.B)(20),legendSelected:Object(i.o)({}),legendVerticalAlign:Object(n.N)("top"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(80),series:Object(i.t)(["\u5e7f\u5dde\u6e29\u5ea6","\u6df1\u5733\u6e29\u5ea6","\u5317\u4eac\u6e29\u5ea6","\u4e0a\u6d77\u6e29\u5ea6"]),showAreaStyle:Object(n.I)(!0),showDataShadow:Object(n.I)(!1),showDataZoomX:Object(n.I)(!0),showLegend:Object(n.I)(!0),showSplitLineX:Object(n.I)(!1),showSplitLineY:Object(n.I)(!0),showSymbol:Object(n.I)(!0),showTooltip:Object(n.I)(!0),showXAxis:Object(n.I)(!0),showXAxisLabel:Object(n.I)(!0),showXAxisLine:Object(n.I)(!1),showXAxisTick:Object(n.I)(!1),showYAxis:Object(n.I)(!0),showYAxisLabel:Object(n.I)(!0),showYAxisLine:Object(n.I)(!1),showYAxisTick:Object(n.I)(!1),xAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),yAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),symbol:Object(i.u)("emptyCircle"),tooltipAxisColor:Object(n.j)("#108CEE"),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),tooltipTrigger:Object(i.y)("axis"),width:Object(n.A)(400),xAxisFontFamily:Object(n.n)("sans-serif"),xAxisFontSize:Object(n.o)(12),xAxisFontStyle:Object(n.p)("normal"),xAxisFontWeight:Object(n.q)("normal"),xAxisLabelFormatter:Object(n.L)("HH:mm:ss"),xAxisTextColor:Object(n.j)("#333"),yAxisFontFamily:Object(n.n)("sans-serif"),yAxisFontSize:Object(n.o)(12),yAxisFontStyle:Object(n.p)("normal"),yAxisFontWeight:Object(n.q)("normal"),yAxisTextColor:Object(n.j)("#333"),min:Object(i.a)("auto"),max:Object(i.a)("auto")},eventsSchema:{},component:a.a,propsResolver:o.a}}},2008:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return c}));var n=r(4),i=r(2),o=r(34),a=r(381),s=r(252),c={metadata:{typeId:"91651c64-a646-41b0-85b4-ec76c2d40663",ver:"1.1",propsSchema:Object(n.__assign)(Object(n.__assign)({},s.a.propsSchema),{showAreaStyle:Object(i.I)(!0)}),component:a.a,eventsSchema:s.a.eventsSchema,interactSessionMiddleware:s.a.interactSessionMiddleware,propsResolver:o.a}}},2009:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return u}));var n=r(4),i=r(2),o=r(13),a=r(27),s=r(28),c=r(387),l=r(49),u={metadata:{typeId:"d0ce489d-f5d6-4d79-b20e-ec78c113c784",ver:"1.0",mediaType:a.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({width:Object(i.A)(180),type:Object(i.K)("single"),lineHeightRatio:Object(o.z)(.4),lineWidthRatio:Object(o.z)(.6)},s.c),s.b),s.a),propsResolver:l.a,component:c.a},publicProps:{fill:!0,stroke:!0}}},2010:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return u}));var n=r(4),i=r(2),o=r(13),a=r(27),s=r(28),c=r(387),l=r(49),u={metadata:{typeId:"c26144ca-8b56-45fe-b235-e6d69b2f6aad",ver:"1.0",mediaType:a.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({width:Object(i.A)(200),type:Object(i.K)("double"),lineHeightRatio:Object(o.z)(.4),lineWidthRatio:Object(o.z)(.5)},s.c),s.b),s.a),propsResolver:l.a,component:c.a},publicProps:{fill:!0,stroke:!0}}},2011:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return l}));var n=r(4),i=r(2),o=r(27),a=r(28),s=r(49),c=r(384),l={metadata:{typeId:"faf77185-b13a-4dfb-a59c-54f1379af27f",ver:"1.0",mediaType:o.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({type:Object(i.K)("basic"),num:Object(i.v)(5,{min:3,max:50})},a.c),a.b),a.a),propsResolver:s.a,component:c.a},publicProps:{fill:!0,stroke:!0}}},2012:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return l}));var n=r(4),i=r(2),o=r(27),a=r(28),s=r(49),c=r(384),l={metadata:{typeId:"816118a6-2e04-4a12-86ef-70c766fa9a4f",ver:"1.0",mediaType:o.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({type:Object(i.K)("star"),num:Object(i.v)(5,{min:3,max:50}),radius:Object(i.v)(50,{min:1,max:100})},a.c),a.b),a.a),propsResolver:s.a,component:c.a},publicProps:{fill:!0,stroke:!0}}},2013:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return c}));var n=r(4),i=r(27),o=r(28),a=r(49),s=r(388),c={metadata:{typeId:"df6d22af-2445-4905-86f8-a4776b4f96f2",ver:"1.0",mediaType:i.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({},o.c),o.b),o.a),propsResolver:a.a,component:s.a},publicProps:{fill:!0,stroke:!0}}},2014:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return l}));var n=r(4),i=r(2),o=r(27),a=r(28),s=r(49),c=r(388),l={metadata:{typeId:"c7b7c64c-9821-44e0-9421-8a7432dc6eac",ver:"1.0",mediaType:o.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({cornerRadius:Object(i.A)(30)},a.c),a.b),a.a),propsResolver:s.a,component:c.a},publicProps:{fill:!0,stroke:!0}}},2015:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return l}));var n=r(4),i=r(2),o=r(27),a=r(244),s=r(49),c=r(28),l={metadata:{typeId:"5620b53c-3603-4e6c-9e7a-ba1e0ae091eb",ver:"1.0",mediaType:o.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({type:Object(i.K)("roundDiagonalCorner"),vertexRight:Object(i.A)(0),vertexLeft:Object(i.A)(20)},c.c),c.b),c.a),propsResolver:s.a,component:a.a},publicProps:{fill:!0,stroke:!0}}},2016:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return l}));var n=r(4),i=r(2),o=r(27),a=r(244),s=r(49),c=r(28),l={metadata:{typeId:"d061e690-5ce8-4062-9d5c-aeaef2c9b274",ver:"1.0",mediaType:o.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({type:Object(i.K)("roundSameSideCorner"),vertexRight:Object(i.A)(20),vertexLeft:Object(i.A)(0)},c.c),c.b),c.a),propsResolver:s.a,component:a.a},publicProps:{fill:!0,stroke:!0}}},2017:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return l}));var n=r(4),i=r(2),o=r(27),a=r(245),s=r(49),c=r(28),l={metadata:{typeId:"ccbc574c-9590-4246-b2f5-cefc2b52eb5b",ver:"1.0",mediaType:o.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({type:Object(i.K)("snipDiagonalCorner"),vertexRight:Object(i.A)(20),vertexLeft:Object(i.A)(0)},c.c),c.b),c.a),propsResolver:s.a,component:a.a},publicProps:{fill:!0,stroke:!0}}},2018:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return l}));var n=r(4),i=r(2),o=r(27),a=r(245),s=r(49),c=r(28),l={metadata:{typeId:"1a510ace-03b6-4f43-8280-66afaa8f8b4b",ver:"1.0",mediaType:o.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({type:Object(i.K)("snipOneCorner"),vertexRight:Object(i.A)(50)},c.c),c.b),c.a),propsResolver:s.a,component:a.a},publicProps:{fill:!0,stroke:!0}}},2019:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return l}));var n=r(4),i=r(2),o=r(27),a=r(244),s=r(49),c=r(28),l={metadata:{typeId:"ba3527fe-2eca-4b61-a8a3-11468ebae714",ver:"1.0",mediaType:o.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({type:Object(i.K)("snipRoundCorner"),vertexRight:Object(i.A)(20),vertexLeft:Object(i.A)(20)},c.c),c.b),c.a),propsResolver:s.a,component:a.a},publicProps:{fill:!0,stroke:!0}}},2020:function(e,t,r){"use strict";r.r(t),r.d(t,"settings",(function(){return l}));var n=r(4),i=r(2),o=r(27),a=r(245),s=r(49),c=r(28),l={metadata:{typeId:"95efbdbd-bbd2-40b8-9263-a3847c16da4b",ver:"1.0",mediaType:o.c.SVG,propsSchema:Object(n.__assign)(Object(n.__assign)(Object(n.__assign)({type:Object(i.K)("snipSameSideCorner"),vertexRight:Object(i.A)(20),vertexLeft:Object(i.A)(0)},c.c),c.b),c.a),propsResolver:s.a,component:a.a},publicProps:{fill:!0,stroke:!0}}},218:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(2),i=r(56),o=r(13),a=r(34),s=r(383),c=r(369),l={typeId:"2089e5ee-9b98-41a3-8be6-fb751f42d4e6",ver:"1.0",propsSchema:{xAxisLineColor:Object(n.j)("#CBD3E0"),yAxisLineColor:Object(n.j)("#CBD3E0"),axisUnit:Object(o.r)(""),xAxisUnit:Object(o.r)(""),color:Object(o.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),customizedSeries:Object(s.b)([]),dataZoomBgColor:Object(n.j)("#EAF6FE"),dataZoomBorderColor:Object(n.j)("transparent"),dataZoomBottom:Object(n.B)(20),dataZoomFillerColor:Object(n.j)("rgba(16, 140, 238, 0.5)"),dataZoomHandleIcon:Object(o.l)("image://data:image/svg+xml;utf8,\n \n \n \n \n \n \n \n "),dataZoomHeight:Object(n.E)(8),dataZoomTextColor:Object(n.j)("transparent"),dataZoomStart:Object(n.C)(0),dataZoomEnd:Object(n.C)(100),dumb:Object(n.I)(!1),height:Object(n.A)(200),ifSmooth:Object(n.I)(!1),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("right"),legendItemGap:Object(n.B)(20),legendItemHeight:Object(n.A)(12),legendItemWidth:Object(n.A)(12),legendOrient:Object(o.h)("horizontal"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(20),legendPaddingTop:Object(n.B)(20),legendSelected:Object(o.o)({}),legendVerticalAlign:Object(n.N)("top"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),seriesMap:Object(o.j)({seriesOpt:[{xCol:1,yCol:2,seriesName:"\u7a7a\u6c14\u8d28\u91cf"}],dataTable:{headers:[{name:"\u57ce\u5e02",type:"string"},{name:"\u6e29\u5ea6",type:"number"},{name:"\u7a7a\u6c14\u8d28\u91cf",type:"number"}],data:[["\u5317\u4eac",33,25],["\u4e0a\u6d77",35,38],["\u5e7f\u5dde",26,25],["\u6df1\u5733",13,45],["\u96c4\u5b89",25,39],["\u676d\u5dde",23,20],["\u56db\u5ddd",24,23]]}}),seriesType:Object(o.s)("scatter"),showAreaStyle:Object(n.I)(!1),showDataShadow:Object(n.I)(!1),showDataZoomX:Object(n.I)(!0),showLegend:Object(n.I)(!0),showSplitLineX:Object(n.I)(!0),showSplitLineY:Object(n.I)(!0),showSymbol:Object(n.I)(!1),showTooltip:Object(n.I)(!0),showXAxis:Object(n.I)(!0),showXAxisLabel:Object(n.I)(!0),showXAxisLine:Object(n.I)(!1),showXAxisTick:Object(n.I)(!1),showYAxis:Object(n.I)(!0),showYAxisLabel:Object(n.I)(!0),showYAxisLine:Object(n.I)(!1),showYAxisTick:Object(n.I)(!1),xAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),yAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),stackEnable:Object(n.I)(!1),symbol:Object(o.u)("circle"),symbolSize:Object(n.E)(1),tooltipAxisColor:Object(n.j)("#108CEE"),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),tooltipTrigger:Object(o.y)("axis"),width:Object(n.A)(300),xAxisFontFamily:Object(n.n)("sans-serif"),xAxisFontSize:Object(n.o)(12),xAxisFontStyle:Object(n.p)("normal"),xAxisFontWeight:Object(n.q)("normal"),xAxisTextColor:Object(n.j)("#333"),yAxisFontFamily:Object(n.n)("sans-serif"),yAxisFontSize:Object(n.o)(12),yAxisFontStyle:Object(n.p)("normal"),yAxisFontWeight:Object(n.q)("normal"),yAxisTextColor:Object(n.j)("#333"),min:Object(o.a)("auto"),max:Object(o.a)("auto"),xMin:Object(o.a)("auto"),xMax:Object(o.a)("auto")},eventsSchema:{currentLegendSelected:o.o,currentDatazoomRange:o.g},interactSessionMiddleware:i.c,component:c.a,propsResolver:a.a}},23:function(e,t,r){"use strict";r.d(t,"e",(function(){return h})),r.d(t,"f",(function(){return m})),r.d(t,"h",(function(){return O})),r.d(t,"k",(function(){return N})),r.d(t,"g",(function(){return D})),r.d(t,"c",(function(){return M})),r.d(t,"o",(function(){return F})),r.d(t,"d",(function(){return y})),r.d(t,"w",(function(){return W})),r.d(t,"u",(function(){return H})),r.d(t,"x",(function(){return K})),r.d(t,"b",(function(){return J})),r.d(t,"t",(function(){return Q})),r.d(t,"A",(function(){return oe})),r.d(t,"z",(function(){return ae})),r.d(t,"j",(function(){return se})),r.d(t,"n",(function(){return ce})),r.d(t,"v",(function(){return w})),r.d(t,"s",(function(){return le})),r.d(t,"q",(function(){return de})),r.d(t,"p",(function(){return pe})),r.d(t,"r",(function(){return C})),r.d(t,"a",(function(){return fe})),r.d(t,"m",(function(){return I})),r.d(t,"l",(function(){return ge})),r.d(t,"i",(function(){return me})),r.d(t,"y",(function(){return je}));var n=r(4),i=r(177),o=r.n(i),a=r(3),s=function(e){return{x:e.x1,y:e.y1,x2:e.x2,y2:e.y2}},c=function(e,t){if(void 0===t&&(t=!1),Object(a.isString)(e)||Object(a.has)(e,"colorStops"))return e;var r,i,o=t?Object(a.map)(e.stops,u):e.stops;return"linear"===e.type?Object(n.__assign)(Object(n.__assign)({type:"linear"},s(e.deg)),{colorStops:o}):Object(n.__assign)(Object(n.__assign)({type:"radial"},(r=e.pos,i=e.radius,{x:r.x,y:r.y,r:i})),{colorStops:o})},l=function(e){return Object(a.isString)(e)?e:Object(a.has)(e,"stops")?e.stops[0].color:e.colorStops[0].color},u=function(e){return{offset:e.offset,color:d(e.color,1-e.offset)}},d=function(e,t){return o()(e).alpha(t).css()},p=function(e){if("transparent"===e)return e;var t=[{offset:0,color:d(e,.5)},{offset:1,color:d(e,0)}];return Object(n.__assign)(Object(n.__assign)({type:"linear"},s({x1:0,y1:0,x2:0,y2:1})),{colorStops:t})},b=function(e){return function(t){return function(r){var n=r.prevOpt,i=r.patchOpt,o=r.currentProps,a=r.nextProps;e.some((function(e){return o[e]!==a[e]}))&&t({prevOpt:n,patchOpt:i,currentProps:o,nextProps:a})}}},h=b(["color","customizedSeries"])((function(e){var t=e.prevOpt,r=e.patchOpt,n=(e.currentProps,e.nextProps),i=Object(a.map)(n.color,(function(e){return c(e)}));Object(a.has)(t,"series")&&n.customizedSeries&&n.customizedSeries.length>0&&Object(a.map)(n.customizedSeries,(function(e){var r=Object(a.findIndex)(t.legend.data,(function(t){return t.name===e.seriesName}));r>-1&&(i[r%10]=c(e.color))})),Object(a.set)(r,"color",i),Object(a.set)(t,"color",i)})),f=function(e,t,r,n,i,o,s){void 0===s&&(s=a.identity),e[r]!==t[r]&&(Object(a.set)(i,n,s(t[r])),Object(a.set)(o,n,s(t[r])))},g=function(e,t,r,n){Object(a.set)(e,r,n),Object(a.set)(t,r,n)},m=b(["isTransverse","dataZoomHeight","dataZoomBottom","showDataZoomX","showDataShadow","dataZoomBorderColor","dataZoomTextColor","dataZoomBgColor","dataZoomFillerColor","dataZoomHandleIcon","dataZoomStart","dataZoomEnd"])((function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps;if(n.isTransverse!==i.isTransverse){var o=i.isTransverse?"vertical":"horizontal";Object(a.set)(r,"dataZoom[0].orient",o),Object(a.set)(t,"dataZoom[0].orient",o)}i.isTransverse?(f(n,i,"dataZoomHeight","dataZoom[0].width",r,t),f(n,i,"dataZoomBottom","dataZoom[0].right",r,t)):(f(n,i,"dataZoomHeight","dataZoom[0].height",r,t),f(n,i,"dataZoomBottom","dataZoom[0].bottom",r,t)),f(n,i,"showDataZoomX","dataZoom[0].show",r,t),f(n,i,"showDataShadow","dataZoom[0].showDataShadow",r,t),f(n,i,"dataZoomBorderColor","dataZoom[0].borderColor",r,t),f(n,i,"dataZoomTextColor","dataZoom[0].textStyle.color",r,t),f(n,i,"dataZoomBgColor","dataZoom[0].backgroundColor",r,t),f(n,i,"dataZoomFillerColor","dataZoom[0].fillerColor",r,t),f(n,i,"dataZoomHandleIcon","dataZoom[0].handleIcon",r,t),f(n,i,"dataZoomStart","dataZoom[0].start",r,t),f(n,i,"dataZoomEnd","dataZoom[0].end",r,t)})),O=function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps;f(n,i,"paddingLeft","grid.left",r,t),f(n,i,"paddingRight","grid.right",r,t),f(n,i,"paddingTop","grid.top",r,t),f(n,i,"paddingBottom","grid.bottom",r,t)},j=r(2),v=function(e,t){return e?{color:Object(a.isString)(t)?p(t):c(t,!0)}:null},y=b(["showSymbol","symbol","symbolSize","data","color","stackEnable","ifSmooth"])((function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps;if(Object(a.has)(t,"series"))f(n,i,"showSymbol","series",r,t,(function(e){return Object(a.map)(t.series,(function(t){return{showSymbol:e}}))})),f(n,i,"data","series",r,t,(function(e){return Object(a.map)(e,(function(e){return{data:e}}))})),f(n,i,"color","series",r,t,(function(e){return Object(a.map)(t.series,(function(t,r){return{areaStyle:v(i.showAreaStyle,e[r%10])}}))})),f(n,i,"stackEnable","series",r,t,(function(e){return Object(a.map)(t.series,(function(t){return{stack:e?"stack":null}}))})),f(n,i,"ifSmooth","series",r,t,(function(e){return Object(a.map)(t.series,(function(t){return{smooth:e}}))})),f(n,i,"symbol","series",r,t,(function(e){return Object(a.map)(t.series,(function(t){return{symbol:e}}))}));else{var o=Object(a.map)(i.series,(function(e,t){return{type:"line",name:e,hoverAnimation:!0,showSymbol:i.showSymbol,symbol:i.symbol,symbolSize:i.symbolSize,stack:i.stackEnable?"stack":null,data:i.data[t],areaStyle:v(i.showAreaStyle,i.color[t%10]),smooth:!Object(a.isNil)(i.ifSmooth)&&i.ifSmooth}}));Object(a.set)(r,"series",o),Object(a.set)(t,"series",o)}})),w=b(["seriesMap","customizedSeries","showSymbol","symbol","symbolSize","barGap","barWidth","stackEnable","ifSmooth","showAreaStyle","color","seriesType","showBarLabel","isTransverse","groupFormatter"])((function(e){var t=e.prevOpt,r=e.patchOpt,i=(e.currentProps,e.nextProps),o=i.seriesMap,s={barWidth:i.barWidth,barGap:i.barGap/100,label:{normal:{show:i.showBarLabel}}};if(!Object(a.isNil)(o)&&!Object(a.isNil)(o.seriesOpt)){for(var c=o.dataTable,l=[],u=[],d=i.isTransverse?1:0,p=0;p0){var s=o.dataTable,l=o.dataTable.headers,u=l[o.seriesOpt[0].xCol].type;if("string"===u){var d=Object(a.map)(o.dataTable.data,(function(e){return e[o.seriesOpt[0].xCol]}));Object(a.set)(r,"xAxis.data",d),Object(a.set)(t,"xAxis.data",d)}var p=o.seriesOpt,b=[],h=[],f=[];Object(a.isNil)(o.seriesOpt[0].groupCol)||(p=h=T(o.seriesOpt)(s),Object(a.map)(o.seriesOpt,(function(e){b.push.apply(b,R(e.xCol,e.yCol,e.groupCol,e.sizeCol,e.labelCol)(s))})));var g=Object(a.map)(p,(function(e,r){var d=c(i.color[r%10]),p="";if(Object(a.isNil)(o.seriesOpt[0].groupCol)){var g=e.yCol;p=s.headers[g].name}if(Object(a.has)(t,"series")&&i.customizedSeries&&i.customizedSeries.length>0){var m=Object(a.findIndex)(i.customizedSeries,(function(t){return t.seriesName===(Object(a.isNil)(o.seriesOpt[0].groupCol)?p:e)}));m>-1&&(d=c(i.customizedSeries[m].color))}var O,j,v=[],y={};if("bubble"===i.seriesType){if(0===h.length?v=Object(a.map)(s.data,(function(t){var r=[t[e.xCol],t[e.yCol]];return Object(a.isNil)(e.sizeCol)||(r[2]=t[e.sizeCol],f.push(t[e.sizeCol])),Object(a.isNil)(e.labelCol)||(r[3]=t[e.labelCol]),r})):(v=b[r],Object(a.isNil)(o.seriesOpt[0].sizeCol)||(f=Object(a.map)(v,(function(e){return e[2]})))),!Object(a.isNil)(o.seriesOpt[0].sizeCol)){var w=o.seriesOpt[0].sizeCol,x=Object(a.map)(s.data,(function(e){return e[w]}));j=Object(a.max)(x),O=Object(a.min)(x)}y={label:{emphasis:{show:!0,formatter:function(e){return Object(a.isNil)(e.data[3])?e.data[1]:e.data[3]},position:"top"}},data:v,symbolSize:function(e,t){var r=10,n=Object(a.max)([i.width,i.height])/2;if(Object(a.isNil)(e[2])){if(!Object(a.isNil)(o.seriesOpt[0].sizeCol))return 0}else if(i.isAutoMapping){var s=i.maxSize,c=i.minSize;j!==O&&s>=c?r=c+(e[2]-O)*(s-c)/(j-O):j===O&&(r=(s+c)/2)}else r=e[2];return r>n?n:r}}}else v=Object(a.map)(s.data,(function(t){var r=A(e.xCol,e.yCol),n=[];return Object(a.map)(r,(function(e,r){if(r||"string"!==u){var i=E(l[e].type);n.push(i(t[e]))}else n.push(t[e])})),n}));return Object(n.__assign)({type:"scatter",itemStyle:{color:d},name:p||e,hoverAnimation:!0,data:v},y)}));Object(a.set)(r,"series",g),Object(a.set)(t,"series",g)}})),A=function(e,t,r,n){var i=[e,t];return Object(a.isNil)(r)||(i[2]=r),Object(a.isNil)(n)||(i[3]=n),i},E=function(e){return Object(j.h)(e,"number")},_=function(e,t,r){return e.reduce((function(e,n){var i=n[t].toString();return r&&(i=i+"/"+r),Object(a.indexOf)(e,i)<0&&e.push(i),e}),[])},T=function(e){return function(t){var r=t.headers,n=t.data,i=e[0].groupCol;if(1===e.length)return _(n,i);for(var o=[],a=0;a0){var l=[],b=[];Object(a.map)(e,(function(e){l.push.apply(l,k(u.xCol,e,u.groupByCols,g)(d)),b.push.apply(b,P(e,u.groupByCols,s.groupFormatter)(d))}));var h=l.length>s.multiColors[i].length?o.a.scale(s.multiColors[i]).colors(l.length):s.multiColors[i],f=i?"line":"bar";O.push.apply(O,h);var j=Object(a.map)(l,(function(e,o){return Object(n.__assign)({yAxisIndex:i,type:f,name:b[o],hoverAnimation:!0,itemStyle:{color:h[o]},label:{normal:{show:s.showBarLabel||!1}},stack:s.stackEnable?"stack":null,smooth:s.ifSmooth,data:(l=e,u=g,d=[],p=Object(a.map)(l,(function(e){switch(u){case"time":return{name:new Date(e[0]).toString(),value:e};case"category":return d.push(e[0]),e[1];case"value":return e}})),"category"===u&&(Object(a.set)(r,"xAxis.data",d),Object(a.set)(t,"xAxis.data",d)),p)},"line"===f?{showSymbol:s.showSymbol,symbol:s.symbol,symbolSize:s.symbolSize}:c(o));var l,u,d,p}));if(m.push.apply(m,j),l.length>=1){var v=l[0].length;Object(a.set)(r,"xAxis.splitNumber",Math.max(Math.min(v-1,5),1)),Object(a.set)(t,"xAxis.splitNumber",Math.max(Math.min(v-1,5),1))}if(Object(a.isNil)(s["y"+i+"AxisLineColor"])){var y=h[0];Object(a.set)(r,"yAxis["+i+"].axisLine.lineStyle.color",y),Object(a.set)(t,"yAxis["+i+"].axisLine.lineStyle.color",y),Object(a.set)(r,"yAxis["+i+"].axisLabel.color",y),Object(a.set)(t,"yAxis["+i+"].axisLabel.color",y)}if(s["y"+i+"AxisName"].length<1){var w=p[e[0]].name;Object(a.set)(r,"yAxis["+i+"].name",w),Object(a.set)(t,"yAxis["+i+"].name",w)}Object(a.map)(O,(function(e,n){Object(a.set)(r,"legend.data["+n+"].textStyle.color",e),Object(a.set)(t,"legend.data["+n+"].textStyle.color",e)}))}};j(u.y0Cols,0),j(u.y1Cols,1),Object(a.set)(r,"series",m),Object(a.set)(t,"series",m)}})),P=function(e,t,r){return r||(r="{groupCol}/{yHeader}"),function(n){var i=n.headers,o=n.data,s=i[e].name;return t.length?o.reduce((function(e,n){var i=Object(a.map)(t,(function(e){return n[e]})),o=r.replace("{groupCol}","").replace("{yHeader}",""),c=i.join(o),l=r.replace("{groupCol}",c).replace("{yHeader}",s);return Object(a.indexOf)(e,l)<0&&e.push(l),e}),[]):[s]}},k=function(e,t,r,n){var i=function(e){switch(e){case"category":return"string";case"time":return"date";case"value":return"number"}};return function(o){var s=o.headers,c=o.data,l=[e,t];return r.length?c.reduce((function(e,t){var o=Object(a.map)(r,(function(e){return t[e]})).join("");return Object(a.has)(e.visited,o)||(e.groupedData.push([]),e.visited[o]=e.groupedData.length-1),e.groupedData[e.visited[o]].push(Object(a.map)(l,(function(e,r){return Object(j.h)(s[e].type,r?"number":i(n))(t[e])}))),e}),{visited:{},groupedData:[]}).groupedData:[c.reduce((function(e,t){var r=Object(a.map)(l,(function(e,r){return Object(j.h)(s[e].type,r?"number":i(n))(t[e])}));return e.push(r),e}),[])]}},B=["legendPaddingTop","legendPaddingRight","legendPaddingBottom","legendPaddingLeft","legendIcon","legendHorizontalAlign","showLegend","legendOrient","legendVerticalAlign","legendItemWidth","legendItemHeight","legendItemGap","legendFontStyle","legendFontWeight","legendFontFamily","legendFontSize","color","seriesMap","legendSelected","customizedSeries","groupFormatter"],N=function(e){return b(B.concat(e))((function(t){var r=t.prevOpt,n=t.patchOpt,i=t.currentProps,o=t.nextProps,s=[o.legendPaddingTop,o.legendPaddingRight,o.legendPaddingBottom,o.legendPaddingLeft];Object(a.set)(n,"legend.padding",s),Object(a.set)(r,"legend.padding",s);var c=Object(a.isNil)(o.legendIcon)?"":o.legendIcon,u=function(e){var t=[];switch(e){case"seriesMap":return Object(a.isNil)(o.seriesMap.seriesOpt[0].groupCol)?o[e].seriesOpt:T(o.seriesMap.seriesOpt)(o.seriesMap.dataTable);case"pieSeriesMap":var r=o.seriesMap;if(!Object(a.isNil)(r)&&r.seriesOpt.length>0){var n=r.seriesOpt[0].xCol;return Object(a.map)(r.dataTable.data,(function(e){return e[n]}))}return[];case"timeSeriesMap":if(!Object(a.isNil)(o.seriesMap)&&o.seriesMap.seriesOpt.length>0)for(var i=0;i0){var u=Object(a.findIndex)(o.customizedSeries,(function(t){return t.seriesName===(e.seriesName||e)}));u>-1&&(s=o.customizedSeries[u].color)}return{name:n,icon:c,textStyle:{color:Object(a.isString)(s)?s:l(s)}}}));Object(a.set)(n,"legend.data",d),Object(a.set)(r,"legend.data",d);var p=o.legendSelected,b=Object(a.map)(d,(function(e){return e.name}));if(Object(a.isArray)(p)?p=b.reduce((function(e,t){return e[t]=!(p.indexOf(t)>-1),e}),{}):Object(a.isEmpty)(p)&&(p=b.reduce((function(e,t){return e[t]=!0,e}),{})),Object(a.set)(n,"legend.selected",p),Object(a.set)(r,"legend.selected",p),"right"===o.legendHorizontalAlign){Object(a.set)(n,"legend.right",0),Object(a.set)(r,"legend.right",0)}else f(i,o,"legendHorizontalAlign","legend.left",n,r);f(i,o,"showLegend","legend.show",n,r),f(i,o,"legendOrient","legend.orient",n,r),f(i,o,"legendVerticalAlign","legend.top",n,r),f(i,o,"legendItemWidth","legend.itemWidth",n,r),f(i,o,"legendItemHeight","legend.itemHeight",n,r),f(i,o,"legendItemGap","legend.itemGap",n,r),f(i,o,"legendFontStyle","legend.textStyle.fontStyle",n,r),f(i,o,"legendFontWeight","legend.textStyle.fontWeight",n,r),f(i,o,"legendFontFamily","legend.textStyle.fontFamily",n,r),f(i,o,"legendFontSize","legend.textStyle.fontSize",n,r)}))},D=b(["color","lineStyleNum","lineColors","titleColor","labelColor","value","unit","seriestype","min","max","axisLineWidth","pointerWidth","splitLineLength","axisTickLength","lineStyle","showTitle","fontFamily","fontStyle","fontWeight","fontSize","showDetail","detailFontFamily","detailFontStyle","detailFontWeight","detailFontSize","detailColor","startAngle","endAngle","splitNumber","showSplitLine","showAxisTick","showAxisLabel","axisLabelColor","axisLabelD","axisLineBlur","axisLineBlurColor","itemStyleBlur","itemStyleBlurColor","bottomLineWidth"])((function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps;if(!Object(a.has)(t,"series")){var s=[{type:"gauge",radius:"80%"},{type:"gauge",radius:"78%",startAngle:360,endAngle:180,axisLine:{lineStyle:{width:0}},pointer:{show:!1},splitLine:{show:!1},axisTick:{show:!1},axisLabel:{show:!1},title:{show:!1},detail:{show:!1}}];Object(a.set)(r,"series",s),Object(a.set)(t,"series",s)}if(i.color.length>2){var u=[],d=[];d=2===i.lineStyleNum?[[1,o()(l(i.color[0])).darken().hex()]]:d=[[1,"transparent"]],i.lineColors&&Object(a.has)(t,"tooltip")&&Object(a.difference)(i.color,n.color).length>0||Object(a.isNil)(i.lineColors)?u=2===i.lineStyleNum?[[.5,c(i.color[0])],[1,c(i.color[1])]]:[[.2,c(i.color[0])],[.8,c(i.color[1])],[1,c(i.color[2])]]:i.lineColors.length>0&&(u=0===i.lineColors[0].offset?Object(a.map)(i.lineColors.slice(1),(function(e,t){var r=i.lineColors[t].color,n=t>0&&(i.lineColors[t].offset+e.offset)/2>.5,o=Object(j.G)(r,e.color,!n);return[e.offset,c(o)]})):Object(a.map)(i.lineColors,(function(e){return[e.offset,c(e.color)]}))),Object(a.set)(r,"series[0].axisLine.lineStyle.color",u),Object(a.set)(t,"series[0].axisLine.lineStyle.color",u),Object(a.set)(r,"series[1].axisLine.lineStyle.color",d),Object(a.set)(t,"series[1].axisLine.lineStyle.color",d)}var p=""+i.value+i.unit;Object(a.set)(r,"series[0].detail.formatter",p),Object(a.set)(t,"series[0].detail.formatter",p);var b=function(e){var t=e.toString().split(".");return 2===t.length&&t[1].length>2?parseFloat(e.toFixed(2)):e};Object(a.set)(r,"series[0].axisLabel.formatter",b),Object(a.set)(t,"series[0].axisLabel.formatter",b);var h=[{value:i.value,name:""}];Object(a.set)(r,"series[0].data",h),Object(a.set)(t,"series[0].data",h),f(n,i,"seriestype","series[0].type",r,t),f(n,i,"min","series[0].min",r,t),f(n,i,"max","series[0].max",r,t),f(n,i,"axisLineWidth","series[0].axisLine.lineStyle.width",r,t),f(n,i,"pointerWidth","series[0].pointer.width",r,t),f(n,i,"splitLineLength","series[0].splitLine.length",r,t),f(n,i,"axisTickLength","series[0].axisTick.length",r,t),f(n,i,"lineStyle","series[0].splitLine.lineStyle.color",r,t),f(n,i,"lineStyle","series[0].axisTick.lineStyle.color",r,t),f(n,i,"showTitle","series[0].title.show",r,t),f(n,i,"titleColor","series[0].title.color",r,t),f(n,i,"fontFamily","series[0].title.fontFamily",r,t),f(n,i,"fontStyle","series[0].title.fontStyle",r,t),f(n,i,"fontWeight","series[0].title.fontWeight",r,t),f(n,i,"fontSize","series[0].title.fontSize",r,t),f(n,i,"showDetail","series[0].detail.show",r,t),f(n,i,"detailFontFamily","series[0].detail.fontFamily",r,t),f(n,i,"detailFontStyle","series[0].detail.fontStyle",r,t),f(n,i,"detailFontWeight","series[0].detail.fontWeight",r,t),f(n,i,"detailFontSize","series[0].detail.fontSize",r,t),f(n,i,"detailColor","series[0].detail.color",r,t),f(n,i,"startAngle","series[0].startAngle",r,t),f(n,i,"endAngle","series[0].endAngle",r,t),f(n,i,"endAngle","series[1].startAngle",r,t),f(n,i,"startAngle","series[1].endAngle",r,t),f(n,i,"splitNumber","series[0].splitNumber",r,t),f(n,i,"showSplitLine","series[0].splitLine.show",r,t),f(n,i,"showAxisTick","series[0].axisTick.show",r,t),f(n,i,"showAxisLabel","series[0].axisLabel.show",r,t),f(n,i,"axisLabelColor","series[0].axisLabel.color",r,t),f(n,i,"axisLabelD","series[0].axisLabel.distance",r,t),f(n,i,"axisLineBlur","series[0].axisLine.lineStyle.shadowBlur",r,t),f(n,i,"axisLineBlurColor","series[0].axisLine.lineStyle.shadowColor",r,t),f(n,i,"itemStyleBlur","series[0].itemStyle.shadowBlur",r,t),f(n,i,"itemStyleBlurColor","series[0].itemStyle.shadowColor",r,t),f(n,i,"bottomLineWidth","series[1].axisLine.lineStyle.width",r,t)})),M=function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps;if(Object(a.has)(t,"series"))f(n,i,"stackEnable","series",r,t,(function(e){return Object(a.map)(t.series,(function(t){return{stack:e?"stack":null}}))})),f(n,i,"showBarLabel","series",r,t,(function(e){return Object(a.map)(t.series,(function(t){return{label:{normal:{show:e}}}}))})),f(n,i,"data","series",r,t,(function(e){return Object(a.map)(e,(function(e){return{data:e}}))}));else{var o=Object(a.map)(i.series,(function(e,t){return{type:"bar",name:e,hoverAnimation:!0,label:{normal:{show:i.showBarLabel}},stack:i.stackEnable?"stack":null,data:i.data[t]}}));Object(a.set)(r,"series",o),Object(a.set)(t,"series",o)}},L={normal:{show:!1}},F=function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps;if(Object(a.has)(t,"series")){f(n,i,"showSymbol","series",r,t,(function(e){return Object(a.map)(t.series,(function(t){return{showSymbol:e}}))})),f(n,i,"data","series",r,t,(function(e){return Object(a.map)(e,(function(e){return{data:Object(a.map)(e,(function(e,t){return{name:i.category[t],value:e}}))}}))})),f(n,i,"roseType","series",r,t,(function(e){return Object(a.map)(t.series,(function(t){return{roseType:e}}))}));var o=[i.centerX+"%",i.centerY+"%"];Object(a.set)(r,"series.center",o),Object(a.set)(t,"series.center",o)}else{var s=Math.round(100/(2*i.series.length+2)),c=Object(a.map)(i.series,(function(e,t){var r=(2*t+1)*s;return[r+"%",r+s+"%"]}));1===i.series.length&&(c[0]=["43%","70%"]),"radius"!==i.roseType&&"area"!==i.roseType||(c[0][0]="0%");var l=[i.centerX+"%",i.centerY+"%"],u=Object(a.map)(i.series,(function(e,t){return{type:"pie",name:e,hoverAnimation:!0,radius:c[t],center:l,data:Object(a.filter)(Object(a.map)(i.data[t],(function(e,t){return{name:i.category[t],value:e}})),(function(e){return!Object(a.isNil)(e.value)})),label:L,roseType:!Object(a.isNil)(i.roseType)&&i.roseType}}));Object(a.set)(r,"series",u),Object(a.set)(t,"series",u)}},z=function(e){return Object(a.map)(e,(function(e){return{name:new Date(e[0]).toString(),value:e}}))},W=function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps;if(Object(a.has)(t,"series"))f(n,i,"showSymbol","series",r,t,(function(e){return Object(a.map)(t.series,(function(t){return{showSymbol:e}}))})),f(n,i,"data","series",r,t,(function(e){return Object(a.map)(e,(function(e){return{data:z(e)}}))})),f(n,i,"color","series",r,t,(function(e){return Object(a.map)(t.series,(function(t,r){return{areaStyle:v(i.showAreaStyle,e[r%10])}}))})),f(n,i,"ifSmooth","series",r,t,(function(e){return Object(a.map)(t.series,(function(t){return{smooth:e}}))})),f(n,i,"symbol","series",r,t,(function(e){return Object(a.map)(t.series,(function(t){return{symbol:e}}))}));else{var o=Object(a.map)(i.series,(function(e,t){return{type:"line",name:e,showSymbol:i.showSymbol,hoverAnimation:!0,data:z(i.data[t]),areaStyle:v(i.showAreaStyle,i.color[t%10]),smooth:!Object(a.isNil)(i.ifSmooth)&&i.ifSmooth}}));Object(a.set)(r,"series",o),Object(a.set)(t,"series",o)}},U=function(e){return Object(a.map)(e,(function(e){return{name:new Date(e[0]).toString(),value:e}}))},H=function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps;if(Object(a.has)(t,"series"))f(n,i,"showSymbol","series",r,t,(function(e){return Object(a.map)(t.series,(function(t){return{showSymbol:e}}))})),f(n,i,"data","series",r,t,(function(e){return Object(a.map)(e,(function(e){return{data:U(e)}}))}));else{var o=Object(a.map)(i.series,(function(e,t){return{type:"bar",name:e,showSymbol:i.showSymbol,hoverAnimation:!0,data:U(i.data[t])}}));Object(a.set)(r,"series",o),Object(a.set)(t,"series",o)}},V=r(36),G=function(){function e(){}return e.toStyleString=function(e,t){if(void 0===t&&(t="div"),"undefined"==typeof document)return"";var r=document.createElement(t).style;return Object(a.each)(e,(function(e,t){return r[t]=e})),r.cssText},e.overwriteStyle=function(e,t){if("undefined"==typeof document)return"";var r=document.createElement("div");r.innerHTML=e;var n=r.firstChild;return n instanceof HTMLElement?(Object(a.each)(t,(function(e,t){n.style[t]=e})),n.outerHTML):e},e}(),Y={height:"22px",lineHeight:"22px",margin:0},Z=G.toStyleString({padding:"8px",fontSize:"12px",fontFamily:"PingFangSC-Regular, sans-serif"}),X=function(e){return G.toStyleString({display:"inline-block",width:"8px",height:"8px",marginRight:"10px",borderRadius:"10px",backgroundColor:e},"span")},q=function(e){return Object(a.isString)(e)?e:l(e)},K=b(["tooltipTitleColor","tooltipContentColor","showTooltip","tooltipTrigger","tooltipConfine","tooltipAxisPointerType","tooltipPadding","tooltipBorder","tooltipBorderRadius","tooltipBackgroundColor","tooltipExtraCssText","tooltipAxisColor","axisPointerType","axisPointerShadowColor"])((function(e){var t,r=e.prevOpt,i=e.patchOpt,o=e.currentProps,s=e.nextProps,c=(t=s.tooltipContentColor,G.toStyleString(Object(n.__assign)(Object(n.__assign)({},Y),{fontWeight:400,color:t||"#666"}))),l=function(e){return G.toStyleString(Object(n.__assign)(Object(n.__assign)({},Y),{fontWeight:900,color:e||"#333"}))}(s.tooltipTitleColor),u=function(e){if(Object(a.isArray)(e)){var t="xAxis.time"===e[0].axisType||"yAxis.time"===e[0].axisType,i=t?Object(V.format)(new Date(e[0].name),"MM-DD HH:mm"):e[0].name,o=s.seriesMap;if("bubble"===s.seriesType&&o&&o.seriesOpt.length>0){var u=o.dataTable.headers,d=[],p=[];e.length>1&&(d=Object(a.map)(e,(function(e){var t=e.seriesName,r=e.value[1];if(!(Object(a.isNil)(r)||Object(a.indexOf)(p,t)>-1)){p.push(t);var n=q(e.color);return'\n

\n \n '+t+"\uff1a"+r+"\n

\n "}})));var b=o.seriesOpt[0],h=b.xCol,f=b.yCol,g=b.sizeCol,m=b.labelCol,O=e.length>1?[h]:[h,f];Object(a.isNil)(g)||(O[2]=g),Object(a.isNil)(m)||(O[3]=m);var j=Object(a.map)(O,(function(e){return Object(a.isNil)(e)?null:u[e].name}));if(d=Object(n.__spreadArrays)(d,Object(a.map)(j,(function(t,r){if(!(Object(a.isNil)(t)||Object(a.indexOf)(p,t)>-1)){p.push(t);var n=e[0].data[r];if(!Object(a.isNil)(n))return'\n

\n '+t+"\uff1a"+n+"\n

\n "}}))),1===e.length){var v=q(e[0].color),y=e[0].seriesName;return'\n
\n \n '+y+"\n "+d.join("\n")+"\n
\n "}return'\n
\n '+d.join("\n")+"\n
\n "}var w=Object(a.map)(e,(function(e){var r=e.value;t&&s.isTransverse?r=e.value[0]:(t||"scatter"===s.seriesType)&&(r=e.value[1]);var n=e.seriesName,i=q(e.color);if(!Object(a.isNil)(r))return'\n

\n \n '+n+"\uff1a"+r+"\n

\n "}));if("scatter"===s.seriesType&&o&&o.seriesOpt.length>0){h=o.seriesOpt[0].xCol;var x=o.dataTable.headers[h].name+"\uff1a",S=e[0].value[0],C=Object(a.isNil)(S)?null:'

'+x+S+"

";return'\n
\n '+C+"\n "+w.join("\n")+"\n
\n "}return'
\n
'+i+"
\n "+w.join("\n")+"\n
"}if("gauge"===e.seriesType)return'
\n
'+e.value+"
\n
";if("radar"===e.seriesType){var A=r.radar?r.radar.indicator:[];w=Object(a.map)(A,(function(t,r){var n=t.name,i=e.value.length===A.length?e.value[r]:0;return'\n

\n '+n+"\uff1a"+i+"\n

\n "})),v=q(e.color);return'
\n \n '+e.name+"\n "+w.join("\n")+"\n
"}var E=e.seriesName,_=e.value;v=q(e.color);return'
\n '+(e.name?'
'+e.name+"
":"")+'\n

\n \n '+(E?E+": ":"")+_+"\n

\n
"};Object(a.set)(i,"tooltip.formatter",u),Object(a.set)(r,"tooltip.formatter",u),f(o,s,"showTooltip","tooltip.show",i,r),f(o,s,"tooltipTrigger","tooltip.trigger",i,r),f(o,s,"tooltipConfine","tooltip.confine",i,r),f(o,s,"tooltipAxisPointerType","tooltip.axisPointer.type",i,r),f(o,s,"tooltipPadding","tooltip.padding",i,r),f(o,s,"tooltipBorder","tooltip.border",i,r),f(o,s,"tooltipBorderRadius","tooltip.borderRadius",i,r),f(o,s,"tooltipBackgroundColor","tooltip.backgroundColor",i,r),f(o,s,"tooltipExtraCssText","tooltip.extraCssText",i,r),f(o,s,"tooltipAxisColor","tooltip.axisPointer.lineStyle.color",i,r),f(o,s,"axisPointerType","tooltip.axisPointer.type",i,r),f(o,s,"axisPointerShadowColor","tooltip.axisPointer.shadowStyle.color",i,r)})),J=b(["isTransverse","seriesMap","category"])((function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps,o=i.isTransverse?"yAxis":"xAxis";if(Object(a.has)(t,o)||(Object(a.set)(r,o+".type","category"),Object(a.set)(t,o+".type","category")),Object(a.has)(i,"seriesMap")){var s=i.seriesMap;if(s.seriesOpt.length>0){var c=Object(a.map)(s.dataTable.data,(function(e){return e[s.seriesOpt[0].xCol]}));Object(a.set)(r,o+".data",c),Object(a.set)(t,o+".data",c)}}else f(n,i,"category",o+".data",r,t)})),Q=function(e){var t=e.prevOpt,r=e.patchOpt,n=(e.currentProps,e.nextProps.isTransverse?"yAxis":"xAxis");Object(a.has)(t,n)||(Object(a.set)(r,n+".type","time"),Object(a.set)(t,n+".type","time"))},ee=[{divider:1e18,suffix:"E",name:"E"},{divider:1e15,suffix:"P",name:"P"},{divider:1e12,suffix:"T",name:"T"},{divider:1e9,suffix:"G",name:"G"},{divider:1e6,suffix:"M",name:"M"},{divider:1e3,suffix:"k",name:"k"},{divider:1,suffix:"",name:"default"}],te=[{divider:1e12,suffix:"\u4e07\u4ebf",name:"wanyi"},{divider:1e8,suffix:"\u4ebf",name:"yi"},{divider:1e4,suffix:"\u4e07",name:"wan"},{divider:1e3,suffix:"\u5343",name:"qian"},{divider:1,suffix:"",name:"none"}];function re(e,t,r){var n=e/t;return(n=Number.isInteger(n)?n:parseFloat(n.toFixed(2))).toString()+r}var ne=function(e,t,r){var n=Object(a.isNumber)(e)?e:Number(e);if(r)for(var i=0,o=t;i=l.divider?re(n,l.divider,l.suffix):n.toString()}},ie=function(e){return function(t){var r=0===ee.filter((function(t){return t.name===e})).length;return ne(t,r?te:ee,e)}},oe=b(["axisUnit","showYAxis","showYAxisTick","showSplitLineY","yAxisSplitLineColor","yAxisLineColor","showYAxisLabel","yAxisTextColor","yAxisFontStyle","yAxisFontWeight","yAxisFontFamily","yAxisFontSize","showYAxisLine","min","max"])((function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps,o=i.isTransverse?"xAxis":"yAxis",s=function(e){var t=i.axisUnit,r=0===ee.filter((function(e){return e.name===t})).length;return ne(e,r?te:ee,t)};Object(a.set)(r,o+".axisLabel.formatter",s),Object(a.set)(t,o+".axisLabel.formatter",s),f(n,i,"showYAxis","yAxis.show",r,t),f(n,i,"showYAxisLine","yAxis.axisLine.show",r,t),f(n,i,"showYAxisTick","yAxis.axisTick.show",r,t),f(n,i,"showSplitLineY","yAxis.splitLine.show",r,t),f(n,i,"yAxisLineColor","yAxis.axisLine.lineStyle.color",r,t),f(n,i,"showYAxisLabel","yAxis.axisLabel.show",r,t),f(n,i,"yAxisTextColor","yAxis.axisLabel.color",r,t),f(n,i,"yAxisFontStyle","yAxis.axisLabel.fontStyle",r,t),f(n,i,"yAxisFontWeight","yAxis.axisLabel.fontWeight",r,t),f(n,i,"yAxisFontFamily","yAxis.axisLabel.fontFamily",r,t),f(n,i,"yAxisFontSize","yAxis.axisLabel.fontSize",r,t),f(n,i,"yAxisSplitLineColor","yAxis.splitLine.lineStyle.color",r,t);var c=function(e){var n=i[e];if(Object(a.isString)(n)){var s=n.match(/-?[0-9]+.*[0-9]*/);n=Object(a.isArray)(s)?parseFloat(s[0]):null}Object(a.set)(r,o+"."+e,n),Object(a.set)(t,o+"."+e,n)};c("min"),c("max")})),ae=b(["showXAxis","showXAxisTick","showSplitLineX","xAxisSplitLineColor","xAxisLineColor","showXAxisLabel","xAxisTextColor","xAxisFontStyle","xAxisFontWeight","xAxisFontFamily","xAxisFontSize","xAxisLabelFormatter","showXAxisLine","xAxisUnit","xMin","xMax"])((function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps;if("scatter"===i.seriesType||"bubble"===i.seriesType){var o=function(e){var t=i.xAxisUnit,r=0===ee.filter((function(e){return e.name===t})).length;return ne(e,r?te:ee,t)};Object(a.set)(r,"xAxis.axisLabel.formatter",o),Object(a.set)(t,"xAxis.axisLabel.formatter",o);var s=function(e,n){var o=i[n];if(Object(a.isString)(o)){var s=o.match(/-?[0-9]+.*[0-9]*/);o=Object(a.isArray)(s)?parseFloat(s[0]):null}Object(a.set)(r,"xAxis."+e,o),Object(a.set)(t,"xAxis."+e,o)};s("min","xMin"),s("max","xMax")}f(n,i,"showXAxis","xAxis.show",r,t),f(n,i,"showXAxisLine","xAxis.axisLine.show",r,t),f(n,i,"showXAxisTick","xAxis.axisTick.show",r,t),f(n,i,"showSplitLineX","xAxis.splitLine.show",r,t),f(n,i,"xAxisLineColor","xAxis.axisLine.lineStyle.color",r,t),f(n,i,"showXAxisLabel","xAxis.axisLabel.show",r,t),f(n,i,"xAxisTextColor","xAxis.axisLabel.color",r,t),f(n,i,"xAxisFontStyle","xAxis.axisLabel.fontStyle",r,t),f(n,i,"xAxisFontWeight","xAxis.axisLabel.fontWeight",r,t),f(n,i,"xAxisFontFamily","xAxis.axisLabel.fontFamily",r,t),f(n,i,"xAxisFontSize","xAxis.axisLabel.fontSize",r,t),f(n,i,"xAxisSplitLineColor","xAxis.splitLine.lineStyle.color",r,t);var c=i.isTransverse?"yAxis":"xAxis";f(n,i,"xAxisLabelFormatter",c+".axisLabel.formatter",r,t,(function(e){return function(t){return Object(V.format)(new Date(t),e)}}))})),se=b(["seriesMap","customizedSeries","showSymbol","symbol","symbolSize","barWidth","stackEnable","ifSmooth","showAreaStyle","color","seriesType","showBarLabel"])((function(e){var t=e.prevOpt,r=e.patchOpt,i=(e.currentProps,e.nextProps),o=i.seriesMap,s=Object(a.has)(t,"series")&&i.customizedSeries&&i.customizedSeries.length>0,l=function(e,r){return Object(a.has)(t,"series")?t.series[r][e]:i[e]},u=function(e,r){var o={smooth:!Object(a.isNil)(i.ifSmooth)&&i.ifSmooth},u={showSymbol:l("showSymbol",e)||!1,symbol:l("symbol",e)||"emptyCircle",symbolSize:l("symbolSize",e)||4};if(Object(a.has)(t,"series")||(o=Object(n.__assign)(Object(n.__assign)({},o),u)),i.showAreaStyle){var d=function(e){return Object(a.isString)(e)?p(e):c(e,!0)}(i.color[e%10]);return s&&r>-1&&(d=i.customizedSeries[r].areaStyleColor),Object(n.__assign)(Object(n.__assign)({},o),{areaStyle:{color:d}})}return o};if(!Object(a.isNil)(o)&&!Object(a.isNil)(o.seriesOpt)){var d=o.dataTable,b=Object(a.map)(o.seriesOpt,(function(e,r){var o=i.seriesType,p=e.yCol,b=d.headers[p].name,h=Object(a.findIndex)(i.customizedSeries,(function(e){return e.seriesName===b}));"lineBar"===o&&(o=i.customizedSeries&&h-1?i.customizedSeries[h].seriesType:Object(a.has)(t,"series")?t.series[r].type:0===r?"line":"bar");var f=c(i.color[r%10]);return s&&h>-1&&(f=c(i.customizedSeries[h].color)),Object(n.__assign)({type:o,itemStyle:{color:f},name:b,hoverAnimation:!0,label:{normal:{show:i.showBarLabel||!1}},stack:i.stackEnable?"stack":null,data:Object(a.map)(d.data,(function(t){return Object(a.isNumber)(t[e.yCol])?t[e.yCol]:0}))},"line"===o?u(r,h):function(e){var t=i.barWidth;return i.stackEnable||(t=l("barWidth",e)),Object(a.isNil)(t)?{}:{barWidth:t}}(r))}));Object(a.set)(r,"series",b),Object(a.set)(t,"series",b)}})),ce=b(["seriesMap","seriesType","centerX","centerY","roseType","inradius","startAngle"])((function(e){var t=e.prevOpt,r=e.patchOpt,n=(e.currentProps,e.nextProps),i=n.seriesMap;if(!Object(a.isNil)(i)&&!Object(a.isNil)(i.seriesOpt)){var o=i.dataTable,s=i.seriesOpt.length,c=Object(a.isNil)(n.inradius)?"radius"===n.roseType||"area"===n.roseType?0:18:n.inradius,l=(82-c-2*s)/s,u=function(e){var t;if(1===s)t=["43%","70%"],0===e&&(t[0]=c+"%");else{var r=c+e*(l+2);t=[r+"%",r+l+"%"]}return t},d=[n.centerX+"%",n.centerY+"%"],p=Object(a.map)(i.seriesOpt,(function(e,t){return{type:n.seriesType,name:i.dataTable.headers[e.yCol].name,hoverAnimation:!0,startAngle:n.startAngle||90,radius:u(t),center:d,data:Object(a.map)(o.data,(function(t){return{value:Object(a.isNumber)(t[e.yCol])?t[e.yCol]:0,name:t[e.xCol]}})),label:{show:!1},roseType:!Object(a.isNil)(n.roseType)&&n.roseType}}));Object(a.set)(r,"series",p),Object(a.set)(t,"series",p)}})),le=b(["customizedSeries","seriesMap","showAreaStyle"])((function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps;if(i.customizedSeries!==n.customizedSeries){var o=Object(a.differenceWith)(i.customizedSeries,n.customizedSeries,a.isEqual),s=t.legend.data.slice();Object(a.map)(o,(function(e){var n=Object(a.findIndex)(s,(function(t){return t.name===e.seriesName}));if(n>-1){var i=c(e.color);s[n].textStyle.color=Object(a.isString)(i)?i:l(i),function(e,n,i,o){var s=t.series.slice();switch(e){case"bar":s[n].type="bar",s[n].barWidth=i.barWidth;break;case"line":case"arealine":s[n].type="line",s[n].lineStyle={},s[n].lineStyle.width=i.lineWidth,s[n].lineStyle.type=i.lineType,s[n].showSymbol=i.showSymbol,s[n].symbol=i.symbol,s[n].symbolSize=i.symbolSize,s[n].areaStyle={},"line"===e?s[n].areaStyle.opacity=0:(s[n].areaStyle.opacity=1,s[n].areaStyle.color=i.areaStyleColor&&i.areaStyleColor.colorStops?i.areaStyleColor:c(i.areaStyleColor));break;case"arearadar":s&&s.length>0&&(s[0].data[n].areaStyle={},s[0].data[n].areaStyle.color=i.areaStyleColor&&i.areaStyleColor.colorStops?i.areaStyleColor:c(i.areaStyleColor));break;case"scatter":s[n].type="scatter",s[n].symbol=i.symbol}if(Object(a.has)(s[n],"itemStyle"))s[n].itemStyle={},s[n].itemStyle.color=o;else{var l=t.color.slice();l[n]=o,Object(a.set)(r,"color",l),Object(a.set)(t,"color",l)}Object(a.set)(r,"series",s),Object(a.set)(t,"series",s)}("lineBar"===e.type||"mixed"===e.type?e.seriesType:e.type,n,e,i)}})),Object(a.difference)(s,t.legend.data).length>0&&(Object(a.set)(r,"legend.data",s),Object(a.set)(t,"legend.data",s))}})),ue=function(e,t){void 0===t&&(t=!1);var r=[];return r=Object(a.isString)(e)?[{offset:0,color:e},{offset:1,color:e}]:e.stops||e.colorStops,t&&(r=Object(a.map)(r,(function(e){return{offset:e.offset,color:d(e.color,e.offset/4)}}))),{type:"radial",x:.5,y:.5,r:.5,colorStops:r}},de=b(["seriesMap","customizedSeries","showAreaStyle","color","showSymbol","seriesType"])((function(e){var t=e.prevOpt,r=e.patchOpt,i=(e.currentProps,e.nextProps),o=i.seriesMap,s=Object(a.has)(t,"series")&&i.customizedSeries&&i.customizedSeries.length>0;if(!Object(a.isNil)(o)&&!Object(a.isNil)(o.seriesOpt)){var c=o.dataTable,l=Object(a.map)(o.seriesOpt,(function(e,t){var r={},o=e.yCol,l=c.headers[o].name,u=Object(a.findIndex)(i.customizedSeries,(function(e){return e.seriesName===l}));if(i.showAreaStyle){var d=ue(i.color[t%10],!0);s&&u>-1&&(d=ue(i.customizedSeries[u].areaStyleColor)),r={areaStyle:{color:d}}}return Object(n.__assign)({name:l,value:Object(a.map)(c.data,(function(t){return Object(a.isNumber)(t[e.yCol])?t[e.yCol]:0}))},r)})),u=[{symbol:i.showSymbol?"circle":"none",type:i.seriesType,data:l}];Object(a.set)(r,"series",u),Object(a.set)(t,"series",u)}})),pe=b(["seriesMap","centerX","centerY","radius","radarBgLineColor","radarBgBorderColor","radarNameColor","radarNameFontStyle","radarNameFontWeight","radarNameFontFamily","radarNameFontSize","radarShape"])((function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps,o=i.seriesMap,s=[i.centerX+"%",i.centerY+"%"];if(!Object(a.isNil)(o)&&!Object(a.isNil)(o.seriesOpt)){var c=o.dataTable,l={indicator:o.seriesOpt.length>0&&c.data.length>0?Object(a.map)(c.data,(function(e){return{name:e[o.seriesOpt[0].xCol],min:e[o.seriesOpt[0].minCol],max:e[o.seriesOpt[0].maxCol]}})):[{name:""}],center:s,radius:i.radius+"%",splitArea:{show:!1}};Object(a.set)(r,"radar",l),Object(a.set)(t,"radar",l)}if(i.radarBgLineColor){for(var u=[],d=0;d<5;d++)u.push(i.radarBgLineColor);u.push(i.radarBgBorderColor),Object(a.set)(r,"radar.splitLine.lineStyle.color",u),Object(a.set)(t,"radar.splitLine.lineStyle.color",u)}f(n,i,"radarNameColor","radar.name.color",r,t),f(n,i,"radarNameFontStyle","radar.name.fontStyle",r,t),f(n,i,"radarNameFontWeight","radar.name.fontWeight",r,t),f(n,i,"radarNameFontFamily","radar.name.fontFamily",r,t),f(n,i,"radarNameFontSize","radar.name.fontSize",r,t),f(n,i,"radarShape","radar.shape",r,t),f(n,i,"radarBgLineColor","radar.axisLine.lineStyle.color",r,t)})),be=function(e){return[e+"ShowAxis",e+"AxisType",e+"AxisName",e+"Unit",e+"Min",e+"Max",e+"ShowAxisLine",e+"AxisLineColor",e+"ShowAxisTick",e+"ShowAxisLabel",e+"AxisFontFamily",e+"AxisFontSize",e+"AxisFontStyle",e+"AxisFontWeight",e+"AxisTextColor",e+"AxisUnit",e+"AxisLabelFormatter",e+"ShowSplitLine",e+"AxisFeatures",e+"AxisSplitLineColor"]},he=Object(n.__spreadArrays)(be("x"),be("y"),be("y0"),be("y1")),fe=b(he)((function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps,o=function(e){var o=e.match(/^(x|y)(\d)?$/),s=Object(a.isArray)(o)&&!Object(a.isNil)(o[2])?o[1]+"Axis["+o[2]+"]":o[1]+"Axis";f(n,i,e+"ShowAxis",s+".show",r,t),f(n,i,e+"ShowAxisLine",s+".axisLine.show",r,t),f(n,i,e+"ShowAxisTick",s+".axisTick.show",r,t),f(n,i,e+"ShowSplitLine",s+".splitLine.show",r,t),f(n,i,e+"AxisSplitLineColor",s+".splitLine.lineStyle.color",r,t),f(n,i,e+"AxisLineColor",s+".axisLine.lineStyle.color",r,t),f(n,i,e+"AxisLineColor",s+".axisLabel.color",r,t),f(n,i,e+"ShowAxisLabel",s+".axisLabel.show",r,t),f(n,i,e+"AxisTextColor",s+".axisLabel.color",r,t),f(n,i,e+"AxisFontStyle",s+".axisLabel.fontStyle",r,t),f(n,i,e+"AxisFontWeight",s+".axisLabel.fontWeight",r,t),f(n,i,e+"AxisFontFamily",s+".axisLabel.fontFamily",r,t),f(n,i,e+"AxisFontSize",s+".axisLabel.fontSize",r,t),f(n,i,e+"AxisName",s+".name",r,t);var c=function(e,n){if(Object(a.set)(r,s+".type",e),Object(a.set)(t,s+".type",e),!Object(a.isNil)(i.seriesMap)&&!Object(a.isNil)(i.seriesMap.dataTable)){var o=i.seriesMap.seriesOpt.xCol;"date"===i.seriesMap.dataTable.headers[o].type&&(Object(a.set)(r,"xAxis.type","time"),Object(a.set)(t,"xAxis.type","time"))}Object(a.set)(r,s+".axisLabel.formatter",n),Object(a.set)(t,s+".axisLabel.formatter",n),Object(a.set)(r,s+".min",null),Object(a.set)(t,s+".min",null),Object(a.set)(r,s+".max",null),Object(a.set)(t,s+".max",null)},l=function(e,n){if(!Object(a.isNil)(e)){var i=e;Object(a.isString)(i)&&"dataMin"!==i&&"dataMax"!==i&&(i=i.match(/-?[0-9]+.*[0-9]*/),i=Object(a.isArray)(i)?parseFloat(i[0]):null),Object(a.set)(r,s+"."+n,i),Object(a.set)(t,s+"."+n,i)}},u=function(e,t,r){c("value",(function(t){var r=0===ee.filter((function(t){return t.name===e})).length;return ne(t,r?te:ee,e)})),l(t,"min"),l(r,"max")};if(Object(a.isNil)(i[e+"AxisFeatures"]))switch(i[e+"AxisType"]){case"value":u(i[e+"AxisUnit"],i[e+"Min"],i[e+"Max"]);break;case"time":c("time",(function(t){return Object(V.format)(new Date(t),i[e+"AxisLabelFormatter"])}));break;case"category":default:c("category","{value}")}else{var d=i[e+"AxisFeatures"];switch(d.axisType){case"value":u(d.axisUnit,d.axisMin,d.axisMax);break;case"time":c("time",(function(e){return Object(V.format)(new Date(e),d.axisDateFormatter)})),l("dataMin","min"),l("dataMax","max");break;case"category":default:c("category","{value}")}}};Object(a.isNil)(i.axises)?(o("x"),o("y")):Object(a.map)(i.axises,(function(e){return o(e)}))})),ge=b(["centerX","centerY","radius","value","waveNumber","colors","bgColor","bgBorderWidth","bgBorderColor","showShadow","shadowColor","shadowBlur","showLabel","labelColor","labelInsideColor","labelFontSize","labelX","labelY","shape"])((function(e){var t=e.prevOpt,r=e.patchOpt,n=e.currentProps,i=e.nextProps,o=[i.centerX+"%",i.centerY+"%"],s=[i.labelX+"%",i.labelY+"%"],c=i.waveNumber?Object(a.fill)(Array(i.waveNumber),i.value/100):[],l=i.showShadow?i.shadowColor:"transparent";Object(a.has)(t,"series")?g(r,t,"series.data",c):g(r,t,"series",[{type:"liquidFill",data:c,name:"",outline:{show:!1},label:{position:["38%","40%"]}}]);g(r,t,"series.center",o),f(n,i,"radius","series.radius",r,t,(function(e){return e+"%"})),f(n,i,"bgColor","series.backgroundStyle.color",r,t),f(n,i,"bgBorderWidth","series.backgroundStyle.borderWidth",r,t),f(n,i,"bgBorderColor","series.backgroundStyle.borderColor",r,t),g(r,t,"series.backgroundStyle.shadowColor",l),f(n,i,"shadowBlur","series.backgroundStyle.shadowBlur",r,t),f(n,i,"showLabel","series.label.show",r,t),f(n,i,"labelColor","series.label.color",r,t),f(n,i,"labelInsideColor","series.label.insideColor",r,t),f(n,i,"labelFontSize","series.label.fontSize",r,t),g(r,t,"series.label.position",s),f(n,i,"colors","series.color",r,t),f(n,i,"shape","series.shape",r,t)})),me=b(["paddingTop","paddingLeft","showGrid3D","showAxisLine","axisLineColor","showAxisLabel","axisFontFamily","axisFontSize","axisFontStyle","axisFontWeight","axisLabelColor","showAxisTick","showSplitLine","splitLineColor","xAxisName","xAxisType","xAxisLabelFormatter","xAxisUnit","xMin","xMax","xLogBase","yAxisName","yAxisType","yAxisLabelFormatter","yAxisUnit","yMin","yMax","yLogBase","zAxisName","zAxisType","zAxisLabelFormatter","zAxisUnit","zMin","zMax","zLogBase","seriesMap","showVisualMap","inRangeColor","opacity","visualMapMin","visualMapMax"])((function(e){var t,r,n,i=e.prevOpt,o=e.patchOpt,s=e.currentProps,c=e.nextProps,l=(null===(r=null===(t=c.seriesMap)||void 0===t?void 0:t.tableData)||void 0===r?void 0:r.data)||[],u=(null===(n=c.seriesMap)||void 0===n?void 0:n.seriesOpt)||{},d=u.xCol,p=u.yCol,b=u.zCol;g(o,i,"grid3D",{viewControl:{distance:220}});var h=[{type:c.type,data:l.map((function(e){return{value:[e[d],e[p],e[b]]}})),itemStyle:{opacity:c.opacity/100}}];g(o,i,"series",h),f(s,c,"showGrid3D","grid3D.show",o,i),f(s,c,"paddingTop","grid3D.top",o,i),f(s,c,"paddingLeft","grid3D.left",o,i),f(s,c,"showAxisLine","grid3D.axisLine.show",o,i),f(s,c,"axisLineColor","grid3D.axisLine.lineStyle.color",o,i),f(s,c,"showAxisLabel","grid3D.axisLabel.show",o,i),f(s,c,"axisFontFamily","grid3D.axisLabel.textStyle.fontFamily",o,i),f(s,c,"axisFontSize","grid3D.axisLabel.textStyle.fontSize",o,i),f(s,c,"axisFontStyle","grid3D.axisLabel.textStyle.fontStyle",o,i),f(s,c,"axisFontWeight","grid3D.axisLabel.textStyle.fontWeight",o,i),f(s,c,"axisLabelColor","grid3D.axisLabel.color",o,i),f(s,c,"showAxisTick","grid3D.axisTick.show",o,i),f(s,c,"showSplitLine","grid3D.splitLine.show",o,i),f(s,c,"splitLineColor","grid3D.splitLine.lineStyle.color",o,i);var m=function(e){f(s,c,e+"AxisType",e+"Axis3D.type",o,i),"time"===c[e+"AxisType"]&&f(s,c,e+"AxisLabelFormatter",e+"Axis3D.axisLabel.formatter",o,i,(function(e){return function(t){return Object(V.format)(new Date(t),e)}})),"value"===c[e+"AxisType"]&&f(s,c,e+"AxisUnit",e+"Axis3D.axisLabel.formatter",o,i,ie);var t=function(e){if(Object(a.isString)(e)){var t=e.match(/-?[0-9]+.*[0-9]*/);return Object(a.isArray)(t)?parseFloat(t[0]):null}return e};f(s,c,e+"Min",e+"Axis3D.min",o,i,t),f(s,c,e+"Max",e+"Axis3D.max",o,i,t),f(s,c,e+"LogBase",e+"Axis3D.logBase",o,i),f(s,c,e+"AxisName",e+"Axis3D.name",o,i)};m("x"),m("y"),m("z"),f(s,c,"showVisualMap","visualMap.show",o,i),f(s,c,"inRangeColor","visualMap.inRange.color",o,i),f(s,c,"visualMapMin","visualMap.min",o,i),f(s,c,"visualMapMax","visualMap.max",o,i)})),Oe=r(0);function je(e){var t=Object(Oe.useRef)();return Object(Oe.useEffect)((function(){t.current=e})),t.current}},238:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(54),i=r(24),o=function(){function e(e){this._name=e.name,this._type=e.type,this._solver=e.solver,this._attr={},e.name||(this._attr[i.a.LEFT]=new n.e,this._solver.addConstraint(new n.a(this._attr[i.a.LEFT],n.b.Eq,0)),this._attr[i.a.TOP]=new n.e,this._solver.addConstraint(new n.a(this._attr[i.a.TOP],n.b.Eq,0)),this._attr[i.a.ZINDEX]=new n.e,this._solver.addConstraint(new n.a(this._attr[i.a.ZINDEX],n.b.Eq,0)))}return e.prototype.toJSON=function(){return{name:this.name,left:this.left,top:this.top,width:this.width,height:this.height}},e.prototype.toString=function(){JSON.stringify(this.toJSON(),void 0,2)},Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"left",{get:function(){return this._getAttrValue(i.a.LEFT)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"right",{get:function(){return this._getAttrValue(i.a.RIGHT)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){return this._getAttrValue(i.a.WIDTH)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this._getAttrValue(i.a.HEIGHT)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"intrinsicWidth",{get:function(){return this._intrinsicWidth},set:function(e){if(void 0!==e&&e!==this._intrinsicWidth){var t=this._getAttr(i.a.WIDTH);void 0===this._intrinsicWidth&&this._solver.addEditVariable(t,n.d.create(this._name?998:999,1e3,1e3)),this._intrinsicWidth=e,this._solver.suggestValue(t,e),this._solver.updateVariables()}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"intrinsicHeight",{get:function(){return this._intrinsicHeight},set:function(e){if(void 0!==e&&e!==this._intrinsicHeight){var t=this._getAttr(i.a.HEIGHT);void 0===this._intrinsicHeight&&this._solver.addEditVariable(t,n.d.create(this._name?998:999,1e3,1e3)),this._intrinsicHeight=e,this._solver.suggestValue(t,e),this._solver.updateVariables()}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"top",{get:function(){return this._getAttrValue(i.a.TOP)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"bottom",{get:function(){return this._getAttrValue(i.a.BOTTOM)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"centerX",{get:function(){return this._getAttrValue(i.a.CENTERX)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"centerY",{get:function(){return this._getAttrValue(i.a.CENTERY)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"zIndex",{get:function(){return this._getAttrValue(i.a.ZINDEX)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),e.prototype.getValue=function(e){return this._attr[e]?this._attr[e].value():void 0},e.prototype._getAttr=function(e){if(this._attr[e])return this._attr[e];switch(this._attr[e]=new n.e,e){case i.a.RIGHT:this._getAttr(i.a.LEFT),this._getAttr(i.a.WIDTH),this._solver.addConstraint(new n.a(this._attr[e],n.b.Eq,this._attr[i.a.LEFT].plus(this._attr[i.a.WIDTH])));break;case i.a.BOTTOM:this._getAttr(i.a.TOP),this._getAttr(i.a.HEIGHT),this._solver.addConstraint(new n.a(this._attr[e],n.b.Eq,this._attr[i.a.TOP].plus(this._attr[i.a.HEIGHT])));break;case i.a.CENTERX:this._getAttr(i.a.LEFT),this._getAttr(i.a.WIDTH),this._solver.addConstraint(new n.a(this._attr[e],n.b.Eq,this._attr[i.a.LEFT].plus(this._attr[i.a.WIDTH].divide(2))));break;case i.a.CENTERY:this._getAttr(i.a.TOP),this._getAttr(i.a.HEIGHT),this._solver.addConstraint(new n.a(this._attr[e],n.b.Eq,this._attr[i.a.TOP].plus(this._attr[i.a.HEIGHT].divide(2))))}return this._solver.updateVariables(),this._attr[e]},e.prototype._getAttrValue=function(e){return this._getAttr(e).value()},e}()},24:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n={CONST:"const",NOTANATTRIBUTE:"const",VARIABLE:"var",LEFT:"left",RIGHT:"right",TOP:"top",BOTTOM:"bottom",WIDTH:"width",HEIGHT:"height",CENTERX:"centerX",CENTERY:"centerY",ZINDEX:"zIndex"}},244:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(0),i=r(33),o=r(2),a=r(81),s=r(82),c=function(e,t,r,n,i){void 0===i&&(i=0);var o=Math.min(t,r)/2,a=Math.min(o,n),s=Math.min(o,i);switch(e){case"snipRoundCorner":return["M0 "+s,"Q 0 0, "+s+" 0","H "+(t-a),"L "+t+" "+a,"V "+r,"H 0","Z"].join(" ");case"roundSameSideCorner":return["M0 "+a,"Q 0 0, "+a+" 0","H "+(t-a),"Q "+t+" 0, "+t+" "+a,"V "+(r-s),"Q "+t+" "+r+", "+(t-s)+" "+r,"H "+s,"Q 0 "+r+", 0 "+(r-s),"Z"].join(" ");case"roundDiagonalCorner":return["M0 "+s,"Q 0 0, "+s+" 0","H "+(t-a),"Q "+t+" 0, "+t+" "+a,"V "+(r-s),"Q "+t+" "+r+", "+(t-s)+" "+r,"H "+a,"Q 0 "+r+", 0 "+(r-a),"Z"].join(" ")}},l=function(e){var t=e.id,r=e.type,i=e.width,a=e.height,s=e.mergedFill,l=e.isMergedFillGradient,u=e.stroke,d=e.strokeWidth,p=e.vertexRight,b=e.vertexLeft;return n.createElement("g",null,n.createElement("defs",null,l&&n.createElement(o.b,{id:t,gradient:s})),n.createElement("path",{d:c(r,i,a,p,b),fill:l?"url(#"+t+")":s,stroke:u,strokeWidth:d}))};l.displayName="SnipRoundRectangle",l.defaultProps={strokeWidth:1};var u=Object(i.a)(s.a,a.a)(l)},245:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(0),i=r(33),o=r(2),a=r(81),s=r(82),c=function(e,t,r,n,i){void 0===i&&(i=0);var o=Math.min(t,r)/2,a=Math.min(o,n),s=Math.min(o,i);switch(e){case"snipOneCorner":return["0,0",t-a+",0",t+","+a,t+","+r,"0,"+r].join(" ");case"snipSameSideCorner":return[a+",0",t-a+",0",t+","+a,t+","+(r-s),t-s+","+r,s+","+r,"0,"+(r-s),"0,"+a].join(" ");case"snipDiagonalCorner":return[s+",0",t-a+",0",t+","+a,t+","+(r-s),t-s+","+r,a+","+r,"0,"+(r-a),"0,"+s].join(" ")}},l=function(e){var t=e.id,r=e.type,i=e.width,a=e.height,s=e.mergedFill,l=e.isMergedFillGradient,u=e.stroke,d=e.strokeWidth,p=e.vertexRight,b=e.vertexLeft;return n.createElement("g",null,n.createElement("defs",null,l&&n.createElement(o.b,{id:t,gradient:s})),n.createElement("polygon",{points:c(r,i,a,p,b),fill:l?"url(#"+t+")":s,stroke:u,strokeWidth:d}))};l.displayName="SnipRectangle",l.defaultProps={strokeWidth:1};var u=Object(i.a)(s.a,a.a)(l)},246:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(4),i=r(2),o=r(13),a=r(34),s=r(153),c=r(129),l={typeId:"945ee87d-e47b-48fe-99c5-b621cd7a6088",ver:"1.1",propsSchema:Object(n.__assign)(Object(n.__assign)({},c.a.propsSchema),{isTransverse:Object(i.I)(!0),seriesMap:Object(o.j)({seriesOpt:[{xCol:0,yCol:1,seriesName:"\u6e29\u5ea6"},{xCol:0,yCol:2,seriesName:"\u7a7a\u6c14\u8d28\u91cf"}],dataTable:{headers:[{name:"\u57ce\u5e02",type:"string"},{name:"\u6e29\u5ea6",type:"number"},{name:"\u7a7a\u6c14\u8d28\u91cf",type:"number"}],data:[["\u5317\u4eac",33,25],["\u4e0a\u6d77",35,38]]}}),showDataZoomX:Object(i.I)(!1),showSplitLineX:Object(i.I)(!0),showSplitLineY:Object(i.I)(!1),paddingBottom:Object(i.B)(45),paddingTop:Object(i.B)(52)}),component:s.a,eventsSchema:c.a.eventsSchema,interactSessionMiddleware:c.a.interactSessionMiddleware,propsResolver:a.a}},251:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(2),i=r(56),o=r(13),a=r(34),s=r(379),c={typeId:"d8e16173-d095-4e1e-8838-5b6c4e5d9cc1",ver:"1.1",propsSchema:{barWidth:Object(n.E)(25),barGap:Object(n.u)(30),xAxisLineColor:Object(n.j)("#CBD3E0"),yAxisLineColor:Object(n.j)("#CBD3E0"),axisUnit:Object(o.r)(""),color:Object(o.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),dataZoomBgColor:Object(n.j)("#EAF6FE"),dataZoomBorderColor:Object(n.j)("transparent"),dataZoomBottom:Object(n.B)(20),dataZoomFillerColor:Object(n.j)("rgba(16, 140, 238, 0.5)"),dataZoomHandleIcon:Object(o.l)("image://data:image/svg+xml;utf8,\n \n \n \n \n \n \n \n "),dataZoomHeight:Object(n.E)(8),dataZoomTextColor:Object(n.j)("transparent"),dataZoomStart:Object(n.C)(0),dataZoomEnd:Object(n.C)(100),dumb:Object(n.I)(!1),groupFormatter:Object(o.k)("{groupCol}/{yHeader}"),height:Object(n.A)(300),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("right"),legendIcon:Object(o.n)("rect"),legendItemGap:Object(n.B)(15),legendItemHeight:Object(n.A)(12),legendItemWidth:Object(n.A)(12),legendOrient:Object(o.h)("horizontal"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(20),legendPaddingTop:Object(n.B)(20),legendSelected:Object(o.o)({}),legendVerticalAlign:Object(n.N)("top"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),seriesMap:Object(o.w)({seriesOpt:[{xCol:0,yCol:1,groupByCols:[3],seriesName:"\u6e29\u5ea6"},{xCol:0,yCol:2,groupByCols:[3],seriesName:"\u7a7a\u6c14\u8d28\u91cf"}],dataTable:{headers:[{name:"\u65f6\u95f4\u6233",type:"date"},{name:"\u6e29\u5ea6",type:"number"},{name:"\u7a7a\u6c14\u8d28\u91cf",type:"number"},{name:"\u57ce\u5e02",type:"string"}],data:[[1503474810837,33,55,"\u5317\u4eac"],[1503474810837,35,26,"\u4e0a\u6d77"],[1503474820837,34,53,"\u5317\u4eac"],[1503474820837,35,20,"\u4e0a\u6d77"]]}}),seriesType:Object(o.s)("bar"),showDataShadow:Object(n.I)(!1),showDataZoomX:Object(n.I)(!0),showLegend:Object(n.I)(!0),showSplitLineX:Object(n.I)(!1),showSplitLineY:Object(n.I)(!0),showTooltip:Object(n.I)(!0),showXAxis:Object(n.I)(!0),showXAxisLabel:Object(n.I)(!0),showXAxisLine:Object(n.I)(!1),showXAxisTick:Object(n.I)(!1),showYAxis:Object(n.I)(!0),showYAxisLabel:Object(n.I)(!0),showYAxisLine:Object(n.I)(!1),showYAxisTick:Object(n.I)(!1),xAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),yAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),tooltipAxisColor:Object(n.j)("#108CEE"),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),tooltipTrigger:Object(o.y)("axis"),width:Object(n.A)(420),xAxisFontFamily:Object(n.n)("sans-serif"),xAxisFontSize:Object(n.o)(12),xAxisFontStyle:Object(n.p)("normal"),xAxisFontWeight:Object(n.q)("normal"),xAxisLabelFormatter:Object(n.L)("HH:mm:ss"),xAxisTextColor:Object(n.j)("#333"),yAxisFontFamily:Object(n.n)("sans-serif"),yAxisFontSize:Object(n.o)(12),yAxisFontStyle:Object(n.p)("normal"),yAxisFontWeight:Object(n.q)("normal"),yAxisTextColor:Object(n.j)("#333"),min:Object(o.a)("auto"),max:Object(o.a)("auto"),showBarLabel:Object(n.I)(!1),stackEnable:Object(n.I)(!1)},eventsSchema:{currentLegendSelected:o.o,currentDatazoomRange:o.g},interactSessionMiddleware:i.c,component:s.a,propsResolver:a.a}},252:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(2),i=r(56),o=r(13),a=r(34),s=r(381),c={typeId:"87c45277-ad83-4ef3-98de-abe804c03bfd",ver:"1.1",propsSchema:{xAxisLineColor:Object(n.j)("#CBD3E0"),yAxisLineColor:Object(n.j)("#CBD3E0"),axisUnit:Object(o.r)(""),color:Object(o.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),dataZoomBgColor:Object(n.j)("#EAF6FE"),dataZoomBorderColor:Object(n.j)("transparent"),dataZoomBottom:Object(n.B)(20),dataZoomFillerColor:Object(n.j)("rgba(16, 140, 238, 0.5)"),dataZoomHandleIcon:Object(o.l)("image://data:image/svg+xml;utf8,\n \n \n \n \n \n \n \n "),dataZoomHeight:Object(n.E)(8),dataZoomTextColor:Object(n.j)("transparent"),dataZoomStart:Object(n.C)(0),dataZoomEnd:Object(n.C)(100),dumb:Object(n.I)(!1),groupFormatter:Object(o.k)("{groupCol}/{yHeader}"),height:Object(n.A)(300),ifSmooth:Object(n.I)(!1),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("right"),legendItemGap:Object(n.B)(15),legendItemHeight:Object(n.A)(7),legendItemWidth:Object(n.A)(19),legendOrient:Object(o.h)("horizontal"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(20),legendPaddingTop:Object(n.B)(20),legendSelected:Object(o.o)({}),legendVerticalAlign:Object(n.N)("top"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),series:Object(o.t)(["\u5317\u4eac\u6e29\u5ea6","\u4e0a\u6d77\u6e29\u5ea6","\u5e7f\u5dde\u6e29\u5ea6","\u5317\u4eac\u7a7a\u6c14\u8d28\u91cf","\u4e0a\u6d77\u7a7a\u6c14\u8d28\u91cf","\u5e7f\u5dde\u7a7a\u6c14\u8d28\u91cf"]),seriesMap:Object(o.w)({seriesOpt:[{xCol:0,yCol:1,groupByCols:[2],seriesName:"\u6e29\u5ea6"}],dataTable:{headers:[{name:"\u65f6\u95f4\u6233",type:"date"},{name:"\u6e29\u5ea6",type:"number"},{name:"\u57ce\u5e02",type:"string"}],data:[[1503474810837,22,"\u5317\u4eac"],[1503474810837,21,"\u4e0a\u6d77"],[1503474810837,3,"\u5e7f\u5dde"],[1503474810837,12,"\u6df1\u5733"],[1503474820837,22,"\u5317\u4eac"],[1503474820837,23,"\u4e0a\u6d77"],[1503474820837,4,"\u5e7f\u5dde"],[1503474820837,11,"\u6df1\u5733"],[1503474830837,19,"\u5317\u4eac"],[1503474830837,17,"\u4e0a\u6d77"],[1503474830837,7,"\u5e7f\u5dde"],[1503474830837,18,"\u6df1\u5733"],[1503474840837,17,"\u5317\u4eac"],[1503474840837,18,"\u4e0a\u6d77"],[1503474840837,7,"\u5e7f\u5dde"],[1503474840837,20,"\u6df1\u5733"],[1503474850837,18,"\u5317\u4eac"],[1503474850837,19,"\u4e0a\u6d77"],[1503474850837,9,"\u5e7f\u5dde"],[1503474850837,21,"\u6df1\u5733"],[1503474860837,17,"\u5317\u4eac"],[1503474860837,18,"\u4e0a\u6d77"],[1503474860837,10,"\u5e7f\u5dde"],[1503474860837,19,"\u6df1\u5733"],[1503474870837,15,"\u5317\u4eac"],[1503474870837,17,"\u4e0a\u6d77"],[1503474870837,12,"\u5e7f\u5dde"],[1503474870837,20,"\u6df1\u5733"]]}}),seriesType:Object(o.s)("line"),showAreaStyle:Object(n.I)(!1),showDataShadow:Object(n.I)(!1),showDataZoomX:Object(n.I)(!0),showLegend:Object(n.I)(!0),showSplitLineX:Object(n.I)(!1),showSplitLineY:Object(n.I)(!0),showSymbol:Object(n.I)(!0),showTooltip:Object(n.I)(!0),showXAxis:Object(n.I)(!0),showXAxisLabel:Object(n.I)(!0),showXAxisLine:Object(n.I)(!1),showXAxisTick:Object(n.I)(!1),showYAxis:Object(n.I)(!0),showYAxisLabel:Object(n.I)(!0),showYAxisLine:Object(n.I)(!1),showYAxisTick:Object(n.I)(!1),xAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),yAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),symbol:Object(o.u)("emptyCircle"),symbolSize:Object(n.E)(4),tooltipAxisColor:Object(n.j)("#108CEE"),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),tooltipTrigger:Object(o.y)("axis"),width:Object(n.A)(422),xAxisFontFamily:Object(n.n)("sans-serif"),xAxisFontSize:Object(n.o)(12),xAxisFontStyle:Object(n.p)("normal"),xAxisFontWeight:Object(n.q)("normal"),xAxisLabelFormatter:Object(n.L)("HH:mm:ss"),xAxisTextColor:Object(n.j)("#333"),yAxisFontFamily:Object(n.n)("sans-serif"),yAxisFontSize:Object(n.o)(12),yAxisFontStyle:Object(n.p)("normal"),yAxisFontWeight:Object(n.q)("normal"),yAxisTextColor:Object(n.j)("#333"),min:Object(o.a)("auto"),max:Object(o.a)("auto"),stackEnable:Object(n.I)(!1)},eventsSchema:{currentLegendSelected:o.o,currentDatazoomRange:o.g},interactSessionMiddleware:i.c,component:s.a,propsResolver:a.a}},254:function(e,t,r){"use strict";r.d(t,"d",(function(){return i})),r.d(t,"b",(function(){return a})),r.d(t,"a",(function(){return s})),r.d(t,"c",(function(){return d}));var n=r(2),i=Object(n.k)(["polygon","circle"]),o=r(13),a=(Object(n.e)(Object(n.d)([Object(n.w)({type:Object(n.g)("radar"),seriesName:o.m,color:n.r}),Object(n.w)({type:Object(n.g)("arearadar"),seriesName:o.m,color:n.r,areaStyleColor:n.r})])),Object(n.e)(Object(n.w)({type:Object(n.g)("radar"),seriesName:o.m,color:n.r},{defVal:{type:"radar",seriesName:"",color:"#108CEE"}}))),s=Object(n.e)(Object(n.w)({type:Object(n.g)("arearadar"),seriesName:o.m,color:n.r,areaStyleColor:n.r},{defVal:{type:"arearadar",seriesName:"",color:"#108CEE",areaStyleColor:{type:"circle",pos:{x:.5,y:.5},radius:.5,stops:[{offset:0,color:"rgba(16, 140, 238, 0)"},{offset:1,color:"rgba(16, 140, 238, .25)"}]}}})),c=r(3),l=function(e,t){return e\n \n \n \n \n \n \n "),dataZoomHeight:Object(n.E)(8),dataZoomTextColor:Object(n.j)("transparent"),dataZoomStart:Object(n.C)(0),dataZoomEnd:Object(n.C)(100),dumb:Object(n.I)(!1),height:Object(n.A)(200),ifSmooth:Object(n.I)(!1),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("right"),legendItemGap:Object(n.B)(20),legendItemHeight:Object(n.A)(7),legendItemWidth:Object(n.A)(19),legendOrient:Object(o.h)("horizontal"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(20),legendPaddingTop:Object(n.B)(20),legendSelected:Object(o.o)({}),legendVerticalAlign:Object(n.N)("top"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),seriesMap:Object(o.j)({seriesOpt:[{xCol:0,yCol:1,seriesName:"\u6e29\u5ea6"},{xCol:0,yCol:2,seriesName:"\u7a7a\u6c14\u8d28\u91cf"}],dataTable:{headers:[{name:"\u57ce\u5e02",type:"string"},{name:"\u6e29\u5ea6",type:"number"},{name:"\u7a7a\u6c14\u8d28\u91cf",type:"number"}],data:[["\u5317\u4eac",33,25],["\u4e0a\u6d77",35,38],["\u5e7f\u5dde",26,25]]}}),seriesType:Object(o.s)("line"),showAreaStyle:Object(n.I)(!1),showDataShadow:Object(n.I)(!1),showDataZoomX:Object(n.I)(!0),showLegend:Object(n.I)(!0),showSplitLineX:Object(n.I)(!1),showSplitLineY:Object(n.I)(!0),showSymbol:Object(n.I)(!1),showTooltip:Object(n.I)(!0),showXAxis:Object(n.I)(!0),showXAxisLabel:Object(n.I)(!0),showXAxisLine:Object(n.I)(!1),showXAxisTick:Object(n.I)(!1),showYAxis:Object(n.I)(!0),showYAxisLabel:Object(n.I)(!0),showYAxisLine:Object(n.I)(!1),showYAxisTick:Object(n.I)(!1),xAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),yAxisSplitLineColor:Object(n.j)("rgba(203, 211, 224, 0.6)"),stackEnable:Object(n.I)(!1),symbol:Object(o.u)("circle"),symbolSize:Object(n.E)(1),tooltipAxisColor:Object(n.j)("#108CEE"),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),tooltipTrigger:Object(o.y)("axis"),width:Object(n.A)(300),xAxisFontFamily:Object(n.n)("sans-serif"),xAxisFontSize:Object(n.o)(12),xAxisFontStyle:Object(n.p)("normal"),xAxisFontWeight:Object(n.q)("normal"),xAxisTextColor:Object(n.j)("#333"),yAxisFontFamily:Object(n.n)("sans-serif"),yAxisFontSize:Object(n.o)(12),yAxisFontStyle:Object(n.p)("normal"),yAxisFontWeight:Object(n.q)("normal"),yAxisTextColor:Object(n.j)("#333"),min:Object(o.a)("auto"),max:Object(o.a)("auto")},eventsSchema:{currentLegendSelected:o.o,currentDatazoomRange:o.g},component:s.a,interactSessionMiddleware:i.c,propsResolver:c.a}},299:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(2),i=r(56),o=r(13),a=r(112),s=r(34),c=r(178),l={typeId:"c50eff02-f934-4104-ba50-5014d004d39e",ver:"1.1",propsSchema:{centerX:Object(n.B)(33),centerY:Object(n.B)(50),color:Object(o.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),customizedSeries:Object(a.b)([]),dumb:Object(n.I)(!1),height:Object(n.A)(200),inradius:Object(n.B)(0),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("right"),legendIcon:Object(o.n)("rect"),legendItemGap:Object(n.B)(20),legendItemHeight:Object(n.A)(12),legendItemWidth:Object(n.A)(12),legendOrient:Object(o.h)("vertical"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(36),legendPaddingTop:Object(n.B)(20),legendSelected:Object(o.o)({}),legendVerticalAlign:Object(n.N)("middle"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),roseType:Object(a.c)("radius"),seriesMap:Object(a.a)({seriesOpt:[{xCol:0,yCol:1}],dataTable:{headers:[{name:"\u57ce\u5e02",type:"string"},{name:"\u6e29\u5ea6",type:"number"}],data:[["\u5317\u4eac\u6e29\u5ea6",16],["\u4e0a\u6d77\u6e29\u5ea6",12],["\u5e7f\u5dde\u6e29\u5ea6",14],["\u6df1\u5733\u6e29\u5ea6",8]]}}),seriesType:Object(o.s)("pie"),showLegend:Object(n.I)(!0),showTooltip:Object(n.I)(!0),startAngle:Object(n.A)(90),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),width:Object(n.A)(300)},eventsSchema:{currentLegendSelected:o.o},interactSessionMiddleware:i.c,component:c.a,propsResolver:s.a}},300:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(2),i=r(56),o=r(13),a=r(34),s=r(254),c=r(368),l={typeId:"ffefb5c9-6d3c-49b9-866d-2a354244f497",ver:"1.0",propsSchema:{centerX:Object(n.B)(52),centerY:Object(n.B)(46),color:Object(o.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),customizedSeries:Object(s.b)([]),dumb:Object(n.I)(!1),height:Object(n.A)(270),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("center"),legendIcon:Object(o.n)("rect"),legendItemGap:Object(n.B)(20),legendItemHeight:Object(n.A)(12),legendItemWidth:Object(n.A)(12),legendOrient:Object(o.h)("horizontal"),legendPaddingBottom:Object(n.B)(14),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(20),legendPaddingTop:Object(n.B)(20),legendSelected:Object(o.o)({}),legendVerticalAlign:Object(n.N)("bottom"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),radarBgBorderColor:Object(n.j)("#CBD3E0"),radarBgLineColor:Object(n.j)("rgba(203, 211, 224, 0.5)"),radarNameColor:Object(n.j)("#333"),radarNameFontFamily:Object(n.n)("sans-serif"),radarNameFontSize:Object(n.o)(12),radarNameFontStyle:Object(n.p)("normal"),radarNameFontWeight:Object(n.q)("normal"),radarShape:Object(s.d)("polygon"),radius:Object(n.B)(63),seriesMap:Object(s.c)({seriesOpt:[{xCol:0,yCol:3,seriesName:"\u5317\u4eac",maxCol:1,minCol:2},{xCol:0,yCol:4,seriesName:"\u4e0a\u6d77"}],dataTable:{headers:[{name:"\u5929\u6c14\u7c7b\u76ee",type:"string"},{name:"max",type:"number"},{name:"min",type:"number"},{name:"\u5317\u4eac",type:"number"},{name:"\u4e0a\u6d77",type:"number"}],data:[["\u6e29\u5ea6",50,-30,30,37],["\u7a7a\u6c14\u8d28\u91cf",50,0,35,42],["\u6e7f\u5ea6",100,0,85,84],["PM2.5",120,0,107,88],["\u98ce\u529b",17,0,14,12],["\u7d2b\u5916\u7ebf",400,10,280,332]]}}),seriesType:Object(o.s)("radar"),showAreaStyle:Object(n.I)(!1),showLegend:Object(n.I)(!0),showSymbol:Object(n.I)(!1),showTooltip:Object(n.I)(!0),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),width:Object(n.A)(260)},eventsSchema:{currentLegendSelected:o.o},interactSessionMiddleware:i.c,component:c.a,propsResolver:a.a}},34:function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return a}));var n=r(4),i=r(3),o=function(e,t,r,o,a,s){var c=Object(n.__assign)({},s),l=!!Object(i.isNil)(a)||a;if(Object(i.has)(s,e)&&l){var u=r/o;c[t]=s[e]/u}if(Object(i.has)(s,t)&&l){u=r/o;c[e]=s[t]*u}return c},a=function(e,t){return o("legendItemWidth","legendItemHeight",t.legendItemWidth,t.legendItemHeight,t.lockLegendAspectRatio,e)}},356:function(e,t,r){"use strict";r.d(t,"a",(function(){return b}));var n=r(0),i=r(33),o=r(2),a=r(81),s=r(82),c=function(e){return e%180==90?1/0:e%180==-90?-1/0:Math.tan(e*Math.PI/180)},l=function(e){return function(t,r,n){var i=function(e,t,r,n,i,o){switch(console.assert(t>=0&&r>=0,"cx cy must be non-negative number"),console.assert(n>=i,"semiMajor must >= semiMinor"),console.assert(0<=o&&o<=360,"degree must be within [0, 360]"),o){case 0:case 360:return"h"===e?{x:t,y:r-i}:{x:t,y:r-n};case 90:return"h"===e?{x:t-n,y:r}:{x:t-i,y:r};case 180:return"h"===e?{x:t,y:r+i}:{x:t,y:r+n};case 270:return"h"===e?{x:t+n,y:r}:{x:t+i,y:r}}var a,s;return s="h"===e?Math.sqrt(1/(Math.pow(c(o)/n,2)+Math.pow(1/i,2))):Math.sqrt(1/(Math.pow(c(o)/i,2)+Math.pow(1/n,2))),a=-1*(s=o<90||o>270?s:-s)*c(o),{x:a+=t,y:s=r-s}}(t>r?"h":"v",t/2,r/2,Math.max(t,r)/2,Math.min(t,r)/2,n),o=i.x,a=i.y;return"M "+t/2+" 0"+("pie"===e?"L "+t/2+" "+r/2:"")+"L "+o+" "+a+"A "+t/2+" "+r/2+" "+(n<=180?"0 0 1":"0 1 1")+" "+t/2+" 0 z"}},u=l("pie"),d=l("chord"),p=function(e){var t=e.id,r=e.type,i=e.width,a=e.height,s=e.degree,c=e.mergedFill,l=e.isMergedFillGradient,p=e.stroke,b=e.strokeWidth,h=360===s?n.createElement("ellipse",{x:0,y:0,cx:i/2,cy:a/2,rx:i/2,ry:a/2,fill:l?"url(#"+t+")":c,stroke:p,strokeWidth:b}):n.createElement("path",{d:("pie"===r?u:d)(i,a,s),fill:l?"url(#"+t+")":c,stroke:p,strokeWidth:b});return n.createElement("g",null,n.createElement("defs",null,l&&n.createElement(o.b,{id:t,gradient:c})),h)};p.displayName="Pie",p.defaultProps={strokeWidth:1};var b=Object(i.a)(s.a,a.a)(p)},361:function(e,t,r){"use strict";r.d(t,"a",(function(){return a}));var n=r(362),i=r(23),o=[i.i,i.x],a=Object(n.a)(o)},362:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(40),i=r(3),o=r(0),a=r.n(o),s=r(23),c=function(e){return function(t){var r=t.id,c=t.width,l=t.height,u=Object(o.useRef)(null),d=Object(o.useRef)(null),p=Object(o.useRef)({}),b=Object(s.y)(t),h=function(r){void 0===r&&(r=!1);var n=r?{}:b||{};return Object(i.reduce)(e,(function(e,t){return t(e),e}),{prevOpt:p.current,patchOpt:{},currentProps:n,nextProps:t}).patchOpt};Object(o.useEffect)((function(){return d.current=Object(n.init)(u.current),d.current.setOption(h()),function(){Object(n.dispose)(d.current)}}),[]);var f=Object(o.useRef)(!1);return Object(o.useEffect)((function(){if((null==b?void 0:b.seriesMap)!==(null==t?void 0:t.seriesMap)){if(!f.current)return void(f.current=!0);var e=h(!0);d.current.setOption(e,!0,!0)}else{e=h();Object(i.isEmpty)(e)||d.current.setOption(e,!1,!0)}}),[t]),Object(o.useEffect)((function(){d.current.resize()}),[c,l]),a.a.createElement("div",{id:"widget-"+r,style:{width:"100%",height:"100%"}},a.a.createElement("div",{style:{width:"100%",height:"100%"},ref:u}))}}},363:function(e,t,r){"use strict";r.d(t,"a",(function(){return c}));var n=r(4),i=r(0),o=r(51),a=r(177),s=r.n(a),c=function(e){function t(t){var r=e.call(this,t)||this;return r.state={iconKey:t.iconKey,svgFileContent:"",loaded:!1},r}return Object(n.__extends)(t,e),t.prototype.componentDidMount=function(){this.hasMounted=!0,this.fetchSVGFile()},t.prototype.UNSAFE_componentWillReceiveProps=function(e){var t=this;e.iconKey!==this.state.iconKey&&this.setState({iconKey:e.iconKey},(function(){t.fetchSVGFile()}))},t.prototype.componentWillUnmount=function(){this.hasMounted=!1},t.prototype.fetchSVGFile=function(){var e=this;this.setState({loaded:!1}),fetch(this.props.assetUtils.toWidgetAssetUrl(this.state.iconKey,"Icon")).then((function(e){return e.text()})).then((function(t){e.hasMounted&&e.setState({loaded:!0,svgFileContent:t})}))},t.prototype.render=function(){var e=this.props,t=e.id,r=e.iconColor,n=e.paddingBottom,o=e.paddingLeft,a=e.paddingRight,c=e.paddingTop,l=this.state,u=l.svgFileContent,d=l.loaded,p="url('data:image/svg+xml;utf8,"+u.trim().replace(/\#666666/gi,"string"==typeof r&&"#"===r[0]?s()(r).css():r).replace(/\n/gi,"")+"')";return i.createElement("div",{id:"widget-"+t,style:{width:"100%",height:"100%",overflow:"hidden",paddingBottom:n,paddingLeft:o,paddingRight:a,paddingTop:c}},d&&i.createElement("div",{style:{height:"100%",background:p+" no-repeat center center"}}))},t.displayName="Icon",t=Object(n.__decorate)([Object(o.c)("assetUtils")],t)}(i.Component)},364:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(4),i=r(40),o=r(3),a=r(0),s=r(16),c=r(23),l=[c.e,c.f,c.h,Object(c.k)("series"),c.x,c.b,c.z,c.A,c.d],u=function(e){function t(t){var r=e.call(this,t)||this;return r.ecOpt={},r.onRef=r.onRef.bind(r),r}return Object(n.__extends)(t,e),t.prototype.componentDidUpdate=function(e){if(this.props.series!==e.series){this.ecOpt={};var t=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;Object(o.isEmpty)(t.series)&&delete t.dataZoom,this.echarts.setOption(t,!0)}else{t=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:e,nextProps:this.props}).patchOpt;Object(o.isEmpty)(t)||this.echarts.setOption(t)}this.props.width===e.width&&this.props.height===e.height||this.echarts.resize()},t.prototype.componentDidMount=function(){this.echarts=Object(i.init)(Object(s.findDOMNode)(this.container),null);var e=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;this.echarts.setOption(e,!0)},t.prototype.componentWillUnmount=function(){Object(i.dispose)(this.echarts)},t.prototype.render=function(){return a.createElement("div",{style:{width:"100%",height:"100%"},ref:this.onRef})},t.prototype.onRef=function(e){this.container=e},t.displayName="LineChart",t.defaultProps={showXAxisTick:!1,showYAxisTick:!1,showXAxisLine:!1,showYAxisLine:!1,stackEnable:!1,ifSmooth:!1,symbol:"emptyCircle"},t}(a.Component)},365:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(4),i=r(40),o=r(3),a=r(0),s=r(16),c=r(23),l=[c.e,c.f,c.h,Object(c.k)("seriesMap"),c.x,c.b,c.z,c.A,c.j,c.s],u=function(e){function t(t){var r=e.call(this,t)||this;return r.ecOpt={},r.handleLegendSelectChanged=function(e){var t=r.props.currentLegendSelected;t&&t(e.selected)},r.handleDatazoom=function(e){var t=r.props.currentDatazoomRange;t&&t(e)},r.onRef=r.onRef.bind(r),r}return Object(n.__extends)(t,e),t.prototype.componentDidUpdate=function(e){if(this.props.seriesMap!==e.seriesMap){this.ecOpt={};var t=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;Object(o.isEmpty)(t.series)&&delete t.dataZoom,this.echarts.setOption(t,!0)}else{t=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:e,nextProps:this.props}).patchOpt;this.echarts.setOption(t,!1)}this.props.width===e.width&&this.props.height===e.height||this.echarts.resize()},t.prototype.componentDidMount=function(){this.echarts=Object(i.init)(Object(s.findDOMNode)(this.container),null),this.echarts.on("legendselectchanged",this.handleLegendSelectChanged),this.echarts.on("datazoom",this.handleDatazoom);var e=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;this.echarts.setOption(e,!0)},t.prototype.componentWillUnmount=function(){Object(i.dispose)(this.echarts)},t.prototype.render=function(){return a.createElement("div",{style:{width:"100%",height:"100%"},ref:this.onRef})},t.prototype.onRef=function(e){this.container=e},t.displayName="LineChart",t}(a.PureComponent)},366:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(4),i=r(40),o=r(3),a=r(0),s=r(16),c=r(23),l=[c.e,c.o,Object(c.k)("category"),c.x],u=function(e){function t(t){var r=e.call(this,t)||this;return r.ecOpt={},r.onRef=r.onRef.bind(r),r}return Object(n.__extends)(t,e),t.prototype.componentDidUpdate=function(e){if(this.props.series!==e.series){this.ecOpt={};var t=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;this.echarts.setOption(t)}else{t=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:e,nextProps:this.props}).patchOpt;Object(o.isEmpty)(t)||this.echarts.setOption(t)}this.props.width===e.width&&this.props.height===e.height||this.echarts.resize()},t.prototype.componentDidMount=function(){this.echarts=Object(i.init)(Object(s.findDOMNode)(this.container),null);var e=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;this.echarts.setOption(e)},t.prototype.componentWillUnmount=function(){Object(i.dispose)(this.echarts)},t.prototype.render=function(){return a.createElement("div",{style:{width:"100%",height:"100%"},ref:this.onRef})},t.prototype.onRef=function(e){this.container=e},t.displayName="PieChart",t.defaultProps={themeName:"light"},t}(a.Component)},367:function(e,t,r){"use strict";r.d(t,"a",(function(){return l}));var n=r(2),i=r(56),o=r(13),a=r(34),s=r(112),c=r(178),l={typeId:"8299f336-7cd7-4ae0-9fa7-4ecd54224078",ver:"1.1",propsSchema:{centerX:Object(n.B)(33),centerY:Object(n.B)(50),color:Object(o.i)(["#108cee","#545fc8","#f38900","#ea2e2e","#8a58bc","#5fb333","#fbbe04","#04c1ba","#0a7eb4","#304069"]),customizedSeries:Object(s.b)([]),dumb:Object(n.I)(!1),height:Object(n.A)(200),inradius:Object(n.B)(43),legendFontFamily:Object(n.n)("sans-serif"),legendFontSize:Object(n.o)(12),legendFontStyle:Object(n.p)("normal"),legendFontWeight:Object(n.q)("normal"),legendHorizontalAlign:Object(n.t)("right"),legendIcon:Object(o.n)("rect"),legendItemGap:Object(n.B)(20),legendItemHeight:Object(n.A)(12),legendItemWidth:Object(n.A)(12),legendOrient:Object(o.h)("vertical"),legendPaddingBottom:Object(n.B)(0),legendPaddingLeft:Object(n.B)(20),legendPaddingRight:Object(n.B)(36),legendPaddingTop:Object(n.B)(20),legendSelected:Object(o.o)({}),legendVerticalAlign:Object(n.N)("middle"),lockLegendAspectRatio:Object(n.I)(!0),paddingBottom:Object(n.B)(60),paddingLeft:Object(n.B)(60),paddingRight:Object(n.B)(60),paddingTop:Object(n.B)(60),roseType:Object(s.c)(!1),seriesMap:Object(s.a)({seriesOpt:[{xCol:0,yCol:1}],dataTable:{headers:[{name:"\u57ce\u5e02",type:"string"},{name:"\u6e29\u5ea6",type:"number"}],data:[["\u5317\u4eac\u6e29\u5ea6",16],["\u4e0a\u6d77\u6e29\u5ea6",12],["\u5e7f\u5dde\u6e29\u5ea6",14],["\u6df1\u5733\u6e29\u5ea6",8]]}}),seriesType:Object(o.s)("pie"),showLegend:Object(n.I)(!0),showTooltip:Object(n.I)(!0),startAngle:Object(n.A)(90),tooltipBackgroundColor:Object(n.j)("rgba(234, 246, 254, 0.9)"),tooltipBorder:Object(n.y)("none"),tooltipBorderRadius:Object(n.B)(0),tooltipConfine:Object(n.I)(!0),tooltipContentColor:Object(n.j)("rgba(51, 51, 51, 0.9)"),tooltipExtraCssText:Object(n.K)("box-shadow: 0 0 3px 0 rgba(141, 153, 176, .41);"),tooltipPadding:Object(n.B)(0),tooltipTitleColor:Object(n.j)("#333"),width:Object(n.A)(300)},eventsSchema:{currentLegendSelected:o.o},interactSessionMiddleware:i.c,component:c.a,propsResolver:a.a}},368:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(4),i=r(40),o=r(3),a=r(0),s=r(16),c=r(23),l=[c.e,Object(c.k)("seriesMap"),c.p,c.q,c.x,c.s],u=function(e){function t(t){var r=e.call(this,t)||this;return r.ecOpt={},r.handleLegendSelectChanged=function(e){var t=r.props.currentLegendSelected;t&&t(e.selected)},r.onRef=r.onRef.bind(r),r}return Object(n.__extends)(t,e),t.prototype.componentDidUpdate=function(e){if(this.props.seriesMap!==e.seriesMap){this.ecOpt={};var t=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;this.echarts.setOption(t,!0,!0)}else{t=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:e,nextProps:this.props}).patchOpt;this.echarts.setOption(t,!1,!0)}this.props.width===e.width&&this.props.height===e.height||this.echarts.resize()},t.prototype.componentDidMount=function(){this.echarts=Object(i.init)(Object(s.findDOMNode)(this.container),null),this.echarts.on("legendselectchanged",this.handleLegendSelectChanged);var e=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;this.echarts.setOption(e,!0)},t.prototype.componentWillUnmount=function(){Object(i.dispose)(this.echarts)},t.prototype.render=function(){return a.createElement("div",{style:{width:"100%",height:"100%"},ref:this.onRef})},t.prototype.onRef=function(e){this.container=e},t.displayName="RadarChart",t}(a.PureComponent)},369:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(4),i=r(40),o=r(3),a=r(0),s=r(16),c=r(23),l=[c.e,c.f,c.h,Object(c.k)("seriesMap"),c.x,c.z,c.A,c.r,c.s],u=function(e){function t(t){var r=e.call(this,t)||this;return r.ecOpt={},r.handleLegendSelectChanged=function(e){var t=r.props.currentLegendSelected;t&&t(e.selected)},r.handleDatazoom=function(e){var t=r.props.currentDatazoomRange;t&&t(e)},r.onRef=r.onRef.bind(r),r}return Object(n.__extends)(t,e),t.prototype.componentDidUpdate=function(e){if(this.props.seriesMap!==e.seriesMap){this.ecOpt={};var t=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;Object(o.isEmpty)(t.series)&&delete t.dataZoom,this.echarts.setOption(t,!0)}else{t=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:e,nextProps:this.props}).patchOpt;this.echarts.setOption(t,!1)}this.props.width===e.width&&this.props.height===e.height||this.echarts.resize()},t.prototype.componentDidMount=function(){this.echarts=Object(i.init)(Object(s.findDOMNode)(this.container),null),this.echarts.on("legendselectchanged",this.handleLegendSelectChanged),this.echarts.on("datazoom",this.handleDatazoom);var e=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;this.echarts.setOption(e,!0)},t.prototype.componentWillUnmount=function(){Object(i.dispose)(this.echarts)},t.prototype.render=function(){return a.createElement("div",{style:{width:"100%",height:"100%"},ref:this.onRef})},t.prototype.onRef=function(e){this.container=e},t.displayName="ScatterChart",t}(a.PureComponent)},379:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(4),i=r(40),o=r(3),a=r(0),s=r(16),c=r(23),l=[c.e,c.f,c.h,Object(c.k)("timeSeriesMap"),c.x,c.t,c.z,c.A,c.v],u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.ecOpt={},t.handleLegendSelectChanged=function(e){var r=t.props.currentLegendSelected;r&&r(e.selected)},t.handleDatazoom=function(e){var r=t.props.currentDatazoomRange;r&&r(e)},t.onRef=function(e){t.container=e},t}return Object(n.__extends)(t,e),t.prototype.componentDidUpdate=function(e){if(this.props.seriesMap!==e.seriesMap){this.ecOpt={};var t=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;Object(o.isEmpty)(t.series)&&delete t.dataZoom,this.echarts.setOption(t,!0)}else{t=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:e,nextProps:this.props}).patchOpt;this.echarts.setOption(t,!1)}this.props.width===e.width&&this.props.height===e.height||this.echarts.resize()},t.prototype.componentDidMount=function(){this.echarts=Object(i.init)(Object(s.findDOMNode)(this.container),null),this.echarts.on("legendselectchanged",this.handleLegendSelectChanged),this.echarts.on("datazoom",this.handleDatazoom);var e=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;this.echarts.setOption(e)},t.prototype.componentWillUnmount=function(){Object(i.dispose)(this.echarts)},t.prototype.render=function(){return a.createElement("div",{style:{width:"100%",height:"100%"},ref:this.onRef})},t.displayName="TimeSeriesBarChart",t}(a.PureComponent)},380:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(4),i=r(40),o=r(3),a=r(0),s=r(16),c=r(23),l=[c.e,c.f,c.h,Object(c.k)("series"),c.x,c.t,c.z,c.A,c.w],u=function(e){function t(t){var r=e.call(this,t)||this;return r.ecOpt={},r.onRef=function(e){r.container=e},r}return Object(n.__extends)(t,e),t.prototype.componentDidUpdate=function(e){if(this.props.series!==e.series){this.ecOpt={};var t=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;Object(o.isEmpty)(t.series)&&delete t.dataZoom,this.echart.setOption(t,!0)}else{t=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:e,nextProps:this.props}).patchOpt;this.echart.setOption(t,!1)}this.props.width===e.width&&this.props.height===e.height||this.echart.resize()},t.prototype.componentDidMount=function(){this.echart=Object(i.init)(Object(s.findDOMNode)(this.container),null);var e=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;this.echart.setOption(e)},t.prototype.componentWillUnmount=function(){Object(i.dispose)(this.echart)},t.prototype.render=function(){return a.createElement("div",{style:{width:"100%",height:"100%"},ref:this.onRef})},t.displayName="TimeSeriesLineChart",t.defaultProps={showXAxisTick:!1,showYAxisTick:!1,showXAxisLine:!1,showYAxisLine:!1,ifSmooth:!1,symbol:"emptyCircle"},t}(a.PureComponent)},381:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(4),i=r(40),o=r(3),a=r(0),s=r(16),c=r(23),l=[c.e,c.f,c.h,Object(c.k)("timeSeriesMap"),c.x,c.t,c.z,c.A,c.v],u=function(e){function t(t){var r=e.call(this,t)||this;return r.ecOpt={},r.handleLegendSelectChanged=function(e){var t=r.props.currentLegendSelected;t&&t(e.selected)},r.handleDatazoom=function(e){var t=r.props.currentDatazoomRange;t&&t(e)},r.onRef=function(e){r.container=e},r}return Object(n.__extends)(t,e),t.prototype.componentDidUpdate=function(e){if(this.props.seriesMap!==e.seriesMap){this.ecOpt={};var t=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;Object(o.isEmpty)(t.series)&&delete t.dataZoom,this.echart.setOption(t,!0)}else{t=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:e,nextProps:this.props}).patchOpt;this.echart.setOption(t,!1)}this.props.width===e.width&&this.props.height===e.height||this.echart.resize()},t.prototype.componentDidMount=function(){this.echart=Object(i.init)(Object(s.findDOMNode)(this.container),null),this.echart.on("legendselectchanged",this.handleLegendSelectChanged),this.echart.on("datazoom",this.handleDatazoom);var e=Object(o.reduce)(l,(function(e,t){return t(e),e}),{prevOpt:this.ecOpt,patchOpt:{},currentProps:{},nextProps:this.props}).patchOpt;this.echart.setOption(e)},t.prototype.componentWillUnmount=function(){Object(i.dispose)(this.echart)},t.prototype.render=function(){return a.createElement("div",{style:{width:"100%",height:"100%"},ref:this.onRef})},t.displayName="TimeSeriesLineChart",t}(a.PureComponent)},383:function(e,t,r){"use strict";r.d(t,"b",(function(){return o})),r.d(t,"a",(function(){return l}));var n=r(2),i=r(13),o=Object(n.e)(Object(n.w)({type:Object(n.g)("scatter"),seriesName:i.m,color:n.r,symbol:i.u},{defVal:{type:"scatter",seriesName:"",color:"#108CEE",symbol:"circle"}})),a=r(3),s=function(e,t){return e=3){var o=e/2,a=t/2,s=i/100,c=[];switch(n){case"star":for(var l=0;l<2*r;l++){var u=180/r*l*Math.PI/180-Math.PI/2,d=void 0,p=void 0;l%2?(d=Math.cos(u)*o*s+e/2,p=Math.sin(u)*a*s+t/2):(d=Math.cos(u)*o+e/2,p=Math.sin(u)*a+t/2),c.push(d+" "+p)}break;case"basic":default:for(l=0;l=0&&o%2==0,"size should be a non-negative even number");var c,l=o/2;switch(r){case"triangle":c=i.createElement("path",{d:"M 0 0 L "+o+" "+o/2+" L 0 "+o+" z"});break;case"square":c=i.createElement("rect",{x:"0",y:"0",width:o,height:o,strokeWidth:0,fill:n});break;case"dot":c=i.createElement("circle",{cx:l,cy:l,r:l,strokeWidth:0,stroke:"none",fill:n});break;case"circle":console.assert("number"==typeof s&&s>0,"strokeWidth should be a positive number"),c=i.createElement("circle",{cx:l,cy:l,r:l-Math.ceil(s/2),strokeWidth:s,stroke:n,fill:"none"});break;default:throw new Error("no marker type provided")}return i.createElement(a,{id:t,color:n,size:o},c)};s.defaultProps={color:"red"};var c=r(93),l=function(e){return 2*(e-1)+10},u=function(e){return!!e&&"string"==typeof e&&"none"!==e},d=function(e){return u(e)},p=function(e){return u(e)},b=function(e){var t=e.endpointStart,r=e.endpointEnd;return d(t)||p(r)},h=function(e){var t=e.startX,r=e.startY,n=e.endX,i=e.endY,o=function(e){var t={dx1:0,dy1:0,dx2:0,dy2:0};if(b(e)){var r=e.startX,n=e.startY,i=e.endX,o=e.endY,a=Math.abs(r-i),s=Math.abs(n-o),c=Math.sqrt(Math.pow(a,2)+Math.pow(s,2));if(0===c)t={dx1:0,dy1:0,dx2:0,dy2:0};else{var u=l(e.strokeWidth),h=u/c*a,f=u/c*s;d(e.endpointStart)&&(t.dx1=h,t.dy1=f),p(e.endpointEnd)&&(t.dx2=h,t.dy2=f)}}else t={dx1:0,dy1:0,dx2:0,dy2:0};return t}(e),a=o.dx1,s=o.dy1,c=o.dx2,u=o.dy2;return ti?{x1:t+a,y1:r-s,x2:n-c,y2:i+u}:t>n&&r>=i?{x1:t-a,y1:r-s,x2:n+c,y2:i+u}:t>=n&&rt[o]&&(n[i]=c,n[o]=l):u?t[i]>l&&(n[i]=c):d&&t[o]0;)r(e[i=o+(n=a>>1)],t)<0?(o=i+1,a-=n+1):a=n;return o},s=function(e,t,r){var n=a(e,t,r);return n===e.length||0!==r(e[n],t)?-1:n},c=function e(t,r){var n=this;this.copy=function(){return new e(n.first,n.second)},this.first=t,this.second=r},l=function(e){function t(r){var n,i=e.call(this)||this;return i.comparitor=function(){return i._compare},i.indexOf=function(e){return s(i._array,e,i._wrapped)},i.contains=function(e){return s(i._array,e,i._wrapped)>=0},i.find=function(e){return function(e,t,r){var n=a(e,t,r);if(n!==e.length){var i=e[n];if(0===r(i,t))return i}}(i._array,e,i._wrapped)},i.setDefault=function(e,t){var r=i._array,n=a(r,e,i._wrapped);if(n===r.length){var o=new c(e,t());return r.push(o),o}var s=r[n];if(0!==i._compare(s.first,e)){o=new c(e,t());return r.splice(n,0,o),o}return s},i.insert=function(e,t){var r=i._array,n=a(r,e,i._wrapped);if(n===r.length){var o=new c(e,t);return r.push(o),o}var s=r[n];if(0!==i._compare(s.first,e)){o=new c(e,t);return r.splice(n,0,o),o}return s.second=t,s},i.update=function(e){var r=i;if(e instanceof t){var n=e;i._array=function(e,t,r){for(var n=0,i=0,o=e.length,a=t.length,s=[];n0?(s.push(l.copy()),++i):(s.push(l.copy()),++n,++i)}for(;n=","="][this._operator]+" 0 ("+this._strength.toString()+")"},e}(),j=0,v=function(){function e(){this._cnMap=u(O.Compare),this._rowMap=u(w.Compare),this._varMap=u(b.Compare),this._editMap=u(b.Compare),this._infeasibleRows=[],this._objective=new S,this._artificial=null,this._idTick=0}return e.prototype.createConstraint=function(e,t,r,n){void 0===n&&(n=d.required);var i=new O(e,t,r,n);return this.addConstraint(i),i},e.prototype.addConstraint=function(e){if(void 0!==this._cnMap.find(e))throw new Error("duplicate constraint");var t=this._createRow(e),r=t.row,n=t.tag,i=this._chooseSubject(r,n);if(i.type()===m.Invalid&&r.allDummies()){if(!y(r.constant()))throw new Error("unsatisfiable constraint");i=n.marker}if(i.type()===m.Invalid){if(!this._addWithArtificialVariable(r))throw new Error("unsatisfiable constraint")}else r.solveFor(i),this._substitute(i,r),this._rowMap.insert(i,r);this._cnMap.insert(e,n),this._optimize(this._objective)},e.prototype.removeConstraint=function(e){var t=this._cnMap.erase(e);if(void 0===t)throw new Error("unknown constraint");this._removeConstraintEffects(e,t.second);var r=t.second.marker,n=this._rowMap.erase(r);if(void 0===n){var i=this._getMarkerLeavingSymbol(r);if(i.type()===m.Invalid)throw new Error("failed to find leaving row");(n=this._rowMap.erase(i)).second.solveForEx(i,r),this._substitute(r,n.second)}this._optimize(this._objective)},e.prototype.hasConstraint=function(e){return this._cnMap.contains(e)},e.prototype.addEditVariable=function(e,t){if(void 0!==this._editMap.find(e))throw new Error("duplicate edit variable");if((t=d.clip(t))===d.required)throw new Error("bad required strength");var r=new f(e),n=new O(r,p.Eq,void 0,t);this.addConstraint(n);var i={tag:this._cnMap.find(n).second,constraint:n,constant:0};this._editMap.insert(e,i)},e.prototype.removeEditVariable=function(e){var t=this._editMap.erase(e);if(void 0===t)throw new Error("unknown edit variable");this.removeConstraint(t.second.constraint)},e.prototype.hasEditVariable=function(e){return this._editMap.contains(e)},e.prototype.suggestValue=function(e,t){var r=this._editMap.find(e);if(void 0===r)throw new Error("unknown edit variable");var n=this._rowMap,i=r.second,o=t-i.constant;i.constant=t;var a=i.tag.marker,s=n.find(a);if(void 0!==s)return s.second.add(-o)<0&&this._infeasibleRows.push(a),void this._dualOptimize();var c=i.tag.other;if(void 0!==(s=n.find(c)))return s.second.add(o)<0&&this._infeasibleRows.push(c),void this._dualOptimize();for(var l=0,u=n.size();l0&&s.type()!==m.Dummy){var l=this._objective.coefficientFor(s)/c;l1)throw new Error("breakPoint should be within [0, 1]");return{type:"linear",stops:[{color:t,offset:0},{color:t,offset:n},{color:r,offset:n},{color:r,offset:1}],deg:Object(i.degreeToPoints)(o)}}(t);case"circle":return function(e){var t,r,n,i=e.colorA,o=e.colorB,a=e.breakPoint,s=e.d;if("string"!=typeof i||"string"!=typeof i)throw new Error("can only merge 2 flat colors");if(a<0||a>1)throw new Error("breakPoint should be within [0, 1]");switch(s){case"outward":t=i,r=o,n=a;break;case"inward":t=o,r=i,n=1-a}return{type:"circle",stops:[{color:t,offset:0},{color:t,offset:n},{color:r,offset:n},{color:r,offset:1}],radius:n,pos:{x:.5,y:.5}}}(t)}},a=r(93);var s=Object(n.f)((function(e){var t=e.fill,r=e.background,n=e.fillMax,i=function(e,t,r,n,i,a){if(i<=r)return console.assert(void 0!==t,"background not provided!"),t;if(i>=n)return console.assert(void 0!==e,"foreground not provided!"),e;console.assert(void 0!==r&&void 0!==n&&void 0!==i,"min max value should be provided!");var s=(i-r)/(n-r);if("number"==typeof a)return o("linear",{colorA:e,colorB:t,breakPoint:s,deg:a});if("string"==typeof a&&("inward"===a||"outward"===a))return o("circle",{colorA:e,colorB:t,breakPoint:s,d:a});throw new Error("error in mergeFillAndBg")}(t,r,e.fillMin,n,e.fillValue,e.fillDirection);return{mergedFill:i,isMergedFillGradient:Object(a.a)(i)}})),c=Object(n.f)((function(e){var t=e.background,r=e.fillMax;return function(e,t,r,n,o){return o=(o+180)%360,n<=t?(console.assert(void 0!==e,"background not provided!"),{maskInfo:{needMask:!0,breakPoint:1,color:e,deg:Object(i.degreeToPoints)(o)}}):n>=r?{maskInfo:{needMask:!1}}:(console.assert(void 0!==t&&void 0!==r&&void 0!==n,"min max value should be provided!"),{maskInfo:{needMask:!0,breakPoint:(r-n)/(r-t),color:e,deg:Object(i.degreeToPoints)(o)}})}(t,e.fillMin,r,e.fillValue,e.fillDirection)}))},82:function(e,t,r){"use strict";r.d(t,"a",(function(){return u}));var n=r(4),i=r(0),o=r(3),a=i.useEffect,s=i.useRef,c=i.useState,l=i.useMemo,u=function(e){return function(t){var r,o,l,u=t.fill,p=t.stroke,b=t.blinkValue,h=t.blinkRules,f=d(u,p,b,h),g=f.frequency,m=f.colorSet,O=g>0?1/g*1e3:null,j=c(0),v=j[0],y=j[1];return r=function(){y((v+1)%m.length)},o=O,l=s(),a((function(){l.current=r}),[r]),a((function(){if(null!==o){var e=setInterval((function(){l.current()}),o);return function(){return clearInterval(e)}}}),[o]),i.createElement(e,Object(n.__assign)({},t,m[v]))}},d=function(e,t,r,n){return l((function(){if(!n||!n.length)return{frequency:0,colorSet:[{fill:e,stroke:t}]};var i=Object(o.find)(n,(function(e){return e.value===r}));return i?{frequency:i.frequency,colorSet:[{fill:i.fillColorA,stroke:i.strokeColorA},{fill:i.fillColorB,stroke:i.strokeColorB}]}:{frequency:0,colorSet:[{fill:e,stroke:t}]}}),[e,t,r,n])}},913:function(e,t,r){"use strict";r.r(t),r.d(t,"moduleMap",(function(){return n}));var n={"7106f752-f723-11ea-adc1-0242ac120002":{"1.0":"3DChart/Bar3D/1.0"},"2758ac24-ff00-11ea-adc1-0242ac120002":{"1.0":"3DChart/Scatter3D/1.0"},"7bb53af6-22c2-4252-9377-85f789b2a502":{"1.0":"Announcement/1.0"},"31d906e4-4b61-4ec9-9f3a-ddfe68afba54":{"1.0":"AnnouncementList/1.0"},"6dcb4040-e60c-4ce5-aca0-37730c923433":{"1.0":"BarChart/BasicBarChart/1.0",1.1:"BarChart/BasicBarChart/1.1"},"5a86883d-3c9d-4665-baa9-1b94c707fc83":{1.1:"BarChart/MixedLineBarChart/1.1"},"87721d3b-0e6c-402f-9905-391c724b1041":{1.1:"BarChart/StackedBarChart/1.1"},"945ee87d-e47b-48fe-99c5-b621cd7a6088":{1.1:"BarChart/TransverseBarChart/1.1"},"d12345fd-f946-4b64-94e9-532019cdb8b2":{1.1:"BarChart/TransverseStackedBar/1.1"},"5352fc6e-6300-4f3f-b8c8-8f9a76637da0":{"1.0":"BasicMap/1.0"},"ce553754-8b45-4ebf-af4c-d881d654e2c6":{"1.0":"Button/1.0"},"cbc6cbae-b5bc-4180-96a9-72673e45aa62":{"1.0":"ButtonTab/1.0"},"ff115811-0e87-4bb9-a1b5-ed73a984d276":{"1.0":"Clock/1.0"},"ffd75623-b334-44b9-9392-bf8143989f38":{1.1:"ConfigurationImage/1.1"},"108bd6b0-d7af-11ea-b159-a9ba831ad50a":{1.1:"ConfigurationImage/Fan/1.1"},"4785ebca-e655-4f4f-a0a7-fa0b8016e516":{"1.0":"ConfigurationImage/Meter/1.0"},"2f40c610-e132-11ea-8ea6-b192d7d83377":{"1.0":"ConfigurationImage/Meter2/1.0"},"d3c09216-0baa-4a2d-9cea-6a561dfaa6fe":{"1.0":"ConfigurationImage/MeterDigital/1.0"},"e8793f51-0703-494d-b49c-277709cde722":{"1.0":"ConfigurationImage/Motor/1.0"},"92ed6e35-353b-4ff7-ba85-16754263251a":{"1.0":"ConfigurationImage/Pipe/1.0"},"63d77dbf-4ab8-4cc1-a341-7473798ec41f":{"1.0":"ConfigurationImage/PipeCross/1.0"},"2fdd81cf-f224-4686-bf20-b7be7d5d5ef4":{"1.0":"ConfigurationImage/PipeCurved/1.0"},"2dde46f8-f5e7-445c-889e-ee26578fa525":{"1.0":"ConfigurationImage/PipeT/1.0"},"33b42fe0-d7e9-11ea-9aa1-45e6b368718d":{1.1:"ConfigurationImage/PipeWithWave"},"807f7529-ec32-4e2e-bd00-3dbf4c1f0e30":{"1.0":"ConfigurationImage/Pump/1.0"},"56837b48-074c-492f-8e18-2be222036396":{"1.0":"ConfigurationImage/Tank/1.0"},"7ed33b1b-bd15-43cc-9f4d-60c596c6db56":{"1.0":"ConfigurationImage/Transformer/1.0"},"799ab483-b28c-401a-98e2-5b4c03d8ec06":{"1.0":"ConfigurationImage/Valve/1.0"},"c4758e89-0f2a-4528-bae0-2f1037dba585":{"1.0":"ConfigurationImage/Valve2/1.0"},"b72a0330-e118-11ea-bbfc-6fe346f389a7":{"1.0":"ConfigurationImage/Valve3/1.0"},"e7d9041a-9e6d-4572-8194-25afb40bf539":{"1.0":"Decoration/1.0"},"765dee3c-099d-44fd-885b-360b7bd76d56":{"1.0":"GaugeChart/1.0"},"3f47f85d-6a5b-42b2-8cfd-817220c61e29":{"1.0":"GeoHeatmap/1.0"},"6a757758-ef53-439b-abce-ffd1c95b0684":{"1.0":"Icon/1.0",1.1:"Icon/1.1"},"73778aec-14dd-4521-9b3b-eb7d8a9883c1":{"1.0":"Iframe/1.0"},"fa9e4c9e-89ab-4b77-b567-e6e4a525e255":{"1.0":"Image/1.0"},"a21a5d81-5d05-4f0a-aa27-917d64a8fdca":{"1.0":"ImageList/1.0"},"f82809b1-4fbb-4f10-9c07-1fc7bf048903":{"1.0":"Label/1.0"},"79cdf1c1-da1e-48f1-92f6-ace564d28cc5":{"1.0":"LayeredMap/1.0"},"601c2a93-55f9-4dc0-b36c-8bd0e35ab3af":{"1.0":"LineChart/AreaChart/1.0",1.1:"LineChart/AreaChart/1.1"},"79883428-5dfd-40f8-b6b5-89dc0efbdf87":{"1.0":"LineChart/BasicLineChart/1.0",1.1:"LineChart/BasicLineChart/1.1"},"c8801cc0-d22f-11ea-87d0-0242ac130003":{"1.0":"LiquidFill/1.0"},"99cc862d-bd41-48bd-9ce1-eb96a576951b":{"1.0":"MixedChart/CommonMixedChart/1.0"},"2d17f148-e258-4e1d-9db8-35a866f8e468":{"1.0":"PercentageBar/1.0"},"8299f336-7cd7-4ae0-9fa7-4ecd54224078":{"1.0":"PieChart/BasicPieChart/1.0",1.1:"PieChart/BasicPieChart/1.1"},"c50eff02-f934-4104-ba50-5014d004d39e":{"1.0":"PieChart/NightingaleChart/1.0",1.1:"PieChart/NightingaleChart/1.1"},"f4ccaf9a-a10e-49df-bce0-1fbbde94b974":{1.1:"PieChart/PieChart/1.1"},"a49f5aaf-6734-4399-9a19-a8a1edfb1be5":{1.1:"PieChart/RoseChart/1.1"},"076d6c27-7f64-445f-8b19-cc7d270b3a4e":{"1.0":"RadarChart/AreaRadarChart/1.0"},"ffefb5c9-6d3c-49b9-866d-2a354244f497":{"1.0":"RadarChart/BasicRadarChart/1.0"},"2089e5ee-9b98-41a3-8be6-fb751f42d4e6":{"1.0":"ScatterChart/BasicScatterChart/1.0"},"970502ae-a651-4df5-b632-8351125e4886":{"1.0":"ScatterChart/BubbleChart/1.0"},"0c754aec-d685-44b9-8431-aafe07ccd79d":{"1.0":"Scoreboard/1.0"},"a21a536f-d87c-4de9-9828-51c9b04619ae":{"1.0":"Select/1.0"},"9ae4ff9e-902e-11ea-bb37-0242ac130002":{"1.0":"Switch/1.0"},"5e6a5711-caa9-4f72-a897-820b682a225e":{"1.0":"TelematicsMarkersMap/1.0"},"46172819-9cff-4dce-ba04-5df91900a6a6":{"1.0":"TelematicsTrackMap/1.0"},"08bedec1-68f0-433b-97c2-15371e482363":{"1.0":"Text/1.0"},"d8e16173-d095-4e1e-8838-5b6c4e5d9cc1":{"1.0":"TimeSeriesBarChart/BasicTimeBarChart/1.0",1.1:"TimeSeriesBarChart/BasicTimeBarChart/1.1"},"167d81e0-bffa-466f-b8bd-2ba651ec6a16":{1.1:"TimeSeriesBarChart/HorizontalTimeBarChart/1.1"},"87c45277-ad83-4ef3-98de-abe804c03bfd":{"1.0":"TimeSeriesLineChart/BasicTimeSeriesLineChart/1.0",1.1:"TimeSeriesLineChart/BasicTimeSeriesLineChart/1.1"},"91651c64-a646-41b0-85b4-ec76c2d40663":{"1.0":"TimeSeriesLineChart/TimeAreaChart/1.0",1.1:"TimeSeriesLineChart/TimeAreaChart/1.1"},"d0ce489d-f5d6-4d79-b20e-ec78c113c784":{"1.0":"VectorShapes/Arrow/Basic/1.0"},"c26144ca-8b56-45fe-b235-e6d69b2f6aad":{"1.0":"VectorShapes/Arrow/DoubleArrow/1.0"},"ace4075d-0c07-46c9-b2ac-bdf13b7452c5":{"1.0":"VectorShapes/Callout/1.0"},"22779814-0d2f-458c-91a6-40c5bfe501f2":{"1.0":"VectorShapes/Curve/1.0"},"29afd62d-9a33-421c-81e5-390513cef7d2":{"1.0":"VectorShapes/Ellipse/1.0"},"f3411175-b618-4172-9681-7e830bfd60e9":{"1.0":"VectorShapes/Line/1.0"},"a2267005-5218-49f6-99b4-c45fa2ee4aa7":{"1.0":"VectorShapes/Parallelogram/1.0"},"c65a06a7-e309-4e5f-9283-778da9abc2b8":{"1.0":"VectorShapes/PieAndChord/Chord/1.0"},"27195d9a-a141-4590-a474-c843884c74ff":{"1.0":"VectorShapes/PieAndChord/Pie/1.0"},"faf77185-b13a-4dfb-a59c-54f1379af27f":{"1.0":"VectorShapes/Polygon/BasicPolygon/1.0"},"816118a6-2e04-4a12-86ef-70c766fa9a4f":{"1.0":"VectorShapes/Polygon/StarPolygon/1.0"},"df6d22af-2445-4905-86f8-a4776b4f96f2":{"1.0":"VectorShapes/Rectangle/1.0"},"c7b7c64c-9821-44e0-9421-8a7432dc6eac":{"1.0":"VectorShapes/RoundCornerRectangle/1.0"},"5620b53c-3603-4e6c-9e7a-ba1e0ae091eb":{"1.0":"VectorShapes/SnipRectangles/RoundDiagonalCornerRect/1.0"},"d061e690-5ce8-4062-9d5c-aeaef2c9b274":{"1.0":"VectorShapes/SnipRectangles/RoundSameSideCornerRect/1.0"},"ccbc574c-9590-4246-b2f5-cefc2b52eb5b":{"1.0":"VectorShapes/SnipRectangles/SnipDiagonalCornerRect/1.0"},"1a510ace-03b6-4f43-8280-66afaa8f8b4b":{"1.0":"VectorShapes/SnipRectangles/SnipOneCornerRect/1.0"},"ba3527fe-2eca-4b61-a8a3-11468ebae714":{"1.0":"VectorShapes/SnipRectangles/SnipRoundCornerRect/1.0"},"95efbdbd-bbd2-40b8-9263-a3847c16da4b":{"1.0":"VectorShapes/SnipRectangles/SnipSameSideCornerRect/1.0"},"4250f88d-9e35-42b5-af47-7be40c0b924f":{"1.0":"VectorShapes/Trapezoid/1.0"},"e1de9750-49f1-430b-a125-0a6d66044c1b":{"1.0":"VectorShapes/Triangle/1.0"},"c9be614e-a6f8-11ea-bb37-0242ac130002":{"1.0":"Video/1.0"},"3fc7f92d-9008-44fe-8027-9e166ae9be61":{"1.0":"VideoFlv/1.0"},"d08d6eb9-9875-4e3a-a5a9-844168f17d2b":{"1.0":"VideoStreaming/1.0"},"9e886264-26ad-459e-bea8-a0b5852dfcde":{"1.0":"VisualTable/1.0"}}},916:function(e,exports){e.exports=function(){return new Worker("/static/worker.js")}},93:function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n=function(e){return"string"!=typeof e}},974:function(e,exports,t){t(543),t(975),e.exports=t(1932)}});