(self["webpackChunknewfront"]=self["webpackChunknewfront"]||[]).push([[462],{89777:(t,e,a)=>{t.exports=a(88157)},50024:(t,e,a)=>{var n=a(34380),o=a(70492);o.extendSeriesModel({type:"series.wordCloud",visualColorAccessPath:"textStyle.normal.color",optionUpdated:function(){var t=this.option;t.gridSize=Math.max(Math.floor(t.gridSize),4)},getInitialData:function(t,e){var a=n(["value"],t.data),i=new o.List(a,this);return i.initData(t.data),i},defaultOption:{maskImage:null,shape:"circle",left:"center",top:"center",width:"70%",height:"80%",sizeRange:[12,60],rotationRange:[-90,90],rotationStep:45,gridSize:8,drawOutOfBound:!1,textStyle:{normal:{fontWeight:"normal"}}}})},40885:(t,e,a)=>{var n=a(70492);n.extendChartView({type:"wordCloud",render:function(t,e,a){var o=this.group;o.removeAll();var i=t.getData(),r=t.get("gridSize");t.layoutInstance.ondraw=function(t,e,a,s){var l=i.getItemModel(a),d=l.getModel("textStyle.normal"),c=l.getModel("textStyle.emphasis"),f=new n.graphic.Text({style:n.graphic.setTextStyle({},d,{x:s.info.fillTextOffsetX,y:s.info.fillTextOffsetY+.5*e,text:t,textBaseline:"middle",textFill:i.getItemVisual(a,"color"),fontSize:e}),scale:[1/s.info.mu,1/s.info.mu],position:[(s.gx+s.info.gw/2)*r,(s.gy+s.info.gh/2)*r],rotation:s.rot});o.add(f),i.setItemGraphicEl(a,f),n.graphic.setHoverStyle(f,n.graphic.setTextStyle({},c,null,{forMerge:!0},!0))},this._model=t},remove:function(){this.group.removeAll(),this._model.layoutInstance.dispose()},dispose:function(){this._model.layoutInstance.dispose()}})},62255:function(t,e){"use strict";var a,n; /*! * wordcloud2.js * http://timdream.org/wordcloud2.js/ * * Copyright 2011 - 2013 Tim Chien * Released under the MIT license */window.setImmediate||(window.setImmediate=function(){return window.msSetImmediate||window.webkitSetImmediate||window.mozSetImmediate||window.oSetImmediate||function(){if(!window.postMessage||!window.addEventListener)return null;var t=[void 0],e="zero-timeout-message",a=function(a){var n=t.length;return t.push(a),window.postMessage(e+n.toString(36),"*"),n};return window.addEventListener("message",(function(a){if("string"===typeof a.data&&a.data.substr(0,e.length)===e){a.stopImmediatePropagation();var n=parseInt(a.data.substr(e.length),36);t[n]&&(t[n](),t[n]=void 0)}}),!0),window.clearImmediate=function(e){t[e]&&(t[e]=void 0)},a}()||function(t){window.setTimeout(t,0)}}()),window.clearImmediate||(window.clearImmediate=function(){return window.msClearImmediate||window.webkitClearImmediate||window.mozClearImmediate||window.oClearImmediate||function(t){window.clearTimeout(t)}}()),function(o){var i=function(){var t=document.createElement("canvas");if(!t||!t.getContext)return!1;var e=t.getContext("2d");return!!e.getImageData&&(!!e.fillText&&(!!Array.prototype.some&&!!Array.prototype.push))}(),r=function(){if(i){var t,e,a=document.createElement("canvas").getContext("2d"),n=20;while(n){if(a.font=n.toString(10)+"px sans-serif",a.measureText("W").width===t&&a.measureText("m").width===e)return n+1;t=a.measureText("W").width,e=a.measureText("m").width,n--}return 0}}(),s=function(t){for(var e,a,n=t.length;n;e=Math.floor(Math.random()*n),a=t[--n],t[n]=t[e],t[e]=a);return t},l=function(t,e){if(i){Array.isArray(t)||(t=[t]),t.forEach((function(e,a){if("string"===typeof e){if(t[a]=document.getElementById(e),!t[a])throw"The element id specified is not found."}else if(!e.tagName&&!e.appendChild)throw"You must pass valid HTML elements, or ID of the element."}));var a={list:[],fontFamily:'"Trebuchet MS", "Heiti TC", "微軟正黑體", "Arial Unicode MS", "Droid Fallback Sans", sans-serif',fontWeight:"normal",color:"random-dark",minSize:0,weightFactor:1,clearCanvas:!0,backgroundColor:"#fff",gridSize:8,drawOutOfBound:!1,origin:null,drawMask:!1,maskColor:"rgba(255,0,0,0.3)",maskGapWidth:.3,wait:0,abortThreshold:0,abort:function(){},minRotation:-Math.PI/2,maxRotation:Math.PI/2,rotationStep:.1,shuffle:!0,rotateRatio:.1,shape:"circle",ellipticity:.65,classes:null,hover:null,click:null};if(e)for(var n in e)n in a&&(a[n]=e[n]);if("function"!==typeof a.weightFactor){var o=a.weightFactor;a.weightFactor=function(t){return t*o}}if("function"!==typeof a.shape)switch(a.shape){case"circle":default:a.shape="circle";break;case"cardioid":a.shape=function(t){return 1-Math.sin(t)};break;case"diamond":case"square":a.shape=function(t){var e=t%(2*Math.PI/4);return 1/(Math.cos(e)+Math.sin(e))};break;case"triangle-forward":a.shape=function(t){var e=t%(2*Math.PI/3);return 1/(Math.cos(e)+Math.sqrt(3)*Math.sin(e))};break;case"triangle":case"triangle-upright":a.shape=function(t){var e=(t+3*Math.PI/2)%(2*Math.PI/3);return 1/(Math.cos(e)+Math.sqrt(3)*Math.sin(e))};break;case"pentagon":a.shape=function(t){var e=(t+.955)%(2*Math.PI/5);return 1/(Math.cos(e)+.726543*Math.sin(e))};break;case"star":a.shape=function(t){var e=(t+.955)%(2*Math.PI/10);return(t+.955)%(2*Math.PI/5)-2*Math.PI/10>=0?1/(Math.cos(2*Math.PI/10-e)+3.07768*Math.sin(2*Math.PI/10-e)):1/(Math.cos(e)+3.07768*Math.sin(e))};break}a.gridSize=Math.max(Math.floor(a.gridSize),4);var l,d,c,f,u,h,m,p=a.gridSize,g=p-a.maskGapWidth,v=Math.abs(a.maxRotation-a.minRotation),w=Math.min(a.maxRotation,a.minRotation),y=a.rotationStep;switch(a.color){case"random-dark":m=function(){return W(10,50)};break;case"random-light":m=function(){return W(50,90)};break;default:"function"===typeof a.color&&(m=a.color);break}var x=null;"function"===typeof a.classes&&(x=a.classes);var M,b=!1,S=[],C=function(t){var e,a,n=t.currentTarget,o=n.getBoundingClientRect();t.touches?(e=t.touches[0].clientX,a=t.touches[0].clientY):(e=t.clientX,a=t.clientY);var i=e-o.left,r=a-o.top,s=Math.floor(i*(n.width/o.width||1)/p),l=Math.floor(r*(n.height/o.height||1)/p);return S[s][l]},I=function(t){var e=C(t);M!==e&&(M=e,e?a.hover(e.item,e.dimension,t):a.hover(void 0,void 0,t))},T=function(t){var e=C(t);e&&(a.click(e.item,e.dimension,t),t.preventDefault())},O=[],E=function(t){if(O[t])return O[t];var e=8*t,n=e,o=[];0===t&&o.push([f[0],f[1],0]);while(n--){var i=1;"circle"!==a.shape&&(i=a.shape(n/e*2*Math.PI)),o.push([f[0]+t*i*Math.cos(-n/e*2*Math.PI),f[1]+t*i*Math.sin(-n/e*2*Math.PI)*a.ellipticity,n/e*2*Math.PI])}return O[t]=o,o},_=function(){return a.abortThreshold>0&&(new Date).getTime()-h>a.abortThreshold},k=function(){return 0===a.rotateRatio||Math.random()>a.rotateRatio?0:0===v?w:w+Math.round(Math.random()*v/y)*y},P=function(t,e,n){var o=!1,i=a.weightFactor(e);if(i<=a.minSize)return!1;var s=1;i<r&&(s=function(){var t=2;while(t*i<r)t+=2;return t}());var l=document.createElement("canvas"),d=l.getContext("2d",{willReadFrequently:!0});d.font=a.fontWeight+" "+(i*s).toString(10)+"px "+a.fontFamily;var c=d.measureText(t).width/s,f=Math.max(i*s,d.measureText("m").width,d.measureText("W").width)/s,u=c+2*f,h=3*f,m=Math.ceil(u/p),g=Math.ceil(h/p);u=m*p,h=g*p;var v=-c/2,w=.4*-f,y=Math.ceil((u*Math.abs(Math.sin(n))+h*Math.abs(Math.cos(n)))/p),x=Math.ceil((u*Math.abs(Math.cos(n))+h*Math.abs(Math.sin(n)))/p),M=x*p,b=y*p;l.setAttribute("width",M),l.setAttribute("height",b),o&&(document.body.appendChild(l),d.save()),d.scale(1/s,1/s),d.translate(M*s/2,b*s/2),d.rotate(-n),d.font=a.fontWeight+" "+(i*s).toString(10)+"px "+a.fontFamily,d.fillStyle="#000",d.textBaseline="middle",d.fillText(t,v*s,(w+.5*i)*s);var S=d.getImageData(0,0,M,b).data;if(_())return!1;o&&(d.strokeRect(v*s,w,c*s,f*s),d.restore());var C,I,T,O=[],E=x,k=[y/2,x/2,y/2,x/2];while(E--){C=y;while(C--){T=p;t:{while(T--){I=p;while(I--)if(S[4*((C*p+T)*M+(E*p+I))+3]){O.push([E,C]),E<k[3]&&(k[3]=E),E>k[1]&&(k[1]=E),C<k[0]&&(k[0]=C),C>k[2]&&(k[2]=C),o&&(d.fillStyle="rgba(255, 0, 0, 0.5)",d.fillRect(E*p,C*p,p-.5,p-.5));break t}}o&&(d.fillStyle="rgba(0, 0, 255, 0.5)",d.fillRect(E*p,C*p,p-.5,p-.5))}}}return o&&(d.fillStyle="rgba(0, 255, 0, 0.5)",d.fillRect(k[3]*p,k[0]*p,(k[1]-k[3]+1)*p,(k[2]-k[0]+1)*p)),{mu:s,occupied:O,bounds:k,gw:x,gh:y,fillTextOffsetX:v,fillTextOffsetY:w,fillTextWidth:c,fillTextHeight:f,fontSize:i}},R=function(t,e,n,o,i){var r=i.length;while(r--){var s=t+i[r][0],f=e+i[r][1];if(s>=d||f>=c||s<0||f<0){if(!a.drawOutOfBound)return!1}else if(!l[s][f])return!1}return!0},z=function(e,n,o,i,r,s,l,d,c){var f,u,h=o.fontSize;f=m?m(i,r,h,s,l):a.color,u=x?x(i,r,h,s,l):a.classes;var g=o.bounds;g[3],g[0],g[1],g[3],g[2],g[0],t.forEach((function(t){if(t.getContext){var r=t.getContext("2d"),s=o.mu;r.save(),r.scale(1/s,1/s),r.font=a.fontWeight+" "+(h*s).toString(10)+"px "+a.fontFamily,r.fillStyle=f,r.translate((e+o.gw/2)*p*s,(n+o.gh/2)*p*s),0!==d&&r.rotate(-d),r.textBaseline="middle",r.fillText(i,o.fillTextOffsetX*s,(o.fillTextOffsetY+.5*h)*s),r.restore()}else{var l=document.createElement("span"),m="";m="rotate("+-d/Math.PI*180+"deg) ",1!==o.mu&&(m+="translateX(-"+o.fillTextWidth/4+"px) scale("+1/o.mu+")");var g={position:"absolute",display:"block",font:a.fontWeight+" "+h*o.mu+"px "+a.fontFamily,left:(e+o.gw/2)*p+o.fillTextOffsetX+"px",top:(n+o.gh/2)*p+o.fillTextOffsetY+"px",width:o.fillTextWidth+"px",height:o.fillTextHeight+"px",lineHeight:h+"px",whiteSpace:"nowrap",transform:m,webkitTransform:m,msTransform:m,transformOrigin:"50% 40%",webkitTransformOrigin:"50% 40%",msTransformOrigin:"50% 40%"};for(var v in f&&(g.color=f),l.textContent=i,g)l.style[v]=g[v];if(c)for(var w in c)l.setAttribute(w,c[w]);u&&(l.className+=u),t.appendChild(l)}}))},L=function(e,a,n,o,i){if(!(e>=d||a>=c||e<0||a<0)){if(l[e][a]=!1,n){var r=t[0].getContext("2d");r.fillRect(e*p,a*p,g,g)}b&&(S[e][a]={item:i,dimension:o})}},B=function(e,n,o,i,r,s){var l,f,u=r.occupied,h=a.drawMask;if(h&&(l=t[0].getContext("2d"),l.save(),l.fillStyle=a.maskColor),b){var m=r.bounds;f={x:(e+m[3])*p,y:(n+m[0])*p,w:(m[1]-m[3]+1)*p,h:(m[2]-m[0]+1)*p}}var g=u.length;while(g--){var v=e+u[g][0],w=n+u[g][1];v>=d||w>=c||v<0||w<0||L(v,w,h,f,s)}h&&l.restore()},D=function(t){var e,n,o;Array.isArray(t)?(e=t[0],n=t[1]):(e=t.word,n=t.weight,o=t.attributes);var i=k(),r=P(e,n,i);if(!r)return!1;if(_())return!1;if(!a.drawOutOfBound){var l=r.bounds;if(l[1]-l[3]+1>d||l[2]-l[0]+1>c)return!1}var f=u+1,h=function(a){var s=Math.floor(a[0]-r.gw/2),l=Math.floor(a[1]-r.gh/2),d=r.gw,c=r.gh;return!!R(s,l,d,c,r.occupied)&&(z(s,l,r,e,n,u-f,a[2],i,o),B(s,l,d,c,r,t),{gx:s,gy:l,rot:i,info:r})};while(f--){var m=E(u-f);a.shuffle&&(m=[].concat(m),s(m));for(var p=0;p<m.length;p++){var g=h(m[p]);if(g)return g}}return null},F=function(e,a,n){if(a)return!t.some((function(t){var o=document.createEvent("CustomEvent");return o.initCustomEvent(e,!0,a,n||{}),!t.dispatchEvent(o)}),this);t.forEach((function(t){var o=document.createEvent("CustomEvent");o.initCustomEvent(e,!0,a,n||{}),t.dispatchEvent(o)}),this)},A=function(){var e=t[0];if(e.getContext)d=Math.ceil(e.width/p),c=Math.ceil(e.height/p);else{var n=e.getBoundingClientRect();d=Math.ceil(n.width/p),c=Math.ceil(n.height/p)}if(F("wordcloudstart",!0)){var o,i,r,s,m;if(f=a.origin?[a.origin[0]/p,a.origin[1]/p]:[d/2,c/2],u=Math.floor(Math.sqrt(d*d+c*c)),l=[],!e.getContext||a.clearCanvas){t.forEach((function(t){if(t.getContext){var e=t.getContext("2d");e.fillStyle=a.backgroundColor,e.clearRect(0,0,d*(p+1),c*(p+1)),e.fillRect(0,0,d*(p+1),c*(p+1))}else t.textContent="",t.style.backgroundColor=a.backgroundColor,t.style.position="relative"})),o=d;while(o--){l[o]=[],i=c;while(i--)l[o][i]=!0}}else{var g=document.createElement("canvas").getContext("2d");g.fillStyle=a.backgroundColor,g.fillRect(0,0,1,1);var v,w,y=g.getImageData(0,0,1,1).data,x=e.getContext("2d").getImageData(0,0,d*p,c*p).data;o=d;while(o--){l[o]=[],i=c;while(i--){w=p;t:while(w--){v=p;while(v--){r=4;while(r--)if(x[4*((i*p+w)*d*p+(o*p+v))+r]!==y[r]){l[o][i]=!1;break t}}}!1!==l[o][i]&&(l[o][i]=!0)}}x=g=y=void 0}if(a.hover||a.click){b=!0,o=d+1;while(o--)S[o]=[];a.hover&&e.addEventListener("mousemove",I),a.click&&(e.addEventListener("click",T),e.addEventListener("touchstart",T),e.addEventListener("touchend",(function(t){t.preventDefault()})),e.style.webkitTapHighlightColor="rgba(0, 0, 0, 0)"),e.addEventListener("wordcloudstart",(function t(){e.removeEventListener("wordcloudstart",t),e.removeEventListener("mousemove",I),e.removeEventListener("click",T),M=void 0}))}r=0,0!==a.wait?(s=window.setTimeout,m=window.clearTimeout):(s=window.setImmediate,m=window.clearImmediate);var C=function(e,a){t.forEach((function(t){t.addEventListener(e,a)}),this)},O=function(e,a){t.forEach((function(t){t.removeEventListener(e,a)}),this)},E=function t(){O("wordcloudstart",t),m(k)};C("wordcloudstart",E);var k=s((function t(){if(r>=a.list.length)return m(k),F("wordcloudstop",!1),void O("wordcloudstart",E);h=(new Date).getTime();var e=D(a.list[r]),n=!F("wordclouddrawn",!0,{item:a.list[r],drawn:e});if(_()||n)return m(k),a.abort(),F("wordcloudabort",!1),F("wordcloudstop",!1),void O("wordcloudstart",E);r++,k=s(t,a.wait)}),a.wait)}};A()}function W(t,e){return"hsl("+(360*Math.random()).toFixed()+","+(30*Math.random()+70).toFixed()+"%,"+(Math.random()*(e-t)+t).toFixed()+"%)"}};l.isSupported=i,l.minFontSize=r,a=[],n=function(){return l}.apply(e,a),void 0===n||(t.exports=n)}()},88157:(t,e,a)=>{var n=a(25108),o=a(70492),i=a(76172);a(50024),a(40885);var r=a(62255);if(!r.isSupported)throw new Error("Sorry your browser not support wordCloud");function s(t){for(var e=t.getContext("2d"),a=e.getImageData(0,0,t.width,t.height),n=e.createImageData(a),o=0,i=0,r=0;r<a.data.length;r+=4){var s=a.data[r+3];if(s>128){var l=a.data[r]+a.data[r+1]+a.data[r+2];o+=l,++i}}var d=o/i;for(r=0;r<a.data.length;r+=4){l=a.data[r]+a.data[r+1]+a.data[r+2],s=a.data[r+3];s<128||l>d?(n.data[r]=0,n.data[r+1]=0,n.data[r+2]=0,n.data[r+3]=0):(n.data[r]=255,n.data[r+1]=255,n.data[r+2]=255,n.data[r+3]=255)}e.putImageData(n,0,0)}o.registerLayout((function(t,e){t.eachSeriesByType("wordCloud",(function(a){var l=i.getLayoutRect(a.getBoxLayoutParams(),{width:e.getWidth(),height:e.getHeight()}),d=a.getData(),c=document.createElement("canvas");c.width=l.width,c.height=l.height;var f=c.getContext("2d"),u=a.get("maskImage");if(u)try{f.drawImage(u,0,0,c.width,c.height),s(c)}catch(y){n.error("Invalid mask image"),n.error(y.toString())}var h=a.get("sizeRange"),m=a.get("rotationRange"),p=d.getDataExtent("value"),g=Math.PI/180,v=a.get("gridSize");function w(t){var e=t.detail.item;t.detail.drawn&&a.layoutInstance.ondraw&&(t.detail.drawn.gx+=l.x/v,t.detail.drawn.gy+=l.y/v,a.layoutInstance.ondraw(e[0],e[1],e[2],t.detail.drawn))}r(c,{list:d.mapArray("value",(function(t,e){var a=d.getItemModel(e);return[d.getName(e),a.get("textStyle.normal.textSize",!0)||o.number.linearMap(t,p,h),e]})).sort((function(t,e){return e[1]-t[1]})),fontFamily:a.get("textStyle.normal.fontFamily")||a.get("textStyle.emphasis.fontFamily")||t.get("textStyle.fontFamily"),fontWeight:a.get("textStyle.normal.fontWeight")||a.get("textStyle.emphasis.fontWeight")||t.get("textStyle.fontWeight"),gridSize:v,ellipticity:l.height/l.width,minRotation:m[0]*g,maxRotation:m[1]*g,clearCanvas:!u,rotateRatio:1,rotationStep:a.get("rotationStep")*g,drawOutOfBound:a.get("drawOutOfBound"),shuffle:!1,shape:a.get("shape")}),c.addEventListener("wordclouddrawn",w),a.layoutInstance&&a.layoutInstance.dispose(),a.layoutInstance={ondraw:null,dispose:function(){c.removeEventListener("wordclouddrawn",w),c.addEventListener("wordclouddrawn",(function(t){t.preventDefault()}))}}}))})),o.registerPreprocessor((function(t){var e=(t||{}).series;!o.util.isArray(e)&&(e=e?[e]:[]);var a=["shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"];function n(t){t&&o.util.each(a,(function(e){t.hasOwnProperty(e)&&(t["text"+o.format.capitalFirst(e)]=t[e])}))}o.util.each(e,(function(t){if(t&&"wordCloud"===t.type){var e=t.textStyle||{};n(e.normal),n(e.emphasis)}}))}))},8127:(t,e,a)=>{var n,o=a(70596),i=o.util,r=o.graphic,s=o.matrix;function l(t,e){this._bmap=t,this.dimensions=["lng","lat"],this._mapOffset=[0,0],this._api=e,this._projection=new BMap.MercatorProjection}function d(t,e){return e=e||[0,0],i.map([0,1],(function(a){var n=e[a],o=t[a]/2,i=[],r=[];return i[a]=n-o,r[a]=n+o,i[1-a]=r[1-a]=e[1-a],Math.abs(this.dataToPoint(i)[a]-this.dataToPoint(r)[a])}),this)}function c(){function t(t){this._root=t}return t.prototype=new BMap.Overlay,t.prototype.initialize=function(t){return t.getPanes().labelPane.appendChild(this._root),this._root},t.prototype.draw=function(){},t}l.prototype.dimensions=["lng","lat"],l.prototype.setZoom=function(t){this._zoom=t},l.prototype.setCenter=function(t){this._center=this._projection.lngLatToPoint(new BMap.Point(t[0],t[1]))},l.prototype.setMapOffset=function(t){this._mapOffset=t},l.prototype.getBMap=function(){return this._bmap},l.prototype.dataToPoint=function(t){var e=new BMap.Point(t[0],t[1]),a=this._bmap.pointToOverlayPixel(e),n=this._mapOffset;return[a.x-n[0],a.y-n[1]]},l.prototype.pointToData=function(t){var e=this._mapOffset;t=this._bmap.overlayPixelToPoint({x:t[0]+e[0],y:t[1]+e[1]});return[t.lng,t.lat]},l.prototype.getViewRect=function(){var t=this._api;return new r.BoundingRect(0,0,t.getWidth(),t.getHeight())},l.prototype.getRoamTransform=function(){return s.create()},l.prototype.prepareCustoms=function(t){var e=this.getViewRect();return{coordSys:{type:"bmap",x:e.x,y:e.y,width:e.width,height:e.height},api:{coord:i.bind(this.dataToPoint,this),size:i.bind(d,this)}}},l.dimensions=l.prototype.dimensions,l.create=function(t,e){var a,o=e.getDom();t.eachComponent("bmap",(function(t){var i=e.getZr().painter,r=i.getViewportRoot();if("undefined"===typeof BMap)throw new Error("BMap api is not loaded");if(n=n||c(),a)throw new Error("Only one bmap component can exist");if(!t.__bmap){var s=o.querySelector(".ec-extension-bmap");s&&(r.style.left="0px",r.style.top="0px",o.removeChild(s)),s=document.createElement("div"),s.style.cssText="width:100%;height:100%",s.classList.add("ec-extension-bmap"),o.appendChild(s);var d=t.get("mapOptions")||{};delete d.mapType;var f=t.__bmap=new BMap.Map(s,d),u=new n(r);f.addOverlay(u),i.getViewportRootOffset=function(){return{offsetLeft:0,offsetTop:0}}}f=t.__bmap;var h=t.get("center"),m=t.get("zoom");if(h&&m){var p=f.getCenter(),g=f.getZoom(),v=t.centerOrZoomChanged([p.lng,p.lat],g);if(v){var w=new BMap.Point(h[0],h[1]);f.centerAndZoom(w,m)}}a=new l(f,e),a.setMapOffset(t.__mapOffset||[0,0]),a.setZoom(m),a.setCenter(h),t.coordinateSystem=a})),t.eachSeries((function(t){"bmap"===t.get("coordinateSystem")&&(t.coordinateSystem=a)}))};var f=l;t.exports=f},22232:(t,e,a)=>{var n=a(70596);function o(t,e){return t&&e&&t[0]===e[0]&&t[1]===e[1]}var i=n.extendComponentModel({type:"bmap",getBMap:function(){return this.__bmap},setCenterAndZoom:function(t,e){this.option.center=t,this.option.zoom=e},centerOrZoomChanged:function(t,e){var a=this.option;return!(o(t,a.center)&&e===a.zoom)},defaultOption:{center:[104.114129,37.550339],zoom:5,mapStyle:{},mapStyleV2:{},mapOptions:{},roam:!1}});t.exports=i},54858:(t,e,a)=>{var n=a(70596);function o(t){for(var e in t)if(t.hasOwnProperty(e))return!1;return!0}var i=n.extendComponentView({type:"bmap",render:function(t,e,a){var i=!0,r=t.getBMap(),s=a.getZr().painter.getViewportRoot(),l=t.coordinateSystem,d=function(e,n){if(!i){var o=s.parentNode.parentNode.parentNode,r=[-parseInt(o.style.left,10)||0,-parseInt(o.style.top,10)||0];s.style.left=r[0]+"px",s.style.top=r[1]+"px",l.setMapOffset(r),t.__mapOffset=r,a.dispatchAction({type:"bmapRoam"})}};function c(){i||a.dispatchAction({type:"bmapRoam"})}r.removeEventListener("moving",this._oldMoveHandler),r.removeEventListener("moveend",this._oldMoveHandler),r.removeEventListener("zoomend",this._oldZoomEndHandler),r.addEventListener("moving",d),r.addEventListener("moveend",d),r.addEventListener("zoomend",c),this._oldMoveHandler=d,this._oldZoomEndHandler=c;var f=t.get("roam");f&&"scale"!==f?r.enableDragging():r.disableDragging(),f&&"move"!==f?(r.enableScrollWheelZoom(),r.enableDoubleClickZoom(),r.enablePinchToZoom()):(r.disableScrollWheelZoom(),r.disableDoubleClickZoom(),r.disablePinchToZoom());var u=t.__mapStyle,h=t.get("mapStyle")||{},m=JSON.stringify(h);JSON.stringify(u)!==m&&(o(g)||r.setMapStyle(n.util.clone(h)),t.__mapStyle=JSON.parse(m));var p=t.__mapStyle2,g=t.get("mapStyleV2")||{},v=JSON.stringify(g);JSON.stringify(p)!==v&&(o(g)||r.setMapStyleV2(n.util.clone(g)),t.__mapStyle2=JSON.parse(v)),i=!1}});t.exports=i},32903:(t,e,a)=>{var n=a(70596),o=a(8127);a(22232),a(54858),n.registerCoordinateSystem("bmap",o),n.registerAction({type:"bmapRoam",event:"bmapRoam",update:"updateLayout"},(function(t,e){e.eachComponent("bmap",(function(t){var e=t.getBMap(),a=e.getCenter();t.setCenterAndZoom([a.lng,a.lat],e.getZoom())}))}));var i="1.0.0";e.version=i},70596:(t,e,a)=>{var n=a(70492);(function(){for(var t in n){if(null==n||!n.hasOwnProperty(t)||"default"===t||"__esModule"===t)return;e[t]=n[t]}})();var o=a(34151);(function(){for(var t in o){if(null==o||!o.hasOwnProperty(t)||"default"===t||"__esModule"===t)return;e[t]=o[t]}})(),a(81768),a(46295),a(40451),a(94859),a(42213),a(48927),a(10064),a(81052),a(17831),a(44553),a(27539),a(66614),a(28571),a(90474),a(31978),a(83760),a(52755),a(64771),a(40055),a(59314),a(90110),a(13594),a(81741),a(82601),a(49225),a(48807),a(84066),a(75781),a(58362),a(78644),a(76093),a(83062),a(52528),a(17817),a(21865),a(56913),a(74482),a(34563),a(35598),a(77139),a(78511),a(53665),a(68569),a(32620),a(88067),a(23084),a(56720),a(62227),a(31663)}}]);