szld-libs 0.0.4 → 0.0.5

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.
@@ -1,6 +1,9 @@
1
+ import { ModalFuncProps } from "antd";
1
2
  interface WorkFlowNodeProps {
2
3
  data: any[];
3
4
  current: string;
4
5
  }
5
- declare const showWorkFlow: (props: WorkFlowNodeProps) => null;
6
+ interface showWorkFlow extends WorkFlowNodeProps, ModalFuncProps {
7
+ }
8
+ declare const showWorkFlow: (props: showWorkFlow) => null;
6
9
  export default showWorkFlow;
package/dist/index.js CHANGED
@@ -42163,17 +42163,21 @@ const Kne = "_main_17ruh_1", Jne = "_item_17ruh_5", ere = "_tail_17ruh_10", tre
42163
42163
  d.PNId
42164
42164
  ))
42165
42165
  ] });
42166
- }, Nre = (t) => ((() => {
42167
- mz.info({
42168
- icon: null,
42169
- title: "流程节点",
42170
- width: 700,
42171
- content: /* @__PURE__ */ ze(cre, { ...t }),
42172
- closable: !0,
42173
- footer: null,
42174
- maskClosable: !0
42175
- });
42176
- })(), null), dre = (t, e) => {
42166
+ }, Nre = (t) => {
42167
+ const { current: e, data: n, ...r } = t;
42168
+ return (() => {
42169
+ mz.info({
42170
+ icon: null,
42171
+ title: "流程节点",
42172
+ width: 700,
42173
+ content: /* @__PURE__ */ ze(cre, { current: e, data: n }),
42174
+ closable: !0,
42175
+ footer: null,
42176
+ maskClosable: !0,
42177
+ ...r
42178
+ });
42179
+ })(), null;
42180
+ }, dre = (t, e) => {
42177
42181
  const n = new URL(t), r = new URL(e);
42178
42182
  return n.protocol === r.protocol && n.host === r.host && n.port === r.port;
42179
42183
  }, vre = (t) => {
@@ -217,4 +217,4 @@ echarts.use([`+ee+"]);":"Unknown series "+G))}return}if(m==="tooltip"){if(O){pro
217
217
  `,"Illegal config:",p,`.
218
218
  `)),Ht(r));var A=_?mN(_):null;_&&!A&&(process.env.NODE_ENV!=="production"&&(r=na("Invalid parser name "+_+`.
219
219
  `,"Illegal config:",p,`.
220
- `)),Ht(r)),l.push({dimIdx:D.index,parser:A,comparator:new _N(S,w)})});var u=e.sourceFormat;u!==ki&&u!==Fo&&(process.env.NODE_ENV!=="production"&&(r='sourceFormat "'+u+'" is not supported yet'),Ht(r));for(var f=[],d=0,h=e.count();d<h;d++)f.push(e.getRawDataItem(d));return f.sort(function(p,m){for(var S=0;S<l.length;S++){var _=l[S],w=e.retrieveValueFromItem(p,_.dimIdx),E=e.retrieveValueFromItem(m,_.dimIdx);_.parser&&(w=_.parser(w),E=_.parser(E));var b=_.comparator.evaluate(w,E);if(b!==0)return b}return 0}),{data:f}}};function lq(t){t.registerTransform(aq),t.registerTransform(oq)}var uq=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return e.prototype.init=function(n,r,a){t.prototype.init.call(this,n,r,a),this._sourceManager=new bN(this),EN(this)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),EN(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Al},e}(En),sq=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return e.type="dataset",e}(Du);function fq(t){t.registerComponentModel(uq),t.registerComponentView(sq)}var Ll=As.CMD;function Nv(t,e){return Math.abs(t-e)<1e-5}function dE(t){var e=t.data,n=t.len(),r=[],a,l=0,u=0,f=0,d=0;function h(J,ie){a&&a.length>2&&r.push(a),a=[J,ie]}function p(J,ie,ce,fe){Nv(J,ce)&&Nv(ie,fe)||a.push(J,ie,ce,fe,ce,fe)}function m(J,ie,ce,fe,Pe,ae){var ge=Math.abs(ie-J),pe=Math.tan(ge/4)*4/3,Le=ie<J?-1:1,Ge=Math.cos(J),St=Math.sin(J),It=Math.cos(ie),Dn=Math.sin(ie),Xt=Ge*Pe+ce,Mn=St*ae+fe,on=It*Pe+ce,zt=Dn*ae+fe,Ft=Pe*pe*Le,$e=ae*pe*Le;a.push(Xt-Ft*St,Mn+$e*Ge,on+Ft*Dn,zt-$e*It,on,zt)}for(var S,_,w,E,b=0;b<n;){var D=e[b++],A=b===1;switch(A&&(l=e[b],u=e[b+1],f=l,d=u,(D===Ll.L||D===Ll.C||D===Ll.Q)&&(a=[f,d])),D){case Ll.M:l=f=e[b++],u=d=e[b++],h(f,d);break;case Ll.L:S=e[b++],_=e[b++],p(l,u,S,_),l=S,u=_;break;case Ll.C:a.push(e[b++],e[b++],e[b++],e[b++],l=e[b++],u=e[b++]);break;case Ll.Q:S=e[b++],_=e[b++],w=e[b++],E=e[b++],a.push(l+2/3*(S-l),u+2/3*(_-u),w+2/3*(S-w),E+2/3*(_-E),w,E),l=w,u=E;break;case Ll.A:var O=e[b++],P=e[b++],I=e[b++],F=e[b++],U=e[b++],H=e[b++]+U;b+=1;var j=!e[b++];S=Math.cos(U)*I+O,_=Math.sin(U)*F+P,A?(f=S,d=_,h(f,d)):p(l,u,S,_),l=Math.cos(H)*I+O,u=Math.sin(H)*F+P;for(var X=(j?-1:1)*Math.PI/2,G=U;j?G>H:G<H;G+=X){var ee=j?Math.max(G+X,H):Math.min(G+X,H);m(G,ee,O,P,I,F)}break;case Ll.R:f=l=e[b++],d=u=e[b++],S=f+e[b++],_=d+e[b++],h(S,d),p(S,d,S,_),p(S,_,f,_),p(f,_,f,d),p(f,d,S,d);break;case Ll.Z:a&&p(l,u,f,d),l=f,u=d;break}}return a&&a.length>2&&r.push(a),r}function vE(t,e,n,r,a,l,u,f,d,h){if(Nv(t,n)&&Nv(e,r)&&Nv(a,u)&&Nv(l,f)){d.push(u,f);return}var p=2/h,m=p*p,S=u-t,_=f-e,w=Math.sqrt(S*S+_*_);S/=w,_/=w;var E=n-t,b=r-e,D=a-u,A=l-f,O=E*E+b*b,P=D*D+A*A;if(O<m&&P<m){d.push(u,f);return}var I=S*E+_*b,F=-S*D-_*A,U=O-I*I,H=P-F*F;if(U<m&&I>=0&&H<m&&F>=0){d.push(u,f);return}var j=[],X=[];Es(t,n,a,u,.5,j),Es(e,r,l,f,.5,X),vE(j[0],X[0],j[1],X[1],j[2],X[2],j[3],X[3],d,h),vE(j[4],X[4],j[5],X[5],j[6],X[6],j[7],X[7],d,h)}function cq(t,e){var n=dE(t),r=[];e=e||1;for(var a=0;a<n.length;a++){var l=n[a],u=[],f=l[0],d=l[1];u.push(f,d);for(var h=2;h<l.length;){var p=l[h++],m=l[h++],S=l[h++],_=l[h++],w=l[h++],E=l[h++];vE(f,d,p,m,S,_,w,E,u,e),f=w,d=E}r.push(u)}return r}function Yz(t,e,n){var r=t[e],a=t[1-e],l=Math.abs(r/a),u=Math.ceil(Math.sqrt(l*n)),f=Math.floor(n/u);f===0&&(f=1,u=n);for(var d=[],h=0;h<u;h++)d.push(f);var p=u*f,m=n-p;if(m>0)for(var h=0;h<m;h++)d[h%u]+=1;return d}function Wz(t,e,n){for(var r=t.r0,a=t.r,l=t.startAngle,u=t.endAngle,f=Math.abs(u-l),d=f*a,h=a-r,p=d>Math.abs(h),m=Yz([d,h],p?0:1,e),S=(p?f:h)/m.length,_=0;_<m.length;_++)for(var w=(p?h:f)/m[_],E=0;E<m[_];E++){var b={};p?(b.startAngle=l+S*_,b.endAngle=l+S*(_+1),b.r0=r+w*E,b.r=r+w*(E+1)):(b.startAngle=l+w*E,b.endAngle=l+w*(E+1),b.r0=r+S*_,b.r=r+S*(_+1)),b.clockwise=t.clockwise,b.cx=t.cx,b.cy=t.cy,n.push(b)}}function dq(t,e,n){for(var r=t.width,a=t.height,l=r>a,u=Yz([r,a],l?0:1,e),f=l?"width":"height",d=l?"height":"width",h=l?"x":"y",p=l?"y":"x",m=t[f]/u.length,S=0;S<u.length;S++)for(var _=t[d]/u[S],w=0;w<u[S];w++){var E={};E[h]=S*m,E[p]=w*_,E[f]=m,E[d]=_,E.x+=t.x,E.y+=t.y,n.push(E)}}function Xz(t,e,n,r){return t*r-n*e}function vq(t,e,n,r,a,l,u,f){var d=n-t,h=r-e,p=u-a,m=f-l,S=Xz(p,m,d,h);if(Math.abs(S)<1e-6)return null;var _=t-a,w=e-l,E=Xz(_,w,p,m)/S;return E<0||E>1?null:new ht(E*d+t,E*h+e)}function hq(t,e,n){var r=new ht;ht.sub(r,n,e),r.normalize();var a=new ht;ht.sub(a,t,e);var l=a.dot(r);return l}function Pv(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function pq(t,e,n){for(var r=t.length,a=[],l=0;l<r;l++){var u=t[l],f=t[(l+1)%r],d=vq(u[0],u[1],f[0],f[1],e.x,e.y,n.x,n.y);d&&a.push({projPt:hq(d,e,n),pt:d,idx:l})}if(a.length<2)return[{points:t},{points:t}];a.sort(function(b,D){return b.projPt-D.projPt});var h=a[0],p=a[a.length-1];if(p.idx<h.idx){var m=h;h=p,p=m}for(var S=[h.pt.x,h.pt.y],_=[p.pt.x,p.pt.y],w=[S],E=[_],l=h.idx+1;l<=p.idx;l++)Pv(w,t[l].slice());Pv(w,_),Pv(w,S);for(var l=p.idx+1;l<=h.idx+r;l++)Pv(E,t[l%r].slice());return Pv(E,S),Pv(E,_),[{points:w},{points:E}]}function qz(t){var e=t.points,n=[],r=[];zO(e,n,r);var a=new Wt(n[0],n[1],r[0]-n[0],r[1]-n[1]),l=a.width,u=a.height,f=a.x,d=a.y,h=new ht,p=new ht;return l>u?(h.x=p.x=f+l/2,h.y=d,p.y=d+u):(h.y=p.y=d+u/2,h.x=f,p.x=f+l),pq(e,h,p)}function d1(t,e,n,r){if(n===1)r.push(e);else{var a=Math.floor(n/2),l=t(e);d1(t,l[0],a,r),d1(t,l[1],n-a,r)}return r}function gq(t,e){for(var n=[],r=0;r<e;r++)n.push(pT(t));return n}function mq(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function yq(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}function _q(t,e){var n=[],r=t.shape,a;switch(t.type){case"rect":dq(r,e,n),a=Kr;break;case"sector":Wz(r,e,n),a=vc;break;case"circle":Wz({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},e,n),a=vc;break;default:var l=t.getComputedTransform(),u=l?Math.sqrt(Math.max(l[0]*l[0]+l[1]*l[1],l[2]*l[2]+l[3]*l[3])):1,f=ot(cq(t.getUpdatedPathProxy(),u),function(D){return yq(D)}),d=f.length;if(d===0)d1(qz,{points:f[0]},e,n);else if(d===e)for(var h=0;h<d;h++)n.push({points:f[h]});else{var p=0,m=ot(f,function(D){var A=[],O=[];zO(D,A,O);var P=(O[1]-A[1])*(O[0]-A[0]);return p+=P,{poly:D,area:P}});m.sort(function(D,A){return A.area-D.area});for(var S=e,h=0;h<d;h++){var _=m[h];if(S<=0)break;var w=h===d-1?S:Math.ceil(_.area/p*e);w<0||(d1(qz,{points:_.poly},w,n),S-=w)}}a=yT;break}if(!a)return gq(t,e);for(var E=[],h=0;h<n.length;h++){var b=new a;b.setShape(n[h]),mq(t,b),E.push(b)}return E}function Sq(t,e){var n=t.length,r=e.length;if(n===r)return[t,e];for(var a=[],l=[],u=n<r?t:e,f=Math.min(n,r),d=Math.abs(r-n)/6,h=(f-2)/6,p=Math.ceil(d/h)+1,m=[u[0],u[1]],S=d,_=2;_<f;){var w=u[_-2],E=u[_-1],b=u[_++],D=u[_++],A=u[_++],O=u[_++],P=u[_++],I=u[_++];if(S<=0){m.push(b,D,A,O,P,I);continue}for(var F=Math.min(S,p-1)+1,U=1;U<=F;U++){var H=U/F;Es(w,b,A,P,H,a),Es(E,D,O,I,H,l),w=a[3],E=l[3],m.push(a[1],l[1],a[2],l[2],w,E),b=a[5],D=l[5],A=a[6],O=l[6]}S-=F-1}return u===t?[m,e]:[t,m]}function Qz(t,e){for(var n=t.length,r=t[n-2],a=t[n-1],l=[],u=0;u<e.length;)l[u++]=r,l[u++]=a;return l}function Cq(t,e){for(var n,r,a,l=[],u=[],f=0;f<Math.max(t.length,e.length);f++){var d=t[f],h=e[f],p=void 0,m=void 0;d?h?(n=Sq(d,h),p=n[0],m=n[1],r=p,a=m):(m=Qz(a||d,d),p=d):(p=Qz(r||h,h),m=h),l.push(p),u.push(m)}return[l,u]}function Zz(t){for(var e=0,n=0,r=0,a=t.length,l=0,u=a-2;l<a;u=l,l+=2){var f=t[u],d=t[u+1],h=t[l],p=t[l+1],m=f*p-h*d;e+=m,n+=(f+h)*m,r+=(d+p)*m}return e===0?[t[0]||0,t[1]||0]:[n/e/3,r/e/3,e]}function wq(t,e,n,r){for(var a=(t.length-2)/6,l=1/0,u=0,f=t.length,d=f-2,h=0;h<a;h++){for(var p=h*6,m=0,S=0;S<f;S+=2){var _=S===0?p:(p+S-2)%d+2,w=t[_]-n[0],E=t[_+1]-n[1],b=e[S]-r[0],D=e[S+1]-r[1],A=b-w,O=D-E;m+=A*A+O*O}m<l&&(l=m,u=h)}return u}function xq(t){for(var e=[],n=t.length,r=0;r<n;r+=2)e[r]=t[n-r-2],e[r+1]=t[n-r-1];return e}function Tq(t,e,n,r){for(var a=[],l,u=0;u<t.length;u++){var f=t[u],d=e[u],h=Zz(f),p=Zz(d);l==null&&(l=h[2]<0!=p[2]<0);var m=[],S=[],_=0,w=1/0,E=[],b=f.length;l&&(f=xq(f));for(var D=wq(f,d,h,p)*6,A=b-2,O=0;O<A;O+=2){var P=(D+O)%A+2;m[O+2]=f[P]-h[0],m[O+3]=f[P+1]-h[1]}if(m[0]=f[D]-h[0],m[1]=f[D+1]-h[1],n>0)for(var I=r/n,F=-r/2;F<=r/2;F+=I){for(var U=Math.sin(F),H=Math.cos(F),j=0,O=0;O<f.length;O+=2){var X=m[O],G=m[O+1],ee=d[O]-p[0],J=d[O+1]-p[1],ie=ee*H-J*U,ce=ee*U+J*H;E[O]=ie,E[O+1]=ce;var fe=ie-X,Pe=ce-G;j+=fe*fe+Pe*Pe}if(j<w){w=j,_=F;for(var ae=0;ae<E.length;ae++)S[ae]=E[ae]}}else for(var ge=0;ge<b;ge+=2)S[ge]=d[ge]-p[0],S[ge+1]=d[ge+1]-p[1];a.push({from:m,to:S,fromCp:h,toCp:p,rotation:-_})}return a}function v1(t){return t.__isCombineMorphing}var Kz="__mOriginal_";function h1(t,e,n){var r=Kz+e,a=t[r]||t[e];t[r]||(t[r]=t[e]);var l=n.replace,u=n.after,f=n.before;t[e]=function(){var d=arguments,h;return f&&f.apply(this,d),l?h=l.apply(this,d):h=a.apply(this,d),u&&u.apply(this,d),h}}function Qg(t,e){var n=Kz+e;t[n]&&(t[e]=t[n],t[n]=null)}function Jz(t,e){for(var n=0;n<t.length;n++)for(var r=t[n],a=0;a<r.length;){var l=r[a],u=r[a+1];r[a++]=e[0]*l+e[2]*u+e[4],r[a++]=e[1]*l+e[3]*u+e[5]}}function eF(t,e){var n=t.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),a=Cq(dE(n),dE(r)),l=a[0],u=a[1],f=t.getComputedTransform(),d=e.getComputedTransform();function h(){this.transform=null}f&&Jz(l,f),d&&Jz(u,d),h1(e,"updateTransform",{replace:h}),e.transform=null;var p=Tq(l,u,10,Math.PI),m=[];h1(e,"buildPath",{replace:function(S){for(var _=e.__morphT,w=1-_,E=[],b=0;b<p.length;b++){var D=p[b],A=D.from,O=D.to,P=D.rotation*_,I=D.fromCp,F=D.toCp,U=Math.sin(P),H=Math.cos(P);D0(E,I,F,_);for(var j=0;j<A.length;j+=2){var X=A[j],G=A[j+1],ee=O[j],J=O[j+1],ie=X*w+ee*_,ce=G*w+J*_;m[j]=ie*H-ce*U+E[0],m[j+1]=ie*U+ce*H+E[1]}var fe=m[0],Pe=m[1];S.moveTo(fe,Pe);for(var j=2;j<A.length;){var ee=m[j++],J=m[j++],ae=m[j++],ge=m[j++],pe=m[j++],Le=m[j++];fe===ee&&Pe===J&&ae===pe&&ge===Le?S.lineTo(pe,Le):S.bezierCurveTo(ee,J,ae,ge,pe,Le),fe=pe,Pe=Le}}}})}function hE(t,e,n){if(!t||!e)return e;var r=n.done,a=n.during;eF(t,e),e.__morphT=0;function l(){Qg(e,"buildPath"),Qg(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},Vt({during:function(u){e.dirtyShape(),a&&a(u)},done:function(){l(),r&&r()}},n)),e}function bq(t,e,n,r,a,l){var u=16;t=a===n?0:Math.round(32767*(t-n)/(a-n)),e=l===r?0:Math.round(32767*(e-r)/(l-r));for(var f=0,d,h=(1<<u)/2;h>0;h/=2){var p=0,m=0;(t&h)>0&&(p=1),(e&h)>0&&(m=1),f+=h*h*(3*p^m),m===0&&(p===1&&(t=h-1-t,e=h-1-e),d=t,t=e,e=d)}return f}function p1(t){var e=1/0,n=1/0,r=-1/0,a=-1/0,l=ot(t,function(f){var d=f.getBoundingRect(),h=f.getComputedTransform(),p=d.x+d.width/2+(h?h[4]:0),m=d.y+d.height/2+(h?h[5]:0);return e=Math.min(p,e),n=Math.min(m,n),r=Math.max(p,r),a=Math.max(m,a),[p,m]}),u=ot(l,function(f,d){return{cp:f,z:bq(f[0],f[1],e,n,r,a),path:t[d]}});return u.sort(function(f,d){return f.z-d.z}).map(function(f){return f.path})}function tF(t){return _q(t.path,t.count)}function pE(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Eq(t,e,n){var r=[];function a(I){for(var F=0;F<I.length;F++){var U=I[F];v1(U)?a(U.childrenRef()):U instanceof Gt&&r.push(U)}}a(t);var l=r.length;if(!l)return pE();var u=n.dividePath||tF,f=u({path:e,count:l});if(f.length!==l)return console.error("Invalid morphing: unmatched splitted path"),pE();r=p1(r),f=p1(f);for(var d=n.done,h=n.during,p=n.individualDelay,m=new Kp,S=0;S<l;S++){var _=r[S],w=f[S];w.parent=e,w.copyTransform(m),p||eF(_,w)}e.__isCombineMorphing=!0,e.childrenRef=function(){return f};function E(I){for(var F=0;F<f.length;F++)f[F].addSelfToZr(I)}h1(e,"addSelfToZr",{after:function(I){E(I)}}),h1(e,"removeSelfFromZr",{after:function(I){for(var F=0;F<f.length;F++)f[F].removeSelfFromZr(I)}});function b(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Qg(e,"addSelfToZr"),Qg(e,"removeSelfFromZr")}var D=f.length;if(p)for(var A=D,O=function(){A--,A===0&&(b(),d&&d())},S=0;S<D;S++){var P=p?Vt({delay:(n.delay||0)+p(S,D,r[S],f[S]),done:O},n):n;hE(r[S],f[S],P)}else e.__morphT=0,e.animateTo({__morphT:1},Vt({during:function(I){for(var F=0;F<D;F++){var U=f[F];U.__morphT=e.__morphT,U.dirtyShape()}h&&h(I)},done:function(){b();for(var I=0;I<t.length;I++)Qg(t[I],"updateTransform");d&&d()}},n));return e.__zr&&E(e.__zr),{fromIndividuals:r,toIndividuals:f,count:D}}function Dq(t,e,n){var r=e.length,a=[],l=n.dividePath||tF;function u(_){for(var w=0;w<_.length;w++){var E=_[w];v1(E)?u(E.childrenRef()):E instanceof Gt&&a.push(E)}}if(v1(t)){u(t.childrenRef());var f=a.length;if(f<r)for(var d=0,h=f;h<r;h++)a.push(pT(a[d++%f]));a.length=r}else{a=l({path:t,count:r});for(var p=t.getComputedTransform(),h=0;h<a.length;h++)a[h].setLocalTransform(p);if(a.length!==r)return console.error("Invalid morphing: unmatched splitted path"),pE()}a=p1(a),e=p1(e);for(var m=n.individualDelay,h=0;h<r;h++){var S=m?Vt({delay:(n.delay||0)+m(h,r,a[h],e[h])},n):n;hE(a[h],e[h],S)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function nF(t){return Be(t[0])}function rF(t,e){for(var n=[],r=t.length,a=0;a<r;a++)n.push({one:t[a],many:[]});for(var a=0;a<e.length;a++){var l=e[a].length,u=void 0;for(u=0;u<l;u++)n[u%r].many.push(e[a][u])}for(var f=0,a=r-1;a>=0;a--)if(!n[a].many.length){var d=n[f].many;if(d.length<=1)if(f)f=0;else return n;var l=d.length,h=Math.ceil(l/2);n[a].many=d.slice(h,l),n[f].many=d.slice(0,h),f++}return n}var Mq={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r<t.count;r++){var a=pT(t.path);a.setStyle("opacity",n),e.push(a)}return e},split:null};function gE(t,e,n,r,a,l){if(!t.length||!e.length)return;var u=v_("update",r,a);if(!(u&&u.duration>0))return;var f=r.getModel("universalTransition").get("delay"),d=Object.assign({setToFinal:!0},u),h,p;nF(t)&&(h=t,p=e),nF(e)&&(h=e,p=t);function m(D,A,O,P,I){var F=D.many,U=D.one;if(F.length===1&&!I){var H=A?F[0]:U,j=A?U:F[0];if(v1(H))m({many:[H],one:j},!0,O,P,!0);else{var X=f?Vt({delay:f(O,P)},d):d;hE(H,j,X),l(H,j,H,j,X)}}else for(var G=Vt({dividePath:Mq[n],individualDelay:f&&function(Pe,ae,ge,pe){return f(Pe+O,P)}},d),ee=A?Eq(F,U,G):Dq(U,F,G),J=ee.fromIndividuals,ie=ee.toIndividuals,ce=J.length,fe=0;fe<ce;fe++){var X=f?Vt({delay:f(fe,ce)},d):d;l(J[fe],ie[fe],A?F[fe]:D.one,A?D.one:F[fe],X)}}for(var S=h?h===t:t.length>e.length,_=h?rF(p,h):rF(S?e:t,[S?t:e]),w=0,E=0;E<_.length;E++)w+=_[E].many.length;for(var b=0,E=0;E<_.length;E++)m(_[E],S,b,w),b+=_[E].many.length}function Oc(t){if(!t)return[];if(Be(t)){for(var e=[],n=0;n<t.length;n++)e.push(Oc(t[n]));return e}var r=[];return t.traverse(function(a){a instanceof Gt&&!a.disableMorphing&&!a.invisible&&!a.ignore&&r.push(a)}),r}var iF=1e4,Rq=jn();function Aq(t){for(var e=t.dimensions,n=0;n<e.length;n++){var r=t.getDimensionInfo(e[n]);if(r&&r.otherDims.itemGroupId===0)return e[n]}}function aF(t){var e=[];return W(t,function(n){var r=n.data;if(r.count()>iF){process.env.NODE_ENV!=="production"&&Fr("Universal transition is disabled on large data > 10k.");return}for(var a=r.getIndices(),l=Aq(r),u=0;u<a.length;u++)e.push({dataGroupId:n.dataGroupId,data:r,dim:n.dim||l,divide:n.divide,dataIndex:u})}),e}function mE(t,e,n){t.traverse(function(r){r instanceof Gt&&Io(r,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})})}function yE(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function Iv(t){t.stopAnimation(),t.isGroup&&t.traverse(function(e){e.stopAnimation()})}function Lq(t,e,n){var r=v_("update",n,e);r&&t.traverse(function(a){if(a instanceof fv){var l=lG(a);l&&a.animateFrom({style:l},r)}})}function Oq(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++){var a=t[r],l=e[r];if(a.data.getId(a.dataIndex)!==l.data.getId(l.dataIndex))return!1}return!0}function oF(t,e,n){var r=aF(t),a=aF(e);function l(D,A,O,P,I){(O||D)&&A.animateFrom({style:O&&O!==D?Re(Re({},O.style),D.style):D.style},I)}function u(D){for(var A=0;A<D.length;A++)if(D[A].dim)return D[A].dim}var f=u(r),d=u(a),h=!1;function p(D,A){return function(O){var P=O.data,I=O.dataIndex;if(A)return P.getId(I);var F=O.dataGroupId,U=D?f||d:d||f,H=U&&P.getDimensionInfo(U),j=H&&H.ordinalMeta;if(H){var X=P.get(H.name,I);return j&&j.categories[X]||X+""}var G=P.getRawDataItem(I);return G&&G.groupId?G.groupId+"":F||P.getId(I)}}var m=Oq(r,a),S={};if(!m)for(var _=0;_<a.length;_++){var w=a[_],E=w.data.getItemGraphicEl(w.dataIndex);E&&(S[E.id]=!0)}function b(D,A){var O=r[A],P=a[D],I=P.data.hostModel,F=O.data.getItemGraphicEl(O.dataIndex),U=P.data.getItemGraphicEl(P.dataIndex);if(F===U){U&&Lq(U,P.dataIndex,I);return}F&&S[F.id]||U&&(Iv(U),F?(Iv(F),yE(F),h=!0,gE(Oc(F),Oc(U),P.divide,I,D,l)):mE(U,I,D))}new Lb(r,a,p(!0,m),p(!1,m),null,"multiple").update(b).updateManyToOne(function(D,A){var O=a[D],P=O.data,I=P.hostModel,F=P.getItemGraphicEl(O.dataIndex),U=Tr(ot(A,function(H){return r[H].data.getItemGraphicEl(r[H].dataIndex)}),function(H){return H&&H!==F&&!S[H.id]});F&&(Iv(F),U.length?(W(U,function(H){Iv(H),yE(H)}),h=!0,gE(Oc(U),Oc(F),O.divide,I,D,l)):mE(F,I,O.dataIndex))}).updateOneToMany(function(D,A){var O=r[A],P=O.data.getItemGraphicEl(O.dataIndex);if(!(P&&S[P.id])){var I=Tr(ot(D,function(U){return a[U].data.getItemGraphicEl(a[U].dataIndex)}),function(U){return U&&U!==P}),F=a[D[0]].data.hostModel;I.length&&(W(I,function(U){return Iv(U)}),P?(Iv(P),yE(P),h=!0,gE(Oc(P),Oc(I),O.divide,F,D[0],l)):W(I,function(U){return mE(U,F,D[0])}))}}).updateManyToMany(function(D,A){new Lb(A,D,function(O){return r[O].data.getId(r[O].dataIndex)},function(O){return a[O].data.getId(a[O].dataIndex)}).update(function(O,P){b(D[O],A[P])}).execute()}).execute(),h&&W(e,function(D){var A=D.data,O=A.hostModel,P=O&&n.getViewOfSeriesModel(O),I=v_("update",O,0);P&&O.isAnimationEnabled()&&I&&I.duration>0&&P.group.traverse(function(F){F instanceof Gt&&!F.animators.length&&F.animateFrom({style:{opacity:0}},I)})})}function lF(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function uF(t){return Be(t)?t.sort().join(","):t}function Fs(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function kq(t,e){var n=xt(),r=xt(),a=xt();W(t.oldSeries,function(u,f){var d=t.oldDataGroupIds[f],h=t.oldData[f],p=lF(u),m=uF(p);r.set(m,{dataGroupId:d,data:h}),Be(p)&&W(p,function(S){a.set(S,{key:m,dataGroupId:d,data:h})})});function l(u){n.get(u)&&Fr("Duplicated seriesKey in universalTransition "+u)}return W(e.updatedSeries,function(u){if(u.isUniversalTransitionEnabled()&&u.isAnimationEnabled()){var f=u.get("dataGroupId"),d=u.getData(),h=lF(u),p=uF(h),m=r.get(p);if(m)process.env.NODE_ENV!=="production"&&l(p),n.set(p,{oldSeries:[{dataGroupId:m.dataGroupId,divide:Fs(m.data),data:m.data}],newSeries:[{dataGroupId:f,divide:Fs(d),data:d}]});else if(Be(h)){process.env.NODE_ENV!=="production"&&l(p);var S=[];W(h,function(E){var b=r.get(E);b.data&&S.push({dataGroupId:b.dataGroupId,divide:Fs(b.data),data:b.data})}),S.length&&n.set(p,{oldSeries:S,newSeries:[{dataGroupId:f,data:d,divide:Fs(d)}]})}else{var _=a.get(h);if(_){var w=n.get(_.key);w||(w={oldSeries:[{dataGroupId:_.dataGroupId,data:_.data,divide:Fs(_.data)}],newSeries:[]},n.set(_.key,w)),w.newSeries.push({dataGroupId:f,data:d,divide:Fs(d)})}}}}),n}function sF(t,e){for(var n=0;n<t.length;n++){var r=e.seriesIndex!=null&&e.seriesIndex===t[n].seriesIndex||e.seriesId!=null&&e.seriesId===t[n].id;if(r)return n}}function Nq(t,e,n,r){var a=[],l=[];W(rr(t.from),function(u){var f=sF(e.oldSeries,u);f>=0&&a.push({dataGroupId:e.oldDataGroupIds[f],data:e.oldData[f],divide:Fs(e.oldData[f]),dim:u.dimension})}),W(rr(t.to),function(u){var f=sF(n.updatedSeries,u);if(f>=0){var d=n.updatedSeries[f].getData();l.push({dataGroupId:e.oldDataGroupIds[f],data:d,divide:Fs(d),dim:u.dimension})}}),a.length>0&&l.length>0&&oF(a,l,r)}function Pq(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,n,r){W(rr(r.seriesTransition),function(a){W(rr(a.to),function(l){for(var u=r.updatedSeries,f=0;f<u.length;f++)(l.seriesIndex!=null&&l.seriesIndex===u[f].seriesIndex||l.seriesId!=null&&l.seriesId===u[f].id)&&(u[f][N_]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(e,n,r){var a=Rq(n);if(a.oldSeries&&r.updatedSeries&&r.optionChanged){var l=r.seriesTransition;if(l)W(rr(l),function(_){Nq(_,a,r,n)});else{var u=kq(a,r);W(u.keys(),function(_){var w=u.get(_);oF(w.oldSeries,w.newSeries,n)})}W(r.updatedSeries,function(_){_[N_]&&(_[N_]=!1)})}for(var f=e.getSeries(),d=a.oldSeries=[],h=a.oldDataGroupIds=[],p=a.oldData=[],m=0;m<f.length;m++){var S=f[m].getData();S.count()<iF&&(d.push(f[m]),h.push(f[m].get("dataGroupId")),p.push(S))}})}function fF(t,e,n){var r=jf.createCanvas(),a=e.getWidth(),l=e.getHeight(),u=r.style;return u&&(u.position="absolute",u.left="0",u.top="0",u.width=a+"px",u.height=l+"px",r.setAttribute("data-zr-dom-id",t)),r.width=a*n,r.height=l*n,r}var Iq=function(t){mn(e,t);function e(n,r,a){var l=t.call(this)||this;l.motionBlur=!1,l.lastFrameAlpha=.7,l.dpr=1,l.virtual=!1,l.config={},l.incremental=!1,l.zlevel=0,l.maxRepaintRectCount=5,l.__dirty=!0,l.__firstTimePaint=!0,l.__used=!1,l.__drawIndex=0,l.__startIndex=0,l.__endIndex=0,l.__prevStartIndex=null,l.__prevEndIndex=null;var u;a=a||Y0,typeof n=="string"?u=fF(n,r,a):it(n)&&(u=n,n=u.id),l.id=n,l.dom=u;var f=u.style;return f&&(uL(u),u.onselectstart=function(){return!1},f.padding="0",f.margin="0",f.borderWidth="0"),l.painter=r,l.dpr=a,l}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var n=this.dpr;this.domBack=fF("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},e.prototype.createRepaintRects=function(n,r,a,l){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var u=[],f=this.maxRepaintRectCount,d=!1,h=new Wt(0,0,0,0);function p(A){if(!(!A.isFinite()||A.isZero()))if(u.length===0){var O=new Wt(0,0,0,0);O.copy(A),u.push(O)}else{for(var P=!1,I=1/0,F=0,U=0;U<u.length;++U){var H=u[U];if(H.intersect(A)){var j=new Wt(0,0,0,0);j.copy(H),j.union(A),u[U]=j,P=!0;break}else if(d){h.copy(A),h.union(H);var X=A.width*A.height,G=H.width*H.height,ee=h.width*h.height,J=ee-X-G;J<I&&(I=J,F=U)}}if(d&&(u[F].union(A),P=!0),!P){var O=new Wt(0,0,0,0);O.copy(A),u.push(O)}d||(d=u.length>=f)}}for(var m=this.__startIndex;m<this.__endIndex;++m){var S=n[m];if(S){var _=S.shouldBePainted(a,l,!0,!0),w=S.__isRendered&&(S.__dirty&La||!_)?S.getPrevPaintRect():null;w&&p(w);var E=_&&(S.__dirty&La||!S.__isRendered)?S.getPaintRect():null;E&&p(E)}}for(var m=this.__prevStartIndex;m<this.__prevEndIndex;++m){var S=r[m],_=S.shouldBePainted(a,l,!0,!0);if(S&&(!_||!S.__zr)&&S.__isRendered){var w=S.getPrevPaintRect();w&&p(w)}}var b;do{b=!1;for(var m=0;m<u.length;){if(u[m].isZero()){u.splice(m,1);continue}for(var D=m+1;D<u.length;)u[m].intersect(u[D])?(b=!0,u[m].union(u[D]),u.splice(D,1)):D++;m++}}while(b);return this._paintRects=u,u},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(n,r){var a=this.dpr,l=this.dom,u=l.style,f=this.domBack;u&&(u.width=n+"px",u.height=r+"px"),l.width=n*a,l.height=r*a,f&&(f.width=n*a,f.height=r*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(n,r,a){var l=this.dom,u=this.ctx,f=l.width,d=l.height;r=r||this.clearColor;var h=this.motionBlur&&!n,p=this.lastFrameAlpha,m=this.dpr,S=this;h&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(l,0,0,f/m,d/m));var _=this.domBack;function w(E,b,D,A){if(u.clearRect(E,b,D,A),r&&r!=="transparent"){var O=void 0;if(T0(r)){var P=r.global||r.__width===D&&r.__height===A;O=P&&r.__canvasGradient||vb(u,r,{x:0,y:0,width:D,height:A}),r.__canvasGradient=O,r.__width=D,r.__height=A}else iH(r)&&(r.scaleX=r.scaleX||m,r.scaleY=r.scaleY||m,O=hb(u,r,{dirty:function(){S.setUnpainted(),S.__painter.refresh()}}));u.save(),u.fillStyle=O||r,u.fillRect(E,b,D,A),u.restore()}h&&(u.save(),u.globalAlpha=p,u.drawImage(_,E,b,D,A),u.restore())}!a||h?w(0,0,f,d):a.length&&W(a,function(E){w(E.x*m,E.y*m,E.width*m,E.height*m)})},e}(_l);const _E=Iq;var cF=1e5,kc=314159,g1=.01,zq=.001;function Fq(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function Bq(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var Uq=function(){function t(e,n,r,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var l=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=r=Re({},r||{}),this.dpr=r.devicePixelRatio||Y0,this._singleCanvas=l,this.root=e;var u=e.style;u&&(uL(e),e.innerHTML=""),this.storage=n;var f=this._zlevelList;this._prevDisplayList=[];var d=this._layers;if(l){var p=e,m=p.width,S=p.height;r.width!=null&&(m=r.width),r.height!=null&&(S=r.height),this.dpr=r.devicePixelRatio||1,p.width=m*this.dpr,p.height=S*this.dpr,this._width=m,this._height=S;var _=new _E(p,this,this.dpr);_.__builtin__=!0,_.initContext(),d[kc]=_,_.zlevel=kc,f.push(kc),this._domRoot=e}else{this._width=V_(e,0,r),this._height=V_(e,1,r);var h=this._domRoot=Bq(this._width,this._height);e.appendChild(h)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var n=this.storage.getDisplayList(!0),r=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,r,e,this._redrawId);for(var l=0;l<a.length;l++){var u=a[l],f=this._layers[u];if(!f.__builtin__&&f.refresh){var d=l===0?this._backgroundColor:null;f.refresh(d)}}return this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var n=e.length,r=this._hoverlayer;if(r&&r.clear(),!!n){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},l,u=0;u<n;u++){var f=e[u];f.__inHover&&(r||(r=this._hoverlayer=this.getLayer(cF)),l||(l=r.ctx,l.save()),Tc(l,f,a,u===n-1))}l&&l.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(cF)},t.prototype.paintOne=function(e,n){mP(e,n)},t.prototype._paintList=function(e,n,r,a){if(this._redrawId===a){r=r||!1,this._updateLayerStatus(e);var l=this._doPaintList(e,n,r),u=l.finished,f=l.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),f&&this._paintHoverList(e),u)this.eachLayer(function(h){h.afterBrush&&h.afterBrush()});else{var d=this;ux(function(){d._paintList(e,n,r,a)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(kc).ctx,n=this._domRoot.width,r=this._domRoot.height;e.clearRect(0,0,n,r),this.eachBuiltinLayer(function(a){a.virtual&&e.drawImage(a.dom,0,0,n,r)})},t.prototype._doPaintList=function(e,n,r){for(var a=this,l=[],u=this._opts.useDirtyRect,f=0;f<this._zlevelList.length;f++){var d=this._zlevelList[f],h=this._layers[d];h.__builtin__&&h!==this._hoverlayer&&(h.__dirty||r)&&l.push(h)}for(var p=!0,m=!1,S=function(E){var b=l[E],D=b.ctx,A=u&&b.createRepaintRects(e,n,_._width,_._height),O=r?b.__startIndex:b.__drawIndex,P=!r&&b.incremental&&Date.now,I=P&&Date.now(),F=b.zlevel===_._zlevelList[0]?_._backgroundColor:null;if(b.__startIndex===b.__endIndex)b.clear(!1,F,A);else if(O===b.__startIndex){var U=e[O];(!U.incremental||!U.notClear||r)&&b.clear(!1,F,A)}O===-1&&(console.error("For some unknown reason. drawIndex is -1"),O=b.__startIndex);var H,j=function(J){var ie={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(H=O;H<b.__endIndex;H++){var ce=e[H];if(ce.__inHover&&(m=!0),a._doPaintEl(ce,b,u,J,ie,H===b.__endIndex-1),P){var fe=Date.now()-I;if(fe>15)break}}ie.prevElClipPaths&&D.restore()};if(A)if(A.length===0)H=b.__endIndex;else for(var X=_.dpr,G=0;G<A.length;++G){var ee=A[G];D.save(),D.beginPath(),D.rect(ee.x*X,ee.y*X,ee.width*X,ee.height*X),D.clip(),j(ee),D.restore()}else D.save(),j(),D.restore();b.__drawIndex=H,b.__drawIndex<b.__endIndex&&(p=!1)},_=this,w=0;w<l.length;w++)S(w);return Tt.wxa&&W(this._layers,function(E){E&&E.ctx&&E.ctx.draw&&E.ctx.draw()}),{finished:p,needsRefreshHover:m}},t.prototype._doPaintEl=function(e,n,r,a,l,u){var f=n.ctx;if(r){var d=e.getPaintRect();(!a||d&&d.intersect(a))&&(Tc(f,e,l,u),e.setPrevPaintRect(d))}else Tc(f,e,l,u)},t.prototype.getLayer=function(e,n){this._singleCanvas&&!this._needsManuallyCompositing&&(e=kc);var r=this._layers[e];return r||(r=new _E("zr_"+e,this,this.dpr),r.zlevel=e,r.__builtin__=!0,this._layerConfig[e]?cn(r,this._layerConfig[e],!0):this._layerConfig[e-g1]&&cn(r,this._layerConfig[e-g1],!0),n&&(r.virtual=n),this.insertLayer(e,r),r.initContext()),r},t.prototype.insertLayer=function(e,n){var r=this._layers,a=this._zlevelList,l=a.length,u=this._domRoot,f=null,d=-1;if(r[e]){process.env.NODE_ENV!=="production"&&Yf("ZLevel "+e+" has been used already");return}if(!Fq(n)){process.env.NODE_ENV!=="production"&&Yf("Layer of zlevel "+e+" is not valid");return}if(l>0&&e>a[0]){for(d=0;d<l-1&&!(a[d]<e&&a[d+1]>e);d++);f=r[a[d]]}if(a.splice(d+1,0,e),r[e]=n,!n.virtual)if(f){var h=f.dom;h.nextSibling?u.insertBefore(n.dom,h.nextSibling):u.appendChild(n.dom)}else u.firstChild?u.insertBefore(n.dom,u.firstChild):u.appendChild(n.dom);n.__painter=this},t.prototype.eachLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var l=r[a];e.call(n,this._layers[l],l)}},t.prototype.eachBuiltinLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var l=r[a],u=this._layers[l];u.__builtin__&&e.call(n,u,l)}},t.prototype.eachOtherLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var l=r[a],u=this._layers[l];u.__builtin__||e.call(n,u,l)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(m,S){m.__dirty=m.__used=!1});function n(m){l&&(l.__endIndex!==m&&(l.__dirty=!0),l.__endIndex=m)}if(this._singleCanvas)for(var r=1;r<e.length;r++){var a=e[r];if(a.zlevel!==e[r-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var l=null,u=0,f,d;for(d=0;d<e.length;d++){var a=e[d],h=a.zlevel,p=void 0;f!==h&&(f=h,u=0),a.incremental?(p=this.getLayer(h+zq,this._needsManuallyCompositing),p.incremental=!0,u=1):p=this.getLayer(h+(u>0?g1:0),this._needsManuallyCompositing),p.__builtin__||Yf("ZLevel "+h+" has been used by unkown layer "+p.id),p!==l&&(p.__used=!0,p.__startIndex!==d&&(p.__dirty=!0),p.__startIndex=d,p.incremental?p.__drawIndex=-1:p.__drawIndex=d,n(d),l=p),a.__dirty&La&&!a.__inHover&&(p.__dirty=!0,p.incremental&&p.__drawIndex<0&&(p.__drawIndex=d))}n(d),this.eachBuiltinLayer(function(m,S){!m.__used&&m.getElementCount()>0&&(m.__dirty=!0,m.__startIndex=m.__endIndex=m.__drawIndex=0),m.__dirty&&m.__drawIndex<0&&(m.__drawIndex=m.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,W(this._layers,function(n){n.setUnpainted()})},t.prototype.configLayer=function(e,n){if(n){var r=this._layerConfig;r[e]?cn(r[e],n,!0):r[e]=n;for(var a=0;a<this._zlevelList.length;a++){var l=this._zlevelList[a];if(l===e||l===e+g1){var u=this._layers[l];cn(u,r[e],!0)}}}},t.prototype.delLayer=function(e){var n=this._layers,r=this._zlevelList,a=n[e];a&&(a.dom.parentNode.removeChild(a.dom),delete n[e],r.splice(dn(r,e),1))},t.prototype.resize=function(e,n){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var a=this._opts,l=this.root;if(e!=null&&(a.width=e),n!=null&&(a.height=n),e=V_(l,0,a),n=V_(l,1,a),r.style.display="",this._width!==e||n!==this._height){r.style.width=e+"px",r.style.height=n+"px";for(var u in this._layers)this._layers.hasOwnProperty(u)&&this._layers[u].resize(e,n);this.refresh(!0)}this._width=e,this._height=n}else{if(e==null||n==null)return;this._width=e,this._height=n,this.getLayer(kc).resize(e,n)}return this},t.prototype.clearLayer=function(e){var n=this._layers[e];n&&n.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[kc].dom;var n=new _E("image",this,e.pixelRatio||this.dpr);n.initContext(),n.clear(!1,e.backgroundColor||this._backgroundColor);var r=n.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=n.dom.width,l=n.dom.height;this.eachLayer(function(m){m.__builtin__?r.drawImage(m.dom,0,0,a,l):m.renderToCanvas&&(r.save(),m.renderToCanvas(r),r.restore())})}else for(var u={inHover:!1,viewWidth:this._width,viewHeight:this._height},f=this.storage.getDisplayList(!0),d=0,h=f.length;d<h;d++){var p=f[d];Tc(r,p,u,d===h-1)}return n.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();const Vq=Uq;function Hq(t){t.registerPainter("canvas",Vq)}const Gq={main:"_main_5reof_1"};$g([XX,jX,wX,fq,lq,fW,FY,Pq,Hq]);const $q=t=>{const e=st.useRef(null),n=st.useRef(null),r=st.useRef(null);st.useEffect(()=>(e.current&&n.current&&(r.current=new ResizeObserver(u=>{for(const f of u)f.target===e.current&&l()}),r.current.observe(e.current)),()=>{var u;e.current&&((u=r.current)==null||u.unobserve(e.current)),r.current=null}),[e.current,n.current]),st.useEffect(()=>{e.current&&!n.current&&(n.current=$7(e.current))},[e.current]),st.useEffect(()=>{n.current&&e.current&&n.current.setOption(t.option)},[n.current]);const a=()=>{n.current&&n.current.resize()},{run:l}=fU.useDebounceFn(a,{wait:300});return Ne("div",{ref:e,className:Gq.main})},dF={editableCellValueWrap:"_editableCellValueWrap_1hw6h_1"},vF=st.createContext(null),jq=({index:t,...e})=>{const[n]=ft.Form.useForm();return Ne(ft.Form,{form:n,component:!1,children:Ne(vF.Provider,{value:n,children:Ne("tr",{...e})})})};function Yq(t){const{title:e,editable:n,children:r,dataIndex:a,record:l,rules:u,handleSave:f,type:d="input",selectProps:h,inputProps:p,textareaProps:m,...S}=t,[_,w]=st.useState(!1),E=st.useRef(null),b=st.useContext(vF);st.useEffect(()=>{_&&E.current.focus()},[_]);const D=()=>{w(!_),b.setFieldsValue({[a]:l[a]})},A=async()=>{try{const I=await b.validateFields();D(),f({...l,...I})}catch(I){console.log("Save failed:",I)}},O=()=>{switch(d){case"input":return Ne(ft.Input,{ref:E,onPressEnter:A,onBlur:A,...p});case"select":return Ne(ft.Select,{ref:E,onBlur:A,...h});case"textarea":return Ne(ft.Input.TextArea,{autoSize:!0,ref:E,onBlur:A,...m});default:return Ne(ft.Input,{ref:E,onPressEnter:A,onBlur:A,...p})}};let P=r;return n&&(P=_?Ne(ft.Form.Item,{style:{margin:0},name:a,rules:u,children:O()}):Ne("div",{className:dF.editableCellValueWrap,style:{paddingRight:24},onClick:D,children:r})),Ne("td",{children:P})}function Wq(t){const{columns:e,handleSave:n,...r}=t,a={body:{row:jq,cell:Yq}},l=e==null?void 0:e.map(u=>u.editable?{...u,onCell:f=>({...u,record:f,handleSave:n})}:u);return console.log("loading",r.loading),Ne(ft.Table,{...r,components:a,rowClassName:()=>dF.editableRow,columns:l,pagination:!1})}function SE(){return SE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},SE.apply(this,arguments)}var CE={exports:{}},rn={};var hF;function Xq(){if(hF)return rn;hF=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,u=t?Symbol.for("react.provider"):60109,f=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,h=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,S=t?Symbol.for("react.suspense_list"):60120,_=t?Symbol.for("react.memo"):60115,w=t?Symbol.for("react.lazy"):60116,E=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,D=t?Symbol.for("react.responder"):60118,A=t?Symbol.for("react.scope"):60119;function O(I){if(typeof I=="object"&&I!==null){var F=I.$$typeof;switch(F){case e:switch(I=I.type,I){case d:case h:case r:case l:case a:case m:return I;default:switch(I=I&&I.$$typeof,I){case f:case p:case w:case _:case u:return I;default:return F}}case n:return F}}}function P(I){return O(I)===h}return rn.AsyncMode=d,rn.ConcurrentMode=h,rn.ContextConsumer=f,rn.ContextProvider=u,rn.Element=e,rn.ForwardRef=p,rn.Fragment=r,rn.Lazy=w,rn.Memo=_,rn.Portal=n,rn.Profiler=l,rn.StrictMode=a,rn.Suspense=m,rn.isAsyncMode=function(I){return P(I)||O(I)===d},rn.isConcurrentMode=P,rn.isContextConsumer=function(I){return O(I)===f},rn.isContextProvider=function(I){return O(I)===u},rn.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===e},rn.isForwardRef=function(I){return O(I)===p},rn.isFragment=function(I){return O(I)===r},rn.isLazy=function(I){return O(I)===w},rn.isMemo=function(I){return O(I)===_},rn.isPortal=function(I){return O(I)===n},rn.isProfiler=function(I){return O(I)===l},rn.isStrictMode=function(I){return O(I)===a},rn.isSuspense=function(I){return O(I)===m},rn.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===r||I===h||I===l||I===a||I===m||I===S||typeof I=="object"&&I!==null&&(I.$$typeof===w||I.$$typeof===_||I.$$typeof===u||I.$$typeof===f||I.$$typeof===p||I.$$typeof===b||I.$$typeof===D||I.$$typeof===A||I.$$typeof===E)},rn.typeOf=O,rn}var an={};var pF;function qq(){return pF||(pF=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,u=t?Symbol.for("react.provider"):60109,f=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,h=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,S=t?Symbol.for("react.suspense_list"):60120,_=t?Symbol.for("react.memo"):60115,w=t?Symbol.for("react.lazy"):60116,E=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,D=t?Symbol.for("react.responder"):60118,A=t?Symbol.for("react.scope"):60119;function O(Se){return typeof Se=="string"||typeof Se=="function"||Se===r||Se===h||Se===l||Se===a||Se===m||Se===S||typeof Se=="object"&&Se!==null&&(Se.$$typeof===w||Se.$$typeof===_||Se.$$typeof===u||Se.$$typeof===f||Se.$$typeof===p||Se.$$typeof===b||Se.$$typeof===D||Se.$$typeof===A||Se.$$typeof===E)}function P(Se){if(typeof Se=="object"&&Se!==null){var Zt=Se.$$typeof;switch(Zt){case e:var Et=Se.type;switch(Et){case d:case h:case r:case l:case a:case m:return Et;default:var Pn=Et&&Et.$$typeof;switch(Pn){case f:case p:case w:case _:case u:return Pn;default:return Zt}}case n:return Zt}}}var I=d,F=h,U=f,H=u,j=e,X=p,G=r,ee=w,J=_,ie=n,ce=l,fe=a,Pe=m,ae=!1;function ge(Se){return ae||(ae=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),pe(Se)||P(Se)===d}function pe(Se){return P(Se)===h}function Le(Se){return P(Se)===f}function Ge(Se){return P(Se)===u}function St(Se){return typeof Se=="object"&&Se!==null&&Se.$$typeof===e}function It(Se){return P(Se)===p}function Dn(Se){return P(Se)===r}function Xt(Se){return P(Se)===w}function Mn(Se){return P(Se)===_}function on(Se){return P(Se)===n}function zt(Se){return P(Se)===l}function Ft(Se){return P(Se)===a}function $e(Se){return P(Se)===m}an.AsyncMode=I,an.ConcurrentMode=F,an.ContextConsumer=U,an.ContextProvider=H,an.Element=j,an.ForwardRef=X,an.Fragment=G,an.Lazy=ee,an.Memo=J,an.Portal=ie,an.Profiler=ce,an.StrictMode=fe,an.Suspense=Pe,an.isAsyncMode=ge,an.isConcurrentMode=pe,an.isContextConsumer=Le,an.isContextProvider=Ge,an.isElement=St,an.isForwardRef=It,an.isFragment=Dn,an.isLazy=Xt,an.isMemo=Mn,an.isPortal=on,an.isProfiler=zt,an.isStrictMode=Ft,an.isSuspense=$e,an.isValidElementType=O,an.typeOf=P}()),an}(function(t){process.env.NODE_ENV==="production"?t.exports=Xq():t.exports=qq()})(CE);function wE(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return st.Children.forEach(t,function(r){r==null&&!e.keepEmpty||(Array.isArray(r)?n=n.concat(wE(r)):CE.exports.isFragment(r)&&r.props?n=n.concat(wE(r.props.children,e)):n.push(r))}),n}function Qq(t,e){typeof t=="function"?t(e):gu(t)==="object"&&t&&"current"in t&&(t.current=e)}function Zq(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.filter(function(a){return a});return r.length<=1?r[0]:function(a){e.forEach(function(l){Qq(l,a)})}}function Kq(t){var e,n,r=CE.exports.isMemo(t)?t.type.type:t.type;return!(typeof r=="function"&&!(!((e=r.prototype)===null||e===void 0)&&e.render)||typeof t=="function"&&!(!((n=t.prototype)===null||n===void 0)&&n.render))}function gF(t){return t instanceof HTMLElement?t:XA.findDOMNode(t)}var mF=function(){if(typeof Map<"u")return Map;function t(e,n){var r=-1;return e.some(function(a,l){return a[0]===n?(r=l,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(n){var r=t(this.__entries__,n),a=this.__entries__[r];return a&&a[1]},e.prototype.set=function(n,r){var a=t(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},e.prototype.delete=function(n){var r=this.__entries__,a=t(r,n);~a&&r.splice(a,1)},e.prototype.has=function(n){return!!~t(this.__entries__,n)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var a=0,l=this.__entries__;a<l.length;a++){var u=l[a];n.call(r,u[1],u[0])}},e}()}(),xE=typeof window<"u"&&typeof document<"u"&&window.document===document,m1=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),Jq=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(m1):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),eQ=2;function tQ(t,e){var n=!1,r=!1,a=0;function l(){n&&(n=!1,t()),r&&f()}function u(){Jq(l)}function f(){var d=Date.now();if(n){if(d-a<eQ)return;r=!0}else n=!0,r=!1,setTimeout(u,e);a=d}return f}var nQ=20,rQ=["top","right","bottom","left","width","height","size","weight"],iQ=typeof MutationObserver<"u",aQ=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=tQ(this.refresh.bind(this),nQ)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var n=this.observers_,r=n.indexOf(e);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return e.forEach(function(n){return n.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!xE||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),iQ?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!xE||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var n=e.propertyName,r=n===void 0?"":n,a=rQ.some(function(l){return!!~r.indexOf(l)});a&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),yF=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var a=r[n];Object.defineProperty(t,a,{value:e[a],enumerable:!1,writable:!1,configurable:!0})}return t},zv=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||m1},_F=_1(0,0,0,0);function y1(t){return parseFloat(t)||0}function SF(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(r,a){var l=t["border-"+a+"-width"];return r+y1(l)},0)}function oQ(t){for(var e=["top","right","bottom","left"],n={},r=0,a=e;r<a.length;r++){var l=a[r],u=t["padding-"+l];n[l]=y1(u)}return n}function lQ(t){var e=t.getBBox();return _1(0,0,e.width,e.height)}function uQ(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return _F;var r=zv(t).getComputedStyle(t),a=oQ(r),l=a.left+a.right,u=a.top+a.bottom,f=y1(r.width),d=y1(r.height);if(r.boxSizing==="border-box"&&(Math.round(f+l)!==e&&(f-=SF(r,"left","right")+l),Math.round(d+u)!==n&&(d-=SF(r,"top","bottom")+u)),!fQ(t)){var h=Math.round(f+l)-e,p=Math.round(d+u)-n;Math.abs(h)!==1&&(f-=h),Math.abs(p)!==1&&(d-=p)}return _1(a.left,a.top,f,d)}var sQ=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof zv(t).SVGGraphicsElement}:function(t){return t instanceof zv(t).SVGElement&&typeof t.getBBox=="function"}}();function fQ(t){return t===zv(t).document.documentElement}function cQ(t){return xE?sQ(t)?lQ(t):uQ(t):_F}function dQ(t){var e=t.x,n=t.y,r=t.width,a=t.height,l=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,u=Object.create(l.prototype);return yF(u,{x:e,y:n,width:r,height:a,top:n,right:e+r,bottom:a+n,left:e}),u}function _1(t,e,n,r){return{x:t,y:e,width:n,height:r}}var vQ=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=_1(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=cQ(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t}(),hQ=function(){function t(e,n){var r=dQ(n);yF(this,{target:e,contentRect:r})}return t}(),pQ=function(){function t(e,n,r){if(this.activeObservations_=[],this.observations_=new mF,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=r}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof zv(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new vQ(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof zv(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)&&(n.delete(e),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new hQ(r.target,r.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),CF=typeof WeakMap<"u"?new WeakMap:new mF,wF=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=aQ.getInstance(),r=new pQ(e,n,this);CF.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach(function(t){wF.prototype[t]=function(){var e;return(e=CF.get(this))[t].apply(e,arguments)}});var gQ=function(){return typeof m1.ResizeObserver<"u"?m1.ResizeObserver:wF}(),Au=new Map;function xF(t){t.forEach(function(e){var n,r=e.target;(n=Au.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var TF=new gQ(xF);process.env.NODE_ENV,process.env.NODE_ENV;function mQ(t,e){Au.has(t)||(Au.set(t,new Set),TF.observe(t)),Au.get(t).add(e)}function yQ(t,e){Au.has(t)&&(Au.get(t).delete(e),Au.get(t).size||(TF.unobserve(t),Au.delete(t)))}function _Q(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bF(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,uA(r.key),r)}}function SQ(t,e,n){return e&&bF(t.prototype,e),n&&bF(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function TE(t,e){return TE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},TE(t,e)}function CQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&TE(t,e)}function S1(t){return S1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},S1(t)}function wQ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xQ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function TQ(t,e){if(e&&(gu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xQ(t)}function bQ(t){var e=wQ();return function(){var r=S1(t),a;if(e){var l=S1(this).constructor;a=Reflect.construct(r,arguments,l)}else a=r.apply(this,arguments);return TQ(this,a)}}var EQ=function(t){CQ(n,t);var e=bQ(n);function n(){return _Q(this,n),e.apply(this,arguments)}return SQ(n,[{key:"render",value:function(){return this.props.children}}]),n}(Nt.Component),bE=Nt.createContext(null);function DQ(t){var e=t.children,n=t.onBatchResize,r=Nt.useRef(0),a=Nt.useRef([]),l=Nt.useContext(bE),u=Nt.useCallback(function(f,d,h){r.current+=1;var p=r.current;a.current.push({size:f,element:d,data:h}),Promise.resolve().then(function(){p===r.current&&(n==null||n(a.current),a.current=[])}),l==null||l(f,d,h)},[n,l]);return Nt.createElement(bE.Provider,{value:u},e)}function MQ(t){var e=t.children,n=t.disabled,r=Nt.useRef(null),a=Nt.useRef(null),l=Nt.useContext(bE),u=typeof e=="function",f=u?e(r):e,d=Nt.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),h=!u&&Nt.isValidElement(f)&&Kq(f),p=h?f.ref:null,m=Nt.useMemo(function(){return Zq(p,r)},[p,r]),S=Nt.useRef(t);S.current=t;var _=Nt.useCallback(function(w){var E=S.current,b=E.onResize,D=E.data,A=w.getBoundingClientRect(),O=A.width,P=A.height,I=w.offsetWidth,F=w.offsetHeight,U=Math.floor(O),H=Math.floor(P);if(d.current.width!==U||d.current.height!==H||d.current.offsetWidth!==I||d.current.offsetHeight!==F){var j={width:U,height:H,offsetWidth:I,offsetHeight:F};d.current=j;var X=I===Math.round(O)?O:I,G=F===Math.round(P)?P:F,ee=$n($n({},j),{},{offsetWidth:X,offsetHeight:G});l==null||l(ee,w,D),b&&Promise.resolve().then(function(){b(ee,w)})}},[]);return Nt.useEffect(function(){var w=gF(r.current)||gF(a.current);return w&&!n&&mQ(w,_),function(){return yQ(w,_)}},[r.current,n]),Nt.createElement(EQ,{ref:a},h?Nt.cloneElement(f,{ref:m}):f)}var RQ="rc-observer-key";function EF(t){var e=t.children,n=typeof e=="function"?[e]:wE(e);return process.env.NODE_ENV!=="production"&&(n.length>1?Rw(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&Rw(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(r,a){var l=(r==null?void 0:r.key)||"".concat(RQ,"-").concat(a);return Nt.createElement(MQ,SE({},t,{key:l}),r)})}EF.Collection=DQ;const Fv={grid:"_grid_9vys0_1",cell:"_cell_9vys0_1",editBox:"_editBox_9vys0_7",editForm:"_editForm_9vys0_16"};function AQ(t){const{columns:e,scroll:n,handleSave:r}=t,[a,l]=st.useState(0),u=e.filter(({width:S})=>!S).length,f=e.map(S=>S.width?S:{...S,width:Math.floor(a/u)}),d=st.useRef(),[h]=st.useState(()=>{const S={};return Object.defineProperty(S,"scrollLeft",{get:()=>{var _,w;return d.current?(w=(_=d.current)==null?void 0:_.state)==null?void 0:w.scrollLeft:null},set:_=>{d.current&&d.current.scrollTo({scrollLeft:_})}}),S}),p=()=>{var S;(S=d.current)==null||S.resetAfterIndices({columnIndex:0,shouldForceUpdate:!0})};st.useEffect(()=>p,[a]);const m=(S,{scrollbarSize:_,ref:w,onScroll:E})=>{w.current=h;const b=S.length*54;return Ne(cU.VariableSizeGrid,{ref:d,className:Fv.grid,columnCount:f.length,columnWidth:D=>{const{width:A}=f[D];return b>n.y&&D===f.length-1?A-_-1:A},height:n.y,rowCount:S.length,rowHeight:()=>54,width:a,onScroll:({scrollLeft:D})=>{E({scrollLeft:D})},children:({columnIndex:D,rowIndex:A,style:O})=>Ne("div",{className:$d(Fv.cell,{[Fv.cellLast]:D===f.length-1}),style:O,children:Ne(LQ,{data:S[A],handleSave:r,column:f[D]})})})};return Ne(EF,{onResize:({width:S})=>{l(S)},children:Ne(ft.Table,{...t,className:Fv.table,columns:f,pagination:!1,components:{body:m}})})}function LQ(t){const{column:e,data:n,handleSave:r}=t,[a,l]=st.useState(!1),u=st.useRef(null),[f]=ft.Form.useForm();st.useEffect(()=>{a&&u.current.focus()},[a]);const d=async()=>{try{const m=await f.validateFields();h(),r({...n,...m})}catch(m){console.log("Save failed:",m)}},h=()=>{l(!a),e.dataIndex&&f.setFieldsValue({[e.dataIndex]:n[e.dataIndex]})};let p=n[e.dataIndex];return e.editable&&(p=a?Ne(ft.Form,{form:f,className:Fv.editForm,children:Ne(ft.Form.Item,{style:{margin:0},name:e.dataIndex,rules:e.rules,children:Ne(ft.Input,{ref:u,onPressEnter:d,onBlur:d,...e.inputProps})})}):Ne("div",{className:Fv.editBox,onClick:h,children:n[e.dataIndex]})),Ne(oA,{children:p})}const br={main:"_main_17ruh_1",item:"_item_17ruh_5",tail:"_tail_17ruh_10",node:"_node_17ruh_29",content:"_content_17ruh_40",collpase:"_collpase_17ruh_45",btn:"_btn_17ruh_57",title:"_title_17ruh_65",dateWrapper:"_dateWrapper_17ruh_71",remark:"_remark_17ruh_78",itemActive:"_itemActive_17ruh_89",itemDone:"_itemDone_17ruh_102",itemUnDo:"_itemUnDo_17ruh_108"},OQ=t=>{const{data:e,current:n}=t,[r,a]=st.useState(!1),l=st.useMemo(()=>!n||e.length===0?0:e.findIndex(h=>h.PNId===n),[n,e]),u=st.useMemo(()=>l>1?r?0:l-1:0,[l,r]),f=()=>{a(!0)};return zr("ul",{className:br.main,children:[l>1&&!r&&zr("li",{className:$d(br.item,br.itemDone),children:[Ne("div",{className:br.tail}),Ne("div",{className:br.node}),Ne("div",{className:br.content,children:zr("div",{className:br.collpase,children:[zr("div",{children:["已收起",Ne("span",{children:l-1}),"个节点"]}),zr("a",{className:br.btn,onClick:f,children:["展开节点",Ne(fV,{})]})]})})]}),e.slice(u).map((d,h)=>zr("li",{className:$d(br.item,l===h+u?br.itemActive:l>h+u?br.itemDone:br.itemUnDo),children:[Ne("div",{className:br.tail}),Ne("div",{className:br.node}),zr("div",{className:br.content,children:[Ne("div",{className:br.title,children:d.PNName}),zr("div",{className:br.dateWrapper,children:[d.PlanFinishDate&&zr("span",{children:["预计完成时间: ",d.PlanFinishDate]}),d.UpdateTime&&zr("span",{style:{color:"#333",fontWeight:"bold"},children:["实际完成时间: ",d.UpdateTime]}),r&&l-1===h&&zr("a",{className:br.btn,onClick:()=>a(!1),children:["收起节点 ",Ne(gV,{})]})]}),d.Remark&&Ne("div",{className:br.remark,children:d.Remark})]})]},d.PNId))]})},kQ=t=>((()=>{ft.Modal.info({icon:null,title:"流程节点",width:700,content:Ne(OQ,{...t}),closable:!0,footer:null,maskClosable:!0})})(),null),NQ=(t,e)=>{const n=new URL(t),r=new URL(e);return n.protocol===r.protocol&&n.host===r.host&&n.port===r.port},PQ=t=>{const e=new URL(t).href.split("/");return e[e.length-1]},IQ=t=>{var n;return(n=t.headers.get("content-disposition"))==null?void 0:n.split(";")[1].split("=")[1]},zQ=(t,e)=>{const n=e||PQ(t);if(NQ(t,window.location.href)){EE(t,n);return}let r=e;fetch(t,{method:"get"}).then(a=>(r||(r=IQ(a)),a.blob())).then(a=>{DF(a,r||n)}).catch(()=>{EE(t,"")})},DF=(t,e)=>{let n=window.URL.createObjectURL(t);const r=window.navigator;if(r.msSaveOrOpenBlob){r.msSaveOrOpenBlob(t,e);return}EE(n,e),window.URL.revokeObjectURL(n)},EE=(t,e)=>{let n=document.createElement("a");n.style.display="none",n.href=t,n.target="_blank",n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)},FQ=Object.freeze(Object.defineProperty({__proto__:null,downloadUrl:zQ,downloadBlob:DF},Symbol.toStringTag,{value:"Module"}));class BQ{constructor(e){uU(this,"options",{id:"",canvasId:"verifyCanvas",width:100,height:30,type:"blend",code:""});this.options=e}GVerify(){this.options.numArr="0,1,2,3,4,5,6,7,8,9".split(","),this.options.letterArr=this.getAllLetter(),this._init(),this.refresh()}_init(){const e=document.getElementById(this.options.id),n=document.createElement("canvas");n.id=this.options.canvasId,n.width=Number(this.options.width),n.height=Number(this.options.height),n.style.cursor="pointer",n.innerHTML="您的浏览器版本不支持canvas",e&&e.appendChild(n),n.onclick=()=>{this.refresh()}}refresh(){this.options.code="";const e=document.getElementById(this.options.canvasId);let n,r=[];if(e.getContext)n=e.getContext("2d");else return;n.textBaseline="middle",n.fillStyle=this.randomColor(180,240),n.fillRect(0,0,this.options.width,this.options.height),this.options.type=="blend"?r=this.options.numArr.concat(this.options.letterArr):this.options.type=="number"?r=this.options.numArr:r=this.options.letterArr;for(let a=1;a<=4;a++){const l=r[this.randomNum(0,r.length)];this.options.code+=l,n.font="20px SimHei",n.fillStyle=this.randomColor(50,160),n.shadowBlur=this.randomNum(-3,3),n.shadowColor="rgba(0, 0, 0, 0.3)";const u=Number(this.options.width)/5*a,f=Number(this.options.height)/2,d=this.randomNum(-30,30);n.translate(u,f),n.rotate(d*Math.PI/180),n.fillText(l,0,0),n.rotate(-d*Math.PI/180),n.translate(-u,-f)}for(let a=0;a<2;a++)n.strokeStyle=this.randomColor(40,180),n.beginPath(),n.moveTo(this.randomNum(0,Number(this.options.width)/2),this.randomNum(0,Number(this.options.height)/2)),n.lineTo(this.randomNum(0,Number(this.options.width)/2),this.randomNum(0,Number(this.options.height))),n.stroke();for(let a=0;a<Number(this.options.width)/10;a++)n.fillStyle=this.randomColor(0,255),n.beginPath(),n.arc(this.randomNum(0,this.options.width),this.randomNum(0,this.options.height),1,0,2*Math.PI),n.fill()}validate(e){const n=e.toLowerCase(),r=this.options.code.toLowerCase();return n==r}getAllLetter(){return"a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z".split(",")}randomNum(e,n){return Math.floor(Math.random()*(n-e)+e)}randomColor(e,n){const r=this.randomNum(e,n),a=this.randomNum(e,n),l=this.randomNum(e,n);return"rgb("+r+","+a+","+l+")"}}const UQ=Object.freeze(Object.defineProperty({__proto__:null,getGVerify:BQ},Symbol.toStringTag,{value:"Module"}));fn.BackHeader=wV,fn.CreateForm=ZA,fn.Echarts=$q,fn.EditTable=Wq,fn.SearchTable=HV,fn.UploadFile=QA,fn.VirtualTable=AQ,fn.download=FQ,fn.fileType=xV,fn.showWorkFlow=kQ,fn.utils=OV,fn.verfyCode=UQ,Object.defineProperty(fn,Symbol.toStringTag,{value:"Module"})});
220
+ `)),Ht(r)),l.push({dimIdx:D.index,parser:A,comparator:new _N(S,w)})});var u=e.sourceFormat;u!==ki&&u!==Fo&&(process.env.NODE_ENV!=="production"&&(r='sourceFormat "'+u+'" is not supported yet'),Ht(r));for(var f=[],d=0,h=e.count();d<h;d++)f.push(e.getRawDataItem(d));return f.sort(function(p,m){for(var S=0;S<l.length;S++){var _=l[S],w=e.retrieveValueFromItem(p,_.dimIdx),E=e.retrieveValueFromItem(m,_.dimIdx);_.parser&&(w=_.parser(w),E=_.parser(E));var b=_.comparator.evaluate(w,E);if(b!==0)return b}return 0}),{data:f}}};function lq(t){t.registerTransform(aq),t.registerTransform(oq)}var uq=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return e.prototype.init=function(n,r,a){t.prototype.init.call(this,n,r,a),this._sourceManager=new bN(this),EN(this)},e.prototype.mergeOption=function(n,r){t.prototype.mergeOption.call(this,n,r),EN(this)},e.prototype.optionUpdated=function(){this._sourceManager.dirty()},e.prototype.getSourceManager=function(){return this._sourceManager},e.type="dataset",e.defaultOption={seriesLayoutBy:Al},e}(En),sq=function(t){Pt(e,t);function e(){var n=t!==null&&t.apply(this,arguments)||this;return n.type="dataset",n}return e.type="dataset",e}(Du);function fq(t){t.registerComponentModel(uq),t.registerComponentView(sq)}var Ll=As.CMD;function Nv(t,e){return Math.abs(t-e)<1e-5}function dE(t){var e=t.data,n=t.len(),r=[],a,l=0,u=0,f=0,d=0;function h(J,ie){a&&a.length>2&&r.push(a),a=[J,ie]}function p(J,ie,ce,fe){Nv(J,ce)&&Nv(ie,fe)||a.push(J,ie,ce,fe,ce,fe)}function m(J,ie,ce,fe,Pe,ae){var ge=Math.abs(ie-J),pe=Math.tan(ge/4)*4/3,Le=ie<J?-1:1,Ge=Math.cos(J),St=Math.sin(J),It=Math.cos(ie),Dn=Math.sin(ie),Xt=Ge*Pe+ce,Mn=St*ae+fe,on=It*Pe+ce,zt=Dn*ae+fe,Ft=Pe*pe*Le,$e=ae*pe*Le;a.push(Xt-Ft*St,Mn+$e*Ge,on+Ft*Dn,zt-$e*It,on,zt)}for(var S,_,w,E,b=0;b<n;){var D=e[b++],A=b===1;switch(A&&(l=e[b],u=e[b+1],f=l,d=u,(D===Ll.L||D===Ll.C||D===Ll.Q)&&(a=[f,d])),D){case Ll.M:l=f=e[b++],u=d=e[b++],h(f,d);break;case Ll.L:S=e[b++],_=e[b++],p(l,u,S,_),l=S,u=_;break;case Ll.C:a.push(e[b++],e[b++],e[b++],e[b++],l=e[b++],u=e[b++]);break;case Ll.Q:S=e[b++],_=e[b++],w=e[b++],E=e[b++],a.push(l+2/3*(S-l),u+2/3*(_-u),w+2/3*(S-w),E+2/3*(_-E),w,E),l=w,u=E;break;case Ll.A:var O=e[b++],P=e[b++],I=e[b++],F=e[b++],U=e[b++],H=e[b++]+U;b+=1;var j=!e[b++];S=Math.cos(U)*I+O,_=Math.sin(U)*F+P,A?(f=S,d=_,h(f,d)):p(l,u,S,_),l=Math.cos(H)*I+O,u=Math.sin(H)*F+P;for(var X=(j?-1:1)*Math.PI/2,G=U;j?G>H:G<H;G+=X){var ee=j?Math.max(G+X,H):Math.min(G+X,H);m(G,ee,O,P,I,F)}break;case Ll.R:f=l=e[b++],d=u=e[b++],S=f+e[b++],_=d+e[b++],h(S,d),p(S,d,S,_),p(S,_,f,_),p(f,_,f,d),p(f,d,S,d);break;case Ll.Z:a&&p(l,u,f,d),l=f,u=d;break}}return a&&a.length>2&&r.push(a),r}function vE(t,e,n,r,a,l,u,f,d,h){if(Nv(t,n)&&Nv(e,r)&&Nv(a,u)&&Nv(l,f)){d.push(u,f);return}var p=2/h,m=p*p,S=u-t,_=f-e,w=Math.sqrt(S*S+_*_);S/=w,_/=w;var E=n-t,b=r-e,D=a-u,A=l-f,O=E*E+b*b,P=D*D+A*A;if(O<m&&P<m){d.push(u,f);return}var I=S*E+_*b,F=-S*D-_*A,U=O-I*I,H=P-F*F;if(U<m&&I>=0&&H<m&&F>=0){d.push(u,f);return}var j=[],X=[];Es(t,n,a,u,.5,j),Es(e,r,l,f,.5,X),vE(j[0],X[0],j[1],X[1],j[2],X[2],j[3],X[3],d,h),vE(j[4],X[4],j[5],X[5],j[6],X[6],j[7],X[7],d,h)}function cq(t,e){var n=dE(t),r=[];e=e||1;for(var a=0;a<n.length;a++){var l=n[a],u=[],f=l[0],d=l[1];u.push(f,d);for(var h=2;h<l.length;){var p=l[h++],m=l[h++],S=l[h++],_=l[h++],w=l[h++],E=l[h++];vE(f,d,p,m,S,_,w,E,u,e),f=w,d=E}r.push(u)}return r}function Yz(t,e,n){var r=t[e],a=t[1-e],l=Math.abs(r/a),u=Math.ceil(Math.sqrt(l*n)),f=Math.floor(n/u);f===0&&(f=1,u=n);for(var d=[],h=0;h<u;h++)d.push(f);var p=u*f,m=n-p;if(m>0)for(var h=0;h<m;h++)d[h%u]+=1;return d}function Wz(t,e,n){for(var r=t.r0,a=t.r,l=t.startAngle,u=t.endAngle,f=Math.abs(u-l),d=f*a,h=a-r,p=d>Math.abs(h),m=Yz([d,h],p?0:1,e),S=(p?f:h)/m.length,_=0;_<m.length;_++)for(var w=(p?h:f)/m[_],E=0;E<m[_];E++){var b={};p?(b.startAngle=l+S*_,b.endAngle=l+S*(_+1),b.r0=r+w*E,b.r=r+w*(E+1)):(b.startAngle=l+w*E,b.endAngle=l+w*(E+1),b.r0=r+S*_,b.r=r+S*(_+1)),b.clockwise=t.clockwise,b.cx=t.cx,b.cy=t.cy,n.push(b)}}function dq(t,e,n){for(var r=t.width,a=t.height,l=r>a,u=Yz([r,a],l?0:1,e),f=l?"width":"height",d=l?"height":"width",h=l?"x":"y",p=l?"y":"x",m=t[f]/u.length,S=0;S<u.length;S++)for(var _=t[d]/u[S],w=0;w<u[S];w++){var E={};E[h]=S*m,E[p]=w*_,E[f]=m,E[d]=_,E.x+=t.x,E.y+=t.y,n.push(E)}}function Xz(t,e,n,r){return t*r-n*e}function vq(t,e,n,r,a,l,u,f){var d=n-t,h=r-e,p=u-a,m=f-l,S=Xz(p,m,d,h);if(Math.abs(S)<1e-6)return null;var _=t-a,w=e-l,E=Xz(_,w,p,m)/S;return E<0||E>1?null:new ht(E*d+t,E*h+e)}function hq(t,e,n){var r=new ht;ht.sub(r,n,e),r.normalize();var a=new ht;ht.sub(a,t,e);var l=a.dot(r);return l}function Pv(t,e){var n=t[t.length-1];n&&n[0]===e[0]&&n[1]===e[1]||t.push(e)}function pq(t,e,n){for(var r=t.length,a=[],l=0;l<r;l++){var u=t[l],f=t[(l+1)%r],d=vq(u[0],u[1],f[0],f[1],e.x,e.y,n.x,n.y);d&&a.push({projPt:hq(d,e,n),pt:d,idx:l})}if(a.length<2)return[{points:t},{points:t}];a.sort(function(b,D){return b.projPt-D.projPt});var h=a[0],p=a[a.length-1];if(p.idx<h.idx){var m=h;h=p,p=m}for(var S=[h.pt.x,h.pt.y],_=[p.pt.x,p.pt.y],w=[S],E=[_],l=h.idx+1;l<=p.idx;l++)Pv(w,t[l].slice());Pv(w,_),Pv(w,S);for(var l=p.idx+1;l<=h.idx+r;l++)Pv(E,t[l%r].slice());return Pv(E,S),Pv(E,_),[{points:w},{points:E}]}function qz(t){var e=t.points,n=[],r=[];zO(e,n,r);var a=new Wt(n[0],n[1],r[0]-n[0],r[1]-n[1]),l=a.width,u=a.height,f=a.x,d=a.y,h=new ht,p=new ht;return l>u?(h.x=p.x=f+l/2,h.y=d,p.y=d+u):(h.y=p.y=d+u/2,h.x=f,p.x=f+l),pq(e,h,p)}function d1(t,e,n,r){if(n===1)r.push(e);else{var a=Math.floor(n/2),l=t(e);d1(t,l[0],a,r),d1(t,l[1],n-a,r)}return r}function gq(t,e){for(var n=[],r=0;r<e;r++)n.push(pT(t));return n}function mq(t,e){e.setStyle(t.style),e.z=t.z,e.z2=t.z2,e.zlevel=t.zlevel}function yq(t){for(var e=[],n=0;n<t.length;)e.push([t[n++],t[n++]]);return e}function _q(t,e){var n=[],r=t.shape,a;switch(t.type){case"rect":dq(r,e,n),a=Kr;break;case"sector":Wz(r,e,n),a=vc;break;case"circle":Wz({r0:0,r:r.r,startAngle:0,endAngle:Math.PI*2,cx:r.cx,cy:r.cy},e,n),a=vc;break;default:var l=t.getComputedTransform(),u=l?Math.sqrt(Math.max(l[0]*l[0]+l[1]*l[1],l[2]*l[2]+l[3]*l[3])):1,f=ot(cq(t.getUpdatedPathProxy(),u),function(D){return yq(D)}),d=f.length;if(d===0)d1(qz,{points:f[0]},e,n);else if(d===e)for(var h=0;h<d;h++)n.push({points:f[h]});else{var p=0,m=ot(f,function(D){var A=[],O=[];zO(D,A,O);var P=(O[1]-A[1])*(O[0]-A[0]);return p+=P,{poly:D,area:P}});m.sort(function(D,A){return A.area-D.area});for(var S=e,h=0;h<d;h++){var _=m[h];if(S<=0)break;var w=h===d-1?S:Math.ceil(_.area/p*e);w<0||(d1(qz,{points:_.poly},w,n),S-=w)}}a=yT;break}if(!a)return gq(t,e);for(var E=[],h=0;h<n.length;h++){var b=new a;b.setShape(n[h]),mq(t,b),E.push(b)}return E}function Sq(t,e){var n=t.length,r=e.length;if(n===r)return[t,e];for(var a=[],l=[],u=n<r?t:e,f=Math.min(n,r),d=Math.abs(r-n)/6,h=(f-2)/6,p=Math.ceil(d/h)+1,m=[u[0],u[1]],S=d,_=2;_<f;){var w=u[_-2],E=u[_-1],b=u[_++],D=u[_++],A=u[_++],O=u[_++],P=u[_++],I=u[_++];if(S<=0){m.push(b,D,A,O,P,I);continue}for(var F=Math.min(S,p-1)+1,U=1;U<=F;U++){var H=U/F;Es(w,b,A,P,H,a),Es(E,D,O,I,H,l),w=a[3],E=l[3],m.push(a[1],l[1],a[2],l[2],w,E),b=a[5],D=l[5],A=a[6],O=l[6]}S-=F-1}return u===t?[m,e]:[t,m]}function Qz(t,e){for(var n=t.length,r=t[n-2],a=t[n-1],l=[],u=0;u<e.length;)l[u++]=r,l[u++]=a;return l}function Cq(t,e){for(var n,r,a,l=[],u=[],f=0;f<Math.max(t.length,e.length);f++){var d=t[f],h=e[f],p=void 0,m=void 0;d?h?(n=Sq(d,h),p=n[0],m=n[1],r=p,a=m):(m=Qz(a||d,d),p=d):(p=Qz(r||h,h),m=h),l.push(p),u.push(m)}return[l,u]}function Zz(t){for(var e=0,n=0,r=0,a=t.length,l=0,u=a-2;l<a;u=l,l+=2){var f=t[u],d=t[u+1],h=t[l],p=t[l+1],m=f*p-h*d;e+=m,n+=(f+h)*m,r+=(d+p)*m}return e===0?[t[0]||0,t[1]||0]:[n/e/3,r/e/3,e]}function wq(t,e,n,r){for(var a=(t.length-2)/6,l=1/0,u=0,f=t.length,d=f-2,h=0;h<a;h++){for(var p=h*6,m=0,S=0;S<f;S+=2){var _=S===0?p:(p+S-2)%d+2,w=t[_]-n[0],E=t[_+1]-n[1],b=e[S]-r[0],D=e[S+1]-r[1],A=b-w,O=D-E;m+=A*A+O*O}m<l&&(l=m,u=h)}return u}function xq(t){for(var e=[],n=t.length,r=0;r<n;r+=2)e[r]=t[n-r-2],e[r+1]=t[n-r-1];return e}function Tq(t,e,n,r){for(var a=[],l,u=0;u<t.length;u++){var f=t[u],d=e[u],h=Zz(f),p=Zz(d);l==null&&(l=h[2]<0!=p[2]<0);var m=[],S=[],_=0,w=1/0,E=[],b=f.length;l&&(f=xq(f));for(var D=wq(f,d,h,p)*6,A=b-2,O=0;O<A;O+=2){var P=(D+O)%A+2;m[O+2]=f[P]-h[0],m[O+3]=f[P+1]-h[1]}if(m[0]=f[D]-h[0],m[1]=f[D+1]-h[1],n>0)for(var I=r/n,F=-r/2;F<=r/2;F+=I){for(var U=Math.sin(F),H=Math.cos(F),j=0,O=0;O<f.length;O+=2){var X=m[O],G=m[O+1],ee=d[O]-p[0],J=d[O+1]-p[1],ie=ee*H-J*U,ce=ee*U+J*H;E[O]=ie,E[O+1]=ce;var fe=ie-X,Pe=ce-G;j+=fe*fe+Pe*Pe}if(j<w){w=j,_=F;for(var ae=0;ae<E.length;ae++)S[ae]=E[ae]}}else for(var ge=0;ge<b;ge+=2)S[ge]=d[ge]-p[0],S[ge+1]=d[ge+1]-p[1];a.push({from:m,to:S,fromCp:h,toCp:p,rotation:-_})}return a}function v1(t){return t.__isCombineMorphing}var Kz="__mOriginal_";function h1(t,e,n){var r=Kz+e,a=t[r]||t[e];t[r]||(t[r]=t[e]);var l=n.replace,u=n.after,f=n.before;t[e]=function(){var d=arguments,h;return f&&f.apply(this,d),l?h=l.apply(this,d):h=a.apply(this,d),u&&u.apply(this,d),h}}function Qg(t,e){var n=Kz+e;t[n]&&(t[e]=t[n],t[n]=null)}function Jz(t,e){for(var n=0;n<t.length;n++)for(var r=t[n],a=0;a<r.length;){var l=r[a],u=r[a+1];r[a++]=e[0]*l+e[2]*u+e[4],r[a++]=e[1]*l+e[3]*u+e[5]}}function eF(t,e){var n=t.getUpdatedPathProxy(),r=e.getUpdatedPathProxy(),a=Cq(dE(n),dE(r)),l=a[0],u=a[1],f=t.getComputedTransform(),d=e.getComputedTransform();function h(){this.transform=null}f&&Jz(l,f),d&&Jz(u,d),h1(e,"updateTransform",{replace:h}),e.transform=null;var p=Tq(l,u,10,Math.PI),m=[];h1(e,"buildPath",{replace:function(S){for(var _=e.__morphT,w=1-_,E=[],b=0;b<p.length;b++){var D=p[b],A=D.from,O=D.to,P=D.rotation*_,I=D.fromCp,F=D.toCp,U=Math.sin(P),H=Math.cos(P);D0(E,I,F,_);for(var j=0;j<A.length;j+=2){var X=A[j],G=A[j+1],ee=O[j],J=O[j+1],ie=X*w+ee*_,ce=G*w+J*_;m[j]=ie*H-ce*U+E[0],m[j+1]=ie*U+ce*H+E[1]}var fe=m[0],Pe=m[1];S.moveTo(fe,Pe);for(var j=2;j<A.length;){var ee=m[j++],J=m[j++],ae=m[j++],ge=m[j++],pe=m[j++],Le=m[j++];fe===ee&&Pe===J&&ae===pe&&ge===Le?S.lineTo(pe,Le):S.bezierCurveTo(ee,J,ae,ge,pe,Le),fe=pe,Pe=Le}}}})}function hE(t,e,n){if(!t||!e)return e;var r=n.done,a=n.during;eF(t,e),e.__morphT=0;function l(){Qg(e,"buildPath"),Qg(e,"updateTransform"),e.__morphT=-1,e.createPathProxy(),e.dirtyShape()}return e.animateTo({__morphT:1},Vt({during:function(u){e.dirtyShape(),a&&a(u)},done:function(){l(),r&&r()}},n)),e}function bq(t,e,n,r,a,l){var u=16;t=a===n?0:Math.round(32767*(t-n)/(a-n)),e=l===r?0:Math.round(32767*(e-r)/(l-r));for(var f=0,d,h=(1<<u)/2;h>0;h/=2){var p=0,m=0;(t&h)>0&&(p=1),(e&h)>0&&(m=1),f+=h*h*(3*p^m),m===0&&(p===1&&(t=h-1-t,e=h-1-e),d=t,t=e,e=d)}return f}function p1(t){var e=1/0,n=1/0,r=-1/0,a=-1/0,l=ot(t,function(f){var d=f.getBoundingRect(),h=f.getComputedTransform(),p=d.x+d.width/2+(h?h[4]:0),m=d.y+d.height/2+(h?h[5]:0);return e=Math.min(p,e),n=Math.min(m,n),r=Math.max(p,r),a=Math.max(m,a),[p,m]}),u=ot(l,function(f,d){return{cp:f,z:bq(f[0],f[1],e,n,r,a),path:t[d]}});return u.sort(function(f,d){return f.z-d.z}).map(function(f){return f.path})}function tF(t){return _q(t.path,t.count)}function pE(){return{fromIndividuals:[],toIndividuals:[],count:0}}function Eq(t,e,n){var r=[];function a(I){for(var F=0;F<I.length;F++){var U=I[F];v1(U)?a(U.childrenRef()):U instanceof Gt&&r.push(U)}}a(t);var l=r.length;if(!l)return pE();var u=n.dividePath||tF,f=u({path:e,count:l});if(f.length!==l)return console.error("Invalid morphing: unmatched splitted path"),pE();r=p1(r),f=p1(f);for(var d=n.done,h=n.during,p=n.individualDelay,m=new Kp,S=0;S<l;S++){var _=r[S],w=f[S];w.parent=e,w.copyTransform(m),p||eF(_,w)}e.__isCombineMorphing=!0,e.childrenRef=function(){return f};function E(I){for(var F=0;F<f.length;F++)f[F].addSelfToZr(I)}h1(e,"addSelfToZr",{after:function(I){E(I)}}),h1(e,"removeSelfFromZr",{after:function(I){for(var F=0;F<f.length;F++)f[F].removeSelfFromZr(I)}});function b(){e.__isCombineMorphing=!1,e.__morphT=-1,e.childrenRef=null,Qg(e,"addSelfToZr"),Qg(e,"removeSelfFromZr")}var D=f.length;if(p)for(var A=D,O=function(){A--,A===0&&(b(),d&&d())},S=0;S<D;S++){var P=p?Vt({delay:(n.delay||0)+p(S,D,r[S],f[S]),done:O},n):n;hE(r[S],f[S],P)}else e.__morphT=0,e.animateTo({__morphT:1},Vt({during:function(I){for(var F=0;F<D;F++){var U=f[F];U.__morphT=e.__morphT,U.dirtyShape()}h&&h(I)},done:function(){b();for(var I=0;I<t.length;I++)Qg(t[I],"updateTransform");d&&d()}},n));return e.__zr&&E(e.__zr),{fromIndividuals:r,toIndividuals:f,count:D}}function Dq(t,e,n){var r=e.length,a=[],l=n.dividePath||tF;function u(_){for(var w=0;w<_.length;w++){var E=_[w];v1(E)?u(E.childrenRef()):E instanceof Gt&&a.push(E)}}if(v1(t)){u(t.childrenRef());var f=a.length;if(f<r)for(var d=0,h=f;h<r;h++)a.push(pT(a[d++%f]));a.length=r}else{a=l({path:t,count:r});for(var p=t.getComputedTransform(),h=0;h<a.length;h++)a[h].setLocalTransform(p);if(a.length!==r)return console.error("Invalid morphing: unmatched splitted path"),pE()}a=p1(a),e=p1(e);for(var m=n.individualDelay,h=0;h<r;h++){var S=m?Vt({delay:(n.delay||0)+m(h,r,a[h],e[h])},n):n;hE(a[h],e[h],S)}return{fromIndividuals:a,toIndividuals:e,count:e.length}}function nF(t){return Be(t[0])}function rF(t,e){for(var n=[],r=t.length,a=0;a<r;a++)n.push({one:t[a],many:[]});for(var a=0;a<e.length;a++){var l=e[a].length,u=void 0;for(u=0;u<l;u++)n[u%r].many.push(e[a][u])}for(var f=0,a=r-1;a>=0;a--)if(!n[a].many.length){var d=n[f].many;if(d.length<=1)if(f)f=0;else return n;var l=d.length,h=Math.ceil(l/2);n[a].many=d.slice(h,l),n[f].many=d.slice(0,h),f++}return n}var Mq={clone:function(t){for(var e=[],n=1-Math.pow(1-t.path.style.opacity,1/t.count),r=0;r<t.count;r++){var a=pT(t.path);a.setStyle("opacity",n),e.push(a)}return e},split:null};function gE(t,e,n,r,a,l){if(!t.length||!e.length)return;var u=v_("update",r,a);if(!(u&&u.duration>0))return;var f=r.getModel("universalTransition").get("delay"),d=Object.assign({setToFinal:!0},u),h,p;nF(t)&&(h=t,p=e),nF(e)&&(h=e,p=t);function m(D,A,O,P,I){var F=D.many,U=D.one;if(F.length===1&&!I){var H=A?F[0]:U,j=A?U:F[0];if(v1(H))m({many:[H],one:j},!0,O,P,!0);else{var X=f?Vt({delay:f(O,P)},d):d;hE(H,j,X),l(H,j,H,j,X)}}else for(var G=Vt({dividePath:Mq[n],individualDelay:f&&function(Pe,ae,ge,pe){return f(Pe+O,P)}},d),ee=A?Eq(F,U,G):Dq(U,F,G),J=ee.fromIndividuals,ie=ee.toIndividuals,ce=J.length,fe=0;fe<ce;fe++){var X=f?Vt({delay:f(fe,ce)},d):d;l(J[fe],ie[fe],A?F[fe]:D.one,A?D.one:F[fe],X)}}for(var S=h?h===t:t.length>e.length,_=h?rF(p,h):rF(S?e:t,[S?t:e]),w=0,E=0;E<_.length;E++)w+=_[E].many.length;for(var b=0,E=0;E<_.length;E++)m(_[E],S,b,w),b+=_[E].many.length}function Oc(t){if(!t)return[];if(Be(t)){for(var e=[],n=0;n<t.length;n++)e.push(Oc(t[n]));return e}var r=[];return t.traverse(function(a){a instanceof Gt&&!a.disableMorphing&&!a.invisible&&!a.ignore&&r.push(a)}),r}var iF=1e4,Rq=jn();function Aq(t){for(var e=t.dimensions,n=0;n<e.length;n++){var r=t.getDimensionInfo(e[n]);if(r&&r.otherDims.itemGroupId===0)return e[n]}}function aF(t){var e=[];return W(t,function(n){var r=n.data;if(r.count()>iF){process.env.NODE_ENV!=="production"&&Fr("Universal transition is disabled on large data > 10k.");return}for(var a=r.getIndices(),l=Aq(r),u=0;u<a.length;u++)e.push({dataGroupId:n.dataGroupId,data:r,dim:n.dim||l,divide:n.divide,dataIndex:u})}),e}function mE(t,e,n){t.traverse(function(r){r instanceof Gt&&Io(r,{style:{opacity:0}},e,{dataIndex:n,isFrom:!0})})}function yE(t){if(t.parent){var e=t.getComputedTransform();t.setLocalTransform(e),t.parent.remove(t)}}function Iv(t){t.stopAnimation(),t.isGroup&&t.traverse(function(e){e.stopAnimation()})}function Lq(t,e,n){var r=v_("update",n,e);r&&t.traverse(function(a){if(a instanceof fv){var l=lG(a);l&&a.animateFrom({style:l},r)}})}function Oq(t,e){var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++){var a=t[r],l=e[r];if(a.data.getId(a.dataIndex)!==l.data.getId(l.dataIndex))return!1}return!0}function oF(t,e,n){var r=aF(t),a=aF(e);function l(D,A,O,P,I){(O||D)&&A.animateFrom({style:O&&O!==D?Re(Re({},O.style),D.style):D.style},I)}function u(D){for(var A=0;A<D.length;A++)if(D[A].dim)return D[A].dim}var f=u(r),d=u(a),h=!1;function p(D,A){return function(O){var P=O.data,I=O.dataIndex;if(A)return P.getId(I);var F=O.dataGroupId,U=D?f||d:d||f,H=U&&P.getDimensionInfo(U),j=H&&H.ordinalMeta;if(H){var X=P.get(H.name,I);return j&&j.categories[X]||X+""}var G=P.getRawDataItem(I);return G&&G.groupId?G.groupId+"":F||P.getId(I)}}var m=Oq(r,a),S={};if(!m)for(var _=0;_<a.length;_++){var w=a[_],E=w.data.getItemGraphicEl(w.dataIndex);E&&(S[E.id]=!0)}function b(D,A){var O=r[A],P=a[D],I=P.data.hostModel,F=O.data.getItemGraphicEl(O.dataIndex),U=P.data.getItemGraphicEl(P.dataIndex);if(F===U){U&&Lq(U,P.dataIndex,I);return}F&&S[F.id]||U&&(Iv(U),F?(Iv(F),yE(F),h=!0,gE(Oc(F),Oc(U),P.divide,I,D,l)):mE(U,I,D))}new Lb(r,a,p(!0,m),p(!1,m),null,"multiple").update(b).updateManyToOne(function(D,A){var O=a[D],P=O.data,I=P.hostModel,F=P.getItemGraphicEl(O.dataIndex),U=Tr(ot(A,function(H){return r[H].data.getItemGraphicEl(r[H].dataIndex)}),function(H){return H&&H!==F&&!S[H.id]});F&&(Iv(F),U.length?(W(U,function(H){Iv(H),yE(H)}),h=!0,gE(Oc(U),Oc(F),O.divide,I,D,l)):mE(F,I,O.dataIndex))}).updateOneToMany(function(D,A){var O=r[A],P=O.data.getItemGraphicEl(O.dataIndex);if(!(P&&S[P.id])){var I=Tr(ot(D,function(U){return a[U].data.getItemGraphicEl(a[U].dataIndex)}),function(U){return U&&U!==P}),F=a[D[0]].data.hostModel;I.length&&(W(I,function(U){return Iv(U)}),P?(Iv(P),yE(P),h=!0,gE(Oc(P),Oc(I),O.divide,F,D[0],l)):W(I,function(U){return mE(U,F,D[0])}))}}).updateManyToMany(function(D,A){new Lb(A,D,function(O){return r[O].data.getId(r[O].dataIndex)},function(O){return a[O].data.getId(a[O].dataIndex)}).update(function(O,P){b(D[O],A[P])}).execute()}).execute(),h&&W(e,function(D){var A=D.data,O=A.hostModel,P=O&&n.getViewOfSeriesModel(O),I=v_("update",O,0);P&&O.isAnimationEnabled()&&I&&I.duration>0&&P.group.traverse(function(F){F instanceof Gt&&!F.animators.length&&F.animateFrom({style:{opacity:0}},I)})})}function lF(t){var e=t.getModel("universalTransition").get("seriesKey");return e||t.id}function uF(t){return Be(t)?t.sort().join(","):t}function Fs(t){if(t.hostModel)return t.hostModel.getModel("universalTransition").get("divideShape")}function kq(t,e){var n=xt(),r=xt(),a=xt();W(t.oldSeries,function(u,f){var d=t.oldDataGroupIds[f],h=t.oldData[f],p=lF(u),m=uF(p);r.set(m,{dataGroupId:d,data:h}),Be(p)&&W(p,function(S){a.set(S,{key:m,dataGroupId:d,data:h})})});function l(u){n.get(u)&&Fr("Duplicated seriesKey in universalTransition "+u)}return W(e.updatedSeries,function(u){if(u.isUniversalTransitionEnabled()&&u.isAnimationEnabled()){var f=u.get("dataGroupId"),d=u.getData(),h=lF(u),p=uF(h),m=r.get(p);if(m)process.env.NODE_ENV!=="production"&&l(p),n.set(p,{oldSeries:[{dataGroupId:m.dataGroupId,divide:Fs(m.data),data:m.data}],newSeries:[{dataGroupId:f,divide:Fs(d),data:d}]});else if(Be(h)){process.env.NODE_ENV!=="production"&&l(p);var S=[];W(h,function(E){var b=r.get(E);b.data&&S.push({dataGroupId:b.dataGroupId,divide:Fs(b.data),data:b.data})}),S.length&&n.set(p,{oldSeries:S,newSeries:[{dataGroupId:f,data:d,divide:Fs(d)}]})}else{var _=a.get(h);if(_){var w=n.get(_.key);w||(w={oldSeries:[{dataGroupId:_.dataGroupId,data:_.data,divide:Fs(_.data)}],newSeries:[]},n.set(_.key,w)),w.newSeries.push({dataGroupId:f,data:d,divide:Fs(d)})}}}}),n}function sF(t,e){for(var n=0;n<t.length;n++){var r=e.seriesIndex!=null&&e.seriesIndex===t[n].seriesIndex||e.seriesId!=null&&e.seriesId===t[n].id;if(r)return n}}function Nq(t,e,n,r){var a=[],l=[];W(rr(t.from),function(u){var f=sF(e.oldSeries,u);f>=0&&a.push({dataGroupId:e.oldDataGroupIds[f],data:e.oldData[f],divide:Fs(e.oldData[f]),dim:u.dimension})}),W(rr(t.to),function(u){var f=sF(n.updatedSeries,u);if(f>=0){var d=n.updatedSeries[f].getData();l.push({dataGroupId:e.oldDataGroupIds[f],data:d,divide:Fs(d),dim:u.dimension})}}),a.length>0&&l.length>0&&oF(a,l,r)}function Pq(t){t.registerUpdateLifecycle("series:beforeupdate",function(e,n,r){W(rr(r.seriesTransition),function(a){W(rr(a.to),function(l){for(var u=r.updatedSeries,f=0;f<u.length;f++)(l.seriesIndex!=null&&l.seriesIndex===u[f].seriesIndex||l.seriesId!=null&&l.seriesId===u[f].id)&&(u[f][N_]=!0)})})}),t.registerUpdateLifecycle("series:transition",function(e,n,r){var a=Rq(n);if(a.oldSeries&&r.updatedSeries&&r.optionChanged){var l=r.seriesTransition;if(l)W(rr(l),function(_){Nq(_,a,r,n)});else{var u=kq(a,r);W(u.keys(),function(_){var w=u.get(_);oF(w.oldSeries,w.newSeries,n)})}W(r.updatedSeries,function(_){_[N_]&&(_[N_]=!1)})}for(var f=e.getSeries(),d=a.oldSeries=[],h=a.oldDataGroupIds=[],p=a.oldData=[],m=0;m<f.length;m++){var S=f[m].getData();S.count()<iF&&(d.push(f[m]),h.push(f[m].get("dataGroupId")),p.push(S))}})}function fF(t,e,n){var r=jf.createCanvas(),a=e.getWidth(),l=e.getHeight(),u=r.style;return u&&(u.position="absolute",u.left="0",u.top="0",u.width=a+"px",u.height=l+"px",r.setAttribute("data-zr-dom-id",t)),r.width=a*n,r.height=l*n,r}var Iq=function(t){mn(e,t);function e(n,r,a){var l=t.call(this)||this;l.motionBlur=!1,l.lastFrameAlpha=.7,l.dpr=1,l.virtual=!1,l.config={},l.incremental=!1,l.zlevel=0,l.maxRepaintRectCount=5,l.__dirty=!0,l.__firstTimePaint=!0,l.__used=!1,l.__drawIndex=0,l.__startIndex=0,l.__endIndex=0,l.__prevStartIndex=null,l.__prevEndIndex=null;var u;a=a||Y0,typeof n=="string"?u=fF(n,r,a):it(n)&&(u=n,n=u.id),l.id=n,l.dom=u;var f=u.style;return f&&(uL(u),u.onselectstart=function(){return!1},f.padding="0",f.margin="0",f.borderWidth="0"),l.painter=r,l.dpr=a,l}return e.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},e.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},e.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},e.prototype.setUnpainted=function(){this.__firstTimePaint=!0},e.prototype.createBackBuffer=function(){var n=this.dpr;this.domBack=fF("back-"+this.id,this.painter,n),this.ctxBack=this.domBack.getContext("2d"),n!==1&&this.ctxBack.scale(n,n)},e.prototype.createRepaintRects=function(n,r,a,l){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var u=[],f=this.maxRepaintRectCount,d=!1,h=new Wt(0,0,0,0);function p(A){if(!(!A.isFinite()||A.isZero()))if(u.length===0){var O=new Wt(0,0,0,0);O.copy(A),u.push(O)}else{for(var P=!1,I=1/0,F=0,U=0;U<u.length;++U){var H=u[U];if(H.intersect(A)){var j=new Wt(0,0,0,0);j.copy(H),j.union(A),u[U]=j,P=!0;break}else if(d){h.copy(A),h.union(H);var X=A.width*A.height,G=H.width*H.height,ee=h.width*h.height,J=ee-X-G;J<I&&(I=J,F=U)}}if(d&&(u[F].union(A),P=!0),!P){var O=new Wt(0,0,0,0);O.copy(A),u.push(O)}d||(d=u.length>=f)}}for(var m=this.__startIndex;m<this.__endIndex;++m){var S=n[m];if(S){var _=S.shouldBePainted(a,l,!0,!0),w=S.__isRendered&&(S.__dirty&La||!_)?S.getPrevPaintRect():null;w&&p(w);var E=_&&(S.__dirty&La||!S.__isRendered)?S.getPaintRect():null;E&&p(E)}}for(var m=this.__prevStartIndex;m<this.__prevEndIndex;++m){var S=r[m],_=S.shouldBePainted(a,l,!0,!0);if(S&&(!_||!S.__zr)&&S.__isRendered){var w=S.getPrevPaintRect();w&&p(w)}}var b;do{b=!1;for(var m=0;m<u.length;){if(u[m].isZero()){u.splice(m,1);continue}for(var D=m+1;D<u.length;)u[m].intersect(u[D])?(b=!0,u[m].union(u[D]),u.splice(D,1)):D++;m++}}while(b);return this._paintRects=u,u},e.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},e.prototype.resize=function(n,r){var a=this.dpr,l=this.dom,u=l.style,f=this.domBack;u&&(u.width=n+"px",u.height=r+"px"),l.width=n*a,l.height=r*a,f&&(f.width=n*a,f.height=r*a,a!==1&&this.ctxBack.scale(a,a))},e.prototype.clear=function(n,r,a){var l=this.dom,u=this.ctx,f=l.width,d=l.height;r=r||this.clearColor;var h=this.motionBlur&&!n,p=this.lastFrameAlpha,m=this.dpr,S=this;h&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(l,0,0,f/m,d/m));var _=this.domBack;function w(E,b,D,A){if(u.clearRect(E,b,D,A),r&&r!=="transparent"){var O=void 0;if(T0(r)){var P=r.global||r.__width===D&&r.__height===A;O=P&&r.__canvasGradient||vb(u,r,{x:0,y:0,width:D,height:A}),r.__canvasGradient=O,r.__width=D,r.__height=A}else iH(r)&&(r.scaleX=r.scaleX||m,r.scaleY=r.scaleY||m,O=hb(u,r,{dirty:function(){S.setUnpainted(),S.__painter.refresh()}}));u.save(),u.fillStyle=O||r,u.fillRect(E,b,D,A),u.restore()}h&&(u.save(),u.globalAlpha=p,u.drawImage(_,E,b,D,A),u.restore())}!a||h?w(0,0,f,d):a.length&&W(a,function(E){w(E.x*m,E.y*m,E.width*m,E.height*m)})},e}(_l);const _E=Iq;var cF=1e5,kc=314159,g1=.01,zq=.001;function Fq(t){return t?t.__builtin__?!0:!(typeof t.resize!="function"||typeof t.refresh!="function"):!1}function Bq(t,e){var n=document.createElement("div");return n.style.cssText=["position:relative","width:"+t+"px","height:"+e+"px","padding:0","margin:0","border-width:0"].join(";")+";",n}var Uq=function(){function t(e,n,r,a){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var l=!e.nodeName||e.nodeName.toUpperCase()==="CANVAS";this._opts=r=Re({},r||{}),this.dpr=r.devicePixelRatio||Y0,this._singleCanvas=l,this.root=e;var u=e.style;u&&(uL(e),e.innerHTML=""),this.storage=n;var f=this._zlevelList;this._prevDisplayList=[];var d=this._layers;if(l){var p=e,m=p.width,S=p.height;r.width!=null&&(m=r.width),r.height!=null&&(S=r.height),this.dpr=r.devicePixelRatio||1,p.width=m*this.dpr,p.height=S*this.dpr,this._width=m,this._height=S;var _=new _E(p,this,this.dpr);_.__builtin__=!0,_.initContext(),d[kc]=_,_.zlevel=kc,f.push(kc),this._domRoot=e}else{this._width=V_(e,0,r),this._height=V_(e,1,r);var h=this._domRoot=Bq(this._width,this._height);e.appendChild(h)}}return t.prototype.getType=function(){return"canvas"},t.prototype.isSingleCanvas=function(){return this._singleCanvas},t.prototype.getViewportRoot=function(){return this._domRoot},t.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},t.prototype.refresh=function(e){var n=this.storage.getDisplayList(!0),r=this._prevDisplayList,a=this._zlevelList;this._redrawId=Math.random(),this._paintList(n,r,e,this._redrawId);for(var l=0;l<a.length;l++){var u=a[l],f=this._layers[u];if(!f.__builtin__&&f.refresh){var d=l===0?this._backgroundColor:null;f.refresh(d)}}return this._opts.useDirtyRect&&(this._prevDisplayList=n.slice()),this},t.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},t.prototype._paintHoverList=function(e){var n=e.length,r=this._hoverlayer;if(r&&r.clear(),!!n){for(var a={inHover:!0,viewWidth:this._width,viewHeight:this._height},l,u=0;u<n;u++){var f=e[u];f.__inHover&&(r||(r=this._hoverlayer=this.getLayer(cF)),l||(l=r.ctx,l.save()),Tc(l,f,a,u===n-1))}l&&l.restore()}},t.prototype.getHoverLayer=function(){return this.getLayer(cF)},t.prototype.paintOne=function(e,n){mP(e,n)},t.prototype._paintList=function(e,n,r,a){if(this._redrawId===a){r=r||!1,this._updateLayerStatus(e);var l=this._doPaintList(e,n,r),u=l.finished,f=l.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),f&&this._paintHoverList(e),u)this.eachLayer(function(h){h.afterBrush&&h.afterBrush()});else{var d=this;ux(function(){d._paintList(e,n,r,a)})}}},t.prototype._compositeManually=function(){var e=this.getLayer(kc).ctx,n=this._domRoot.width,r=this._domRoot.height;e.clearRect(0,0,n,r),this.eachBuiltinLayer(function(a){a.virtual&&e.drawImage(a.dom,0,0,n,r)})},t.prototype._doPaintList=function(e,n,r){for(var a=this,l=[],u=this._opts.useDirtyRect,f=0;f<this._zlevelList.length;f++){var d=this._zlevelList[f],h=this._layers[d];h.__builtin__&&h!==this._hoverlayer&&(h.__dirty||r)&&l.push(h)}for(var p=!0,m=!1,S=function(E){var b=l[E],D=b.ctx,A=u&&b.createRepaintRects(e,n,_._width,_._height),O=r?b.__startIndex:b.__drawIndex,P=!r&&b.incremental&&Date.now,I=P&&Date.now(),F=b.zlevel===_._zlevelList[0]?_._backgroundColor:null;if(b.__startIndex===b.__endIndex)b.clear(!1,F,A);else if(O===b.__startIndex){var U=e[O];(!U.incremental||!U.notClear||r)&&b.clear(!1,F,A)}O===-1&&(console.error("For some unknown reason. drawIndex is -1"),O=b.__startIndex);var H,j=function(J){var ie={inHover:!1,allClipped:!1,prevEl:null,viewWidth:a._width,viewHeight:a._height};for(H=O;H<b.__endIndex;H++){var ce=e[H];if(ce.__inHover&&(m=!0),a._doPaintEl(ce,b,u,J,ie,H===b.__endIndex-1),P){var fe=Date.now()-I;if(fe>15)break}}ie.prevElClipPaths&&D.restore()};if(A)if(A.length===0)H=b.__endIndex;else for(var X=_.dpr,G=0;G<A.length;++G){var ee=A[G];D.save(),D.beginPath(),D.rect(ee.x*X,ee.y*X,ee.width*X,ee.height*X),D.clip(),j(ee),D.restore()}else D.save(),j(),D.restore();b.__drawIndex=H,b.__drawIndex<b.__endIndex&&(p=!1)},_=this,w=0;w<l.length;w++)S(w);return Tt.wxa&&W(this._layers,function(E){E&&E.ctx&&E.ctx.draw&&E.ctx.draw()}),{finished:p,needsRefreshHover:m}},t.prototype._doPaintEl=function(e,n,r,a,l,u){var f=n.ctx;if(r){var d=e.getPaintRect();(!a||d&&d.intersect(a))&&(Tc(f,e,l,u),e.setPrevPaintRect(d))}else Tc(f,e,l,u)},t.prototype.getLayer=function(e,n){this._singleCanvas&&!this._needsManuallyCompositing&&(e=kc);var r=this._layers[e];return r||(r=new _E("zr_"+e,this,this.dpr),r.zlevel=e,r.__builtin__=!0,this._layerConfig[e]?cn(r,this._layerConfig[e],!0):this._layerConfig[e-g1]&&cn(r,this._layerConfig[e-g1],!0),n&&(r.virtual=n),this.insertLayer(e,r),r.initContext()),r},t.prototype.insertLayer=function(e,n){var r=this._layers,a=this._zlevelList,l=a.length,u=this._domRoot,f=null,d=-1;if(r[e]){process.env.NODE_ENV!=="production"&&Yf("ZLevel "+e+" has been used already");return}if(!Fq(n)){process.env.NODE_ENV!=="production"&&Yf("Layer of zlevel "+e+" is not valid");return}if(l>0&&e>a[0]){for(d=0;d<l-1&&!(a[d]<e&&a[d+1]>e);d++);f=r[a[d]]}if(a.splice(d+1,0,e),r[e]=n,!n.virtual)if(f){var h=f.dom;h.nextSibling?u.insertBefore(n.dom,h.nextSibling):u.appendChild(n.dom)}else u.firstChild?u.insertBefore(n.dom,u.firstChild):u.appendChild(n.dom);n.__painter=this},t.prototype.eachLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var l=r[a];e.call(n,this._layers[l],l)}},t.prototype.eachBuiltinLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var l=r[a],u=this._layers[l];u.__builtin__&&e.call(n,u,l)}},t.prototype.eachOtherLayer=function(e,n){for(var r=this._zlevelList,a=0;a<r.length;a++){var l=r[a],u=this._layers[l];u.__builtin__||e.call(n,u,l)}},t.prototype.getLayers=function(){return this._layers},t.prototype._updateLayerStatus=function(e){this.eachBuiltinLayer(function(m,S){m.__dirty=m.__used=!1});function n(m){l&&(l.__endIndex!==m&&(l.__dirty=!0),l.__endIndex=m)}if(this._singleCanvas)for(var r=1;r<e.length;r++){var a=e[r];if(a.zlevel!==e[r-1].zlevel||a.incremental){this._needsManuallyCompositing=!0;break}}var l=null,u=0,f,d;for(d=0;d<e.length;d++){var a=e[d],h=a.zlevel,p=void 0;f!==h&&(f=h,u=0),a.incremental?(p=this.getLayer(h+zq,this._needsManuallyCompositing),p.incremental=!0,u=1):p=this.getLayer(h+(u>0?g1:0),this._needsManuallyCompositing),p.__builtin__||Yf("ZLevel "+h+" has been used by unkown layer "+p.id),p!==l&&(p.__used=!0,p.__startIndex!==d&&(p.__dirty=!0),p.__startIndex=d,p.incremental?p.__drawIndex=-1:p.__drawIndex=d,n(d),l=p),a.__dirty&La&&!a.__inHover&&(p.__dirty=!0,p.incremental&&p.__drawIndex<0&&(p.__drawIndex=d))}n(d),this.eachBuiltinLayer(function(m,S){!m.__used&&m.getElementCount()>0&&(m.__dirty=!0,m.__startIndex=m.__endIndex=m.__drawIndex=0),m.__dirty&&m.__drawIndex<0&&(m.__drawIndex=m.__startIndex)})},t.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},t.prototype._clearLayer=function(e){e.clear()},t.prototype.setBackgroundColor=function(e){this._backgroundColor=e,W(this._layers,function(n){n.setUnpainted()})},t.prototype.configLayer=function(e,n){if(n){var r=this._layerConfig;r[e]?cn(r[e],n,!0):r[e]=n;for(var a=0;a<this._zlevelList.length;a++){var l=this._zlevelList[a];if(l===e||l===e+g1){var u=this._layers[l];cn(u,r[e],!0)}}}},t.prototype.delLayer=function(e){var n=this._layers,r=this._zlevelList,a=n[e];a&&(a.dom.parentNode.removeChild(a.dom),delete n[e],r.splice(dn(r,e),1))},t.prototype.resize=function(e,n){if(this._domRoot.style){var r=this._domRoot;r.style.display="none";var a=this._opts,l=this.root;if(e!=null&&(a.width=e),n!=null&&(a.height=n),e=V_(l,0,a),n=V_(l,1,a),r.style.display="",this._width!==e||n!==this._height){r.style.width=e+"px",r.style.height=n+"px";for(var u in this._layers)this._layers.hasOwnProperty(u)&&this._layers[u].resize(e,n);this.refresh(!0)}this._width=e,this._height=n}else{if(e==null||n==null)return;this._width=e,this._height=n,this.getLayer(kc).resize(e,n)}return this},t.prototype.clearLayer=function(e){var n=this._layers[e];n&&n.clear()},t.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},t.prototype.getRenderedCanvas=function(e){if(e=e||{},this._singleCanvas&&!this._compositeManually)return this._layers[kc].dom;var n=new _E("image",this,e.pixelRatio||this.dpr);n.initContext(),n.clear(!1,e.backgroundColor||this._backgroundColor);var r=n.ctx;if(e.pixelRatio<=this.dpr){this.refresh();var a=n.dom.width,l=n.dom.height;this.eachLayer(function(m){m.__builtin__?r.drawImage(m.dom,0,0,a,l):m.renderToCanvas&&(r.save(),m.renderToCanvas(r),r.restore())})}else for(var u={inHover:!1,viewWidth:this._width,viewHeight:this._height},f=this.storage.getDisplayList(!0),d=0,h=f.length;d<h;d++){var p=f[d];Tc(r,p,u,d===h-1)}return n.dom},t.prototype.getWidth=function(){return this._width},t.prototype.getHeight=function(){return this._height},t}();const Vq=Uq;function Hq(t){t.registerPainter("canvas",Vq)}const Gq={main:"_main_5reof_1"};$g([XX,jX,wX,fq,lq,fW,FY,Pq,Hq]);const $q=t=>{const e=st.useRef(null),n=st.useRef(null),r=st.useRef(null);st.useEffect(()=>(e.current&&n.current&&(r.current=new ResizeObserver(u=>{for(const f of u)f.target===e.current&&l()}),r.current.observe(e.current)),()=>{var u;e.current&&((u=r.current)==null||u.unobserve(e.current)),r.current=null}),[e.current,n.current]),st.useEffect(()=>{e.current&&!n.current&&(n.current=$7(e.current))},[e.current]),st.useEffect(()=>{n.current&&e.current&&n.current.setOption(t.option)},[n.current]);const a=()=>{n.current&&n.current.resize()},{run:l}=fU.useDebounceFn(a,{wait:300});return Ne("div",{ref:e,className:Gq.main})},dF={editableCellValueWrap:"_editableCellValueWrap_1hw6h_1"},vF=st.createContext(null),jq=({index:t,...e})=>{const[n]=ft.Form.useForm();return Ne(ft.Form,{form:n,component:!1,children:Ne(vF.Provider,{value:n,children:Ne("tr",{...e})})})};function Yq(t){const{title:e,editable:n,children:r,dataIndex:a,record:l,rules:u,handleSave:f,type:d="input",selectProps:h,inputProps:p,textareaProps:m,...S}=t,[_,w]=st.useState(!1),E=st.useRef(null),b=st.useContext(vF);st.useEffect(()=>{_&&E.current.focus()},[_]);const D=()=>{w(!_),b.setFieldsValue({[a]:l[a]})},A=async()=>{try{const I=await b.validateFields();D(),f({...l,...I})}catch(I){console.log("Save failed:",I)}},O=()=>{switch(d){case"input":return Ne(ft.Input,{ref:E,onPressEnter:A,onBlur:A,...p});case"select":return Ne(ft.Select,{ref:E,onBlur:A,...h});case"textarea":return Ne(ft.Input.TextArea,{autoSize:!0,ref:E,onBlur:A,...m});default:return Ne(ft.Input,{ref:E,onPressEnter:A,onBlur:A,...p})}};let P=r;return n&&(P=_?Ne(ft.Form.Item,{style:{margin:0},name:a,rules:u,children:O()}):Ne("div",{className:dF.editableCellValueWrap,style:{paddingRight:24},onClick:D,children:r})),Ne("td",{children:P})}function Wq(t){const{columns:e,handleSave:n,...r}=t,a={body:{row:jq,cell:Yq}},l=e==null?void 0:e.map(u=>u.editable?{...u,onCell:f=>({...u,record:f,handleSave:n})}:u);return console.log("loading",r.loading),Ne(ft.Table,{...r,components:a,rowClassName:()=>dF.editableRow,columns:l,pagination:!1})}function SE(){return SE=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},SE.apply(this,arguments)}var CE={exports:{}},rn={};var hF;function Xq(){if(hF)return rn;hF=1;var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,u=t?Symbol.for("react.provider"):60109,f=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,h=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,S=t?Symbol.for("react.suspense_list"):60120,_=t?Symbol.for("react.memo"):60115,w=t?Symbol.for("react.lazy"):60116,E=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,D=t?Symbol.for("react.responder"):60118,A=t?Symbol.for("react.scope"):60119;function O(I){if(typeof I=="object"&&I!==null){var F=I.$$typeof;switch(F){case e:switch(I=I.type,I){case d:case h:case r:case l:case a:case m:return I;default:switch(I=I&&I.$$typeof,I){case f:case p:case w:case _:case u:return I;default:return F}}case n:return F}}}function P(I){return O(I)===h}return rn.AsyncMode=d,rn.ConcurrentMode=h,rn.ContextConsumer=f,rn.ContextProvider=u,rn.Element=e,rn.ForwardRef=p,rn.Fragment=r,rn.Lazy=w,rn.Memo=_,rn.Portal=n,rn.Profiler=l,rn.StrictMode=a,rn.Suspense=m,rn.isAsyncMode=function(I){return P(I)||O(I)===d},rn.isConcurrentMode=P,rn.isContextConsumer=function(I){return O(I)===f},rn.isContextProvider=function(I){return O(I)===u},rn.isElement=function(I){return typeof I=="object"&&I!==null&&I.$$typeof===e},rn.isForwardRef=function(I){return O(I)===p},rn.isFragment=function(I){return O(I)===r},rn.isLazy=function(I){return O(I)===w},rn.isMemo=function(I){return O(I)===_},rn.isPortal=function(I){return O(I)===n},rn.isProfiler=function(I){return O(I)===l},rn.isStrictMode=function(I){return O(I)===a},rn.isSuspense=function(I){return O(I)===m},rn.isValidElementType=function(I){return typeof I=="string"||typeof I=="function"||I===r||I===h||I===l||I===a||I===m||I===S||typeof I=="object"&&I!==null&&(I.$$typeof===w||I.$$typeof===_||I.$$typeof===u||I.$$typeof===f||I.$$typeof===p||I.$$typeof===b||I.$$typeof===D||I.$$typeof===A||I.$$typeof===E)},rn.typeOf=O,rn}var an={};var pF;function qq(){return pF||(pF=1,process.env.NODE_ENV!=="production"&&function(){var t=typeof Symbol=="function"&&Symbol.for,e=t?Symbol.for("react.element"):60103,n=t?Symbol.for("react.portal"):60106,r=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,l=t?Symbol.for("react.profiler"):60114,u=t?Symbol.for("react.provider"):60109,f=t?Symbol.for("react.context"):60110,d=t?Symbol.for("react.async_mode"):60111,h=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,m=t?Symbol.for("react.suspense"):60113,S=t?Symbol.for("react.suspense_list"):60120,_=t?Symbol.for("react.memo"):60115,w=t?Symbol.for("react.lazy"):60116,E=t?Symbol.for("react.block"):60121,b=t?Symbol.for("react.fundamental"):60117,D=t?Symbol.for("react.responder"):60118,A=t?Symbol.for("react.scope"):60119;function O(Se){return typeof Se=="string"||typeof Se=="function"||Se===r||Se===h||Se===l||Se===a||Se===m||Se===S||typeof Se=="object"&&Se!==null&&(Se.$$typeof===w||Se.$$typeof===_||Se.$$typeof===u||Se.$$typeof===f||Se.$$typeof===p||Se.$$typeof===b||Se.$$typeof===D||Se.$$typeof===A||Se.$$typeof===E)}function P(Se){if(typeof Se=="object"&&Se!==null){var Zt=Se.$$typeof;switch(Zt){case e:var Et=Se.type;switch(Et){case d:case h:case r:case l:case a:case m:return Et;default:var Pn=Et&&Et.$$typeof;switch(Pn){case f:case p:case w:case _:case u:return Pn;default:return Zt}}case n:return Zt}}}var I=d,F=h,U=f,H=u,j=e,X=p,G=r,ee=w,J=_,ie=n,ce=l,fe=a,Pe=m,ae=!1;function ge(Se){return ae||(ae=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),pe(Se)||P(Se)===d}function pe(Se){return P(Se)===h}function Le(Se){return P(Se)===f}function Ge(Se){return P(Se)===u}function St(Se){return typeof Se=="object"&&Se!==null&&Se.$$typeof===e}function It(Se){return P(Se)===p}function Dn(Se){return P(Se)===r}function Xt(Se){return P(Se)===w}function Mn(Se){return P(Se)===_}function on(Se){return P(Se)===n}function zt(Se){return P(Se)===l}function Ft(Se){return P(Se)===a}function $e(Se){return P(Se)===m}an.AsyncMode=I,an.ConcurrentMode=F,an.ContextConsumer=U,an.ContextProvider=H,an.Element=j,an.ForwardRef=X,an.Fragment=G,an.Lazy=ee,an.Memo=J,an.Portal=ie,an.Profiler=ce,an.StrictMode=fe,an.Suspense=Pe,an.isAsyncMode=ge,an.isConcurrentMode=pe,an.isContextConsumer=Le,an.isContextProvider=Ge,an.isElement=St,an.isForwardRef=It,an.isFragment=Dn,an.isLazy=Xt,an.isMemo=Mn,an.isPortal=on,an.isProfiler=zt,an.isStrictMode=Ft,an.isSuspense=$e,an.isValidElementType=O,an.typeOf=P}()),an}(function(t){process.env.NODE_ENV==="production"?t.exports=Xq():t.exports=qq()})(CE);function wE(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return st.Children.forEach(t,function(r){r==null&&!e.keepEmpty||(Array.isArray(r)?n=n.concat(wE(r)):CE.exports.isFragment(r)&&r.props?n=n.concat(wE(r.props.children,e)):n.push(r))}),n}function Qq(t,e){typeof t=="function"?t(e):gu(t)==="object"&&t&&"current"in t&&(t.current=e)}function Zq(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e.filter(function(a){return a});return r.length<=1?r[0]:function(a){e.forEach(function(l){Qq(l,a)})}}function Kq(t){var e,n,r=CE.exports.isMemo(t)?t.type.type:t.type;return!(typeof r=="function"&&!(!((e=r.prototype)===null||e===void 0)&&e.render)||typeof t=="function"&&!(!((n=t.prototype)===null||n===void 0)&&n.render))}function gF(t){return t instanceof HTMLElement?t:XA.findDOMNode(t)}var mF=function(){if(typeof Map<"u")return Map;function t(e,n){var r=-1;return e.some(function(a,l){return a[0]===n?(r=l,!0):!1}),r}return function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(n){var r=t(this.__entries__,n),a=this.__entries__[r];return a&&a[1]},e.prototype.set=function(n,r){var a=t(this.__entries__,n);~a?this.__entries__[a][1]=r:this.__entries__.push([n,r])},e.prototype.delete=function(n){var r=this.__entries__,a=t(r,n);~a&&r.splice(a,1)},e.prototype.has=function(n){return!!~t(this.__entries__,n)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var a=0,l=this.__entries__;a<l.length;a++){var u=l[a];n.call(r,u[1],u[0])}},e}()}(),xE=typeof window<"u"&&typeof document<"u"&&window.document===document,m1=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),Jq=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(m1):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),eQ=2;function tQ(t,e){var n=!1,r=!1,a=0;function l(){n&&(n=!1,t()),r&&f()}function u(){Jq(l)}function f(){var d=Date.now();if(n){if(d-a<eQ)return;r=!0}else n=!0,r=!1,setTimeout(u,e);a=d}return f}var nQ=20,rQ=["top","right","bottom","left","width","height","size","weight"],iQ=typeof MutationObserver<"u",aQ=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=tQ(this.refresh.bind(this),nQ)}return t.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},t.prototype.removeObserver=function(e){var n=this.observers_,r=n.indexOf(e);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},t.prototype.updateObservers_=function(){var e=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return e.forEach(function(n){return n.broadcastActive()}),e.length>0},t.prototype.connect_=function(){!xE||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),iQ?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!xE||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(e){var n=e.propertyName,r=n===void 0?"":n,a=rQ.some(function(l){return!!~r.indexOf(l)});a&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),yF=function(t,e){for(var n=0,r=Object.keys(e);n<r.length;n++){var a=r[n];Object.defineProperty(t,a,{value:e[a],enumerable:!1,writable:!1,configurable:!0})}return t},zv=function(t){var e=t&&t.ownerDocument&&t.ownerDocument.defaultView;return e||m1},_F=_1(0,0,0,0);function y1(t){return parseFloat(t)||0}function SF(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return e.reduce(function(r,a){var l=t["border-"+a+"-width"];return r+y1(l)},0)}function oQ(t){for(var e=["top","right","bottom","left"],n={},r=0,a=e;r<a.length;r++){var l=a[r],u=t["padding-"+l];n[l]=y1(u)}return n}function lQ(t){var e=t.getBBox();return _1(0,0,e.width,e.height)}function uQ(t){var e=t.clientWidth,n=t.clientHeight;if(!e&&!n)return _F;var r=zv(t).getComputedStyle(t),a=oQ(r),l=a.left+a.right,u=a.top+a.bottom,f=y1(r.width),d=y1(r.height);if(r.boxSizing==="border-box"&&(Math.round(f+l)!==e&&(f-=SF(r,"left","right")+l),Math.round(d+u)!==n&&(d-=SF(r,"top","bottom")+u)),!fQ(t)){var h=Math.round(f+l)-e,p=Math.round(d+u)-n;Math.abs(h)!==1&&(f-=h),Math.abs(p)!==1&&(d-=p)}return _1(a.left,a.top,f,d)}var sQ=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof zv(t).SVGGraphicsElement}:function(t){return t instanceof zv(t).SVGElement&&typeof t.getBBox=="function"}}();function fQ(t){return t===zv(t).document.documentElement}function cQ(t){return xE?sQ(t)?lQ(t):uQ(t):_F}function dQ(t){var e=t.x,n=t.y,r=t.width,a=t.height,l=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,u=Object.create(l.prototype);return yF(u,{x:e,y:n,width:r,height:a,top:n,right:e+r,bottom:a+n,left:e}),u}function _1(t,e,n,r){return{x:t,y:e,width:n,height:r}}var vQ=function(){function t(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=_1(0,0,0,0),this.target=e}return t.prototype.isActive=function(){var e=cQ(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},t}(),hQ=function(){function t(e,n){var r=dQ(n);yF(this,{target:e,contentRect:r})}return t}(),pQ=function(){function t(e,n,r){if(this.activeObservations_=[],this.observations_=new mF,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=n,this.callbackCtx_=r}return t.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof zv(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)||(n.set(e,new vQ(e)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof zv(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(e)&&(n.delete(e),n.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&e.activeObservations_.push(n)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new hQ(r.target,r.broadcastRect())});this.callback_.call(e,n,e),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),CF=typeof WeakMap<"u"?new WeakMap:new mF,wF=function(){function t(e){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=aQ.getInstance(),r=new pQ(e,n,this);CF.set(this,r)}return t}();["observe","unobserve","disconnect"].forEach(function(t){wF.prototype[t]=function(){var e;return(e=CF.get(this))[t].apply(e,arguments)}});var gQ=function(){return typeof m1.ResizeObserver<"u"?m1.ResizeObserver:wF}(),Au=new Map;function xF(t){t.forEach(function(e){var n,r=e.target;(n=Au.get(r))===null||n===void 0||n.forEach(function(a){return a(r)})})}var TF=new gQ(xF);process.env.NODE_ENV,process.env.NODE_ENV;function mQ(t,e){Au.has(t)||(Au.set(t,new Set),TF.observe(t)),Au.get(t).add(e)}function yQ(t,e){Au.has(t)&&(Au.get(t).delete(e),Au.get(t).size||(TF.unobserve(t),Au.delete(t)))}function _Q(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bF(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,uA(r.key),r)}}function SQ(t,e,n){return e&&bF(t.prototype,e),n&&bF(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function TE(t,e){return TE=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},TE(t,e)}function CQ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&TE(t,e)}function S1(t){return S1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},S1(t)}function wQ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function xQ(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function TQ(t,e){if(e&&(gu(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xQ(t)}function bQ(t){var e=wQ();return function(){var r=S1(t),a;if(e){var l=S1(this).constructor;a=Reflect.construct(r,arguments,l)}else a=r.apply(this,arguments);return TQ(this,a)}}var EQ=function(t){CQ(n,t);var e=bQ(n);function n(){return _Q(this,n),e.apply(this,arguments)}return SQ(n,[{key:"render",value:function(){return this.props.children}}]),n}(Nt.Component),bE=Nt.createContext(null);function DQ(t){var e=t.children,n=t.onBatchResize,r=Nt.useRef(0),a=Nt.useRef([]),l=Nt.useContext(bE),u=Nt.useCallback(function(f,d,h){r.current+=1;var p=r.current;a.current.push({size:f,element:d,data:h}),Promise.resolve().then(function(){p===r.current&&(n==null||n(a.current),a.current=[])}),l==null||l(f,d,h)},[n,l]);return Nt.createElement(bE.Provider,{value:u},e)}function MQ(t){var e=t.children,n=t.disabled,r=Nt.useRef(null),a=Nt.useRef(null),l=Nt.useContext(bE),u=typeof e=="function",f=u?e(r):e,d=Nt.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),h=!u&&Nt.isValidElement(f)&&Kq(f),p=h?f.ref:null,m=Nt.useMemo(function(){return Zq(p,r)},[p,r]),S=Nt.useRef(t);S.current=t;var _=Nt.useCallback(function(w){var E=S.current,b=E.onResize,D=E.data,A=w.getBoundingClientRect(),O=A.width,P=A.height,I=w.offsetWidth,F=w.offsetHeight,U=Math.floor(O),H=Math.floor(P);if(d.current.width!==U||d.current.height!==H||d.current.offsetWidth!==I||d.current.offsetHeight!==F){var j={width:U,height:H,offsetWidth:I,offsetHeight:F};d.current=j;var X=I===Math.round(O)?O:I,G=F===Math.round(P)?P:F,ee=$n($n({},j),{},{offsetWidth:X,offsetHeight:G});l==null||l(ee,w,D),b&&Promise.resolve().then(function(){b(ee,w)})}},[]);return Nt.useEffect(function(){var w=gF(r.current)||gF(a.current);return w&&!n&&mQ(w,_),function(){return yQ(w,_)}},[r.current,n]),Nt.createElement(EQ,{ref:a},h?Nt.cloneElement(f,{ref:m}):f)}var RQ="rc-observer-key";function EF(t){var e=t.children,n=typeof e=="function"?[e]:wE(e);return process.env.NODE_ENV!=="production"&&(n.length>1?Rw(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):n.length===0&&Rw(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),n.map(function(r,a){var l=(r==null?void 0:r.key)||"".concat(RQ,"-").concat(a);return Nt.createElement(MQ,SE({},t,{key:l}),r)})}EF.Collection=DQ;const Fv={grid:"_grid_9vys0_1",cell:"_cell_9vys0_1",editBox:"_editBox_9vys0_7",editForm:"_editForm_9vys0_16"};function AQ(t){const{columns:e,scroll:n,handleSave:r}=t,[a,l]=st.useState(0),u=e.filter(({width:S})=>!S).length,f=e.map(S=>S.width?S:{...S,width:Math.floor(a/u)}),d=st.useRef(),[h]=st.useState(()=>{const S={};return Object.defineProperty(S,"scrollLeft",{get:()=>{var _,w;return d.current?(w=(_=d.current)==null?void 0:_.state)==null?void 0:w.scrollLeft:null},set:_=>{d.current&&d.current.scrollTo({scrollLeft:_})}}),S}),p=()=>{var S;(S=d.current)==null||S.resetAfterIndices({columnIndex:0,shouldForceUpdate:!0})};st.useEffect(()=>p,[a]);const m=(S,{scrollbarSize:_,ref:w,onScroll:E})=>{w.current=h;const b=S.length*54;return Ne(cU.VariableSizeGrid,{ref:d,className:Fv.grid,columnCount:f.length,columnWidth:D=>{const{width:A}=f[D];return b>n.y&&D===f.length-1?A-_-1:A},height:n.y,rowCount:S.length,rowHeight:()=>54,width:a,onScroll:({scrollLeft:D})=>{E({scrollLeft:D})},children:({columnIndex:D,rowIndex:A,style:O})=>Ne("div",{className:$d(Fv.cell,{[Fv.cellLast]:D===f.length-1}),style:O,children:Ne(LQ,{data:S[A],handleSave:r,column:f[D]})})})};return Ne(EF,{onResize:({width:S})=>{l(S)},children:Ne(ft.Table,{...t,className:Fv.table,columns:f,pagination:!1,components:{body:m}})})}function LQ(t){const{column:e,data:n,handleSave:r}=t,[a,l]=st.useState(!1),u=st.useRef(null),[f]=ft.Form.useForm();st.useEffect(()=>{a&&u.current.focus()},[a]);const d=async()=>{try{const m=await f.validateFields();h(),r({...n,...m})}catch(m){console.log("Save failed:",m)}},h=()=>{l(!a),e.dataIndex&&f.setFieldsValue({[e.dataIndex]:n[e.dataIndex]})};let p=n[e.dataIndex];return e.editable&&(p=a?Ne(ft.Form,{form:f,className:Fv.editForm,children:Ne(ft.Form.Item,{style:{margin:0},name:e.dataIndex,rules:e.rules,children:Ne(ft.Input,{ref:u,onPressEnter:d,onBlur:d,...e.inputProps})})}):Ne("div",{className:Fv.editBox,onClick:h,children:n[e.dataIndex]})),Ne(oA,{children:p})}const br={main:"_main_17ruh_1",item:"_item_17ruh_5",tail:"_tail_17ruh_10",node:"_node_17ruh_29",content:"_content_17ruh_40",collpase:"_collpase_17ruh_45",btn:"_btn_17ruh_57",title:"_title_17ruh_65",dateWrapper:"_dateWrapper_17ruh_71",remark:"_remark_17ruh_78",itemActive:"_itemActive_17ruh_89",itemDone:"_itemDone_17ruh_102",itemUnDo:"_itemUnDo_17ruh_108"},OQ=t=>{const{data:e,current:n}=t,[r,a]=st.useState(!1),l=st.useMemo(()=>!n||e.length===0?0:e.findIndex(h=>h.PNId===n),[n,e]),u=st.useMemo(()=>l>1?r?0:l-1:0,[l,r]),f=()=>{a(!0)};return zr("ul",{className:br.main,children:[l>1&&!r&&zr("li",{className:$d(br.item,br.itemDone),children:[Ne("div",{className:br.tail}),Ne("div",{className:br.node}),Ne("div",{className:br.content,children:zr("div",{className:br.collpase,children:[zr("div",{children:["已收起",Ne("span",{children:l-1}),"个节点"]}),zr("a",{className:br.btn,onClick:f,children:["展开节点",Ne(fV,{})]})]})})]}),e.slice(u).map((d,h)=>zr("li",{className:$d(br.item,l===h+u?br.itemActive:l>h+u?br.itemDone:br.itemUnDo),children:[Ne("div",{className:br.tail}),Ne("div",{className:br.node}),zr("div",{className:br.content,children:[Ne("div",{className:br.title,children:d.PNName}),zr("div",{className:br.dateWrapper,children:[d.PlanFinishDate&&zr("span",{children:["预计完成时间: ",d.PlanFinishDate]}),d.UpdateTime&&zr("span",{style:{color:"#333",fontWeight:"bold"},children:["实际完成时间: ",d.UpdateTime]}),r&&l-1===h&&zr("a",{className:br.btn,onClick:()=>a(!1),children:["收起节点 ",Ne(gV,{})]})]}),d.Remark&&Ne("div",{className:br.remark,children:d.Remark})]})]},d.PNId))]})},kQ=t=>{const{current:e,data:n,...r}=t;return(()=>{ft.Modal.info({icon:null,title:"流程节点",width:700,content:Ne(OQ,{current:e,data:n}),closable:!0,footer:null,maskClosable:!0,...r})})(),null},NQ=(t,e)=>{const n=new URL(t),r=new URL(e);return n.protocol===r.protocol&&n.host===r.host&&n.port===r.port},PQ=t=>{const e=new URL(t).href.split("/");return e[e.length-1]},IQ=t=>{var n;return(n=t.headers.get("content-disposition"))==null?void 0:n.split(";")[1].split("=")[1]},zQ=(t,e)=>{const n=e||PQ(t);if(NQ(t,window.location.href)){EE(t,n);return}let r=e;fetch(t,{method:"get"}).then(a=>(r||(r=IQ(a)),a.blob())).then(a=>{DF(a,r||n)}).catch(()=>{EE(t,"")})},DF=(t,e)=>{let n=window.URL.createObjectURL(t);const r=window.navigator;if(r.msSaveOrOpenBlob){r.msSaveOrOpenBlob(t,e);return}EE(n,e),window.URL.revokeObjectURL(n)},EE=(t,e)=>{let n=document.createElement("a");n.style.display="none",n.href=t,n.target="_blank",n.download=e,document.body.appendChild(n),n.click(),document.body.removeChild(n)},FQ=Object.freeze(Object.defineProperty({__proto__:null,downloadUrl:zQ,downloadBlob:DF},Symbol.toStringTag,{value:"Module"}));class BQ{constructor(e){uU(this,"options",{id:"",canvasId:"verifyCanvas",width:100,height:30,type:"blend",code:""});this.options=e}GVerify(){this.options.numArr="0,1,2,3,4,5,6,7,8,9".split(","),this.options.letterArr=this.getAllLetter(),this._init(),this.refresh()}_init(){const e=document.getElementById(this.options.id),n=document.createElement("canvas");n.id=this.options.canvasId,n.width=Number(this.options.width),n.height=Number(this.options.height),n.style.cursor="pointer",n.innerHTML="您的浏览器版本不支持canvas",e&&e.appendChild(n),n.onclick=()=>{this.refresh()}}refresh(){this.options.code="";const e=document.getElementById(this.options.canvasId);let n,r=[];if(e.getContext)n=e.getContext("2d");else return;n.textBaseline="middle",n.fillStyle=this.randomColor(180,240),n.fillRect(0,0,this.options.width,this.options.height),this.options.type=="blend"?r=this.options.numArr.concat(this.options.letterArr):this.options.type=="number"?r=this.options.numArr:r=this.options.letterArr;for(let a=1;a<=4;a++){const l=r[this.randomNum(0,r.length)];this.options.code+=l,n.font="20px SimHei",n.fillStyle=this.randomColor(50,160),n.shadowBlur=this.randomNum(-3,3),n.shadowColor="rgba(0, 0, 0, 0.3)";const u=Number(this.options.width)/5*a,f=Number(this.options.height)/2,d=this.randomNum(-30,30);n.translate(u,f),n.rotate(d*Math.PI/180),n.fillText(l,0,0),n.rotate(-d*Math.PI/180),n.translate(-u,-f)}for(let a=0;a<2;a++)n.strokeStyle=this.randomColor(40,180),n.beginPath(),n.moveTo(this.randomNum(0,Number(this.options.width)/2),this.randomNum(0,Number(this.options.height)/2)),n.lineTo(this.randomNum(0,Number(this.options.width)/2),this.randomNum(0,Number(this.options.height))),n.stroke();for(let a=0;a<Number(this.options.width)/10;a++)n.fillStyle=this.randomColor(0,255),n.beginPath(),n.arc(this.randomNum(0,this.options.width),this.randomNum(0,this.options.height),1,0,2*Math.PI),n.fill()}validate(e){const n=e.toLowerCase(),r=this.options.code.toLowerCase();return n==r}getAllLetter(){return"a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z".split(",")}randomNum(e,n){return Math.floor(Math.random()*(n-e)+e)}randomColor(e,n){const r=this.randomNum(e,n),a=this.randomNum(e,n),l=this.randomNum(e,n);return"rgb("+r+","+a+","+l+")"}}const UQ=Object.freeze(Object.defineProperty({__proto__:null,getGVerify:BQ},Symbol.toStringTag,{value:"Module"}));fn.BackHeader=wV,fn.CreateForm=ZA,fn.Echarts=$q,fn.EditTable=Wq,fn.SearchTable=HV,fn.UploadFile=QA,fn.VirtualTable=AQ,fn.download=FQ,fn.fileType=xV,fn.showWorkFlow=kQ,fn.utils=OV,fn.verfyCode=UQ,Object.defineProperty(fn,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "szld-libs",
3
3
  "private": false,
4
- "version": "0.0.4",
4
+ "version": "0.0.5",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",