Newer
Older
smartwell_front_dz / smartwell / static / js / chunk-libs-06b9cdb9.28acce29.js
wangxitong on 11 Sep 2023 12 KB first commit
(self["webpackChunknewfront"]=self["webpackChunknewfront"]||[]).push([[2123],{64771:(e,t,a)=>{var o=a(70492);a(40142),a(68192);var r=a(43850),i=a(62503);o.registerLayout(r),o.registerVisual(i)},40142:(e,t,a)=>{var o=a(38175),r=(o.__DEV__,a(93321)),i=a(87587),s=a(33051),n=s.concatArray,l=s.mergeAll,d=s.map,p=a(78988),f=p.encodeHTML,u=(a(95899),"undefined"===typeof Uint32Array?Array:Uint32Array),h="undefined"===typeof Float64Array?Array:Float64Array;function m(e){var t=e.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(e.data=d(t,(function(e){var t=[e[0].coord,e[1].coord],a={coords:t};return e[0].name&&(a.fromName=e[0].name),e[1].name&&(a.toName=e[1].name),l([a,e[0],e[1]])})))}var g=r.extend({type:"series.lines",dependencies:["grid","polar"],visualColorAccessPath:"lineStyle.color",init:function(e){e.data=e.data||[],m(e);var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count)),g.superApply(this,"init",arguments)},mergeOption:function(e){if(m(e),e.data){var t=this._processFlatCoordsArray(e.data);this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset,t.flatCoords&&(e.data=new Float32Array(t.count))}g.superApply(this,"mergeOption",arguments)},appendData:function(e){var t=this._processFlatCoordsArray(e.data);t.flatCoords&&(this._flatCoords?(this._flatCoords=n(this._flatCoords,t.flatCoords),this._flatCoordsOffset=n(this._flatCoordsOffset,t.flatCoordsOffset)):(this._flatCoords=t.flatCoords,this._flatCoordsOffset=t.flatCoordsOffset),e.data=new Float32Array(t.count)),this.getRawData().appendData(e.data)},_getCoordsFromItemModel:function(e){var t=this.getData().getItemModel(e),a=t.option instanceof Array?t.option:t.getShallow("coords");return a},getLineCoordsCount:function(e){return this._flatCoordsOffset?this._flatCoordsOffset[2*e+1]:this._getCoordsFromItemModel(e).length},getLineCoords:function(e,t){if(this._flatCoordsOffset){for(var a=this._flatCoordsOffset[2*e],o=this._flatCoordsOffset[2*e+1],r=0;r<o;r++)t[r]=t[r]||[],t[r][0]=this._flatCoords[a+2*r],t[r][1]=this._flatCoords[a+2*r+1];return o}var i=this._getCoordsFromItemModel(e);for(r=0;r<i.length;r++)t[r]=t[r]||[],t[r][0]=i[r][0],t[r][1]=i[r][1];return i.length},_processFlatCoordsArray:function(e){var t=0;if(this._flatCoords&&(t=this._flatCoords.length),"number"===typeof e[0]){for(var a=e.length,o=new u(a),r=new h(a),i=0,s=0,n=0,l=0;l<a;){n++;var d=e[l++];o[s++]=i+t,o[s++]=d;for(var p=0;p<d;p++){var f=e[l++],m=e[l++];r[i++]=f,r[i++]=m}}return{flatCoordsOffset:new Uint32Array(o.buffer,0,s),flatCoords:r,count:n}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},getInitialData:function(e,t){var a=new i(["value"],this);return a.hasItemOption=!1,a.initData(e.data,[],(function(e,t,o,r){if(e instanceof Array)return NaN;a.hasItemOption=!0;var i=e.value;return null!=i?i instanceof Array?i[r]:i:void 0})),a},formatTooltip:function(e){var t=this.getData(),a=t.getItemModel(e),o=a.get("name");if(o)return o;var r=a.get("fromName"),i=a.get("toName"),s=[];return null!=r&&s.push(r),null!=i&&s.push(i),f(s.join(" > "))},preventIncremental:function(){return!!this.get("effect.show")},getProgressive:function(){var e=this.option.progressive;return null==e?this.option.large?1e4:this.get("progressive"):e},getProgressiveThreshold:function(){var e=this.option.progressiveThreshold;return null==e?this.option.large?2e4:this.get("progressiveThreshold"):e},defaultOption:{coordinateSystem:"geo",zlevel:0,z:2,legendHoverLink:!0,hoverAnimation:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}}}),c=g;e.exports=c},68192:(e,t,a)=>{var o=a(38175),r=(o.__DEV__,a(70492)),i=a(47145),s=a(99895),n=a(77159),l=a(30146),d=a(69121),p=a(34148),f=a(43850),u=a(22963),h=u.createClipPath,m=r.extendChartView({type:"lines",init:function(){},render:function(e,t,a){var o=e.getData(),r=this._updateLineDraw(o,e),i=e.get("zlevel"),s=e.get("effect.trailLength"),n=a.getZr(),l="svg"===n.painter.getType();l||n.painter.getLayer(i).clear(!0),null==this._lastZlevel||l||n.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&s&&(l||n.configLayer(i,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(s/10+.9,1),0)})),r.updateData(o);var d=e.get("clip",!0)&&h(e.coordinateSystem,!1,e);d?this.group.setClipPath(d):this.group.removeClipPath(),this._lastZlevel=i,this._finished=!0},incrementalPrepareRender:function(e,t,a){var o=e.getData(),r=this._updateLineDraw(o,e);r.incrementalPrepareUpdate(o),this._clearLayer(a),this._finished=!1},incrementalRender:function(e,t,a){this._lineDraw.incrementalUpdate(e,t.getData()),this._finished=e.end===t.getData().count()},updateTransform:function(e,t,a){var o=e.getData(),r=e.pipelineContext;if(!this._finished||r.large||r.progressiveRender)return{update:!0};var i=f.reset(e);i.progress&&i.progress({start:0,end:o.count()},o),this._lineDraw.updateLayout(),this._clearLayer(a)},_updateLineDraw:function(e,t){var a=this._lineDraw,o=this._showEffect(t),r=!!t.get("polyline"),f=t.pipelineContext,u=f.large;return a&&o===this._hasEffet&&r===this._isPolyline&&u===this._isLargeDraw||(a&&a.remove(),a=this._lineDraw=u?new p:new i(r?o?d:l:o?s:n),this._hasEffet=o,this._isPolyline=r,this._isLargeDraw=u,this.group.removeAll()),this.group.add(a.group),a},_showEffect:function(e){return!!e.get("effect.show")},_clearLayer:function(e){var t=e.getZr(),a="svg"===t.painter.getType();a||null==this._lastZlevel||t.painter.getLayer(this._lastZlevel).clear(!0)},remove:function(e,t){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(t)},dispose:function(){}});e.exports=m},43850:(e,t,a)=>{var o=a(95682),r={seriesType:"lines",plan:o(),reset:function(e){var t=e.coordinateSystem,a=e.get("polyline"),o=e.pipelineContext.large;function r(r,i){var s=[];if(o){var n,l=r.end-r.start;if(a){for(var d=0,p=r.start;p<r.end;p++)d+=e.getLineCoordsCount(p);n=new Float32Array(l+2*d)}else n=new Float32Array(4*l);var f=0,u=[];for(p=r.start;p<r.end;p++){var h=e.getLineCoords(p,s);a&&(n[f++]=h);for(var m=0;m<h;m++)u=t.dataToPoint(s[m],!1,u),n[f++]=u[0],n[f++]=u[1]}i.setLayout("linesPoints",n)}else for(p=r.start;p<r.end;p++){var g=i.getItemModel(p),c=(h=e.getLineCoords(p,s),[]);if(a)for(var v=0;v<h;v++)c.push(t.dataToPoint(s[v]));else{c[0]=t.dataToPoint(s[0]),c[1]=t.dataToPoint(s[1]);var y=g.get("lineStyle.curveness");+y&&(c[2]=[(c[0][0]+c[1][0])/2-(c[0][1]-c[1][1])*y,(c[0][1]+c[1][1])/2-(c[1][0]-c[0][0])*y])}i.setItemLayout(p,c)}}return{progress:r}}};e.exports=r},62503:e=>{function t(e){return e instanceof Array||(e=[e,e]),e}var a="lineStyle.opacity".split("."),o={seriesType:"lines",reset:function(e,o,r){var i=t(e.get("symbol")),s=t(e.get("symbolSize")),n=e.getData();function l(e,o){var r=e.getItemModel(o),i=t(r.getShallow("symbol",!0)),s=t(r.getShallow("symbolSize",!0)),n=r.get(a);i[0]&&e.setItemVisual(o,"fromSymbol",i[0]),i[1]&&e.setItemVisual(o,"toSymbol",i[1]),s[0]&&e.setItemVisual(o,"fromSymbolSize",s[0]),s[1]&&e.setItemVisual(o,"toSymbolSize",s[1]),e.setItemVisual(o,"opacity",n)}return n.setVisual("fromSymbol",i&&i[0]),n.setVisual("toSymbol",i&&i[1]),n.setVisual("fromSymbolSize",s&&s[0]),n.setVisual("toSymbolSize",s&&s[1]),n.setVisual("opacity",e.get(a)),{dataEach:n.hasItemOption?l:null}}};e.exports=o},10064:(e,t,a)=>{var o=a(70492);a(42980),a(5249),a(28401),a(18958);var r=a(34804),i=a(80685),s=a(31293),n=a(87949),l=a(75324);o.registerLayout(r),o.registerVisual(i),o.registerProcessor(o.PRIORITY.PROCESSOR.STATISTIC,s),o.registerPreprocessor(n),l("map",[{type:"mapToggleSelect",event:"mapselectchanged",method:"toggleSelected"},{type:"mapSelect",event:"mapselected",method:"select"},{type:"mapUnSelect",event:"mapunselected",method:"unSelect"}])},42980:(e,t,a)=>{var o=a(33051),r=a(23263),i=a(93321),s=a(78988),n=s.encodeHTML,l=s.addCommas,d=a(1501),p=a(68540),f=p.retrieveRawAttr,u=a(11194),h=a(61772),m=h.makeSeriesEncodeForNameBased,g=i.extend({type:"series.map",dependencies:["geo"],layoutMode:"box",needsDrawMap:!1,seriesGroup:[],getInitialData:function(e){for(var t=r(this,{coordDimensions:["value"],encodeDefaulter:o.curry(m,this)}),a=t.mapDimension("value"),i=o.createHashMap(),s=[],n=[],l=0,d=t.count();l<d;l++){var p=t.getName(l);i.set(p,!0),s.push({name:p,value:t.get(a,l),selected:f(t,l,"selected")})}var h=u.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return o.each(h.regions,(function(e){var t=e.name;i.get(t)||(s.push({name:t}),n.push(t))})),this.updateSelectedMap(s),t.appendValues([],n),t},getHostGeoModel:function(){var e=this.option.geoIndex;return null!=e?this.dependentModels.geo[e]:null},getMapType:function(){return(this.getHostGeoModel()||this).option.map},getRawValue:function(e){var t=this.getData();return t.get(t.mapDimension("value"),e)},getRegionModel:function(e){var t=this.getData();return t.getItemModel(t.indexOfName(e))},formatTooltip:function(e,t,a,o){for(var r=this.getData(),i=l(this.getRawValue(e)),s=r.getName(e),d=this.seriesGroup,p=[],f=0;f<d.length;f++){var u=d[f].originalData.indexOfName(s),h=r.mapDimension("value");isNaN(d[f].originalData.get(h,u))||p.push(n(d[f].name))}var m="html"===o?"<br/>":"\n";return p.join(", ")+m+n(s+" : "+i)},getTooltipPosition:function(e){if(null!=e){var t=this.getData().getName(e),a=this.coordinateSystem,o=a.getRegion(t);return o&&a.dataToPoint(o.center)}},setZoom:function(e){this.option.zoom=e},setCenter:function(e){this.option.center=e},defaultOption:{zlevel:0,z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:.75,showLegendSymbol:!0,dataRangeHoverLink:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},nameProperty:"name"}});o.mixin(g,d);var c=g;e.exports=c},5249:(e,t,a)=>{var o=a(70492),r=a(33051),i=a(51177),s=a(44121),n="__seriesMapHighDown",l="__seriesMapCallKey",d=o.extendChartView({type:"map",render:function(e,t,a,o){if(!o||"mapToggleSelect"!==o.type||o.from!==this.uid){var r=this.group;if(r.removeAll(),!e.getHostGeoModel()){if(o&&"geoRoam"===o.type&&"series"===o.componentType&&o.seriesId===e.id){i=this._mapDraw;i&&r.add(i.group)}else if(e.needsDrawMap){var i=this._mapDraw||new s(a,!0);r.add(i.group),i.draw(e,t,a,this,o),this._mapDraw=i}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&t.getComponent("legend")&&this._renderSymbols(e,t,a)}}},remove:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},dispose:function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},_renderSymbols:function(e,t,a){var o=e.originalData,s=this.group;o.each(o.mapDimension("value"),(function(t,a){if(!isNaN(t)){var d=o.getItemLayout(a);if(d&&d.point){var u=d.point,h=d.offset,m=new i.Circle({style:{fill:e.getData().getVisual("color")},shape:{cx:u[0]+9*h,cy:u[1],r:3},silent:!0,z2:8+(h?0:i.Z2_EMPHASIS_LIFT+1)});if(!h){var g=e.mainSeries.getData(),c=o.getName(a),v=g.indexOfName(c),y=o.getItemModel(a),_=y.getModel("label"),C=y.getModel("emphasis.label"),w=g.getItemGraphicEl(v),D=r.retrieve2(e.getFormattedLabel(v,"normal"),c),S=r.retrieve2(e.getFormattedLabel(v,"emphasis"),D),b=w[n],x=Math.random();if(!b){b=w[n]={};var L=r.curry(p,!0),T=r.curry(p,!1);w.on("mouseover",L).on("mouseout",T).on("emphasis",L).on("normal",T)}w[l]=x,r.extend(b,{recordVersion:x,circle:m,labelModel:_,hoverLabelModel:C,emphasisText:S,normalText:D}),f(b,!1)}s.add(m)}}}))}});function p(e){var t=this[n];t&&t.recordVersion===this[l]&&f(t,e)}function f(e,t){var a=e.circle,o=e.labelModel,r=e.hoverLabelModel,s=e.emphasisText,n=e.normalText;t?(a.style.extendFrom(i.setTextStyle({},r,{text:r.get("show")?s:null},{isRectText:!0,useInsideStyle:!1},!0)),a.__mapOriginalZ2=a.z2,a.z2+=i.Z2_EMPHASIS_LIFT):(i.setTextStyle(a.style,o,{text:o.get("show")?n:null,textPosition:o.getShallow("position")||"bottom"},{isRectText:!0,useInsideStyle:!1}),a.dirty(!1),null!=a.__mapOriginalZ2&&(a.z2=a.__mapOriginalZ2,a.__mapOriginalZ2=null))}e.exports=d},87949:(e,t,a)=>{var o=a(33051);function r(e){var t=[];o.each(e.series,(function(e){e&&"map"===e.type&&(t.push(e),e.map=e.map||e.mapType,o.defaults(e,e.mapLocation))}))}e.exports=r}}]);