@nocobase/portal-template-default 1.0.17 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.example +0 -4
- package/AGENTS.md +2 -0
- package/dist/assets/{LineDraw-BBB5hwuJ.js → LineDraw-B3HsIvjF.js} +1 -1
- package/dist/assets/{SymbolDraw-CKS3uUb_.js → SymbolDraw-C5oA6gYo.js} +1 -1
- package/dist/assets/{VisualMapping-BCwaW3TD.js → VisualMapping-CjyVXYl-.js} +1 -1
- package/dist/assets/{auth-method-demo-BdCCvEEz.js → auth-method-demo-B4sxmO2B.js} +1 -1
- package/dist/assets/auto-login-provider-DPtJmWC-.js +1 -0
- package/dist/assets/{auto-login-provider-DO5Il6Dp.js → auto-login-provider-pxf3kSYY.js} +2 -2
- package/dist/assets/auto-redirect-provider-B51i6R_U.js +1 -0
- package/dist/assets/auto-redirect-provider-CDA_97es.js +1 -0
- package/dist/assets/{auto-redirect-provider-ja-vFPaF.js → auto-redirect-provider-CeJOAYfx.js} +1 -1
- package/dist/assets/{calendar-C7xnRgOT.js → calendar-B41MfAkB.js} +1 -1
- package/dist/assets/{cas-sign-in-button-BZCa4lR6.js → cas-sign-in-button-DmkMYnGb.js} +1 -1
- package/dist/assets/{components-_g-GjQeV.js → components-DLLYm5Qd.js} +1 -1
- package/dist/assets/{configuration-gate-B4XVz7tS.js → configuration-gate-CdktspSj.js} +1 -1
- package/dist/assets/{createClipPathFromCoordSys-z9Kmh-tu.js → createClipPathFromCoordSys-BKzf1iWj.js} +1 -1
- package/dist/assets/createSeriesDataSimply-Dcpkokbc.js +1 -0
- package/dist/assets/{customGraphicKeyframeAnimation-DMU5crAu.js → customGraphicKeyframeAnimation-BYcy-PGj.js} +1 -1
- package/dist/assets/{demo-Bj_Y0RrW.js → demo-BpC2e3zt.js} +1 -1
- package/dist/assets/{demo-DUmWU7ik.js → demo-CEA7jJM2.js} +1 -1
- package/dist/assets/{demo-CXRTPvIx.js → demo-CX_Zf30k.js} +1 -1
- package/dist/assets/{demo-DJuVDu1n.js → demo-CyvGiwq2.js} +1 -1
- package/dist/assets/{demo-NhIzFRE1.js → demo-DJgGXOii.js} +1 -1
- package/dist/assets/{demo-CKPAQOib.js → demo-GTMcYVzl.js} +1 -1
- package/dist/assets/{demo-BPlae2bp.js → demo-O2QwJ70o.js} +1 -1
- package/dist/assets/{dingtalk-sign-in-button-DMPgE5kT.js → dingtalk-sign-in-button-K_2ZYQNC.js} +1 -1
- package/dist/assets/{echarts-preview-R96Pbqmz.js → echarts-preview-CTj0x24f.js} +1 -1
- package/dist/assets/{echarts-runtime-Ce_z2eX_.js → echarts-runtime-BTfAtt-4.js} +3 -3
- package/dist/assets/{echarts-runtime-advanced-Dr80KHJR.js → echarts-runtime-advanced-Xg4WXsLl.js} +1 -1
- package/dist/assets/{echarts-runtime-common-DB95Yfc1.js → echarts-runtime-common-Dfe5ONoi.js} +1 -1
- package/dist/assets/{echarts-runtime-components-DCJEaTJk.js → echarts-runtime-components-BNoMvPY0.js} +1 -1
- package/dist/assets/{echarts-runtime-hierarchy-CezgZs9O.js → echarts-runtime-hierarchy-bEvX8V8l.js} +1 -1
- package/dist/assets/{floating-O9WmiDXk.js → floating-CVEm6jgD.js} +1 -1
- package/dist/assets/{index-WKvygTBp.js → index-0O4dSmNz.js} +1 -1
- package/dist/assets/{index-DgB7uTMs.js → index-Bliz6Sy2.js} +1 -1
- package/dist/assets/{index-Cc6awvdg.js → index-CMoFG_fD.js} +210 -210
- package/dist/assets/{index-CPzehPGe.js → index-N5q0Lo-n.js} +1 -1
- package/dist/assets/{index-DroUAK80.js → index-dDkRfkPI.js} +1 -1
- package/dist/assets/{index-ChA0z9ke.js → index-s-Gc7krA.js} +1 -1
- package/dist/assets/{labelHelper-Dk5jkiD-.js → labelHelper-CSRwI3Ku.js} +1 -1
- package/dist/assets/{ldap-sign-in-form-CKN4l7qM.js → ldap-sign-in-form-BoVMVmwm.js} +1 -1
- package/dist/assets/{oidc-sign-in-button-BIRonrpC.js → oidc-sign-in-button-5pd4bZSW.js} +1 -1
- package/dist/assets/{page-context-DAiW_dId.js → page-context-o6ISleo3.js} +1 -1
- package/dist/assets/prompt-card-xoH-b2hL.js +1 -0
- package/dist/assets/{prompt-output-B4h3uLWf.js → prompt-output-7ZS2-d1_.js} +1 -1
- package/dist/assets/{saml-sign-in-button-B4ugaLIb.js → saml-sign-in-button-CN2l8pSN.js} +1 -1
- package/dist/assets/{sectorHelper-BuxrrJrA.js → sectorHelper-D1jHcZDN.js} +1 -1
- package/dist/assets/{shortcut-BhKXxJLs.js → shortcut-DUGrhOUX.js} +1 -1
- package/dist/assets/{sms-sign-in-form-DKpxRDdZ.js → sms-sign-in-form-ajsTToFF.js} +1 -1
- package/dist/assets/{static.browser-kzzpH0Xt.js → static.browser-exfE5oYi.js} +1 -1
- package/dist/assets/{switch-BdVxPIVU.js → switch-BVTKHDeA.js} +1 -1
- package/dist/assets/{tool-cards-CpczIke-.js → tool-cards-CQklNnUU.js} +1 -1
- package/dist/assets/{use-authenticator-sign-in-CIj210ry.js → use-authenticator-sign-in-B8OPLh-w.js} +1 -1
- package/dist/assets/{use-dingtalk-sign-in-BW4kkXD3.js → use-dingtalk-sign-in-DsX00uPU.js} +1 -1
- package/dist/assets/{use-wecom-sign-in-dIqMtcN9.js → use-wecom-sign-in-Di3WFrU1.js} +1 -1
- package/dist/assets/{wecom-sign-in-button-Dn_2zDab.js → wecom-sign-in-button-BO8h0tS8.js} +1 -1
- package/dist/index.html +1 -1
- package/dist/index.raw.html +1 -1
- package/package.json +1 -1
- package/src/app/route-runtime.ts +29 -2
- package/src/components/data-table/data-table-filter.tsx +7 -4
- package/src/extensions/nocobase-users-example/app-routes.tsx +6 -2
- package/src/extensions/nocobase-users-example/index.ts +0 -1
- package/dist/assets/auto-login-provider-TQ08B6-i.js +0 -1
- package/dist/assets/auto-redirect-provider-ButXp0A3.js +0 -1
- package/dist/assets/auto-redirect-provider-DnGGP2Vn.js +0 -1
- package/dist/assets/createSeriesDataSimply-CPqysF0K.js +0 -1
- package/dist/assets/prompt-card-rGZqpqkF.js +0 -1
- package/src/extensions/nocobase-users-example/layout.tsx +0 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
import{aB as c,j as s,aM as d,aN as m,aO as p,aP as y,aQ as v}from"./index-
|
|
1
|
+
import{aB as c,j as s,aM as d,aN as m,aO as p,aP as y,aQ as v}from"./index-CMoFG_fD.js";const t=[{username:"atlas",nickname:"Atlas",position:"General assistant",greeting:"How can I help with this page?"},{username:"viz",nickname:"Viz",position:"Insights analyst",greeting:"What would you like to explore?"}],o=[{value:"__preview__",label:"Preview only",configured:!1}],a=()=>new ReadableStream({start(e){e.close()}}),u={listEmployees:async()=>t,listModels:async()=>o,updateEmployeeUserPrompt:async()=>{},listConversations:async()=>[],getConversationMessages:async()=>[],getConversationActiveState:async()=>"idle",updateConversationTitle:async()=>{},destroyConversation:async()=>{},uploadFile:async e=>({id:crypto.randomUUID(),filename:e.name,mimetype:e.type,size:e.size}),createConversation:async()=>`preview-${crypto.randomUUID()}`,sendMessagesStream:async()=>a(),resendMessagesStream:async()=>a(),updateToolCallDecision:async()=>({updated:0,toolCalls:[]}),resumeToolCallStream:async()=>a(),resumeConversationStream:async()=>a()};function h({children:e}){const{configurationStatus:i,hasEnabledModels:r,employees:n}=c();if(i==="ready"&&r&&n.length>0)return e;const l=n.length?e:s.jsx(d,{employees:t,models:o,service:u,children:e});return s.jsxs("div",{className:"space-y-6",children:[s.jsxs(m,{children:[s.jsx(p,{}),s.jsx(y,{children:"Preview mode"}),s.jsx(v,{children:"Component examples remain available. Sending messages requires an enabled AI model in the connected NocoBase application."})]}),l]})}export{h as A};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as $,am as I,an as L,P as N,ao as O,ap as H,M as Y,j as X,R as S,o as y}from"./echarts-runtime-
|
|
1
|
+
import{_ as $,am as I,an as L,P as N,ao as O,ap as H,M as Y,j as X,R as S,o as y}from"./echarts-runtime-BTfAtt-4.js";var R=Math.min,j=Math.max;function F(h,t){return isNaN(h)||isNaN(t)}function Z(h,t,l,r,f,i,a,n,u){for(var s,w,c,q,P,e,b=l,p=0;p<r;p++){var o=t[b*2],v=t[b*2+1];if(b>=f||b<0)break;if(F(o,v)){if(u){b+=i;continue}break}if(b===l)h[i>0?"moveTo":"lineTo"](o,v),c=o,q=v;else{var T=o-s,d=v-w;if(T*T+d*d<.5){b+=i;continue}if(a>0){for(var A=b+i,k=t[A*2],M=t[A*2+1];k===o&&M===v&&p<r;)p++,A+=i,b+=i,k=t[A*2],M=t[A*2+1],o=t[b*2],v=t[b*2+1],T=o-s,d=v-w;var W=p+1;if(u)for(;F(k,M)&&W<r;)W++,A+=i,k=t[A*2],M=t[A*2+1];var G=.5,z=0,B=0,m=void 0,g=void 0;if(W>=r||F(k,M))P=o,e=v;else{z=k-s,B=M-w;var J=o-s,Q=k-o,U=v-w,V=M-v,D=void 0,E=void 0;if(n==="x"){D=Math.abs(J),E=Math.abs(Q);var C=z>0?1:-1;P=o-C*D*a,e=v,m=o+C*E*a,g=v}else if(n==="y"){D=Math.abs(U),E=Math.abs(V);var K=B>0?1:-1;P=o,e=v-K*D*a,m=o,g=v+K*E*a}else D=Math.sqrt(J*J+U*U),E=Math.sqrt(Q*Q+V*V),G=E/(E+D),P=o-z*a*(1-G),e=v-B*a*(1-G),m=o+z*a*G,g=v+B*a*G,m=R(m,j(k,o)),g=R(g,j(M,v)),m=j(m,R(k,o)),g=j(g,R(M,v)),z=m-o,B=g-v,P=o-z*D/E,e=v-B*D/E,P=R(P,j(s,o)),e=R(e,j(w,v)),P=j(P,R(s,o)),e=j(e,R(w,v)),z=o-P,B=v-e,m=o+z*E/D,g=v+B*E/D}h.bezierCurveTo(c,q,P,e,o,v),c=m,q=g}else h.lineTo(o,v)}s=o,w=v,b+=i}return p}var _=(function(){function h(){this.smooth=0,this.smoothConstraint=!0}return h})(),ta=(function(h){$(t,h);function t(l){var r=h.call(this,l)||this;return r.type="ec-polyline",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new _},t.prototype.buildPath=function(l,r){var f=r.points,i=0,a=f.length/2;if(r.connectNulls){for(;a>0&&F(f[a*2-2],f[a*2-1]);a--);for(;i<a&&F(f[i*2],f[i*2+1]);i++);}for(;i<a;)i+=Z(l,f,i,a,a,1,r.smooth,r.smoothMonotone,r.connectNulls)+1},t.prototype.getPointOn=function(l,r){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var f=this.path,i=f.data,a=I.CMD,n,u,s=r==="x",w=[],c=0;c<i.length;){var q=i[c++],P=void 0,e=void 0,b=void 0,p=void 0,o=void 0,v=void 0,T=void 0;switch(q){case a.M:n=i[c++],u=i[c++];break;case a.L:if(P=i[c++],e=i[c++],T=s?(l-n)/(P-n):(l-u)/(e-u),T<=1&&T>=0){var d=s?(e-u)*T+u:(P-n)*T+n;return s?[l,d]:[d,l]}n=P,u=e;break;case a.C:P=i[c++],e=i[c++],b=i[c++],p=i[c++],o=i[c++],v=i[c++];var A=s?L(n,P,b,o,l,w):L(u,e,p,v,l,w);if(A>0)for(var k=0;k<A;k++){var M=w[k];if(M<=1&&M>=0){var d=s?O(u,e,p,v,M):O(n,P,b,o,M);return s?[l,d]:[d,l]}}n=o,u=v;break}}},t})(N),x=(function(h){$(t,h);function t(){return h!==null&&h.apply(this,arguments)||this}return t})(_),oa=(function(h){$(t,h);function t(l){var r=h.call(this,l)||this;return r.type="ec-polygon",r}return t.prototype.getDefaultShape=function(){return new x},t.prototype.buildPath=function(l,r){var f=r.points,i=r.stackedOnPoints,a=0,n=f.length/2,u=r.smoothMonotone;if(r.connectNulls){for(;n>0&&F(f[n*2-2],f[n*2-1]);n--);for(;a<n&&F(f[a*2],f[a*2+1]);a++);}for(;a<n;){var s=Z(l,f,a,n,n,1,r.smooth,u,r.connectNulls);Z(l,i,a+s-1,s,n,-1,r.stackedOnSmooth,u,r.connectNulls),a+=s+1,l.closePath()}},t})(N);function aa(h,t,l,r,f){var i=h.getArea(),a=i.x,n=i.y,u=i.width,s=i.height,w=l.get(["lineStyle","width"])||0;a-=w/2,n-=w/2,u+=w,s+=w,u=Math.ceil(u),a!==Math.floor(a)&&(a=Math.floor(a),u++);var c=new S({shape:{x:a,y:n,width:u,height:s}});if(t){var q=h.getBaseAxis(),P=q.isHorizontal(),e=q.inverse;P?(e&&(c.shape.x+=u),c.shape.width=0):(e||(c.shape.y+=s),c.shape.height=0);var b=y(f)?function(p){f(p,c)}:null;X(c,{shape:{width:u,height:s,x:a,y:n}},l,null,r,b)}return c}function ra(h,t,l){var r=h.getArea(),f=H(r.r0,1),i=H(r.r,1),a=new Y({shape:{cx:H(h.cx,1),cy:H(h.cy,1),r0:f,r:i,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}});if(t){var n=h.getBaseAxis().dim==="angle";n?a.shape.endAngle=r.startAngle:a.shape.r=f,X(a,{shape:{endAngle:r.endAngle,r:i}},l)}return a}function va(h,t,l,r,f){if(h){if(h.type==="polar")return ra(h,t,l);if(h.type==="cartesian2d")return aa(h,t,l,r,f)}else return null;return null}export{ta as E,oa as a,ra as b,aa as c,va as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{H as t,N as c,as as m,at as o}from"./echarts-runtime-BTfAtt-4.js";function S(e,a,n){a=t(a)&&{coordDimensions:a}||c({encodeDefine:e.getEncode()},a);var r=e.getSource(),s=m(r,a).dimensions,i=new o(s,e);return i.initData(r,n),i}export{S as c};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{D as Q,aV as W,G as C,R as le,c8 as d,cd as mt,ce as wt,al as bt,aw as Ke,aK as $e,cf as At,bx as Et,ai as Ct,cg as Tt,L as Ft,k as Gt,y as x,m as O,ch as Pt,ci as Ae,cj as Qe,b6 as Lt,b5 as et,be as tt,a_ as m,aU as Mt,W as ee,ck as Rt,cl as Dt,cm as kt,_ as M,ab as Wt,a1 as at,c6 as rt,N as F,c4 as Vt,aj as Bt,bN as ve,a4 as re,aB as nt,cn as Ot,co as zt,aH as Yt,cp as it,aX as Ee,o as Ut,bQ as de,cq as Ht,aC as ge,x as Xt,cr as Jt,bc as ue,aT as ot,aP as jt,bB as It,r as Nt,u as Zt,l as fe,cs as qt,t as Kt,ct as $t,cu as Qt,bU as ye,a$ as J,a9 as ea,f as xe,cv as ta,cw as aa,bh as st,bV as ra,cx as na,cy as ia,cz as oa,aL as lt,cA as sa,ap as la,bd as ua,a5 as fa,bO as pa,cB as ca,bR as ha,cC as va,cD as da,cE as ga,cF as ya,cG as xa,cH as ut,cI as j,cJ as Sa,a3 as Se,P as _a,cK as ma,H as wa}from"./echarts-runtime-Ce_z2eX_.js";import{V as ft,R as ba,u as Aa,a as Ea,b as Ca}from"./LineDraw-BBB5hwuJ.js";function pt(r){if(Q(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var ne,q={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Ce=W(q),K={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Te=W(K),Ta=(function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=pt(e);this._defsUsePending=[];var n=new C;this._root=n;var i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||t.width),l=parseFloat(a.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),b(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;Pa(this._defs,this._defsUsePending),this._defsUsePending=[];var f,p;if(o){var h=te(o);h.length>=4&&(f={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(f&&s!=null&&l!=null&&(p=ht(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var c=n;n=new C,n.add(c),c.scaleX=c.scaleY=p.scale,c.x=p.x,c.y=p.y}return!t.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new le({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:p,named:i}},r.prototype._parseNode=function(e,t,a,n,i,o){var s=e.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var f=ne[s];if(f&&d(ne,s)){l=f.call(this,e,t);var p=e.getAttribute("name");if(p){var h={name:p,namedFrom:null,svgNodeTagLower:s,el:l};a.push(h),s==="g"&&(u=h)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var c=Fe[s];if(c&&d(Fe,s)){var v=c.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=v)}}if(l&&l.isGroup)for(var y=e.firstChild;y;)y.nodeType===1?this._parseNode(y,l,a,u,i,o):y.nodeType===3&&o&&this._parseText(y,l),y=y.nextSibling},r.prototype._parseText=function(e,t){var a=new mt({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});A(t,a),b(e,a,this._defsUsePending,!1,!1),Fa(a,t);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=(function(){ne={g:function(e,t){var a=new C;return A(t,a),b(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new le;return A(t,a),b(e,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(e,t){var a=new Ct;return A(t,a),b(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),a.silent=!0,a},line:function(e,t){var a=new Et;return A(t,a),b(e,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(e,t){var a=new At;return A(t,a),b(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(e,t){var a=e.getAttribute("points"),n;a&&(n=Le(a));var i=new $e({shape:{points:n||[]},silent:!0});return A(t,i),b(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var a=e.getAttribute("points"),n;a&&(n=Le(a));var i=new Ke({shape:{points:n||[]},silent:!0});return A(t,i),b(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var a=new bt;return A(t,a),b(e,a,this._defsUsePending,!1,!1),a.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new C;return A(t,s),b(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute("x"),n=e.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new C;return A(t,s),b(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var a=e.getAttribute("d")||"",n=wt(a);return A(t,n),b(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),r})(),Fe={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new Ft(e,t,a,n);return Ge(r,i),Pe(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new Tt(e,t,a);return Ge(r,n),Pe(r,n),n}};function Ge(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function Pe(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var a=t.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};ct(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function A(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Gt(e.__inheritedStyle,r.__inheritedStyle))}function Le(r){for(var e=te(r),t=[],a=0;a<e.length;a+=2){var n=parseFloat(e[a]),i=parseFloat(e[a+1]);t.push([n,i])}return t}function b(r,e,t,a,n){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(Ra(r,e),ct(r,o,s),a||Da(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=Me(i,"fill",o.fill,t)),o.stroke!=null&&(i.style.stroke=Me(i,"stroke",o.stroke,t)),x(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),x(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),n&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=O(te(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function Fa(r,e){var t=e.__selfStyle;if(t){var a=t.textBaseline,n=a;!a||a==="auto"||a==="baseline"?n="alphabetic":a==="before-edge"||a==="text-before-edge"?n="top":a==="after-edge"||a==="text-after-edge"?n="bottom":(a==="central"||a==="mathematical")&&(n="middle"),r.style.textBaseline=n}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var Ga=/^url\(\s*#(.*?)\)/;function Me(r,e,t,a){var n=t&&t.match(Ga);if(n){var i=Pt(n[1]);a.push([r,e,i]);return}return t==="none"&&(t=null),t}function Pa(r,e){for(var t=0;t<e.length;t++){var a=e[t];a[0].style[a[1]]=r[a[2]]}}var La=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function te(r){return r.match(La)||[]}var Ma=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,ie=Math.PI/180;function Ra(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var a=[],n=null;t.replace(Ma,function(p,h,c){return a.push(h,c),""});for(var i=a.length-1;i>0;i-=2){var o=a[i],s=a[i-1],l=te(o);switch(n=n||tt(),s){case"translate":et(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Lt(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Qe(n,n,-parseFloat(l[0])*ie,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*ie);Ae(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*ie);Ae(n,[1,f,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}e.setLocalTransform(n)}}var Re=/([^\s:;]+)\s*:\s*([^:;]+)/g;function ct(r,e,t){var a=r.getAttribute("style");if(a){Re.lastIndex=0;for(var n;(n=Re.exec(a))!=null;){var i=n[1],o=d(q,i)?q[i]:null;o&&(e[o]=n[2]);var s=d(K,i)?K[i]:null;s&&(t[s]=n[2])}}}function Da(r,e,t){for(var a=0;a<Ce.length;a++){var n=Ce[a],i=r.getAttribute(n);i!=null&&(e[q[n]]=i)}for(var a=0;a<Te.length;a++){var n=Te[a],i=r.getAttribute(n);i!=null&&(t[K[n]]=i)}}function ht(r,e){var t=e.width/r.width,a=e.height/r.height,n=Math.min(t,a);return{scale:n,x:-(r.x+r.width/2)*n+(e.x+e.width/2),y:-(r.y+r.height/2)*n+(e.y+e.height/2)}}function ka(r,e){var t=new Ta;return t.parse(r,e)}var Wa=m(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Va=(function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=m(),this._freedGraphics=[],this._mapName=e,this._parsedXML=pt(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=Oa(e.named),a=t.regions,n=t.regionsMap;this._regions=a,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,a;try{t=e&&ka(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=t.root,Mt(a!=null)}catch(y){throw new Error(`Invalid svg format
|
|
1
|
+
import{D as Q,aV as W,G as C,R as le,c8 as d,cd as mt,ce as wt,al as bt,aw as Ke,aK as $e,cf as At,bx as Et,ai as Ct,cg as Tt,L as Ft,k as Gt,y as x,m as O,ch as Pt,ci as Ae,cj as Qe,b6 as Lt,b5 as et,be as tt,a_ as m,aU as Mt,W as ee,ck as Rt,cl as Dt,cm as kt,_ as M,ab as Wt,a1 as at,c6 as rt,N as F,c4 as Vt,aj as Bt,bN as ve,a4 as re,aB as nt,cn as Ot,co as zt,aH as Yt,cp as it,aX as Ee,o as Ut,bQ as de,cq as Ht,aC as ge,x as Xt,cr as Jt,bc as ue,aT as ot,aP as jt,bB as It,r as Nt,u as Zt,l as fe,cs as qt,t as Kt,ct as $t,cu as Qt,bU as ye,a$ as J,a9 as ea,f as xe,cv as ta,cw as aa,bh as st,bV as ra,cx as na,cy as ia,cz as oa,aL as lt,cA as sa,ap as la,bd as ua,a5 as fa,bO as pa,cB as ca,bR as ha,cC as va,cD as da,cE as ga,cF as ya,cG as xa,cH as ut,cI as j,cJ as Sa,a3 as Se,P as _a,cK as ma,H as wa}from"./echarts-runtime-BTfAtt-4.js";import{V as ft,R as ba,u as Aa,a as Ea,b as Ca}from"./LineDraw-B3HsIvjF.js";function pt(r){if(Q(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var ne,q={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Ce=W(q),K={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Te=W(K),Ta=(function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=pt(e);this._defsUsePending=[];var n=new C;this._root=n;var i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||t.width),l=parseFloat(a.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),b(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;Pa(this._defs,this._defsUsePending),this._defsUsePending=[];var f,p;if(o){var h=te(o);h.length>=4&&(f={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(f&&s!=null&&l!=null&&(p=ht(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var c=n;n=new C,n.add(c),c.scaleX=c.scaleY=p.scale,c.x=p.x,c.y=p.y}return!t.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new le({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:p,named:i}},r.prototype._parseNode=function(e,t,a,n,i,o){var s=e.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var f=ne[s];if(f&&d(ne,s)){l=f.call(this,e,t);var p=e.getAttribute("name");if(p){var h={name:p,namedFrom:null,svgNodeTagLower:s,el:l};a.push(h),s==="g"&&(u=h)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var c=Fe[s];if(c&&d(Fe,s)){var v=c.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=v)}}if(l&&l.isGroup)for(var y=e.firstChild;y;)y.nodeType===1?this._parseNode(y,l,a,u,i,o):y.nodeType===3&&o&&this._parseText(y,l),y=y.nextSibling},r.prototype._parseText=function(e,t){var a=new mt({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});A(t,a),b(e,a,this._defsUsePending,!1,!1),Fa(a,t);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=(function(){ne={g:function(e,t){var a=new C;return A(t,a),b(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new le;return A(t,a),b(e,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(e,t){var a=new Ct;return A(t,a),b(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),a.silent=!0,a},line:function(e,t){var a=new Et;return A(t,a),b(e,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(e,t){var a=new At;return A(t,a),b(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(e,t){var a=e.getAttribute("points"),n;a&&(n=Le(a));var i=new $e({shape:{points:n||[]},silent:!0});return A(t,i),b(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var a=e.getAttribute("points"),n;a&&(n=Le(a));var i=new Ke({shape:{points:n||[]},silent:!0});return A(t,i),b(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var a=new bt;return A(t,a),b(e,a,this._defsUsePending,!1,!1),a.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new C;return A(t,s),b(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute("x"),n=e.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new C;return A(t,s),b(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var a=e.getAttribute("d")||"",n=wt(a);return A(t,n),b(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),r})(),Fe={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new Ft(e,t,a,n);return Ge(r,i),Pe(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new Tt(e,t,a);return Ge(r,n),Pe(r,n),n}};function Ge(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function Pe(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var a=t.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};ct(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function A(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Gt(e.__inheritedStyle,r.__inheritedStyle))}function Le(r){for(var e=te(r),t=[],a=0;a<e.length;a+=2){var n=parseFloat(e[a]),i=parseFloat(e[a+1]);t.push([n,i])}return t}function b(r,e,t,a,n){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(Ra(r,e),ct(r,o,s),a||Da(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=Me(i,"fill",o.fill,t)),o.stroke!=null&&(i.style.stroke=Me(i,"stroke",o.stroke,t)),x(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),x(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),n&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=O(te(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function Fa(r,e){var t=e.__selfStyle;if(t){var a=t.textBaseline,n=a;!a||a==="auto"||a==="baseline"?n="alphabetic":a==="before-edge"||a==="text-before-edge"?n="top":a==="after-edge"||a==="text-after-edge"?n="bottom":(a==="central"||a==="mathematical")&&(n="middle"),r.style.textBaseline=n}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var Ga=/^url\(\s*#(.*?)\)/;function Me(r,e,t,a){var n=t&&t.match(Ga);if(n){var i=Pt(n[1]);a.push([r,e,i]);return}return t==="none"&&(t=null),t}function Pa(r,e){for(var t=0;t<e.length;t++){var a=e[t];a[0].style[a[1]]=r[a[2]]}}var La=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function te(r){return r.match(La)||[]}var Ma=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,ie=Math.PI/180;function Ra(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var a=[],n=null;t.replace(Ma,function(p,h,c){return a.push(h,c),""});for(var i=a.length-1;i>0;i-=2){var o=a[i],s=a[i-1],l=te(o);switch(n=n||tt(),s){case"translate":et(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Lt(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Qe(n,n,-parseFloat(l[0])*ie,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*ie);Ae(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*ie);Ae(n,[1,f,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}e.setLocalTransform(n)}}var Re=/([^\s:;]+)\s*:\s*([^:;]+)/g;function ct(r,e,t){var a=r.getAttribute("style");if(a){Re.lastIndex=0;for(var n;(n=Re.exec(a))!=null;){var i=n[1],o=d(q,i)?q[i]:null;o&&(e[o]=n[2]);var s=d(K,i)?K[i]:null;s&&(t[s]=n[2])}}}function Da(r,e,t){for(var a=0;a<Ce.length;a++){var n=Ce[a],i=r.getAttribute(n);i!=null&&(e[q[n]]=i)}for(var a=0;a<Te.length;a++){var n=Te[a],i=r.getAttribute(n);i!=null&&(t[K[n]]=i)}}function ht(r,e){var t=e.width/r.width,a=e.height/r.height,n=Math.min(t,a);return{scale:n,x:-(r.x+r.width/2)*n+(e.x+e.width/2),y:-(r.y+r.height/2)*n+(e.y+e.height/2)}}function ka(r,e){var t=new Ta;return t.parse(r,e)}var Wa=m(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Va=(function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=m(),this._freedGraphics=[],this._mapName=e,this._parsedXML=pt(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=Oa(e.named),a=t.regions,n=t.regionsMap;this._regions=a,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,a;try{t=e&&ka(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=t.root,Mt(a!=null)}catch(y){throw new Error(`Invalid svg format
|
|
2
2
|
`+y.message)}var n=new C;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,p=void 0,h=void 0;if(i!=null?(u=0,p=i):s&&(u=s.x,p=s.width),o!=null?(f=0,h=o):s&&(f=s.y,h=s.height),u==null||f==null){var c=a.getBoundingRect();u==null&&(u=c.x,p=c.width),f==null&&(f=c.y,h=c.height)}l=this._boundingRect=new ee(u,f,p,h)}if(s){var v=ht(s,l);a.scaleX=a.scaleY=v.scale,a.x=v.x,a.y=v.y}n.setClipPath(new le({shape:l.plain()}));var g=[];return x(t.named,function(y){Wa.get(y.svgNodeTagLower)!=null&&(g.push(y),Ba(y.el))}),{root:n,boundingRect:l,named:g}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,a),a)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);a&&(t.removeKey(e),this._freedGraphics.push(a))},r})();function Ba(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function Oa(r){var e=[],t=m();return x(r,function(a){if(a.namedFrom==null){var n=new Rt(a.name,a.el);e.push(n),t.set(a.name,n)}}),{regions:e,regionsMap:t}}var pe=[126,25],De="南海诸岛",k=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var D=0;D<k.length;D++)for(var V=0;V<k[D].length;V++)k[D][V][0]/=10.5,k[D][V][1]/=-10.5/.75,k[D][V][0]+=pe[0],k[D][V][1]+=pe[1];function za(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===De)return;e.push(new Dt(De,O(k,function(a){return{type:"polygon",exterior:a}}),pe))}}var Ya={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function Ua(r,e){if(r==="china"){var t=Ya[e.name];if(t){var a=e.getCenter();a[0]+=t[0]/10.5,a[1]+=-t[1]/(10.5/.75),e.setCenter(a)}}}var Ha=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Xa(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:Ha[0]})}var Ja="name",ja=(function(){function r(e,t,a){this.type="geoJSON",this._parsedMap=m(),this._mapName=e,this._specialAreas=a,this._geoJSON=Na(t)}return r.prototype.load=function(e,t){t=t||Ja;var a=this._parsedMap.get(t);if(!a){var n=this._parseToRegions(t);a=this._parsedMap.set(t,{regions:n,boundingRect:Ia(n)})}var i=m(),o=[];return x(a.regions,function(s){var l=s.name;e&&d(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new ee(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var t=this._mapName,a=this._geoJSON,n;try{n=a?kt(a,e):[]}catch(i){throw new Error(`Invalid geoJson format
|
|
3
3
|
`+i.message)}return za(t,n),x(n,function(i){var o=i.name;Ua(t,i),Xa(t,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r})();function Ia(r){for(var e,t=0;t<r.length;t++){var a=r[t].getBoundingRect();e=e||a.clone(),e.union(a)}return e}function Na(r){return Q(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var X=m();const L={registerMap:function(r,e,t){if(e.svg){var a=new Va(r,e.svg);X.set(r,a)}else{var n=e.geoJson||e.geoJSON;n&&!e.features?t=e.specialAreas:n=e;var a=new ja(r,n,t);X.set(r,a)}},getGeoResource:function(r){return X.get(r)},getMapForUser:function(r){var e=X.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var a=X.get(r);if(a)return a.load(e,t)}};var Za={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},vt=["lng","lat"],ce=(function(r){M(e,r);function e(t,a,n){var i=r.call(this,t)||this;i.dimensions=vt,i.type="geo",i._nameCoordMap=m(),i.map=a;var o=n.projection,s=L.load(a,n.nameMap,n.nameProperty),l=L.getGeoResource(a);i.resourceType=l?l.type:null;var u=i.regions=s.regions,f=Za[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var p;if(o)for(var h=0;h<u.length;h++){var c=u[h].getBoundingRect(o);p=p||c.clone(),p.union(c)}else p=s.boundingRect;return i.setBoundingRect(p.x,p.y,p.width,p.height),i.aspectScale=o?1:Wt(n.aspectScale,f.aspectScale),i._invertLongitute=o?!1:f.invertLongitute,i}return e.prototype._transformTo=function(t,a,n,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new ee(t,a,n,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var a=this.regions,n=0;n<a.length;n++){var i=a[n];if(i.type==="geoJSON"&&i.contain(t))return a[n]}},e.prototype.addGeoCoord=function(t,a){this._nameCoordMap.set(t,a)},e.prototype.getGeoCoord=function(t){var a=this._regionsMap.get(t);return this._nameCoordMap.get(t)||a&&a.getCenter()},e.prototype.dataToPoint=function(t,a,n){if(Q(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,a,n)}},e.prototype.pointToData=function(t){var a=this.projection;return a&&(t=a.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return r.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,a,n){return r.prototype.dataToPoint.call(this,t,a,n)},e.prototype.convertToPixel=function(t,a,n){var i=ke(a);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,a,n){var i=ke(a);return i===this?i.pointToData(n):null},e})(ft);at(ce,ft);function ke(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",rt).models[0]||{}).coordinateSystem:null}function We(r,e){var t=r.get("boundingCoords");if(t!=null){var a=t[0],n=t[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])){var i=this.projection;if(i){var o=a[0],s=a[1],l=n[0],u=n[1];a=[1/0,1/0],n=[-1/0,-1/0];var f=function(I,U,P,R){for(var E=P-I,H=R-U,ae=0;ae<=100;ae++){var we=ae/100,be=i.project([I+E*we,U+H*we]);Ot(a,a,be),zt(n,n,be)}};f(o,s,l,s),f(l,s,l,u),f(l,u,o,u),f(o,u,l,s)}this.setBoundingRect(a[0],a[1],n[0]-a[0],n[1]-a[1])}}var p=this.getBoundingRect(),h=r.get("layoutCenter"),c=r.get("layoutSize"),v=e.getWidth(),g=e.getHeight(),y=p.width/p.height*this.aspectScale,S=!1,w,G;h&&c&&(w=[re(h[0],v),re(h[1],g)],G=re(c,Math.min(v,g)),!isNaN(w[0])&&!isNaN(w[1])&&!isNaN(G)&&(S=!0));var _;if(S)_={},y>1?(_.width=G,_.height=G/y):(_.height=G,_.width=G*y),_.y=w[1]-_.height/2,_.x=w[0]-_.width/2;else{var Y=r.getBoxLayoutParams();Y.aspect=y,_=nt(Y,{width:v,height:g})}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function qa(r,e){x(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}var Ka=(function(){function r(){this.dimensions=vt}return r.prototype.create=function(e,t){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new ce(l+s,l,F({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=We,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=a[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),x(i,function(o,s){var l=O(o,function(f){return f.get("nameMap")}),u=new ce(s,s,F({nameMap:Vt(l)},n(o[0])));u.zoomLimit=Bt.apply(null,O(o,function(f){return f.get("scaleLimit")})),a.push(u),u.resize=We,u.resize(o[0],t),x(o,function(f){f.coordinateSystem=u,qa(u,f)})}),a},r.prototype.getFilledRegions=function(e,t,a,n){for(var i=(e||[]).slice(),o=m(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=L.load(t,a,n);return x(l.regions,function(u){var f=u.name,p=o.get(f),h=u.properties&&u.properties.echartsStyle;p||(p={name:f},i.push(p)),h&&ve(p,h)}),i},r})(),dt=new Ka,$a=(function(r){M(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,n){var i=L.getGeoResource(t.map);if(i&&i.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,n),Yt(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,a=this.option;a.regions=dt.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var n={};this._optionModelMap=it(a.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Ee(o,t,t.ecModel)),o.selected&&(n[s]=!0)),i},m()),a.selectedMap||(a.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Ee(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,a){var n=this.getRegionModel(t),i=a==="normal"?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:t};if(Ut(i))return o.status=a,i(o);if(Q(i))return i.replace("{a}",t??"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var a=this.option,n=a.selectedMode;if(n){n!=="multiple"&&(a.selectedMap=null);var i=a.selectedMap||(a.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var a=this.option.selectedMap;a&&(a[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var a=this.option.selectedMap;return!!(a&&a[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e})(de),_e=["rect","circle","line","ellipse","polygon","polyline","path"],Qa=m(_e),er=m(_e.concat(["g"])),tr=m(_e.concat(["g"])),gt=ge();function N(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function Ve(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var ar=(function(){function r(e){var t=new C;this.uid=Ht("ec_map_draw"),this._controller=new ba(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new C),t.add(this._svgGroup=new C)}return r.prototype.draw=function(e,t,a,n,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(S){!s&&S.getHostGeoModel()===e&&(s=S.getData())});var l=e.coordinateSystem,u=this._regionsGroup,f=this.group,p=l.getTransformInfo(),h=p.raw,c=p.roam,v=!u.childAt(0)||i;v?(f.x=c.x,f.y=c.y,f.scaleX=c.scaleX,f.scaleY=c.scaleY,f.dirty()):Xt(f,c,e);var g=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,y={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(y):l.resourceType==="geoSVG"&&this._buildSVG(y),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=m(),a=m(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(c,v){return v&&(c=v(c)),c&&[c[0]*i.scaleX+i.x,c[1]*i.scaleY+i.y]}function p(c){for(var v=[],g=!u&&l&&l.project,y=0;y<c.length;++y){var S=f(c[y],g);S&&v.push(S)}return v}function h(c){return{shape:{points:p(c)}}}n.removeAll(),x(e.geo.regions,function(c){var v=c.name,g=t.get(v),y=a.get(v)||{},S=y.dataIdx,w=y.regionModel;if(!g){g=t.set(v,new C),n.add(g),S=s?s.indexOfName(v):null,w=e.isGeo?o.getRegionModel(v):s?s.getItemModel(S):null;var G=w.get("silent",!0);G!=null&&(g.silent=G),a.set(v,{dataIdx:S,regionModel:w})}var _=[],Y=[];x(c.geometries,function(P){if(P.type==="polygon"){var R=[P.exterior].concat(P.interiors||[]);u&&(R=He(R,u)),x(R,function(H){_.push(new $e(h(H)))})}else{var E=P.points;u&&(E=He(E,u,!0)),x(E,function(H){Y.push(new Ke(h(H)))})}});var I=f(c.getCenter(),l&&l.project);function U(P,R){if(P.length){var E=new Jt({culling:!0,segmentIgnoreThreshold:1,shape:{paths:P}});g.add(E),Be(e,E,S,w),Oe(e,E,v,w,o,S,I),R&&(Ve(E),x(E.states,Ve))}}U(_),U(Y,!0)}),t.each(function(c,v){var g=a.get(v),y=g.dataIdx,S=g.regionModel;ze(e,c,v,S,o,y),Ye(e,c,v,S,o),Ue(e,c,v,S,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,a=e.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var n=this._svgDispatcherMap=m(),i=!1;x(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,f=o.svgNodeTagLower,p=o.el,h=u?u.indexOfName(s):null,c=l.getRegionModel(s);Qa.get(f)!=null&&p instanceof ue&&Be(e,p,h,c),p instanceof ue&&(p.culling=!0);var v=c.get("silent",!0);if(v!=null&&(p.silent=v),p.z2EmphasisLift=0,!o.namedFrom&&(tr.get(f)!=null&&Oe(e,p,s,c,l,h,null),ze(e,p,s,c,l,h),Ye(e,p,s,c,l),er.get(f)!=null)){var g=Ue(e,p,s,c,l);g==="self"&&(i=!0);var y=n.get(s)||n.set(s,[]);y.push(p)}},this),this._enableBlurEntireSVG(i,e)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var a=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),n=a.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){ot(i);var o=i.ensureState("blur").style||{};o.opacity==null&&n!=null&&(o.opacity=n),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var a=t.coordinateSystem;if(a.resourceType==="geoJSON"){var n=this._regionsGroupByName;if(n){var i=n.get(e);return i?[i]:[]}}else if(a.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=L.getGeoResource(e);if(t&&t.type==="geoSVG"){var a=t.useGraphic(this.uid);this._svgGroup.add(a.root),this._svgGraphicRecord=a,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=L.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(e,t,a){var n=e.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=n.getZoom(),i.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,Aa(o,u.dx,u.dy),a.dispatchAction(F(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,Ea(o,u.scale,u.originX,u.originY),a.dispatchAction(F(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,f,p){return n.containPoint([f,p])&&!jt(u,a,e)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=gt(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,a,n){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r})();function Be(r,e,t,a){var n=a.getModel("itemStyle"),i=a.getModel(["emphasis","itemStyle"]),o=a.getModel(["blur","itemStyle"]),s=a.getModel(["select","itemStyle"]),l=N(n),u=N(i),f=N(s),p=N(o),h=r.data;if(h){var c=h.getItemVisual(t,"style"),v=h.getItemVisual(t,"decal");r.isVisualEncodedByVisualMap&&c.fill&&(l.fill=c.fill),v&&(l.decal=It(v,r.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=f,e.ensureState("blur").style=p,ot(e)}function Oe(r,e,t,a,n,i,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),f=s&&s.getItemLayout(i);if(l||u||f&&f.showLabel){var p=l?t:i,h=void 0;(!s||i>=0)&&(h=n);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Nt(e,Zt(a),{labelFetcher:h,labelDataIndex:p,defaultText:t},c);var v=e.getTextContent();if(v&&(gt(v).ignore=v.ignore,e.textConfig&&o)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function ze(r,e,t,a,n,i){r.data?r.data.setItemGraphicEl(i,e):fe(e).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:t,region:a&&a.option||{}}}function Ye(r,e,t,a,n){r.data||qt({el:e,componentModel:n,itemName:t,itemTooltipOption:a.get("tooltip")})}function Ue(r,e,t,a,n){e.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Kt(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&$t(e,n,t),o}function He(r,e,t){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),x(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),a}var rr=(function(r){M(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,a){this._api=a},e.prototype.render=function(t,a,n,i){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new ar(n));var o=this._mapDraw;o.draw(t,a,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,a,n)},e.prototype._handleRegionClick=function(t){var a;Qt(t.target,function(n){return(a=fe(n).eventData)!=null},!0),a&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:a.name})},e.prototype.updateSelectStatus=function(t,a,n){var i=this;this._mapDraw.group.traverse(function(o){var s=fe(o).eventData;if(s)return i._model.isSelected(s.name)?n.enterSelect(o):n.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e})(ye);function nr(r,e,t){L.registerMap(r,e,t)}function Ur(r){r.registerCoordinateSystem("geo",dt),r.registerComponentModel($a),r.registerComponentView(rr),r.registerImpl("registerMap",nr),r.registerImpl("getMap",function(t){return L.getMapForUser(t)});function e(t,a){a.update="geo:updateSelectStatus",r.registerAction(a,function(n,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:n},function(l){l[t](n.name);var u=l.coordinateSystem;x(u.regions,function(p){o[p.name]=l.isSelected(p.name)||!1});var f=[];x(o,function(p,h){o[h]&&f.push(h)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:n.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,a,n){var i=t.componentType||"series";a.eachComponent({mainType:i,query:t},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=Ca(s,t,o.get("scaleLimit"),n);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&x(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function ir(r){or(r),sr(r)}function or(r){if(!r.parallel){var e=!1;x(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function sr(r){var e=J(r.parallelAxis);x(e,function(t){if(ea(t)){var a=t.parallelIndex||0,n=J(r.parallel)[a];n&&n.parallelAxisDefault&&ve(t,n.parallelAxisDefault,!1)}})}var lr=5,ur=(function(r){M(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this._model=t,this._api=n,this._handlers||(this._handlers={},x(fr,function(i,o){n.getZr().on(o,this._handlers[o]=xe(i,this))},this)),ta(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,a){aa(this,"_throttledDispatchExpand"),x(this._handlers,function(n,i){a.getZr().off(i,n)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(F({type:"parallelAxisExpand"},t))},e.type="parallel",e})(ye),fr={mousedown:function(r){oe(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(oe(this,"click")&&e){var t=[r.offsetX,r.offsetY],a=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(a>lr)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!oe(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function oe(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var pr=(function(r){M(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var a=this.option;t&&ve(a,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var n=t.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){x(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){t.hasOwnProperty(a)&&(this.option[a]=t[a])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],a=this.parallelAxisIndex=[],n=st(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);x(n,function(i){t.push("dim"+i.get("dim")),a.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e})(de),cr=(function(r){M(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e})(ra),se=x,yt=Math.min,xt=Math.max,Xe=Math.floor,hr=Math.ceil,Je=la,vr=Math.PI,dr=(function(){function r(e,t,a){this.type="parallel",this._axesMap=m(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var n=e.dimensions,i=e.parallelAxisIndex;se(n,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new cr(o,na(u),[0,0],u.get("type"),l)),p=f.type==="category";f.onBand=p&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,n=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=a&&o<=a+t.axisLength&&s>=n&&s<=n+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(a){if(e.contains(a,t)){var n=a.getData();se(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),ia(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=nt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,a=["x","y"],n=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[n[o]],l=[0,s],u=this.dimensions.length,f=Z(e.get("axisExpandWidth"),l),p=Z(e.get("axisExpandCount")||0,[0,u]),h=e.get("axisExpandable")&&u>3&&u>p&&p>1&&f>0&&s>0,c=e.get("axisExpandWindow"),v;if(c)v=Z(c[1]-c[0],l),c[1]=c[0]+v;else{v=Z(f*(p-1),l);var g=e.get("axisExpandCenter")||Xe(u/2);c=[f*g-v/2],c[1]=c[0]+v}var y=(s-v)/(u-p);y<3&&(y=0);var S=[Xe(Je(c[0]/f,1))+1,hr(Je(c[1]/f,1))-1],w=y/f*c[0];return{layout:i,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[n[1-o]],axisExpandable:h,axisExpandWidth:f,axisCollapseWidth:y,axisExpandWindow:c,axisCount:u,winInnerIndices:S,axisExpandWindow0Pos:w}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;t.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),se(a,function(o,s){var l=(n.axisExpandable?yr:gr)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},f={horizontal:vr/2,vertical:0},p=[u[i].x+e.x,u[i].y+e.y],h=f[i],c=tt();Qe(c,c,h),et(c,c,p),this._axesLayout[o]={position:p,rotation:h,transform:c,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,a,n){a==null&&(a=0),n==null&&(n=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];x(o,function(y){s.push(e.mapDimension(y)),l.push(i.get(y).model)});for(var u=this.hasAxisBrushed(),f=a;f<n;f++){var p=void 0;if(!u)p="normal";else{p="active";for(var h=e.getValues(s,f),c=0,v=o.length;c<v;c++){var g=l[c].getActiveState(h[c]);if(g==="inactive"){p="inactive";break}}}t(p,f)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,a=!1,n=0,i=e.length;n<i;n++)t.get(e[n]).model.getActiveState()!=="normal"&&(a=!0);return a},r.prototype.axisCoordToPoint=function(e,t){var a=this._axesLayout[t];return oa([e,0],a.transform)},r.prototype.getAxisLayout=function(e){return lt(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),a=t.pixelDimIndex,n=t.axisExpandWindow.slice(),i=n[1]-n[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:n};var s=e[a]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",f=t.axisCollapseWidth,p=this._model.get("axisExpandSlideTriggerArea"),h=p[0]!=null;if(f)h&&f&&s<i*p[0]?(u="jump",l=s-i*p[2]):h&&f&&s>i*(1-p[0])?(u="jump",l=s-i*(1-p[2])):(l=s-i*p[1])>=0&&(l=s-i*(1-p[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?sa(l,n,o,"all"):u="none";else{var c=n[1]-n[0],v=o[1]*s/c;n=[xt(0,v-c/2)],n[1]=yt(o[1],n[0]+c),n[0]=n[1]-c}return{axisExpandWindow:n,behavior:u}},r})();function Z(r,e){return yt(xt(r,e[0]),e[1])}function gr(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function yr(r,e){var t=e.layoutLength,a=e.axisExpandWidth,n=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,f;return r<o[0]?(s=r*i,f=i):r<=o[1]?(s=e.axisExpandWindow0Pos+r*a-e.axisExpandWindow[0],l=a,u=!0):(s=t-(n-1-r)*i,f=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}function xr(r,e){var t=[];return r.eachComponent("parallel",function(a,n){var i=new dr(a,r,e);i.name="parallel_"+n,i.resize(a,e),a.coordinateSystem=i,i.model=a,t.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="parallel"){var n=a.getReferringComponents("parallel",rt).models[0];a.coordinateSystem=n.coordinateSystem}}),t}var Sr={create:xr},he=(function(r){M(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return ua([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var a=this.activeIntervals=lt(t);if(a)for(var n=a.length-1;n>=0;n--)fa(a[n])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=a.length;i<o;i++)if(a[i][0]<=t&&t<=a[i][1])return"active";return"inactive"},e})(de);at(he,pa);var _r=["axisLine","axisTickLabel","axisName"],mr=(function(r){M(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){r.prototype.init.apply(this,arguments),(this._brushController=new ca(a.getZr())).on("brush",xe(this._onBrush,this))},e.prototype.render=function(t,a,n,i){if(!wr(t,a,i)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new C,this.group.add(this._axisGroup),!!t.get("show")){var s=Ar(t,a),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,p=t.axis.dim,h=l.getAxisLayout(p),c=F({strokeContainThreshold:f},h),v=new ha(t,c);x(_r,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(c,u,t,s,f,n),va(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),p=ee.create({x:l[0],y:-o/2,width:u,height:o});p.x-=f,p.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:ya(p),isTargetByCursor:ga(p,s,i),getLinearBrushOtherExtent:da(p,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(br(n))},e.prototype._onBrush=function(t){var a=t.areas,n=this.axisModel,i=n.axis,o=O(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e})(ye);function wr(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function br(r){var e=r.axis;return O(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Ar(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var Er={type:"axisAreaSelect",event:"axisAreaSelected"};function Cr(r){r.registerAction(Er,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(a){a.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(a){a.setAxisExpand(e)})})}var Tr={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Hr(r){r.registerComponentView(ur),r.registerComponentModel(pr),r.registerCoordinateSystem("parallel",Sr),r.registerPreprocessor(ir),r.registerComponentModel(he),r.registerComponentView(mr),xa(r,"parallel",he,Tr),Cr(r)}function Xr(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||d(r,"text")))}function Jr(r,e,t){var a=r,n,i,o;if(e==="text")o=a;else{o={},d(a,"text")&&(o.text=a.text),d(a,"rich")&&(o.rich=a.rich),d(a,"textFill")&&(o.fill=a.textFill),d(a,"textStroke")&&(o.stroke=a.textStroke),d(a,"fontFamily")&&(o.fontFamily=a.fontFamily),d(a,"fontSize")&&(o.fontSize=a.fontSize),d(a,"fontStyle")&&(o.fontStyle=a.fontStyle),d(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=d(a,"textPosition");t?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),d(a,"textPosition")&&(n.position=a.textPosition),d(a,"textOffset")&&(n.offset=a.textOffset),d(a,"textRotation")&&(n.rotation=a.textRotation),d(a,"textDistance")&&(n.distance=a.textDistance)}return je(o,r),x(o.rich,function(l){je(l,l)}),{textConfig:n,textContent:i}}function je(r,e){e&&(e.font=e.textFont||e.font,d(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),d(e,"textAlign")&&(r.align=e.textAlign),d(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),d(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),d(e,"textWidth")&&(r.width=e.textWidth),d(e,"textHeight")&&(r.height=e.textHeight),d(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),d(e,"textPadding")&&(r.padding=e.textPadding),d(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),d(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),d(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),d(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),d(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),d(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),d(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function jr(r,e,t){var a=r;a.textPosition=a.textPosition||t.position||"inside",t.offset!=null&&(a.textOffset=t.offset),t.rotation!=null&&(a.textRotation=t.rotation),t.distance!=null&&(a.textDistance=t.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||"#000";Ie(a,e);var o=a.textFill==null;return n?o&&(a.textFill=t.insideFill||"#fff",!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||"#000"),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,x(e.rich,function(s){Ie(s,s)}),a}function Ie(r,e){e&&(d(e,"fill")&&(r.textFill=e.fill),d(e,"stroke")&&(r.textStroke=e.fill),d(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),d(e,"font")&&(r.font=e.font),d(e,"fontStyle")&&(r.fontStyle=e.fontStyle),d(e,"fontWeight")&&(r.fontWeight=e.fontWeight),d(e,"fontSize")&&(r.fontSize=e.fontSize),d(e,"fontFamily")&&(r.fontFamily=e.fontFamily),d(e,"align")&&(r.textAlign=e.align),d(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),d(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),d(e,"width")&&(r.textWidth=e.width),d(e,"height")&&(r.textHeight=e.height),d(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),d(e,"padding")&&(r.textPadding=e.padding),d(e,"borderColor")&&(r.textBorderColor=e.borderColor),d(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),d(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),d(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),d(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),d(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),d(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),d(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),d(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),d(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),d(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var St={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Ne=W(St);it(j,function(r,e){return r[e]=1,r},{});j.join(", ");var $=["","style","shape","extra"],z=ge();function me(r,e,t,a,n){var i=r+"Animation",o=ut(r,a,n)||{},s=z(e).userDuring;return o.duration>0&&(o.during=s?xe(Rr,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),F(o,t[i]),o}function Ir(r,e,t,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=t.isAnimationEnabled(),l=z(r),u=e.style;l.userDuring=e.during;var f={},p={};if(kr(r,e,p),qe("shape",e,p),qe("extra",e,p),!i&&s&&(Dr(r,e,f),Ze("shape",r,e,f),Ze("extra",r,e,f),Wr(r,e,u,f)),p.style=u,Gr(r,p,o),Lr(r,e),s)if(i){var h={};x($,function(v){var g=v?e[v]:e;g&&g.enterFrom&&(v&&(h[v]=h[v]||{}),F(v?h[v]:h,g.enterFrom))});var c=me("enter",r,e,t,n);c.duration>0&&r.animateFrom(h,c)}else Pr(r,e,n||0,t,f);Fr(r,e),u?r.dirty():r.markRedraw()}function Fr(r,e){for(var t=z(r).leaveToProps,a=0;a<$.length;a++){var n=$[a],i=n?e[n]:e;i&&i.leaveTo&&(t||(t=z(r).leaveToProps={}),n&&(t[n]=t[n]||{}),F(n?t[n]:t,i.leaveTo))}}function Nr(r,e,t,a){if(r){var n=r.parent,i=z(r).leaveToProps;if(i){var o=me("update",r,e,t,0);o.done=function(){n.remove(r)},r.animateTo(i,o)}else n.remove(r)}}function B(r){return r==="all"}function Gr(r,e,t){var a=e.style;if(!r.isGroup&&a){if(t){r.useStyle({});for(var n=r.animators,i=0;i<n.length;i++){var o=n[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(a)}e&&(e.style=null,e&&r.attr(e),e.style=a)}function Pr(r,e,t,a,n){if(n){var i=me("update",r,e,a,t);i.duration>0&&r.animateFrom(n,i)}}function Lr(r,e){d(e,"silent")&&(r.silent=e.silent),d(e,"ignore")&&(r.ignore=e.ignore),r instanceof ue&&d(e,"invisible")&&(r.invisible=e.invisible),r instanceof _a&&d(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var T={},Mr={setTransform:function(r,e){return T.el[r]=e,this},getTransform:function(r){return T.el[r]},setShape:function(r,e){var t=T.el,a=t.shape||(t.shape={});return a[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=T.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=T.el,a=t.style;return a&&(a[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=T.el.style;if(e)return e[r]},setExtra:function(r,e){var t=T.el.extra||(T.el.extra={});return t[r]=e,this},getExtra:function(r){var e=T.el.extra;if(e)return e[r]}};function Rr(){var r=this,e=r.el;if(e){var t=z(e).userDuring,a=r.userDuring;if(t!==a){r.el=r.userDuring=null;return}T.el=e,a(Mr)}}function Ze(r,e,t,a){var n=t[r];if(n){var i=e[r],o;if(i){var s=t.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),B(l))F(o,i);else for(var u=J(l),f=0;f<u.length;f++){var p=u[f],h=i[p];o[p]=h}else if(B(s)||Se(s,r)>=0){!o&&(o=a[r]={});for(var c=W(i),f=0;f<c.length;f++){var p=c[f],h=i[p];Vr(n[p],h)&&(o[p]=h)}}}}}function qe(r,e,t){var a=e[r];if(a)for(var n=t[r]={},i=W(a),o=0;o<i.length;o++){var s=i[o];n[s]=Sa(a[s])}}function Dr(r,e,t){for(var a=e.transition,n=B(a)?j:J(a||[]),i=0;i<n.length;i++){var o=n[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];t[o]=s}}}function kr(r,e,t){for(var a=0;a<Ne.length;a++){var n=Ne[a],i=St[n],o=e[n];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(var a=0;a<j.length;a++){var s=j[a];e[s]!=null&&(t[s]=e[s])}}function Wr(r,e,t,a){if(t){var n=r.style,i;if(n){var o=t.transition,s=e.transition;if(o&&!B(o)){var l=J(o);!i&&(i=a.style={});for(var u=0;u<l.length;u++){var f=l[u],p=n[f];i[f]=p}}else if(r.getAnimationStyleProps&&(B(s)||B(o)||Se(s,"style")>=0)){var h=r.getAnimationStyleProps(),c=h?h.style:null;if(c){!i&&(i=a.style={});for(var v=W(t),u=0;u<v.length;u++){var f=v[u];if(c[f]){var p=n[f];i[f]=p}}}}}}}function Vr(r,e){return ma(r)?r!==e:r!=null&&isFinite(r)}var _t=ge(),Br=["percent","easing","shape","style","extra"];function Zr(r){r.stopAnimation("keyframe"),r.attr(_t(r))}function Or(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(wa(e)){x(e,function(s){Or(r,s,t)});return}var a=e.keyframes,n=e.duration;if(t&&n==null){var i=ut("enter",t,0);n=i&&i.duration}if(!(!a||!n)){var o=_t(r);x($,function(s){if(!(s&&!r[s])){var l;a.sort(function(u,f){return u.percent-f.percent}),x(a,function(u){var f=r.animators,p=s?u[s]:u;if(p){var h=W(p);if(s||(h=st(h,function(g){return Se(Br,g)<0})),!!h.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var c=0;c<f.length;c++)f[c]!==l&&f[c].targetName===l.targetName&&f[c].stopTracks(h);s&&(o[s]=o[s]||{});var v=s?o[s]:o;x(h,function(g){v[g]=((s?r[s]:r)||{})[g]}),l.whenWithKeys(n*u.percent,p,h,u.easing)}}}),l&&l.delay(e.delay||0).duration(n).start(e.easing)}})}}}export{ar as M,Hr as a,Nr as b,jr as c,Ir as d,Or as e,Xr as f,L as g,Jr as h,Ur as i,B as j,Zr as s,Fr as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as o}from"./index-
|
|
1
|
+
import{j as o}from"./index-CMoFG_fD.js";import{A as t}from"./auth-method-demo-B4sxmO2B.js";import e from"./wecom-sign-in-button-BO8h0tS8.js";import"./use-wecom-sign-in-Di3WFrU1.js";const i={name:"company-wecom",authType:"wecom",title:"Sign in via WeCom",options:{btnTooltip:"Use the account associated with your company directory."}};function c(){return o.jsx(t,{authType:"wecom",methodName:"WeCom",description:"Provide a WeCom sign-in button and support automatic login when the application is opened inside WeCom.",children:o.jsx(e,{authenticator:i,onSignIn:()=>{}})})}export{c as WecomAuthDemoPage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t}from"./index-
|
|
1
|
+
import{j as t}from"./index-CMoFG_fD.js";import{A as n}from"./auth-method-demo-B4sxmO2B.js";import i from"./dingtalk-sign-in-button-K_2ZYQNC.js";import"./use-dingtalk-sign-in-DsX00uPU.js";const o={name:"company-dingtalk",authType:"dingtalk",title:"Sign in via DingTalk"};function m(){return t.jsx(n,{authType:"dingtalk",methodName:"DingTalk",description:"Provide DingTalk OAuth login and support internal micro-app automatic login through DingTalk JSAPI.",children:t.jsx(i,{authenticator:o,onSignIn:()=>{}})})}export{m as DingtalkAuthDemoPage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t}from"./index-
|
|
1
|
+
import{j as t}from"./index-CMoFG_fD.js";import{A as o}from"./auth-method-demo-B4sxmO2B.js";import e from"./ldap-sign-in-form-BoVMVmwm.js";import"./use-authenticator-sign-in-B8OPLh-w.js";const r={name:"company-ldap",authType:"LDAP",title:"Company directory",options:{autoSignup:!0}};function p(){return t.jsx(o,{authType:"LDAP",methodName:"LDAP directory",description:"Use the familiar account and password form while sending credentials through the selected LDAP authenticator.",children:t.jsx(e,{authenticator:r,onSignIn:()=>{}})})}export{p as LdapAuthDemoPage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t}from"./index-
|
|
1
|
+
import{j as t}from"./index-CMoFG_fD.js";import{A as e}from"./auth-method-demo-B4sxmO2B.js";import o from"./cas-sign-in-button-DmkMYnGb.js";const n={name:"company-cas",authType:"CAS",title:"Company CAS"};function s(){return t.jsx(e,{authType:"CAS",methodName:"Central Authentication Service",description:"Redirect users to a CAS server and capture the returned NocoBase token without coupling the page UI to CAS.",children:t.jsx(o,{authenticator:n,onSignIn:()=>{}})})}export{s as CasAuthDemoPage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t}from"./index-
|
|
1
|
+
import{j as t}from"./index-CMoFG_fD.js";import{A as e}from"./auth-method-demo-B4sxmO2B.js";import n from"./oidc-sign-in-button-5pd4bZSW.js";const o={name:"company-oidc",authType:"OIDC",title:"Company OIDC"};function c(){return t.jsx(e,{authType:"OIDC",methodName:"OpenID Connect",description:"Redirect users to an OpenID Connect provider while the Starter handles callback tokens and the active authenticator.",children:t.jsx(n,{authenticator:o,onSignIn:()=>{}})})}export{c as OidcAuthDemoPage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as t}from"./index-
|
|
1
|
+
import{j as t}from"./index-CMoFG_fD.js";import{A as e}from"./auth-method-demo-B4sxmO2B.js";import r from"./saml-sign-in-button-CN2l8pSN.js";const a={name:"company-saml",authType:"SAML",title:"Company SAML"};function m(){return t.jsx(e,{authType:"SAML",methodName:"SAML",description:"Start an identity-provider redirect and return through the Starter's shared authentication callback.",children:t.jsx(r,{authenticator:a,onSignIn:()=>{}})})}export{m as SamlAuthDemoPage};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as e}from"./index-
|
|
1
|
+
import{j as e}from"./index-CMoFG_fD.js";import{A as o}from"./auth-method-demo-B4sxmO2B.js";import i from"./sms-sign-in-form-ajsTToFF.js";import"./use-authenticator-sign-in-B8OPLh-w.js";const n={name:"company-sms",authType:"SMS",title:"SMS verification code",options:{autoSignup:!0,verifier:"login-sms"}};function s(){return e.jsx(o,{authType:"SMS",methodName:"SMS verification code",description:"Collect a phone number and one-time code while keeping delivery and sign-in bound to the configured verifier.",children:e.jsx(i,{authenticator:n,onSendCode:()=>{},onSignIn:()=>{}})})}export{s as SmsAuthDemoPage};
|
package/dist/assets/{dingtalk-sign-in-button-DMPgE5kT.js → dingtalk-sign-in-button-K_2ZYQNC.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{j as s,aN as l,aP as r,aQ as d,K as c,bd as o,r as u}from"./index-
|
|
1
|
+
import{j as s,aN as l,aP as r,aQ as d,K as c,bd as o,r as u}from"./index-CMoFG_fD.js";import{u as g}from"./use-dingtalk-sign-in-DsX00uPU.js";function m({authenticator:e,onSignIn:i}){const{signIn:n,isPending:a,error:t}=g(e);return s.jsxs("div",{className:"space-y-3",children:[t&&s.jsxs(l,{variant:"destructive",children:[s.jsx(r,{children:"DingTalk sign-in failed"}),s.jsx(d,{children:t.message})]}),s.jsxs(c,{type:"button",variant:"outline",className:"w-full",disabled:!i&&a,onClick:i??n,children:[s.jsx(o,{}),!i&&a?"Redirecting…":u(e.title||e.authTypeTitle||"Sign in via DingTalk")]})]})}export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{bG as Z,bH as ee,bI as te,bJ as re,b as g,j as L,bb as ne}from"./index-
|
|
1
|
+
import{bG as Z,bH as ee,bI as te,bJ as re,b as g,j as L,bb as ne}from"./index-CMoFG_fD.js";import{g as ie,p as oe,e as se}from"./echarts-runtime-BTfAtt-4.js";var w={};const Q=Z(ee);var b={},S={},M={},k;function ae(){return k||(k=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=1;e.default=function(){return"".concat(t++)}})(M)),M}var E={},q={},x={},D;function X(){return D||(D=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,r=null;return function(){for(var f=this,n=arguments.length,c=new Array(n),l=0;l<n;l++)c[l]=arguments[l];clearTimeout(r),r=setTimeout(function(){o.apply(f,c)},s)}}})(x)),x}var y={},N;function A(){return N||(N=1,Object.defineProperty(y,"__esModule",{value:!0}),y.SizeSensorId=y.SensorTabIndex=y.SensorClassName=void 0,y.SizeSensorId="size-sensor-id",y.SensorClassName="size-sensor-object",y.SensorTabIndex="-1"),y}var F;function ue(){if(F)return q;F=1,Object.defineProperty(q,"__esModule",{value:!0}),q.createSensor=void 0;var e=o(X()),t=A();function o(s){return s&&s.__esModule?s:{default:s}}return q.createSensor=function(r,f){var n=void 0,c=[],l=function(){getComputedStyle(r).position==="static"&&(r.style.position="relative");var i=document.createElement("object");return i.onload=function(){i.contentDocument.defaultView.addEventListener("resize",v),v()},i.style.display="block",i.style.position="absolute",i.style.top="0",i.style.left="0",i.style.height="100%",i.style.width="100%",i.style.overflow="hidden",i.style.pointerEvents="none",i.style.zIndex="-1",i.style.opacity="0",i.setAttribute("class",t.SensorClassName),i.setAttribute("tabindex",t.SensorTabIndex),i.type="text/html",r.appendChild(i),i.data="about:blank",i},v=(0,e.default)(function(){c.forEach(function(u){u(r)})}),a=function(i){n||(n=l()),c.indexOf(i)===-1&&c.push(i)},d=function(){n&&n.parentNode&&(n.contentDocument&&n.contentDocument.defaultView.removeEventListener("resize",v),n.parentNode.removeChild(n),r.removeAttribute(t.SizeSensorId),n=void 0,c=[],f&&f())},p=function(i){var h=c.indexOf(i);h!==-1&&c.splice(h,1),c.length===0&&n&&d()};return{element:r,bind:a,destroy:d,unbind:p}},q}var O={},T;function ce(){if(T)return O;T=1,Object.defineProperty(O,"__esModule",{value:!0}),O.createSensor=void 0;var e=A(),t=o(X());function o(s){return s&&s.__esModule?s:{default:s}}return O.createSensor=function(r,f){var n=void 0,c=[],l=(0,t.default)(function(){c.forEach(function(u){u(r)})}),v=function(){var i=new ResizeObserver(l);return i.observe(r),l(),i},a=function(i){n||(n=v()),c.indexOf(i)===-1&&c.push(i)},d=function(){n&&n.disconnect(),c=[],n=void 0,r.removeAttribute(e.SizeSensorId),f&&f()},p=function(i){var h=c.indexOf(i);h!==-1&&c.splice(h,1),c.length===0&&n&&d()};return{element:r,bind:a,destroy:d,unbind:p}},O}var $;function de(){if($)return E;$=1,Object.defineProperty(E,"__esModule",{value:!0}),E.createSensor=void 0;var e=ue(),t=ce();return E.createSensor=typeof ResizeObserver<"u"?t.createSensor:e.createSensor,E}var U;function fe(){if(U)return S;U=1,Object.defineProperty(S,"__esModule",{value:!0}),S.removeSensor=S.getSensor=S.Sensors=void 0;var e=s(ae()),t=de(),o=A();function s(n){return n&&n.__esModule?n:{default:n}}var r=S.Sensors={};function f(n){n&&r[n]&&delete r[n]}return S.getSensor=function(c){var l=c.getAttribute(o.SizeSensorId);if(l&&r[l])return r[l];var v=(0,e.default)();c.setAttribute(o.SizeSensorId,v);var a=(0,t.createSensor)(c,function(){return f(v)});return r[v]=a,a},S.removeSensor=function(c){var l=c.element.getAttribute(o.SizeSensorId);c.destroy(),f(l)},S}var H;function le(){if(H)return b;H=1,Object.defineProperty(b,"__esModule",{value:!0}),b.ver=b.clear=b.bind=void 0;var e=fe();return b.bind=function(o,s){var r=(0,e.getSensor)(o);return r.bind(s),function(){r.unbind(s)}},b.clear=function(o){var s=(0,e.getSensor)(o);(0,e.removeSensor)(s)},b.ver="1.0.3",b}var R={},J;function ve(){if(J)return R;J=1,Object.defineProperty(R,"__esModule",{value:!0}),R.pick=void 0;function e(t,o){var s={};return o.forEach(function(r){s[r]=t[r]}),s}return R.pick=e,R}var I={},K;function pe(){if(K)return I;K=1,Object.defineProperty(I,"__esModule",{value:!0}),I.isFunction=void 0;function e(t){return typeof t=="function"}return I.isFunction=e,I}var j={},V;function he(){if(V)return j;V=1,Object.defineProperty(j,"__esModule",{value:!0}),j.isString=void 0;function e(t){return typeof t=="string"}return j.isString=e,j}var z={},P,W;function be(){return W||(W=1,P=function e(t,o){if(t===o)return!0;if(t&&o&&typeof t=="object"&&typeof o=="object"){if(t.constructor!==o.constructor)return!1;var s,r,f;if(Array.isArray(t)){if(s=t.length,s!=o.length)return!1;for(r=s;r--!==0;)if(!e(t[r],o[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();if(f=Object.keys(t),s=f.length,s!==Object.keys(o).length)return!1;for(r=s;r--!==0;)if(!Object.prototype.hasOwnProperty.call(o,f[r]))return!1;for(r=s;r--!==0;){var n=f[r];if(!e(t[n],o[n]))return!1}return!0}return t!==t&&o!==o}),P}var B;function Se(){if(B)return z;B=1,Object.defineProperty(z,"__esModule",{value:!0}),z.isEqual=void 0;var e=Q,t=(0,e.__importDefault)(be());return z.isEqual=t.default,z}var G;function ye(){if(G)return w;G=1,Object.defineProperty(w,"__esModule",{value:!0});var e=Q,t=(0,e.__importStar)(te()),o=le(),s=ve(),r=pe(),f=he(),n=Se(),c=(function(l){(0,e.__extends)(v,l);function v(a){var d=l.call(this,a)||this;return d.echarts=a.echarts,d.ele=null,d.isInitialResize=!0,d}return v.prototype.componentDidMount=function(){this.renderNewEcharts()},v.prototype.componentDidUpdate=function(a){var d=this.props.shouldSetOption;if(!((0,r.isFunction)(d)&&!d(a,this.props))){if(!(0,n.isEqual)(a.theme,this.props.theme)||!(0,n.isEqual)(a.opts,this.props.opts)||!(0,n.isEqual)(a.onEvents,this.props.onEvents)){this.dispose(),this.renderNewEcharts();return}var p=["option","notMerge","lazyUpdate","showLoading","loadingOption"];(0,n.isEqual)((0,s.pick)(this.props,p),(0,s.pick)(a,p))||this.updateEChartsOption(),(!(0,n.isEqual)(a.style,this.props.style)||!(0,n.isEqual)(a.className,this.props.className))&&this.resize()}},v.prototype.componentWillUnmount=function(){this.dispose()},v.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)||this.echarts.init(this.ele,this.props.theme,this.props.opts)},v.prototype.dispose=function(){if(this.ele){try{(0,o.clear)(this.ele)}catch(a){console.warn(a)}this.echarts.dispose(this.ele)}},v.prototype.renderNewEcharts=function(){var a=this,d=this.props,p=d.onEvents,u=d.onChartReady,i=this.updateEChartsOption();this.bindEvents(i,p||{}),(0,r.isFunction)(u)&&u(i),this.ele&&(0,o.bind)(this.ele,function(){a.resize()})},v.prototype.bindEvents=function(a,d){function p(i,h){(0,f.isString)(i)&&(0,r.isFunction)(h)&&a.on(i,function(_){h(_,a)})}for(var u in d)Object.prototype.hasOwnProperty.call(d,u)&&p(u,d[u])},v.prototype.updateEChartsOption=function(){var a=this.props,d=a.option,p=a.notMerge,u=p===void 0?!1:p,i=a.lazyUpdate,h=i===void 0?!1:i,_=a.showLoading,m=a.loadingOption,Y=m===void 0?null:m,C=this.getEchartsInstance();return C.setOption(d,u,h),_?C.showLoading(Y):C.hideLoading(),C},v.prototype.resize=function(){var a=this.getEchartsInstance();if(!this.isInitialResize)try{a.resize()}catch(d){console.warn(d)}this.isInitialResize=!1},v.prototype.render=function(){var a=this,d=this.props,p=d.style,u=d.className,i=u===void 0?"":u,h=(0,e.__assign)({height:300},p);return t.default.createElement("div",{ref:function(_){a.ele=_},style:h,className:"echarts-for-react "+i})},v})(t.PureComponent);return w.default=c,w}var _e=ye();const ge=re(_e);var me=(e,t,o,s,r,f,n,c)=>{let l=document.documentElement,v=["light","dark"];function a(u){(Array.isArray(e)?e:[e]).forEach(i=>{let h=i==="class",_=h&&f?r.map(m=>f[m]||m):r;h?(l.classList.remove(..._),l.classList.add(f&&f[u]?f[u]:u)):l.setAttribute(i,u)}),d(u)}function d(u){c&&v.includes(u)&&(l.style.colorScheme=u)}function p(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)a(s);else try{let u=localStorage.getItem(t)||o,i=n&&u==="system"?p():u;a(i)}catch{}},Ee=g.createContext(void 0),qe={setTheme:e=>{},themes:[]},Oe=()=>{var e;return(e=g.useContext(Ee))!=null?e:qe};g.memo(({forcedTheme:e,storageKey:t,attribute:o,enableSystem:s,enableColorScheme:r,defaultTheme:f,value:n,themes:c,nonce:l,scriptProps:v})=>{let a=JSON.stringify([o,t,f,e,c,n,s,r]).slice(1,-1);return g.createElement("script",{...v,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${me.toString()})(${a})`}})});function je({options:e}){const{resolvedTheme:t}=Oe(),o=ie(e),[s,r]=g.useState(),[f,n]=g.useState();if(g.useEffect(()=>{let c=!0;return n(void 0),oe(e).then(()=>{c&&r(o)}).catch(l=>{c&&n(l)}),()=>{c=!1}},[e,o]),f)throw f;return s!==o?L.jsx(ne,{className:"h-[280px]"}):L.jsx(ge,{echarts:se,option:{...e,animation:!1,backgroundColor:e.backgroundColor??"transparent",toolbox:{show:!0,feature:{saveAsImage:{title:"Save as image"}}}},theme:t==="dark"?"nocobase-dark":void 0,notMerge:!0,style:{height:280,width:"100%"}})}export{je as default};
|