0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},H;(function(r){r[r.LEFT_TOP=0]="LEFT_TOP",r[r.RIGHT_TOP=1]="RIGHT_TOP",r[r.RIGHT_BOTTOM=2]="RIGHT_BOTTOM",r[r.LEFT_BOTTOM=3]="LEFT_BOTTOM"})(H||(H={}));var Ai=function(r){so(e,r);function e(t){var n=r.call(this)||this;n.updateEdgePointByAnchors=function(){var s=n.nodeModel,d=s.id,l=s.anchors,u=n.graphModel.getNodeEdges(d);W(u,function(f){if(f.sourceNodeId===d){var c=Ht(l,function(h){return h.id===f.sourceAnchorId});c&&f.updateStartPoint({x:c.x,y:c.y})}else if(f.targetNodeId===d){var c=Ht(l,function(g){return g.id===f.targetAnchorId});c&&f.updateEndPoint({x:c.x,y:c.y})}})},n.triggerResizeEvent=function(s,d,l,u,f,c){n.graphModel.eventCenter.emit(T.NODE_RESIZE,{preData:s,data:d,deltaX:l,deltaY:u,index:f,model:c})},n.recalcResizeInfo=function(s,d,l,u,f){l===void 0&&(l=1),u===void 0&&(u=!1),f===void 0&&(f=!1);var c=C(d),h=c.deltaX,g=c.deltaY,p=c.width,v=c.height,y=c.PCTResizeInfo;if(y){var _=4,M=0,S=0;switch(s){case H.LEFT_TOP:S=(h*-1-g)/_;break;case H.RIGHT_TOP:S=(h-g)/_;break;case H.RIGHT_BOTTOM:S=(h+g)/_;break;case H.LEFT_BOTTOM:S=(h*-1+g)/_;break}S!==0&&(M=Math.round(S/y.ResizeBasis.basisHeight*1e5)/1e3),y.ResizePCT.widthPCT=Math.max(Math.min(y.ResizePCT.widthPCT+M,y.ScaleLimit.maxScaleLimit),y.ScaleLimit.minScaleLimit),y.ResizePCT.heightPCT=Math.max(Math.min(y.ResizePCT.heightPCT+M,y.ScaleLimit.maxScaleLimit),y.ScaleLimit.minScaleLimit);var O=Math.round(y.ResizePCT.widthPCT*y.ResizeBasis.basisWidth/100),w=Math.round(y.ResizePCT.heightPCT*y.ResizeBasis.basisHeight/100);switch(s){case H.LEFT_TOP:h=p-O,g=v-w;break;case H.RIGHT_TOP:h=O-p,g=v-w;break;case H.RIGHT_BOTTOM:h=O-p,g=w-v;break;case H.LEFT_BOTTOM:h=p-O,g=w-v;break}return c}switch(s){case H.LEFT_TOP:c.width=u?p:p-h*l,c.height=f?v:v-g*l;break;case H.RIGHT_TOP:c.width=u?p:p+h*l,c.height=f?v:v-g*l;break;case H.RIGHT_BOTTOM:c.width=u?p:p+h*l,c.height=f?v:v+g*l;break;case H.LEFT_BOTTOM:c.width=u?p:p-h*l,c.height=f?v:v+g*l;break}return c},n.resizeNode=function(s){var d=s.deltaX,l=s.deltaY,u=n.index,f=n.props,c=f.model,h=f.graphModel,g=f.x,p=f.y;Ri({x:g,y:p,deltaX:d,deltaY:l,index:u,nodeModel:c,graphModel:h,cancelCallback:function(){n.dragHandler.cancelDrag()}})},n.onDragging=function(s){var d=s.deltaX,l=s.deltaY,u=n.graphModel.transformModel,f=wi(u.fixDeltaXY(d,l),2),c=f[0],h=f[1];n.resizeNode({deltaX:c,deltaY:h})},n.onDragEnd=function(){var s=n.nodeModel.x,d=n.nodeModel.y;n.nodeModel.moveTo(s,d),n.updateEdgePointByAnchors()};var o=t.index,i=t.model,a=t.graphModel;return n.index=o,n.nodeModel=i,n.graphModel=a,n.dragHandler=new Mt({onDragging:n.onDragging,onDragEnd:n.onDragEnd,step:a.gridSize}),n}return e.prototype.componentWillUnmount=function(){this.dragHandler.destroy()},e.prototype.render=function(){var t=this.props,n=t.x,o=t.y,i=t.direction,a=t.model,s=a.getResizeControlStyle(),d=s.width,l=s.height,u=Si(s,["width","height"]);return x("g",{className:"lf-resize-control lf-resize-control-".concat(i),children:[x(Et,Se({className:"lf-resize-control-content",x:n,y:o,width:d??7,height:l??7},u)),x(Et,{className:"lf-resize-control-content",x:n,y:o,width:25,height:25,fill:"transparent",stroke:"transparent",onMouseDown:this.dragHandler.handleMouseDown})]})},e}(K),Pi=function(r){so(e,r);function e(){return r.call(this)||this}return e.prototype.getResizeControl=function(){var t=this.props,n=t.model,o=t.graphModel,i=nt(n),a=i.minX,s=i.minY,d=i.maxX,l=i.maxY,u=[{index:H.LEFT_TOP,direction:"nw",x:a,y:s},{index:H.RIGHT_TOP,direction:"ne",x:d,y:s},{index:H.RIGHT_BOTTOM,direction:"se",x:d,y:l},{index:H.LEFT_BOTTOM,direction:"sw",x:a,y:l}];return St(u,function(f){return x(Ai,Se({},f,{model:n,graphModel:o}))})},e.prototype.getResizeOutline=function(){var t=this.props.model,n=t.x,o=t.y,i=t.width,a=t.height,s=t.getResizeOutlineStyle();return x(Et,Se({},s,{x:n,y:o,width:i,height:a}))},e.prototype.render=function(){return x("g",{className:"lf-resize-control-group",children:[this.getResizeOutline(),this.getResizeControl()]})},e}(K);function Ti(r,e){var t=r.x,n=r.y,o=e.x,i=e.y,a={x:t+(o-t)/2,y:n+(i-n)/2};return a}function ae(r,e,t){var n=Di(t),o=r.x-e.x,i=r.y-e.y,a=o*Math.cos(n)-i*Math.sin(n)+e.x,s=o*Math.sin(n)+i*Math.cos(n)+e.y;return{x:a,y:s}}function Di(r){return r*Math.PI/180}function Ni(r){return r/Math.PI*180}function bi(r,e,t,n,o,i,a,s,d){s===void 0&&(s=!1),d===void 0&&(d=!1);var l=e.deltaX,u=e.deltaY,f=e.width,c=e.height,h=Ni(t),g={x:n,y:o},p={x:i,y:a},v=ae(g,p,h),y={x:v.x+l,y:v.y+u},_=Ii(v,y,p,h,s,d,f,c),M=_.width,S=_.height,O=_.center;return e.width=M*r,e.height=S*r,e.deltaX=(O.x-p.x)*2,e.deltaY=(O.y-p.y)*2,e}var Ci=function(r,e,t,n,o,i,a,s,d,l){t===void 0&&(t=1),n===void 0&&(n=!1),o===void 0&&(o=!1),i===void 0&&(i=0);var u=C(e),f=u.deltaX,c=u.deltaY,h=u.width,g=u.height,p=u.PCTResizeInfo;if(p){var v=4,y=0,_=0;switch(r){case H.LEFT_TOP:_=(f*-1-c)/v;break;case H.RIGHT_TOP:_=(f-c)/v;break;case H.RIGHT_BOTTOM:_=(f+c)/v;break;case H.LEFT_BOTTOM:_=(f*-1+c)/v;break}_!==0&&(y=Math.round(_/p.ResizeBasis.basisHeight*1e5)/1e3),p.ResizePCT.widthPCT=Math.max(Math.min(p.ResizePCT.widthPCT+y,p.ScaleLimit.maxScaleLimit),p.ScaleLimit.minScaleLimit),p.ResizePCT.heightPCT=Math.max(Math.min(p.ResizePCT.heightPCT+y,p.ScaleLimit.maxScaleLimit),p.ScaleLimit.minScaleLimit);var M=Math.round(p.ResizePCT.widthPCT*p.ResizeBasis.basisWidth/100),S=Math.round(p.ResizePCT.heightPCT*p.ResizeBasis.basisHeight/100);switch(r){case H.LEFT_TOP:f=h-M,c=g-S;break;case H.RIGHT_TOP:f=M-h,c=g-S;break;case H.RIGHT_BOTTOM:f=M-h,c=S-g;break;case H.LEFT_BOTTOM:f=h-M,c=S-g;break}return u}if(i%(2*Math.PI)!==0&&a!==void 0&&s!==void 0)return bi(t,u,i,a,s,d,l,n,o);switch(r){case H.LEFT_TOP:u.width=n?h:h-f*t,u.height=o?g:g-c*t;break;case H.RIGHT_TOP:u.width=n?h:h+f*t,u.height=o?g:g-c*t;break;case H.RIGHT_BOTTOM:u.width=n?h:h+f*t,u.height=o?g:g+c*t;break;case H.LEFT_BOTTOM:u.width=n?h:h-f*t,u.height=o?g:g+c*t;break}return u},Li=function(r,e){var t=r.id,n=r.anchors,o=e.getNodeEdges(t);W(o,function(i){if(i.sourceNodeId===t){var a=Ht(n,function(s){return s.id===i.sourceAnchorId});a&&i.updateStartPoint({x:a.x,y:a.y})}else if(i.targetNodeId===t){var a=Ht(n,function(d){return d.id===i.targetAnchorId});a&&i.updateEndPoint({x:a.x,y:a.y})}})},ji=function(r,e,t,n,o,i,a){a.eventCenter.emit(T.NODE_RESIZE,{preData:r,data:e,deltaX:t,deltaY:n,index:o,model:i})},Ri=function(r){var e=r.x,t=r.y,n=r.deltaX,o=r.deltaY,i=r.index,a=r.nodeModel,s=r.graphModel,d=r.cancelCallback,l=a.r,u=a.rx,f=a.ry,c=a.width,h=a.height,g=a.PCTResizeInfo,p=a.minWidth,v=a.minHeight,y=a.maxWidth,_=a.maxHeight,M=a.rotate,S=a.x,O=a.y,w=p===y,A=v===_,b={width:l||u||c,height:l||f||h,deltaX:n,deltaY:o,PCTResizeInfo:g},R=l||u&&f?1/2:1,L=e,z=t,I=Ci(i,b,R,w,A,M,L,z,S,O);if(I.widthy||I.height_){d==null||d();return}(M%(2*Math.PI)==0||g||L===void 0||z===void 0)&&(I.deltaX=w?0:I.deltaX,I.deltaY=A?0:I.deltaY);var U=a.getData(),Y=a.resize(I);U.x===Y.x&&U.y===Y.y||(Li(a,s),ji(U,Y,n,o,i,a,s))};function Ii(r,e,t,n,o,i,a,s){o===void 0&&(o=!1),i===void 0&&(i=!1);var d={x:t.x-(r.x-t.x),y:t.y-(r.y-t.y)},l=Ti(d,e),u=ae(e,l,-n),f=ae(d,l,-n);if(o){var c=Math.abs(u.x-f.x),h=c-a;l.x>u.x?l.x=l.x+h/2:l.x=l.x-h/2}if(i){var g=Math.abs(u.y-f.y),p=g-s;l.y>u.y?l.y=l.y+p/2:l.y=l.y-p/2}if(o||i){var v=ae(f,l,n),y=v.x-d.x,_=v.y-d.y;l.x=l.x-y,l.y=l.y-_,f=ae(d,l,-n),u={x:l.x-(f.x-l.x),y:l.y-(f.y-l.y)}}var M=Math.abs(u.x-f.x),S=Math.abs(u.y-f.y);return o&&(M=a),i&&(S=s),{width:M,height:S,center:l}}var Bi=100,Xi={x:1,y:0,z:0};function Yi(r,e,t,n,o){for(var i=function(h){if(h<0||h>1)throw new RangeError('The value range of parameter "t" is [0,1]');return{x:r.x*Math.pow(1-h,3)+3*e.x*h*Math.pow(1-h,2)+3*t.x*Math.pow(h,2)*(1-h)+n.x*Math.pow(h,3),y:r.y*Math.pow(1-h,3)+3*e.y*h*Math.pow(1-h,2)+3*t.y*Math.pow(h,2)*(1-h)+n.y*Math.pow(h,3)}},a=0,s=2,d=n.x,l=n.y,u=n;a=0?n:-n}function vr(r){var e=Math.hypot(r.x,r.y);return{x:r.x/e,y:r.y/e,z:0}}function Gi(r){return zi(Xi,r)}function Fi(r){return r*(180/Math.PI)}var $i={baseNode:{fill:"#fff",stroke:"#000",strokeWidth:2},baseEdge:{stroke:"#000",strokeWidth:2},rect:{},circle:{},diamond:{},ellipse:{},polygon:{},text:{color:"#000",stroke:"none",fontSize:12,background:{fill:"transparent"}},anchor:{stroke:"#000",fill:"#fff",r:4,hover:{r:10,fill:"#949494",fillOpacity:.5,stroke:"#949494"}},anchorLine:{stroke:"#000",strokeWidth:2,strokeDasharray:"3,2"},nodeText:{color:"#000",overflowMode:"default",fontSize:12,lineHeight:1.2},edgeText:{textWidth:100,overflowMode:"default",fontSize:12,background:{fill:"#fff"}},line:{},polyline:{},bezier:{fill:"none",adjustLine:{stroke:"#949494"},adjustAnchor:{r:4,fill:"#949494",fillOpacity:1,stroke:"#949494"}},arrow:{offset:10,verticalLength:5},snapline:{stroke:"#949494",strokeWidth:1},edgeAdjust:{r:4,fill:"#fff",stroke:"#949494",strokeWidth:2},outline:{fill:"transparent",stroke:"#949494",strokeDasharray:"3,3",hover:{stroke:"#949494"}},edgeAnimation:{stroke:"red",strokeDasharray:"10,10",strokeDashoffset:"100%",animationName:"lf_animate_dash",animationDuration:"20s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"normal"},rotateControl:{stroke:"#000",fill:"#fff",strokeWidth:1.5},resizeControl:{width:7,height:7,fill:"#fff",stroke:"#000"},resizeOutline:{fill:"none",stroke:"transparent",strokeWidth:1,strokeDasharray:"3,3"}},lo=function(r){var e=C($i);return r&&(e=Fn(e,r)),e},Ui=lo,Wi=1e3,Zi=999,Wn=function(){return++Wi},Vi=function(){return--Zi},V=function(){return V=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},rn=function(){function r(e,t){var n;this.BaseType=$.EDGE,this.id="",this.type="",this.sourceNodeId="",this.targetNodeId="",this.textMode=st.TEXT,this.text={value:"",x:0,y:0,draggable:!1,editable:!0},this.points="",this.pointsList=[],this.virtual=!1,this.isSelected=!1,this.isHovered=!1,this.isHitable=!0,this.isHittable=!0,this.draggable=!0,this.visible=!0,this.isAnimation=!1,this.isShowAdjustPoint=!1,this.zIndex=0,this.state=X.DEFAULT,this.modelType=j.EDGE,this.customTextPosition=!1,this.style={},this.arrowConfig={markerEnd:"url(#marker-end-".concat(this.id,")"),markerStart:"url(#marker-start-".concat(this.id,")")},this.graphModel=t,this.properties=(n=e.properties)!==null&&n!==void 0?n:{},this.initEdgeData(e),this.setAttributes()}return r.prototype.initEdgeData=function(e){if(e.properties||(e.properties={}),!e.id){var t=this.graphModel.idGenerator,n=t&&t(e.type),o=this.createId();e.id=o||n||Yt()}this.arrowConfig.markerEnd="url(#marker-end-".concat(e.id,")"),this.arrowConfig.markerStart="url(#marker-start-".concat(e.id,")");var i=this.graphModel.editConfigModel.adjustEdgeStartAndEnd;this.isShowAdjustPoint=i,k(this,ni(e));var a=this.graphModel.overlapMode;a===pt.INCREASE&&(this.zIndex=e.zIndex||Wn()),this.setAnchors(),this.initPoints(),this.formatText(e)},r.prototype.setAttributes=function(){},r.prototype.createId=function(){return null},r.prototype.getEdgeStyle=function(){return V(V({},this.graphModel.theme.baseEdge),this.style)},r.prototype.getAdjustPointStyle=function(){return V({},this.graphModel.theme.edgeAdjust)},r.prototype.getTextStyle=function(){var e=this.graphModel.theme.edgeText;return C(e)},r.prototype.getEdgeAnimationStyle=function(){var e=this.graphModel.theme.edgeAnimation;return C(e)},r.prototype.getArrowStyle=function(){var e=this.getEdgeStyle(),t=this.getEdgeAnimationStyle(),n=this.graphModel.theme.arrow,o=this.isAnimation?t.stroke:e.stroke;return V(V(V({},e),{fill:o,stroke:o}),n)},r.prototype.getOutlineStyle=function(){var e=this.graphModel,t=e.theme.outline;return C(t)},r.prototype.getTextPosition=function(){return{x:0,y:0}},Object.defineProperty(r.prototype,"sourceNode",{get:function(){var e,t;return(t=(e=this.graphModel)===null||e===void 0?void 0:e.nodesMap[this.sourceNodeId])===null||t===void 0?void 0:t.model},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"targetNode",{get:function(){var e,t;return(t=(e=this.graphModel)===null||e===void 0?void 0:e.nodesMap[this.targetNodeId])===null||t===void 0?void 0:t.model},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"textPosition",{get:function(){return this.getTextPosition()},enumerable:!1,configurable:!0}),r.prototype.getBeginAnchor=function(e,t,n){var o,i,a=Mn(e);if(n){if(o=Ht(a,function(s){return s.id===n}),o)return o;console.warn("未在节点上找到指定的起点锚点".concat(n,",已使用默认锚点作为起点"))}return a.forEach(function(s){var d=ur(s,t);(i===void 0||d=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},cn=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},_r=function(r){Ki(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.modelType=j.BEZIER_EDGE,o.path="",o.initEdgeData(t),o.setAttributes(),o}return e.prototype.initEdgeData=function(t){this.offset=100,r.prototype.initEdgeData.call(this,t)},e.prototype.getEdgeStyle=function(){var t=this.graphModel.theme.bezier,n=r.prototype.getEdgeStyle.call(this),o=this.properties.style,i=o===void 0?{}:o;return It(It(It({},n),C(t)),C(i))},e.prototype.getTextPosition=function(){if(this.pointsList&&this.pointsList.length>0){var t=0,n=0;return this.pointsList.forEach(function(o){var i=o.x,a=o.y;t+=i,n+=a}),{x:t/this.pointsList.length,y:n/this.pointsList.length}}return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}},e.prototype.getData=function(){var t=r.prototype.getData.call(this),n=this.pointsList.map(function(o){var i=o.x,a=o.y;return{x:i,y:a}});return It(It({},t),{pointsList:n})},e.prototype.getControls=function(){var t=this.startPoint,n=this.endPoint,o=dr({start:t,end:n,sourceNode:this.sourceNode,targetNode:this.targetNode,offset:this.offset});return o},e.prototype.getPath=function(t){var n=cn(t,4),o=n[0],i=n[1],a=n[2],s=n[3];return"M ".concat(o.x," ").concat(o.y,`
+ C `).concat(i.x," ").concat(i.y,`,
+ `).concat(a.x," ").concat(a.y,`,
+ `).concat(s.x," ").concat(s.y)},e.prototype.initPoints=function(){this.pointsList.length>0?this.path=this.getPath(this.pointsList):this.updatePoints()},e.prototype.updatePoints=function(){var t=this.getControls(),n=t.sNext,o=t.ePre;this.updatePath(n,o)},e.prototype.updatePath=function(t,n){t=C(t),n=C(n);var o={x:this.startPoint.x,y:this.startPoint.y},i={x:this.endPoint.x,y:this.endPoint.y};if(!t||!n){var a=this.getControls();t=a.sNext,n=a.ePre}this.pointsList=[o,t,n,i],this.path=this.getPath(this.pointsList)},e.prototype.updateStartPoint=function(t){this.startPoint=Object.assign({},t),this.updatePoints()},e.prototype.updateEndPoint=function(t){this.endPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveStartPoint=function(t,n){this.startPoint.x+=t,this.startPoint.y+=n;var o=cn(this.pointsList,3),i=o[1],a=o[2];i.x+=t,i.y+=n,this.updatePath(i,a)},e.prototype.moveEndPoint=function(t,n){this.endPoint.x+=t,this.endPoint.y+=n;var o=cn(this.pointsList,3),i=o[1],a=o[2];a.x+=t,a.y+=n,this.updatePath(i,a)},e.prototype.updateAdjustAnchor=function(t,n){var o;n==="sNext"?this.pointsList[1]=t:n==="ePre"&&(this.pointsList[2]=t),this.path=this.getPath(this.pointsList),!((o=this.text)===null||o===void 0)&&o.value&&this.setText(k({},this.text,this.textPosition))},e.prototype.getAdjustStart=function(){return this.pointsList[0]||this.startPoint},e.prototype.getAdjustEnd=function(){var t=this.pointsList;return t[t.length-1]||this.endPoint},e.prototype.updateAfterAdjustStartAndEnd=function(t){var n=t.startPoint,o=t.endPoint,i=t.sourceNode,a=t.targetNode,s=dr({start:n,end:o,sourceNode:i,targetNode:a,offset:this.offset}),d=s.sNext,l=s.ePre;this.pointsList=[n,d,l,o],this.initPoints()},lt([E],e.prototype,"path",void 0),lt([m],e.prototype,"initPoints",null),lt([m],e.prototype,"updatePoints",null),lt([m],e.prototype,"updateStartPoint",null),lt([m],e.prototype,"updateEndPoint",null),lt([m],e.prototype,"moveStartPoint",null),lt([m],e.prototype,"moveEndPoint",null),lt([m],e.prototype,"updateAdjustAnchor",null),lt([m],e.prototype,"getAdjustStart",null),lt([m],e.prototype,"getAdjustEnd",null),lt([m],e.prototype,"updateAfterAdjustStartAndEnd",null),e}(rn),qi=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),de=function(){return de=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Ji=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Er=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},ta=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;nd)&&(a=d,i=s)}),i},e.prototype.getCrossPoint=function(t,n,o){var i;return t===G.HORIZONTAL?i={x:o.x,y:n.y}:t===G.VERTICAL&&(i={x:n.x,y:o.y}),i},e.prototype.removeCrossPoints=function(t,n,o){var i=o.map(function(y){return y});if(t===1){var a=i[t],s=i[n],d=i[t-1],l=or(d,a,this.sourceNode);if(l){var u=ir(a,s,this.sourceNode);if(u){var f=ar(a,s,this.sourceNode);f&&(i[t]=f,i.splice(t-1,1),t--,n--)}}else{var c=this.sourceNode.anchors;c.forEach(function(y){if(y.x===d.x&&y.x===a.x||y.y===d.y&&y.y===a.y){var _=yt(y.x,y.y,a.x,a.y),M=yt(d.x,d.y,a.x,a.y);_0?this.points=this.getPath(this.pointsList):this.updatePoints()},e.prototype.updatePoints=function(){var t=rr({x:this.startPoint.x,y:this.startPoint.y},{x:this.endPoint.x,y:this.endPoint.y},this.sourceNode,this.targetNode,this.offset||0);this.pointsList=t,this.points=t.map(function(n){return"".concat(n.x,",").concat(n.y)}).join(" ")},e.prototype.updateStartPoint=function(t){this.startPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveStartPoint=function(t,n){this.startPoint.x+=t,this.startPoint.y+=n,this.updatePoints()},e.prototype.updateEndPoint=function(t){this.endPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveEndPoint=function(t,n){this.endPoint.x+=t,this.endPoint.y+=n,this.updatePoints()},e.prototype.updatePointsList=function(t,n){this.pointsList.forEach(function(a){a.x+=t,a.y+=n});var o=this.pointsList[0];this.startPoint=Object.assign({},o);var i=this.pointsList[this.pointsList.length-1];this.endPoint=Object.assign({},i),this.initPoints()},e.prototype.dragAppendStart=function(){this.draggingPointList=this.pointsList.map(function(t){return t})},e.prototype.dragAppendSimple=function(t,n){var o;this.isDragging=!0;var i=t.start,a=t.end,s=t.startIndex,d=t.endIndex,l=t.direction,u=this.pointsList,f=u;return l===G.HORIZONTAL?(u[s]={x:i.x,y:i.y+n.y},u[d]={x:a.x,y:a.y+n.y},f=this.pointsList.map(function(c){return c})):l===G.VERTICAL&&(u[s]={x:i.x+n.x,y:i.y},u[d]={x:a.x+n.x,y:a.y},f=this.pointsList.map(function(c){return c})),this.updatePointsAfterDrag(f),this.draggingPointList=f,!((o=this.text)===null||o===void 0)&&o.value&&this.setText(k({},this.text,this.textPosition)),{start:k({},u[s]),end:k({},u[d]),startIndex:s,endIndex:d,direction:l}},e.prototype.dragAppend=function(t,n){var o;this.isDragging=!0;var i=t.start,a=t.end,s=t.startIndex,d=t.endIndex,l=t.direction,u=this.pointsList;if(l===G.HORIZONTAL){u[s]={x:i.x,y:i.y+n.y},u[d]={x:a.x,y:a.y+n.y};var f=this.pointsList.map(function(v){return v});if(s!==0&&d!==this.pointsList.length-1&&(f=this.removeCrossPoints(s,d,f)),s===0){var c={x:i.x,y:i.y+n.y},h=Nt(c,this.sourceNode);if(!h){var g=this.sourceNode.anchors;f=this.getDraggingPoints(l,"start",c,g,f)}}if(d===this.pointsList.length-1){var p={x:a.x,y:a.y+n.y},h=Nt(p,this.targetNode);if(!h){var g=this.targetNode.anchors;f=this.getDraggingPoints(l,"end",p,g,f)}}this.updatePointsAfterDrag(f),this.draggingPointList=f}else if(l===G.VERTICAL){u[s]={x:i.x+n.x,y:i.y},u[d]={x:a.x+n.x,y:a.y};var f=this.pointsList.map(function(y){return y});if(s!==0&&d!==this.pointsList.length-1&&(f=this.removeCrossPoints(s,d,f)),s===0){var c={x:i.x+n.x,y:i.y},h=Nt(c,this.sourceNode);if(!h){var g=this.sourceNode.anchors;f=this.getDraggingPoints(l,"start",c,g,f)}}if(d===this.pointsList.length-1){var p={x:a.x+n.x,y:a.y},h=Nt(p,this.targetNode);if(!h){var g=this.targetNode.anchors;f=this.getDraggingPoints(l,"end",p,g,f)}}this.updatePointsAfterDrag(f),this.draggingPointList=f}return!((o=this.text)===null||o===void 0)&&o.value&&this.setText(k({},this.text,this.textPosition)),{start:k({},u[s]),end:k({},u[d]),startIndex:s,endIndex:d,direction:l}},e.prototype.dragAppendEnd=function(){if(this.draggingPointList){var t=Jr(kt(this.points));this.pointsList=t.map(function(i){return i}),this.draggingPointList=[];var n=t[0];this.startPoint=k({},n);var o=t[t.length-1];this.endPoint=k({},o)}this.isDragging=!1},e.prototype.updatePointsAfterDrag=function(t){var n=this.updateCrossPoints(t);this.points=n.map(function(o){return"".concat(o.x,",").concat(o.y)}).join(" ")},e.prototype.getAdjustStart=function(){return this.pointsList[0]||this.startPoint},e.prototype.getAdjustEnd=function(){var t=this.pointsList;return t[t.length-1]||this.endPoint},e.prototype.updateAfterAdjustStartAndEnd=function(t){var n=t.startPoint,o=t.endPoint,i=t.sourceNode,a=t.targetNode;this.pointsList=rr({x:n.x,y:n.y},{x:o.x,y:o.y},i,a,this.offset||0),this.initPoints()},tt([E],e.prototype,"dbClickPosition",void 0),tt([m],e.prototype,"initPoints",null),tt([m],e.prototype,"updatePoints",null),tt([m],e.prototype,"updateStartPoint",null),tt([m],e.prototype,"moveStartPoint",null),tt([m],e.prototype,"updateEndPoint",null),tt([m],e.prototype,"moveEndPoint",null),tt([m],e.prototype,"updatePointsList",null),tt([m],e.prototype,"dragAppendStart",null),tt([m],e.prototype,"dragAppendSimple",null),tt([m],e.prototype,"dragAppend",null),tt([m],e.prototype,"dragAppendEnd",null),tt([m],e.prototype,"updatePointsAfterDrag",null),tt([m],e.prototype,"getAdjustStart",null),tt([m],e.prototype,"getAdjustEnd",null),tt([m],e.prototype,"updateAfterAdjustStartAndEnd",null),e}(rn),q=function(){return q=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Or=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ea=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Ct=function(){function r(e,t){var n;this.BaseType=$.NODE,this.id="",this.type="",this.x=0,this.y=0,this.textMode=st.TEXT,this.text={value:"",x:0,y:0,draggable:!1,editable:!0},this._width=100,this._height=80,this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3,this.anchorsOffset=[],this.virtual=!1,this.isSelected=!1,this.isHovered=!1,this.isShowAnchor=!1,this.isDragging=!1,this.isHitable=!0,this.isHittable=!0,this.draggable=!0,this.visible=!0,this.rotatable=!0,this.resizable=!0,this.zIndex=1,this.state=X.DEFAULT,this.autoToFront=!0,this.style={},this._rotate=0,this.modelType=j.NODE,this.additionStateData={},this.targetRules=[],this.sourceRules=[],this.moveRules=[],this.resizeRules=[],this.hasSetTargetRules=!1,this.hasSetSourceRules=!1,this.graphModel=t,this.properties=(n=e.properties)!==null&&n!==void 0?n:{},this.initNodeData(e),this.setAttributes()}return Object.defineProperty(r.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rotate",{get:function(){return this._rotate},set:function(e){this._rotate=e;var t=this,n=t.x,o=n===void 0?0:n,i=t.y,a=i===void 0?0:i;this.transform=new nn(-o,-a).rotate(e).translate(o,a).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"incoming",{get:function(){return{nodes:this.graphModel.getNodeIncomingNode(this.id),edges:this.graphModel.getNodeIncomingEdge(this.id)}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"outgoing",{get:function(){return{nodes:this.graphModel.getNodeOutgoingNode(this.id),edges:this.graphModel.getNodeOutgoingEdge(this.id)}},enumerable:!1,configurable:!0}),r.prototype.initNodeData=function(e){if(e.properties||(e.properties={}),!e.id){var t=this.graphModel.idGenerator,n=t&&t(e.type),o=this.createId();e.id=o||n||Yt()}this.formatText(e),k(this,ci(e));var i=this.graphModel.overlapMode;i===pt.INCREASE&&(this.zIndex=e.zIndex||Wn())},r.prototype.setAttributes=function(){},r.prototype.createId=function(){return null},r.prototype.setTextMode=function(e){this.textMode=e},r.prototype.formatText=function(e){var t,n,o,i=this.graphModel.editConfigModel,a=i.nodeTextDraggable,s=i.nodeTextEdit,d=e.x,l=e.y,u=e.text,f={value:"",x:d,y:l,draggable:a,editable:s};u&&(typeof u=="string"?f.value=u:(f=q(q({},f),{x:(t=u.x)!==null&&t!==void 0?t:d,y:(n=u.y)!==null&&n!==void 0?n:l,value:(o=u.value)!==null&&o!==void 0?o:""}),Qt(u.draggable)||(f.draggable=u.draggable),Qt(u.editable)||(f.editable=u.editable))),e.text=f},r.prototype.resize=function(e){var t=e.width,n=e.height,o=e.deltaX,i=e.deltaY,a=this.isAllowResizeNode(o,i,t,n);return a?(this.move(o/2,i/2),this.width=t,this.height=n,this.setProperties({width:t,height:n}),this.getData()):this.getData()},r.prototype.proportionalResize=function(){},r.prototype.getData=function(){var e=this.text,t=e.x,n=e.y,o=e.value,i=this.properties;Kr(i)&&(i=mt(i)),ht(i.width)&&(i.width=this.width),ht(i.height)&&(i.height=this.height);var a={id:this.id,type:this.type,x:this.x,y:this.y,properties:i};return this.rotate&&(a.rotate=this.rotate),this.graphModel.overlapMode===pt.INCREASE&&(a.zIndex=this.zIndex),o&&(a.text={x:t,y:n,value:o}),a},r.prototype.getHistoryData=function(){return this.getData()},r.prototype.getProperties=function(){return mt(this.properties)},r.prototype.getOuterGAttributes=function(){return{className:""}},r.prototype.getNodeStyle=function(){return q(q({},this.graphModel.theme.baseNode),this.style)},r.prototype.getTextStyle=function(){var e=this.graphModel.theme.nodeText,t=this.properties.textStyle,n=t===void 0?{}:t;return q(q({},C(e)),C(n))},r.prototype.getRotateControlStyle=function(){var e=this.graphModel.theme.rotateControl;return C(e)},r.prototype.getResizeControlStyle=function(){var e=this.graphModel.theme.resizeControl;return C(e)},r.prototype.getResizeOutlineStyle=function(){var e=this.graphModel.theme.resizeOutline;return C(e)},r.prototype.getAnchorStyle=function(e){var t=this.graphModel.theme.anchor;return C(t)},r.prototype.getAnchorLineStyle=function(e){var t=this.graphModel.theme.anchorLine;return C(t)},r.prototype.getOutlineStyle=function(){var e=this.graphModel.theme.outline;return C(e)},r.prototype.isAllowConnectedAsSource=function(e,t,n,o){var i=this.hasSetSourceRules?this.sourceRules:this.getConnectedSourceRules();this.hasSetSourceRules=!0;for(var a=!0,s="",d=0;d0?t.map(function(a,s){return a.length?(a=a,{id:"".concat(n,"_").concat(s),x:o+a[0],y:i+a[1]}):(a=a,q(q({},a),{x:o+a.x,y:i+a.y,id:a.id||"".concat(n,"_").concat(s)}))}):this.getDefaultAnchor()},r.prototype.getDefaultAnchor=function(){return[]},r.prototype.getTargetAnchor=function(e){return li(e,this)},r.prototype.getBounds=function(){return{minX:this.x-this.width/2,minY:this.y-this.height/2,maxX:this.x+this.width/2,maxY:this.y+this.height/2}},Object.defineProperty(r.prototype,"anchors",{get:function(){var e=this.getAnchorsByOffset(),t=this,n=t.x,o=t.y,i=t.rotate;return e.forEach(function(a){var s=a.x,d=a.y,l=ea(new en([s,d,1]).translate(-n,-o).rotate(i).translate(n,o)[0],2),u=l[0],f=l[1];a.x=u,a.y=f}),e},enumerable:!1,configurable:!0}),r.prototype.getAnchorInfo=function(e){if(!ht(e))for(var t=0;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Sr=function(r){na(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.modelType=j.CIRCLE_NODE,o.r=50,o.initNodeData(t),o.setAttributes(),o}return Object.defineProperty(e.prototype,"width",{get:function(){return this.r*2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.r*2},enumerable:!1,configurable:!0}),e.prototype.setAttributes=function(){r.prototype.setAttributes.call(this);var t=this.properties.r;t&&(this.r=t)},e.prototype.getNodeStyle=function(){var t=r.prototype.getNodeStyle.call(this),n=this.graphModel.theme.circle,o=this.properties.style,i=o===void 0?{}:o;return ue(ue(ue({},t),C(n)),C(i))},e.prototype.getDefaultAnchor=function(){var t=this,n=t.x,o=t.y,i=t.r;return[{x:n,y:o-i,id:"".concat(this.id,"_0")},{x:n+i,y:o,id:"".concat(this.id,"_1")},{x:n,y:o+i,id:"".concat(this.id,"_2")},{x:n-i,y:o,id:"".concat(this.id,"_3")}]},e.prototype.resize=function(t){var n=t.width,o=t.deltaX,i=t.deltaY;return this.move(o/2,i/2),this.r=n,this.setProperties({r:n}),this.getData()},pn([E],e.prototype,"r",void 0),pn([F],e.prototype,"width",null),pn([F],e.prototype,"height",null),e}(Ct),ra=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),fe=function(){return fe=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},je=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},wr=function(r){ra(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.modelType=j.DIAMOND_NODE,o.rx=30,o.ry=50,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){r.prototype.setAttributes.call(this);var t=this.properties,n=t.rx,o=t.ry;n&&(this.rx=n),o&&(this.ry=o)},e.prototype.getNodeStyle=function(){var t=r.prototype.getNodeStyle.call(this),n=this.graphModel.theme.diamond,o=this.properties.style,i=o===void 0?{}:o;return fe(fe(fe({},t),C(n)),C(i))},Object.defineProperty(e.prototype,"points",{get:function(){var t=this,n=t.x,o=t.y,i=t.rx,a=t.ry;return[[n,o-a],[n+i,o],[n,o+a],[n-i,o]]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pointsPosition",{get:function(){return St(this.points,function(t){var n=je(t,2),o=n[0],i=n[1];return{x:o,y:i}})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var t=Number.MAX_SAFE_INTEGER,n=Number.MIN_SAFE_INTEGER;return W(this.points,function(o){var i=je(o,1),a=i[0];an&&(n=a)}),n-t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var t=Number.MAX_SAFE_INTEGER,n=Number.MIN_SAFE_INTEGER;return W(this.points,function(o){var i=je(o,2),a=i[1];an&&(n=a)}),n-t},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this;return St(this.points,function(n,o){var i=je(n,2),a=i[0],s=i[1];return{x:a,y:s,id:"".concat(t.id,"_").concat(o)}})},e.prototype.resize=function(t){var n=t.width,o=t.height,i=t.deltaX,a=t.deltaY;return this.move(i/2,a/2),this.rx=n,this.ry=o,this.setProperties({rx:n,ry:o}),this.getData()},Wt([E],e.prototype,"rx",void 0),Wt([E],e.prototype,"ry",void 0),Wt([F],e.prototype,"points",null),Wt([F],e.prototype,"pointsPosition",null),Wt([F],e.prototype,"width",null),Wt([F],e.prototype,"height",null),e}(Ct),oa=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ce=function(){return ce=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ar=function(r){oa(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.modelType=j.ELLIPSE_NODE,o.rx=30,o.ry=45,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){r.prototype.setAttributes.call(this);var t=this.properties,n=t.rx,o=t.ry;n&&(this.rx=n),o&&(this.ry=o)},e.prototype.getNodeStyle=function(){var t=r.prototype.getNodeStyle.call(this),n=this.graphModel.theme.ellipse,o=this.properties.style,i=o===void 0?{}:o;return ce(ce(ce({},t),C(n)),C(i))},Object.defineProperty(e.prototype,"width",{get:function(){return this.rx*2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.ry*2},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this,n=t.x,o=t.y,i=t.rx,a=t.ry;return[{x:n,y:o-a,id:"".concat(this.id,"_0")},{x:n+i,y:o,id:"".concat(this.id,"_1")},{x:n,y:o+a,id:"".concat(this.id,"_2")},{x:n-i,y:o,id:"".concat(this.id,"_3")}]},e.prototype.resize=function(t){var n=t.width,o=t.height,i=t.deltaX,a=t.deltaY;return this.move(i/2,a/2),this.rx=n,this.ry=o,this.setProperties({rx:n,ry:o}),this.getData()},Re([E],e.prototype,"rx",void 0),Re([E],e.prototype,"ry",void 0),Re([F],e.prototype,"width",null),Re([F],e.prototype,"height",null),e}(Ct),ia=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),pe=function(){return pe=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Be=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Pr=function(r){ia(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.modelType=j.POLYGON_NODE,o.points=[[50,0],[100,50],[50,100],[0,50]],o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){r.prototype.setAttributes.call(this);var t=this.properties,n=t.points,o=t.width,i=t.height,a=n||this.points;this.points=ii(a,o,i)},e.prototype.getNodeStyle=function(){var t=r.prototype.getNodeStyle.call(this),n=this.graphModel.theme.polygon,o=this.properties.style,i=o===void 0?{}:o;return pe(pe(pe({},t),C(n)),C(i))},Object.defineProperty(e.prototype,"pointsPosition",{get:function(){var t=this,n=t.x,o=t.y,i=t.width,a=t.height;return this.points.map(function(s){return{x:s[0]+n-i/2,y:s[1]+o-a/2}})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var t=Number.MAX_SAFE_INTEGER,n=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(o){var i=Be(o,1),a=i[0];an&&(n=a)}),n-t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var t=Number.MAX_SAFE_INTEGER,n=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(o){var i=Be(o,2),a=i[1];an&&(n=a)}),n-t},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this,n=this,o=n.x,i=n.y,a=n.width,s=n.height,d=n.points;return d.map(function(l,u){var f=Be(l,2),c=f[0],h=f[1];return{x:o+c-a/2,y:i+h-s/2,id:"".concat(t.id,"_").concat(u)}})},e.prototype.resize=function(t){var n=this,o=t.width,i=t.height,a=t.deltaX,s=t.deltaY;this.move(a/2,s/2);var d=St(this.points,function(l){var u=Be(l,2),f=u[0],c=u[1];return[f*o/n.width,c*i/n.height]});return this.points=d,this.properties.points=d,this.getData()},Ie([E],e.prototype,"points",void 0),Ie([F],e.prototype,"pointsPosition",null),Ie([F],e.prototype,"width",null),Ie([F],e.prototype,"height",null),e}(Ct),aa=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),he=function(){return he=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Tr=function(r){aa(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.modelType=j.RECT_NODE,o.radius=0,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){r.prototype.setAttributes.call(this);var t=this.properties,n=t.width,o=t.height,i=t.radius;ht(n)||(this.width=n),ht(o)||(this.height=o),ht(i)||(this.radius=i)},e.prototype.getDefaultAnchor=function(){var t=this,n=t.x,o=t.y,i=t.width,a=t.height;return[{x:n,y:o-a/2,id:"".concat(this.id,"_0")},{x:n+i/2,y:o,id:"".concat(this.id,"_1")},{x:n,y:o+a/2,id:"".concat(this.id,"_2")},{x:n-i/2,y:o,id:"".concat(this.id,"_3")}]},e.prototype.getNodeStyle=function(){var t=r.prototype.getNodeStyle.call(this),n=this.graphModel.theme.rect,o=this.properties.style,i=o===void 0?{}:o;return he(he(he({},t),C(n)),C(i))},sa([E],e.prototype,"radius",void 0),e}(Ct),da=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ye=function(){return ye=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},la=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},ua=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ca={stopZoomGraph:!1,stopScrollGraph:!1,stopMoveGraph:!1,adjustEdge:!1,adjustEdgeStartAndEnd:!1,adjustNodePosition:!1,hideAnchors:!0,allowRotate:!1,allowResize:!1,nodeSelectedOutline:!0,textEdit:!1,nodeTextEdit:!1,edgeTextEdit:!1,textDraggable:!1,nodeTextDraggable:!1,edgeTextDraggable:!1},Xe=["isSilentMode","stopZoomGraph","stopScrollGraph","stopMoveGraph","snapGrid","adjustEdge","adjustEdgeMiddle","adjustEdgeStartAndEnd","adjustEdgeStart","adjustEdgeEnd","adjustNodePosition","hideAnchors","allowRotate","allowResize","autoExpand","hoverOutline","nodeSelectedOutline","edgeSelectedOutline","textEdit","nodeTextEdit","edgeTextEdit","textDraggable","nodeTextDraggable","edgeTextDraggable","multipleSelectKey","textMode","nodeTextMode","edgeTextMode","nodeTextMultiple","edgeTextMultiple","nodeTextVertical","edgeTextVertical"],pa=function(){function r(e){this.isSilentMode=!1,this.stopZoomGraph=!1,this.stopMoveGraph=!1,this.stopScrollGraph=!1,this.snapGrid=!1,this.textMode=st.TEXT,this.textEdit=!0,this.textDraggable=!1,this.nodeTextEdit=!0,this.nodeTextDraggable=!1,this.nodeTextMultiple=!1,this.nodeTextVertical=!1,this.nodeTextMode=st.TEXT,this.edgeTextMode=st.TEXT,this.edgeTextEdit=!0,this.edgeTextDraggable=!1,this.edgeTextMultiple=!1,this.edgeTextVertical=!1,this.hideAnchors=!1,this.allowRotate=!1,this.allowResize=!1,this.hoverOutline=!0,this.nodeSelectedOutline=!0,this.adjustNodePosition=!0,this.autoExpand=!1,this.adjustEdge=!0,this.adjustEdgeMiddle=!1,this.adjustEdgeStartAndEnd=!1,this.adjustEdgeStart=!1,this.adjustEdgeEnd=!1,this.edgeSelectedOutline=!0,this.multipleSelectKey="",k(this,this.computeConfig(e))}return r.prototype.updateEditConfig=function(e){var t=this.computeConfig(e);k(this,t)},r.prototype.computeConfig=function(e){var t=e.isSilentMode,n=e.textDraggable,o=e.textMode,i=e.textEdit,a=e.adjustEdgeStartAndEnd,s={};if(t===!1&&k(s,this.stagedConfig),t===!0&&t!==this.isSilentMode){var d=Kt(ca,Xe);this.stagedConfig=Kt(this,Xe),k(s,d)}Qt(i)||k(s,{nodeTextEdit:i,edgeTextEdit:i}),Qt(n)||k(s,{nodeTextDraggable:n,edgeTextDraggable:n}),o&&k(s,{nodeTextMode:o,edgeTextMode:o}),_n(a)&&k(s,{adjustEdgeStart:a,adjustEdgeEnd:a});var l=Kt(e,Xe);return k(s,l)},r.prototype.updateTextMode=function(e){this.textMode=e,this.edgeTextMode=e,this.nodeTextMode=e},r.prototype.getConfig=function(){return Kt(this,Xe)},B([E],r.prototype,"isSilentMode",void 0),B([E],r.prototype,"stopZoomGraph",void 0),B([E],r.prototype,"stopMoveGraph",void 0),B([E],r.prototype,"stopScrollGraph",void 0),B([E],r.prototype,"snapGrid",void 0),B([E],r.prototype,"textMode",void 0),B([E],r.prototype,"textEdit",void 0),B([E],r.prototype,"textDraggable",void 0),B([E],r.prototype,"nodeTextEdit",void 0),B([E],r.prototype,"nodeTextDraggable",void 0),B([E],r.prototype,"nodeTextMultiple",void 0),B([E],r.prototype,"nodeTextVertical",void 0),B([E],r.prototype,"nodeTextMode",void 0),B([E],r.prototype,"edgeTextMode",void 0),B([E],r.prototype,"edgeTextEdit",void 0),B([E],r.prototype,"edgeTextDraggable",void 0),B([E],r.prototype,"edgeTextMultiple",void 0),B([E],r.prototype,"edgeTextVertical",void 0),B([E],r.prototype,"hideAnchors",void 0),B([E],r.prototype,"allowRotate",void 0),B([E],r.prototype,"allowResize",void 0),B([E],r.prototype,"hoverOutline",void 0),B([E],r.prototype,"nodeSelectedOutline",void 0),B([E],r.prototype,"adjustNodePosition",void 0),B([E],r.prototype,"autoExpand",void 0),B([E],r.prototype,"adjustEdge",void 0),B([E],r.prototype,"adjustEdgeMiddle",void 0),B([E],r.prototype,"adjustEdgeStartAndEnd",void 0),B([E],r.prototype,"adjustEdgeStart",void 0),B([E],r.prototype,"adjustEdgeEnd",void 0),B([E],r.prototype,"edgeSelectedOutline",void 0),B([m],r.prototype,"updateEditConfig",null),B([m],r.prototype,"updateTextMode",null),r}(),ha="*",ya=function(){function r(){this._events={}}return r.prototype.on=function(e,t,n){var o=this;e==null||e.split(",").forEach(function(i){i=i.trim(),o._events[i]||(o._events[i]=[]),o._events[i].push({callback:t,once:!!n})})},r.prototype.once=function(e,t){var n=this;e==null||e.split(",").forEach(function(o){o=o.trim(),n.on(o,t,!0)})},r.prototype.emit=function(e,t){var n=this;e==null||e.split(",").forEach(function(o){var i=n._events[o]||[],a=n._events[ha]||[],s=function(d){for(var l=d.length,u=0;u=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},_a=function(r){ga(e,r);function e(t){var n=r.call(this)||this;n.stepScrollX=0,n.stepScrollY=0,n.onDragging=function(s){var d=s.deltaX,l=s.deltaY;n.setState({isDragging:!0});var u=n.props.graphModel,f=u.transformModel,c=u.editConfigModel;c.stopMoveGraph!==!0&&f.translate(d,l)},n.onDragEnd=function(){n.setState({isDragging:!1})},n.zoomHandler=function(s){var d=n.props,l=d.graphModel,u=l.editConfigModel,f=l.transformModel,c=l.gridSize,h=d.graphModel,g=s.deltaX,p=s.deltaY,v=u.stopScrollGraph,y=u.stopZoomGraph;if(!v&&!s.ctrlKey&&!s.metaKey){if(s.preventDefault(),n.stepScrollX+=g,n.stepScrollY+=p,Math.abs(n.stepScrollX)>=c){var _=n.stepScrollX%c,M=n.stepScrollX-_;f.translate(-M*f.SCALE_X,0),n.stepScrollX=_}if(Math.abs(n.stepScrollY)>=c){var S=n.stepScrollY%c,O=n.stepScrollY-S;f.translate(0,-O*f.SCALE_Y),n.stepScrollY=S}return}if(!y){s.preventDefault();var w=h.getPointByClient({x:s.clientX,y:s.clientY}),A=w.canvasOverlayPosition,b=A.x,R=A.y;f.zoom(s.deltaY<0,[b,R])}},n.clickHandler=function(s){var d=s.target;if(d.getAttribute("name")==="canvas-overlay"){var l=n.props.graphModel,u=l.selectElements;u.size>0&&l.clearSelectElements(),l.eventCenter.emit(T.BLANK_CLICK,{e:s})}},n.handleContextMenu=function(s){var d=s.target;if(d.getAttribute("name")==="canvas-overlay"){s.preventDefault();var l=n.props.graphModel,u=l.getPointByClient({x:s.clientX,y:s.clientY});l.eventCenter.emit(T.BLANK_CONTEXTMENU,{e:s,position:u})}},n.mouseDownHandler=function(s){var d=n.props.graphModel,l=d.eventCenter,u=d.editConfigModel,f=d.transformModel.SCALE_X,c=d.gridSize,h=u.adjustEdge,g=u.adjustNodePosition,p=u.stopMoveGraph,v=s.target,y=!h&&!g;(v.getAttribute("name")==="canvas-overlay"||y)&&(p!==!0?(n.stepDrag.setStep(c*f),n.stepDrag.handleMouseDown(s)):l.emit(T.BLANK_MOUSEDOWN,{e:s}),n.clickHandler(s))};var o=t.graphModel,i=o.gridSize,a=o.eventCenter;return n.stepDrag=new Mt({onDragging:n.onDragging,onDragEnd:n.onDragEnd,step:i,eventType:"BLANK",isStopPropagation:!1,eventCenter:a,model:void 0}),n.state={isDragging:!1},n}return e.prototype.render=function(){var t=this.props.graphModel.transformModel,n=t.getTransformStyle().transform,o=this.props,i=o.children,a=o.dnd,s=this.state.isDragging;return x("svg",bn({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",name:"canvas-overlay",onWheel:this.zoomHandler,onMouseDown:this.mouseDownHandler,onContextMenu:this.handleContextMenu,className:s?"lf-canvas-overlay lf-dragging":"lf-canvas-overlay lf-drag-able"},a.eventMap(),{children:x("g",{transform:n,children:i})}))},e=va([ot],e),e}(K),uo=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),we=function(){return we=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},xa=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Cr=function(r){uo(e,r);function e(){var t=r.call(this)||this;return t.onDragging=function(n){var o=n.event,i=t.props,a=i.graphModel,s=i.bezierModel,d=i.type,l=a.getPointByClient({x:o.clientX,y:o.clientY}).canvasOverlayPosition,u=l.x,f=l.y;s.updateAdjustAnchor({x:u,y:f},d),a.eventCenter.emit(T.EDGE_ADJUST,{data:s.getData()})},t.onDragEnd=function(){var n=t.props.bezierModel;n.isDragging=!1},t.dragHandler=new Mt({onDragging:t.onDragging,onDragEnd:t.onDragEnd}),t}return e.prototype.render=function(){var t=this,n=this.props.position,o=n.x,i=n.y,a=this.props.bezierModel,s=a.getEdgeStyle().adjustAnchor;return x(ne,we({className:"lf-bezier-adjust-anchor",x:o,y:i},s,{onMouseDown:function(d){t.dragHandler.handleMouseDown(d)}}))},e}(K),Ea=function(r){uo(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getBezierAdjust=function(t,n){var o=t.path,i=t.id,a=$n(o),s=xa(a,4),d=s[0],l=s[1],u=s[2],f=s[3],c=t.getEdgeStyle().adjustLine,h=[];return h.push(x(ee,we({x1:d.x,y1:d.y,x2:l.x,y2:l.y},c))),h.push(x(Cr,{position:l,bezierModel:t,graphModel:n,type:"sNext"},"".concat(i,"_ePre"))),h.push(x(ee,we({x1:f.x,y1:f.y,x2:u.x,y2:u.y},c))),h.push(x(Cr,{position:u,bezierModel:t,graphModel:n,type:"ePre"},"".concat(i,"_sNext"))),h},e.prototype.selectedBezierEdge=function(){for(var t=this.props.graphModel,n=t.edges,o=[],i=0;i=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Sa=function(r){Ma(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(){var t=this.props.background;return x("div",{className:"lf-background",children:x("div",{style:_o(t)?t:{},className:"lf-background-area"})})},e=Oa([ot],e),e}(K),wa=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Aa=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var s=r.length-1;s>=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},qe=function(r){wa(e,r);function e(t){var n=r.call(this,t)||this;return n.id=Yt(),n.gridOptions=n.props.graphModel.grid,n}return e.prototype.renderDot=function(){var t=this.gridOptions,n=t.config,o=t.size,i=o===void 0?1:o,a=t.visible,s=n??{},d=s.color,l=s.thickness,u=l===void 0?2:l,f=Math.min(Math.max(2,u),i/4),c=a?1:0;return x("g",{fill:d,opacity:c,children:[x("circle",{cx:0,cy:0,r:f/2}),x("circle",{cx:0,cy:i,r:f/2}),x("circle",{cx:i,cy:0,r:f/2}),x("circle",{cx:i,cy:i,r:f/2})]})},e.prototype.renderMesh=function(){var t=this.gridOptions,n=t.config,o=t.size,i=o===void 0?1:o,a=t.visible,s=n??{},d=s.color,l=s.thickness,u=l===void 0?1:l,f=Math.min(Math.max(1,u),i/2),c="M 0 0 H ".concat(i," V ").concat(i," H 0 Z"),h=a?1:0;return x("path",{d:c,stroke:d,strokeWidth:f/2,opacity:h,fill:"transparent"})},e.prototype.render=function(){var t=this.props.graphModel.transformModel,n=this.gridOptions,o=n.type,i=n.size,a=i===void 0?1:i,s=t.SCALE_X,d=t.SKEW_Y,l=t.SKEW_X,u=t.SCALE_Y,f=t.TRANSLATE_X,c=t.TRANSLATE_Y,h=[s,d,l,u,f,c].join(","),g="matrix(".concat(h,")");return x("div",{className:"lf-grid",children:x("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",children:[x("defs",{children:x("pattern",{id:this.id,patternUnits:"userSpaceOnUse",patternTransform:g,x:"0",y:"0",width:a,height:a,children:[o==="dot"&&this.renderDot(),o==="mesh"&&this.renderMesh()]})}),x("rect",{width:"100%",height:"100%",fill:"url(#".concat(this.id,")")})]})})},e=Aa([ot],e),e}(K);(function(r){r.defaultProps={size:Io,visible:!0,type:"dot",config:{color:"#ababab",thickness:1}};function e(t){var n=C(r.defaultProps);return typeof t=="number"?k(n,{size:t}):typeof t=="boolean"?k(n,{visible:t}):k(n,t)}r.getGridOptions=e})(qe||(qe={}));var Pa=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Ta=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var s=r.length-1;s>=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Da=function(r){Pa(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(){var t=this.props.graphModel.transformModel,n=t.getTransformStyle().transform,o=this.props.children;return x("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",className:"modification-overlay",children:x("g",{transform:n,children:o})})},e=Ta([ot],e),e}(K),Na=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),wt=function(){return wt=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ca=function(r){Na(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getNodesOutline=function(){var t=this.props.graphModel,n=t.nodes,o=t.editConfigModel,i=o.hoverOutline,a=o.nodeSelectedOutline,s=[];return n.forEach(function(d){if(d.isHovered||d.isSelected){var l=d.isHovered,u=d.isSelected,f=d.x,c=d.y,h=d.width,g=d.height;if(a&&u||i&&l){var p=d.getOutlineStyle(),v={};if(Object.keys(p).forEach(function(_){_!=="hover"&&(v[_]=p[_])}),l){var y=p.hover;v=wt(wt({},v),y)}s.push(x(Et,wt({transform:d.transform,className:"lf-outline-node",x:f,y:c,width:h+10,height:g+10},v)))}}}),s},e.prototype.getEdgeOutline=function(){for(var t=this.props.graphModel,n=t.edges,o=t.editConfigModel,i=o.edgeSelectedOutline,a=o.hoverOutline,s=[],d=0;d=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ra=function(r){La(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(){var t=this.props.snaplineModel,n=t??{},o=n.position,i=n.isShowHorizontal,a=n.isShowVertical,s=t==null?void 0:t.getStyle(),d=o??{},l=d.x,u=l===void 0?0:l,f=d.y,c=f===void 0?0:f,h=At(At({x1:-1e5,y1:c,x2:1e5,y2:c},s),{stroke:i?s==null?void 0:s.stroke:"none"}),g=At(At({x1:u,y1:-1e5,x2:u,y2:1e5},s),{stroke:a?s==null?void 0:s.stroke:"none"});return x("g",{className:"lf-snapline",children:[x(ee,At({},h)),x(ee,At({},g))]})},e=ja([ot],e),e}(K),Ia=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Ba=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var s=r.length-1;s>=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Xa=function(r){Ia(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.componentDidMount=function(){this.triggerToolRender()},e.prototype.componentDidUpdate=function(){this.triggerToolRender()},e.prototype.getTools=function(){var t=this.props,n=t.tool,o=t.graphModel,i=o.textEditElement,a=n.getTools(),s=a.map(function(d){return Ur(d,{textEditElement:i,graphModel:o,lf:n.instance})});return n.components=s,s},e.prototype.triggerToolRender=function(){var t=this.props,n=t.tool,o=t.graphModel,i=document.querySelector("#ToolOverlay_".concat(o.flowId)),a=n.getInstance();a.components.forEach(function(s){return s(a,i)}),a.components=[]},e.prototype.render=function(){var t=this.props.graphModel;return x("div",{className:"lf-tool-overlay",id:"ToolOverlay_".concat(t.flowId),children:this.getTools()})},e=Ba([ot],e),e}(K),Pt=function(){return Pt=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ya=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},J=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},it=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ka=function(){function r(e){this.isShowHorizontal=!1,this.isShowVertical=!1,this.position={x:0,y:0},this.graphModel=e}return r.prototype.getStyle=function(){return Bt({},this.graphModel.theme.snapline)},r.prototype.getCenterSnapLine=function(e,t){for(var n=e.x,o=e.y,i=!1,a=!1,s=0;s=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Zt=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},za={false:[-1/0,-1/0,1/0,1/0],true:[-1/0,-1/0,1/0,1/0],vertical:[-1/0,0,1/0,0],horizontal:[0,-1/0,0,1/0]},Ga=function(){function r(e,t){this.MINI_SCALE_SIZE=.2,this.MAX_SCALE_SIZE=16,this.SCALE_X=1,this.SKEW_Y=0,this.SKEW_X=0,this.SCALE_Y=1,this.TRANSLATE_X=0,this.TRANSLATE_Y=0,this.ZOOM_SIZE=.04,this.translateLimitMinX=-1/0,this.translateLimitMinY=-1/0,this.translateLimitMaxX=1/0,this.translateLimitMaxY=1/0,this.eventCenter=e;var n=t.stopMoveGraph,o=n===void 0?!1:n;this.updateTranslateLimits(o)}return r.prototype.setZoomMiniSize=function(e){this.MINI_SCALE_SIZE=e},r.prototype.setZoomMaxSize=function(e){this.MAX_SCALE_SIZE=e},r.prototype.HtmlPointToCanvasPoint=function(e){var t=Zt(e,2),n=t[0],o=t[1];return[(n-this.TRANSLATE_X)/this.SCALE_X,(o-this.TRANSLATE_Y)/this.SCALE_Y]},r.prototype.CanvasPointToHtmlPoint=function(e){var t=Zt(e,2),n=t[0],o=t[1];return[n*this.SCALE_X+this.TRANSLATE_X,o*this.SCALE_Y+this.TRANSLATE_Y]},r.prototype.moveCanvasPointByHtml=function(e,t,n){var o=Zt(e,2),i=o[0],a=o[1];return[i+t/this.SCALE_X,a+n/this.SCALE_Y]},r.prototype.fixDeltaXY=function(e,t){return[e/this.SCALE_X,t/this.SCALE_Y]},r.prototype.getTransformStyle=function(){var e=[this.SCALE_X,this.SKEW_Y,this.SKEW_X,this.SCALE_Y,this.TRANSLATE_X,this.TRANSLATE_Y].join(",");return{transform:"matrix(".concat(e,")")}},r.prototype.zoom=function(e,t){e===void 0&&(e=!1);var n=this.SCALE_X,o=this.SCALE_Y;return typeof e=="number"?(n=e,o=e):e?(n+=this.ZOOM_SIZE,o+=this.ZOOM_SIZE):(n-=this.ZOOM_SIZE,o-=this.ZOOM_SIZE),nthis.MAX_SCALE_SIZE?"".concat(this.SCALE_X*100,"%"):(t&&(this.TRANSLATE_X-=(n-this.SCALE_X)*t[0],this.TRANSLATE_Y-=(o-this.SCALE_Y)*t[1]),this.SCALE_X=n,this.SCALE_Y=o,this.emitGraphTransform("zoom"),"".concat(this.SCALE_X*100,"%"))},r.prototype.emitGraphTransform=function(e){this.eventCenter.emit(T.GRAPH_TRANSFORM,{type:e,transform:{SCALE_X:this.SCALE_X,SKEW_Y:this.SKEW_Y,SKEW_X:this.SKEW_X,SCALE_Y:this.SCALE_Y,TRANSLATE_X:this.TRANSLATE_X,TRANSLATE_Y:this.TRANSLATE_Y}})},r.prototype.resetZoom=function(){this.SCALE_X=1,this.SCALE_Y=1,this.emitGraphTransform("resetZoom")},r.prototype.translate=function(e,t){this.TRANSLATE_X+e<=this.translateLimitMaxX&&this.TRANSLATE_X+e>=this.translateLimitMinX&&(this.TRANSLATE_X+=e),this.TRANSLATE_Y+t<=this.translateLimitMaxY&&this.TRANSLATE_Y+t>=this.translateLimitMinY&&(this.TRANSLATE_Y+=t),this.emitGraphTransform("translate")},r.prototype.focusOn=function(e,t,n,o){var i=Zt(this.CanvasPointToHtmlPoint([e,t]),2),a=i[0],s=i[1],d=Zt([n/2-a,o/2-s],2),l=d[0],u=d[1];this.TRANSLATE_X+=l,this.TRANSLATE_Y+=u,this.emitGraphTransform("focusOn")},r.prototype.updateTranslateLimits=function(e){var t;t=Zt(Array.isArray(e)&&e.length===4?e:za[e.toString()],4),this.translateLimitMinX=t[0],this.translateLimitMinY=t[1],this.translateLimitMaxX=t[2],this.translateLimitMaxY=t[3]},ut([E],r.prototype,"SCALE_X",void 0),ut([E],r.prototype,"SKEW_Y",void 0),ut([E],r.prototype,"SKEW_X",void 0),ut([E],r.prototype,"SCALE_Y",void 0),ut([E],r.prototype,"TRANSLATE_X",void 0),ut([E],r.prototype,"TRANSLATE_Y",void 0),ut([E],r.prototype,"ZOOM_SIZE",void 0),ut([m],r.prototype,"zoom",null),ut([m],r.prototype,"resetZoom",null),ut([m],r.prototype,"translate",null),ut([m],r.prototype,"focusOn",null),r}(),Fa=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),$a=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var s=r.length-1;s>=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ua=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Wa=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},qa=function(r){Va(e,r);function e(){var t=r.call(this)||this;return t.onDragStart=function(n){var o=n.event,i=t.props,a=i.anchorData,s=i.nodeModel,d=i.graphModel;d.selectNodeById(s.id),s.autoToFront&&d.toFront(s.id),d.eventCenter.emit(T.ANCHOR_DRAGSTART,{data:a,e:o,nodeModel:s}),t.setState({startX:a.x,startY:a.y,endX:a.x,endY:a.y})},t.onDragging=function(n){var o=n.event,i=t.props,a=i.graphModel,s=i.nodeModel,d=i.anchorData,l=a.transformModel,u=a.eventCenter,f=a.width,c=a.height,h=a.editConfigModel,g=h.autoExpand,p=h.stopMoveGraph;if(o){var v=o.clientX,y=o.clientY,_=a.getPointByClient({x:v,y}),M=_.domOverlayPosition,S=M.x,O=M.y,w=_.canvasOverlayPosition,A=w.x,b=w.y;t.t&&Ke(t.t);var R=[],L=10;S<10?R=[L,0]:S+10>f?R=[-10,0]:O<10?R=[0,L]:O+10>c&&(R=[0,-10]),t.setState({endX:A,endY:b,dragging:!0}),t.moveAnchorEnd(A,b),R.length>0&&!p&&g&&(t.t=oo(function(){var z=Ka(R,2),I=z[0],U=z[1];l.translate(I,U);var Y=t.state,Z=Y.endX,dt=Y.endY;t.setState({endX:Z-I,endY:dt-U}),t.moveAnchorEnd(Z-I,dt-U)})),u.emit(T.ANCHOR_DRAG,{data:d,e:o,nodeModel:s})}},t.onDragEnd=function(n){var o=n.event;t.t&&Ke(t.t);var i=t.checkEnd(o);t.setState({startX:0,startY:0,endX:0,endY:0,dragging:!1}),t.sourceRuleResults.clear(),t.targetRuleResults.clear();var a=t.props,s=a.graphModel,d=a.nodeModel,l=a.anchorData;s.eventCenter.emit(T.ANCHOR_DRAGEND,{data:l,e:o,nodeModel:d,edgeModel:i??void 0})},t.checkEnd=function(n){var o,i=t.props,a=i.graphModel,s=i.nodeModel,d=i.anchorData,l=d.x,u=d.y,f=d.id,c=t.state,h=c.endX,g=c.endY,p=c.dragging,v=Ze({x:h,y:g},a);if(t.preTargetNode&&t.preTargetNode.state!==X.DEFAULT&&t.preTargetNode.setElementState(X.DEFAULT),!!p&&v&&v.node){var y=v.node,_=v.anchor.id,M="".concat(s.id,"_").concat(y.id,"_").concat(_,"_").concat(f),S=t.sourceRuleResults.get(M)||{},O=S.isAllPass,w=S.msg,A=t.targetRuleResults.get(M)||{},b=A.isAllPass,R=A.msg;if(O&&b){y.setElementState(X.DEFAULT);var L=a.getNodeModelById(v.node.id),z=(o=a.edgeGenerator)===null||o===void 0?void 0:o.call(a,s.getData(),L==null?void 0:L.getData()),I=a.addEdge(_t(_t({},z),{sourceNodeId:s.id,sourceAnchorId:f,startPoint:{x:l,y:u},targetNodeId:v.node.id,targetAnchorId:v.anchor.id,endPoint:{x:v.anchor.x,y:v.anchor.y}})),U=t.props.anchorData;return a.eventCenter.emit(T.ANCHOR_DROP,{data:U,e:n,nodeModel:s,edgeModel:I}),I}var Y=y.getData();return a.eventCenter.emit(T.CONNECTION_NOT_ALLOWED,{data:Y,msg:R||w||"不允许添加连线"}),null}},t.sourceRuleResults=new Map,t.targetRuleResults=new Map,t.state={startX:0,startY:0,endX:0,endY:0,dragging:!1},t.dragHandler=new Mt({onDragStart:t.onDragStart,onDragging:t.onDragging,onDragEnd:t.onDragEnd}),t}return e.prototype.getAnchorShape=function(){var t=this.props,n=t.anchorData,o=t.style,i=t.node,a=i.getAnchorShape(n);if(a)return a;var s=n.x,d=n.y,l=_t(_t({},o),o==null?void 0:o.hover);return x("g",{children:[x(ne,_t({className:"lf-node-anchor-hover"},l,{x:s,y:d})),x(ne,_t({className:"lf-node-anchor"},o,{x:s,y:d}))]})},Object.defineProperty(e.prototype,"customTrajectory",{get:function(){var t=this.props.graphModel.customTrajectory;return t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"relateEdges",{get:function(){var t=this.props,n=t.graphModel,o=n.getAnchorIncomingEdge,i=n.getAnchorOutgoingEdge,a=t.anchorData.id;return{incomingEdgeList:o(a),outgoingEdgeList:i(a)}},enumerable:!1,configurable:!0}),e.prototype.moveAnchorEnd=function(t,n){var o,i,a=this.props,s=a.graphModel,d=a.nodeModel,l=a.anchorData,u=Ze({x:t,y:n},s);if(u){var f=u.node,c=u.anchor.id;if(this.preTargetNode&&this.preTargetNode!==u.node&&this.preTargetNode.setElementState(X.DEFAULT),l.id===c)return;this.preTargetNode=f;var h="".concat(d.id,"_").concat(f.id,"_").concat(c,"_").concat(l.id);if(!this.targetRuleResults.has(h)){var g=u.anchor,p=d.isAllowConnectedAsSource(f,l,g),v=f.isAllowConnectedAsTarget(d,l,g);this.sourceRuleResults.set(h,Ve(p)),this.targetRuleResults.set(h,Ve(v))}var y=((o=this.sourceRuleResults.get(h))!==null&&o!==void 0?o:{}).isAllPass,_=((i=this.targetRuleResults.get(h))!==null&&i!==void 0?i:{}).isAllPass;y&&_?f.setElementState(X.ALLOW_CONNECT):f.setElementState(X.NOT_ALLOW_CONNECT)}else this.preTargetNode&&this.preTargetNode.state!==X.DEFAULT&&this.preTargetNode.setElementState(X.DEFAULT)},e.prototype.isShowLine=function(){var t=this.state,n=t.startX,o=t.startY,i=t.endX,a=t.endY,s=yt(n,o,i,a);return s>10},e.prototype.render=function(){var t=this,n=this.state,o=n.startX,i=n.startY,a=n.endX,s=n.endY,d=this.props,l=d.anchorData.edgeAddable,u=d.edgeStyle;return x("g",{className:"lf-anchor",children:[x("g",{onMouseDown:function(f){l!==!1&&t.dragHandler.handleMouseDown(f)},children:this.getAnchorShape()}),this.isShowLine()&&(this.customTrajectory?this.customTrajectory(_t({sourcePoint:{x:o,y:i},targetPoint:{x:a,y:s}},u)):x(ee,_t({x1:o,y1:i,x2:a,y2:s},u,{"pointer-events":"none"})))]})},e}(K),Ja=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Cn=function(){return Cn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},fo=function(r){ts(e,r);function e(t){var n=r.call(this)||this;n.mouseDownHandler=function(i){var a=n.props,s=a.draggable,d=a.model,l=a.graphModel,u=l.editConfigModel.nodeTextDraggable;(s??u)&&(i.stopPropagation(),n.stepperDrag.model=d,n.stepperDrag.handleMouseDown(i))},n.onDragging=function(i){var a=i.deltaX,s=i.deltaY,d=n.props,l=d.model,u=d.graphModel.transformModel;if(a||s){var f=es(u.fixDeltaXY(a,s),2),c=f[0],h=f[1];l.moveText(c,h)}},n.dbClickHandler=function(){var i=n.props,a=i.editable,s=i.graphModel.eventCenter,d=i.model;a&&d.setElementState(X.TEXT_EDIT),s.emit(T.TEXT_DBCLICK,{data:d.text,model:d})};var o=t.draggable;return n.stepperDrag=new Mt({onDragging:n.onDragging,step:1,eventType:"TEXT",isStopPropagation:o}),n}return e.prototype.getShape=function(){var t=this.props,n=t.model,o=t.graphModel,i=o.editConfigModel,a=n.text,s=a.value,d=a.x,l=a.y,u=a.editable,f=a.draggable,c={x:d,y:l,className:"",value:s},h=n.getTextStyle(),g=i.nodeTextDraggable||f;return x(io,Ln({},c,h,{className:To({"lf-element-text":u,"lf-text-draggable":!u&&g,"lf-text-disabled":!u&&!g}),model:n}))},e.prototype.render=function(){var t=this.props.model.text;if(t)return x("g",{onMouseDown:this.mouseDownHandler,onDblClick:this.dbClickHandler,children:this.getShape()})},e}(K),ns=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ft=function(){return ft=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},rs=function(r){ns(e,r);function e(t){var n=r.call(this,t)||this;return n.setHoverOn=function(){n.setState({isHovered:!0})},n.setHoverOff=function(){n.setState({isHovered:!1})},n.state={isHovered:!1},n}return e.prototype.getBackground=function(){var t=this.state.isHovered,n=this.props.model,o=n.text,i=n.getTextStyle(),a=i.background||{};if(t&&i.hover&&i.hover.background&&(a=ft(ft({},a),i.hover.background)),o!=null&&o.value&&(a==null?void 0:a.fill)!=="transparent"){var s=i.fontSize,d=i.textWidth,l=i.lineHeight,u=i.overflowMode,f=a.wrapPadding,c=o==null?void 0:o.value.split(/[\r\n]/g),h=c.length,g=o.x,p=o.y,v={};if(u==="autoWrap"&&d){var y=ro({rows:c,style:{fontSize:"".concat(s,"px"),width:"".concat(d,"px"),lineHeight:l,padding:f},rowsLength:h,className:"lf-get-text-height"});v=ft(ft({},a),{x:g,y:p,width:d,height:y})}else{var _=oi({rows:c,rowsLength:h,fontSize:s}),M=_.width,S=_.height;if(u==="ellipsis"&&(M=d,S=s+2),typeof a.wrapPadding=="string"){var O=a.wrapPadding.split(",").filter(function(rt){return rt.trim()}).map(function(rt){return parseFloat(rt.trim())});if(O.length>0&&O.length<=4){if(O.length===1){var w=Ye(O,1),A=w[0];O=[A,A,A,A]}else if(O.length===2){var b=Ye(O,2),R=b[0],L=b[1];O=[R,L,R,L]}else if(O.length===3){var z=Ye(O,3),I=z[0],L=z[1],U=z[2];O=[I,L,U,L]}var Y=Ye(O,4),Z=Y[0],dt=Y[1],jt=Y[2],Rt=Y[3];M+=dt+Rt,S+=Z+jt,g=g+(dt-Rt)/2,p=p+(jt-Z)/2}}v=ft(ft({},a),{x:g-1,y:p-1,width:M,height:S})}return x(Et,ft({},v))}return null},e.prototype.getShape=function(){var t=this.props.model,n=t.text,o=n.x,i=n.y,a=n.value;if(!a)return null;var s=t.getTextStyle(),d=ft({x:o,y:i,value:a,model:t,className:"lf-element-text"},s);return x("g",{className:"lf-line-text",onMouseEnter:this.setHoverOn,onMouseLeave:this.setHoverOff,children:[this.getBackground(),x(io,ft({},d))]})},e}(fo),os=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Je=function(){return Je=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Lt=function(r){os(e,r);function e(t){var n=r.call(this)||this;n.onDragStart=function(d){var l=d.event,u=n.props,f=u.model,c=u.graphModel;if(l){var h=c.getPointByClient({x:l.clientX,y:l.clientY}).canvasOverlayPosition,g=h.x,p=h.y;n.moveOffset={dx:f.x-g,dy:f.y-p}}},n.onDragging=function(d){var l,u,f,c,h=d.event,g=n.props,p=g.model,v=g.graphModel,y=v.editConfigModel,_=y.stopMoveGraph,M=y.autoExpand,S=y.snapGrid,O=v.transformModel,w=v.selectNodes,A=v.width,b=v.height,R=v.gridSize;p.isDragging=!0;var L=h,z=L.clientX,I=L.clientY,U=v.getPointByClient({x:z,y:I}).canvasOverlayPosition,Y=U.x,Z=U.y,dt=He(O.CanvasPointToHtmlPoint([Y,Z]),2),jt=dt[0],Rt=dt[1];if(Y=Y+((u=(l=n.moveOffset)===null||l===void 0?void 0:l.dx)!==null&&u!==void 0?u:0),Z=Z+((c=(f=n.moveOffset)===null||f===void 0?void 0:f.dy)!==null&&c!==void 0?c:0),Y=te(Y,R,S),Z=te(Z,R,S),!A||!b){v.moveNode2Coordinate(p.id,Y,Z);return}var rt=jt<0||Rt<0||jt>A||Rt>b;if(!(M&&!_&&rt)){var gt=He(O.CanvasPointToHtmlPoint([Y-p.width/2,Z-p.height/2]),2),re=gt[0],an=gt[1],Ae=He(O.CanvasPointToHtmlPoint([Y+p.width/2,Z+p.height/2]),2),sn=Ae[0],co=Ae[1],Pe=Math.max(R,20),zt=[];re<0?zt=[Pe,0]:sn>v.width?zt=[-Pe,0]:an<0?zt=[0,Pe]:co>v.height&&(zt=[0,-Pe]),n.t&&Ke(n.t),p.transform=new nn(-Y,-Z).rotate(p.rotate).translate(Y,Z).toString();var Te=w.map(function(De){return De.id});Te.indexOf(p.id)===-1&&(Te=[p.id]),zt.length>0&&!_&&M?n.t=oo(function(){var De=He(zt,2),Gt=De[0],Ft=De[1];O.translate(Gt??0,Ft??0);var po=-(Gt??0)/O.SCALE_X,ho=-(Ft??0)/O.SCALE_X;v.moveNodes(Te,po,ho)}):v.moveNodes(Te,Y-p.x,Z-p.y)}},n.onDragEnd=function(){n.t&&Ke(n.t);var d=n.props.model;d.isDragging=!1},n.onMouseOut=function(d){jo()&&n.setHoverOff(d)},n.handleMouseUp=function(){var d=n.props.model;n.mouseUpDrag=d.isDragging},n.handleClick=function(d){var l=n.mouseUpDrag===!1;if(n.startTime){var u=n.props,f=u.model,c=u.graphModel;if(l){var h=f.getData(),g=c.getPointByClient({x:d.clientX,y:d.clientY}),p={data:h,e:d,position:g,isSelected:!1,isMultiple:!1},v=d.button===2,y=d.detail===2;if(!v){var _=c.editConfigModel,M=eo(d,_);p.isMultiple=M,f.isSelected&&!y&&M?(p.isSelected=!1,f.setSelected(!1)):(c.selectNodeById(f.id,M),p.isSelected=!0,_.isSilentMode||n.toFront()),y?(_.nodeTextEdit&&f.text.editable&&_.textMode===st.TEXT&&(f.setSelected(!1),c.setElementStateById(f.id,X.TEXT_EDIT)),c.eventCenter.emit(T.NODE_DBCLICK,p)):(c.eventCenter.emit(T.ELEMENT_CLICK,p),c.eventCenter.emit(T.NODE_CLICK,p))}}}},n.handleContextMenu=function(d){d.preventDefault();var l=n.props,u=l.model,f=l.graphModel,c=f.editConfigModel,h=u.getData(),g=f.getPointByClient({x:d.clientX,y:d.clientY});f.setElementStateById(u.id,X.SHOW_MENU,g.domOverlayPosition),u.isSelected||f.selectNodeById(u.id),f.eventCenter.emit(T.NODE_CONTEXTMENU,{data:h,e:d,position:g}),c.isSilentMode||n.toFront()},n.handleMouseDown=function(d){var l=n.props,u=l.model,f=l.graphModel;n.startTime=new Date().getTime();var c=f.editConfigModel;c.adjustNodePosition&&u.draggable&&n.stepDrag&&n.stepDrag.handleMouseDown(d)},n.handleFocus=function(){var d=n.props,l=d.model,u=d.graphModel;u.eventCenter.emit(T.NODE_FOCUS,{data:l.getData()})},n.handleBlur=function(){var d=n.props,l=d.model,u=d.graphModel;u.eventCenter.emit(T.NODE_BLUR,{data:l.getData()})},n.setHoverOn=function(d){var l=n.props,u=l.model,f=l.graphModel;if(!u.isHovered){var c=u.getData();u.setHovered(!0),f.eventCenter.emit(T.NODE_MOUSEENTER,{data:c,e:d})}},n.setHoverOff=function(d){var l=n.props,u=l.model,f=l.graphModel,c=u.getData();u.isHovered&&(u.setHovered(!1),f.eventCenter.emit(T.NODE_MOUSELEAVE,{data:c,e:d}))};var o=t.graphModel,i=o.gridSize,a=o.eventCenter,s=t.model;return n.stepDrag=new Mt({onDragStart:n.onDragStart,onDragging:n.onDragging,onDragEnd:n.onDragEnd,step:i,eventType:"NODE",isStopPropagation:!1,eventCenter:a,model:s}),n.modelDisposer=Ao(function(){return n.props},function(d){d&&d.model&&n.stepDrag.setModel(d.model)}),n}return e.prototype.componentWillUnmount=function(){this.modelDisposer&&this.modelDisposer(),this.render.$mobx&&this.render.$mobx.dispose()},e.prototype.componentDidMount=function(){},e.prototype.componentDidUpdate=function(){},e.prototype.getAnchorShape=function(t){return null},e.prototype.getAnchors=function(){var t=this,n=this.props,o=n.model,i=n.graphModel,a=o.isSelected,s=o.isHitable,d=o.isDragging,l=o.isShowAnchor;return s&&(a||l)&&!d?St(o.anchors,function(u,f){var c=o.getAnchorLineStyle(u),h=o.getAnchorStyle(u);return x(qa,{anchorData:u,node:t,style:h,edgeStyle:c,anchorIndex:f,nodeModel:o,graphModel:i,setHoverOff:t.setHoverOff})}):[]},e.prototype.getRotateControl=function(){var t=this.props,n=t.model,o=t.graphModel,i=o.editConfigModel,a=i.isSilentMode,s=i.allowRotate,d=n.isSelected,l=n.isHitable,u=n.rotatable,f=n.isHovered,c=s&&u,h=n.getRotateControlStyle();if(!a&&l&&(d||f)&&c)return x(Qa,{graphModel:o,nodeModel:n,eventCenter:o.eventCenter,style:h})},e.prototype.getResizeControl=function(){var t=this.props,n=t.model,o=t.graphModel,i=o.editConfigModel,a=i.isSilentMode,s=i.allowResize,d=n.isSelected,l=n.isHitable,u=n.resizable,f=n.isHovered,c=s&&u,h=n.getResizeControlStyle();return!a&&l&&(d||f)&&c?x(Pi,{style:h,model:n,graphModel:o}):null},e.prototype.getText=function(){var t,n=this.props,o=n.model,i=n.graphModel,a=i.editConfigModel;if(a.nodeTextMode!==st.TEXT||o.state===X.TEXT_EDIT)return null;if(o.text){var s=!1;return a.nodeTextDraggable&&o.text.draggable&&(s=!0),x(fo,{editable:a.nodeTextEdit&&((t=o.text.editable)!==null&&t!==void 0?t:!0),model:o,graphModel:i,draggable:s})}return null},e.prototype.getStateClassName=function(){var t=this.props.model,n=t.state,o=t.isDragging,i=t.isSelected,a="lf-node";switch(n){case X.ALLOW_CONNECT:a+=" lf-node-allow";break;case X.NOT_ALLOW_CONNECT:a+=" lf-node-not-allow";break;default:a+=" lf-node-default";break}return o&&(a+=" lf-dragging"),i&&(a+=" lf-node-selected"),a},e.prototype.toFront=function(){var t=this.props,n=t.model,o=t.graphModel;n.autoToFront&&o.toFront(n.id)},e.prototype.render=function(){var t=this.props,n=t.model,o=t.graphModel,i=o.editConfigModel,a=i.hideAnchors,s=i.adjustNodePosition,d=i.allowRotate,l=i.allowResize,u=o.gridSize,f=o.transformModel.SCALE_X,c=n.isHitable,h=n.draggable,g=n.transform,p=n.getOuterGAttributes(),v=p.className,y=v===void 0?"":v,_=is(p,["className"]),M=x("g",{className:"lf-node-content",children:[x("g",{transform:g,children:[this.getShape(),this.getText(),d&&this.getRotateControl(),l&&this.getResizeControl()]}),!a&&this.getAnchors()]}),S;return c?(s&&h&&this.stepDrag.setStep(u*f),S=x("g",Je({className:"".concat(this.getStateClassName()," ").concat(y),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onClick:this.handleClick,onMouseEnter:this.setHoverOn,onMouseOver:this.setHoverOn,onMouseLeave:this.setHoverOff,onMouseOut:this.onMouseOut,onContextMenu:this.handleContextMenu,onFocus:this.handleFocus,onBlur:this.handleBlur},_,{children:M}))):S=x("g",Je({className:"".concat(this.getStateClassName()," ").concat(y)},_,{children:M})),S},e.isObserved=!1,e}(K),as=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),jn=function(){return jn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},hs=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},xt;(function(r){r.SOURCE="SOURCE",r.TARGET="TARGET"})(xt||(xt={}));var Hr=function(r){ys(e,r);function e(t){var n=r.call(this)||this;n.handleMouseDown=function(d){n.stepDrag&&n.stepDrag.handleMouseDown(d)},n.onDragStart=function(){var d=n.props,l=d.x,u=d.y,f=d.edgeModel,c=f.startPoint,h=f.endPoint,g=f.pointsList;n.oldEdge={startPoint:c,endPoint:h,pointsList:g},n.setState({endX:l,endY:u,dragging:!0})},n.onDragging=function(d){var l=d.deltaX,u=d.deltaY,f=n.state,c=f.endX,h=f.endY,g=n.props,p=g.graphModel,v=g.type,y=p.transformModel,_=p.editConfigModel,M=vs(y.moveCanvasPointByHtml([c,h],l,u),2),S=M[0],O=M[1];n.setState({endX:S,endY:O,dragging:!0});var w=n.props.edgeModel,A=Ze({x:c,y:h},p);if(A&&A.node&&n.isAllowAdjust(A).pass){var b=w.startPoint,R=w.endPoint,L=w.sourceNode,z=w.targetNode,I=v===xt.SOURCE?{startPoint:{x:A.anchor.x,y:A.anchor.y},endPoint:{x:R.x,y:R.y},sourceNode:A.node,targetNode:z}:{startPoint:{x:b.x,y:b.y},endPoint:{x:A.anchor.x,y:A.anchor.y},sourceNode:L,targetNode:A.node};w.updateAfterAdjustStartAndEnd(I)}else v===xt.SOURCE?w.updateStartPoint({x:S,y:O}):w.updateEndPoint({x:S,y:O});w.text.value&&_.adjustEdge&&w.setText(Object.assign({},w.text,w.textPosition))},n.onDragEnd=function(d){var l,u,f,c=d.event;try{n.setState({dragging:!1});var h=n.props,g=h.graphModel,p=h.edgeModel,v=h.type,y=n.state,_=y.endX,M=y.endY,S=y.dragging,O=Ze({x:_,y:M},g);if(!S)return;var w=!1,A=void 0;if(O&&O.node){var b=n.isAllowAdjust(O),R=b.pass,L=b.msg,z=b.newTargetNode;if(R){var I=p.getData(),U=I.text,Y=I.sourceAnchorId,Z=Y===void 0?"":Y,dt=I.targetAnchorId,jt=dt===void 0?"":dt,Rt=gs(I,["text","sourceAnchorId","targetAnchorId"]);if(A=ct(ct({sourceAnchorId:Z,targetAnchorId:jt},Rt),{text:(U==null?void 0:U.value)||""}),v===xt.SOURCE){var rt=g.getNodeModelById(O.node.id),gt=g.getNodeModelById(p.targetNodeId),re=(l=g.edgeGenerator)===null||l===void 0?void 0:l.call(g,rt==null?void 0:rt.getData(),gt==null?void 0:gt.getData(),A);A=ct(ct({},re),{sourceNodeId:O.node.id,sourceAnchorId:O.anchor.id,startPoint:{x:O.anchor.x,y:O.anchor.y},targetNodeId:p.targetNodeId,endPoint:ct({},p.endPoint)}),p.sourceNodeId===O.node.id&&p.sourceAnchorId===O.anchor.id&&(w=!0)}else if(v===xt.TARGET){var rt=g.getNodeModelById(p.sourceNodeId),gt=g.getNodeModelById(O.node.id),re=(u=g.edgeGenerator)===null||u===void 0?void 0:u.call(g,rt==null?void 0:rt.getData(),gt==null?void 0:gt.getData(),A);A=ct(ct({},re),{sourceNodeId:p.sourceNodeId,startPoint:ct({},p.startPoint),targetNodeId:O.node.id,targetAnchorId:O.anchor.id,endPoint:{x:O.anchor.x,y:O.anchor.y}}),p.targetNodeId===O.node.id&&p.targetAnchorId===O.anchor.id&&(w=!0)}}else{w=!0;var an=z.getData();g.eventCenter.emit(T.CONNECTION_NOT_ALLOWED,{data:an,msg:L})}}else w=!0;if(w)n.recoveryEdge();else{var Ae=p.getData();g.deleteEdgeById(p.id);var sn=g.addEdge(ct({},A));g.eventCenter.emit(T.EDGE_EXCHANGE_NODE,{data:{newEdge:sn.getData(),oldEdge:Ae}})}(f=n.preTargetNode)===null||f===void 0||f.setElementState(X.DEFAULT)}finally{var g=n.props.graphModel;g.eventCenter.emit(T.ADJUST_POINT_DRAGEND,{e:c,data:n.stepDragData})}},n.recoveryEdge=function(){var d=n.props.edgeModel,l=n.oldEdge,u=l.startPoint,f=l.endPoint,c=l.pointsList;d.updateStartPoint(u),d.updateEndPoint(f),d.modelType!==j.LINE_EDGE&&(d.pointsList=c??[],d.initPoints())},n.getAdjustPointStyle=function(){var d=n.props.graphModel.theme,l=d.edgeAdjust;return l},n.state={dragging:!1,endX:0,endY:0},n.targetRuleResults=new Map,n.sourceRuleResults=new Map;var o=t.type,i=t.edgeModel,a=t.graphModel,s=a.eventCenter;return n.stepDragData={type:o,edgeData:i.getData()},n.stepDrag=new Mt({onDragStart:n.onDragStart,onDragging:n.onDragging,onDragEnd:n.onDragEnd,eventType:"ADJUST_POINT",isStopPropagation:!1,eventCenter:s,data:n.stepDragData}),n}return e.prototype.isAllowAdjust=function(t){var n=this.props,o=n.edgeModel,i=o.id,a=o.sourceNode,s=o.targetNode,d=o.sourceAnchorId,l=o.targetAnchorId,u=n.type,f,c,h,g;if(u===xt.SOURCE?(f=t.node,c=s,h=t.anchor,g=s.getAnchorInfo(l)):(f=a,c=t.node,g=t.anchor,h=a.getAnchorInfo(d)),this.preTargetNode&&this.preTargetNode!==t.node&&this.preTargetNode.setElementState(X.DEFAULT),this.preTargetNode=t.node,g.id===h.id)return{pass:!1,msg:"",newTargetNode:c};var p="".concat(f.id,"_").concat(c.id,"_").concat(h.id,"_").concat(g.id);if(!this.targetRuleResults.has(p)){var v=f.isAllowConnectedAsSource(c,h,g,i),y=c.isAllowConnectedAsTarget(f,h,g,i);this.sourceRuleResults.set(p,Ve(v)),this.targetRuleResults.set(p,Ve(y))}var _=this.sourceRuleResults.get(p),M=_.isAllPass,S=_.msg,O=this.targetRuleResults.get(p),w=O.isAllPass,A=O.msg,b=M&&w?X.ALLOW_CONNECT:X.NOT_ALLOW_CONNECT;return u===xt.SOURCE?f.setElementState(b):c.setElementState(b),{pass:M&&w,msg:A||S,newTargetNode:c}},e.prototype.render=function(){var t=this.props,n=t.x,o=t.y,i=t.getAdjustPointShape,a=t.edgeModel,s=this.state.dragging;return x("g",{pointerEvents:s?"none":"",onMouseDown:this.handleMouseDown,children:s?"":i(n,o,a)})},e}(K),_s=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Yn=function(){return Yn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},on=function(r){ms(e,r);function e(){var t=r.call(this)||this;return t.textRef=Gn(),t.handleHover=function(n,o){var i=t.props,a=i.model,s=i.graphModel.eventCenter;a.setHovered(n);var d=n?T.EDGE_MOUSEENTER:T.EDGE_MOUSELEAVE,l=a.getData();s.emit(d,{data:l,e:o})},t.setHoverOn=function(n){var o=t.props.model.isHovered;o||(t.textRef&&t.textRef.current&&t.textRef.current.setHoverOn(),t.handleHover(!0,n))},t.setHoverOff=function(n){var o=t.props.model.isHovered;o&&(t.textRef&&t.textRef.current&&t.textRef.current.setHoverOff(),t.handleHover(!1,n))},t.handleContextMenu=function(n){n.preventDefault(),t.contextMenuTime=new Date().getTime(),t.clickTimer&&clearTimeout(t.clickTimer);var o=t.props,i=o.model,a=o.graphModel,s=a.editConfigModel,d=a.getPointByClient({x:n.clientX,y:n.clientY});a.setElementStateById(i.id,X.SHOW_MENU,d.domOverlayPosition),s.isSilentMode||t.toFront(),i.isSelected||a.selectEdgeById(i.id);var l=i==null?void 0:i.getData();a.eventCenter.emit(T.EDGE_CONTEXTMENU,{data:l,e:n,position:d})},t.handleMouseDown=function(n){n.stopPropagation(),t.startTime=new Date().getTime()},t.handleMouseUp=function(){var n=t.props.model;t.mouseUpDrag=n.isDragging},t.handleClick=function(n){if(t.startTime&&!t.mouseUpDrag){var o=n.button===2;if(!o){var i=n.detail===2,a=t.props,s=a.model,d=a.graphModel,l=s==null?void 0:s.getData(),u=d.getPointByClient({x:n.clientX,y:n.clientY});if(i){var f=d.editConfigModel,c=d.textEditElement,h=s.id,g=s.text,p=s.modelType;if(c&&c.id===h&&d.setElementStateById(h,X.DEFAULT),f.edgeTextEdit&&g.editable&&(s.setSelected(!1),d.setElementStateById(h,X.TEXT_EDIT)),p===j.POLYLINE_EDGE){var v=s,y=d.getPointByClient({x:n.x,y:n.y}).canvasOverlayPosition,_=y.x,M=y.y;v.dbClickPosition=to({x:_,y:M},v.points)}d.eventCenter.emit(T.EDGE_DBCLICK,{data:l,e:n,position:u})}else d.eventCenter.emit(T.ELEMENT_CLICK,{data:l,e:n,position:u}),d.eventCenter.emit(T.EDGE_CLICK,{data:l,e:n,position:u});var S=d.editConfigModel;d.selectEdgeById(s.id,eo(n,S)),S.isSilentMode||t.toFront()}}},t.handleFocus=function(){var n=t.props,o=n.model,i=n.graphModel;i.eventCenter.emit(T.EDGE_FOCUS,{data:o.getData()})},t.handleBlur=function(){var n=t.props,o=n.model,i=n.graphModel;i.eventCenter.emit(T.EDGE_BLUR,{data:o.getData()})},t}return e.prototype.getShape=function(){return x("g",{children:this.getEdge()})},e.prototype.getTextStyle=function(){},e.prototype.getText=function(){var t,n=this.props,o=n.model,i=n.graphModel,a=i.editConfigModel;if(a.edgeTextMode!==st.TEXT||o.state===X.TEXT_EDIT)return null;if(o.text){var s=!1;return a.edgeTextDraggable&&o.text.draggable&&(s=!0),x(rs,{ref:this.textRef,editable:a.edgeTextEdit&&((t=o.text.editable)!==null&&t!==void 0?t:!0),model:o,graphModel:i,draggable:s})}return null},e.prototype.getArrowInfo=function(){var t=this.props.model,n=t.startPoint,o=t.endPoint,i=t.isSelected,a=this.state.hover;return{start:n,end:o,hover:a,isSelected:i}},e.prototype.getLastTwoPoints=function(){var t=this.props.model,n=t.startPoint,o=t.endPoint;return[n,o]},e.prototype.getArrowStyle=function(){return console.error("getArrowStyle is deprecated in 1.2.0, please use model.getArrowStyle"),null},e.prototype.getArrow=function(){var t=this.props.model,n=t.id,o=t.getArrowStyle(),i=o.refY,a=i===void 0?0:i,s=o.refX,d=s===void 0?2:s,l=xs(this.getLastTwoPoints(),2),u=l[0],f=l[1],c="auto";return u!==null&&f!==null&&(c=Fi(Gi({x:f.x-u.x,y:f.y-u.y,z:0}))),x("g",{children:x("defs",{children:[x("marker",{id:"marker-start-".concat(n),refX:-d,refY:a,overflow:"visible",orient:"auto",markerUnits:"userSpaceOnUse",children:this.getStartArrow()}),x("marker",{id:"marker-end-".concat(n),refX:d,refY:a,overflow:"visible",orient:c,markerUnits:"userSpaceOnUse",children:this.getEndArrow()})]})})},e.prototype.getStartArrow=function(){return x("path",{})},e.prototype.getEndArrow=function(){var t=this.props.model,n=t.getArrowStyle(),o=n.stroke,i=n.strokeWidth,a=n.offset,s=n.verticalLength;return x("path",{stroke:o,fill:o,strokeWidth:i,transform:"rotate(180)",d:"M 0 0 L ".concat(a," -").concat(s," L ").concat(a," ").concat(s," Z")})},e.prototype.getAdjustPointShape=function(t,n,o){var i=o.getAdjustPointStyle();return x(ne,ve({className:"lf-edge-adjust-point"},i,{x:t,y:n}))},e.prototype.getAdjustPoints=function(){var t=this.props,n=t.model,o=t.graphModel,i=o.editConfigModel,a=i.adjustEdgeStartAndEnd,s=i.adjustEdgeStart,d=i.adjustEdgeEnd,l=n.getAdjustStart(),u=n.getAdjustEnd();return x("g",{children:[a&&s&&x(Hr,ve({type:xt.SOURCE},l,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:n,graphModel:o})),a&&d&&x(Hr,ve({type:xt.TARGET},u,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:n,graphModel:o}))]})},e.prototype.getAnimation=function(){console.error("getAnimation is deprecated in 1.2.0, please use model.getEdgeAnimationStyle")},e.prototype.getAppendWidth=function(){return x("g",{})},e.prototype.getAppend=function(){return x("g",{className:"lf-edge-append",children:this.getAppendWidth()})},e.prototype.getEdge=function(){return null},e.prototype.toFront=function(){var t=this.props,n=t.graphModel,o=t.model;n.toFront(o.id)},e.prototype.render=function(){var t=this.props.model,n=t.isSelected,o=t.isHitable,i=t.isShowAdjustPoint;return x("g",{children:[x("g",{className:["lf-edge",!o&&"pointer-none",n&&"lf-edge-selected"].filter(Boolean).join(" "),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onClick:this.handleClick,onContextMenu:this.handleContextMenu,onMouseOver:this.setHoverOn,onMouseEnter:this.setHoverOn,onMouseLeave:this.setHoverOff,onFocus:this.handleFocus,onBlur:this.handleBlur,children:[this.getShape(),this.getAppend(),this.getText(),this.getArrow()]}),i&&n?this.getAdjustPoints():""]})},e.isObserved=!1,e}(K),Es=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Hn=function(){return Hn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},kr=function(r){Es(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getEdge=function(){var t=this.props.model,n=t.getEdgeStyle(),o=t,i=o.path,a=o.isAnimation,s=o.arrowConfig,d=t.getEdgeAnimationStyle(),l=d.strokeDasharray,u=d.stroke,f=d.strokeDashoffset,c=d.animationName,h=d.animationDuration,g=d.animationIterationCount,p=d.animationTimingFunction,v=d.animationDirection;return x(Oe,Hn({d:i},n,s,a?{strokeDasharray:l,stroke:u,style:{strokeDashoffset:f,animationName:c,animationDuration:h,animationIterationCount:g,animationTimingFunction:p,animationDirection:v}}:{}))},e.prototype.getAppendWidth=function(){var t=this.props.model.path;return x(Oe,{d:t,strokeWidth:10,stroke:"transparent",fill:"none"})},e.prototype.getArrowInfo=function(){var t=this.props.model,n=this.state.hover,o=t.isSelected,i=t.getArrowStyle().offset,a=t.pointsList.map(function(f){return{x:f.x,y:f.y}}),s=Ms(lr(a,i),2),d=s[0],l=s[1],u={start:d,end:l,hover:n,isSelected:o};return u},e.prototype.getLastTwoPoints=function(){var t=this.props.model,n=t.getArrowStyle().offset,o=t.pointsList.map(function(i){return{x:i.x,y:i.y}});return lr(o,n)},e}(on),Os=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),kn=function(){return kn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Gr=function(r){Ss(e,r);function e(){var t=r.call(this)||this;return t.onDragStart=function(){var n=t.props.model;n.dragAppendStart(),t.isShowAdjustPointTemp=n.isShowAdjustPoint,n.isShowAdjustPoint=!1},t.onDragging=function(n){var o=n.deltaX,i=n.deltaY,a=t.props,s=a.model,d=a.graphModel;t.isDragging=!0;var l=d.transformModel,u=d.editConfigModel,f=ws(l.fixDeltaXY(o,i),2),c=f[0],h=f[1],g=s,p=u.adjustEdgeMiddle;p?t.appendInfo=g.dragAppendSimple(t.appendInfo,{x:c,y:h}):t.appendInfo=g.dragAppend(t.appendInfo,{x:c,y:h})},t.onDragEnd=function(){var n,o=t.props,i=o.model,a=o.graphModel.eventCenter,s=i;s.dragAppendEnd(),t.isDragging=!1,s.isShowAdjustPoint=(n=t.isShowAdjustPointTemp)!==null&&n!==void 0?n:!1,t.appendInfo=void 0,a.emit(T.EDGE_ADJUST,{data:s.getData()})},t.beforeDragStart=function(n,o){o.draggable&&t.drag.handleMouseDown(n),t.appendInfo=o},t.drag=new Mt({onDragStart:t.onDragStart,onDragging:t.onDragging,onDragEnd:t.onDragEnd,isStopPropagation:!1}),t}return e.prototype.getEdge=function(){var t=this.props.model,n=t.points,o=t.isAnimation,i=t.arrowConfig,a=t.getEdgeStyle(),s=t.getEdgeAnimationStyle(),d=s.strokeDasharray,l=s.stroke,u=s.strokeDashoffset,f=s.animationName,c=s.animationDuration,h=s.animationIterationCount,g=s.animationTimingFunction,p=s.animationDirection;return x(Oi,Xt({points:n},a,i,o?{strokeDasharray:d,stroke:l,style:{strokeDashoffset:u,animationName:f,animationDuration:c,animationIterationCount:h,animationTimingFunction:g,animationDirection:p}}:{}))},e.prototype.getArrowInfo=function(){var t=this.props.model,n=t.points,o=t.isSelected,i=this.state.hover,a=kt(n),s=a[0],d=a[0];return a.length>=2&&(s=a[a.length-2],d=a[a.length-1]),{start:s,end:d,hover:i,isSelected:o}},e.prototype.getLastTwoPoints=function(){var t=this.props.model,n=t.points,o=kt(n),i=o[0],a=o[0];return o.length>=2&&(i=o[o.length-2],a=o[o.length-1]),[i,a]},e.prototype.getAppendAttributes=function(t){var n=t.start,o=t.end,i;if(n.x===o.x&&n.y===o.y)i="";else{var a={start:n,end:o,offset:10,verticalLength:5},s=xe(Xt(Xt({},a),{type:"start"})),d=xe(Xt(Xt({},a),{type:"end"}));i="M".concat(s.leftX," ").concat(s.leftY,`
+ L`).concat(s.rightX," ").concat(s.rightY,`
+ L`).concat(d.rightX," ").concat(d.rightY,`
+ L`).concat(d.leftX," ").concat(d.leftY," z")}return{d:i,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},e.prototype.getAppendShape=function(t){var n=this.getAppendAttributes(t),o=n.d,i=n.strokeWidth,a=n.fill,s=n.strokeDasharray,d=n.stroke;return x(Oe,{d:o,fill:a,strokeWidth:i,stroke:d,strokeDasharray:s})},e.prototype.getAppendWidth=function(){for(var t=this,n=this.props,o=n.model,i=n.graphModel,a=o.pointsList,s=o.draggable,d=[],l=a.length,u=function(h){var g="lf-polyline-append",p={start:{x:a[h].x,y:a[h].y},end:{x:a[h+1].x,y:a[h+1].y},startIndex:h,endIndex:h+1,direction:G.HORIZONTAL,draggable:!0},v=x("g",{className:g,children:f.getAppendShape(p)}),y=i.editConfigModel,_=y.adjustEdge,M=y.adjustEdgeMiddle;if(_&&s){var S=p.startIndex,O=p.endIndex,w=M&&(S===0||O===l-1);p.draggable=!w,p.start.x===p.end.x?(p.draggable&&(g+="-ew-resize"),p.direction=G.VERTICAL):p.start.y===p.end.y&&(p.draggable&&(g+="-ns-resize"),p.direction=G.HORIZONTAL),v=x("g",{className:f.isDragging?"lf-dragging":"lf-drag-able",onMouseDown:function(A){return t.beforeDragStart(A,p)},children:x("g",{className:g,children:f.getAppendShape(p)})})}d.push(v)},f=this,c=0;c=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ns=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},bs=function(r){Ts(e,r);function e(t){var n=r.call(this,t)||this;return n.ref=Gn(),n.__prevText={type:"",text:"",id:""},n.keyupHandler=function(o){var i=n.props.graphModel.textEditElement;o.key==="Enter"&&o.altKey&&(i==null||i.setElementState(X.DEFAULT))},n.inputHandler=function(o){var i=o.target.innerText,a=n.props.graphModel.textEditElement;a&&(n.__prevText={type:a.type,text:i.replace(/(\r\n)+$|(\n)+$/,""),id:a.id})},n.keydownHandler=function(o){o.stopPropagation()},n.state={style:{left:0,top:0}},n}return e.getDerivedStateFromProps=function(t){var n,o=t.textEditElement,i=t.graphModel,a=i.transformModel,s=i.theme,d=s.inputText,l;if(o){if(!(!((n=o.text)===null||n===void 0)&&n.value)&&o.BaseType===$.EDGE){var u=o.text,f=o.textPosition,c=f.x,h=f.y;u.x=c,u.y=h,o.setText(u)}var g={resize:"auto",whiteSpace:"normal",wordBreak:"break-all"};if(o.BaseType===$.EDGE){var p=s.edgeText,v=p.overflowMode,y=p.lineHeight,_=p.wrapPadding,M=p.textWidth;M&&v==="autoWrap"&&(l=Ot(Ot({},g),{width:M,minWidth:M,lineHeight:y,padding:_}))}else if(o.BaseType===$.NODE){var S=s.nodeText,v=S.overflowMode,y=S.lineHeight,_=S.wrapPadding,M=S.textWidth,O=o.width,w=o.modelType,A=o.textWidth,b=A||M||O;(w!==j.TEXT_NODE&&v==="autoWrap"||w===j.TEXT_NODE&&M)&&(l=Ot(Ot({},g),{width:b,minWidth:b,lineHeight:y,padding:_}))}var R=o.text,L=R.x,z=R.y,I=Ns(a.CanvasPointToHtmlPoint([L,z]),2),U=I[0],Y=I[1];return{style:Ot(Ot({left:U,top:Y},l),d)}}return null},e.prototype.componentDidUpdate=function(){var t=this.props.graphModel;if(this.ref.current&&(this.ref.current.focus(),this.placeCaretAtEnd(this.ref.current)),this.__prevText.id!==""){var n=this.__prevText,o=n.text,i=n.id;t.updateText(i,o),t.eventCenter.emit(T.TEXT_UPDATE,{data:Ot({},this.__prevText)}),this.__prevText.id="",this.__prevText.text="",this.__prevText.type=""}},e.prototype.placeCaretAtEnd=function(t){if(window.getSelection!==void 0&&document.createRange!==void 0){var n=document.createRange();n.selectNodeContents(t),n.collapse(!1);var o=window.getSelection();o==null||o.removeAllRanges(),o==null||o.addRange(n)}},e.prototype.render=function(){var t,n=this.props.graphModel.textEditElement,o=this.state.style;return n?x("div",{contentEditable:!0,className:"lf-text-input",style:o,ref:this.ref,onKeyUp:this.keyupHandler,onKeyDown:this.keydownHandler,onKeyPress:this.keydownHandler,onInput:this.inputHandler,children:(t=n.text)===null||t===void 0?void 0:t.value},n.id):null},e.toolName="text-edit-tool",e=Ds([ot],e),e}(K),Cs=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Ls=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var s=r.length-1;s>=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},hn=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},js=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Is=[bs,Rs],Bs=function(){function r(e){var t=this;this.toolMap=new Map,this.disabledToolMap=new Map,this.instance=e,W(Is,function(i){t.isDisabled(i.toolName)||t.registerTool(i.toolName,i)});var n=e.graphModel,o=n.eventCenter;o.on("".concat(T.GRAPH_TRANSFORM,",").concat(T.NODE_CLICK,",").concat(T.BLANK_CLICK," "),function(){var i,a=n.textEditElement,s=n.editConfigModel,d=s.edgeTextEdit,l=s.nodeTextEdit;(d||l)&&a&&((i=n.textEditElement)===null||i===void 0||i.setElementState(X.DEFAULT))})}return r.prototype.isDisabled=function(e){var t;return((t=this.instance.options.disabledTools)===null||t===void 0?void 0:t.indexOf(e))!==-1},r.prototype.registerTool=function(e,t){this.toolMap.set(e,t)},r.prototype.disableTool=function(e){var t=this.toolMap.get(e);if(t)return this.disabledToolMap.set(e,t),this.toolMap.delete(e),!0;throw new Error("禁用失败,不存在名为 ${tool} 的工具")},r.prototype.enableTool=function(e){var t=this.disabledToolMap.get(e);if(t)return this.toolMap.set(e,t),this.disabledToolMap.delete(e),!0;throw new Error("不存在名为 ${tool} 的工具")},r.prototype.getTools=function(){return Array.from(this.toolMap.values())},r.prototype.getInstance=function(){return this.instance},r.prototype.destroy=function(){this.toolMap.clear(),this.disabledToolMap.clear()},yn([E],r.prototype,"toolMap",void 0),yn([m],r.prototype,"disableTool",null),yn([m],r.prototype,"enableTool",null),r}(),zn=function(){return zn=Object.assign||function(r){for(var e,t=1,n=arguments.length;tthis.maxSize&&this.undos.shift())},r.prototype.undoAble=function(){return this.undos.length>1},r.prototype.undo=function(){if(this.undoAble()){var e=this.undos.pop();this.redos.push(e);var t=this.undos.pop();return this.curData=C(t),t}},r.prototype.redoAble=function(){return this.redos.length>0},r.prototype.redo=function(){if(this.redoAble()){var e=this.redos.pop();return this.curData=C(e),e}},r.prototype.watch=function(e){var t=this;this.stopWatch&&this.stopWatch(),this.undos.push(e.modelToGraphData()),this.stopWatch=No(e,Zr(function(){var n=e.modelToHistoryData();n&&t.add(zn({},n))},this.waitTime))},r.prototype.destroy=function(){this.undos=[],this.redos=[],this.curData=null,this.stopWatch&&this.stopWatch()},r}();var vt=null;function Fr(r,e){return r.x+=e,r.y+=e,Vr(r.text)||(r.text.x+=e,r.text.y+=e),r}function $r(r,e){return r.startPoint&&(r.startPoint.x+=e,r.startPoint.y+=e),r.endPoint&&(r.endPoint.x+=e,r.endPoint.y+=e),r.pointsList&&r.pointsList.length>0&&r.pointsList.forEach(function(t){t.x+=e,t.y+=e}),Vr(r.text)||(r.text.x+=e,r.text.y+=e),r}var Vt=40,ke=40;function Ys(r,e){var t=r.keyboard,n=t.options.keyboard;t.on(["cmd + c","ctrl + c"],function(){if(ke=Vt,!(n!=null&&n.enabled)||e.textEditElement)return!0;var o=r.options.guards,i=e.getSelectElements(!1),a=o&&o.beforeClone?o.beforeClone(i):!0;return!a||i.nodes.length===0&&i.edges.length===0?(vt=null,!0):(vt=i,vt.nodes.forEach(function(s){return Fr(s,Vt)}),vt.edges.forEach(function(s){return $r(s,Vt)}),!1)}),t.on(["cmd + v","ctrl + v"],function(){if(!(n!=null&&n.enabled)||e.textEditElement)return!0;if(vt&&(vt.nodes||vt.edges)){r.clearSelectElements();var o=r.addElements(vt,ke);if(!o)return!0;o.nodes.forEach(function(i){return r.selectElementById(i.id,!0)}),o.edges.forEach(function(i){return r.selectElementById(i.id,!0)}),vt.nodes.forEach(function(i){return Fr(i,Vt)}),vt.edges.forEach(function(i){return $r(i,Vt)}),ke=ke+Vt}return!1}),t.on(["cmd + z","ctrl + z"],function(){return!(n!=null&&n.enabled)||e.textEditElement?!0:(r.undo(),!1)}),t.on(["cmd + y","ctrl + y"],function(){return!(n!=null&&n.enabled)||e.textEditElement?!0:(r.redo(),!1)}),t.on(["backspace"],function(){if(!(n!=null&&n.enabled)||e.textEditElement)return!0;var o=e.getSelectElements(!0);return r.clearSelectElements(),o.edges.forEach(function(i){return i.id&&r.deleteEdge(i.id)}),o.nodes.forEach(function(i){return i.id&&r.deleteNode(i.id)}),!1})}var Hs=function(){function r(e){e.keyboard||(e.keyboard={enabled:!1}),this.options=e;var t=e.lf;this.target=t.container,this.mousetrap=new Do(this.target),e.keyboard.enabled&&!t.options.isSilentMode&&this.enable(!0)}return r.prototype.initShortcuts=function(){var e=this,t,n=((t=this.options.keyboard)!==null&&t!==void 0?t:{}).shortcuts;if(n)if(Mo(n))n.forEach(function(s){var d=s.keys,l=s.callback,u=s.action;return e.on(d,l,u)});else{var o=n.keys,i=n.callback,a=n.action;this.on(o,i,a)}},r.prototype.on=function(e,t,n){this.mousetrap.bind(this.getKeys(e),t,n)},Object.defineProperty(r.prototype,"disabled",{get:function(){var e,t;return((t=(e=this.options)===null||e===void 0?void 0:e.keyboard)===null||t===void 0?void 0:t.enabled)!==!0},enumerable:!1,configurable:!0}),r.prototype.off=function(e,t){this.mousetrap.unbind(this.getKeys(e),t)},r.prototype.enable=function(e){(this.disabled||e)&&(this.options.keyboard&&(this.options.keyboard.enabled=!0),this.target instanceof HTMLElement&&(this.target.setAttribute("tabindex","-1"),this.target.style.outline="none"))},r.prototype.disable=function(){this.disabled||(this.options.keyboard&&(this.options.keyboard.enabled=!1),this.target instanceof HTMLElement&&this.target.removeAttribute("tabindex"))},r.prototype.destroy=function(){this.mousetrap.reset()},r.prototype.getKeys=function(e){var t=this;return(Array.isArray(e)?e:[e]).map(function(n){return t.formatKey(n)})},r.prototype.formatKey=function(e){return e.toLowerCase().replace(/\s/g,"").replace("delete","del").replace("cmd","command")},r}(),Tt=function(){return Tt=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},gn=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;ny.step||Math.abs(y.sumDeltaY)>y.step)){var O=y.sumDeltaX%y.step,w=y.sumDeltaY%y.step,A=y.sumDeltaX-O,C=y.sumDeltaY-w;y.sumDeltaX=O,y.sumDeltaY=w;var I=(M=y.model)===null||M===void 0?void 0:M.getData();y.isDragging||((S=y.eventCenter)===null||S===void 0||S.emit(T["".concat(y.eventType,"_DRAGSTART")],{e:_,data:y.data||I}),y.onDragStart({event:_})),y.isDragging=!0,Promise.resolve().then(function(){var L,G;y.onDragging({deltaX:A,deltaY:C,event:_}),(L=y.eventCenter)===null||L===void 0||L.emit(T["".concat(y.eventType,"_MOUSEMOVE")],{deltaX:A,deltaY:C,e:_,data:y.data||I}),(G=y.eventCenter)===null||G===void 0||G.emit(T["".concat(y.eventType,"_DRAG")],{e:_,data:y.data||I})})}},this.handleMouseUp=function(_){var M=window.document;y.isStartDragging=!1,y.isStopPropagation&&_.stopPropagation(),Promise.resolve().then(function(){var S,O,w;M.removeEventListener("mousemove",y.handleMouseMove,!1),M.removeEventListener("mouseup",y.handleMouseUp,!1);var A=(S=y.model)===null||S===void 0?void 0:S.getData();(O=y.eventCenter)===null||O===void 0||O.emit(T["".concat(y.eventType,"_MOUSEUP")],{e:_,data:y.data||A}),y.isDragging&&(y.isDragging=!1,y.onDragEnd({event:_}),(w=y.eventCenter)===null||w===void 0||w.emit(T["".concat(y.eventType,"_DROP")],{e:_,data:y.data||A}))})},this.cancelDrag=function(){var _=window==null?void 0:window.document;_.removeEventListener("mousemove",y.handleMouseMove,!1),_.removeEventListener("mouseup",y.handleMouseUp,!1),y.onDragEnd({event:void 0}),y.isDragging=!1},this.onDragStart=n,this.onDragging=i,this.onDragEnd=s,this.step=c,this.isStopPropagation=g,this.eventType=l,this.eventCenter=u,this.model=p,this.data=v}return r.prototype.setStep=function(e){this.step=e},r.prototype.setModel=function(e){this.model=e},r}(),Io=function(r){var e=r.x,t=r.y,n=r.width,o=r.height;return{x:e-n/2,y:t-o/2,x1:e+n/2,y1:t+o/2}},Bo=function(r){var e=r.startPoint,t=r.endPoint,n=(e.x+t.x)/2,o=(e.y+t.y)/2,i=Math.abs(e.x-t.x)+10,a=Math.abs(e.y-t.y)+10;return{x:n-i/2,y:o-a/2,x1:n+i/2,y1:o+a/2}},Xo=function(r){var e=r.points,t=Xt(e),n=Ee(t,8),o=n.x,i=n.y,a=n.width,s=n.height;return{x:o-a/2,y:i-s/2,x1:o+a/2,y1:i+s/2}},Yo=function(r){var e=r.path,t=Fn(e),n=Ee(t,8),o=n.x,i=n.y,a=n.width,s=n.height;return{x:o-a/2,y:i-s/2,x1:o+a/2,y1:i+s/2}},Ho=function(r){if(r.modelType===j.LINE_EDGE)return Bo(r);if(r.modelType===j.POLYLINE_EDGE)return Xo(r);if(r.modelType===j.BEZIER_EDGE)return Yo(r)},ko=function(r,e,t,n){var o=(e.y-r.y)*(n.x-t.x)-(r.x-e.x)*(t.y-n.y);if(o===0)return!1;var i=((e.x-r.x)*(n.x-t.x)*(t.y-r.y)+(e.y-r.y)*(n.x-t.x)*r.x-(n.y-t.y)*(e.x-r.x)*t.x)/o,a=-((e.y-r.y)*(n.y-t.y)*(t.x-r.x)+(e.x-r.x)*(n.y-t.y)*r.y-(n.x-t.x)*(e.y-r.y)*t.y)/o;return(i-r.x)*(i-e.x)<=0&&(a-r.y)*(a-e.y)<=0&&(i-t.x)*(i-n.x)<=0&&(a-t.y)*(a-n.y)<=0?{x:i,y:a}:!1},me=function(r,e,t){var n=r.x,o=r.y,i=e.x,a=e.y,s=t.x,d=t.y,l=(d-a)/(s-i),u=a-l*i;return n>=i&&n<=s&&o>=a&&o<=d&&Math.abs(o-l*n+u)=e.x?(a.leftX=e.x+l*Math.sin(s+d),a.leftY=e.y-l*Math.cos(s+d),a.rightX=e.x-l*Math.sin(s-d),a.rightY=e.y+l*Math.cos(s-d)):(a.leftX=e.x-l*Math.sin(s+d),a.leftY=e.y+l*Math.cos(s+d),a.rightX=e.x+l*Math.sin(s-d),a.rightY=e.y-l*Math.cos(s-d)):i==="end"&&(t.x>=e.x?(a.leftX=t.x+l*Math.sin(s-d),a.leftY=t.y-l*Math.cos(s-d),a.rightX=t.x-l*Math.sin(s+d),a.rightY=t.y+l*Math.cos(s+d)):(a.leftX=t.x-l*Math.sin(s-d),a.leftY=t.y+l*Math.cos(s-d),a.rightX=t.x+l*Math.sin(s+d),a.rightY=t.y-l*Math.cos(s+d))),a},Vt=function(){return Vt=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Pt=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;nn/e.height?F.HORIZONTAL:F.VERTICAL},Fe=function(r,e,t){var n=Go(t,e);return n===F.HORIZONTAL?{x:t.x>r.centerX?r.maxX:r.minX,y:t.y}:{x:t.x,y:t.y>r.centerY?r.maxY:r.minY}},qn=function(r,e){var t=Math.min(r.minX,e.minX),n=Math.min(r.minY,e.minY),o=Math.max(r.maxX,e.maxX),i=Math.max(r.maxY,e.maxY);return{x:(t+o)/2,y:(n+i)/2,centerX:(t+o)/2,centerY:(n+i)/2,minX:t,minY:n,maxX:o,maxY:i,height:i-n,width:o-t}},Ee=function(r,e){r===void 0&&(r=[]);var t=[],n=[];r.forEach(function(u){t.push(u.x),n.push(u.y)});var o=Math.min.apply(Math,Pt([],it(t),!1)),i=Math.max.apply(Math,Pt([],it(t),!1)),a=Math.min.apply(Math,Pt([],it(n),!1)),s=Math.max.apply(Math,Pt([],it(n),!1)),d=i-o,l=s-a;return e&&(d+=e,l+=e),{centerX:(o+i)/2,centerY:(a+s)/2,maxX:i,maxY:s,minX:o,minY:a,x:(o+i)/2,y:(a+s)/2,height:l,width:d}},$e=function(r){var e=r.minX,t=r.minY,n=r.maxX,o=r.maxY;return[{x:e,y:t},{x:n,y:t},{x:n,y:o},{x:e,y:o}]},De=function(r,e){var t=r.x,n=r.y;return te.maxX||ne.maxY},Fo=function(r,e){return er.maxX?[]:[{x:e,y:r.minY},{x:e,y:r.maxY}]},$o=function(r,e){return er.maxY?[]:[{x:r.minX,y:e},{x:r.maxX,y:e}]},Uo=function(r,e){return Pt(Pt([],it(Fo(r,e.x)),!1),it($o(r,e.y)),!1)},mn=function(r,e){return Math.abs(r.x-e.x)+Math.abs(r.y-e.y)},Wo=function(r,e){var t=-2,n=0;return e.forEach(function(o){o&&(r.x===o.x&&(n+=t),r.y===o.y&&(n+=t))}),n},Jn=function(r,e,t,n,o){return mn(r,e)+mn(r,t)+Wo(r,[e,t,n,o])},Zr=function(r,e,t,n,o){o||(o=0),r.unshift(e[n]),t[n]&&t[n]!==n&&o<=100&&Zr(r,e,t,t[n],o+1)},Zo=function(r,e){var t=r.indexOf(e);t>-1&&r.splice(t,1)},ie=function(r,e,t,n){var o=e.x-r.x,i=e.y-r.y,a=n.x-t.x,s=n.y-t.y,d=(-i*(r.x-t.x)+o*(r.y-t.y))/(-a*i+o*s),l=(a*(r.y-t.y)-s*(r.x-t.x))/(-a*i+o*s);return d>=0&&d<=1&&l>=0&&l<=1},Qn=function(r,e,t){if(t.width===0&&t.height===0)return!1;var n=it($e(t),4),o=n[0],i=n[1],a=n[2],s=n[3];return ie(r,e,o,i)||ie(r,e,o,s)||ie(r,e,i,a)||ie(r,e,a,s)},Vo=function(r,e,t,n){var o=[];return r.forEach(function(i){i!==e&&(i.x===e.x||i.y===e.y)&&!Qn(i,e,t)&&!Qn(i,e,n)&&o.push(i)}),_n(o)},Ko=function(r,e,t,n,o,i,a){var s=[],d=[e],l={},u={},f={};e.id&&(u[e.id]=0,f[e.id]=Jn(e,t,e));var c={};r.forEach(function(p){p.id&&(c[p.id]=p)});for(var h=function(){var p,v=1/0;if(d.forEach(function(_){_.id&&f[_.id]=u[_.id])return;l[_.id]=p.id,u[_.id]=M,f[_.id]=u[_.id]+Jn(_,t,e,i,a)}})};d.length;){var g=h();if(typeof g=="object")return g.value}return[e,t]},tr=function(r){return nt(r)},Vr=function(r){for(var e=1;e2&&(y=Vr(y)),_n(y)},qo=function(r){if(r.length===1){var e=it(r,1),t=e[0];return[t,t]}else{for(var n=r[0],o=r[1],i=pt(n.x,n.y,o.x,o.y),a=1;ai&&(i=l,n=s,o=d)}return[n,o]}},nr=function(r,e,t){var n=Tt(r,t),o=Tt(e,t);return n&&o},rr=function(r,e,t){var n=Tt(r,t),o=Tt(e,t),i=n&&o,a=n||o;return!i&&a},or=function(r,e,t){for(var n=void 0,o=nt(t),i=$e(o),a=0;a=1&&n<=126||n>=65376&&n<=65439?e+=1:e+=2}return e},Qo=function(r){var e=r.start,t=r.end,n;if(e.x===t.x&&e.y===t.y)n="";else{var o={start:e,end:t,offset:10,verticalLength:5},i=xe(Vt(Vt({},o),{type:"start"})),a=xe(Vt(Vt({},o),{type:"end"}));n="M".concat(i.leftX," ").concat(i.leftY,`
- L`).concat(i.rightX," ").concat(i.rightY,`
- L`).concat(a.rightX," ").concat(a.rightY,`
- L`).concat(a.leftX," ").concat(a.leftY," z")}return{d:n,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},ar=function(r){var e=r.start,t=r.end,n=r.sourceNode,o=r.targetNode,i=r.offset,a=nt(n),s=nt(o),d=Ge(a,i),l=Ge(s,i),u=Fe(d,a,e),f=Fe(l,s,t);return{sNext:u,ePre:f}},Fn=function(r){var e=r.replace(/M/g,"").replace(/C/g,",").split(","),t=be(e[0]),n=be(e[1]),o=be(e[2]),i=be(e[3]);return[t,n,o,i]},be=function(r){var e=it(r.replace(/(^\s*)/g,"").split(" "),2),t=e[0],n=e[1];return{x:+t,y:+n}},sr=function(r,e){var t=it(r,4),n=t[0],o=t[1],i=t[2],a=t[3],s=Bi(n,o,i,a,e);return[s,r[3]]},qr=function(r,e){for(var t=r.x,n=r.y,o=Xt(e),i=Number.MAX_SAFE_INTEGER,a,s=[],d=0;do?a:o}),{width:Math.ceil(o/2)*n+n/4,height:t*(n+2)+n/4}},Gt=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Ce=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},un=function(r,e,t){var n=ln(r,2),o=n[0],i=n[1],a=ln(e,2),s=a[0],d=a[1],l=ln(t,2),u=l[0],f=l[1];return o>s&&od&&i=0?o:-o},e}(Qr),xn=function(r){$n(e,r);function e(t,n){var o=r.call(this,t,n,1)||this;return Object.setPrototypeOf(o,e.prototype),o}return e.prototype.toString=function(){return"Point"},e}(Qr),tn=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Ft=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},fn=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n=0;o--){var i=t[o],a=di(r,i);if(a){var s=i.getTargetAnchor(r);if(s){var d={node:i,anchorIndex:s.index,anchor:s.anchor};(!n||ai(i,n.node,e))&&(n=d)}}}return n},ai=function(r,e,t){return r.zIndex>e.zIndex?!0:t.nodesMap[r.id].index>t.nodesMap[e.id].index},si=function(r,e){for(var t=En(e),n,o=Number.MAX_SAFE_INTEGER,i=0;i=o.minX-n&&r.x<=o.maxX+n&&r.y>=o.minY-n&&r.y<=o.maxY+n&&(t=!0),t},di=function(r,e){var t=!1,n=5,o=nt(e);return r.x>=o.minX-n&&r.x<=o.maxX+n&&r.y>=o.minY-n&&r.y<=o.maxY+n&&(t=!0),t},nt=function(r){var e=r.x,t=r.y,n=r.width,o=r.height;return{minX:e-n/2,minY:t-o/2,maxX:e+n/2,maxY:t+o/2,x:e,y:t,width:n,height:o,centerX:e,centerY:t}},li=function(r){var e=r,t=e.x,n=e.y,o=e.width,i=e.height,a=e.radius;return[{x:t-o/2+a,y:n-i/2+a,r:a},{x:t+o/2-a,y:n-i/2+a,r:a},{x:t-o/2+a,y:n+i/2-a,r:a},{x:t+o/2-a,y:n+i/2-a,r:a}]},ur=function(r,e,t){var n=li(t),o,i=Number.MAX_SAFE_INTEGER;return n.forEach(function(a){var s=pt(r.x,r.y,a.x,a.y);sl.minX&&r.xl.minY&&r.yu.x&&(f=u,c=l);var h={x:r.x,y:r.y};if(f.x===c.x&&e===F.HORIZONTAL&&(h={x:f.x,y:r.y}),f.y===c.y&&e===F.VERTICAL&&(h={x:r.x,y:f.y}),f.x!==c.x&&f.y!==c.y){var g=(c.y-f.y)/(c.x-f.x),p=(f.x*c.y-c.x*f.y)/(f.x-c.x);e===F.HORIZONTAL?h={x:(r.y-p)/g,y:r.y}:e===F.VERTICAL&&(h={x:r.x,y:g*r.x+p})}var v=me(h,l,u);if(v){var y=pt(h.x,h.y,r.x,r.y);yr.x?o=r.x+t/2:e.xr.y?i=r.y+n/2:e.y1?e.forEach(function(s){var d=document.createElement("div");d.textContent=s,i.appendChild(d)}):i.textContent=e[0],document.body.appendChild(i);var a=i.clientHeight;return document.body.removeChild(i),a},hr=function(r){var e=r.rows,t=r.rowsLength,n=r.fontSize,o=0;return e&&e.forEach(function(i){var a=Kr(i);o=a>o?a:o}),{width:Math.ceil(o/2)*n+n/4,height:t*(n+2)+n/4}},Ve=function(r){return typeof r!="object"?{isAllPass:!!r,msg:r?"":"不允许连接"}:r},It=function(){return wo()},se=new Map,eo=function(r){var e=It();function t(){r();var o=se.get(e);if(o){var i=window.requestAnimationFrame(t);se.set(e,i)}}var n=window.requestAnimationFrame(t);return se.set(e,n),e},Ke=function(r){var e=se.get(r);e&&(window.cancelAnimationFrame(e),se.delete(r))},Me=function(){return Me=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i};function no(r){var e=r.x,t=e===void 0?0:e,n=r.y,o=n===void 0?0:n,i=r.value,a=r.fontSize,s=a===void 0?12:a,d=r.fill,l=d===void 0?"currentColor":d,u=r.overflowMode,f=u===void 0?"default":u,c=r.textWidth,h=c===void 0?void 0:c,g=r.model,p={x:t,y:o,fill:l,fontSize:s,textAnchor:"middle",dominantBaseline:"central"};if(W(Nt(r),function(O){var w=fi(O,2),A=w[0],C=w[1];typeof C!="object"&&(p[A]=C)}),i){var v=String(i).split(/[\r\n]/g),y=v.length;if(f!=="default"){var _=g.BaseType,M=g.modelType;if(_===U.NODE&&M!==j.TEXT_NODE||_===U.EDGE&&h)return ci(r)}if(y>1){var S=v.map(function(O,w){var A=s+2,C=(w-(y-1)/2)*A;return x("tspan",{className:"lf-text-tspan",x:t,y:o+C,children:O})});return x("text",Me({},p,{children:S}))}return x("text",Me({},p,{children:i}))}return null}function ci(r){var e=r.x,t=r.y,n=r.value,o=r.model,i=r.textWidth,a=r.fontSize,s=a===void 0?12:a,d=r.lineHeight,l=r.fontFamily,u=l===void 0?"":l,f=r.wrapPadding,c=f===void 0?"0, 0":f,h=r.overflowMode,g=o.width,p=o.height,v=o.textHeight,y=i||g,_=String(n).split(/[\r\n]/g),M=_.length,S=to({rows:_,style:{fontSize:"".concat(s,"px"),width:"".concat(y,"px"),fontFamily:u,lineHeight:d,padding:c},rowsLength:M,className:"lf-get-text-height"}),O=p>S?p:S;v&&(O=v);var w=h==="ellipsis";return w&&(O=s+2),x("g",{children:x("foreignObject",{width:y,height:O,x:e-y/2,y:t-O/2,style:{overflow:"visible",textAlign:"left"},children:x("div",{className:"lf-node-text-auto-wrap",style:{minHeight:O,width:y,padding:c},children:x("div",{className:w?"lf-node-text-ellipsis-content":"lf-node-text-auto-wrap-content",title:w?_.join(""):"",style:Me({},r),children:_.map(function(A){return x("div",{className:"lf-node-text--auto-wrap-inner",children:A})})})})})})}var On=function(){return On=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i};function ee(r){var e={x1:10,y1:10,x2:20,y2:20,stroke:"black"};return W(Nt(r),function(t){var n=pi(t,2),o=n[0],i=n[1];(o==="style"||typeof i!="object")&&(e[o]=i)}),x("line",On({},e))}var Sn=function(){return Sn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i};function mt(r){var e=r.x,t=r.y,n=r.width,o=r.height,i=r.className,a=r.strokeWidth,s=r.radius,d=s===void 0?0:s,l=e-n/2,u=t-o/2,f={};return f["stroke-width"]=a,W(Nt(r),function(c){var h=hi(c,2),g=h[0],p=h[1];typeof p!="object"&&(f[g]=p)}),i?f.className="lf-basic-shape ".concat(i):f.className="lf-basic-shape",d&&(f.rx=d,f.ry=d),f.x=l,f.y=u,x("rect",Sn({},f))}var wn=function(){return wn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i};function Oe(r){var e={d:""};return W(Nt(r),function(t){var n=yi(t,2),o=n[0],i=n[1];(o==="style"||typeof i!="object")&&(e[o]=i)}),x("path",wn({},e))}var An=function(){return An=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i};function ne(r){var e=r.x,t=e===void 0?0:e,n=r.y,o=n===void 0?0:n,i=r.r,a=i===void 0?4:i,s=r.className,d={cx:t,cy:o,r:a,fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1};return W(Nt(r),function(l){var u=gi(l,2),f=u[0],c=u[1];typeof c!="object"&&(d[f]=c)}),s?d.className="lf-basic-shape ".concat(s):d.className="lf-basic-shape",x("circle",An({},d))}var Pn=function(){return Pn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i};function _i(r){var e=r.x,t=e===void 0?0:e,n=r.y,o=n===void 0?0:n,i=r.rx,a=i===void 0?4:i,s=r.ry,d=s===void 0?4:s,l=r.className,u={cx:t,cy:o,rx:a,ry:d,fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1};return W(Nt(r),function(f){var c=vi(f,2),h=c[0],g=c[1];typeof g!="object"&&(u[h]=g)}),l?u.className="lf-basic-shape ".concat(l):u.className="lf-basic-shape",x("ellipse",Pn({},u))}var Tn=function(){return Tn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i};function ro(r){var e=r.points,t=e===void 0?[]:e,n=r.className,o={fill:"transparent",fillOpacity:1,strokeWidth:1,stroke:"#000",strokeOpacity:1,points:""};return W(Nt(r),function(i){var a=mi(i,2),s=a[0],d=a[1];typeof d!="object"&&(o[s]=d)}),n?o.classNmae="lf-basic-shape ".concat(n):o.className="lf-basic-shape",o.points=t.map(function(i){return i.join(",")}).join(" "),x("polygon",Tn({},o))}var Nn=function(){return Nn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i};function Ei(r){var e=r.className,t={points:"",fill:"none"};return W(Nt(r),function(n){var o=xi(n,2),i=o[0],a=o[1];(i==="style"||typeof a!="object")&&(t[i]=a)}),e&&(t.className="".concat(e)),x("polyline",Nn({},t))}var oo=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Se=function(){return Se=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},k;(function(r){r[r.LEFT_TOP=0]="LEFT_TOP",r[r.RIGHT_TOP=1]="RIGHT_TOP",r[r.RIGHT_BOTTOM=2]="RIGHT_BOTTOM",r[r.LEFT_BOTTOM=3]="LEFT_BOTTOM"})(k||(k={}));var Si=function(r){oo(e,r);function e(t){var n=r.call(this)||this;n.updateEdgePointByAnchors=function(){var s=n.nodeModel,d=s.id,l=s.anchors,u=n.graphModel.getNodeEdges(d);W(u,function(f){if(f.sourceNodeId===d){var c=Bt(l,function(h){return h.id===f.sourceAnchorId});c&&f.updateStartPoint({x:c.x,y:c.y})}else if(f.targetNodeId===d){var c=Bt(l,function(g){return g.id===f.targetAnchorId});c&&f.updateEndPoint({x:c.x,y:c.y})}})},n.triggerResizeEvent=function(s,d,l,u,f,c){n.graphModel.eventCenter.emit(T.NODE_RESIZE,{preData:s,data:d,deltaX:l,deltaY:u,index:f,model:c})},n.recalcResizeInfo=function(s,d,l,u,f){l===void 0&&(l=1),u===void 0&&(u=!1),f===void 0&&(f=!1);var c=b(d),h=c.deltaX,g=c.deltaY,p=c.width,v=c.height,y=c.PCTResizeInfo;if(y){var _=4,M=0,S=0;switch(s){case k.LEFT_TOP:S=(h*-1-g)/_;break;case k.RIGHT_TOP:S=(h-g)/_;break;case k.RIGHT_BOTTOM:S=(h+g)/_;break;case k.LEFT_BOTTOM:S=(h*-1+g)/_;break}S!==0&&(M=Math.round(S/y.ResizeBasis.basisHeight*1e5)/1e3),y.ResizePCT.widthPCT=Math.max(Math.min(y.ResizePCT.widthPCT+M,y.ScaleLimit.maxScaleLimit),y.ScaleLimit.minScaleLimit),y.ResizePCT.heightPCT=Math.max(Math.min(y.ResizePCT.heightPCT+M,y.ScaleLimit.maxScaleLimit),y.ScaleLimit.minScaleLimit);var O=Math.round(y.ResizePCT.widthPCT*y.ResizeBasis.basisWidth/100),w=Math.round(y.ResizePCT.heightPCT*y.ResizeBasis.basisHeight/100);switch(s){case k.LEFT_TOP:h=p-O,g=v-w;break;case k.RIGHT_TOP:h=O-p,g=v-w;break;case k.RIGHT_BOTTOM:h=O-p,g=w-v;break;case k.LEFT_BOTTOM:h=p-O,g=w-v;break}return c}switch(s){case k.LEFT_TOP:c.width=u?p:p-h*l,c.height=f?v:v-g*l;break;case k.RIGHT_TOP:c.width=u?p:p+h*l,c.height=f?v:v-g*l;break;case k.RIGHT_BOTTOM:c.width=u?p:p+h*l,c.height=f?v:v+g*l;break;case k.LEFT_BOTTOM:c.width=u?p:p-h*l,c.height=f?v:v+g*l;break}return c},n.resizeNode=function(s){var d=s.deltaX,l=s.deltaY,u=n.index,f=n.props,c=f.model,h=f.graphModel,g=f.x,p=f.y;Li({x:g,y:p,deltaX:d,deltaY:l,index:u,nodeModel:c,graphModel:h,cancelCallback:function(){n.dragHandler.cancelDrag()}})},n.onDragging=function(s){var d=s.deltaX,l=s.deltaY,u=n.graphModel.transformModel,f=Oi(u.fixDeltaXY(d,l),2),c=f[0],h=f[1];n.resizeNode({deltaX:c,deltaY:h})},n.onDragEnd=function(){var s=n.nodeModel.x,d=n.nodeModel.y;n.nodeModel.moveTo(s,d),n.updateEdgePointByAnchors()};var o=t.index,i=t.model,a=t.graphModel;return n.index=o,n.nodeModel=i,n.graphModel=a,n.dragHandler=new xt({onDragging:n.onDragging,onDragEnd:n.onDragEnd,step:a.gridSize}),n}return e.prototype.componentWillUnmount=function(){this.dragHandler.cancelDrag()},e.prototype.render=function(){var t=this.props,n=t.x,o=t.y,i=t.direction,a=t.model,s=a.getResizeControlStyle(),d=s.width,l=s.height,u=Mi(s,["width","height"]);return x("g",{className:"lf-resize-control lf-resize-control-".concat(i),children:[x(mt,Se({className:"lf-resize-control-content",x:n,y:o,width:d??7,height:l??7},u)),x(mt,{className:"lf-resize-control-content",x:n,y:o,width:25,height:25,fill:"transparent",stroke:"transparent",onMouseDown:this.dragHandler.handleMouseDown})]})},e}(V),wi=function(r){oo(e,r);function e(){return r.call(this)||this}return e.prototype.getResizeControl=function(){var t=this.props,n=t.model,o=t.graphModel,i=nt(n),a=i.minX,s=i.minY,d=i.maxX,l=i.maxY,u=[{index:k.LEFT_TOP,direction:"nw",x:a,y:s},{index:k.RIGHT_TOP,direction:"ne",x:d,y:s},{index:k.RIGHT_BOTTOM,direction:"se",x:d,y:l},{index:k.LEFT_BOTTOM,direction:"sw",x:a,y:l}];return Ot(u,function(f){return x(Si,Se({},f,{model:n,graphModel:o}))})},e.prototype.getResizeOutline=function(){var t=this.props.model,n=t.x,o=t.y,i=t.width,a=t.height,s=t.getResizeOutlineStyle();return x(mt,Se({},s,{x:n,y:o,width:i,height:a}))},e.prototype.render=function(){return x("g",{className:"lf-resize-control-group",children:[this.getResizeOutline(),this.getResizeControl()]})},e}(V);function Ai(r,e){var t=r.x,n=r.y,o=e.x,i=e.y,a={x:t+(o-t)/2,y:n+(i-n)/2};return a}function ae(r,e,t){var n=Pi(t),o=r.x-e.x,i=r.y-e.y,a=o*Math.cos(n)-i*Math.sin(n)+e.x,s=o*Math.sin(n)+i*Math.cos(n)+e.y;return{x:a,y:s}}function Pi(r){return r*Math.PI/180}function Ti(r){return r/Math.PI*180}function Ni(r,e,t,n,o,i,a,s,d){s===void 0&&(s=!1),d===void 0&&(d=!1);var l=e.deltaX,u=e.deltaY,f=e.width,c=e.height,h=Ti(t),g={x:n,y:o},p={x:i,y:a},v=ae(g,p,h),y={x:v.x+l,y:v.y+u},_=ji(v,y,p,h,s,d,f,c),M=_.width,S=_.height,O=_.center;return e.width=M*r,e.height=S*r,e.deltaX=(O.x-p.x)*2,e.deltaY=(O.y-p.y)*2,e}var Di=function(r,e,t,n,o,i,a,s,d,l){t===void 0&&(t=1),n===void 0&&(n=!1),o===void 0&&(o=!1),i===void 0&&(i=0);var u=b(e),f=u.deltaX,c=u.deltaY,h=u.width,g=u.height,p=u.PCTResizeInfo;if(p){var v=4,y=0,_=0;switch(r){case k.LEFT_TOP:_=(f*-1-c)/v;break;case k.RIGHT_TOP:_=(f-c)/v;break;case k.RIGHT_BOTTOM:_=(f+c)/v;break;case k.LEFT_BOTTOM:_=(f*-1+c)/v;break}_!==0&&(y=Math.round(_/p.ResizeBasis.basisHeight*1e5)/1e3),p.ResizePCT.widthPCT=Math.max(Math.min(p.ResizePCT.widthPCT+y,p.ScaleLimit.maxScaleLimit),p.ScaleLimit.minScaleLimit),p.ResizePCT.heightPCT=Math.max(Math.min(p.ResizePCT.heightPCT+y,p.ScaleLimit.maxScaleLimit),p.ScaleLimit.minScaleLimit);var M=Math.round(p.ResizePCT.widthPCT*p.ResizeBasis.basisWidth/100),S=Math.round(p.ResizePCT.heightPCT*p.ResizeBasis.basisHeight/100);switch(r){case k.LEFT_TOP:f=h-M,c=g-S;break;case k.RIGHT_TOP:f=M-h,c=g-S;break;case k.RIGHT_BOTTOM:f=M-h,c=S-g;break;case k.LEFT_BOTTOM:f=h-M,c=S-g;break}return u}if(i%(2*Math.PI)!==0&&a!==void 0&&s!==void 0)return Ni(t,u,i,a,s,d,l,n,o);switch(r){case k.LEFT_TOP:u.width=n?h:h-f*t,u.height=o?g:g-c*t;break;case k.RIGHT_TOP:u.width=n?h:h+f*t,u.height=o?g:g-c*t;break;case k.RIGHT_BOTTOM:u.width=n?h:h+f*t,u.height=o?g:g+c*t;break;case k.LEFT_BOTTOM:u.width=n?h:h-f*t,u.height=o?g:g+c*t;break}return u},bi=function(r,e){var t=r.id,n=r.anchors,o=e.getNodeEdges(t);W(o,function(i){if(i.sourceNodeId===t){var a=Bt(n,function(s){return s.id===i.sourceAnchorId});a&&i.updateStartPoint({x:a.x,y:a.y})}else if(i.targetNodeId===t){var a=Bt(n,function(d){return d.id===i.targetAnchorId});a&&i.updateEndPoint({x:a.x,y:a.y})}})},Ci=function(r,e,t,n,o,i,a){a.eventCenter.emit(T.NODE_RESIZE,{preData:r,data:e,deltaX:t,deltaY:n,index:o,model:i})},Li=function(r){var e=r.x,t=r.y,n=r.deltaX,o=r.deltaY,i=r.index,a=r.nodeModel,s=r.graphModel,d=r.cancelCallback,l=a.r,u=a.rx,f=a.ry,c=a.width,h=a.height,g=a.PCTResizeInfo,p=a.minWidth,v=a.minHeight,y=a.maxWidth,_=a.maxHeight,M=a.rotate,S=a.x,O=a.y,w=p===y,A=v===_,C={width:l||u||c,height:l||f||h,deltaX:n,deltaY:o,PCTResizeInfo:g},I=l||u&&f?1/2:1,L=e,G=t,R=Di(i,C,I,w,A,M,L,G,S,O);if(R.widthy||R.height_){d==null||d();return}(M%(2*Math.PI)==0||g||L===void 0||G===void 0)&&(R.deltaX=w?0:R.deltaX,R.deltaY=A?0:R.deltaY);var Y=a.getData(),H=a.resize(R);Y.x===H.x&&Y.y===H.y||(bi(a,s),Ci(Y,H,n,o,i,a,s))};function ji(r,e,t,n,o,i,a,s){o===void 0&&(o=!1),i===void 0&&(i=!1);var d={x:t.x-(r.x-t.x),y:t.y-(r.y-t.y)},l=Ai(d,e),u=ae(e,l,-n),f=ae(d,l,-n);if(o){var c=Math.abs(u.x-f.x),h=c-a;l.x>u.x?l.x=l.x+h/2:l.x=l.x-h/2}if(i){var g=Math.abs(u.y-f.y),p=g-s;l.y>u.y?l.y=l.y+p/2:l.y=l.y-p/2}if(o||i){var v=ae(f,l,n),y=v.x-d.x,_=v.y-d.y;l.x=l.x-y,l.y=l.y-_,f=ae(d,l,-n),u={x:l.x-(f.x-l.x),y:l.y-(f.y-l.y)}}var M=Math.abs(u.x-f.x),S=Math.abs(u.y-f.y);return o&&(M=a),i&&(S=s),{width:M,height:S,center:l}}var Ri=100,Ii={x:1,y:0,z:0};function Bi(r,e,t,n,o){for(var i=function(h){if(h<0||h>1)throw new RangeError('The value range of parameter "t" is [0,1]');return{x:r.x*Math.pow(1-h,3)+3*e.x*h*Math.pow(1-h,2)+3*t.x*Math.pow(h,2)*(1-h)+n.x*Math.pow(h,3),y:r.y*Math.pow(1-h,3)+3*e.y*h*Math.pow(1-h,2)+3*t.y*Math.pow(h,2)*(1-h)+n.y*Math.pow(h,3)}},a=0,s=2,d=n.x,l=n.y,u=n;a=0?n:-n}function yr(r){var e=Math.hypot(r.x,r.y);return{x:r.x/e,y:r.y/e,z:0}}function ki(r){return Hi(Ii,r)}function zi(r){return r*(180/Math.PI)}var Gi={baseNode:{fill:"#fff",stroke:"#000",strokeWidth:2},baseEdge:{stroke:"#000",strokeWidth:2},rect:{},circle:{},diamond:{},ellipse:{},polygon:{},text:{color:"#000",stroke:"none",fontSize:12,background:{fill:"transparent"}},anchor:{stroke:"#000",fill:"#fff",r:4,hover:{r:10,fill:"#949494",fillOpacity:.5,stroke:"#949494"}},anchorLine:{stroke:"#000",strokeWidth:2,strokeDasharray:"3,2"},nodeText:{color:"#000",overflowMode:"default",fontSize:12,lineHeight:1.2},edgeText:{textWidth:100,overflowMode:"default",fontSize:12,background:{fill:"#fff"}},line:{},polyline:{},bezier:{fill:"none",adjustLine:{stroke:"#949494"},adjustAnchor:{r:4,fill:"#949494",fillOpacity:1,stroke:"#949494"}},arrow:{offset:10,verticalLength:5},snapline:{stroke:"#949494",strokeWidth:1},edgeAdjust:{r:4,fill:"#fff",stroke:"#949494",strokeWidth:2},outline:{fill:"transparent",stroke:"#949494",strokeDasharray:"3,3",hover:{stroke:"#949494"}},edgeAnimation:{stroke:"red",strokeDasharray:"10,10",strokeDashoffset:"100%",animationName:"lf_animate_dash",animationDuration:"20s",animationIterationCount:"infinite",animationTimingFunction:"linear",animationDirection:"normal"},rotateControl:{stroke:"#000",fill:"#fff",strokeWidth:1.5},resizeControl:{width:7,height:7,fill:"#fff",stroke:"#000"},resizeOutline:{fill:"none",stroke:"transparent",strokeWidth:1,strokeDasharray:"3,3"}},io=function(r){var e=b(Gi);return r&&(e=Fr(e,r)),e},Fi=io,$i=1e3,Ui=999,Un=function(){return++$i},Wi=function(){return--Ui},Z=function(){return Z=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},rn=function(){function r(e,t){var n;this.BaseType=U.EDGE,this.id="",this.type="",this.sourceNodeId="",this.targetNodeId="",this.textMode=ht.TEXT,this.text={value:"",x:0,y:0,draggable:!1,editable:!0},this.points="",this.pointsList=[],this.virtual=!1,this.isSelected=!1,this.isHovered=!1,this.isHitable=!0,this.isHittable=!0,this.draggable=!0,this.visible=!0,this.isAnimation=!1,this.isShowAdjustPoint=!1,this.zIndex=0,this.state=B.DEFAULT,this.modelType=j.EDGE,this.customTextPosition=!1,this.style={},this.arrowConfig={markerEnd:"url(#marker-end-".concat(this.id,")"),markerStart:"url(#marker-start-".concat(this.id,")")},this.graphModel=t,this.properties=(n=e.properties)!==null&&n!==void 0?n:{},this.initEdgeData(e),this.setAttributes()}return r.prototype.initEdgeData=function(e){if(e.properties||(e.properties={}),!e.id){var t=this.graphModel.idGenerator,n=t&&t(e.type),o=this.createId();e.id=o||n||It()}this.arrowConfig.markerEnd="url(#marker-end-".concat(e.id,")"),this.arrowConfig.markerStart="url(#marker-start-".concat(e.id,")");var i=this.graphModel.editConfigModel.adjustEdgeStartAndEnd;this.isShowAdjustPoint=i,z(this,ti(e));var a=this.graphModel.overlapMode;a===ct.INCREASE&&(this.zIndex=e.zIndex||Un()),this.setAnchors(),this.initPoints(),this.formatText(e)},r.prototype.setAttributes=function(){},r.prototype.createId=function(){return null},r.prototype.getEdgeStyle=function(){return Z(Z({},this.graphModel.theme.baseEdge),this.style)},r.prototype.getAdjustPointStyle=function(){return Z({},this.graphModel.theme.edgeAdjust)},r.prototype.getTextStyle=function(){var e=this.graphModel.theme.edgeText;return b(e)},r.prototype.getEdgeAnimationStyle=function(){var e=this.graphModel.theme.edgeAnimation;return b(e)},r.prototype.getArrowStyle=function(){var e=this.getEdgeStyle(),t=this.getEdgeAnimationStyle(),n=this.graphModel.theme.arrow,o=this.isAnimation?t.stroke:e.stroke;return Z(Z(Z({},e),{fill:o,stroke:o}),n)},r.prototype.getOutlineStyle=function(){var e=this.graphModel,t=e.theme.outline;return b(t)},r.prototype.getTextPosition=function(){return{x:0,y:0}},Object.defineProperty(r.prototype,"sourceNode",{get:function(){var e,t;return(t=(e=this.graphModel)===null||e===void 0?void 0:e.nodesMap[this.sourceNodeId])===null||t===void 0?void 0:t.model},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"targetNode",{get:function(){var e,t;return(t=(e=this.graphModel)===null||e===void 0?void 0:e.nodesMap[this.targetNodeId])===null||t===void 0?void 0:t.model},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"textPosition",{get:function(){return this.getTextPosition()},enumerable:!1,configurable:!0}),r.prototype.getBeginAnchor=function(e,t,n){var o,i,a=En(e);if(n){if(o=Bt(a,function(s){return s.id===n}),o)return o;console.warn("未在节点上找到指定的起点锚点".concat(n,",已使用默认锚点作为起点"))}return a.forEach(function(s){var d=dr(s,t);(i===void 0||d=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},cn=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},gr=function(r){Zi(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.modelType=j.BEZIER_EDGE,o.path="",o.initEdgeData(t),o.setAttributes(),o}return e.prototype.initEdgeData=function(t){this.offset=100,r.prototype.initEdgeData.call(this,t)},e.prototype.getEdgeStyle=function(){var t=this.graphModel.theme.bezier,n=r.prototype.getEdgeStyle.call(this),o=this.properties.style,i=o===void 0?{}:o;return Lt(Lt(Lt({},n),b(t)),b(i))},e.prototype.getTextPosition=function(){if(this.pointsList&&this.pointsList.length>0){var t=0,n=0;return this.pointsList.forEach(function(o){var i=o.x,a=o.y;t+=i,n+=a}),{x:t/this.pointsList.length,y:n/this.pointsList.length}}return{x:(this.startPoint.x+this.endPoint.x)/2,y:(this.startPoint.y+this.endPoint.y)/2}},e.prototype.getData=function(){var t=r.prototype.getData.call(this),n=this.pointsList.map(function(o){var i=o.x,a=o.y;return{x:i,y:a}});return Lt(Lt({},t),{pointsList:n})},e.prototype.getControls=function(){var t=this.startPoint,n=this.endPoint,o=ar({start:t,end:n,sourceNode:this.sourceNode,targetNode:this.targetNode,offset:this.offset});return o},e.prototype.getPath=function(t){var n=cn(t,4),o=n[0],i=n[1],a=n[2],s=n[3];return"M ".concat(o.x," ").concat(o.y,`
- C `).concat(i.x," ").concat(i.y,`,
- `).concat(a.x," ").concat(a.y,`,
- `).concat(s.x," ").concat(s.y)},e.prototype.initPoints=function(){this.pointsList.length>0?this.path=this.getPath(this.pointsList):this.updatePoints()},e.prototype.updatePoints=function(){var t=this.getControls(),n=t.sNext,o=t.ePre;this.updatePath(n,o)},e.prototype.updatePath=function(t,n){t=b(t),n=b(n);var o={x:this.startPoint.x,y:this.startPoint.y},i={x:this.endPoint.x,y:this.endPoint.y};if(!t||!n){var a=this.getControls();t=a.sNext,n=a.ePre}this.pointsList=[o,t,n,i],this.path=this.getPath(this.pointsList)},e.prototype.updateStartPoint=function(t){this.startPoint=Object.assign({},t),this.updatePoints()},e.prototype.updateEndPoint=function(t){this.endPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveStartPoint=function(t,n){this.startPoint.x+=t,this.startPoint.y+=n;var o=cn(this.pointsList,3),i=o[1],a=o[2];i.x+=t,i.y+=n,this.updatePath(i,a)},e.prototype.moveEndPoint=function(t,n){this.endPoint.x+=t,this.endPoint.y+=n;var o=cn(this.pointsList,3),i=o[1],a=o[2];a.x+=t,a.y+=n,this.updatePath(i,a)},e.prototype.updateAdjustAnchor=function(t,n){var o;n==="sNext"?this.pointsList[1]=t:n==="ePre"&&(this.pointsList[2]=t),this.path=this.getPath(this.pointsList),!((o=this.text)===null||o===void 0)&&o.value&&this.setText(z({},this.text,this.textPosition))},e.prototype.getAdjustStart=function(){return this.pointsList[0]||this.startPoint},e.prototype.getAdjustEnd=function(){var t=this.pointsList;return t[t.length-1]||this.endPoint},e.prototype.updateAfterAdjustStartAndEnd=function(t){var n=t.startPoint,o=t.endPoint,i=t.sourceNode,a=t.targetNode,s=ar({start:n,end:o,sourceNode:i,targetNode:a,offset:this.offset}),d=s.sNext,l=s.ePre;this.pointsList=[n,d,l,o],this.initPoints()},dt([E],e.prototype,"path",void 0),dt([m],e.prototype,"initPoints",null),dt([m],e.prototype,"updatePoints",null),dt([m],e.prototype,"updateStartPoint",null),dt([m],e.prototype,"updateEndPoint",null),dt([m],e.prototype,"moveStartPoint",null),dt([m],e.prototype,"moveEndPoint",null),dt([m],e.prototype,"updateAdjustAnchor",null),dt([m],e.prototype,"getAdjustStart",null),dt([m],e.prototype,"getAdjustEnd",null),dt([m],e.prototype,"updateAfterAdjustStartAndEnd",null),e}(rn),Vi=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),de=function(){return de=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},qi=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},_r=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Qi=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;nd)&&(a=d,i=s)}),i},e.prototype.getCrossPoint=function(t,n,o){var i;return t===F.HORIZONTAL?i={x:o.x,y:n.y}:t===F.VERTICAL&&(i={x:n.x,y:o.y}),i},e.prototype.removeCrossPoints=function(t,n,o){var i=o.map(function(y){return y});if(t===1){var a=i[t],s=i[n],d=i[t-1],l=nr(d,a,this.sourceNode);if(l){var u=rr(a,s,this.sourceNode);if(u){var f=or(a,s,this.sourceNode);f&&(i[t]=f,i.splice(t-1,1),t--,n--)}}else{var c=this.sourceNode.anchors;c.forEach(function(y){if(y.x===d.x&&y.x===a.x||y.y===d.y&&y.y===a.y){var _=pt(y.x,y.y,a.x,a.y),M=pt(d.x,d.y,a.x,a.y);_0?this.points=this.pointsList.map(function(t){return"".concat(t.x,",").concat(t.y)}).join(" "):this.updatePoints()},e.prototype.updatePoints=function(){var t=er({x:this.startPoint.x,y:this.startPoint.y},{x:this.endPoint.x,y:this.endPoint.y},this.sourceNode,this.targetNode,this.offset||0);this.pointsList=t,this.points=t.map(function(n){return"".concat(n.x,",").concat(n.y)}).join(" ")},e.prototype.updateStartPoint=function(t){this.startPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveStartPoint=function(t,n){this.startPoint.x+=t,this.startPoint.y+=n,this.updatePoints()},e.prototype.updateEndPoint=function(t){this.endPoint=Object.assign({},t),this.updatePoints()},e.prototype.moveEndPoint=function(t,n){this.endPoint.x+=t,this.endPoint.y+=n,this.updatePoints()},e.prototype.updatePointsList=function(t,n){this.pointsList.forEach(function(a){a.x+=t,a.y+=n});var o=this.pointsList[0];this.startPoint=Object.assign({},o);var i=this.pointsList[this.pointsList.length-1];this.endPoint=Object.assign({},i),this.initPoints()},e.prototype.dragAppendStart=function(){this.draggingPointList=this.pointsList.map(function(t){return t})},e.prototype.dragAppendSimple=function(t,n){var o;this.isDragging=!0;var i=t.start,a=t.end,s=t.startIndex,d=t.endIndex,l=t.direction,u=this.pointsList,f=u;return l===F.HORIZONTAL?(u[s]={x:i.x,y:i.y+n.y},u[d]={x:a.x,y:a.y+n.y},f=this.pointsList.map(function(c){return c})):l===F.VERTICAL&&(u[s]={x:i.x+n.x,y:i.y},u[d]={x:a.x+n.x,y:a.y},f=this.pointsList.map(function(c){return c})),this.updatePointsAfterDrag(f),this.draggingPointList=f,!((o=this.text)===null||o===void 0)&&o.value&&this.setText(z({},this.text,this.textPosition)),{start:z({},u[s]),end:z({},u[d]),startIndex:s,endIndex:d,direction:l}},e.prototype.dragAppend=function(t,n){var o;this.isDragging=!0;var i=t.start,a=t.end,s=t.startIndex,d=t.endIndex,l=t.direction,u=this.pointsList;if(l===F.HORIZONTAL){u[s]={x:i.x,y:i.y+n.y},u[d]={x:a.x,y:a.y+n.y};var f=this.pointsList.map(function(v){return v});if(s!==0&&d!==this.pointsList.length-1&&(f=this.removeCrossPoints(s,d,f)),s===0){var c={x:i.x,y:i.y+n.y},h=Tt(c,this.sourceNode);if(!h){var g=this.sourceNode.anchors;f=this.getDraggingPoints(l,"start",c,g,f)}}if(d===this.pointsList.length-1){var p={x:a.x,y:a.y+n.y},h=Tt(p,this.targetNode);if(!h){var g=this.targetNode.anchors;f=this.getDraggingPoints(l,"end",p,g,f)}}this.updatePointsAfterDrag(f),this.draggingPointList=f}else if(l===F.VERTICAL){u[s]={x:i.x+n.x,y:i.y},u[d]={x:a.x+n.x,y:a.y};var f=this.pointsList.map(function(y){return y});if(s!==0&&d!==this.pointsList.length-1&&(f=this.removeCrossPoints(s,d,f)),s===0){var c={x:i.x+n.x,y:i.y},h=Tt(c,this.sourceNode);if(!h){var g=this.sourceNode.anchors;f=this.getDraggingPoints(l,"start",c,g,f)}}if(d===this.pointsList.length-1){var p={x:a.x+n.x,y:a.y},h=Tt(p,this.targetNode);if(!h){var g=this.targetNode.anchors;f=this.getDraggingPoints(l,"end",p,g,f)}}this.updatePointsAfterDrag(f),this.draggingPointList=f}return!((o=this.text)===null||o===void 0)&&o.value&&this.setText(z({},this.text,this.textPosition)),{start:z({},u[s]),end:z({},u[d]),startIndex:s,endIndex:d,direction:l}},e.prototype.dragAppendEnd=function(){if(this.draggingPointList){var t=Vr(Xt(this.points));this.pointsList=t.map(function(i){return i}),this.draggingPointList=[];var n=t[0];this.startPoint=z({},n);var o=t[t.length-1];this.endPoint=z({},o)}this.isDragging=!1},e.prototype.updatePointsAfterDrag=function(t){var n=this.updateCrossPoints(t);this.points=n.map(function(o){return"".concat(o.x,",").concat(o.y)}).join(" ")},e.prototype.getAdjustStart=function(){return this.pointsList[0]||this.startPoint},e.prototype.getAdjustEnd=function(){var t=this.pointsList;return t[t.length-1]||this.endPoint},e.prototype.updateAfterAdjustStartAndEnd=function(t){var n=t.startPoint,o=t.endPoint,i=t.sourceNode,a=t.targetNode;this.pointsList=er({x:n.x,y:n.y},{x:o.x,y:o.y},i,a,this.offset||0),this.initPoints()},Q([E],e.prototype,"dbClickPosition",void 0),Q([m],e.prototype,"initPoints",null),Q([m],e.prototype,"updatePoints",null),Q([m],e.prototype,"updateStartPoint",null),Q([m],e.prototype,"moveStartPoint",null),Q([m],e.prototype,"updateEndPoint",null),Q([m],e.prototype,"moveEndPoint",null),Q([m],e.prototype,"updatePointsList",null),Q([m],e.prototype,"dragAppendStart",null),Q([m],e.prototype,"dragAppendSimple",null),Q([m],e.prototype,"dragAppend",null),Q([m],e.prototype,"dragAppendEnd",null),Q([m],e.prototype,"updatePointsAfterDrag",null),Q([m],e.prototype,"getAdjustStart",null),Q([m],e.prototype,"getAdjustEnd",null),Q([m],e.prototype,"updateAfterAdjustStartAndEnd",null),e}(rn),K=function(){return K=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},xr=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ta=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Dt=function(){function r(e,t){var n;this.BaseType=U.NODE,this.id="",this.type="",this.x=0,this.y=0,this.textMode=ht.TEXT,this.text={value:"",x:0,y:0,draggable:!1,editable:!0},this._width=100,this._height=80,this.minWidth=30,this.minHeight=30,this.maxWidth=2e3,this.maxHeight=2e3,this.anchorsOffset=[],this.virtual=!1,this.isSelected=!1,this.isHovered=!1,this.isShowAnchor=!1,this.isDragging=!1,this.isHitable=!0,this.isHittable=!0,this.draggable=!0,this.visible=!0,this.rotatable=!0,this.resizable=!0,this.zIndex=1,this.state=B.DEFAULT,this.autoToFront=!0,this.style={},this._rotate=0,this.modelType=j.NODE,this.additionStateData={},this.targetRules=[],this.sourceRules=[],this.moveRules=[],this.resizeRules=[],this.hasSetTargetRules=!1,this.hasSetSourceRules=!1,this.graphModel=t,this.properties=(n=e.properties)!==null&&n!==void 0?n:{},this.initNodeData(e),this.setAttributes()}return Object.defineProperty(r.prototype,"width",{get:function(){return this._width},set:function(e){this._width=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"height",{get:function(){return this._height},set:function(e){this._height=e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"rotate",{get:function(){return this._rotate},set:function(e){this._rotate=e;var t=this,n=t.x,o=n===void 0?0:n,i=t.y,a=i===void 0?0:i;this.transform=new nn(-o,-a).rotate(e).translate(o,a).toString()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"incoming",{get:function(){return{nodes:this.graphModel.getNodeIncomingNode(this.id),edges:this.graphModel.getNodeIncomingEdge(this.id)}},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"outgoing",{get:function(){return{nodes:this.graphModel.getNodeOutgoingNode(this.id),edges:this.graphModel.getNodeOutgoingEdge(this.id)}},enumerable:!1,configurable:!0}),r.prototype.initNodeData=function(e){if(e.properties||(e.properties={}),!e.id){var t=this.graphModel.idGenerator,n=t&&t(e.type),o=this.createId();e.id=o||n||It()}this.formatText(e),z(this,ui(e));var i=this.graphModel.overlapMode;i===ct.INCREASE&&(this.zIndex=e.zIndex||Un())},r.prototype.setAttributes=function(){},r.prototype.createId=function(){return null},r.prototype.setTextMode=function(e){this.textMode=e},r.prototype.formatText=function(e){var t,n,o,i=e.x,a=e.y,s=e.text,d={value:"",x:i,y:a,draggable:!1,editable:!0};s&&(typeof s=="string"?d.value=s:(d=K(K({},d),{x:(t=s.x)!==null&&t!==void 0?t:i,y:(n=s.y)!==null&&n!==void 0?n:a,value:(o=s.value)!==null&&o!==void 0?o:""}),Qt(s.draggable)||(d.draggable=s.draggable),Qt(s.editable)||(d.editable=s.editable))),e.text=d},r.prototype.resize=function(e){var t=e.width,n=e.height,o=e.deltaX,i=e.deltaY,a=this.isAllowResizeNode(o,i,t,n);return a?(this.move(o/2,i/2),this.width=t,this.height=n,this.setProperties({width:t,height:n}),this.getData()):this.getData()},r.prototype.proportionalResize=function(){},r.prototype.getData=function(){var e=this.text,t=e.x,n=e.y,o=e.value,i=this.properties;Wr(i)&&(i=vt(i)),Jt(i.width)&&(i.width=this.width),Jt(i.height)&&(i.height=this.height);var a={id:this.id,type:this.type,x:this.x,y:this.y,properties:i};return this.rotate&&(a.rotate=this.rotate),this.graphModel.overlapMode===ct.INCREASE&&(a.zIndex=this.zIndex),o&&(a.text={x:t,y:n,value:o}),a},r.prototype.getHistoryData=function(){return this.getData()},r.prototype.getProperties=function(){return vt(this.properties)},r.prototype.getOuterGAttributes=function(){return{className:""}},r.prototype.getNodeStyle=function(){return K(K({},this.graphModel.theme.baseNode),this.style)},r.prototype.getTextStyle=function(){var e=this.graphModel.theme.nodeText,t=this.properties.textStyle,n=t===void 0?{}:t;return K(K({},b(e)),b(n))},r.prototype.getRotateControlStyle=function(){var e=this.graphModel.theme.rotateControl;return b(e)},r.prototype.getResizeControlStyle=function(){var e=this.graphModel.theme.resizeControl;return b(e)},r.prototype.getResizeOutlineStyle=function(){var e=this.graphModel.theme.resizeOutline;return b(e)},r.prototype.getAnchorStyle=function(e){var t=this.graphModel.theme.anchor;return b(t)},r.prototype.getAnchorLineStyle=function(e){var t=this.graphModel.theme.anchorLine;return b(t)},r.prototype.getOutlineStyle=function(){var e=this.graphModel.theme.outline;return b(e)},r.prototype.isAllowConnectedAsSource=function(e,t,n,o){var i=this.hasSetSourceRules?this.sourceRules:this.getConnectedSourceRules();this.hasSetSourceRules=!0;for(var a=!0,s="",d=0;d0?t.map(function(a,s){return a.length?(a=a,{id:"".concat(n,"_").concat(s),x:o+a[0],y:i+a[1]}):(a=a,K(K({},a),{x:o+a.x,y:i+a.y,id:a.id||"".concat(n,"_").concat(s)}))}):this.getDefaultAnchor()},r.prototype.getDefaultAnchor=function(){return[]},r.prototype.getTargetAnchor=function(e){return si(e,this)},r.prototype.getBounds=function(){return{minX:this.x-this.width/2,minY:this.y-this.height/2,maxX:this.x+this.width/2,maxY:this.y+this.height/2}},Object.defineProperty(r.prototype,"anchors",{get:function(){var e=this.getAnchorsByOffset(),t=this,n=t.x,o=t.y,i=t.rotate;return e.forEach(function(a){var s=a.x,d=a.y,l=ta(new en([s,d,1]).translate(-n,-o).rotate(i).translate(n,o)[0],2),u=l[0],f=l[1];a.x=u,a.y=f}),e},enumerable:!1,configurable:!0}),r.prototype.getAnchorInfo=function(e){if(!Jt(e))for(var t=0;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Er=function(r){ea(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.modelType=j.CIRCLE_NODE,o.r=50,o.initNodeData(t),o.setAttributes(),o}return Object.defineProperty(e.prototype,"width",{get:function(){return this.r*2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.r*2},enumerable:!1,configurable:!0}),e.prototype.setAttributes=function(){r.prototype.setAttributes.call(this);var t=this.properties.r;t&&(this.r=t)},e.prototype.getNodeStyle=function(){var t=r.prototype.getNodeStyle.call(this),n=this.graphModel.theme.circle,o=this.properties.style,i=o===void 0?{}:o;return ue(ue(ue({},t),b(n)),b(i))},e.prototype.getDefaultAnchor=function(){var t=this,n=t.x,o=t.y,i=t.r;return[{x:n,y:o-i,id:"".concat(this.id,"_0")},{x:n+i,y:o,id:"".concat(this.id,"_1")},{x:n,y:o+i,id:"".concat(this.id,"_2")},{x:n-i,y:o,id:"".concat(this.id,"_3")}]},e.prototype.resize=function(t){var n=t.width,o=t.deltaX,i=t.deltaY;return this.move(o/2,i/2),this.r=n,this.setProperties({r:n}),this.getData()},pn([E],e.prototype,"r",void 0),pn([$],e.prototype,"width",null),pn([$],e.prototype,"height",null),e}(Dt),na=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),fe=function(){return fe=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},je=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Mr=function(r){na(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.modelType=j.DIAMOND_NODE,o.rx=30,o.ry=50,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){r.prototype.setAttributes.call(this);var t=this.properties,n=t.rx,o=t.ry;n&&(this.rx=n),o&&(this.ry=o)},e.prototype.getNodeStyle=function(){var t=r.prototype.getNodeStyle.call(this),n=this.graphModel.theme.diamond,o=this.properties.style,i=o===void 0?{}:o;return fe(fe(fe({},t),b(n)),b(i))},Object.defineProperty(e.prototype,"points",{get:function(){var t=this,n=t.x,o=t.y,i=t.rx,a=t.ry;return[[n,o-a],[n+i,o],[n,o+a],[n-i,o]]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"pointsPosition",{get:function(){return Ot(this.points,function(t){var n=je(t,2),o=n[0],i=n[1];return{x:o,y:i}})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var t=Number.MAX_SAFE_INTEGER,n=Number.MIN_SAFE_INTEGER;return W(this.points,function(o){var i=je(o,1),a=i[0];an&&(n=a)}),n-t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var t=Number.MAX_SAFE_INTEGER,n=Number.MIN_SAFE_INTEGER;return W(this.points,function(o){var i=je(o,2),a=i[1];an&&(n=a)}),n-t},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this;return Ot(this.points,function(n,o){var i=je(n,2),a=i[0],s=i[1];return{x:a,y:s,id:"".concat(t.id,"_").concat(o)}})},e.prototype.resize=function(t){var n=t.width,o=t.height,i=t.deltaX,a=t.deltaY;return this.move(i/2,a/2),this.rx=n,this.ry=o,this.setProperties({rx:n,ry:o}),this.getData()},$t([E],e.prototype,"rx",void 0),$t([E],e.prototype,"ry",void 0),$t([$],e.prototype,"points",null),$t([$],e.prototype,"pointsPosition",null),$t([$],e.prototype,"width",null),$t([$],e.prototype,"height",null),e}(Dt),ra=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ce=function(){return ce=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Or=function(r){ra(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.modelType=j.ELLIPSE_NODE,o.rx=30,o.ry=45,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){r.prototype.setAttributes.call(this);var t=this.properties,n=t.rx,o=t.ry;n&&(this.rx=n),o&&(this.ry=o)},e.prototype.getNodeStyle=function(){var t=r.prototype.getNodeStyle.call(this),n=this.graphModel.theme.ellipse,o=this.properties.style,i=o===void 0?{}:o;return ce(ce(ce({},t),b(n)),b(i))},Object.defineProperty(e.prototype,"width",{get:function(){return this.rx*2},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){return this.ry*2},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this,n=t.x,o=t.y,i=t.rx,a=t.ry;return[{x:n,y:o-a,id:"".concat(this.id,"_0")},{x:n+i,y:o,id:"".concat(this.id,"_1")},{x:n,y:o+a,id:"".concat(this.id,"_2")},{x:n-i,y:o,id:"".concat(this.id,"_3")}]},e.prototype.resize=function(t){var n=t.width,o=t.height,i=t.deltaX,a=t.deltaY;return this.move(i/2,a/2),this.rx=n,this.ry=o,this.setProperties({rx:n,ry:o}),this.getData()},Re([E],e.prototype,"rx",void 0),Re([E],e.prototype,"ry",void 0),Re([$],e.prototype,"width",null),Re([$],e.prototype,"height",null),e}(Dt),oa=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),pe=function(){return pe=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Be=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Sr=function(r){oa(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.modelType=j.POLYGON_NODE,o.points=[[50,0],[100,50],[50,100],[0,50]],o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){r.prototype.setAttributes.call(this);var t=this.properties,n=t.points,o=t.width,i=t.height,a=n||this.points;this.points=ri(a,o,i)},e.prototype.getNodeStyle=function(){var t=r.prototype.getNodeStyle.call(this),n=this.graphModel.theme.polygon,o=this.properties.style,i=o===void 0?{}:o;return pe(pe(pe({},t),b(n)),b(i))},Object.defineProperty(e.prototype,"pointsPosition",{get:function(){var t=this,n=t.x,o=t.y,i=t.width,a=t.height;return this.points.map(function(s){return{x:s[0]+n-i/2,y:s[1]+o-a/2}})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"width",{get:function(){var t=Number.MAX_SAFE_INTEGER,n=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(o){var i=Be(o,1),a=i[0];an&&(n=a)}),n-t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"height",{get:function(){var t=Number.MAX_SAFE_INTEGER,n=Number.MIN_SAFE_INTEGER;return this.points.forEach(function(o){var i=Be(o,2),a=i[1];an&&(n=a)}),n-t},enumerable:!1,configurable:!0}),e.prototype.getDefaultAnchor=function(){var t=this,n=this,o=n.x,i=n.y,a=n.width,s=n.height,d=n.points;return d.map(function(l,u){var f=Be(l,2),c=f[0],h=f[1];return{x:o+c-a/2,y:i+h-s/2,id:"".concat(t.id,"_").concat(u)}})},e.prototype.resize=function(t){var n=this,o=t.width,i=t.height,a=t.deltaX,s=t.deltaY;this.move(a/2,s/2);var d=Ot(this.points,function(l){var u=Be(l,2),f=u[0],c=u[1];return[f*o/n.width,c*i/n.height]});return this.points=d,this.properties.points=d,this.getData()},Ie([E],e.prototype,"points",void 0),Ie([$],e.prototype,"pointsPosition",null),Ie([$],e.prototype,"width",null),Ie([$],e.prototype,"height",null),e}(Dt),ia=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),he=function(){return he=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},wr=function(r){ia(e,r);function e(t,n){var o=r.call(this,t,n)||this;return o.modelType=j.RECT_NODE,o.radius=0,o.initNodeData(t),o.setAttributes(),o}return e.prototype.setAttributes=function(){r.prototype.setAttributes.call(this);var t=this.properties,n=t.width,o=t.height,i=t.radius;Jt(n)||(this.width=n),Jt(o)||(this.height=o),Jt(i)||(this.radius=i)},e.prototype.getDefaultAnchor=function(){var t=this,n=t.x,o=t.y,i=t.width,a=t.height;return[{x:n,y:o-a/2,id:"".concat(this.id,"_0")},{x:n+i/2,y:o,id:"".concat(this.id,"_1")},{x:n,y:o+a/2,id:"".concat(this.id,"_2")},{x:n-i/2,y:o,id:"".concat(this.id,"_3")}]},e.prototype.getNodeStyle=function(){var t=r.prototype.getNodeStyle.call(this),n=this.graphModel.theme.rect,o=this.properties.style,i=o===void 0?{}:o;return he(he(he({},t),b(n)),b(i))},aa([E],e.prototype,"radius",void 0),e}(Dt),sa=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ye=function(){return ye=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},da=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},la=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},fa={stopZoomGraph:!1,stopScrollGraph:!1,stopMoveGraph:!1,adjustEdge:!1,adjustEdgeStartAndEnd:!1,adjustNodePosition:!1,hideAnchors:!0,allowRotate:!1,allowResize:!1,nodeSelectedOutline:!0,textEdit:!1,nodeTextEdit:!1,edgeTextEdit:!1,textDraggable:!1,nodeTextDraggable:!1,edgeTextDraggable:!1},Xe=["isSilentMode","stopZoomGraph","stopScrollGraph","stopMoveGraph","adjustEdge","adjustEdgeMiddle","adjustEdgeStartAndEnd","adjustEdgeStart","adjustEdgeEnd","adjustNodePosition","hideAnchors","allowRotate","allowResize","autoExpand","hoverOutline","nodeSelectedOutline","edgeSelectedOutline","textEdit","nodeTextEdit","edgeTextEdit","textDraggable","nodeTextDraggable","edgeTextDraggable","multipleSelectKey","textMode","nodeTextMode","edgeTextMode","nodeTextMultiple","edgeTextMultiple","nodeTextVertical","edgeTextVertical"],ca=function(){function r(e){this.isSilentMode=!1,this.stopZoomGraph=!1,this.stopMoveGraph=!1,this.stopScrollGraph=!1,this.textMode=ht.TEXT,this.textEdit=!0,this.textDraggable=!1,this.nodeTextEdit=!0,this.nodeTextDraggable=!1,this.nodeTextMultiple=!1,this.nodeTextVertical=!1,this.nodeTextMode=ht.TEXT,this.edgeTextMode=ht.TEXT,this.edgeTextEdit=!0,this.edgeTextDraggable=!1,this.edgeTextMultiple=!1,this.edgeTextVertical=!1,this.hideAnchors=!1,this.allowRotate=!1,this.allowResize=!1,this.hoverOutline=!0,this.nodeSelectedOutline=!0,this.adjustNodePosition=!0,this.autoExpand=!1,this.adjustEdge=!0,this.adjustEdgeMiddle=!1,this.adjustEdgeStartAndEnd=!1,this.adjustEdgeStart=!1,this.adjustEdgeEnd=!1,this.edgeSelectedOutline=!0,this.multipleSelectKey="",z(this,this.computeConfig(e))}return r.prototype.updateEditConfig=function(e){var t=this.computeConfig(e);z(this,t)},r.prototype.computeConfig=function(e){var t=e.isSilentMode,n=e.textDraggable,o=e.textMode,i=e.textEdit,a=e.adjustEdgeStartAndEnd,s={};if(t===!1&&z(s,this.stagedConfig),t===!0&&t!==this.isSilentMode){var d=Zt(fa,Xe);this.stagedConfig=Zt(this,Xe),z(s,d)}Qt(i)||z(s,{nodeTextEdit:i,edgeTextEdit:i}),Qt(n)||z(s,{nodeTextDraggable:n,edgeTextDraggable:n}),o&&z(s,{nodeTextMode:o,edgeTextMode:o}),yo(a)&&z(s,{adjustEdgeStart:a,adjustEdgeEnd:a});var l=Zt(e,Xe);return z(s,l)},r.prototype.updateTextMode=function(e){this.textMode=e,this.edgeTextMode=e,this.nodeTextMode=e},r.prototype.getConfig=function(){return Zt(this,Xe)},X([E],r.prototype,"isSilentMode",void 0),X([E],r.prototype,"stopZoomGraph",void 0),X([E],r.prototype,"stopMoveGraph",void 0),X([E],r.prototype,"stopScrollGraph",void 0),X([E],r.prototype,"textMode",void 0),X([E],r.prototype,"textEdit",void 0),X([E],r.prototype,"textDraggable",void 0),X([E],r.prototype,"nodeTextEdit",void 0),X([E],r.prototype,"nodeTextDraggable",void 0),X([E],r.prototype,"nodeTextMultiple",void 0),X([E],r.prototype,"nodeTextVertical",void 0),X([E],r.prototype,"nodeTextMode",void 0),X([E],r.prototype,"edgeTextMode",void 0),X([E],r.prototype,"edgeTextEdit",void 0),X([E],r.prototype,"edgeTextDraggable",void 0),X([E],r.prototype,"edgeTextMultiple",void 0),X([E],r.prototype,"edgeTextVertical",void 0),X([E],r.prototype,"hideAnchors",void 0),X([E],r.prototype,"allowRotate",void 0),X([E],r.prototype,"allowResize",void 0),X([E],r.prototype,"hoverOutline",void 0),X([E],r.prototype,"nodeSelectedOutline",void 0),X([E],r.prototype,"adjustNodePosition",void 0),X([E],r.prototype,"autoExpand",void 0),X([E],r.prototype,"adjustEdge",void 0),X([E],r.prototype,"adjustEdgeMiddle",void 0),X([E],r.prototype,"adjustEdgeStartAndEnd",void 0),X([E],r.prototype,"adjustEdgeStart",void 0),X([E],r.prototype,"adjustEdgeEnd",void 0),X([E],r.prototype,"edgeSelectedOutline",void 0),X([m],r.prototype,"updateEditConfig",null),X([m],r.prototype,"updateTextMode",null),r}(),pa="*",ha=function(){function r(){this._events={}}return r.prototype.on=function(e,t,n){var o=this;e==null||e.split(",").forEach(function(i){i=i.trim(),o._events[i]||(o._events[i]=[]),o._events[i].push({callback:t,once:!!n})})},r.prototype.once=function(e,t){var n=this;e==null||e.split(",").forEach(function(o){o=o.trim(),n.on(o,t,!0)})},r.prototype.emit=function(e,t){var n=this;e==null||e.split(",").forEach(function(o){var i=n._events[o]||[],a=n._events[pa]||[],s=function(d){for(var l=d.length,u=0;u=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},q=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},ot=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},ga=function(){function r(e){this.isShowHorizontal=!1,this.isShowVertical=!1,this.position={x:0,y:0},this.graphModel=e}return r.prototype.getStyle=function(){return jt({},this.graphModel.theme.snapline)},r.prototype.getCenterSnapLine=function(e,t){for(var n=e.x,o=e.y,i=!1,a=!1,s=0;s=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ut=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},va={false:[-1/0,-1/0,1/0,1/0],true:[-1/0,-1/0,1/0,1/0],vertical:[-1/0,0,1/0,0],horizontal:[0,-1/0,0,1/0]},_a=function(){function r(e,t){this.MINI_SCALE_SIZE=.2,this.MAX_SCALE_SIZE=16,this.SCALE_X=1,this.SKEW_Y=0,this.SKEW_X=0,this.SCALE_Y=1,this.TRANSLATE_X=0,this.TRANSLATE_Y=0,this.ZOOM_SIZE=.04,this.translateLimitMinX=-1/0,this.translateLimitMinY=-1/0,this.translateLimitMaxX=1/0,this.translateLimitMaxY=1/0,this.eventCenter=e;var n=t.stopMoveGraph,o=n===void 0?!1:n;this.updateTranslateLimits(o)}return r.prototype.setZoomMiniSize=function(e){this.MINI_SCALE_SIZE=e},r.prototype.setZoomMaxSize=function(e){this.MAX_SCALE_SIZE=e},r.prototype.HtmlPointToCanvasPoint=function(e){var t=Ut(e,2),n=t[0],o=t[1];return[(n-this.TRANSLATE_X)/this.SCALE_X,(o-this.TRANSLATE_Y)/this.SCALE_Y]},r.prototype.CanvasPointToHtmlPoint=function(e){var t=Ut(e,2),n=t[0],o=t[1];return[n*this.SCALE_X+this.TRANSLATE_X,o*this.SCALE_Y+this.TRANSLATE_Y]},r.prototype.moveCanvasPointByHtml=function(e,t,n){var o=Ut(e,2),i=o[0],a=o[1];return[i+t/this.SCALE_X,a+n/this.SCALE_Y]},r.prototype.fixDeltaXY=function(e,t){return[e/this.SCALE_X,t/this.SCALE_Y]},r.prototype.getTransformStyle=function(){var e=[this.SCALE_X,this.SKEW_Y,this.SKEW_X,this.SCALE_Y,this.TRANSLATE_X,this.TRANSLATE_Y].join(",");return{transform:"matrix(".concat(e,")")}},r.prototype.zoom=function(e,t){e===void 0&&(e=!1);var n=this.SCALE_X,o=this.SCALE_Y;return typeof e=="number"?(n=e,o=e):e?(n+=this.ZOOM_SIZE,o+=this.ZOOM_SIZE):(n-=this.ZOOM_SIZE,o-=this.ZOOM_SIZE),nthis.MAX_SCALE_SIZE?"".concat(this.SCALE_X*100,"%"):(t&&(this.TRANSLATE_X-=(n-this.SCALE_X)*t[0],this.TRANSLATE_Y-=(o-this.SCALE_Y)*t[1]),this.SCALE_X=n,this.SCALE_Y=o,this.emitGraphTransform("zoom"),"".concat(this.SCALE_X*100,"%"))},r.prototype.emitGraphTransform=function(e){this.eventCenter.emit(T.GRAPH_TRANSFORM,{type:e,transform:{SCALE_X:this.SCALE_X,SKEW_Y:this.SKEW_Y,SKEW_X:this.SKEW_X,SCALE_Y:this.SCALE_Y,TRANSLATE_X:this.TRANSLATE_X,TRANSLATE_Y:this.TRANSLATE_Y}})},r.prototype.resetZoom=function(){this.SCALE_X=1,this.SCALE_Y=1,this.emitGraphTransform("resetZoom")},r.prototype.translate=function(e,t){this.TRANSLATE_X+e<=this.translateLimitMaxX&&this.TRANSLATE_X+e>=this.translateLimitMinX&&(this.TRANSLATE_X+=e),this.TRANSLATE_Y+t<=this.translateLimitMaxY&&this.TRANSLATE_Y+t>=this.translateLimitMinY&&(this.TRANSLATE_Y+=t),this.emitGraphTransform("translate")},r.prototype.focusOn=function(e,t,n,o){var i=Ut(this.CanvasPointToHtmlPoint([e,t]),2),a=i[0],s=i[1],d=Ut([n/2-a,o/2-s],2),l=d[0],u=d[1];this.TRANSLATE_X+=l,this.TRANSLATE_Y+=u,this.emitGraphTransform("focusOn")},r.prototype.updateTranslateLimits=function(e){var t;t=Ut(Array.isArray(e)&&e.length===4?e:va[e.toString()],4),this.translateLimitMinX=t[0],this.translateLimitMinY=t[1],this.translateLimitMaxX=t[2],this.translateLimitMaxY=t[3]},lt([E],r.prototype,"SCALE_X",void 0),lt([E],r.prototype,"SKEW_Y",void 0),lt([E],r.prototype,"SKEW_X",void 0),lt([E],r.prototype,"SCALE_Y",void 0),lt([E],r.prototype,"TRANSLATE_X",void 0),lt([E],r.prototype,"TRANSLATE_Y",void 0),lt([E],r.prototype,"ZOOM_SIZE",void 0),lt([m],r.prototype,"zoom",null),lt([m],r.prototype,"resetZoom",null),lt([m],r.prototype,"translate",null),lt([m],r.prototype,"focusOn",null),r}(),ma=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Dn=function(){return Dn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ea=function(r){ma(e,r);function e(t){var n=r.call(this)||this;n.stepScrollX=0,n.stepScrollY=0,n.onDragging=function(s){var d=s.deltaX,l=s.deltaY;n.setState({isDragging:!0});var u=n.props.graphModel,f=u.transformModel,c=u.editConfigModel;c.stopMoveGraph!==!0&&f.translate(d,l)},n.onDragEnd=function(){n.setState({isDragging:!1})},n.zoomHandler=function(s){var d=n.props,l=d.graphModel,u=l.editConfigModel,f=l.transformModel,c=l.gridSize,h=d.graphModel,g=s.deltaX,p=s.deltaY;if(!u.stopScrollGraph&&!s.ctrlKey&&!s.metaKey){if(s.preventDefault(),n.stepScrollX+=g,n.stepScrollY+=p,Math.abs(n.stepScrollX)>=c){var v=n.stepScrollX%c,y=n.stepScrollX-v;f.translate(-y*f.SCALE_X,0),n.stepScrollX=v}if(Math.abs(n.stepScrollY)>=c){var _=n.stepScrollY%c,M=n.stepScrollY-_;f.translate(0,-M*f.SCALE_Y),n.stepScrollY=_}return}if(!u.stopZoomGraph){s.preventDefault();var S=h.getPointByClient({x:s.clientX,y:s.clientY}),O=S.canvasOverlayPosition,w=O.x,A=O.y;f.zoom(s.deltaY<0,[w,A])}},n.clickHandler=function(s){var d=s.target;if(d.getAttribute("name")==="canvas-overlay"){var l=n.props.graphModel,u=l.selectElements;u.size>0&&l.clearSelectElements(),l.eventCenter.emit(T.BLANK_CLICK,{e:s})}},n.handleContextMenu=function(s){var d=s.target;if(d.getAttribute("name")==="canvas-overlay"){s.preventDefault();var l=n.props.graphModel,u=l.getPointByClient({x:s.clientX,y:s.clientY});l.eventCenter.emit(T.BLANK_CONTEXTMENU,{e:s,position:u})}},n.mouseDownHandler=function(s){var d=n.props.graphModel,l=d.eventCenter,u=d.editConfigModel,f=d.transformModel.SCALE_X,c=d.gridSize,h=s.target,g=!u.adjustEdge&&!u.adjustNodePosition;(h.getAttribute("name")==="canvas-overlay"||g)&&(u.stopMoveGraph!==!0?(n.stepDrag.setStep(c*f),n.stepDrag.handleMouseDown(s)):l.emit(T.BLANK_MOUSEDOWN,{e:s}),n.clickHandler(s))};var o=t.graphModel,i=o.gridSize,a=o.eventCenter;return n.stepDrag=new xt({onDragging:n.onDragging,onDragEnd:n.onDragEnd,step:i,eventType:"BLANK",isStopPropagation:!1,eventCenter:a,model:void 0}),n.state={isDragging:!1},n}return e.prototype.render=function(){var t=this.props.graphModel.transformModel,n=t.getTransformStyle().transform,o=this.props,i=o.children,a=o.dnd,s=this.state.isDragging;return x("svg",Dn({xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",name:"canvas-overlay",onWheel:this.zoomHandler,onMouseDown:this.mouseDownHandler,onContextMenu:this.handleContextMenu,className:s?"lf-canvas-overlay lf-dragging":"lf-canvas-overlay lf-drag-able"},a.eventMap(),{children:x("g",{transform:n,children:i})}))},e=xa([at],e),e}(V),ao=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),we=function(){return we=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Oa=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Nr=function(r){ao(e,r);function e(){var t=r.call(this)||this;return t.onDragging=function(n){var o=n.event,i=t.props,a=i.graphModel,s=i.bezierModel,d=i.type,l=a.getPointByClient({x:o.clientX,y:o.clientY}).canvasOverlayPosition,u=l.x,f=l.y;s.updateAdjustAnchor({x:u,y:f},d),a.eventCenter.emit(T.EDGE_ADJUST,{data:s.getData()})},t.onDragEnd=function(){var n=t.props.bezierModel;n.isDragging=!1},t.dragHandler=new xt({onDragging:t.onDragging,onDragEnd:t.onDragEnd}),t}return e.prototype.render=function(){var t=this,n=this.props.position,o=n.x,i=n.y,a=this.props.bezierModel,s=a.getEdgeStyle().adjustAnchor;return x(ne,we({className:"lf-bezier-adjust-anchor",x:o,y:i},s,{onMouseDown:function(d){t.dragHandler.handleMouseDown(d)}}))},e}(V),Sa=function(r){ao(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getBezierAdjust=function(t,n){var o=t.path,i=t.id,a=Fn(o),s=Oa(a,4),d=s[0],l=s[1],u=s[2],f=s[3],c=t.getEdgeStyle().adjustLine,h=[];return h.push(x(ee,we({x1:d.x,y1:d.y,x2:l.x,y2:l.y},c))),h.push(x(Nr,{position:l,bezierModel:t,graphModel:n,type:"sNext"},"".concat(i,"_ePre"))),h.push(x(ee,we({x1:f.x,y1:f.y,x2:u.x,y2:u.y},c))),h.push(x(Nr,{position:u,bezierModel:t,graphModel:n,type:"ePre"},"".concat(i,"_sNext"))),h},e.prototype.selectedBezierEdge=function(){for(var t=this.props.graphModel,n=t.edges,o=[],i=0;i=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Na=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Da=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},La=function(r){ba(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(){var t=this.props.graphModel.transformModel,n=t.getTransformStyle().transform,o=this.props.children;return x("svg",{xmlns:"http://www.w3.org/2000/svg",version:"1.1",width:"100%",height:"100%",className:"modification-overlay",children:x("g",{transform:n,children:o})})},e=Ca([at],e),e}(V),ja=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),St=function(){return St=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ia=function(r){ja(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getNodesOutline=function(){var t=this.props.graphModel,n=t.nodes,o=t.editConfigModel,i=o.hoverOutline,a=o.nodeSelectedOutline,s=[];return n.forEach(function(d){if(d.isHovered||d.isSelected){var l=d.isHovered,u=d.isSelected,f=d.x,c=d.y,h=d.width,g=d.height;if(a&&u||i&&l){var p=d.getOutlineStyle(),v={};if(Object.keys(p).forEach(function(_){_!=="hover"&&(v[_]=p[_])}),l){var y=p.hover;v=St(St({},v),y)}s.push(x(mt,St({transform:d.transform,className:"lf-outline-node",x:f,y:c,width:h+10,height:g+10},v)))}}}),s},e.prototype.getEdgeOutline=function(){for(var t=this.props.graphModel,n=t.edges,o=t.editConfigModel,i=o.edgeSelectedOutline,a=o.hoverOutline,s=[],d=0;d=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ya=function(r){Ba(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.render=function(){var t=this.props.snaplineModel,n=t??{},o=n.position,i=n.isShowHorizontal,a=n.isShowVertical,s=t==null?void 0:t.getStyle(),d=o??{},l=d.x,u=l===void 0?0:l,f=d.y,c=f===void 0?0:f,h=wt(wt({x1:-1e5,y1:c,x2:1e5,y2:c},s),{stroke:i?s==null?void 0:s.stroke:"none"}),g=wt(wt({x1:u,y1:-1e5,x2:u,y2:1e5},s),{stroke:a?s==null?void 0:s.stroke:"none"});return x("g",{className:"lf-snapline",children:[x(ee,wt({},h)),x(ee,wt({},g))]})},e=Xa([at],e),e}(V),Ha=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ka=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var s=r.length-1;s>=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},za=function(r){Ha(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.componentDidMount=function(){this.triggerToolRender()},e.prototype.componentDidUpdate=function(){this.triggerToolRender()},e.prototype.getTools=function(){var t=this.props,n=t.tool,o=t.graphModel,i=o.textEditElement,a=n.getTools(),s=a.map(function(d){return Gr(d,{textEditElement:i,graphModel:o,lf:n.instance})});return n.components=s,s},e.prototype.triggerToolRender=function(){var t=this.props,n=t.tool,o=t.graphModel,i=document.querySelector("#ToolOverlay_".concat(o.flowId)),a=n.getInstance();a.components.forEach(function(s){return s(a,i)}),a.components=[]},e.prototype.render=function(){var t=this.props.graphModel;return x("div",{className:"lf-tool-overlay",id:"ToolOverlay_".concat(t.flowId),children:this.getTools()})},e=ka([at],e),e}(V),Ga=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),bn=function(){return bn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},$a=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Ua=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Ka=function(r){Za(e,r);function e(){var t=r.call(this)||this;return t.onDragStart=function(n){var o=n.event,i=t.props,a=i.anchorData,s=i.nodeModel,d=i.graphModel;d.selectNodeById(s.id),s.autoToFront&&d.toFront(s.id),d.eventCenter.emit(T.ANCHOR_DRAGSTART,{data:a,e:o,nodeModel:s}),t.setState({startX:a.x,startY:a.y,endX:a.x,endY:a.y})},t.onDragging=function(n){var o=n.event,i=t.props,a=i.graphModel,s=i.nodeModel,d=i.anchorData,l=a.transformModel,u=a.eventCenter,f=a.width,c=a.height,h=a.editConfigModel,g=h.autoExpand,p=h.stopMoveGraph;if(o){var v=o.clientX,y=o.clientY,_=a.getPointByClient({x:v,y}),M=_.domOverlayPosition,S=M.x,O=M.y,w=_.canvasOverlayPosition,A=w.x,C=w.y;t.t&&Ke(t.t);var I=[],L=10;S<10?I=[L,0]:S+10>f?I=[-10,0]:O<10?I=[0,L]:O+10>c&&(I=[0,-10]),t.setState({endX:A,endY:C,dragging:!0}),t.moveAnchorEnd(A,C),I.length>0&&!p&&g&&(t.t=eo(function(){var G=Va(I,2),R=G[0],Y=G[1];l.translate(R,Y);var H=t.state,rt=H.endX,st=H.endY;t.setState({endX:rt-R,endY:st-Y}),t.moveAnchorEnd(rt-R,st-Y)})),u.emit(T.ANCHOR_DRAG,{data:d,e:o,nodeModel:s})}},t.onDragEnd=function(n){var o=n.event;t.t&&Ke(t.t);var i=t.checkEnd(o);t.setState({startX:0,startY:0,endX:0,endY:0,dragging:!1}),t.sourceRuleResults.clear(),t.targetRuleResults.clear();var a=t.props,s=a.graphModel,d=a.nodeModel,l=a.anchorData;i&&s.eventCenter.emit(T.ANCHOR_DRAGEND,{data:l,e:o,nodeModel:d,edgeModel:i})},t.checkEnd=function(n){var o,i=t.props,a=i.graphModel,s=i.nodeModel,d=i.anchorData,l=d.x,u=d.y,f=d.id,c=t.state,h=c.endX,g=c.endY,p=c.dragging,v=Ze({x:h,y:g},a);if(t.preTargetNode&&t.preTargetNode.state!==B.DEFAULT&&t.preTargetNode.setElementState(B.DEFAULT),!!p&&v&&v.node){var y=v.node,_=v.anchor.id,M="".concat(s.id,"_").concat(y.id,"_").concat(_,"_").concat(f),S=t.sourceRuleResults.get(M)||{},O=S.isAllPass,w=S.msg,A=t.targetRuleResults.get(M)||{},C=A.isAllPass,I=A.msg;if(O&&C){y.setElementState(B.DEFAULT);var L=a.getNodeModelById(v.node.id),G=(o=a.edgeGenerator)===null||o===void 0?void 0:o.call(a,s.getData(),L==null?void 0:L.getData()),R=a.addEdge(gt(gt({},G),{sourceNodeId:s.id,sourceAnchorId:f,startPoint:{x:l,y:u},targetNodeId:v.node.id,targetAnchorId:v.anchor.id,endPoint:{x:v.anchor.x,y:v.anchor.y}})),Y=t.props.anchorData;return a.eventCenter.emit(T.ANCHOR_DROP,{data:Y,e:n,nodeModel:s,edgeModel:R}),R}var H=y.getData();return a.eventCenter.emit(T.CONNECTION_NOT_ALLOWED,{data:H,msg:I||w||"不允许添加连线"}),null}},t.sourceRuleResults=new Map,t.targetRuleResults=new Map,t.state={startX:0,startY:0,endX:0,endY:0,dragging:!1},t.dragHandler=new xt({onDragStart:t.onDragStart,onDragging:t.onDragging,onDragEnd:t.onDragEnd}),t}return e.prototype.getAnchorShape=function(){var t=this.props,n=t.anchorData,o=t.style,i=t.node,a=i.getAnchorShape(n);if(a)return a;var s=n.x,d=n.y,l=gt(gt({},o),o==null?void 0:o.hover);return x("g",{children:[x(ne,gt({className:"lf-node-anchor-hover"},l,{x:s,y:d})),x(ne,gt({className:"lf-node-anchor"},o,{x:s,y:d}))]})},Object.defineProperty(e.prototype,"customTrajectory",{get:function(){var t=this.props.graphModel.customTrajectory;return t},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"relateEdges",{get:function(){var t=this.props,n=t.graphModel,o=n.getAnchorIncomingEdge,i=n.getAnchorOutgoingEdge,a=t.anchorData.id;return{incomingEdgeList:o(a),outgoingEdgeList:i(a)}},enumerable:!1,configurable:!0}),e.prototype.moveAnchorEnd=function(t,n){var o,i,a=this.props,s=a.graphModel,d=a.nodeModel,l=a.anchorData,u=Ze({x:t,y:n},s);if(u){var f=u.node,c=u.anchor.id;if(this.preTargetNode&&this.preTargetNode!==u.node&&this.preTargetNode.setElementState(B.DEFAULT),l.id===c)return;this.preTargetNode=f;var h="".concat(d.id,"_").concat(f.id,"_").concat(c,"_").concat(l.id);if(!this.targetRuleResults.has(h)){var g=u.anchor,p=d.isAllowConnectedAsSource(f,l,g),v=f.isAllowConnectedAsTarget(d,l,g);this.sourceRuleResults.set(h,Ve(p)),this.targetRuleResults.set(h,Ve(v))}var y=((o=this.sourceRuleResults.get(h))!==null&&o!==void 0?o:{}).isAllPass,_=((i=this.targetRuleResults.get(h))!==null&&i!==void 0?i:{}).isAllPass;y&&_?f.setElementState(B.ALLOW_CONNECT):f.setElementState(B.NOT_ALLOW_CONNECT)}else this.preTargetNode&&this.preTargetNode.state!==B.DEFAULT&&this.preTargetNode.setElementState(B.DEFAULT)},e.prototype.isShowLine=function(){var t=this.state,n=t.startX,o=t.startY,i=t.endX,a=t.endY,s=pt(n,o,i,a);return s>10},e.prototype.render=function(){var t=this,n=this.state,o=n.startX,i=n.startY,a=n.endX,s=n.endY,d=this.props,l=d.anchorData.edgeAddable,u=d.edgeStyle;return x("g",{className:"lf-anchor",children:[x("g",{onMouseDown:function(f){l!==!1&&t.dragHandler.handleMouseDown(f)},children:this.getAnchorShape()}),this.isShowLine()&&(this.customTrajectory?this.customTrajectory(gt({sourcePoint:{x:o,y:i},targetPoint:{x:a,y:s}},u)):x(ee,gt({x1:o,y1:i,x2:a,y2:s},u,{"pointer-events":"none"})))]})},e}(V),qa=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Cn=function(){return Cn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},so=function(r){Qa(e,r);function e(t){var n=r.call(this)||this;n.mouseDownHandler=function(i){var a=n.props,s=a.draggable,d=a.model,l=a.graphModel,u=l.editConfigModel.nodeTextDraggable;(s??u)&&(n.stepperDrag.model=d,n.stepperDrag.handleMouseDown(i))},n.onDragging=function(i){var a=i.deltaX,s=i.deltaY,d=n.props,l=d.model,u=d.graphModel.transformModel;if(a&&s){var f=ts(u.fixDeltaXY(a,s),2),c=f[0],h=f[1];l.moveText(c,h)}},n.dbClickHandler=function(){var i=n.props,a=i.editable,s=i.graphModel.eventCenter,d=i.model;a&&d.setElementState(B.TEXT_EDIT),s.emit(T.TEXT_DBCLICK,{data:d.text,model:d})};var o=t.draggable;return n.stepperDrag=new xt({onDragging:n.onDragging,step:1,eventType:"TEXT",isStopPropagation:o}),n}return e.prototype.getShape=function(){var t=this.props,n=t.model,o=t.graphModel,i=o.editConfigModel,a=n.text,s=a.value,d=a.x,l=a.y,u=a.editable,f=a.draggable,c={x:d,y:l,className:"",value:s},h=n.getTextStyle(),g=i.nodeTextDraggable||f;return x(no,Ln({},c,h,{className:Ao({"lf-element-text":u,"lf-text-draggable":!u&&g,"lf-text-disabled":!u&&!g}),model:n}))},e.prototype.render=function(){var t=this.props.model.text;if(t)return x("g",{onMouseDown:this.mouseDownHandler,onDblClick:this.dbClickHandler,children:this.getShape()})},e}(V),es=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ut=function(){return ut=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},ns=function(r){es(e,r);function e(t){var n=r.call(this,t)||this;return n.setHoverOn=function(){n.setState({isHovered:!0})},n.setHoverOff=function(){n.setState({isHovered:!1})},n.state={isHovered:!1},n}return e.prototype.getBackground=function(){var t=this.state.isHovered,n=this.props.model,o=n.text,i=n.getTextStyle(),a=i.background||{};if(t&&i.hover&&i.hover.background&&(a=ut(ut({},a),i.hover.background)),o!=null&&o.value&&(a==null?void 0:a.fill)!=="transparent"){var s=i.fontSize,d=i.textWidth,l=i.lineHeight,u=i.overflowMode,f=a.wrapPadding,c=o==null?void 0:o.value.split(/[\r\n]/g),h=c.length,g=o.x,p=o.y,v={};if(u==="autoWrap"&&d){var y=to({rows:c,style:{fontSize:"".concat(s,"px"),width:"".concat(d,"px"),lineHeight:l,padding:f},rowsLength:h,className:"lf-get-text-height"});v=ut(ut({},a),{x:g,y:p,width:d,height:y})}else{var _=ni({rows:c,rowsLength:h,fontSize:s}),M=_.width,S=_.height;if(u==="ellipsis"&&(M=d,S=s+2),typeof a.wrapPadding=="string"){var O=a.wrapPadding.split(",").filter(function(et){return et.trim()}).map(function(et){return parseFloat(et.trim())});if(O.length>0&&O.length<=4){if(O.length===1){var w=Ye(O,1),A=w[0];O=[A,A,A,A]}else if(O.length===2){var C=Ye(O,2),I=C[0],L=C[1];O=[I,L,I,L]}else if(O.length===3){var G=Ye(O,3),R=G[0],L=G[1],Y=G[2];O=[R,L,Y,L]}var H=Ye(O,4),rt=H[0],st=H[1],Ct=H[2],Yt=H[3];M+=st+Yt,S+=rt+Ct,g=g+(st-Yt)/2,p=p+(Ct-rt)/2}}v=ut(ut({},a),{x:g-1,y:p-1,width:M,height:S})}return x(mt,ut({},v))}return null},e.prototype.getShape=function(){var t=this.props.model,n=t.text,o=n.x,i=n.y,a=n.value;if(!a)return null;var s=t.getTextStyle(),d=ut({x:o,y:i,value:a,model:t,className:"lf-element-text"},s);return x("g",{className:"lf-line-text",onMouseEnter:this.setHoverOn,onMouseLeave:this.setHoverOff,children:[this.getBackground(),x(no,ut({},d))]})},e}(so),rs=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Je=function(){return Je=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},bt=function(r){rs(e,r);function e(t){var n=r.call(this)||this;n.onDragStart=function(d){var l=d.event,u=n.props,f=u.model,c=u.graphModel;if(l){var h=c.getPointByClient({x:l.clientX,y:l.clientY}).canvasOverlayPosition,g=h.x,p=h.y;n.moveOffset={dx:f.x-g,dy:f.y-p}}},n.onDragging=function(d){var l,u,f,c,h=d.event,g=n.props,p=g.model,v=g.graphModel,y=v.editConfigModel,_=y.stopMoveGraph,M=y.autoExpand,S=v.transformModel,O=v.selectNodes,w=v.width,A=v.height,C=v.gridSize;p.isDragging=!0;var I=h,L=I.clientX,G=I.clientY,R=v.getPointByClient({x:L,y:G}).canvasOverlayPosition,Y=R.x,H=R.y,rt=He(S.CanvasPointToHtmlPoint([Y,H]),2),st=rt[0],Ct=rt[1];if(Y=Y+((u=(l=n.moveOffset)===null||l===void 0?void 0:l.dx)!==null&&u!==void 0?u:0),H=H+((c=(f=n.moveOffset)===null||f===void 0?void 0:f.dy)!==null&&c!==void 0?c:0),Y=te(Y,C),H=te(H,C),!w||!A){v.moveNode2Coordinate(p.id,Y,H);return}var Yt=st<0||Ct<0||st>w||Ct>A;if(!(M&&!_&&Yt)){var et=He(S.CanvasPointToHtmlPoint([Y-p.width/2,H-p.height/2]),2),Et=et[0],re=et[1],Ae=He(S.CanvasPointToHtmlPoint([Y+p.width/2,H+p.height/2]),2),an=Ae[0],sn=Ae[1],Pe=Math.max(C,20),Ht=[];Et<0?Ht=[Pe,0]:an>v.width?Ht=[-Pe,0]:re<0?Ht=[0,Pe]:sn>v.height&&(Ht=[0,-Pe]),n.t&&Ke(n.t),p.transform=new nn(-Y,-H).rotate(p.rotate).translate(Y,H).toString();var Te=O.map(function(Ne){return Ne.id});Te.indexOf(p.id)===-1&&(Te=[p.id]),Ht.length>0&&!_&&M?n.t=eo(function(){var Ne=He(Ht,2),kt=Ne[0],zt=Ne[1];S.translate(kt??0,zt??0);var lo=-(kt??0)/S.SCALE_X,uo=-(zt??0)/S.SCALE_X;v.moveNodes(Te,lo,uo)}):v.moveNodes(Te,Y-p.x,H-p.y)}},n.onDragEnd=function(){n.t&&Ke(n.t);var d=n.props.model;d.isDragging=!1},n.onMouseOut=function(d){Co()&&n.setHoverOff(d)},n.handleMouseUp=function(){var d=n.props.model;n.mouseUpDrag=d.isDragging},n.handleClick=function(d){var l=n.mouseUpDrag===!1;if(n.startTime){var u=n.props,f=u.model,c=u.graphModel;if(l){var h=f.getData(),g=c.getPointByClient({x:d.clientX,y:d.clientY}),p={data:h,e:d,position:g,isSelected:!1,isMultiple:!1},v=d.button===2,y=d.detail===2;if(!v){var _=c.editConfigModel,M=Jr(d,_);p.isMultiple=M,f.isSelected&&!y&&M?(p.isSelected=!1,f.setSelected(!1)):(c.selectNodeById(f.id,M),p.isSelected=!0,n.toFront()),y?(_.nodeTextEdit&&f.text.editable&&(f.setSelected(!1),c.setElementStateById(f.id,B.TEXT_EDIT)),c.eventCenter.emit(T.NODE_DBCLICK,p)):(c.eventCenter.emit(T.ELEMENT_CLICK,p),c.eventCenter.emit(T.NODE_CLICK,p))}}}},n.handleContextMenu=function(d){d.preventDefault();var l=n.props,u=l.model,f=l.graphModel,c=u.getData(),h=f.getPointByClient({x:d.clientX,y:d.clientY});f.setElementStateById(u.id,B.SHOW_MENU,h.domOverlayPosition),u.isSelected||f.selectNodeById(u.id),f.eventCenter.emit(T.NODE_CONTEXTMENU,{data:c,e:d,position:h}),n.toFront()},n.handleMouseDown=function(d){var l=n.props,u=l.model,f=l.graphModel;n.startTime=new Date().getTime();var c=f.editConfigModel;c.adjustNodePosition&&u.draggable&&n.stepDrag&&n.stepDrag.handleMouseDown(d)},n.setHoverOn=function(d){var l=n.props,u=l.model,f=l.graphModel;if(!u.isHovered){var c=u.getData();u.setHovered(!0),f.eventCenter.emit(T.NODE_MOUSEENTER,{data:c,e:d})}},n.setHoverOff=function(d){var l=n.props,u=l.model,f=l.graphModel,c=u.getData();u.isHovered&&(u.setHovered(!1),f.eventCenter.emit(T.NODE_MOUSELEAVE,{data:c,e:d}))};var o=t.graphModel,i=o.gridSize,a=o.eventCenter,s=t.model;return n.stepDrag=new xt({onDragStart:n.onDragStart,onDragging:n.onDragging,onDragEnd:n.onDragEnd,step:i,eventType:"NODE",isStopPropagation:!1,eventCenter:a,model:s}),n.modelDisposer=So(function(){return n.props},function(d){d&&d.model&&n.stepDrag.setModel(d.model)}),n}return e.prototype.componentWillUnmount=function(){this.modelDisposer&&this.modelDisposer()},e.prototype.componentDidMount=function(){},e.prototype.componentDidUpdate=function(){},e.prototype.getAnchorShape=function(t){return null},e.prototype.getAnchors=function(){var t=this,n=this.props,o=n.model,i=n.graphModel,a=o.isSelected,s=o.isHitable,d=o.isDragging,l=o.isShowAnchor;return s&&(a||l)&&!d?Ot(o.anchors,function(u,f){var c=o.getAnchorLineStyle(u),h=o.getAnchorStyle(u);return x(Ka,{anchorData:u,node:t,style:h,edgeStyle:c,anchorIndex:f,nodeModel:o,graphModel:i,setHoverOff:t.setHoverOff})}):[]},e.prototype.getRotateControl=function(){var t=this.props,n=t.model,o=t.graphModel,i=o.editConfigModel,a=i.isSilentMode,s=i.allowRotate,d=n.isSelected,l=n.isHitable,u=n.rotatable,f=n.isHovered,c=s&&u,h=n.getRotateControlStyle();if(!a&&l&&(d||f)&&c)return x(Ja,{graphModel:o,nodeModel:n,eventCenter:o.eventCenter,style:h})},e.prototype.getResizeControl=function(){var t=this.props,n=t.model,o=t.graphModel,i=o.editConfigModel,a=i.isSilentMode,s=i.allowResize,d=n.isSelected,l=n.isHitable,u=n.resizable,f=n.isHovered,c=s&&u,h=n.getResizeControlStyle();return!a&&l&&(d||f)&&c?x(wi,{style:h,model:n,graphModel:o}):null},e.prototype.getText=function(){var t,n=this.props,o=n.model,i=n.graphModel,a=i.editConfigModel;if(a.nodeTextMode!==ht.TEXT||o.state===B.TEXT_EDIT)return null;if(o.text){var s=!1;return a.nodeTextDraggable&&o.text.draggable&&(s=!0),x(so,{editable:a.nodeTextEdit&&((t=o.text.editable)!==null&&t!==void 0?t:!0),model:o,graphModel:i,draggable:s})}return null},e.prototype.getStateClassName=function(){var t=this.props.model,n=t.state,o=t.isDragging,i=t.isSelected,a="lf-node";switch(n){case B.ALLOW_CONNECT:a+=" lf-node-allow";break;case B.NOT_ALLOW_CONNECT:a+=" lf-node-not-allow";break;default:a+=" lf-node-default";break}return o&&(a+=" lf-dragging"),i&&(a+=" lf-node-selected"),a},e.prototype.toFront=function(){var t=this.props,n=t.model,o=t.graphModel;n.autoToFront&&o.toFront(n.id)},e.prototype.render=function(){var t=this.props,n=t.model,o=t.graphModel,i=o.editConfigModel,a=i.hideAnchors,s=i.adjustNodePosition,d=i.allowRotate,l=i.allowResize,u=o.gridSize,f=o.transformModel.SCALE_X,c=n.isHitable,h=n.draggable,g=n.transform,p=n.getOuterGAttributes(),v=p.className,y=v===void 0?"":v,_=os(p,["className"]),M=x("g",{className:"lf-node-content",children:[x("g",{transform:g,children:[this.getShape(),this.getText(),d&&this.getRotateControl(),l&&this.getResizeControl()]}),!a&&this.getAnchors()]}),S;return c?(s&&h&&this.stepDrag.setStep(u*f),S=x("g",Je({className:"".concat(this.getStateClassName()," ").concat(y),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onClick:this.handleClick,onMouseEnter:this.setHoverOn,onMouseOver:this.setHoverOn,onMouseLeave:this.setHoverOff,onMouseOut:this.onMouseOut,onContextMenu:this.handleContextMenu},_,{children:M}))):S=x("g",Je({className:"".concat(this.getStateClassName()," ").concat(y)},_,{children:M})),S},e.isObserved=!1,e}(V),is=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),jn=function(){return jn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},ps=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},_t;(function(r){r.SOURCE="SOURCE",r.TARGET="TARGET"})(_t||(_t={}));var Br=function(r){hs(e,r);function e(t){var n=r.call(this)||this;n.handleMouseDown=function(d){n.stepDrag&&n.stepDrag.handleMouseDown(d)},n.onDragStart=function(){var d=n.props,l=d.x,u=d.y,f=d.edgeModel,c=f.startPoint,h=f.endPoint,g=f.pointsList;n.oldEdge={startPoint:c,endPoint:h,pointsList:g},n.setState({endX:l,endY:u,dragging:!0})},n.onDragging=function(d){var l=d.deltaX,u=d.deltaY,f=n.state,c=f.endX,h=f.endY,g=n.props,p=g.graphModel,v=g.type,y=p.transformModel,_=p.editConfigModel,M=gs(y.moveCanvasPointByHtml([c,h],l,u),2),S=M[0],O=M[1];n.setState({endX:S,endY:O,dragging:!0});var w=n.props.edgeModel,A=Ze({x:c,y:h},p);if(A&&A.node&&n.isAllowAdjust(A).pass){var C=w.startPoint,I=w.endPoint,L=w.sourceNode,G=w.targetNode,R=v===_t.SOURCE?{startPoint:{x:A.anchor.x,y:A.anchor.y},endPoint:{x:I.x,y:I.y},sourceNode:A.node,targetNode:G}:{startPoint:{x:C.x,y:C.y},endPoint:{x:A.anchor.x,y:A.anchor.y},sourceNode:L,targetNode:A.node};w.updateAfterAdjustStartAndEnd(R)}else v===_t.SOURCE?w.updateStartPoint({x:S,y:O}):w.updateEndPoint({x:S,y:O});w.text.value&&_.adjustEdge&&w.setText(Object.assign({},w.text,w.textPosition))},n.onDragEnd=function(d){var l,u,f,c=d.event;try{n.setState({dragging:!1});var h=n.props,g=h.graphModel,p=h.edgeModel,v=h.type,y=n.state,_=y.endX,M=y.endY,S=y.dragging,O=Ze({x:_,y:M},g);if(!S)return;var w=!1,A=void 0;if(O&&O.node){var C=n.isAllowAdjust(O),I=C.pass,L=C.msg,G=C.newTargetNode;if(I){var R=p.getData(),Y=R.text,H=R.sourceAnchorId,rt=H===void 0?"":H,st=R.targetAnchorId,Ct=st===void 0?"":st,Yt=ys(R,["text","sourceAnchorId","targetAnchorId"]);if(A=ft(ft({sourceAnchorId:rt,targetAnchorId:Ct},Yt),{text:(Y==null?void 0:Y.value)||""}),v===_t.SOURCE){var et=g.getNodeModelById(O.node.id),Et=g.getNodeModelById(p.targetNodeId),re=(l=g.edgeGenerator)===null||l===void 0?void 0:l.call(g,et==null?void 0:et.getData(),Et==null?void 0:Et.getData(),A);A=ft(ft({},re),{sourceNodeId:O.node.id,sourceAnchorId:O.anchor.id,startPoint:{x:O.anchor.x,y:O.anchor.y},targetNodeId:p.targetNodeId,endPoint:ft({},p.endPoint)}),p.sourceNodeId===O.node.id&&p.sourceAnchorId===O.anchor.id&&(w=!0)}else if(v===_t.TARGET){var et=g.getNodeModelById(p.sourceNodeId),Et=g.getNodeModelById(O.node.id),re=(u=g.edgeGenerator)===null||u===void 0?void 0:u.call(g,et==null?void 0:et.getData(),Et==null?void 0:Et.getData(),A);A=ft(ft({},re),{sourceNodeId:p.sourceNodeId,startPoint:ft({},p.startPoint),targetNodeId:O.node.id,targetAnchorId:O.anchor.id,endPoint:{x:O.anchor.x,y:O.anchor.y}}),p.targetNodeId===O.node.id&&p.targetAnchorId===O.anchor.id&&(w=!0)}}else{w=!0;var Ae=G.getData();g.eventCenter.emit(T.CONNECTION_NOT_ALLOWED,{data:Ae,msg:L})}}else w=!0;if(w)n.recoveryEdge();else{var an=p.getData();g.deleteEdgeById(p.id);var sn=g.addEdge(ft({},A));g.eventCenter.emit(T.EDGE_EXCHANGE_NODE,{data:{newEdge:sn.getData(),oldEdge:an}})}(f=n.preTargetNode)===null||f===void 0||f.setElementState(B.DEFAULT)}finally{var g=n.props.graphModel;g.eventCenter.emit(T.ADJUST_POINT_DRAGEND,{e:c,data:n.stepDragData})}},n.recoveryEdge=function(){var d=n.props.edgeModel,l=n.oldEdge,u=l.startPoint,f=l.endPoint,c=l.pointsList;d.updateStartPoint(u),d.updateEndPoint(f),d.modelType!==j.LINE_EDGE&&(d.pointsList=c??[],d.initPoints())},n.getAdjustPointStyle=function(){var d=n.props.graphModel.theme,l=d.edgeAdjust;return l},n.state={dragging:!1,endX:0,endY:0},n.targetRuleResults=new Map,n.sourceRuleResults=new Map;var o=t.type,i=t.edgeModel,a=t.graphModel,s=a.eventCenter;return n.stepDragData={type:o,edgeData:i.getData()},n.stepDrag=new xt({onDragStart:n.onDragStart,onDragging:n.onDragging,onDragEnd:n.onDragEnd,eventType:"ADJUST_POINT",isStopPropagation:!1,eventCenter:s,data:n.stepDragData}),n}return e.prototype.isAllowAdjust=function(t){var n=this.props,o=n.edgeModel,i=o.id,a=o.sourceNode,s=o.targetNode,d=o.sourceAnchorId,l=o.targetAnchorId,u=n.type,f,c,h,g;if(u===_t.SOURCE?(f=t.node,c=s,h=t.anchor,g=s.getAnchorInfo(l)):(f=a,c=t.node,g=t.anchor,h=a.getAnchorInfo(d)),this.preTargetNode&&this.preTargetNode!==t.node&&this.preTargetNode.setElementState(B.DEFAULT),this.preTargetNode=t.node,g.id===h.id)return{pass:!1,msg:"",newTargetNode:c};var p="".concat(f.id,"_").concat(c.id,"_").concat(h.id,"_").concat(g.id);if(!this.targetRuleResults.has(p)){var v=f.isAllowConnectedAsSource(c,h,g,i),y=c.isAllowConnectedAsTarget(f,h,g,i);this.sourceRuleResults.set(p,Ve(v)),this.targetRuleResults.set(p,Ve(y))}var _=this.sourceRuleResults.get(p),M=_.isAllPass,S=_.msg,O=this.targetRuleResults.get(p),w=O.isAllPass,A=O.msg,C=M&&w?B.ALLOW_CONNECT:B.NOT_ALLOW_CONNECT;return u===_t.SOURCE?f.setElementState(C):c.setElementState(C),{pass:M&&w,msg:A||S,newTargetNode:c}},e.prototype.render=function(){var t=this.props,n=t.x,o=t.y,i=t.getAdjustPointShape,a=t.edgeModel,s=this.state.dragging;return x("g",{pointerEvents:s?"none":"",onMouseDown:this.handleMouseDown,children:s?"":i(n,o,a)})},e}(V),vs=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Yn=function(){return Yn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},on=function(r){_s(e,r);function e(){var t=r.call(this)||this;return t.textRef=Gn(),t.handleHover=function(n,o){var i=t.props,a=i.model,s=i.graphModel.eventCenter;a.setHovered(n);var d=n?T.EDGE_MOUSEENTER:T.EDGE_MOUSELEAVE,l=a.getData();s.emit(d,{data:l,e:o})},t.setHoverOn=function(n){var o=t.props.model.isHovered;o||(t.textRef&&t.textRef.current&&t.textRef.current.setHoverOn(),t.handleHover(!0,n))},t.setHoverOff=function(n){var o=t.props.model.isHovered;o&&(t.textRef&&t.textRef.current&&t.textRef.current.setHoverOff(),t.handleHover(!1,n))},t.handleContextMenu=function(n){n.preventDefault(),t.contextMenuTime=new Date().getTime(),t.clickTimer&&clearTimeout(t.clickTimer);var o=t.props,i=o.model,a=o.graphModel,s=a.getPointByClient({x:n.clientX,y:n.clientY});a.setElementStateById(i.id,B.SHOW_MENU,s.domOverlayPosition),t.toFront(),i.isSelected||a.selectEdgeById(i.id);var d=i==null?void 0:i.getData();a.eventCenter.emit(T.EDGE_CONTEXTMENU,{data:d,e:n,position:s})},t.handleMouseDown=function(n){n.stopPropagation(),t.startTime=new Date().getTime()},t.handleMouseUp=function(n){if(t.startTime){var o=new Date().getTime()-t.startTime;if(!(o>200)){var i=n.button===2;if(!i){var a=n.detail===2,s=t.props,d=s.model,l=s.graphModel,u=d==null?void 0:d.getData(),f=l.getPointByClient({x:n.clientX,y:n.clientY});if(a){var c=l.editConfigModel,h=l.textEditElement,g=d.id,p=d.text,v=d.modelType;if(h&&h.id===g&&l.setElementStateById(g,B.DEFAULT),c.edgeTextEdit&&p.editable&&(d.setSelected(!1),l.setElementStateById(g,B.TEXT_EDIT)),v===j.POLYLINE_EDGE){var y=d,_=l.getPointByClient({x:n.x,y:n.y}).canvasOverlayPosition,M=_.x,S=_.y;y.dbClickPosition=qr({x:M,y:S},y.points)}l.eventCenter.emit(T.EDGE_DBCLICK,{data:u,e:n,position:f})}else l.eventCenter.emit(T.ELEMENT_CLICK,{data:u,e:n,position:f}),l.eventCenter.emit(T.EDGE_CLICK,{data:u,e:n,position:f});var O=l.editConfigModel;l.selectEdgeById(d.id,Jr(n,O)),t.toFront()}}}},t}return e.prototype.getShape=function(){return x("g",{children:this.getEdge()})},e.prototype.getTextStyle=function(){},e.prototype.getText=function(){var t,n=this.props,o=n.model,i=n.graphModel,a=i.editConfigModel;if(a.edgeTextMode!==ht.TEXT||o.state===B.TEXT_EDIT)return null;if(o.text){var s=!1;return a.edgeTextDraggable&&o.text.draggable&&(s=!0),x(ns,{ref:this.textRef,editable:a.edgeTextEdit&&((t=o.text.editable)!==null&&t!==void 0?t:!0),model:o,graphModel:i,draggable:s})}return null},e.prototype.getArrowInfo=function(){var t=this.props.model,n=t.startPoint,o=t.endPoint,i=t.isSelected,a=this.state.hover;return{start:n,end:o,hover:a,isSelected:i}},e.prototype.getLastTwoPoints=function(){var t=this.props.model,n=t.startPoint,o=t.endPoint;return[n,o]},e.prototype.getArrowStyle=function(){return console.error("getArrowStyle is deprecated in 1.2.0, please use model.getArrowStyle"),null},e.prototype.getArrow=function(){var t=this.props.model,n=t.id,o=t.getArrowStyle(),i=o.refY,a=i===void 0?0:i,s=o.refX,d=s===void 0?2:s,l=ms(this.getLastTwoPoints(),2),u=l[0],f=l[1],c="auto";return u!==null&&f!==null&&(c=zi(ki({x:f.x-u.x,y:f.y-u.y,z:0}))),x("g",{children:x("defs",{children:[x("marker",{id:"marker-start-".concat(n),refX:-d,refY:a,overflow:"visible",orient:"auto",markerUnits:"userSpaceOnUse",children:this.getStartArrow()}),x("marker",{id:"marker-end-".concat(n),refX:d,refY:a,overflow:"visible",orient:c,markerUnits:"userSpaceOnUse",children:this.getEndArrow()})]})})},e.prototype.getStartArrow=function(){return x("path",{})},e.prototype.getEndArrow=function(){var t=this.props.model,n=t.getArrowStyle(),o=n.stroke,i=n.strokeWidth,a=n.offset,s=n.verticalLength;return x("path",{stroke:o,fill:o,strokeWidth:i,transform:"rotate(180)",d:"M 0 0 L ".concat(a," -").concat(s," L ").concat(a," ").concat(s," Z")})},e.prototype.getAdjustPointShape=function(t,n,o){var i=o.getAdjustPointStyle();return x(ne,ve({className:"lf-edge-adjust-point"},i,{x:t,y:n}))},e.prototype.getAdjustPoints=function(){var t=this.props,n=t.model,o=t.graphModel,i=o.editConfigModel,a=i.adjustEdgeStartAndEnd,s=i.adjustEdgeStart,d=i.adjustEdgeEnd,l=n.getAdjustStart(),u=n.getAdjustEnd();return x("g",{children:[a&&s&&x(Br,ve({type:_t.SOURCE},l,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:n,graphModel:o})),a&&d&&x(Br,ve({type:_t.TARGET},u,{getAdjustPointShape:this.getAdjustPointShape,edgeModel:n,graphModel:o}))]})},e.prototype.getAnimation=function(){console.error("getAnimation is deprecated in 1.2.0, please use model.getEdgeAnimationStyle")},e.prototype.getAppendWidth=function(){return x("g",{})},e.prototype.getAppend=function(){return x("g",{className:"lf-edge-append",children:this.getAppendWidth()})},e.prototype.getEdge=function(){return null},e.prototype.toFront=function(){var t=this.props,n=t.graphModel,o=t.model;n.toFront(o.id)},e.prototype.render=function(){var t=this.props.model,n=t.isSelected,o=t.isHitable,i=t.isShowAdjustPoint;return x("g",{children:[x("g",{className:["lf-edge",!o&&"pointer-none",n&&"lf-edge-selected"].filter(Boolean).join(" "),onMouseDown:this.handleMouseDown,onMouseUp:this.handleMouseUp,onContextMenu:this.handleContextMenu,onMouseOver:this.setHoverOn,onMouseEnter:this.setHoverOn,onMouseLeave:this.setHoverOff,children:[this.getShape(),this.getAppend(),this.getText(),this.getArrow()]}),i&&n?this.getAdjustPoints():""]})},e.isObserved=!1,e}(V),xs=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Hn=function(){return Hn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Xr=function(r){xs(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.getEdge=function(){var t=this.props.model,n=t.getEdgeStyle(),o=t,i=o.path,a=o.isAnimation,s=o.arrowConfig,d=t.getEdgeAnimationStyle(),l=d.strokeDasharray,u=d.stroke,f=d.strokeDashoffset,c=d.animationName,h=d.animationDuration,g=d.animationIterationCount,p=d.animationTimingFunction,v=d.animationDirection;return x(Oe,Hn({d:i},n,s,a?{strokeDasharray:l,stroke:u,style:{strokeDashoffset:f,animationName:c,animationDuration:h,animationIterationCount:g,animationTimingFunction:p,animationDirection:v}}:{}))},e.prototype.getAppendWidth=function(){var t=this.props.model.path;return x(Oe,{d:t,strokeWidth:10,stroke:"transparent",fill:"none"})},e.prototype.getArrowInfo=function(){var t=this.props.model,n=this.state.hover,o=t.isSelected,i=t.getArrowStyle().offset,a=t.pointsList.map(function(f){return{x:f.x,y:f.y}}),s=Es(sr(a,i),2),d=s[0],l=s[1],u={start:d,end:l,hover:n,isSelected:o};return u},e.prototype.getLastTwoPoints=function(){var t=this.props.model,n=t.getArrowStyle().offset,o=t.pointsList.map(function(i){return{x:i.x,y:i.y}});return sr(o,n)},e}(on),Ms=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),kn=function(){return kn=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Hr=function(r){Os(e,r);function e(){var t=r.call(this)||this;return t.onDragStart=function(){var n=t.props.model;n.dragAppendStart(),t.isShowAdjustPointTemp=n.isShowAdjustPoint,n.isShowAdjustPoint=!1},t.onDragging=function(n){var o=n.deltaX,i=n.deltaY,a=t.props,s=a.model,d=a.graphModel;t.isDragging=!0;var l=d.transformModel,u=d.editConfigModel,f=Ss(l.fixDeltaXY(o,i),2),c=f[0],h=f[1],g=s,p=u.adjustEdgeMiddle;p?t.appendInfo=g.dragAppendSimple(t.appendInfo,{x:c,y:h}):t.appendInfo=g.dragAppend(t.appendInfo,{x:c,y:h})},t.onDragEnd=function(){var n,o=t.props,i=o.model,a=o.graphModel.eventCenter,s=i;s.dragAppendEnd(),t.isDragging=!1,s.isShowAdjustPoint=(n=t.isShowAdjustPointTemp)!==null&&n!==void 0?n:!1,t.appendInfo=void 0,a.emit(T.EDGE_ADJUST,{data:s.getData()})},t.beforeDragStart=function(n,o){o.draggable&&t.drag.handleMouseDown(n),t.appendInfo=o},t.drag=new xt({onDragStart:t.onDragStart,onDragging:t.onDragging,onDragEnd:t.onDragEnd,isStopPropagation:!1}),t}return e.prototype.getEdge=function(){var t=this.props.model,n=t.points,o=t.isAnimation,i=t.arrowConfig,a=t.getEdgeStyle(),s=t.getEdgeAnimationStyle(),d=s.strokeDasharray,l=s.stroke,u=s.strokeDashoffset,f=s.animationName,c=s.animationDuration,h=s.animationIterationCount,g=s.animationTimingFunction,p=s.animationDirection;return x(Ei,Rt({points:n},a,i,o?{strokeDasharray:d,stroke:l,style:{strokeDashoffset:u,animationName:f,animationDuration:c,animationIterationCount:h,animationTimingFunction:g,animationDirection:p}}:{}))},e.prototype.getArrowInfo=function(){var t=this.props.model,n=t.points,o=t.isSelected,i=this.state.hover,a=Xt(n),s=a[0],d=a[0];return a.length>=2&&(s=a[a.length-2],d=a[a.length-1]),{start:s,end:d,hover:i,isSelected:o}},e.prototype.getLastTwoPoints=function(){var t=this.props.model,n=t.points,o=Xt(n),i=o[0],a=o[0];return o.length>=2&&(i=o[o.length-2],a=o[o.length-1]),[i,a]},e.prototype.getAppendAttributes=function(t){var n=t.start,o=t.end,i;if(n.x===o.x&&n.y===o.y)i="";else{var a={start:n,end:o,offset:10,verticalLength:5},s=xe(Rt(Rt({},a),{type:"start"})),d=xe(Rt(Rt({},a),{type:"end"}));i="M".concat(s.leftX," ").concat(s.leftY,`
- L`).concat(s.rightX," ").concat(s.rightY,`
- L`).concat(d.rightX," ").concat(d.rightY,`
- L`).concat(d.leftX," ").concat(d.leftY," z")}return{d:i,fill:"transparent",stroke:"transparent",strokeWidth:1,strokeDasharray:"4, 4"}},e.prototype.getAppendShape=function(t){var n=this.getAppendAttributes(t),o=n.d,i=n.strokeWidth,a=n.fill,s=n.strokeDasharray,d=n.stroke;return x(Oe,{d:o,fill:a,strokeWidth:i,stroke:d,strokeDasharray:s})},e.prototype.getAppendWidth=function(){for(var t=this,n=this.props,o=n.model,i=n.graphModel,a=o.pointsList,s=o.draggable,d=[],l=a.length,u=function(h){var g="lf-polyline-append",p={start:{x:a[h].x,y:a[h].y},end:{x:a[h+1].x,y:a[h+1].y},startIndex:h,endIndex:h+1,direction:F.HORIZONTAL,draggable:!0},v=x("g",{className:g,children:f.getAppendShape(p)}),y=i.editConfigModel,_=y.adjustEdge,M=y.adjustEdgeMiddle;if(_&&s){var S=p.startIndex,O=p.endIndex,w=M&&(S===0||O===l-1);p.draggable=!w,p.start.x===p.end.x?(p.draggable&&(g+="-ew-resize"),p.direction=F.VERTICAL):p.start.y===p.end.y&&(p.draggable&&(g+="-ns-resize"),p.direction=F.HORIZONTAL),v=x("g",{className:f.isDragging?"lf-dragging":"lf-drag-able",onMouseDown:function(A){return t.beforeDragStart(A,p)},children:x("g",{className:g,children:f.getAppendShape(p)})})}d.push(v)},f=this,c=0;c=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Ns=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Ds=function(r){Ps(e,r);function e(t){var n=r.call(this,t)||this;return n.ref=Gn(),n.__prevText={type:"",text:"",id:""},n.keyupHandler=function(o){var i=n.props.graphModel.textEditElement;o.key==="Enter"&&o.altKey&&(i==null||i.setElementState(B.DEFAULT))},n.inputHandler=function(o){var i=o.target.innerText,a=n.props.graphModel.textEditElement;a&&(n.__prevText={type:a.type,text:i.replace(/(\r\n)+$|(\n)+$/,""),id:a.id})},n.keydownHandler=function(o){o.stopPropagation()},n.state={style:{left:0,top:0}},n}return e.getDerivedStateFromProps=function(t){var n,o=t.textEditElement,i=t.graphModel,a=i.transformModel,s=i.theme,d=s.inputText,l;if(o){if(!(!((n=o.text)===null||n===void 0)&&n.value)&&o.BaseType===U.EDGE){var u=o.text,f=o.textPosition,c=f.x,h=f.y;u.x=c,u.y=h,o.setText(u)}var g={resize:"auto",whiteSpace:"normal",wordBreak:"break-all"};if(o.BaseType===U.EDGE){var p=s.edgeText,v=p.overflowMode,y=p.lineHeight,_=p.wrapPadding,M=p.textWidth;M&&v==="autoWrap"&&(l=Mt(Mt({},g),{width:M,minWidth:M,lineHeight:y,padding:_}))}else if(o.BaseType===U.NODE){var S=s.nodeText,v=S.overflowMode,y=S.lineHeight,_=S.wrapPadding,M=S.textWidth,O=o.width,w=o.modelType,A=o.textWidth,C=A||M||O;(w!==j.TEXT_NODE&&v==="autoWrap"||w===j.TEXT_NODE&&M)&&(l=Mt(Mt({},g),{width:C,minWidth:C,lineHeight:y,padding:_}))}var I=o.text,L=I.x,G=I.y,R=Ns(a.CanvasPointToHtmlPoint([L,G]),2),Y=R[0],H=R[1];return{style:Mt(Mt({left:Y,top:H},l),d)}}return null},e.prototype.componentDidUpdate=function(){var t=this.props.graphModel;if(this.ref.current&&(this.ref.current.focus(),this.placeCaretAtEnd(this.ref.current)),this.__prevText.id!==""){var n=this.__prevText,o=n.text,i=n.id;t.updateText(i,o),t.eventCenter.emit(T.TEXT_UPDATE,{data:Mt({},this.__prevText)}),this.__prevText.id="",this.__prevText.text="",this.__prevText.type=""}},e.prototype.placeCaretAtEnd=function(t){if(window.getSelection!==void 0&&document.createRange!==void 0){var n=document.createRange();n.selectNodeContents(t),n.collapse(!1);var o=window.getSelection();o==null||o.removeAllRanges(),o==null||o.addRange(n)}},e.prototype.render=function(){var t,n=this.props.graphModel.textEditElement,o=this.state.style;return n?x("div",{contentEditable:!0,className:"lf-text-input",style:o,ref:this.ref,onKeyUp:this.keyupHandler,onKeyDown:this.keydownHandler,onKeyPress:this.keydownHandler,onInput:this.inputHandler,children:(t=n.text)===null||t===void 0?void 0:t.value},n.id):null},e.toolName="text-edit-tool",e=Ts([at],e),e}(V),bs=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},r(e,t)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Cs=function(r,e,t,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,t):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(r,e,t,n);else for(var s=r.length-1;s>=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},hn=function(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var n=t.call(r),o,i=[],a;try{for(;(e===void 0||e-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},Ls=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n=0;s--)(a=r[s])&&(i=(o<3?a(i):o>3?a(e,t,i):a(e,t))||i);return o>3&&i&&Object.defineProperty(e,t,i),i},Rs=[Ds,js],Is=function(){function r(e){var t=this;this.toolMap=new Map,this.disabledToolMap=new Map,this.instance=e,W(Rs,function(i){t.isDisabled(i.toolName)||t.registerTool(i.toolName,i)});var n=e.graphModel,o=n.eventCenter;o.on("".concat(T.GRAPH_TRANSFORM,",").concat(T.NODE_CLICK,",").concat(T.BLANK_CLICK," "),function(){var i,a=n.textEditElement,s=n.editConfigModel,d=s.edgeTextEdit,l=s.nodeTextEdit;(d||l)&&a&&((i=n.textEditElement)===null||i===void 0||i.setElementState(B.DEFAULT))})}return r.prototype.isDisabled=function(e){var t;return((t=this.instance.options.disabledTools)===null||t===void 0?void 0:t.indexOf(e))!==-1},r.prototype.registerTool=function(e,t){this.toolMap.set(e,t)},r.prototype.disableTool=function(e){var t=this.toolMap.get(e);if(t)return this.disabledToolMap.set(e,t),this.toolMap.delete(e),!0;throw new Error("禁用失败,不存在名为 ${tool} 的工具")},r.prototype.enableTool=function(e){var t=this.disabledToolMap.get(e);if(t)return this.toolMap.set(e,t),this.disabledToolMap.delete(e),!0;throw new Error("不存在名为 ${tool} 的工具")},r.prototype.getTools=function(){return Array.from(this.toolMap.values())},r.prototype.getInstance=function(){return this.instance},yn([E],r.prototype,"toolMap",void 0),yn([m],r.prototype,"disableTool",null),yn([m],r.prototype,"enableTool",null),r}(),zn=function(){return zn=Object.assign||function(r){for(var e,t=1,n=arguments.length;tthis.maxSize&&this.undos.shift())},r.prototype.undoAble=function(){return this.undos.length>1},r.prototype.undo=function(){if(this.undoAble()){var e=this.undos.pop();this.redos.push(e);var t=this.undos.pop();return this.curData=b(t),t}},r.prototype.redoAble=function(){return this.redos.length>0},r.prototype.redo=function(){if(this.redoAble()){var e=this.redos.pop();return this.curData=b(e),e}},r.prototype.watch=function(e){var t=this;this.stopWatch&&this.stopWatch(),this.undos.push(e.modelToGraphData()),this.stopWatch=To(e,mo(function(){var n=e.modelToHistoryData();n&&t.add(zn({},n))},this.waitTime))},r}();var yt=null;function kr(r,e){return r.x+=e,r.y+=e,Ur(r.text)||(r.text.x+=e,r.text.y+=e),r}function zr(r,e){return r.startPoint&&(r.startPoint.x+=e,r.startPoint.y+=e),r.endPoint&&(r.endPoint.x+=e,r.endPoint.y+=e),r.pointsList&&r.pointsList.length>0&&r.pointsList.forEach(function(t){t.x+=e,t.y+=e}),Ur(r.text)||(r.text.x+=e,r.text.y+=e),r}var Wt=40,ke=40;function Xs(r,e){var t=r.keyboard,n=t.options.keyboard;t.on(["cmd + c","ctrl + c"],function(){if(ke=Wt,!(n!=null&&n.enabled)||e.textEditElement)return!0;var o=r.options.guards,i=e.getSelectElements(!1),a=o&&o.beforeClone?o.beforeClone(i):!0;return!a||i.nodes.length===0&&i.edges.length===0?(yt=null,!0):(yt=i,yt.nodes.forEach(function(s){return kr(s,Wt)}),yt.edges.forEach(function(s){return zr(s,Wt)}),!1)}),t.on(["cmd + v","ctrl + v"],function(){if(!(n!=null&&n.enabled)||e.textEditElement)return!0;if(yt&&(yt.nodes||yt.edges)){r.clearSelectElements();var o=r.addElements(yt,ke);if(!o)return!0;o.nodes.forEach(function(i){return r.selectElementById(i.id,!0)}),o.edges.forEach(function(i){return r.selectElementById(i.id,!0)}),yt.nodes.forEach(function(i){return kr(i,Wt)}),yt.edges.forEach(function(i){return zr(i,Wt)}),ke=ke+Wt}return!1}),t.on(["cmd + z","ctrl + z"],function(){return!(n!=null&&n.enabled)||e.textEditElement?!0:(r.undo(),!1)}),t.on(["cmd + y","ctrl + y"],function(){return!(n!=null&&n.enabled)||e.textEditElement?!0:(r.redo(),!1)}),t.on(["backspace"],function(){if(!(n!=null&&n.enabled)||e.textEditElement)return!0;var o=e.getSelectElements(!0);return r.clearSelectElements(),o.edges.forEach(function(i){return i.id&&r.deleteEdge(i.id)}),o.nodes.forEach(function(i){return i.id&&r.deleteNode(i.id)}),!1})}var Ys=function(){function r(e){e.keyboard||(e.keyboard={enabled:!1}),this.options=e;var t=e.lf;this.target=t.container,this.mousetrap=new Po(this.target),e.keyboard.enabled&&!t.options.isSilentMode&&this.enable(!0)}return r.prototype.initShortcuts=function(){var e=this,t,n=((t=this.options.keyboard)!==null&&t!==void 0?t:{}).shortcuts;if(n)if(xo(n))n.forEach(function(s){var d=s.keys,l=s.callback,u=s.action;return e.on(d,l,u)});else{var o=n.keys,i=n.callback,a=n.action;this.on(o,i,a)}},r.prototype.on=function(e,t,n){this.mousetrap.bind(this.getKeys(e),t,n)},Object.defineProperty(r.prototype,"disabled",{get:function(){var e,t;return((t=(e=this.options)===null||e===void 0?void 0:e.keyboard)===null||t===void 0?void 0:t.enabled)!==!0},enumerable:!1,configurable:!0}),r.prototype.off=function(e,t){this.mousetrap.unbind(this.getKeys(e),t)},r.prototype.enable=function(e){(this.disabled||e)&&(this.options.keyboard&&(this.options.keyboard.enabled=!0),this.target instanceof HTMLElement&&(this.target.setAttribute("tabindex","-1"),this.target.style.outline="none"))},r.prototype.disable=function(){this.disabled||(this.options.keyboard&&(this.options.keyboard.enabled=!1),this.target instanceof HTMLElement&&this.target.removeAttribute("tabindex"))},r.prototype.getKeys=function(e){var t=this;return(Array.isArray(e)?e:[e]).map(function(n){return t.formatKey(n)})},r.prototype.formatKey=function(e){return e.toLowerCase().replace(/\s/g,"").replace("delete","del").replace("cmd","command")},r}(),At=function(){return At=Object.assign||function(r){for(var e,t=1,n=arguments.length;t0)&&!(o=n.next()).done;)i.push(o.value)}catch(s){a={error:s}}finally{try{o&&!o.done&&(t=n.return)&&t.call(n)}finally{if(a)throw a.error}}return i},gn=function(r,e,t){if(t||arguments.length===2)for(var n=0,o=e.length,i;n0)return;if(V){let t=V;for(V=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;W;){let t=W;for(W=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=s}}if(e)throw e}function me(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function xe(e){let t,s=e.depsTail,i=s;for(;i;){const n=i.prevDep;i.version===-1?(i===s&&(s=n),ge(i),et(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=n}e.deps=t,e.depsTail=s}function ce(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ye(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ye(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===z))return;e.globalVersion=z;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!ce(e)){e.flags&=-3;return}const s=h,i=b;h=e,b=!0;try{me(e);const n=e.fn(e._value);(t.version===0||I(n,e._value))&&(e._value=n,t.version++)}catch(n){throw t.version++,n}finally{h=s,b=i,xe(e),e.flags&=-3}}function ge(e,t=!1){const{dep:s,prevSub:i,nextSub:n}=e;if(i&&(i.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=i,e.nextSub=void 0),s.subs===e&&(s.subs=i,!i&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)ge(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function et(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let b=!0;const Te=[];function De(){Te.push(b),b=!1}function Ie(){const e=Te.pop();b=e===void 0?!0:e}function we(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=h;h=void 0;try{t()}finally{h=s}}}let z=0;class tt{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class te{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!h||!b||h===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==h)s=this.activeLink=new tt(h,this),h.deps?(s.prevDep=h.depsTail,h.depsTail.nextDep=s,h.depsTail=s):h.deps=h.depsTail=s,Ee(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const i=s.nextDep;i.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=i),s.prevDep=h.depsTail,s.nextDep=void 0,h.depsTail.nextDep=s,h.depsTail=s,h.deps===s&&(h.deps=i)}return s}trigger(t){this.version++,z++,this.notify(t)}notify(t){pe();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{_e()}}}function Ee(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)Ee(i)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const k=new WeakMap,P=Symbol(""),ue=Symbol(""),B=Symbol("");function w(e,t,s){if(b&&h){let i=k.get(e);i||k.set(e,i=new Map);let n=i.get(s);n||(i.set(s,n=new te),n.map=i,n.key=s),n.track()}}function T(e,t,s,i,n,r){const a=k.get(e);if(!a){z++;return}const f=o=>{o&&o.trigger()};if(pe(),t==="clear")a.forEach(f);else{const o=y(e),p=o&&de(s);if(o&&s==="length"){const c=Number(i);a.forEach((d,_)=>{(_==="length"||_===B||!F(_)&&_>=c)&&f(d)})}else switch((s!==void 0||a.has(void 0))&&f(a.get(s)),p&&f(a.get(B)),t){case"add":o?p&&f(a.get("length")):(f(a.get(P)),C(e)&&f(a.get(ue)));break;case"delete":o||(f(a.get(P)),C(e)&&f(a.get(ue)));break;case"set":C(e)&&f(a.get(P));break}}_e()}function st(e,t){const s=k.get(e);return s&&s.get(t)}function L(e){const t=l(e);return t===e?t:(w(t,"iterate",B),S(e)?t:t.map(v))}function ve(e){return w(e=l(e),"iterate",B),e}const nt={__proto__:null,[Symbol.iterator](){return fe(this,Symbol.iterator,v)},concat(...e){return L(this).concat(...e.map(t=>y(t)?L(t):t))},entries(){return fe(this,"entries",e=>(e[1]=v(e[1]),e))},every(e,t){return x(this,"every",e,t,void 0,arguments)},filter(e,t){return x(this,"filter",e,t,s=>s.map(v),arguments)},find(e,t){return x(this,"find",e,t,v,arguments)},findIndex(e,t){return x(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return x(this,"findLast",e,t,v,arguments)},findLastIndex(e,t){return x(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return x(this,"forEach",e,t,void 0,arguments)},includes(...e){return oe(this,"includes",e)},indexOf(...e){return oe(this,"indexOf",e)},join(e){return L(this).join(e)},lastIndexOf(...e){return oe(this,"lastIndexOf",e)},map(e,t){return x(this,"map",e,t,void 0,arguments)},pop(){return H(this,"pop")},push(...e){return H(this,"push",e)},reduce(e,...t){return Re(this,"reduce",e,t)},reduceRight(e,...t){return Re(this,"reduceRight",e,t)},shift(){return H(this,"shift")},some(e,t){return x(this,"some",e,t,void 0,arguments)},splice(...e){return H(this,"splice",e)},toReversed(){return L(this).toReversed()},toSorted(e){return L(this).toSorted(e)},toSpliced(...e){return L(this).toSpliced(...e)},unshift(...e){return H(this,"unshift",e)},values(){return fe(this,"values",v)}};function fe(e,t,s){const i=ve(e),n=i[t]();return i!==e&&!S(e)&&(n._next=n.next,n.next=()=>{const r=n._next();return r.value&&(r.value=s(r.value)),r}),n}const it=Array.prototype;function x(e,t,s,i,n,r){const a=ve(e),f=a!==e&&!S(e),o=a[t];if(o!==it[t]){const d=o.apply(e,r);return f?v(d):d}let p=s;a!==e&&(f?p=function(d,_){return s.call(this,v(d),_,e)}:s.length>2&&(p=function(d,_){return s.call(this,d,_,e)}));const c=o.call(a,p,i);return f&&n?n(c):c}function Re(e,t,s,i){const n=ve(e);let r=s;return n!==e&&(S(e)?s.length>3&&(r=function(a,f,o){return s.call(this,a,f,o,e)}):r=function(a,f,o){return s.call(this,a,v(f),o,e)}),n[t](r,...i)}function oe(e,t,s){const i=l(e);w(i,"iterate",B);const n=i[t](...s);return(n===-1||n===!1)&&Rt(s[0])?(s[0]=l(s[0]),i[t](...s)):n}function H(e,t,s=[]){De(),pe();const i=l(e)[t].apply(e,s);return _e(),Ie(),i}const rt=Qe("__proto__,__v_isRef,__isVue"),Me=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(F));function at(e){F(e)||(e=String(e));const t=l(this);return w(t,"has",e),t.hasOwnProperty(e)}class Pe{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,i){if(s==="__v_skip")return t.__v_skip;const n=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!n;if(s==="__v_isReadonly")return n;if(s==="__v_isShallow")return r;if(s==="__v_raw")return i===(n?r?He:Ke:r?je:Le).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const a=y(t);if(!n){let o;if(a&&(o=nt[s]))return o;if(s==="hasOwnProperty")return at}const f=Reflect.get(t,s,R(t)?t:i);return(F(s)?Me.has(s):rt(s))||(n||w(t,"get",s),r)?f:R(f)?a&&de(s)?f:f.value:j(f)?n?We(f):Ce(f):f}}class Oe extends Pe{constructor(t=!1){super(!1,t)}set(t,s,i,n){let r=t[s];if(!this._isShallow){const o=O(r);if(!S(i)&&!O(i)&&(r=l(r),i=l(i)),!y(t)&&R(r)&&!R(i))return o?!1:(r.value=i,!0)}const a=y(t)&&de(s)?Number(s)e,Q=e=>Reflect.getPrototypeOf(e);function lt(e,t,s){return function(...i){const n=this.__v_raw,r=l(n),a=C(r),f=e==="entries"||e===Symbol.iterator&&a,o=e==="keys"&&a,p=n[e](...i),c=s?le:t?he:v;return!t&&w(r,"iterate",o?ue:P),{next(){const{value:d,done:_}=p.next();return _?{value:d,done:_}:{value:f?[c(d[0]),c(d[1])]:c(d),done:_}},[Symbol.iterator](){return this}}}}function X(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function ht(e,t){const s={get(n){const r=this.__v_raw,a=l(r),f=l(n);e||(I(n,f)&&w(a,"get",n),w(a,"get",f));const{has:o}=Q(a),p=t?le:e?he:v;if(o.call(a,n))return p(r.get(n));if(o.call(a,f))return p(r.get(f));r!==a&&r.get(n)},get size(){const n=this.__v_raw;return!e&&w(l(n),"iterate",P),Reflect.get(n,"size",n)},has(n){const r=this.__v_raw,a=l(r),f=l(n);return e||(I(n,f)&&w(a,"has",n),w(a,"has",f)),n===f?r.has(n):r.has(n)||r.has(f)},forEach(n,r){const a=this,f=a.__v_raw,o=l(f),p=t?le:e?he:v;return!e&&w(o,"iterate",P),f.forEach((c,d)=>n.call(r,p(c),p(d),a))}};return ze(s,e?{add:X("add"),set:X("set"),delete:X("delete"),clear:X("clear")}:{add(n){!t&&!S(n)&&!O(n)&&(n=l(n));const r=l(this);return Q(r).has.call(r,n)||(r.add(n),T(r,"add",n,n)),this},set(n,r){!t&&!S(r)&&!O(r)&&(r=l(r));const a=l(this),{has:f,get:o}=Q(a);let p=f.call(a,n);p||(n=l(n),p=f.call(a,n));const c=o.call(a,n);return a.set(n,r),p?I(r,c)&&T(a,"set",n,r):T(a,"add",n,r),this},delete(n){const r=l(this),{has:a,get:f}=Q(r);let o=a.call(r,n);o||(n=l(n),o=a.call(r,n)),f&&f.call(r,n);const p=r.delete(n);return o&&T(r,"delete",n,void 0),p},clear(){const n=l(this),r=n.size!==0,a=n.clear();return r&&T(n,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(n=>{s[n]=lt(n,e,t)}),s}function se(e,t){const s=ht(e,t);return(i,n,r)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?i:Reflect.get($(s,n)&&n in i?s:i,n,r)}const dt={get:se(!1,!1)},pt={get:se(!1,!0)},_t={get:se(!0,!1)},gt={get:se(!0,!0)},Le=new WeakMap,je=new WeakMap,Ke=new WeakMap,He=new WeakMap;function vt(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function wt(e){return e.__v_skip||!Object.isExtensible(e)?0:vt(Be(e))}function Ce(e){return O(e)?e:ne(e,!1,ft,dt,Le)}function Ot(e){return ne(e,!1,ct,pt,je)}function We(e){return ne(e,!0,ot,_t,Ke)}function At(e){return ne(e,!0,ut,gt,He)}function ne(e,t,s,i,n){if(!j(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=n.get(e);if(r)return r;const a=wt(e);if(a===0)return e;const f=new Proxy(e,a===2?i:s);return n.set(e,f),f}function N(e){return O(e)?N(e.__v_raw):!!(e&&e.__v_isReactive)}function O(e){return!!(e&&e.__v_isReadonly)}function S(e){return!!(e&&e.__v_isShallow)}function Rt(e){return e?!!e.__v_raw:!1}function l(e){const t=e&&e.__v_raw;return t?l(t):e}function Lt(e){return!$(e,"__v_skip")&&Object.isExtensible(e)&&Ge(e,"__v_skip",!0),e}const v=e=>j(e)?Ce(e):e,he=e=>j(e)?We(e):e;function R(e){return e?e.__v_isRef===!0:!1}function bt(e){return Ve(e,!1)}function jt(e){return Ve(e,!0)}function Ve(e,t){return R(e)?e:new St(e,t)}class St{constructor(t,s){this.dep=new te,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:l(t),this._value=s?t:v(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,i=this.__v_isShallow||S(t)||O(t);t=i?t:l(t),I(t,s)&&(this._rawValue=t,this._value=i?t:v(t),this.dep.trigger())}}function Ne(e){return R(e)?e.value:e}function Kt(e){return Y(e)?e():Ne(e)}const mt={get:(e,t,s)=>t==="__v_raw"?e:Ne(Reflect.get(e,t,s)),set:(e,t,s,i)=>{const n=e[t];return R(n)&&!R(s)?(n.value=s,!0):Reflect.set(e,t,s,i)}};function Ht(e){return N(e)?e:new Proxy(e,mt)}class xt{constructor(t){this.__v_isRef=!0,this._value=void 0;const s=this.dep=new te,{get:i,set:n}=t(s.track.bind(s),s.trigger.bind(s));this._get=i,this._set=n}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Ct(e){return new xt(e)}function Wt(e){const t=y(e)?new Array(e.length):{};for(const s in e)t[s]=Ye(e,s);return t}class yt{constructor(t,s,i){this._object=t,this._key=s,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return st(l(this._object),this._key)}}class Tt{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Vt(e,t,s){return R(e)?e:Y(e)?new Tt(e):j(e)&&arguments.length>1?Ye(e,t,s):bt(e)}function Ye(e,t,s){const i=e[t];return R(i)?i:new yt(e,t,s)}class Dt{constructor(t,s,i){this.fn=t,this.setter=s,this._value=void 0,this.dep=new te(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=z-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&h!==this)return Se(this,!0),!0}get value(){const t=this.dep.track();return ye(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Nt(e,t,s=!1){let i,n;return Y(e)?i=e:(i=e.get,n=e.set),new Dt(i,n,s)}const Z={},ee=new WeakMap;let M;function It(e,t=!1,s=M){if(s){let i=ee.get(s);i||ee.set(s,i=[]),i.push(e)}}function Yt(e,t,s=Fe){const{immediate:i,deep:n,once:r,scheduler:a,augmentJob:f,call:o}=s,p=u=>n?u:S(u)||n===!1||n===0?D(u,1):D(u);let c,d,_,G,J=!1,U=!1;if(R(e)?(d=()=>e.value,J=S(e)):N(e)?(d=()=>p(e),J=!0):y(e)?(U=!0,J=e.some(u=>N(u)||S(u)),d=()=>e.map(u=>{if(R(u))return u.value;if(N(u))return p(u);if(Y(u))return o?o(u,2):u()})):Y(e)?t?d=o?()=>o(e,2):e:d=()=>{if(_){De();try{_()}finally{Ie()}}const u=M;M=c;try{return o?o(e,3,[G]):e(G)}finally{M=u}}:d=qe,t&&n){const u=d,m=n===!0?1/0:n;d=()=>D(u(),m)}const ie=$e(),A=()=>{c.stop(),ie&&ie.active&&Xe(ie.effects,c)};if(r&&t){const u=t;t=(...m)=>{u(...m),A()}}let E=U?new Array(e.length).fill(Z):Z;const K=u=>{if(!(!(c.flags&1)||!c.dirty&&!u))if(t){const m=c.run();if(n||J||(U?m.some((re,q)=>I(re,E[q])):I(m,E))){_&&_();const re=M;M=c;try{const q=[m,E===Z?void 0:U&&E[0]===Z?[]:E,G];o?o(t,3,q):t(...q),E=m}finally{M=re}}}else c.run()};return f&&f(K),c=new ke(d),c.scheduler=a?()=>a(K,!1):K,G=u=>It(u,!1,c),_=c.onStop=()=>{const u=ee.get(c);if(u){if(o)o(u,4);else for(const m of u)m();ee.delete(c)}},t?i?K(!0):E=c.run():a?a(K.bind(null,!0),!0):c.run(),A.pause=c.pause.bind(c),A.resume=c.resume.bind(c),A.stop=A,A}function D(e,t=1/0,s){if(t<=0||!j(e)||e.__v_skip||(s=s||new Set,s.has(e)))return e;if(s.add(e),t--,R(e))D(e.value,t,s);else if(y(e))for(let i=0;i{D(i,t,s)});else if(Ue(e)){for(const i in e)D(e[i],t,s);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&D(e[i],t,s)}return e}export{N as A,Ze as E,ke as R,R as a,De as b,Nt as c,l as d,Ce as e,w as f,Ot as g,T as h,Rt as i,At as j,bt as k,Kt as l,Lt as m,We as n,Vt as o,Ht as p,Ct as q,Ie as r,jt as s,D as t,$e as u,Pt as v,Yt as w,Wt as x,Ne as y,Mt as z};
diff --git a/js/@vue_reactivity@3.5.13-CVvlldVq.js.gz b/js/@vue_reactivity@3.5.13-CVvlldVq.js.gz
new file mode 100644
index 00000000..ed305846
Binary files /dev/null and b/js/@vue_reactivity@3.5.13-CVvlldVq.js.gz differ
diff --git a/js/@vue_reactivity@3.5.13-CjJL8SnF.js b/js/@vue_reactivity@3.5.13-CjJL8SnF.js
deleted file mode 100644
index ee9cdf2a..00000000
--- a/js/@vue_reactivity@3.5.13-CjJL8SnF.js
+++ /dev/null
@@ -1,5 +0,0 @@
-import{i as B,a as j,h as I,e as Ye,t as ze,b as y,c as Z,E as Be,d as de,f as $,g as Fe,j as Ge,k as C,l as Je,N as Ue,m as qe,r as Qe}from"./@vue_shared@3.5.13-DbMIZLZJ.js";/**
-* @vue/reactivity v3.5.13
-* (c) 2018-present Yuxi (Evan) You and Vue contributors
-* @license MIT
-**/let g;class Xe{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=g,!t&&g&&(this.index=(g.scopes||(g.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,s;if(this.scopes)for(t=0,s=this.scopes.length;t0)return;if(V){let t=V;for(V=void 0;t;){const s=t.next;t.next=void 0,t.flags&=-9,t=s}}let e;for(;W;){let t=W;for(W=void 0;t;){const s=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(i){e||(e=i)}t=s}}if(e)throw e}function me(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function xe(e){let t,s=e.depsTail,i=s;for(;i;){const n=i.prevDep;i.version===-1?(i===s&&(s=n),ge(i),ke(i)):t=i,i.dep.activeLink=i.prevActiveLink,i.prevActiveLink=void 0,i=n}e.deps=t,e.depsTail=s}function ce(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ye(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ye(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Y))return;e.globalVersion=Y;const t=e.dep;if(e.flags|=2,t.version>0&&!e.isSSR&&e.deps&&!ce(e)){e.flags&=-3;return}const s=h,i=b;h=e,b=!0;try{me(e);const n=e.fn(e._value);(t.version===0||I(n,e._value))&&(e._value=n,t.version++)}catch(n){throw t.version++,n}finally{h=s,b=i,xe(e),e.flags&=-3}}function ge(e,t=!1){const{dep:s,prevSub:i,nextSub:n}=e;if(i&&(i.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=i,e.nextSub=void 0),s.subs===e&&(s.subs=i,!i&&s.computed)){s.computed.flags&=-5;for(let r=s.computed.deps;r;r=r.nextDep)ge(r,!0)}!t&&!--s.sc&&s.map&&s.map.delete(s.key)}function ke(e){const{prevDep:t,nextDep:s}=e;t&&(t.nextDep=s,e.prevDep=void 0),s&&(s.prevDep=t,e.nextDep=void 0)}let b=!0;const Te=[];function De(){Te.push(b),b=!1}function Ie(){const e=Te.pop();b=e===void 0?!0:e}function we(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const s=h;h=void 0;try{t()}finally{h=s}}}let Y=0;class et{constructor(t,s){this.sub=t,this.dep=s,this.version=s.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class te{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0}track(t){if(!h||!b||h===this.computed)return;let s=this.activeLink;if(s===void 0||s.sub!==h)s=this.activeLink=new et(h,this),h.deps?(s.prevDep=h.depsTail,h.depsTail.nextDep=s,h.depsTail=s):h.deps=h.depsTail=s,Ee(s);else if(s.version===-1&&(s.version=this.version,s.nextDep)){const i=s.nextDep;i.prevDep=s.prevDep,s.prevDep&&(s.prevDep.nextDep=i),s.prevDep=h.depsTail,s.nextDep=void 0,h.depsTail.nextDep=s,h.depsTail=s,h.deps===s&&(h.deps=i)}return s}trigger(t){this.version++,Y++,this.notify(t)}notify(t){pe();try{for(let s=this.subs;s;s=s.prevSub)s.sub.notify()&&s.sub.dep.notify()}finally{_e()}}}function Ee(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let i=t.deps;i;i=i.nextDep)Ee(i)}const s=e.dep.subs;s!==e&&(e.prevSub=s,s&&(s.nextSub=e)),e.dep.subs=e}}const k=new WeakMap,P=Symbol(""),ue=Symbol(""),z=Symbol("");function w(e,t,s){if(b&&h){let i=k.get(e);i||k.set(e,i=new Map);let n=i.get(s);n||(i.set(s,n=new te),n.map=i,n.key=s),n.track()}}function T(e,t,s,i,n,r){const f=k.get(e);if(!f){Y++;return}const a=o=>{o&&o.trigger()};if(pe(),t==="clear")f.forEach(a);else{const o=y(e),p=o&&de(s);if(o&&s==="length"){const c=Number(i);f.forEach((d,_)=>{(_==="length"||_===z||!B(_)&&_>=c)&&a(d)})}else switch((s!==void 0||f.has(void 0))&&a(f.get(s)),p&&a(f.get(z)),t){case"add":o?p&&a(f.get("length")):(a(f.get(P)),C(e)&&a(f.get(ue)));break;case"delete":o||(a(f.get(P)),C(e)&&a(f.get(ue)));break;case"set":C(e)&&a(f.get(P));break}}_e()}function tt(e,t){const s=k.get(e);return s&&s.get(t)}function L(e){const t=l(e);return t===e?t:(w(t,"iterate",z),S(e)?t:t.map(v))}function ve(e){return w(e=l(e),"iterate",z),e}const st={__proto__:null,[Symbol.iterator](){return ae(this,Symbol.iterator,v)},concat(...e){return L(this).concat(...e.map(t=>y(t)?L(t):t))},entries(){return ae(this,"entries",e=>(e[1]=v(e[1]),e))},every(e,t){return x(this,"every",e,t,void 0,arguments)},filter(e,t){return x(this,"filter",e,t,s=>s.map(v),arguments)},find(e,t){return x(this,"find",e,t,v,arguments)},findIndex(e,t){return x(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return x(this,"findLast",e,t,v,arguments)},findLastIndex(e,t){return x(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return x(this,"forEach",e,t,void 0,arguments)},includes(...e){return oe(this,"includes",e)},indexOf(...e){return oe(this,"indexOf",e)},join(e){return L(this).join(e)},lastIndexOf(...e){return oe(this,"lastIndexOf",e)},map(e,t){return x(this,"map",e,t,void 0,arguments)},pop(){return H(this,"pop")},push(...e){return H(this,"push",e)},reduce(e,...t){return Re(this,"reduce",e,t)},reduceRight(e,...t){return Re(this,"reduceRight",e,t)},shift(){return H(this,"shift")},some(e,t){return x(this,"some",e,t,void 0,arguments)},splice(...e){return H(this,"splice",e)},toReversed(){return L(this).toReversed()},toSorted(e){return L(this).toSorted(e)},toSpliced(...e){return L(this).toSpliced(...e)},unshift(...e){return H(this,"unshift",e)},values(){return ae(this,"values",v)}};function ae(e,t,s){const i=ve(e),n=i[t]();return i!==e&&!S(e)&&(n._next=n.next,n.next=()=>{const r=n._next();return r.value&&(r.value=s(r.value)),r}),n}const nt=Array.prototype;function x(e,t,s,i,n,r){const f=ve(e),a=f!==e&&!S(e),o=f[t];if(o!==nt[t]){const d=o.apply(e,r);return a?v(d):d}let p=s;f!==e&&(a?p=function(d,_){return s.call(this,v(d),_,e)}:s.length>2&&(p=function(d,_){return s.call(this,d,_,e)}));const c=o.call(f,p,i);return a&&n?n(c):c}function Re(e,t,s,i){const n=ve(e);let r=s;return n!==e&&(S(e)?s.length>3&&(r=function(f,a,o){return s.call(this,f,a,o,e)}):r=function(f,a,o){return s.call(this,f,v(a),o,e)}),n[t](r,...i)}function oe(e,t,s){const i=l(e);w(i,"iterate",z);const n=i[t](...s);return(n===-1||n===!1)&&wt(s[0])?(s[0]=l(s[0]),i[t](...s)):n}function H(e,t,s=[]){De(),pe();const i=l(e)[t].apply(e,s);return _e(),Ie(),i}const it=qe("__proto__,__v_isRef,__isVue"),Me=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(B));function rt(e){B(e)||(e=String(e));const t=l(this);return w(t,"has",e),t.hasOwnProperty(e)}class Pe{constructor(t=!1,s=!1){this._isReadonly=t,this._isShallow=s}get(t,s,i){if(s==="__v_skip")return t.__v_skip;const n=this._isReadonly,r=this._isShallow;if(s==="__v_isReactive")return!n;if(s==="__v_isReadonly")return n;if(s==="__v_isShallow")return r;if(s==="__v_raw")return i===(n?r?He:Ke:r?je:Le).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(i)?t:void 0;const f=y(t);if(!n){let o;if(f&&(o=st[s]))return o;if(s==="hasOwnProperty")return rt}const a=Reflect.get(t,s,R(t)?t:i);return(B(s)?Me.has(s):it(s))||(n||w(t,"get",s),r)?a:R(a)?f&&de(s)?a:a.value:j(a)?n?We(a):Ce(a):a}}class Oe extends Pe{constructor(t=!1){super(!1,t)}set(t,s,i,n){let r=t[s];if(!this._isShallow){const o=O(r);if(!S(i)&&!O(i)&&(r=l(r),i=l(i)),!y(t)&&R(r)&&!R(i))return o?!1:(r.value=i,!0)}const f=y(t)&&de(s)?Number(s)e,q=e=>Reflect.getPrototypeOf(e);function ut(e,t,s){return function(...i){const n=this.__v_raw,r=l(n),f=C(r),a=e==="entries"||e===Symbol.iterator&&f,o=e==="keys"&&f,p=n[e](...i),c=s?le:t?he:v;return!t&&w(r,"iterate",o?ue:P),{next(){const{value:d,done:_}=p.next();return _?{value:d,done:_}:{value:a?[c(d[0]),c(d[1])]:c(d),done:_}},[Symbol.iterator](){return this}}}}function Q(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function lt(e,t){const s={get(n){const r=this.__v_raw,f=l(r),a=l(n);e||(I(n,a)&&w(f,"get",n),w(f,"get",a));const{has:o}=q(f),p=t?le:e?he:v;if(o.call(f,n))return p(r.get(n));if(o.call(f,a))return p(r.get(a));r!==f&&r.get(n)},get size(){const n=this.__v_raw;return!e&&w(l(n),"iterate",P),Reflect.get(n,"size",n)},has(n){const r=this.__v_raw,f=l(r),a=l(n);return e||(I(n,a)&&w(f,"has",n),w(f,"has",a)),n===a?r.has(n):r.has(n)||r.has(a)},forEach(n,r){const f=this,a=f.__v_raw,o=l(a),p=t?le:e?he:v;return!e&&w(o,"iterate",P),a.forEach((c,d)=>n.call(r,p(c),p(d),f))}};return Ye(s,e?{add:Q("add"),set:Q("set"),delete:Q("delete"),clear:Q("clear")}:{add(n){!t&&!S(n)&&!O(n)&&(n=l(n));const r=l(this);return q(r).has.call(r,n)||(r.add(n),T(r,"add",n,n)),this},set(n,r){!t&&!S(r)&&!O(r)&&(r=l(r));const f=l(this),{has:a,get:o}=q(f);let p=a.call(f,n);p||(n=l(n),p=a.call(f,n));const c=o.call(f,n);return f.set(n,r),p?I(r,c)&&T(f,"set",n,r):T(f,"add",n,r),this},delete(n){const r=l(this),{has:f,get:a}=q(r);let o=f.call(r,n);o||(n=l(n),o=f.call(r,n)),a&&a.call(r,n);const p=r.delete(n);return o&&T(r,"delete",n,void 0),p},clear(){const n=l(this),r=n.size!==0,f=n.clear();return r&&T(n,"clear",void 0,void 0),f}}),["keys","values","entries",Symbol.iterator].forEach(n=>{s[n]=ut(n,e,t)}),s}function se(e,t){const s=lt(e,t);return(i,n,r)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?i:Reflect.get($(s,n)&&n in i?s:i,n,r)}const ht={get:se(!1,!1)},dt={get:se(!1,!0)},pt={get:se(!0,!1)},_t={get:se(!0,!0)},Le=new WeakMap,je=new WeakMap,Ke=new WeakMap,He=new WeakMap;function gt(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function vt(e){return e.__v_skip||!Object.isExtensible(e)?0:gt(ze(e))}function Ce(e){return O(e)?e:ne(e,!1,ft,ht,Le)}function Ot(e){return ne(e,!1,ot,dt,je)}function We(e){return ne(e,!0,at,pt,Ke)}function At(e){return ne(e,!0,ct,_t,He)}function ne(e,t,s,i,n){if(!j(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=n.get(e);if(r)return r;const f=vt(e);if(f===0)return e;const a=new Proxy(e,f===2?i:s);return n.set(e,a),a}function N(e){return O(e)?N(e.__v_raw):!!(e&&e.__v_isReactive)}function O(e){return!!(e&&e.__v_isReadonly)}function S(e){return!!(e&&e.__v_isShallow)}function wt(e){return e?!!e.__v_raw:!1}function l(e){const t=e&&e.__v_raw;return t?l(t):e}function Lt(e){return!$(e,"__v_skip")&&Object.isExtensible(e)&&Fe(e,"__v_skip",!0),e}const v=e=>j(e)?Ce(e):e,he=e=>j(e)?We(e):e;function R(e){return e?e.__v_isRef===!0:!1}function Rt(e){return Ve(e,!1)}function jt(e){return Ve(e,!0)}function Ve(e,t){return R(e)?e:new bt(e,t)}class bt{constructor(t,s){this.dep=new te,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=s?t:l(t),this._value=s?t:v(t),this.__v_isShallow=s}get value(){return this.dep.track(),this._value}set value(t){const s=this._rawValue,i=this.__v_isShallow||S(t)||O(t);t=i?t:l(t),I(t,s)&&(this._rawValue=t,this._value=i?t:v(t),this.dep.trigger())}}function St(e){return R(e)?e.value:e}const mt={get:(e,t,s)=>t==="__v_raw"?e:St(Reflect.get(e,t,s)),set:(e,t,s,i)=>{const n=e[t];return R(n)&&!R(s)?(n.value=s,!0):Reflect.set(e,t,s,i)}};function Kt(e){return N(e)?e:new Proxy(e,mt)}class xt{constructor(t){this.__v_isRef=!0,this._value=void 0;const s=this.dep=new te,{get:i,set:n}=t(s.track.bind(s),s.trigger.bind(s));this._get=i,this._set=n}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Ht(e){return new xt(e)}function Ct(e){const t=y(e)?new Array(e.length):{};for(const s in e)t[s]=Ne(e,s);return t}class yt{constructor(t,s,i){this._object=t,this._key=s,this._defaultValue=i,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return tt(l(this._object),this._key)}}class Tt{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Wt(e,t,s){return R(e)?e:Z(e)?new Tt(e):j(e)&&arguments.length>1?Ne(e,t,s):Rt(e)}function Ne(e,t,s){const i=e[t];return R(i)?i:new yt(e,t,s)}class Dt{constructor(t,s,i){this.fn=t,this.setter=s,this._value=void 0,this.dep=new te(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Y-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!s,this.isSSR=i}notify(){if(this.flags|=16,!(this.flags&8)&&h!==this)return Se(this,!0),!0}get value(){const t=this.dep.track();return ye(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Vt(e,t,s=!1){let i,n;return Z(e)?i=e:(i=e.get,n=e.set),new Dt(i,n,s)}const X={},ee=new WeakMap;let M;function It(e,t=!1,s=M){if(s){let i=ee.get(s);i||ee.set(s,i=[]),i.push(e)}}function Nt(e,t,s=Be){const{immediate:i,deep:n,once:r,scheduler:f,augmentJob:a,call:o}=s,p=u=>n?u:S(u)||n===!1||n===0?D(u,1):D(u);let c,d,_,F,G=!1,J=!1;if(R(e)?(d=()=>e.value,G=S(e)):N(e)?(d=()=>p(e),G=!0):y(e)?(J=!0,G=e.some(u=>N(u)||S(u)),d=()=>e.map(u=>{if(R(u))return u.value;if(N(u))return p(u);if(Z(u))return o?o(u,2):u()})):Z(e)?t?d=o?()=>o(e,2):e:d=()=>{if(_){De();try{_()}finally{Ie()}}const u=M;M=c;try{return o?o(e,3,[F]):e(F)}finally{M=u}}:d=Ue,t&&n){const u=d,m=n===!0?1/0:n;d=()=>D(u(),m)}const ie=Ze(),A=()=>{c.stop(),ie&&ie.active&&Qe(ie.effects,c)};if(r&&t){const u=t;t=(...m)=>{u(...m),A()}}let E=J?new Array(e.length).fill(X):X;const K=u=>{if(!(!(c.flags&1)||!c.dirty&&!u))if(t){const m=c.run();if(n||G||(J?m.some((re,U)=>I(re,E[U])):I(m,E))){_&&_();const re=M;M=c;try{const U=[m,E===X?void 0:J&&E[0]===X?[]:E,F];o?o(t,3,U):t(...U),E=m}finally{M=re}}}else c.run()};return a&&a(K),c=new $e(d),c.scheduler=f?()=>f(K,!1):K,F=u=>It(u,!1,c),_=c.onStop=()=>{const u=ee.get(c);if(u){if(o)o(u,4);else for(const m of u)m();ee.delete(c)}},t?i?K(!0):E=c.run():f?f(K.bind(null,!0),!0):c.run(),A.pause=c.pause.bind(c),A.resume=c.resume.bind(c),A.stop=A,A}function D(e,t=1/0,s){if(t<=0||!j(e)||e.__v_skip||(s=s||new Set,s.has(e)))return e;if(s.add(e),t--,R(e))D(e.value,t,s);else if(y(e))for(let i=0;i{D(i,t,s)});else if(Je(e)){for(const i in e)D(e[i],t,s);for(const i of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,i)&&D(e[i],t,s)}return e}export{Xe as E,$e as R,R as a,De as b,Vt as c,l as d,Ce as e,w as f,Ot as g,T as h,wt as i,At as j,Rt as k,We as l,Lt as m,Wt as n,Ht as o,Kt as p,Ze as q,Ie as r,jt as s,D as t,St as u,Pt as v,Nt as w,Ct as x,Mt as y,N as z};
diff --git a/js/@vue_reactivity@3.5.13-CjJL8SnF.js.gz b/js/@vue_reactivity@3.5.13-CjJL8SnF.js.gz
deleted file mode 100644
index 7b3bc33c..00000000
Binary files a/js/@vue_reactivity@3.5.13-CjJL8SnF.js.gz and /dev/null differ
diff --git a/js/@vue_runtime-core@3.5.13-BsGyjLIk.js.gz b/js/@vue_runtime-core@3.5.13-BsGyjLIk.js.gz
deleted file mode 100644
index 67505ee0..00000000
Binary files a/js/@vue_runtime-core@3.5.13-BsGyjLIk.js.gz and /dev/null differ
diff --git a/js/@vue_runtime-core@3.5.13-BsGyjLIk.js b/js/@vue_runtime-core@3.5.13-pPpmd6wL.js
similarity index 98%
rename from js/@vue_runtime-core@3.5.13-BsGyjLIk.js
rename to js/@vue_runtime-core@3.5.13-pPpmd6wL.js
index f476002e..a37531fb 100644
--- a/js/@vue_runtime-core@3.5.13-BsGyjLIk.js
+++ b/js/@vue_runtime-core@3.5.13-pPpmd6wL.js
@@ -1,5 +1,5 @@
-import{i as $s,s as Hn,w as Nn,a as Ct,c as $n,t as Ln,p as Ls,m as Vn,b as Ge,r as Je,d as Bt,e as Un,R as Dn,E as jn,f as Vs,g as Rn,h as Sn}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import{c as L,e as le,n as Pt,o as ye,p as Us,a as ge,b as S,q as Ds,s as ns,r as js,i as Kn,E as W,u as Rs,v as Ee,w as Ss,N as Ie,x as Re,y as et,z as Wn,A as qn,B as tt,f as Q,C as Gn,D as ft,g as Jn,F as Yn,G as Vt,H as Ks}from"./@vue_shared@3.5.13-DbMIZLZJ.js";/**
+import{i as $s,s as Hn,w as Nn,a as Ct,c as $n,t as Ln,p as Ls,m as Vn,b as Ge,r as Je,d as Bt,e as Un,R as Dn,E as jn,f as Vs,g as Rn,h as Sn}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import{b as L,e as le,n as Pt,o as ye,p as Us,a as ge,c as S,q as Ds,s as ns,r as js,i as Kn,E as W,u as Rs,v as Ee,w as Ss,N as Ie,x as Re,y as et,z as Wn,A as qn,B as tt,f as Q,C as Gn,D as ft,g as Jn,F as Yn,G as Vt,H as Ks}from"./@vue_shared@3.5.13-CQ6Z-5d1.js";/**
* @vue/runtime-core v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
-**/function ut(e,t,s,n){try{return n?e(...n):e()}catch(l){ct(l,t,s)}}function ve(e,t,s,n){if(L(e)){const l=ut(e,t,s,n);return l&&Rs(l)&&l.catch(r=>{ct(r,t,s)}),l}if(S(e)){const l=[];for(let r=0;r>>1,l=oe[n],r=rt(l);r=rt(s)?oe.push(e):oe.splice(Zn(t),0,e),e.flags|=1,qs()}}function qs(){Ft||(Ft=Ws.then(Js))}function Kt(e){S(e)?Se.push(...e):Pe&&e.id===-1?Pe.splice(je+1,0,e):e.flags&1||(Se.push(e),e.flags|=1),qs()}function xs(e,t,s=ke+1){for(;srt(s)-rt(n));if(Se.length=0,Pe){Pe.push(...t);return}for(Pe=t,je=0;jee.id==null?e.flags&2?-1:1/0:e.id;function Js(e){try{for(ke=0;ke{n._d&&ws(-1);const r=Tt(t);let i;try{i=e(...l)}finally{Tt(r),n._d&&ws(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function hr(e,t){if(ee===null)return e;const s=$t(ee),n=e.dirs||(e.dirs=[]);for(let l=0;le.__isTeleport,st=e=>e&&(e.disabled||e.disabled===""),Cs=e=>e&&(e.defer||e.defer===""),Fs=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ts=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Wt=(e,t)=>{const s=e&&e.to;return ye(s)?t?t(s):null:s},Zs={name:"Teleport",__isTeleport:!0,process(e,t,s,n,l,r,i,u,c,g){const{mc:a,pc:d,pbc:y,o:{insert:x,querySelector:A,createText:O,createComment:q}}=g,V=st(t.props);let{shapeFlag:v,children:P,dynamicChildren:B}=t;if(e==null){const E=t.el=O(""),M=t.anchor=O("");x(E,s,n),x(M,s,n);const D=(I,H)=>{v&16&&(l&&l.isCE&&(l.ce._teleportTarget=I),a(P,I,H,l,r,i,u,c))},U=()=>{const I=t.target=Wt(t.props,A),H=zs(I,t,O,x);I&&(i!=="svg"&&Fs(I)?i="svg":i!=="mathml"&&Ts(I)&&(i="mathml"),V||(D(I,H),yt(t,!1)))};V&&(D(s,M),yt(t,!0)),Cs(t.props)?z(()=>{U(),t.el.__isMounted=!0},r):U()}else{if(Cs(t.props)&&!e.el.__isMounted){z(()=>{Zs.process(e,t,s,n,l,r,i,u,c,g),delete e.el.__isMounted},r);return}t.el=e.el,t.targetStart=e.targetStart;const E=t.anchor=e.anchor,M=t.target=e.target,D=t.targetAnchor=e.targetAnchor,U=st(e.props),I=U?s:M,H=U?E:D;if(i==="svg"||Fs(M)?i="svg":(i==="mathml"||Ts(M))&&(i="mathml"),B?(y(e.dynamicChildren,B,I,l,r,i,u),as(e,t,!0)):c||d(e,t,I,H,l,r,i,u,!1),V)U?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):gt(t,s,E,g,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=Wt(t.props,A);j&>(t,j,null,g,0)}else U&>(t,M,D,g,1);yt(t,V)}},remove(e,t,s,{um:n,o:{remove:l}},r){const{shapeFlag:i,children:u,anchor:c,targetStart:g,targetAnchor:a,target:d,props:y}=e;if(d&&(l(g),l(a)),r&&l(c),i&16){const x=r||!st(y);for(let A=0;A{e.isMounted=!0}),is(()=>{e.isUnmounting=!0}),e}const pe=[Function,Array],sl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:pe,onEnter:pe,onAfterEnter:pe,onEnterCancelled:pe,onBeforeLeave:pe,onLeave:pe,onAfterLeave:pe,onLeaveCancelled:pe,onBeforeAppear:pe,onAppear:pe,onAfterAppear:pe,onAppearCancelled:pe},en=e=>{const t=e.subTree;return t.component?en(t.component):t},nl={name:"BaseTransition",props:sl,setup(e,{slots:t}){const s=ps(),n=tl();return()=>{const l=t.default&&nn(t.default(),!0);if(!l||!l.length)return;const r=tn(l),i=Bt(e),{mode:u}=i;if(n.isLeaving)return Ut(r);const c=ks(r);if(!c)return Ut(r);let g=qt(c,i,n,s,d=>g=d);c.type!==se&&We(c,g);let a=s.subTree&&ks(s.subTree);if(a&&a.type!==se&&!_e(c,a)&&en(s).type!==se){let d=qt(a,i,n,s);if(We(a,d),u==="out-in"&&c.type!==se)return n.isLeaving=!0,d.afterLeave=()=>{n.isLeaving=!1,s.job.flags&8||s.update(),delete d.afterLeave,a=void 0},Ut(r);u==="in-out"&&c.type!==se?d.delayLeave=(y,x,A)=>{const O=sn(n,a);O[String(a.key)]=a,y[Me]=()=>{x(),y[Me]=void 0,delete g.delayedLeave,a=void 0},g.delayedLeave=()=>{A(),delete g.delayedLeave,a=void 0}}:a=void 0}else a&&(a=void 0);return r}}};function tn(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==se){t=s;break}}return t}const pr=nl;function sn(e,t){const{leavingVNodes:s}=e;let n=s.get(t.type);return n||(n=Object.create(null),s.set(t.type,n)),n}function qt(e,t,s,n,l){const{appear:r,mode:i,persisted:u=!1,onBeforeEnter:c,onEnter:g,onAfterEnter:a,onEnterCancelled:d,onBeforeLeave:y,onLeave:x,onAfterLeave:A,onLeaveCancelled:O,onBeforeAppear:q,onAppear:V,onAfterAppear:v,onAppearCancelled:P}=t,B=String(e.key),E=sn(s,e),M=(I,H)=>{I&&ve(I,n,9,H)},D=(I,H)=>{const j=H[1];M(I,H),S(I)?I.every(X=>X.length<=1)&&j():I.length<=1&&j()},U={mode:i,persisted:u,beforeEnter(I){let H=c;if(!s.isMounted)if(r)H=q||c;else return;I[Me]&&I[Me](!0);const j=E[B];j&&_e(e,j)&&j.el[Me]&&j.el[Me](),M(H,[I])},enter(I){let H=g,j=a,X=d;if(!s.isMounted)if(r)H=V||g,j=v||a,X=P||d;else return;let te=!1;const re=I[pt]=Ae=>{te||(te=!0,Ae?M(X,[I]):M(j,[I]),U.delayedLeave&&U.delayedLeave(),I[pt]=void 0)};H?D(H,[I,re]):re()},leave(I,H){const j=String(e.key);if(I[pt]&&I[pt](!0),s.isUnmounting)return H();M(y,[I]);let X=!1;const te=I[Me]=re=>{X||(X=!0,H(),re?M(O,[I]):M(A,[I]),I[Me]=void 0,E[j]===e&&delete E[j])};E[j]=e,x?D(x,[I,te]):te()},clone(I){const H=qt(I,t,s,n,l);return l&&l(H),H}};return U}function Ut(e){if(Mt(e))return e=Oe(e),e.children=null,e}function ks(e){if(!Mt(e))return Xs(e.type)&&e.children?tn(e.children):e;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&L(s.default))return s.default()}}function We(e,t){e.shapeFlag&6&&e.component?(e.transition=t,We(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function nn(e,t=!1,s){let n=[],l=0;for(let r=0;r1)for(let r=0;rs.value,set:r=>s.value=r})}return s}function kt(e,t,s,n,l=!1){if(S(e)){e.forEach((A,O)=>kt(A,t&&(S(t)?t[O]:t),s,n,l));return}if(Ve(n)&&!l){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&kt(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?$t(n.component):n.el,i=l?null:r,{i:u,r:c}=e,g=t&&t.r,a=u.refs===W?u.refs={}:u.refs,d=u.setupState,y=Bt(d),x=d===W?()=>!1:A=>Q(y,A);if(g!=null&&g!==c&&(ye(g)?(a[g]=null,x(g)&&(d[g]=null)):Ct(g)&&(g.value=null)),L(c))ut(c,u,12,[i,a]);else{const A=ye(c),O=Ct(c);if(A||O){const q=()=>{if(e.f){const V=A?x(c)?d[c]:a[c]:c.value;l?S(V)&&js(V,r):S(V)?V.includes(r)||V.push(r):A?(a[c]=[r],x(c)&&(d[c]=a[c])):(c.value=[r],e.k&&(a[e.k]=c.value))}else A?(a[c]=i,x(c)&&(d[c]=i)):O&&(c.value=i,e.k&&(a[e.k]=i))};i?(q.id=-1,z(q,s)):q()}}}Pt().requestIdleCallback;Pt().cancelIdleCallback;const Ve=e=>!!e.type.__asyncLoader,Mt=e=>e.type.__isKeepAlive,ll={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const s=ps(),n=s.ctx;if(!n.renderer)return()=>{const v=t.default&&t.default();return v&&v.length===1?v[0]:v};const l=new Map,r=new Set;let i=null;const u=s.suspense,{renderer:{p:c,m:g,um:a,o:{createElement:d}}}=n,y=d("div");n.activate=(v,P,B,E,M)=>{const D=v.component;g(v,P,B,0,u),c(D.vnode,v,P,B,D,u,E,v.slotScopeIds,M),z(()=>{D.isDeactivated=!1,D.a&&et(D.a);const U=v.props&&v.props.onVnodeMounted;U&&me(U,D.parent,v)},u)},n.deactivate=v=>{const P=v.component;vt(P.m),vt(P.a),g(v,y,null,1,u),z(()=>{P.da&&et(P.da);const B=v.props&&v.props.onVnodeUnmounted;B&&me(B,P.parent,v),P.isDeactivated=!0},u)};function x(v){Dt(v),a(v,s,u,!0)}function A(v){l.forEach((P,B)=>{const E=ss(P.type);E&&!v(E)&&O(B)})}function O(v){const P=l.get(v);P&&(!i||!_e(P,i))?x(P):i&&Dt(i),l.delete(v),r.delete(v)}_t(()=>[e.include,e.exclude],([v,P])=>{v&&A(B=>Ze(v,B)),P&&A(B=>!Ze(P,B))},{flush:"post",deep:!0});let q=null;const V=()=>{q!=null&&(At(s.subTree.type)?z(()=>{l.set(q,mt(s.subTree))},s.subTree.suspense):l.set(q,mt(s.subTree)))};return rs(V),on(V),is(()=>{l.forEach(v=>{const{subTree:P,suspense:B}=s,E=mt(P);if(v.type===E.type&&v.key===E.key){Dt(E);const M=E.component.da;M&&z(M,B);return}x(v)})}),()=>{if(q=null,!t.default)return i=null;const v=t.default(),P=v[0];if(v.length>1)return i=null,v;if(!De(P)||!(P.shapeFlag&4)&&!(P.shapeFlag&128))return i=null,P;let B=mt(P);if(B.type===se)return i=null,B;const E=B.type,M=ss(Ve(B)?B.type.__asyncResolved||{}:E),{include:D,exclude:U,max:I}=e;if(D&&(!M||!Ze(D,M))||U&&M&&Ze(U,M))return B.shapeFlag&=-257,i=B,P;const H=B.key==null?E:B.key,j=l.get(H);return B.el&&(B=Oe(B),P.shapeFlag&128&&(P.ssContent=B)),q=H,j?(B.el=j.el,B.component=j.component,B.transition&&We(B,B.transition),B.shapeFlag|=512,r.delete(H),r.add(H)):(r.add(H),I&&r.size>parseInt(I,10)&&O(r.values().next().value)),B.shapeFlag|=256,i=B,At(P.type)?P:B}}},br=ll;function Ze(e,t){return S(e)?e.some(s=>Ze(s,t)):ye(e)?e.split(",").includes(t):Wn(e)?(e.lastIndex=0,e.test(t)):!1}function rl(e,t){rn(e,"a",t)}function il(e,t){rn(e,"da",t)}function rn(e,t,s=ne){const n=e.__wdc||(e.__wdc=()=>{let l=s;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(wt(t,n,s),s){let l=s.parent;for(;l&&l.parent;)Mt(l.parent.vnode)&&ol(n,t,s,l),l=l.parent}}function ol(e,t,s,n){const l=wt(t,e,n,!0);fn(()=>{js(n[t],l)},s)}function Dt(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function mt(e){return e.shapeFlag&128?e.ssContent:e}function wt(e,t,s=ne,n=!1){if(s){const l=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{Ge();const u=at(s),c=ve(t,s,e,i);return u(),Je(),c});return n?l.unshift(r):l.push(r),r}}const Be=e=>(t,s=ne)=>{(!ot||e==="sp")&&wt(e,(...n)=>t(...n),s)},fl=Be("bm"),rs=Be("m"),ul=Be("bu"),on=Be("u"),is=Be("bum"),fn=Be("um"),cl=Be("sp"),al=Be("rtg"),dl=Be("rtc");function hl(e,t=ne){wt("ec",e,t)}const os="components",gl="directives";function _r(e,t){return fs(os,e,!0,t)||e}const un=Symbol.for("v-ndc");function xr(e){return ye(e)?fs(os,e,!1)||e:e||un}function Cr(e){return fs(gl,e)}function fs(e,t,s=!0,n=!1){const l=ee||ne;if(l){const r=l.type;if(e===os){const u=ss(r,!1);if(u&&(u===t||u===Ee(t)||u===Ss(Ee(t))))return r}const i=Es(l[e]||r[e],t)||Es(l.appContext[e],t);return!i&&n?r:i}}function Es(e,t){return e&&(e[t]||e[Ee(t)]||e[Ss(Ee(t))])}function Fr(e,t,s={},n,l){if(ee.ce||ee.parent&&Ve(ee.parent)&&ee.parent.ce)return It(),zt(he,null,[fe("slot",s,n)],64);let r=e[t];r&&r._c&&(r._d=!1),It();const i=r&&cn(r(s)),u=s.key||i&&i.key,c=zt(he,{key:(u&&!Kn(u)?u:`_${t}`)+""},i||[],i&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),r&&r._c&&(r._d=!0),c}function cn(e){return e.some(t=>De(t)?!(t.type===se||t.type===he&&!cn(t.children)):!0)?e:null}const Gt=e=>e?Bn(e)?$t(e):Gt(e.parent):null,nt=le(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Gt(e.parent),$root:e=>Gt(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>us(e),$forceUpdate:e=>e.f||(e.f=()=>{ls(e.update)}),$nextTick:e=>e.n||(e.n=Xn.bind(e.proxy)),$watch:e=>Nl.bind(e)}),jt=(e,t)=>e!==W&&!e.__isScriptSetup&&Q(e,t),pl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:l,props:r,accessCache:i,type:u,appContext:c}=e;let g;if(t[0]!=="$"){const x=i[t];if(x!==void 0)switch(x){case 1:return n[t];case 2:return l[t];case 4:return s[t];case 3:return r[t]}else{if(jt(n,t))return i[t]=1,n[t];if(l!==W&&Q(l,t))return i[t]=2,l[t];if((g=e.propsOptions[0])&&Q(g,t))return i[t]=3,r[t];if(s!==W&&Q(s,t))return i[t]=4,s[t];Yt&&(i[t]=0)}}const a=nt[t];let d,y;if(a)return t==="$attrs"&&Vs(e.attrs,"get",""),a(e);if((d=u.__cssModules)&&(d=d[t]))return d;if(s!==W&&Q(s,t))return i[t]=4,s[t];if(y=c.config.globalProperties,Q(y,t))return y[t]},set({_:e},t,s){const{data:n,setupState:l,ctx:r}=e;return jt(l,t)?(l[t]=s,!0):n!==W&&Q(n,t)?(n[t]=s,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:l,propsOptions:r}},i){let u;return!!s[i]||e!==W&&Q(e,i)||jt(t,i)||(u=r[0])&&Q(u,i)||Q(n,i)||Q(nt,i)||Q(l.config.globalProperties,i)},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Q(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Jt(e){return S(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}function Tr(e,t){const s=Jt(e);for(const n in t){if(n.startsWith("__skip"))continue;let l=s[n];l?S(l)||L(l)?l=s[n]={type:l,default:t[n]}:l.default=t[n]:l===null&&(l=s[n]={default:t[n]}),l&&t[`__skip_${n}`]&&(l.skipFactory=!0)}return s}let Yt=!0;function ml(e){const t=us(e),s=e.proxy,n=e.ctx;Yt=!1,t.beforeCreate&&vs(t.beforeCreate,e,"bc");const{data:l,computed:r,methods:i,watch:u,provide:c,inject:g,created:a,beforeMount:d,mounted:y,beforeUpdate:x,updated:A,activated:O,deactivated:q,beforeDestroy:V,beforeUnmount:v,destroyed:P,unmounted:B,render:E,renderTracked:M,renderTriggered:D,errorCaptured:U,serverPrefetch:I,expose:H,inheritAttrs:j,components:X,directives:te,filters:re}=t;if(g&&yl(g,n,null),i)for(const G in i){const J=i[G];L(J)&&(n[G]=J.bind(s))}if(l){const G=l.call(s,s);ge(G)&&(e.data=Un(G))}if(Yt=!0,r)for(const G in r){const J=r[G],He=L(J)?J.bind(s,s):L(J.get)?J.get.bind(s,s):Ie,dt=!L(J)&&L(J.set)?J.set.bind(s):Ie,Ne=or({get:He,set:dt});Object.defineProperty(n,G,{enumerable:!0,configurable:!0,get:()=>Ne.value,set:xe=>Ne.value=xe})}if(u)for(const G in u)an(u[G],n,s,G);if(c){const G=L(c)?c.call(s):c;Reflect.ownKeys(G).forEach(J=>{Tl(J,G[J])})}a&&vs(a,e,"c");function Z(G,J){S(J)?J.forEach(He=>G(He.bind(s))):J&&G(J.bind(s))}if(Z(fl,d),Z(rs,y),Z(ul,x),Z(on,A),Z(rl,O),Z(il,q),Z(hl,U),Z(dl,M),Z(al,D),Z(is,v),Z(fn,B),Z(cl,I),S(H))if(H.length){const G=e.exposed||(e.exposed={});H.forEach(J=>{Object.defineProperty(G,J,{get:()=>s[J],set:He=>s[J]=He})})}else e.exposed||(e.exposed={});E&&e.render===Ie&&(e.render=E),j!=null&&(e.inheritAttrs=j),X&&(e.components=X),te&&(e.directives=te),I&&ln(e)}function yl(e,t,s=Ie){S(e)&&(e=Qt(e));for(const n in e){const l=e[n];let r;ge(l)?"default"in l?r=bt(l.from||n,l.default,!0):r=bt(l.from||n):r=bt(l),Ct(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[n]=r}}function vs(e,t,s){ve(S(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function an(e,t,s,n){let l=n.includes(".")?Tn(s,n):()=>s[n];if(ye(e)){const r=t[e];L(r)&&_t(l,r)}else if(L(e))_t(l,e.bind(s));else if(ge(e))if(S(e))e.forEach(r=>an(r,t,s,n));else{const r=L(e.handler)?e.handler.bind(s):t[e.handler];L(r)&&_t(l,r,e)}}function us(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:l,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,u=r.get(t);let c;return u?c=u:!l.length&&!s&&!n?c=t:(c={},l.length&&l.forEach(g=>Et(c,g,i,!0)),Et(c,t,i)),ge(t)&&r.set(t,c),c}function Et(e,t,s,n=!1){const{mixins:l,extends:r}=t;r&&Et(e,r,s,!0),l&&l.forEach(i=>Et(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const u=bl[i]||s&&s[i];e[i]=u?u(e[i],t[i]):t[i]}return e}const bl={data:As,props:Is,emits:Is,methods:ze,computed:ze,beforeCreate:ie,created:ie,beforeMount:ie,mounted:ie,beforeUpdate:ie,updated:ie,beforeDestroy:ie,beforeUnmount:ie,destroyed:ie,unmounted:ie,activated:ie,deactivated:ie,errorCaptured:ie,serverPrefetch:ie,components:ze,directives:ze,watch:xl,provide:As,inject:_l};function As(e,t){return t?e?function(){return le(L(e)?e.call(this,this):e,L(t)?t.call(this,this):t)}:t:e}function _l(e,t){return ze(Qt(e),Qt(t))}function Qt(e){if(S(e)){const t={};for(let s=0;s1)return s&&L(t)?t.call(n&&n.proxy):t}}function kr(){return!!(ne||ee||Ue)}const hn={},gn=()=>Object.create(hn),pn=e=>Object.getPrototypeOf(e)===hn;function kl(e,t,s,n=!1){const l={},r=gn();e.propsDefaults=Object.create(null),mn(e,t,l,r);for(const i in e.propsOptions[0])i in l||(l[i]=void 0);s?e.props=n?l:Rn(l):e.type.props?e.props=l:e.props=r,e.attrs=r}function El(e,t,s,n){const{props:l,attrs:r,vnode:{patchFlag:i}}=e,u=Bt(l),[c]=e.propsOptions;let g=!1;if((n||i>0)&&!(i&16)){if(i&8){const a=e.vnode.dynamicProps;for(let d=0;d{c=!0;const[y,x]=yn(d,t,!0);le(i,y),x&&u.push(...x)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!r&&!c)return ge(e)&&n.set(e,Re),Re;if(S(r))for(let a=0;ae[0]==="_"||e==="$stable",cs=e=>S(e)?e.map(be):[be(e)],Al=(e,t,s)=>{if(t._n)return t;const n=zn((...l)=>cs(t(...l)),s);return n._c=!1,n},_n=(e,t,s)=>{const n=e._ctx;for(const l in e){if(bn(l))continue;const r=e[l];if(L(r))t[l]=Al(l,r,n);else if(r!=null){const i=cs(r);t[l]=()=>i}}},xn=(e,t)=>{const s=cs(t);e.slots.default=()=>s},Cn=(e,t,s)=>{for(const n in t)(s||n!=="_")&&(e[n]=t[n])},Il=(e,t,s)=>{const n=e.slots=gn();if(e.vnode.shapeFlag&32){const l=t._;l?(Cn(n,t,s),s&&Jn(n,"_",l,!0)):_n(t,n)}else t&&xn(e,t)},Ol=(e,t,s)=>{const{vnode:n,slots:l}=e;let r=!0,i=W;if(n.shapeFlag&32){const u=t._;u?s&&u===1?r=!1:Cn(l,t,s):(r=!t.$stable,_n(t,l)),i=t}else t&&(xn(e,t),i={default:1});if(r)for(const u in l)!bn(u)&&i[u]==null&&delete l[u]},z=Gl;function Er(e){return Bl(e)}function Bl(e,t){const s=Pt();s.__VUE__=!0;const{insert:n,remove:l,patchProp:r,createElement:i,createText:u,createComment:c,setText:g,setElementText:a,parentNode:d,nextSibling:y,setScopeId:x=Ie,insertStaticContent:A}=e,O=(o,f,h,b=null,p=null,m=null,T=void 0,F=null,C=!!f.dynamicChildren)=>{if(o===f)return;o&&!_e(o,f)&&(b=ht(o),xe(o,p,m,!0),o=null),f.patchFlag===-2&&(C=!1,f.dynamicChildren=null);const{type:_,ref:N,shapeFlag:k}=f;switch(_){case Nt:q(o,f,h,b);break;case se:V(o,f,h,b);break;case St:o==null&&v(f,h,b,T);break;case he:X(o,f,h,b,p,m,T,F,C);break;default:k&1?E(o,f,h,b,p,m,T,F,C):k&6?te(o,f,h,b,p,m,T,F,C):(k&64||k&128)&&_.process(o,f,h,b,p,m,T,F,C,Qe)}N!=null&&p&&kt(N,o&&o.ref,m,f||o,!f)},q=(o,f,h,b)=>{if(o==null)n(f.el=u(f.children),h,b);else{const p=f.el=o.el;f.children!==o.children&&g(p,f.children)}},V=(o,f,h,b)=>{o==null?n(f.el=c(f.children||""),h,b):f.el=o.el},v=(o,f,h,b)=>{[o.el,o.anchor]=A(o.children,f,h,b,o.el,o.anchor)},P=({el:o,anchor:f},h,b)=>{let p;for(;o&&o!==f;)p=y(o),n(o,h,b),o=p;n(f,h,b)},B=({el:o,anchor:f})=>{let h;for(;o&&o!==f;)h=y(o),l(o),o=h;l(f)},E=(o,f,h,b,p,m,T,F,C)=>{f.type==="svg"?T="svg":f.type==="math"&&(T="mathml"),o==null?M(f,h,b,p,m,T,F,C):I(o,f,p,m,T,F,C)},M=(o,f,h,b,p,m,T,F)=>{let C,_;const{props:N,shapeFlag:k,transition:w,dirs:$}=o;if(C=o.el=i(o.type,m,N&&N.is,N),k&8?a(C,o.children):k&16&&U(o.children,C,null,b,p,Rt(o,m),T,F),$&&$e(o,null,b,"created"),D(C,o,o.scopeId,T,b),N){for(const Y in N)Y!=="value"&&!tt(Y)&&r(C,Y,null,N[Y],m,b);"value"in N&&r(C,"value",null,N.value,m),(_=N.onVnodeBeforeMount)&&me(_,b,o)}$&&$e(o,null,b,"beforeMount");const R=Pl(p,w);R&&w.beforeEnter(C),n(C,f,h),((_=N&&N.onVnodeMounted)||R||$)&&z(()=>{_&&me(_,b,o),R&&w.enter(C),$&&$e(o,null,b,"mounted")},p)},D=(o,f,h,b,p)=>{if(h&&x(o,h),b)for(let m=0;m{for(let _=C;_{const F=f.el=o.el;let{patchFlag:C,dynamicChildren:_,dirs:N}=f;C|=o.patchFlag&16;const k=o.props||W,w=f.props||W;let $;if(h&&Le(h,!1),($=w.onVnodeBeforeUpdate)&&me($,h,f,o),N&&$e(f,o,h,"beforeUpdate"),h&&Le(h,!0),(k.innerHTML&&w.innerHTML==null||k.textContent&&w.textContent==null)&&a(F,""),_?H(o.dynamicChildren,_,F,h,b,Rt(f,p),m):T||J(o,f,F,null,h,b,Rt(f,p),m,!1),C>0){if(C&16)j(F,k,w,h,p);else if(C&2&&k.class!==w.class&&r(F,"class",null,w.class,p),C&4&&r(F,"style",k.style,w.style,p),C&8){const R=f.dynamicProps;for(let Y=0;Y{$&&me($,h,f,o),N&&$e(f,o,h,"updated")},b)},H=(o,f,h,b,p,m,T)=>{for(let F=0;F{if(f!==h){if(f!==W)for(const m in f)!tt(m)&&!(m in h)&&r(o,m,f[m],null,p,b);for(const m in h){if(tt(m))continue;const T=h[m],F=f[m];T!==F&&m!=="value"&&r(o,m,F,T,p,b)}"value"in h&&r(o,"value",f.value,h.value,p)}},X=(o,f,h,b,p,m,T,F,C)=>{const _=f.el=o?o.el:u(""),N=f.anchor=o?o.anchor:u("");let{patchFlag:k,dynamicChildren:w,slotScopeIds:$}=f;$&&(F=F?F.concat($):$),o==null?(n(_,h,b),n(N,h,b),U(f.children||[],h,N,p,m,T,F,C)):k>0&&k&64&&w&&o.dynamicChildren?(H(o.dynamicChildren,w,h,p,m,T,F),(f.key!=null||p&&f===p.subTree)&&as(o,f,!0)):J(o,f,h,N,p,m,T,F,C)},te=(o,f,h,b,p,m,T,F,C)=>{f.slotScopeIds=F,o==null?f.shapeFlag&512?p.ctx.activate(f,h,b,T,C):re(f,h,b,p,m,T,C):Ae(o,f,C)},re=(o,f,h,b,p,m,T)=>{const F=o.component=tr(o,b,p);if(Mt(o)&&(F.ctx.renderer=Qe),sr(F,!1,T),F.asyncDep){if(p&&p.registerDep(F,Z,T),!o.el){const C=F.subTree=fe(se);V(null,C,f,h)}}else Z(F,o,f,h,p,m,T)},Ae=(o,f,h)=>{const b=f.component=o.component;if(jl(o,f,h))if(b.asyncDep&&!b.asyncResolved){G(b,f,h);return}else b.next=f,b.update();else f.el=o.el,b.vnode=f},Z=(o,f,h,b,p,m,T)=>{const F=()=>{if(o.isMounted){let{next:k,bu:w,u:$,parent:R,vnode:Y}=o;{const Fe=Fn(o);if(Fe){k&&(k.el=Y.el,G(o,k,T)),Fe.asyncDep.then(()=>{o.isUnmounted||F()});return}}let K=k,ae;Le(o,!1),k?(k.el=Y.el,G(o,k,T)):k=Y,w&&et(w),(ae=k.props&&k.props.onVnodeBeforeUpdate)&&me(ae,R,k,Y),Le(o,!0);const ue=Bs(o),Ce=o.subTree;o.subTree=ue,O(Ce,ue,d(Ce.el),ht(Ce),o,p,m),k.el=ue.el,K===null&&hs(o,ue.el),$&&z($,p),(ae=k.props&&k.props.onVnodeUpdated)&&z(()=>me(ae,R,k,Y),p)}else{let k;const{el:w,props:$}=f,{bm:R,m:Y,parent:K,root:ae,type:ue}=o,Ce=Ve(f);Le(o,!1),R&&et(R),!Ce&&(k=$&&$.onVnodeBeforeMount)&&me(k,K,f),Le(o,!0);{ae.ce&&ae.ce._injectChildStyle(ue);const Fe=o.subTree=Bs(o);O(null,Fe,h,b,o,p,m),f.el=Fe.el}if(Y&&z(Y,p),!Ce&&(k=$&&$.onVnodeMounted)){const Fe=f;z(()=>me(k,K,Fe),p)}(f.shapeFlag&256||K&&Ve(K.vnode)&&K.vnode.shapeFlag&256)&&o.a&&z(o.a,p),o.isMounted=!0,f=h=b=null}};o.scope.on();const C=o.effect=new Dn(F);o.scope.off();const _=o.update=C.run.bind(C),N=o.job=C.runIfDirty.bind(C);N.i=o,N.id=o.uid,C.scheduler=()=>ls(N),Le(o,!0),_()},G=(o,f,h)=>{f.component=o;const b=o.vnode.props;o.vnode=f,o.next=null,El(o,f.props,b,h),Ol(o,f.children,h),Ge(),xs(o),Je()},J=(o,f,h,b,p,m,T,F,C=!1)=>{const _=o&&o.children,N=o?o.shapeFlag:0,k=f.children,{patchFlag:w,shapeFlag:$}=f;if(w>0){if(w&128){dt(_,k,h,b,p,m,T,F,C);return}else if(w&256){He(_,k,h,b,p,m,T,F,C);return}}$&8?(N&16&&Ye(_,p,m),k!==_&&a(h,k)):N&16?$&16?dt(_,k,h,b,p,m,T,F,C):Ye(_,p,m,!0):(N&8&&a(h,""),$&16&&U(k,h,b,p,m,T,F,C))},He=(o,f,h,b,p,m,T,F,C)=>{o=o||Re,f=f||Re;const _=o.length,N=f.length,k=Math.min(_,N);let w;for(w=0;wN?Ye(o,p,m,!0,!1,k):U(f,h,b,p,m,T,F,C,k)},dt=(o,f,h,b,p,m,T,F,C)=>{let _=0;const N=f.length;let k=o.length-1,w=N-1;for(;_<=k&&_<=w;){const $=o[_],R=f[_]=C?we(f[_]):be(f[_]);if(_e($,R))O($,R,h,null,p,m,T,F,C);else break;_++}for(;_<=k&&_<=w;){const $=o[k],R=f[w]=C?we(f[w]):be(f[w]);if(_e($,R))O($,R,h,null,p,m,T,F,C);else break;k--,w--}if(_>k){if(_<=w){const $=w+1,R=$w)for(;_<=k;)xe(o[_],p,m,!0),_++;else{const $=_,R=_,Y=new Map;for(_=R;_<=w;_++){const de=f[_]=C?we(f[_]):be(f[_]);de.key!=null&&Y.set(de.key,_)}let K,ae=0;const ue=w-R+1;let Ce=!1,Fe=0;const Xe=new Array(ue);for(_=0;_=ue){xe(de,p,m,!0);continue}let Te;if(de.key!=null)Te=Y.get(de.key);else for(K=R;K<=w;K++)if(Xe[K-R]===0&&_e(de,f[K])){Te=K;break}Te===void 0?xe(de,p,m,!0):(Xe[Te-R]=_+1,Te>=Fe?Fe=Te:Ce=!0,O(de,f[Te],h,null,p,m,T,F,C),ae++)}const bs=Ce?Ml(Xe):Re;for(K=bs.length-1,_=ue-1;_>=0;_--){const de=R+_,Te=f[de],_s=de+1{const{el:m,type:T,transition:F,children:C,shapeFlag:_}=o;if(_&6){Ne(o.component.subTree,f,h,b);return}if(_&128){o.suspense.move(f,h,b);return}if(_&64){T.move(o,f,h,Qe);return}if(T===he){n(m,f,h);for(let k=0;kF.enter(m),p);else{const{leave:k,delayLeave:w,afterLeave:$}=F,R=()=>n(m,f,h),Y=()=>{k(m,()=>{R(),$&&$()})};w?w(m,R,Y):Y()}else n(m,f,h)},xe=(o,f,h,b=!1,p=!1)=>{const{type:m,props:T,ref:F,children:C,dynamicChildren:_,shapeFlag:N,patchFlag:k,dirs:w,cacheIndex:$}=o;if(k===-2&&(p=!1),F!=null&&kt(F,null,h,o,!0),$!=null&&(f.renderCache[$]=void 0),N&256){f.ctx.deactivate(o);return}const R=N&1&&w,Y=!Ve(o);let K;if(Y&&(K=T&&T.onVnodeBeforeUnmount)&&me(K,f,o),N&6)wn(o.component,h,b);else{if(N&128){o.suspense.unmount(h,b);return}R&&$e(o,null,f,"beforeUnmount"),N&64?o.type.remove(o,f,h,Qe,b):_&&!_.hasOnce&&(m!==he||k>0&&k&64)?Ye(_,f,h,!1,!0):(m===he&&k&384||!p&&N&16)&&Ye(C,f,h),b&&ms(o)}(Y&&(K=T&&T.onVnodeUnmounted)||R)&&z(()=>{K&&me(K,f,o),R&&$e(o,null,f,"unmounted")},h)},ms=o=>{const{type:f,el:h,anchor:b,transition:p}=o;if(f===he){Mn(h,b);return}if(f===St){B(o);return}const m=()=>{l(h),p&&!p.persisted&&p.afterLeave&&p.afterLeave()};if(o.shapeFlag&1&&p&&!p.persisted){const{leave:T,delayLeave:F}=p,C=()=>T(h,m);F?F(o.el,m,C):C()}else m()},Mn=(o,f)=>{let h;for(;o!==f;)h=y(o),l(o),o=h;l(f)},wn=(o,f,h)=>{const{bum:b,scope:p,job:m,subTree:T,um:F,m:C,a:_}=o;vt(C),vt(_),b&&et(b),p.stop(),m&&(m.flags|=8,xe(T,o,f,h)),F&&z(F,f),z(()=>{o.isUnmounted=!0},f),f&&f.pendingBranch&&!f.isUnmounted&&o.asyncDep&&!o.asyncResolved&&o.suspenseId===f.pendingId&&(f.deps--,f.deps===0&&f.resolve())},Ye=(o,f,h,b=!1,p=!1,m=0)=>{for(let T=m;T{if(o.shapeFlag&6)return ht(o.component.subTree);if(o.shapeFlag&128)return o.suspense.next();const f=y(o.anchor||o.el),h=f&&f[Qs];return h?y(h):f};let Lt=!1;const ys=(o,f,h)=>{o==null?f._vnode&&xe(f._vnode,null,null,!0):O(f._vnode||null,o,f,null,null,null,h),f._vnode=o,Lt||(Lt=!0,xs(),Gs(),Lt=!1)},Qe={p:O,um:xe,m:Ne,r:ms,mt:re,mc:U,pc:J,pbc:H,n:ht,o:e};return{render:ys,hydrate:void 0,createApp:Fl(ys)}}function Rt({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Le({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Pl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function as(e,t,s=!1){const n=e.children,l=t.children;if(S(n)&&S(l))for(let r=0;r>1,e[s[u]]0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}function Fn(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Fn(t)}function vt(e){if(e)for(let t=0;tbt(wl);function vr(e,t){return ds(e,null,t)}function _t(e,t,s){return ds(e,t,s)}function ds(e,t,s=W){const{immediate:n,deep:l,flush:r,once:i}=s,u=le({},s),c=t&&n||!t&&r!=="post";let g;if(ot){if(r==="sync"){const x=Hl();g=x.__watcherHandles||(x.__watcherHandles=[])}else if(!c){const x=()=>{};return x.stop=Ie,x.resume=Ie,x.pause=Ie,x}}const a=ne;u.call=(x,A,O)=>ve(x,a,A,O);let d=!1;r==="post"?u.scheduler=x=>{z(x,a&&a.suspense)}:r!=="sync"&&(d=!0,u.scheduler=(x,A)=>{A?x():ls(x)}),u.augmentJob=x=>{t&&(x.flags|=4),d&&(x.flags|=2,a&&(x.id=a.uid,x.i=a))};const y=Nn(e,t,u);return ot&&(g?g.push(y):c&&y()),y}function Nl(e,t,s){const n=this.proxy,l=ye(e)?e.includes(".")?Tn(n,e):()=>n[e]:e.bind(n,n);let r;L(t)?r=t:(r=t.handler,s=t);const i=at(this),u=ds(l,r.bind(n),s);return i(),u}function Tn(e,t){const s=t.split(".");return()=>{let n=e;for(let l=0;lt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ee(t)}Modifiers`]||e[`${ft(t)}Modifiers`];function Ll(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||W;let l=s;const r=t.startsWith("update:"),i=r&&$l(n,t.slice(7));i&&(i.trim&&(l=s.map(a=>ye(a)?a.trim():a)),i.number&&(l=s.map(Yn)));let u,c=n[u=Vt(t)]||n[u=Vt(Ee(t))];!c&&r&&(c=n[u=Vt(ft(t))]),c&&ve(c,e,6,l);const g=n[u+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[u])return;e.emitted[u]=!0,ve(g,e,6,l)}}function kn(e,t,s=!1){const n=t.emitsCache,l=n.get(e);if(l!==void 0)return l;const r=e.emits;let i={},u=!1;if(!L(e)){const c=g=>{const a=kn(g,t,!0);a&&(u=!0,le(i,a))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!u?(ge(e)&&n.set(e,null),null):(S(r)?r.forEach(c=>i[c]=null):le(i,r),ge(e)&&n.set(e,i),i)}function Ht(e,t){return!e||!ns(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,ft(t))||Q(e,t))}function Bs(e){const{type:t,vnode:s,proxy:n,withProxy:l,propsOptions:[r],slots:i,attrs:u,emit:c,render:g,renderCache:a,props:d,data:y,setupState:x,ctx:A,inheritAttrs:O}=e,q=Tt(e);let V,v;try{if(s.shapeFlag&4){const B=l||n,E=B;V=be(g.call(E,B,a,d,x,y,A)),v=u}else{const B=t;V=be(B.length>1?B(d,{attrs:u,slots:i,emit:c}):B(d,null)),v=t.props?u:Ul(u)}}catch(B){lt.length=0,ct(B,e,1),V=fe(se)}let P=V;if(v&&O!==!1){const B=Object.keys(v),{shapeFlag:E}=P;B.length&&E&7&&(r&&B.some(Ks)&&(v=Dl(v,r)),P=Oe(P,v,!1,!0))}return s.dirs&&(P=Oe(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(s.dirs):s.dirs),s.transition&&We(P,s.transition),V=P,Tt(q),V}function Vl(e,t=!0){let s;for(let n=0;n{let t;for(const s in e)(s==="class"||s==="style"||ns(s))&&((t||(t={}))[s]=e[s]);return t},Dl=(e,t)=>{const s={};for(const n in e)(!Ks(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function jl(e,t,s){const{props:n,children:l,component:r}=e,{props:i,children:u,patchFlag:c}=t,g=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?Ps(n,i,g):!!i;if(c&8){const a=t.dynamicProps;for(let d=0;de.__isSuspense;let Zt=0;const Rl={name:"Suspense",__isSuspense:!0,process(e,t,s,n,l,r,i,u,c,g){if(e==null)Sl(t,s,n,l,r,i,u,c,g);else{if(r&&r.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Kl(e,t,s,n,l,i,u,c,g)}},hydrate:Wl,normalize:ql},Ar=Rl;function it(e,t){const s=e.props&&e.props[t];L(s)&&s()}function Sl(e,t,s,n,l,r,i,u,c){const{p:g,o:{createElement:a}}=c,d=a("div"),y=e.suspense=En(e,l,n,t,d,s,r,i,u,c);g(null,y.pendingBranch=e.ssContent,d,null,n,y,r,i),y.deps>0?(it(e,"onPending"),it(e,"onFallback"),g(null,e.ssFallback,t,s,n,null,r,i),Ke(y,e.ssFallback)):y.resolve(!1,!0)}function Kl(e,t,s,n,l,r,i,u,{p:c,um:g,o:{createElement:a}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const y=t.ssContent,x=t.ssFallback,{activeBranch:A,pendingBranch:O,isInFallback:q,isHydrating:V}=d;if(O)d.pendingBranch=y,_e(y,O)?(c(O,y,d.hiddenContainer,null,l,d,r,i,u),d.deps<=0?d.resolve():q&&(V||(c(A,x,s,n,l,null,r,i,u),Ke(d,x)))):(d.pendingId=Zt++,V?(d.isHydrating=!1,d.activeBranch=O):g(O,l,d),d.deps=0,d.effects.length=0,d.hiddenContainer=a("div"),q?(c(null,y,d.hiddenContainer,null,l,d,r,i,u),d.deps<=0?d.resolve():(c(A,x,s,n,l,null,r,i,u),Ke(d,x))):A&&_e(y,A)?(c(A,y,s,n,l,d,r,i,u),d.resolve(!0)):(c(null,y,d.hiddenContainer,null,l,d,r,i,u),d.deps<=0&&d.resolve()));else if(A&&_e(y,A))c(A,y,s,n,l,d,r,i,u),Ke(d,y);else if(it(t,"onPending"),d.pendingBranch=y,y.shapeFlag&512?d.pendingId=y.component.suspenseId:d.pendingId=Zt++,c(null,y,d.hiddenContainer,null,l,d,r,i,u),d.deps<=0)d.resolve();else{const{timeout:v,pendingId:P}=d;v>0?setTimeout(()=>{d.pendingId===P&&d.fallback(x)},v):v===0&&d.fallback(x)}}function En(e,t,s,n,l,r,i,u,c,g,a=!1){const{p:d,m:y,um:x,n:A,o:{parentNode:O,remove:q}}=g;let V;const v=Jl(e);v&&t&&t.pendingBranch&&(V=t.pendingId,t.deps++);const P=e.props?qn(e.props.timeout):void 0,B=r,E={vnode:e,parent:t,parentComponent:s,namespace:i,container:n,hiddenContainer:l,deps:0,pendingId:Zt++,timeout:typeof P=="number"?P:-1,activeBranch:null,pendingBranch:null,isInFallback:!a,isHydrating:a,isUnmounted:!1,effects:[],resolve(M=!1,D=!1){const{vnode:U,activeBranch:I,pendingBranch:H,pendingId:j,effects:X,parentComponent:te,container:re}=E;let Ae=!1;E.isHydrating?E.isHydrating=!1:M||(Ae=I&&H.transition&&H.transition.mode==="out-in",Ae&&(I.transition.afterLeave=()=>{j===E.pendingId&&(y(H,re,r===B?A(I):r,0),Kt(X))}),I&&(O(I.el)===re&&(r=A(I)),x(I,te,E,!0)),Ae||y(H,re,r,0)),Ke(E,H),E.pendingBranch=null,E.isInFallback=!1;let Z=E.parent,G=!1;for(;Z;){if(Z.pendingBranch){Z.effects.push(...X),G=!0;break}Z=Z.parent}!G&&!Ae&&Kt(X),E.effects=[],v&&t&&t.pendingBranch&&V===t.pendingId&&(t.deps--,t.deps===0&&!D&&t.resolve()),it(U,"onResolve")},fallback(M){if(!E.pendingBranch)return;const{vnode:D,activeBranch:U,parentComponent:I,container:H,namespace:j}=E;it(D,"onFallback");const X=A(U),te=()=>{E.isInFallback&&(d(null,M,H,X,I,null,j,u,c),Ke(E,M))},re=M.transition&&M.transition.mode==="out-in";re&&(U.transition.afterLeave=te),E.isInFallback=!0,x(U,I,null,!0),re||te()},move(M,D,U){E.activeBranch&&y(E.activeBranch,M,D,U),E.container=M},next(){return E.activeBranch&&A(E.activeBranch)},registerDep(M,D,U){const I=!!E.pendingBranch;I&&E.deps++;const H=M.vnode.el;M.asyncDep.catch(j=>{ct(j,M,0)}).then(j=>{if(M.isUnmounted||E.isUnmounted||E.pendingId!==M.suspenseId)return;M.asyncResolved=!0;const{vnode:X}=M;ts(M,j,!1),H&&(X.el=H);const te=!H&&M.subTree.el;D(M,X,O(H||M.subTree.el),H?null:A(M.subTree),E,i,U),te&&q(te),hs(M,X.el),I&&--E.deps===0&&E.resolve()})},unmount(M,D){E.isUnmounted=!0,E.activeBranch&&x(E.activeBranch,s,M,D),E.pendingBranch&&x(E.pendingBranch,s,M,D)}};return E}function Wl(e,t,s,n,l,r,i,u,c){const g=t.suspense=En(t,n,s,e.parentNode,document.createElement("div"),null,l,r,i,u,!0),a=c(e,g.pendingBranch=t.ssContent,s,g,r,i);return g.deps===0&&g.resolve(!1,!0),a}function ql(e){const{shapeFlag:t,children:s}=e,n=t&32;e.ssContent=Ms(n?s.default:s),e.ssFallback=n?Ms(s.fallback):fe(se)}function Ms(e){let t;if(L(e)){const s=qe&&e._c;s&&(e._d=!1,It()),e=e(),s&&(e._d=!0,t=ce,vn())}return S(e)&&(e=Vl(e)),e=be(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function Gl(e,t){t&&t.pendingBranch?S(e)?t.effects.push(...e):t.effects.push(e):Kt(e)}function Ke(e,t){e.activeBranch=t;const{vnode:s,parentComponent:n}=e;let l=t.el;for(;!l&&t.component;)t=t.component.subTree,l=t.el;s.el=l,n&&n.subTree===s&&(n.vnode.el=l,hs(n,l))}function Jl(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const he=Symbol.for("v-fgt"),Nt=Symbol.for("v-txt"),se=Symbol.for("v-cmt"),St=Symbol.for("v-stc"),lt=[];let ce=null;function It(e=!1){lt.push(ce=e?null:[])}function vn(){lt.pop(),ce=lt[lt.length-1]||null}let qe=1;function ws(e,t=!1){qe+=e,e<0&&ce&&t&&(ce.hasOnce=!0)}function An(e){return e.dynamicChildren=qe>0?ce||Re:null,vn(),qe>0&&ce&&ce.push(e),e}function Ir(e,t,s,n,l,r){return An(On(e,t,s,n,l,r,!0))}function zt(e,t,s,n,l){return An(fe(e,t,s,n,l,!0))}function De(e){return e?e.__v_isVNode===!0:!1}function _e(e,t){return e.type===t.type&&e.key===t.key}const In=({key:e})=>e??null,xt=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||Ct(e)||L(e)?{i:ee,r:e,k:t,f:!!s}:e:null);function On(e,t=null,s=null,n=0,l=null,r=e===he?0:1,i=!1,u=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&In(t),ref:t&&xt(t),scopeId:Ys,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:ee};return u?(gs(c,s),r&128&&e.normalize(c)):s&&(c.shapeFlag|=ye(s)?8:16),qe>0&&!i&&ce&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&ce.push(c),c}const fe=Yl;function Yl(e,t=null,s=null,n=0,l=null,r=!1){if((!e||e===un)&&(e=se),De(e)){const u=Oe(e,t,!0);return s&&gs(u,s),qe>0&&!r&&ce&&(u.shapeFlag&6?ce[ce.indexOf(e)]=u:ce.push(u)),u.patchFlag=-2,u}if(ir(e)&&(e=e.__vccOpts),t){t=Ql(t);let{class:u,style:c}=t;u&&!ye(u)&&(t.class=Us(u)),ge(c)&&($s(c)&&!S(c)&&(c=le({},c)),t.style=Ds(c))}const i=ye(e)?1:At(e)?128:Xs(e)?64:ge(e)?4:L(e)?2:0;return On(e,t,s,n,l,i,r,!0)}function Ql(e){return e?$s(e)||pn(e)?le({},e):e:null}function Oe(e,t,s=!1,n=!1){const{props:l,ref:r,patchFlag:i,children:u,transition:c}=e,g=t?Zl(l||{},t):l,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&In(g),ref:t&&t.ref?s&&r?S(r)?r.concat(xt(t)):[r,xt(t)]:xt(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:u,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==he?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Oe(e.ssContent),ssFallback:e.ssFallback&&Oe(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&We(a,c.clone(a)),a}function Xl(e=" ",t=0){return fe(Nt,null,e,t)}function Or(e="",t=!1){return t?(It(),zt(se,null,e)):fe(se,null,e)}function be(e){return e==null||typeof e=="boolean"?fe(se):S(e)?fe(he,null,e.slice()):De(e)?we(e):fe(Nt,null,String(e))}function we(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Oe(e)}function gs(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(S(t))s=16;else if(typeof t=="object")if(n&65){const l=t.default;l&&(l._c&&(l._d=!1),gs(e,l()),l._c&&(l._d=!0));return}else{s=32;const l=t._;!l&&!pn(t)?t._ctx=ee:l===3&&ee&&(ee.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else L(t)?(t={default:t,_ctx:ee},s=32):(t=String(t),n&64?(s=16,t=[Xl(t)]):s=8);e.children=t,e.shapeFlag|=s}function Zl(...e){const t={};for(let s=0;sne||ee;let Ot,es;{const e=Pt(),t=(s,n)=>{let l;return(l=e[s])||(l=e[s]=[]),l.push(n),r=>{l.length>1?l.forEach(i=>i(r)):l[0](r)}};Ot=t("__VUE_INSTANCE_SETTERS__",s=>ne=s),es=t("__VUE_SSR_SETTERS__",s=>ot=s)}const at=e=>{const t=ne;return Ot(e),e.scope.on(),()=>{e.scope.off(),Ot(t)}},Hs=()=>{ne&&ne.scope.off(),Ot(null)};function Bn(e){return e.vnode.shapeFlag&4}let ot=!1;function sr(e,t=!1,s=!1){t&&es(t);const{props:n,children:l}=e.vnode,r=Bn(e);kl(e,n,r,t),Il(e,l,s);const i=r?nr(e,t):void 0;return t&&es(!1),i}function nr(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,pl);const{setup:n}=s;if(n){Ge();const l=e.setupContext=n.length>1?rr(e):null,r=at(e),i=ut(n,e,0,[e.props,l]),u=Rs(i);if(Je(),r(),(u||e.sp)&&!Ve(e)&&ln(e),u){if(i.then(Hs,Hs),t)return i.then(c=>{ts(e,c,t)}).catch(c=>{ct(c,e,0)});e.asyncDep=i}else ts(e,i,t)}else Pn(e,t)}function ts(e,t,s){L(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=Ls(t)),Pn(e,s)}let Ns;function Pn(e,t,s){const n=e.type;if(!e.render){if(!t&&Ns&&!n.render){const l=n.template||us(e).template;if(l){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:u,compilerOptions:c}=n,g=le(le({isCustomElement:r,delimiters:u},i),c);n.render=Ns(l,g)}}e.render=n.render||Ie}{const l=at(e);Ge();try{ml(e)}finally{Je(),l()}}}const lr={get(e,t){return Vs(e,"get",""),e[t]}};function rr(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,lr),slots:e.slots,emit:e.emit,expose:t}}function $t(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ls(Vn(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in nt)return nt[s](e)},has(t,s){return s in t||s in nt}})):e.proxy}function ss(e,t=!0){return L(e)?e.displayName||e.name:e.name||t&&e.__name}function ir(e){return L(e)&&"__vccOpts"in e}const or=(e,t)=>$n(e,t,ot);function Br(e,t,s){const n=arguments.length;return n===2?ge(t)&&!S(t)?De(t)?fe(e,null,[t]):fe(e,t):fe(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&De(s)&&(s=[s]),fe(e,t,s))}const fr="3.5.13";export{zn as A,pr as B,_r as C,It as D,zt as E,he as F,xr as G,Or as H,Xl as I,rl as J,br as K,il as L,se as M,hr as N,Oe as O,Nt as P,fn as Q,kr as R,Ar as S,gr as T,Fr as U,Cr as V,sl as a,fe as b,Er as c,ps as d,ve as e,or as f,nn as g,Br as h,bt as i,vr as j,rs as k,mr as l,Zl as m,Xn as n,on as o,De as p,yr as q,qt as r,We as s,fl as t,tl as u,is as v,_t as w,Tl as x,Tr as y,Ir as z};
+**/function ut(e,t,s,n){try{return n?e(...n):e()}catch(l){ct(l,t,s)}}function ve(e,t,s,n){if(L(e)){const l=ut(e,t,s,n);return l&&Rs(l)&&l.catch(r=>{ct(r,t,s)}),l}if(S(e)){const l=[];for(let r=0;r>>1,l=oe[n],r=rt(l);r=rt(s)?oe.push(e):oe.splice(Zn(t),0,e),e.flags|=1,qs()}}function qs(){Ft||(Ft=Ws.then(Js))}function Kt(e){S(e)?Se.push(...e):Pe&&e.id===-1?Pe.splice(je+1,0,e):e.flags&1||(Se.push(e),e.flags|=1),qs()}function xs(e,t,s=ke+1){for(;srt(s)-rt(n));if(Se.length=0,Pe){Pe.push(...t);return}for(Pe=t,je=0;jee.id==null?e.flags&2?-1:1/0:e.id;function Js(e){try{for(ke=0;ke{n._d&&ws(-1);const r=Tt(t);let i;try{i=e(...l)}finally{Tt(r),n._d&&ws(1)}return i};return n._n=!0,n._c=!0,n._d=!0,n}function hr(e,t){if(ee===null)return e;const s=$t(ee),n=e.dirs||(e.dirs=[]);for(let l=0;le.__isTeleport,st=e=>e&&(e.disabled||e.disabled===""),Cs=e=>e&&(e.defer||e.defer===""),Fs=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ts=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Wt=(e,t)=>{const s=e&&e.to;return ye(s)?t?t(s):null:s},Zs={name:"Teleport",__isTeleport:!0,process(e,t,s,n,l,r,i,u,c,g){const{mc:a,pc:d,pbc:y,o:{insert:x,querySelector:A,createText:O,createComment:q}}=g,V=st(t.props);let{shapeFlag:v,children:P,dynamicChildren:B}=t;if(e==null){const E=t.el=O(""),M=t.anchor=O("");x(E,s,n),x(M,s,n);const D=(I,H)=>{v&16&&(l&&l.isCE&&(l.ce._teleportTarget=I),a(P,I,H,l,r,i,u,c))},U=()=>{const I=t.target=Wt(t.props,A),H=zs(I,t,O,x);I&&(i!=="svg"&&Fs(I)?i="svg":i!=="mathml"&&Ts(I)&&(i="mathml"),V||(D(I,H),yt(t,!1)))};V&&(D(s,M),yt(t,!0)),Cs(t.props)?z(()=>{U(),t.el.__isMounted=!0},r):U()}else{if(Cs(t.props)&&!e.el.__isMounted){z(()=>{Zs.process(e,t,s,n,l,r,i,u,c,g),delete e.el.__isMounted},r);return}t.el=e.el,t.targetStart=e.targetStart;const E=t.anchor=e.anchor,M=t.target=e.target,D=t.targetAnchor=e.targetAnchor,U=st(e.props),I=U?s:M,H=U?E:D;if(i==="svg"||Fs(M)?i="svg":(i==="mathml"||Ts(M))&&(i="mathml"),B?(y(e.dynamicChildren,B,I,l,r,i,u),as(e,t,!0)):c||d(e,t,I,H,l,r,i,u,!1),V)U?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):gt(t,s,E,g,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=Wt(t.props,A);j&>(t,j,null,g,0)}else U&>(t,M,D,g,1);yt(t,V)}},remove(e,t,s,{um:n,o:{remove:l}},r){const{shapeFlag:i,children:u,anchor:c,targetStart:g,targetAnchor:a,target:d,props:y}=e;if(d&&(l(g),l(a)),r&&l(c),i&16){const x=r||!st(y);for(let A=0;A{e.isMounted=!0}),is(()=>{e.isUnmounting=!0}),e}const pe=[Function,Array],sl={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:pe,onEnter:pe,onAfterEnter:pe,onEnterCancelled:pe,onBeforeLeave:pe,onLeave:pe,onAfterLeave:pe,onLeaveCancelled:pe,onBeforeAppear:pe,onAppear:pe,onAfterAppear:pe,onAppearCancelled:pe},en=e=>{const t=e.subTree;return t.component?en(t.component):t},nl={name:"BaseTransition",props:sl,setup(e,{slots:t}){const s=ps(),n=tl();return()=>{const l=t.default&&nn(t.default(),!0);if(!l||!l.length)return;const r=tn(l),i=Bt(e),{mode:u}=i;if(n.isLeaving)return Ut(r);const c=ks(r);if(!c)return Ut(r);let g=qt(c,i,n,s,d=>g=d);c.type!==se&&We(c,g);let a=s.subTree&&ks(s.subTree);if(a&&a.type!==se&&!_e(c,a)&&en(s).type!==se){let d=qt(a,i,n,s);if(We(a,d),u==="out-in"&&c.type!==se)return n.isLeaving=!0,d.afterLeave=()=>{n.isLeaving=!1,s.job.flags&8||s.update(),delete d.afterLeave,a=void 0},Ut(r);u==="in-out"&&c.type!==se?d.delayLeave=(y,x,A)=>{const O=sn(n,a);O[String(a.key)]=a,y[Me]=()=>{x(),y[Me]=void 0,delete g.delayedLeave,a=void 0},g.delayedLeave=()=>{A(),delete g.delayedLeave,a=void 0}}:a=void 0}else a&&(a=void 0);return r}}};function tn(e){let t=e[0];if(e.length>1){for(const s of e)if(s.type!==se){t=s;break}}return t}const pr=nl;function sn(e,t){const{leavingVNodes:s}=e;let n=s.get(t.type);return n||(n=Object.create(null),s.set(t.type,n)),n}function qt(e,t,s,n,l){const{appear:r,mode:i,persisted:u=!1,onBeforeEnter:c,onEnter:g,onAfterEnter:a,onEnterCancelled:d,onBeforeLeave:y,onLeave:x,onAfterLeave:A,onLeaveCancelled:O,onBeforeAppear:q,onAppear:V,onAfterAppear:v,onAppearCancelled:P}=t,B=String(e.key),E=sn(s,e),M=(I,H)=>{I&&ve(I,n,9,H)},D=(I,H)=>{const j=H[1];M(I,H),S(I)?I.every(X=>X.length<=1)&&j():I.length<=1&&j()},U={mode:i,persisted:u,beforeEnter(I){let H=c;if(!s.isMounted)if(r)H=q||c;else return;I[Me]&&I[Me](!0);const j=E[B];j&&_e(e,j)&&j.el[Me]&&j.el[Me](),M(H,[I])},enter(I){let H=g,j=a,X=d;if(!s.isMounted)if(r)H=V||g,j=v||a,X=P||d;else return;let te=!1;const re=I[pt]=Ae=>{te||(te=!0,Ae?M(X,[I]):M(j,[I]),U.delayedLeave&&U.delayedLeave(),I[pt]=void 0)};H?D(H,[I,re]):re()},leave(I,H){const j=String(e.key);if(I[pt]&&I[pt](!0),s.isUnmounting)return H();M(y,[I]);let X=!1;const te=I[Me]=re=>{X||(X=!0,H(),re?M(O,[I]):M(A,[I]),I[Me]=void 0,E[j]===e&&delete E[j])};E[j]=e,x?D(x,[I,te]):te()},clone(I){const H=qt(I,t,s,n,l);return l&&l(H),H}};return U}function Ut(e){if(Mt(e))return e=Oe(e),e.children=null,e}function ks(e){if(!Mt(e))return Xs(e.type)&&e.children?tn(e.children):e;const{shapeFlag:t,children:s}=e;if(s){if(t&16)return s[0];if(t&32&&L(s.default))return s.default()}}function We(e,t){e.shapeFlag&6&&e.component?(e.transition=t,We(e.component.subTree,t)):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function nn(e,t=!1,s){let n=[],l=0;for(let r=0;r1)for(let r=0;rs.value,set:r=>s.value=r})}return s}function kt(e,t,s,n,l=!1){if(S(e)){e.forEach((A,O)=>kt(A,t&&(S(t)?t[O]:t),s,n,l));return}if(Ve(n)&&!l){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&kt(e,t,s,n.component.subTree);return}const r=n.shapeFlag&4?$t(n.component):n.el,i=l?null:r,{i:u,r:c}=e,g=t&&t.r,a=u.refs===W?u.refs={}:u.refs,d=u.setupState,y=Bt(d),x=d===W?()=>!1:A=>Q(y,A);if(g!=null&&g!==c&&(ye(g)?(a[g]=null,x(g)&&(d[g]=null)):Ct(g)&&(g.value=null)),L(c))ut(c,u,12,[i,a]);else{const A=ye(c),O=Ct(c);if(A||O){const q=()=>{if(e.f){const V=A?x(c)?d[c]:a[c]:c.value;l?S(V)&&js(V,r):S(V)?V.includes(r)||V.push(r):A?(a[c]=[r],x(c)&&(d[c]=a[c])):(c.value=[r],e.k&&(a[e.k]=c.value))}else A?(a[c]=i,x(c)&&(d[c]=i)):O&&(c.value=i,e.k&&(a[e.k]=i))};i?(q.id=-1,z(q,s)):q()}}}Pt().requestIdleCallback;Pt().cancelIdleCallback;const Ve=e=>!!e.type.__asyncLoader,Mt=e=>e.type.__isKeepAlive,ll={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const s=ps(),n=s.ctx;if(!n.renderer)return()=>{const v=t.default&&t.default();return v&&v.length===1?v[0]:v};const l=new Map,r=new Set;let i=null;const u=s.suspense,{renderer:{p:c,m:g,um:a,o:{createElement:d}}}=n,y=d("div");n.activate=(v,P,B,E,M)=>{const D=v.component;g(v,P,B,0,u),c(D.vnode,v,P,B,D,u,E,v.slotScopeIds,M),z(()=>{D.isDeactivated=!1,D.a&&et(D.a);const U=v.props&&v.props.onVnodeMounted;U&&me(U,D.parent,v)},u)},n.deactivate=v=>{const P=v.component;vt(P.m),vt(P.a),g(v,y,null,1,u),z(()=>{P.da&&et(P.da);const B=v.props&&v.props.onVnodeUnmounted;B&&me(B,P.parent,v),P.isDeactivated=!0},u)};function x(v){Dt(v),a(v,s,u,!0)}function A(v){l.forEach((P,B)=>{const E=ss(P.type);E&&!v(E)&&O(B)})}function O(v){const P=l.get(v);P&&(!i||!_e(P,i))?x(P):i&&Dt(i),l.delete(v),r.delete(v)}_t(()=>[e.include,e.exclude],([v,P])=>{v&&A(B=>Ze(v,B)),P&&A(B=>!Ze(P,B))},{flush:"post",deep:!0});let q=null;const V=()=>{q!=null&&(At(s.subTree.type)?z(()=>{l.set(q,mt(s.subTree))},s.subTree.suspense):l.set(q,mt(s.subTree)))};return rs(V),on(V),is(()=>{l.forEach(v=>{const{subTree:P,suspense:B}=s,E=mt(P);if(v.type===E.type&&v.key===E.key){Dt(E);const M=E.component.da;M&&z(M,B);return}x(v)})}),()=>{if(q=null,!t.default)return i=null;const v=t.default(),P=v[0];if(v.length>1)return i=null,v;if(!De(P)||!(P.shapeFlag&4)&&!(P.shapeFlag&128))return i=null,P;let B=mt(P);if(B.type===se)return i=null,B;const E=B.type,M=ss(Ve(B)?B.type.__asyncResolved||{}:E),{include:D,exclude:U,max:I}=e;if(D&&(!M||!Ze(D,M))||U&&M&&Ze(U,M))return B.shapeFlag&=-257,i=B,P;const H=B.key==null?E:B.key,j=l.get(H);return B.el&&(B=Oe(B),P.shapeFlag&128&&(P.ssContent=B)),q=H,j?(B.el=j.el,B.component=j.component,B.transition&&We(B,B.transition),B.shapeFlag|=512,r.delete(H),r.add(H)):(r.add(H),I&&r.size>parseInt(I,10)&&O(r.values().next().value)),B.shapeFlag|=256,i=B,At(P.type)?P:B}}},br=ll;function Ze(e,t){return S(e)?e.some(s=>Ze(s,t)):ye(e)?e.split(",").includes(t):Wn(e)?(e.lastIndex=0,e.test(t)):!1}function rl(e,t){rn(e,"a",t)}function il(e,t){rn(e,"da",t)}function rn(e,t,s=ne){const n=e.__wdc||(e.__wdc=()=>{let l=s;for(;l;){if(l.isDeactivated)return;l=l.parent}return e()});if(wt(t,n,s),s){let l=s.parent;for(;l&&l.parent;)Mt(l.parent.vnode)&&ol(n,t,s,l),l=l.parent}}function ol(e,t,s,n){const l=wt(t,e,n,!0);fn(()=>{js(n[t],l)},s)}function Dt(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function mt(e){return e.shapeFlag&128?e.ssContent:e}function wt(e,t,s=ne,n=!1){if(s){const l=s[e]||(s[e]=[]),r=t.__weh||(t.__weh=(...i)=>{Ge();const u=at(s),c=ve(t,s,e,i);return u(),Je(),c});return n?l.unshift(r):l.push(r),r}}const Be=e=>(t,s=ne)=>{(!ot||e==="sp")&&wt(e,(...n)=>t(...n),s)},fl=Be("bm"),rs=Be("m"),ul=Be("bu"),on=Be("u"),is=Be("bum"),fn=Be("um"),cl=Be("sp"),al=Be("rtg"),dl=Be("rtc");function hl(e,t=ne){wt("ec",e,t)}const os="components",gl="directives";function _r(e,t){return fs(os,e,!0,t)||e}const un=Symbol.for("v-ndc");function xr(e){return ye(e)?fs(os,e,!1)||e:e||un}function Cr(e){return fs(gl,e)}function fs(e,t,s=!0,n=!1){const l=ee||ne;if(l){const r=l.type;if(e===os){const u=ss(r,!1);if(u&&(u===t||u===Ee(t)||u===Ss(Ee(t))))return r}const i=Es(l[e]||r[e],t)||Es(l.appContext[e],t);return!i&&n?r:i}}function Es(e,t){return e&&(e[t]||e[Ee(t)]||e[Ss(Ee(t))])}function Fr(e,t,s={},n,l){if(ee.ce||ee.parent&&Ve(ee.parent)&&ee.parent.ce)return It(),zt(he,null,[fe("slot",s,n)],64);let r=e[t];r&&r._c&&(r._d=!1),It();const i=r&&cn(r(s)),u=s.key||i&&i.key,c=zt(he,{key:(u&&!Kn(u)?u:`_${t}`)+""},i||[],i&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),r&&r._c&&(r._d=!0),c}function cn(e){return e.some(t=>De(t)?!(t.type===se||t.type===he&&!cn(t.children)):!0)?e:null}const Gt=e=>e?Bn(e)?$t(e):Gt(e.parent):null,nt=le(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Gt(e.parent),$root:e=>Gt(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>us(e),$forceUpdate:e=>e.f||(e.f=()=>{ls(e.update)}),$nextTick:e=>e.n||(e.n=Xn.bind(e.proxy)),$watch:e=>Nl.bind(e)}),jt=(e,t)=>e!==W&&!e.__isScriptSetup&&Q(e,t),pl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:s,setupState:n,data:l,props:r,accessCache:i,type:u,appContext:c}=e;let g;if(t[0]!=="$"){const x=i[t];if(x!==void 0)switch(x){case 1:return n[t];case 2:return l[t];case 4:return s[t];case 3:return r[t]}else{if(jt(n,t))return i[t]=1,n[t];if(l!==W&&Q(l,t))return i[t]=2,l[t];if((g=e.propsOptions[0])&&Q(g,t))return i[t]=3,r[t];if(s!==W&&Q(s,t))return i[t]=4,s[t];Yt&&(i[t]=0)}}const a=nt[t];let d,y;if(a)return t==="$attrs"&&Vs(e.attrs,"get",""),a(e);if((d=u.__cssModules)&&(d=d[t]))return d;if(s!==W&&Q(s,t))return i[t]=4,s[t];if(y=c.config.globalProperties,Q(y,t))return y[t]},set({_:e},t,s){const{data:n,setupState:l,ctx:r}=e;return jt(l,t)?(l[t]=s,!0):n!==W&&Q(n,t)?(n[t]=s,!0):Q(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=s,!0)},has({_:{data:e,setupState:t,accessCache:s,ctx:n,appContext:l,propsOptions:r}},i){let u;return!!s[i]||e!==W&&Q(e,i)||jt(t,i)||(u=r[0])&&Q(u,i)||Q(n,i)||Q(nt,i)||Q(l.config.globalProperties,i)},defineProperty(e,t,s){return s.get!=null?e._.accessCache[t]=0:Q(s,"value")&&this.set(e,t,s.value,null),Reflect.defineProperty(e,t,s)}};function Jt(e){return S(e)?e.reduce((t,s)=>(t[s]=null,t),{}):e}function Tr(e,t){const s=Jt(e);for(const n in t){if(n.startsWith("__skip"))continue;let l=s[n];l?S(l)||L(l)?l=s[n]={type:l,default:t[n]}:l.default=t[n]:l===null&&(l=s[n]={default:t[n]}),l&&t[`__skip_${n}`]&&(l.skipFactory=!0)}return s}let Yt=!0;function ml(e){const t=us(e),s=e.proxy,n=e.ctx;Yt=!1,t.beforeCreate&&vs(t.beforeCreate,e,"bc");const{data:l,computed:r,methods:i,watch:u,provide:c,inject:g,created:a,beforeMount:d,mounted:y,beforeUpdate:x,updated:A,activated:O,deactivated:q,beforeDestroy:V,beforeUnmount:v,destroyed:P,unmounted:B,render:E,renderTracked:M,renderTriggered:D,errorCaptured:U,serverPrefetch:I,expose:H,inheritAttrs:j,components:X,directives:te,filters:re}=t;if(g&&yl(g,n,null),i)for(const G in i){const J=i[G];L(J)&&(n[G]=J.bind(s))}if(l){const G=l.call(s,s);ge(G)&&(e.data=Un(G))}if(Yt=!0,r)for(const G in r){const J=r[G],He=L(J)?J.bind(s,s):L(J.get)?J.get.bind(s,s):Ie,dt=!L(J)&&L(J.set)?J.set.bind(s):Ie,Ne=or({get:He,set:dt});Object.defineProperty(n,G,{enumerable:!0,configurable:!0,get:()=>Ne.value,set:xe=>Ne.value=xe})}if(u)for(const G in u)an(u[G],n,s,G);if(c){const G=L(c)?c.call(s):c;Reflect.ownKeys(G).forEach(J=>{Tl(J,G[J])})}a&&vs(a,e,"c");function Z(G,J){S(J)?J.forEach(He=>G(He.bind(s))):J&&G(J.bind(s))}if(Z(fl,d),Z(rs,y),Z(ul,x),Z(on,A),Z(rl,O),Z(il,q),Z(hl,U),Z(dl,M),Z(al,D),Z(is,v),Z(fn,B),Z(cl,I),S(H))if(H.length){const G=e.exposed||(e.exposed={});H.forEach(J=>{Object.defineProperty(G,J,{get:()=>s[J],set:He=>s[J]=He})})}else e.exposed||(e.exposed={});E&&e.render===Ie&&(e.render=E),j!=null&&(e.inheritAttrs=j),X&&(e.components=X),te&&(e.directives=te),I&&ln(e)}function yl(e,t,s=Ie){S(e)&&(e=Qt(e));for(const n in e){const l=e[n];let r;ge(l)?"default"in l?r=bt(l.from||n,l.default,!0):r=bt(l.from||n):r=bt(l),Ct(r)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[n]=r}}function vs(e,t,s){ve(S(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,s)}function an(e,t,s,n){let l=n.includes(".")?Tn(s,n):()=>s[n];if(ye(e)){const r=t[e];L(r)&&_t(l,r)}else if(L(e))_t(l,e.bind(s));else if(ge(e))if(S(e))e.forEach(r=>an(r,t,s,n));else{const r=L(e.handler)?e.handler.bind(s):t[e.handler];L(r)&&_t(l,r,e)}}function us(e){const t=e.type,{mixins:s,extends:n}=t,{mixins:l,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,u=r.get(t);let c;return u?c=u:!l.length&&!s&&!n?c=t:(c={},l.length&&l.forEach(g=>Et(c,g,i,!0)),Et(c,t,i)),ge(t)&&r.set(t,c),c}function Et(e,t,s,n=!1){const{mixins:l,extends:r}=t;r&&Et(e,r,s,!0),l&&l.forEach(i=>Et(e,i,s,!0));for(const i in t)if(!(n&&i==="expose")){const u=bl[i]||s&&s[i];e[i]=u?u(e[i],t[i]):t[i]}return e}const bl={data:As,props:Is,emits:Is,methods:ze,computed:ze,beforeCreate:ie,created:ie,beforeMount:ie,mounted:ie,beforeUpdate:ie,updated:ie,beforeDestroy:ie,beforeUnmount:ie,destroyed:ie,unmounted:ie,activated:ie,deactivated:ie,errorCaptured:ie,serverPrefetch:ie,components:ze,directives:ze,watch:xl,provide:As,inject:_l};function As(e,t){return t?e?function(){return le(L(e)?e.call(this,this):e,L(t)?t.call(this,this):t)}:t:e}function _l(e,t){return ze(Qt(e),Qt(t))}function Qt(e){if(S(e)){const t={};for(let s=0;s1)return s&&L(t)?t.call(n&&n.proxy):t}}function kr(){return!!(ne||ee||Ue)}const hn={},gn=()=>Object.create(hn),pn=e=>Object.getPrototypeOf(e)===hn;function kl(e,t,s,n=!1){const l={},r=gn();e.propsDefaults=Object.create(null),mn(e,t,l,r);for(const i in e.propsOptions[0])i in l||(l[i]=void 0);s?e.props=n?l:Rn(l):e.type.props?e.props=l:e.props=r,e.attrs=r}function El(e,t,s,n){const{props:l,attrs:r,vnode:{patchFlag:i}}=e,u=Bt(l),[c]=e.propsOptions;let g=!1;if((n||i>0)&&!(i&16)){if(i&8){const a=e.vnode.dynamicProps;for(let d=0;d{c=!0;const[y,x]=yn(d,t,!0);le(i,y),x&&u.push(...x)};!s&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}if(!r&&!c)return ge(e)&&n.set(e,Re),Re;if(S(r))for(let a=0;ae[0]==="_"||e==="$stable",cs=e=>S(e)?e.map(be):[be(e)],Al=(e,t,s)=>{if(t._n)return t;const n=zn((...l)=>cs(t(...l)),s);return n._c=!1,n},_n=(e,t,s)=>{const n=e._ctx;for(const l in e){if(bn(l))continue;const r=e[l];if(L(r))t[l]=Al(l,r,n);else if(r!=null){const i=cs(r);t[l]=()=>i}}},xn=(e,t)=>{const s=cs(t);e.slots.default=()=>s},Cn=(e,t,s)=>{for(const n in t)(s||n!=="_")&&(e[n]=t[n])},Il=(e,t,s)=>{const n=e.slots=gn();if(e.vnode.shapeFlag&32){const l=t._;l?(Cn(n,t,s),s&&Jn(n,"_",l,!0)):_n(t,n)}else t&&xn(e,t)},Ol=(e,t,s)=>{const{vnode:n,slots:l}=e;let r=!0,i=W;if(n.shapeFlag&32){const u=t._;u?s&&u===1?r=!1:Cn(l,t,s):(r=!t.$stable,_n(t,l)),i=t}else t&&(xn(e,t),i={default:1});if(r)for(const u in l)!bn(u)&&i[u]==null&&delete l[u]},z=Gl;function Er(e){return Bl(e)}function Bl(e,t){const s=Pt();s.__VUE__=!0;const{insert:n,remove:l,patchProp:r,createElement:i,createText:u,createComment:c,setText:g,setElementText:a,parentNode:d,nextSibling:y,setScopeId:x=Ie,insertStaticContent:A}=e,O=(o,f,h,b=null,p=null,m=null,T=void 0,F=null,C=!!f.dynamicChildren)=>{if(o===f)return;o&&!_e(o,f)&&(b=ht(o),xe(o,p,m,!0),o=null),f.patchFlag===-2&&(C=!1,f.dynamicChildren=null);const{type:_,ref:N,shapeFlag:k}=f;switch(_){case Nt:q(o,f,h,b);break;case se:V(o,f,h,b);break;case St:o==null&&v(f,h,b,T);break;case he:X(o,f,h,b,p,m,T,F,C);break;default:k&1?E(o,f,h,b,p,m,T,F,C):k&6?te(o,f,h,b,p,m,T,F,C):(k&64||k&128)&&_.process(o,f,h,b,p,m,T,F,C,Qe)}N!=null&&p&&kt(N,o&&o.ref,m,f||o,!f)},q=(o,f,h,b)=>{if(o==null)n(f.el=u(f.children),h,b);else{const p=f.el=o.el;f.children!==o.children&&g(p,f.children)}},V=(o,f,h,b)=>{o==null?n(f.el=c(f.children||""),h,b):f.el=o.el},v=(o,f,h,b)=>{[o.el,o.anchor]=A(o.children,f,h,b,o.el,o.anchor)},P=({el:o,anchor:f},h,b)=>{let p;for(;o&&o!==f;)p=y(o),n(o,h,b),o=p;n(f,h,b)},B=({el:o,anchor:f})=>{let h;for(;o&&o!==f;)h=y(o),l(o),o=h;l(f)},E=(o,f,h,b,p,m,T,F,C)=>{f.type==="svg"?T="svg":f.type==="math"&&(T="mathml"),o==null?M(f,h,b,p,m,T,F,C):I(o,f,p,m,T,F,C)},M=(o,f,h,b,p,m,T,F)=>{let C,_;const{props:N,shapeFlag:k,transition:w,dirs:$}=o;if(C=o.el=i(o.type,m,N&&N.is,N),k&8?a(C,o.children):k&16&&U(o.children,C,null,b,p,Rt(o,m),T,F),$&&$e(o,null,b,"created"),D(C,o,o.scopeId,T,b),N){for(const Y in N)Y!=="value"&&!tt(Y)&&r(C,Y,null,N[Y],m,b);"value"in N&&r(C,"value",null,N.value,m),(_=N.onVnodeBeforeMount)&&me(_,b,o)}$&&$e(o,null,b,"beforeMount");const R=Pl(p,w);R&&w.beforeEnter(C),n(C,f,h),((_=N&&N.onVnodeMounted)||R||$)&&z(()=>{_&&me(_,b,o),R&&w.enter(C),$&&$e(o,null,b,"mounted")},p)},D=(o,f,h,b,p)=>{if(h&&x(o,h),b)for(let m=0;m{for(let _=C;_{const F=f.el=o.el;let{patchFlag:C,dynamicChildren:_,dirs:N}=f;C|=o.patchFlag&16;const k=o.props||W,w=f.props||W;let $;if(h&&Le(h,!1),($=w.onVnodeBeforeUpdate)&&me($,h,f,o),N&&$e(f,o,h,"beforeUpdate"),h&&Le(h,!0),(k.innerHTML&&w.innerHTML==null||k.textContent&&w.textContent==null)&&a(F,""),_?H(o.dynamicChildren,_,F,h,b,Rt(f,p),m):T||J(o,f,F,null,h,b,Rt(f,p),m,!1),C>0){if(C&16)j(F,k,w,h,p);else if(C&2&&k.class!==w.class&&r(F,"class",null,w.class,p),C&4&&r(F,"style",k.style,w.style,p),C&8){const R=f.dynamicProps;for(let Y=0;Y{$&&me($,h,f,o),N&&$e(f,o,h,"updated")},b)},H=(o,f,h,b,p,m,T)=>{for(let F=0;F{if(f!==h){if(f!==W)for(const m in f)!tt(m)&&!(m in h)&&r(o,m,f[m],null,p,b);for(const m in h){if(tt(m))continue;const T=h[m],F=f[m];T!==F&&m!=="value"&&r(o,m,F,T,p,b)}"value"in h&&r(o,"value",f.value,h.value,p)}},X=(o,f,h,b,p,m,T,F,C)=>{const _=f.el=o?o.el:u(""),N=f.anchor=o?o.anchor:u("");let{patchFlag:k,dynamicChildren:w,slotScopeIds:$}=f;$&&(F=F?F.concat($):$),o==null?(n(_,h,b),n(N,h,b),U(f.children||[],h,N,p,m,T,F,C)):k>0&&k&64&&w&&o.dynamicChildren?(H(o.dynamicChildren,w,h,p,m,T,F),(f.key!=null||p&&f===p.subTree)&&as(o,f,!0)):J(o,f,h,N,p,m,T,F,C)},te=(o,f,h,b,p,m,T,F,C)=>{f.slotScopeIds=F,o==null?f.shapeFlag&512?p.ctx.activate(f,h,b,T,C):re(f,h,b,p,m,T,C):Ae(o,f,C)},re=(o,f,h,b,p,m,T)=>{const F=o.component=tr(o,b,p);if(Mt(o)&&(F.ctx.renderer=Qe),sr(F,!1,T),F.asyncDep){if(p&&p.registerDep(F,Z,T),!o.el){const C=F.subTree=fe(se);V(null,C,f,h)}}else Z(F,o,f,h,p,m,T)},Ae=(o,f,h)=>{const b=f.component=o.component;if(jl(o,f,h))if(b.asyncDep&&!b.asyncResolved){G(b,f,h);return}else b.next=f,b.update();else f.el=o.el,b.vnode=f},Z=(o,f,h,b,p,m,T)=>{const F=()=>{if(o.isMounted){let{next:k,bu:w,u:$,parent:R,vnode:Y}=o;{const Fe=Fn(o);if(Fe){k&&(k.el=Y.el,G(o,k,T)),Fe.asyncDep.then(()=>{o.isUnmounted||F()});return}}let K=k,ae;Le(o,!1),k?(k.el=Y.el,G(o,k,T)):k=Y,w&&et(w),(ae=k.props&&k.props.onVnodeBeforeUpdate)&&me(ae,R,k,Y),Le(o,!0);const ue=Bs(o),Ce=o.subTree;o.subTree=ue,O(Ce,ue,d(Ce.el),ht(Ce),o,p,m),k.el=ue.el,K===null&&hs(o,ue.el),$&&z($,p),(ae=k.props&&k.props.onVnodeUpdated)&&z(()=>me(ae,R,k,Y),p)}else{let k;const{el:w,props:$}=f,{bm:R,m:Y,parent:K,root:ae,type:ue}=o,Ce=Ve(f);Le(o,!1),R&&et(R),!Ce&&(k=$&&$.onVnodeBeforeMount)&&me(k,K,f),Le(o,!0);{ae.ce&&ae.ce._injectChildStyle(ue);const Fe=o.subTree=Bs(o);O(null,Fe,h,b,o,p,m),f.el=Fe.el}if(Y&&z(Y,p),!Ce&&(k=$&&$.onVnodeMounted)){const Fe=f;z(()=>me(k,K,Fe),p)}(f.shapeFlag&256||K&&Ve(K.vnode)&&K.vnode.shapeFlag&256)&&o.a&&z(o.a,p),o.isMounted=!0,f=h=b=null}};o.scope.on();const C=o.effect=new Dn(F);o.scope.off();const _=o.update=C.run.bind(C),N=o.job=C.runIfDirty.bind(C);N.i=o,N.id=o.uid,C.scheduler=()=>ls(N),Le(o,!0),_()},G=(o,f,h)=>{f.component=o;const b=o.vnode.props;o.vnode=f,o.next=null,El(o,f.props,b,h),Ol(o,f.children,h),Ge(),xs(o),Je()},J=(o,f,h,b,p,m,T,F,C=!1)=>{const _=o&&o.children,N=o?o.shapeFlag:0,k=f.children,{patchFlag:w,shapeFlag:$}=f;if(w>0){if(w&128){dt(_,k,h,b,p,m,T,F,C);return}else if(w&256){He(_,k,h,b,p,m,T,F,C);return}}$&8?(N&16&&Ye(_,p,m),k!==_&&a(h,k)):N&16?$&16?dt(_,k,h,b,p,m,T,F,C):Ye(_,p,m,!0):(N&8&&a(h,""),$&16&&U(k,h,b,p,m,T,F,C))},He=(o,f,h,b,p,m,T,F,C)=>{o=o||Re,f=f||Re;const _=o.length,N=f.length,k=Math.min(_,N);let w;for(w=0;wN?Ye(o,p,m,!0,!1,k):U(f,h,b,p,m,T,F,C,k)},dt=(o,f,h,b,p,m,T,F,C)=>{let _=0;const N=f.length;let k=o.length-1,w=N-1;for(;_<=k&&_<=w;){const $=o[_],R=f[_]=C?we(f[_]):be(f[_]);if(_e($,R))O($,R,h,null,p,m,T,F,C);else break;_++}for(;_<=k&&_<=w;){const $=o[k],R=f[w]=C?we(f[w]):be(f[w]);if(_e($,R))O($,R,h,null,p,m,T,F,C);else break;k--,w--}if(_>k){if(_<=w){const $=w+1,R=$w)for(;_<=k;)xe(o[_],p,m,!0),_++;else{const $=_,R=_,Y=new Map;for(_=R;_<=w;_++){const de=f[_]=C?we(f[_]):be(f[_]);de.key!=null&&Y.set(de.key,_)}let K,ae=0;const ue=w-R+1;let Ce=!1,Fe=0;const Xe=new Array(ue);for(_=0;_=ue){xe(de,p,m,!0);continue}let Te;if(de.key!=null)Te=Y.get(de.key);else for(K=R;K<=w;K++)if(Xe[K-R]===0&&_e(de,f[K])){Te=K;break}Te===void 0?xe(de,p,m,!0):(Xe[Te-R]=_+1,Te>=Fe?Fe=Te:Ce=!0,O(de,f[Te],h,null,p,m,T,F,C),ae++)}const bs=Ce?Ml(Xe):Re;for(K=bs.length-1,_=ue-1;_>=0;_--){const de=R+_,Te=f[de],_s=de+1{const{el:m,type:T,transition:F,children:C,shapeFlag:_}=o;if(_&6){Ne(o.component.subTree,f,h,b);return}if(_&128){o.suspense.move(f,h,b);return}if(_&64){T.move(o,f,h,Qe);return}if(T===he){n(m,f,h);for(let k=0;kF.enter(m),p);else{const{leave:k,delayLeave:w,afterLeave:$}=F,R=()=>n(m,f,h),Y=()=>{k(m,()=>{R(),$&&$()})};w?w(m,R,Y):Y()}else n(m,f,h)},xe=(o,f,h,b=!1,p=!1)=>{const{type:m,props:T,ref:F,children:C,dynamicChildren:_,shapeFlag:N,patchFlag:k,dirs:w,cacheIndex:$}=o;if(k===-2&&(p=!1),F!=null&&kt(F,null,h,o,!0),$!=null&&(f.renderCache[$]=void 0),N&256){f.ctx.deactivate(o);return}const R=N&1&&w,Y=!Ve(o);let K;if(Y&&(K=T&&T.onVnodeBeforeUnmount)&&me(K,f,o),N&6)wn(o.component,h,b);else{if(N&128){o.suspense.unmount(h,b);return}R&&$e(o,null,f,"beforeUnmount"),N&64?o.type.remove(o,f,h,Qe,b):_&&!_.hasOnce&&(m!==he||k>0&&k&64)?Ye(_,f,h,!1,!0):(m===he&&k&384||!p&&N&16)&&Ye(C,f,h),b&&ms(o)}(Y&&(K=T&&T.onVnodeUnmounted)||R)&&z(()=>{K&&me(K,f,o),R&&$e(o,null,f,"unmounted")},h)},ms=o=>{const{type:f,el:h,anchor:b,transition:p}=o;if(f===he){Mn(h,b);return}if(f===St){B(o);return}const m=()=>{l(h),p&&!p.persisted&&p.afterLeave&&p.afterLeave()};if(o.shapeFlag&1&&p&&!p.persisted){const{leave:T,delayLeave:F}=p,C=()=>T(h,m);F?F(o.el,m,C):C()}else m()},Mn=(o,f)=>{let h;for(;o!==f;)h=y(o),l(o),o=h;l(f)},wn=(o,f,h)=>{const{bum:b,scope:p,job:m,subTree:T,um:F,m:C,a:_}=o;vt(C),vt(_),b&&et(b),p.stop(),m&&(m.flags|=8,xe(T,o,f,h)),F&&z(F,f),z(()=>{o.isUnmounted=!0},f),f&&f.pendingBranch&&!f.isUnmounted&&o.asyncDep&&!o.asyncResolved&&o.suspenseId===f.pendingId&&(f.deps--,f.deps===0&&f.resolve())},Ye=(o,f,h,b=!1,p=!1,m=0)=>{for(let T=m;T{if(o.shapeFlag&6)return ht(o.component.subTree);if(o.shapeFlag&128)return o.suspense.next();const f=y(o.anchor||o.el),h=f&&f[Qs];return h?y(h):f};let Lt=!1;const ys=(o,f,h)=>{o==null?f._vnode&&xe(f._vnode,null,null,!0):O(f._vnode||null,o,f,null,null,null,h),f._vnode=o,Lt||(Lt=!0,xs(),Gs(),Lt=!1)},Qe={p:O,um:xe,m:Ne,r:ms,mt:re,mc:U,pc:J,pbc:H,n:ht,o:e};return{render:ys,hydrate:void 0,createApp:Fl(ys)}}function Rt({type:e,props:t},s){return s==="svg"&&e==="foreignObject"||s==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:s}function Le({effect:e,job:t},s){s?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Pl(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function as(e,t,s=!1){const n=e.children,l=t.children;if(S(n)&&S(l))for(let r=0;r>1,e[s[u]]0&&(t[n]=s[r-1]),s[r]=n)}}for(r=s.length,i=s[r-1];r-- >0;)s[r]=i,i=t[i];return s}function Fn(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Fn(t)}function vt(e){if(e)for(let t=0;tbt(wl);function vr(e,t){return ds(e,null,t)}function _t(e,t,s){return ds(e,t,s)}function ds(e,t,s=W){const{immediate:n,deep:l,flush:r,once:i}=s,u=le({},s),c=t&&n||!t&&r!=="post";let g;if(ot){if(r==="sync"){const x=Hl();g=x.__watcherHandles||(x.__watcherHandles=[])}else if(!c){const x=()=>{};return x.stop=Ie,x.resume=Ie,x.pause=Ie,x}}const a=ne;u.call=(x,A,O)=>ve(x,a,A,O);let d=!1;r==="post"?u.scheduler=x=>{z(x,a&&a.suspense)}:r!=="sync"&&(d=!0,u.scheduler=(x,A)=>{A?x():ls(x)}),u.augmentJob=x=>{t&&(x.flags|=4),d&&(x.flags|=2,a&&(x.id=a.uid,x.i=a))};const y=Nn(e,t,u);return ot&&(g?g.push(y):c&&y()),y}function Nl(e,t,s){const n=this.proxy,l=ye(e)?e.includes(".")?Tn(n,e):()=>n[e]:e.bind(n,n);let r;L(t)?r=t:(r=t.handler,s=t);const i=at(this),u=ds(l,r.bind(n),s);return i(),u}function Tn(e,t){const s=t.split(".");return()=>{let n=e;for(let l=0;lt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ee(t)}Modifiers`]||e[`${ft(t)}Modifiers`];function Ll(e,t,...s){if(e.isUnmounted)return;const n=e.vnode.props||W;let l=s;const r=t.startsWith("update:"),i=r&&$l(n,t.slice(7));i&&(i.trim&&(l=s.map(a=>ye(a)?a.trim():a)),i.number&&(l=s.map(Yn)));let u,c=n[u=Vt(t)]||n[u=Vt(Ee(t))];!c&&r&&(c=n[u=Vt(ft(t))]),c&&ve(c,e,6,l);const g=n[u+"Once"];if(g){if(!e.emitted)e.emitted={};else if(e.emitted[u])return;e.emitted[u]=!0,ve(g,e,6,l)}}function kn(e,t,s=!1){const n=t.emitsCache,l=n.get(e);if(l!==void 0)return l;const r=e.emits;let i={},u=!1;if(!L(e)){const c=g=>{const a=kn(g,t,!0);a&&(u=!0,le(i,a))};!s&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!r&&!u?(ge(e)&&n.set(e,null),null):(S(r)?r.forEach(c=>i[c]=null):le(i,r),ge(e)&&n.set(e,i),i)}function Ht(e,t){return!e||!ns(t)?!1:(t=t.slice(2).replace(/Once$/,""),Q(e,t[0].toLowerCase()+t.slice(1))||Q(e,ft(t))||Q(e,t))}function Bs(e){const{type:t,vnode:s,proxy:n,withProxy:l,propsOptions:[r],slots:i,attrs:u,emit:c,render:g,renderCache:a,props:d,data:y,setupState:x,ctx:A,inheritAttrs:O}=e,q=Tt(e);let V,v;try{if(s.shapeFlag&4){const B=l||n,E=B;V=be(g.call(E,B,a,d,x,y,A)),v=u}else{const B=t;V=be(B.length>1?B(d,{attrs:u,slots:i,emit:c}):B(d,null)),v=t.props?u:Ul(u)}}catch(B){lt.length=0,ct(B,e,1),V=fe(se)}let P=V;if(v&&O!==!1){const B=Object.keys(v),{shapeFlag:E}=P;B.length&&E&7&&(r&&B.some(Ks)&&(v=Dl(v,r)),P=Oe(P,v,!1,!0))}return s.dirs&&(P=Oe(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(s.dirs):s.dirs),s.transition&&We(P,s.transition),V=P,Tt(q),V}function Vl(e,t=!0){let s;for(let n=0;n{let t;for(const s in e)(s==="class"||s==="style"||ns(s))&&((t||(t={}))[s]=e[s]);return t},Dl=(e,t)=>{const s={};for(const n in e)(!Ks(n)||!(n.slice(9)in t))&&(s[n]=e[n]);return s};function jl(e,t,s){const{props:n,children:l,component:r}=e,{props:i,children:u,patchFlag:c}=t,g=r.emitsOptions;if(t.dirs||t.transition)return!0;if(s&&c>=0){if(c&1024)return!0;if(c&16)return n?Ps(n,i,g):!!i;if(c&8){const a=t.dynamicProps;for(let d=0;de.__isSuspense;let Zt=0;const Rl={name:"Suspense",__isSuspense:!0,process(e,t,s,n,l,r,i,u,c,g){if(e==null)Sl(t,s,n,l,r,i,u,c,g);else{if(r&&r.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}Kl(e,t,s,n,l,i,u,c,g)}},hydrate:Wl,normalize:ql},Ar=Rl;function it(e,t){const s=e.props&&e.props[t];L(s)&&s()}function Sl(e,t,s,n,l,r,i,u,c){const{p:g,o:{createElement:a}}=c,d=a("div"),y=e.suspense=En(e,l,n,t,d,s,r,i,u,c);g(null,y.pendingBranch=e.ssContent,d,null,n,y,r,i),y.deps>0?(it(e,"onPending"),it(e,"onFallback"),g(null,e.ssFallback,t,s,n,null,r,i),Ke(y,e.ssFallback)):y.resolve(!1,!0)}function Kl(e,t,s,n,l,r,i,u,{p:c,um:g,o:{createElement:a}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const y=t.ssContent,x=t.ssFallback,{activeBranch:A,pendingBranch:O,isInFallback:q,isHydrating:V}=d;if(O)d.pendingBranch=y,_e(y,O)?(c(O,y,d.hiddenContainer,null,l,d,r,i,u),d.deps<=0?d.resolve():q&&(V||(c(A,x,s,n,l,null,r,i,u),Ke(d,x)))):(d.pendingId=Zt++,V?(d.isHydrating=!1,d.activeBranch=O):g(O,l,d),d.deps=0,d.effects.length=0,d.hiddenContainer=a("div"),q?(c(null,y,d.hiddenContainer,null,l,d,r,i,u),d.deps<=0?d.resolve():(c(A,x,s,n,l,null,r,i,u),Ke(d,x))):A&&_e(y,A)?(c(A,y,s,n,l,d,r,i,u),d.resolve(!0)):(c(null,y,d.hiddenContainer,null,l,d,r,i,u),d.deps<=0&&d.resolve()));else if(A&&_e(y,A))c(A,y,s,n,l,d,r,i,u),Ke(d,y);else if(it(t,"onPending"),d.pendingBranch=y,y.shapeFlag&512?d.pendingId=y.component.suspenseId:d.pendingId=Zt++,c(null,y,d.hiddenContainer,null,l,d,r,i,u),d.deps<=0)d.resolve();else{const{timeout:v,pendingId:P}=d;v>0?setTimeout(()=>{d.pendingId===P&&d.fallback(x)},v):v===0&&d.fallback(x)}}function En(e,t,s,n,l,r,i,u,c,g,a=!1){const{p:d,m:y,um:x,n:A,o:{parentNode:O,remove:q}}=g;let V;const v=Jl(e);v&&t&&t.pendingBranch&&(V=t.pendingId,t.deps++);const P=e.props?qn(e.props.timeout):void 0,B=r,E={vnode:e,parent:t,parentComponent:s,namespace:i,container:n,hiddenContainer:l,deps:0,pendingId:Zt++,timeout:typeof P=="number"?P:-1,activeBranch:null,pendingBranch:null,isInFallback:!a,isHydrating:a,isUnmounted:!1,effects:[],resolve(M=!1,D=!1){const{vnode:U,activeBranch:I,pendingBranch:H,pendingId:j,effects:X,parentComponent:te,container:re}=E;let Ae=!1;E.isHydrating?E.isHydrating=!1:M||(Ae=I&&H.transition&&H.transition.mode==="out-in",Ae&&(I.transition.afterLeave=()=>{j===E.pendingId&&(y(H,re,r===B?A(I):r,0),Kt(X))}),I&&(O(I.el)===re&&(r=A(I)),x(I,te,E,!0)),Ae||y(H,re,r,0)),Ke(E,H),E.pendingBranch=null,E.isInFallback=!1;let Z=E.parent,G=!1;for(;Z;){if(Z.pendingBranch){Z.effects.push(...X),G=!0;break}Z=Z.parent}!G&&!Ae&&Kt(X),E.effects=[],v&&t&&t.pendingBranch&&V===t.pendingId&&(t.deps--,t.deps===0&&!D&&t.resolve()),it(U,"onResolve")},fallback(M){if(!E.pendingBranch)return;const{vnode:D,activeBranch:U,parentComponent:I,container:H,namespace:j}=E;it(D,"onFallback");const X=A(U),te=()=>{E.isInFallback&&(d(null,M,H,X,I,null,j,u,c),Ke(E,M))},re=M.transition&&M.transition.mode==="out-in";re&&(U.transition.afterLeave=te),E.isInFallback=!0,x(U,I,null,!0),re||te()},move(M,D,U){E.activeBranch&&y(E.activeBranch,M,D,U),E.container=M},next(){return E.activeBranch&&A(E.activeBranch)},registerDep(M,D,U){const I=!!E.pendingBranch;I&&E.deps++;const H=M.vnode.el;M.asyncDep.catch(j=>{ct(j,M,0)}).then(j=>{if(M.isUnmounted||E.isUnmounted||E.pendingId!==M.suspenseId)return;M.asyncResolved=!0;const{vnode:X}=M;ts(M,j,!1),H&&(X.el=H);const te=!H&&M.subTree.el;D(M,X,O(H||M.subTree.el),H?null:A(M.subTree),E,i,U),te&&q(te),hs(M,X.el),I&&--E.deps===0&&E.resolve()})},unmount(M,D){E.isUnmounted=!0,E.activeBranch&&x(E.activeBranch,s,M,D),E.pendingBranch&&x(E.pendingBranch,s,M,D)}};return E}function Wl(e,t,s,n,l,r,i,u,c){const g=t.suspense=En(t,n,s,e.parentNode,document.createElement("div"),null,l,r,i,u,!0),a=c(e,g.pendingBranch=t.ssContent,s,g,r,i);return g.deps===0&&g.resolve(!1,!0),a}function ql(e){const{shapeFlag:t,children:s}=e,n=t&32;e.ssContent=Ms(n?s.default:s),e.ssFallback=n?Ms(s.fallback):fe(se)}function Ms(e){let t;if(L(e)){const s=qe&&e._c;s&&(e._d=!1,It()),e=e(),s&&(e._d=!0,t=ce,vn())}return S(e)&&(e=Vl(e)),e=be(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(s=>s!==e)),e}function Gl(e,t){t&&t.pendingBranch?S(e)?t.effects.push(...e):t.effects.push(e):Kt(e)}function Ke(e,t){e.activeBranch=t;const{vnode:s,parentComponent:n}=e;let l=t.el;for(;!l&&t.component;)t=t.component.subTree,l=t.el;s.el=l,n&&n.subTree===s&&(n.vnode.el=l,hs(n,l))}function Jl(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const he=Symbol.for("v-fgt"),Nt=Symbol.for("v-txt"),se=Symbol.for("v-cmt"),St=Symbol.for("v-stc"),lt=[];let ce=null;function It(e=!1){lt.push(ce=e?null:[])}function vn(){lt.pop(),ce=lt[lt.length-1]||null}let qe=1;function ws(e,t=!1){qe+=e,e<0&&ce&&t&&(ce.hasOnce=!0)}function An(e){return e.dynamicChildren=qe>0?ce||Re:null,vn(),qe>0&&ce&&ce.push(e),e}function Ir(e,t,s,n,l,r){return An(On(e,t,s,n,l,r,!0))}function zt(e,t,s,n,l){return An(fe(e,t,s,n,l,!0))}function De(e){return e?e.__v_isVNode===!0:!1}function _e(e,t){return e.type===t.type&&e.key===t.key}const In=({key:e})=>e??null,xt=({ref:e,ref_key:t,ref_for:s})=>(typeof e=="number"&&(e=""+e),e!=null?ye(e)||Ct(e)||L(e)?{i:ee,r:e,k:t,f:!!s}:e:null);function On(e,t=null,s=null,n=0,l=null,r=e===he?0:1,i=!1,u=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&In(t),ref:t&&xt(t),scopeId:Ys,slotScopeIds:null,children:s,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:n,dynamicProps:l,dynamicChildren:null,appContext:null,ctx:ee};return u?(gs(c,s),r&128&&e.normalize(c)):s&&(c.shapeFlag|=ye(s)?8:16),qe>0&&!i&&ce&&(c.patchFlag>0||r&6)&&c.patchFlag!==32&&ce.push(c),c}const fe=Yl;function Yl(e,t=null,s=null,n=0,l=null,r=!1){if((!e||e===un)&&(e=se),De(e)){const u=Oe(e,t,!0);return s&&gs(u,s),qe>0&&!r&&ce&&(u.shapeFlag&6?ce[ce.indexOf(e)]=u:ce.push(u)),u.patchFlag=-2,u}if(ir(e)&&(e=e.__vccOpts),t){t=Ql(t);let{class:u,style:c}=t;u&&!ye(u)&&(t.class=Us(u)),ge(c)&&($s(c)&&!S(c)&&(c=le({},c)),t.style=Ds(c))}const i=ye(e)?1:At(e)?128:Xs(e)?64:ge(e)?4:L(e)?2:0;return On(e,t,s,n,l,i,r,!0)}function Ql(e){return e?$s(e)||pn(e)?le({},e):e:null}function Oe(e,t,s=!1,n=!1){const{props:l,ref:r,patchFlag:i,children:u,transition:c}=e,g=t?Zl(l||{},t):l,a={__v_isVNode:!0,__v_skip:!0,type:e.type,props:g,key:g&&In(g),ref:t&&t.ref?s&&r?S(r)?r.concat(xt(t)):[r,xt(t)]:xt(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:u,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==he?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Oe(e.ssContent),ssFallback:e.ssFallback&&Oe(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&n&&We(a,c.clone(a)),a}function Xl(e=" ",t=0){return fe(Nt,null,e,t)}function Or(e="",t=!1){return t?(It(),zt(se,null,e)):fe(se,null,e)}function be(e){return e==null||typeof e=="boolean"?fe(se):S(e)?fe(he,null,e.slice()):De(e)?we(e):fe(Nt,null,String(e))}function we(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Oe(e)}function gs(e,t){let s=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(S(t))s=16;else if(typeof t=="object")if(n&65){const l=t.default;l&&(l._c&&(l._d=!1),gs(e,l()),l._c&&(l._d=!0));return}else{s=32;const l=t._;!l&&!pn(t)?t._ctx=ee:l===3&&ee&&(ee.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else L(t)?(t={default:t,_ctx:ee},s=32):(t=String(t),n&64?(s=16,t=[Xl(t)]):s=8);e.children=t,e.shapeFlag|=s}function Zl(...e){const t={};for(let s=0;sne||ee;let Ot,es;{const e=Pt(),t=(s,n)=>{let l;return(l=e[s])||(l=e[s]=[]),l.push(n),r=>{l.length>1?l.forEach(i=>i(r)):l[0](r)}};Ot=t("__VUE_INSTANCE_SETTERS__",s=>ne=s),es=t("__VUE_SSR_SETTERS__",s=>ot=s)}const at=e=>{const t=ne;return Ot(e),e.scope.on(),()=>{e.scope.off(),Ot(t)}},Hs=()=>{ne&&ne.scope.off(),Ot(null)};function Bn(e){return e.vnode.shapeFlag&4}let ot=!1;function sr(e,t=!1,s=!1){t&&es(t);const{props:n,children:l}=e.vnode,r=Bn(e);kl(e,n,r,t),Il(e,l,s);const i=r?nr(e,t):void 0;return t&&es(!1),i}function nr(e,t){const s=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,pl);const{setup:n}=s;if(n){Ge();const l=e.setupContext=n.length>1?rr(e):null,r=at(e),i=ut(n,e,0,[e.props,l]),u=Rs(i);if(Je(),r(),(u||e.sp)&&!Ve(e)&&ln(e),u){if(i.then(Hs,Hs),t)return i.then(c=>{ts(e,c,t)}).catch(c=>{ct(c,e,0)});e.asyncDep=i}else ts(e,i,t)}else Pn(e,t)}function ts(e,t,s){L(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ge(t)&&(e.setupState=Ls(t)),Pn(e,s)}let Ns;function Pn(e,t,s){const n=e.type;if(!e.render){if(!t&&Ns&&!n.render){const l=n.template||us(e).template;if(l){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:u,compilerOptions:c}=n,g=le(le({isCustomElement:r,delimiters:u},i),c);n.render=Ns(l,g)}}e.render=n.render||Ie}{const l=at(e);Ge();try{ml(e)}finally{Je(),l()}}}const lr={get(e,t){return Vs(e,"get",""),e[t]}};function rr(e){const t=s=>{e.exposed=s||{}};return{attrs:new Proxy(e.attrs,lr),slots:e.slots,emit:e.emit,expose:t}}function $t(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Ls(Vn(e.exposed)),{get(t,s){if(s in t)return t[s];if(s in nt)return nt[s](e)},has(t,s){return s in t||s in nt}})):e.proxy}function ss(e,t=!0){return L(e)?e.displayName||e.name:e.name||t&&e.__name}function ir(e){return L(e)&&"__vccOpts"in e}const or=(e,t)=>$n(e,t,ot);function Br(e,t,s){const n=arguments.length;return n===2?ge(t)&&!S(t)?De(t)?fe(e,null,[t]):fe(e,t):fe(e,null,t):(n>3?s=Array.prototype.slice.call(arguments,2):n===3&&De(s)&&(s=[s]),fe(e,t,s))}const fr="3.5.13";export{Ir as A,pr as B,zn as C,_r as D,It as E,he as F,zt as G,xr as H,Or as I,Xl as J,br as K,rl as L,il as M,se as N,hr as O,Oe as P,Nt as Q,fn as R,Ar as S,gr as T,Fr as U,Cr as V,sl as a,fe as b,Er as c,ps as d,ve as e,or as f,nn as g,Br as h,bt as i,vr as j,kr as k,rs as l,mr as m,Xn as n,on as o,Zl as p,De as q,qt as r,We as s,yr as t,tl as u,fl as v,_t as w,is as x,Tl as y,Tr as z};
diff --git a/js/@vue_runtime-core@3.5.13-pPpmd6wL.js.gz b/js/@vue_runtime-core@3.5.13-pPpmd6wL.js.gz
new file mode 100644
index 00000000..d5c59387
Binary files /dev/null and b/js/@vue_runtime-core@3.5.13-pPpmd6wL.js.gz differ
diff --git a/js/@vue_runtime-dom@3.5.13-CwqXTXrC.js.gz b/js/@vue_runtime-dom@3.5.13-CwqXTXrC.js.gz
deleted file mode 100644
index 82126f7b..00000000
Binary files a/js/@vue_runtime-dom@3.5.13-CwqXTXrC.js.gz and /dev/null differ
diff --git a/js/@vue_runtime-dom@3.5.13-CwqXTXrC.js b/js/@vue_runtime-dom@3.5.13-DJqlZTHq.js
similarity index 98%
rename from js/@vue_runtime-dom@3.5.13-CwqXTXrC.js
rename to js/@vue_runtime-dom@3.5.13-DJqlZTHq.js
index 0cc66371..5064b82b 100644
--- a/js/@vue_runtime-dom@3.5.13-CwqXTXrC.js
+++ b/js/@vue_runtime-dom@3.5.13-DJqlZTHq.js
@@ -1,4 +1,4 @@
-import{h as Pt,B as Dt,c as It,a as yt,u as $t,o as Ot,F as Rt,g as Ht,s as j,r as V,b as Bt,d as xt,e as Ft}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{c as ut,o as N,e as I,a as Gt,b as y,A as zt,s as Wt,H as qt,v as dt,D as pt,w as Kt,I as mt,i as Ut,J as jt}from"./@vue_shared@3.5.13-DbMIZLZJ.js";import{d as Vt}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";/**
+import{h as Pt,B as Dt,c as It,a as yt,u as $t,o as Ot,F as Rt,g as Ht,s as j,r as V,b as Bt,d as xt,e as Ft}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{b as ut,o as N,e as I,a as Gt,c as y,A as zt,s as Wt,H as qt,v as dt,D as pt,w as Kt,I as mt,i as Ut,J as jt}from"./@vue_shared@3.5.13-CQ6Z-5d1.js";import{d as Vt}from"./@vue_reactivity@3.5.13-CVvlldVq.js";/**
* @vue/runtime-dom v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
diff --git a/js/@vue_runtime-dom@3.5.13-DJqlZTHq.js.gz b/js/@vue_runtime-dom@3.5.13-DJqlZTHq.js.gz
new file mode 100644
index 00000000..3962e839
Binary files /dev/null and b/js/@vue_runtime-dom@3.5.13-DJqlZTHq.js.gz differ
diff --git a/js/@vue_shared@3.5.13-DbMIZLZJ.js b/js/@vue_shared@3.5.13-CQ6Z-5d1.js
similarity index 97%
rename from js/@vue_shared@3.5.13-DbMIZLZJ.js
rename to js/@vue_shared@3.5.13-CQ6Z-5d1.js
index 640714b0..6290ad84 100644
--- a/js/@vue_shared@3.5.13-DbMIZLZJ.js
+++ b/js/@vue_shared@3.5.13-CQ6Z-5d1.js
@@ -2,4 +2,4 @@
* @vue/shared v3.5.13
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
-**//*! #__NO_SIDE_EFFECTS__ */function d(t){const e=Object.create(null);for(const n of t.split(","))e[n]=1;return n=>n in e}const E={},R=[],T=()=>{},B=()=>!1,P=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),z=t=>t.startsWith("onUpdate:"),M=Object.assign,U=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},u=Object.prototype.hasOwnProperty,x=(t,e)=>u.call(t,e),m=Array.isArray,V=t=>r(t)==="[object Map]",_=t=>r(t)==="[object Set]",F=t=>r(t)==="[object RegExp]",a=t=>typeof t=="function",s=t=>typeof t=="string",D=t=>typeof t=="symbol",l=t=>t!==null&&typeof t=="object",I=t=>(l(t)||a(t))&&a(t.then)&&a(t.catch),h=Object.prototype.toString,r=t=>h.call(t),G=t=>r(t).slice(8,-1),H=t=>r(t)==="[object Object]",J=t=>s(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,K=d(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),c=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},b=/-(\w)/g,L=c(t=>t.replace(b,(e,n)=>n?n.toUpperCase():"")),g=/\B([A-Z])/g,Y=c(t=>t.replace(g,"-$1").toLowerCase()),y=c(t=>t.charAt(0).toUpperCase()+t.slice(1)),$=c(t=>t?`on${y(t)}`:""),q=(t,e)=>!Object.is(t,e),W=(t,...e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:o,value:n})},k=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Q=t=>{const e=s(t)?Number(t):NaN;return isNaN(e)?t:e};let p;const X=()=>p||(p=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function O(t){if(m(t)){const e={};for(let n=0;n{if(n){const o=n.split(A);o.length>1&&(e[o[0].trim()]=o[1].trim())}}),e}function S(t){let e="";if(s(t))e=t;else if(m(t))for(let n=0;nn in e}const E={},R=[],T=()=>{},B=()=>!1,P=t=>t.charCodeAt(0)===111&&t.charCodeAt(1)===110&&(t.charCodeAt(2)>122||t.charCodeAt(2)<97),z=t=>t.startsWith("onUpdate:"),M=Object.assign,U=(t,e)=>{const n=t.indexOf(e);n>-1&&t.splice(n,1)},u=Object.prototype.hasOwnProperty,x=(t,e)=>u.call(t,e),m=Array.isArray,V=t=>r(t)==="[object Map]",_=t=>r(t)==="[object Set]",F=t=>r(t)==="[object RegExp]",a=t=>typeof t=="function",s=t=>typeof t=="string",D=t=>typeof t=="symbol",l=t=>t!==null&&typeof t=="object",I=t=>(l(t)||a(t))&&a(t.then)&&a(t.catch),h=Object.prototype.toString,r=t=>h.call(t),G=t=>r(t).slice(8,-1),H=t=>r(t)==="[object Object]",J=t=>s(t)&&t!=="NaN"&&t[0]!=="-"&&""+parseInt(t,10)===t,K=d(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),c=t=>{const e=Object.create(null);return n=>e[n]||(e[n]=t(n))},b=/-(\w)/g,L=c(t=>t.replace(b,(e,n)=>n?n.toUpperCase():"")),g=/\B([A-Z])/g,Y=c(t=>t.replace(g,"-$1").toLowerCase()),y=c(t=>t.charAt(0).toUpperCase()+t.slice(1)),$=c(t=>t?`on${y(t)}`:""),q=(t,e)=>!Object.is(t,e),W=(t,...e)=>{for(let n=0;n{Object.defineProperty(t,e,{configurable:!0,enumerable:!1,writable:o,value:n})},k=t=>{const e=parseFloat(t);return isNaN(e)?t:e},Q=t=>{const e=s(t)?Number(t):NaN;return isNaN(e)?t:e};let p;const X=()=>p||(p=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function O(t){if(m(t)){const e={};for(let n=0;n{if(n){const o=n.split(A);o.length>1&&(e[o[0].trim()]=o[1].trim())}}),e}function S(t){let e="";if(s(t))e=t;else if(m(t))for(let n=0;n{l.forEach(d=>d()),l.length=0},c=(d,a,f,w)=>(d.addEventListener(a,f,w),()=>d.removeEventListener(a,f,w)),h=L(()=>[O(n),M(i)],([d,a])=>{if(m(),!d)return;const f=U(a)?{...a}:a;l.push(...r.flatMap(w=>s.map(g=>c(d,w,g,f))))},{immediate:!0,flush:"post"}),p=()=>{h(),m()};return D(p),p}let B=!1;function we(e,n,r={}){const{window:s=T,ignore:i=[],capture:l=!0,detectIframe:m=!1}=r;if(!s)return I;X&&!B&&(B=!0,Array.from(s.document.body.children).forEach(t=>t.addEventListener("click",I)),s.document.documentElement.addEventListener("click",I));let c=!0;const h=t=>M(i).some(o=>{if(typeof o=="string")return Array.from(s.document.querySelectorAll(o)).some(v=>v===t.target||t.composedPath().includes(v));{const v=O(o);return v&&(t.target===v||t.composedPath().includes(v))}});function p(t){const o=M(t);return o&&o.$.subTree.shapeFlag===16}function d(t,o){const v=M(t),y=v.$.subTree&&v.$.subTree.children;return y==null||!Array.isArray(y)?!1:y.some(z=>z.el===o.target||o.composedPath().includes(z.el))}const a=t=>{const o=O(e);if(t.target!=null&&!(!(o instanceof Element)&&p(e)&&d(e,t))&&!(!o||o===t.target||t.composedPath().includes(o))){if(t.detail===0&&(c=!h(t)),!c){c=!0;return}n(t)}};let f=!1;const w=[_(s,"click",t=>{f||(f=!0,setTimeout(()=>{f=!1},0),a(t))},{passive:!0,capture:l}),_(s,"pointerdown",t=>{const o=O(e);c=!h(t)&&!!(o&&!t.composedPath().includes(o))},{passive:!0}),m&&_(s,"blur",t=>{setTimeout(()=>{var o;const v=O(e);((o=s.document.activeElement)==null?void 0:o.tagName)==="IFRAME"&&!(v!=null&&v.contains(s.document.activeElement))&&n(t)},0)})].filter(Boolean);return()=>w.forEach(t=>t())}function oe(){const e=A(!1),n=re();return n&&ne(()=>{e.value=!0},n),e}function x(e){const n=oe();return k(()=>(n.value,!!e()))}function se(e,n,r={}){const{window:s=T,...i}=r;let l;const m=x(()=>s&&"MutationObserver"in s),c=()=>{l&&(l.disconnect(),l=void 0)},h=k(()=>{const f=M(e),w=(Array.isArray(f)?f:[f]).map(O).filter($);return new Set(w)}),p=L(()=>h.value,f=>{c(),m.value&&f.size&&(l=new MutationObserver(n),f.forEach(w=>l.observe(w,i)))},{immediate:!0,flush:"post"}),d=()=>l==null?void 0:l.takeRecords(),a=()=>{p(),c()};return D(a),{isSupported:m,stop:a,takeRecords:d}}function q(e,n={}){const{window:r=T}=n,s=x(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function");let i;const l=A(!1),m=p=>{l.value=p.matches},c=()=>{i&&("removeEventListener"in i?i.removeEventListener("change",m):i.removeListener(m))},h=te(()=>{s.value&&(c(),i=r.matchMedia(M(e)),"addEventListener"in i?i.addEventListener("change",m):i.addListener(m),l.value=i.matches)});return D(()=>{h(),c(),i=void 0}),l}const j=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},H="__vueuse_ssr_handlers__",ie=ae();function ae(){return H in j||(j[H]=j[H]||{}),j[H]}function K(e,n){return ie[e]||n}function ue(e){return q("(prefers-color-scheme: dark)",e)}function le(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const ce={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},J="vueuse-storage";function de(e,n,r,s={}){var i;const{flush:l="pre",deep:m=!0,listenToStorageChanges:c=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:d,window:a=T,eventFilter:f,onError:w=u=>{console.error(u)},initOnMounted:g}=s,t=(d?Z:A)(typeof n=="function"?n():n);if(!r)try{r=K("getDefaultStorage",()=>{var u;return(u=T)==null?void 0:u.localStorage})()}catch(u){w(u)}if(!r)return t;const o=M(n),v=le(o),y=(i=s.serializer)!=null?i:ce[v],{pause:z,resume:E}=Q(t,()=>F(t.value),{flush:l,deep:m,eventFilter:f});a&&c&&V(()=>{r instanceof Storage?_(a,"storage",N):_(a,J,W),g&&N()}),g||N();function C(u,b){if(a){const S={key:e,oldValue:u,newValue:b,storageArea:r};a.dispatchEvent(r instanceof Storage?new StorageEvent("storage",S):new CustomEvent(J,{detail:S}))}}function F(u){try{const b=r.getItem(e);if(u==null)C(b,null),r.removeItem(e);else{const S=y.write(u);b!==S&&(r.setItem(e,S),C(b,S))}}catch(b){w(b)}}function R(u){const b=u?u.newValue:r.getItem(e);if(b==null)return h&&o!=null&&r.setItem(e,y.write(o)),o;if(!u&&p){const S=y.read(b);return typeof p=="function"?p(S,o):v==="object"&&!Array.isArray(S)?{...o,...S}:S}else return typeof b!="string"?b:y.read(b)}function N(u){if(!(u&&u.storageArea!==r)){if(u&&u.key==null){t.value=o;return}if(!(u&&u.key!==e)){z();try{(u==null?void 0:u.newValue)!==y.write(t.value)&&(t.value=R(u))}catch(b){w(b)}finally{u?ee(E):E()}}}}function W(u){N(u.detail)}return t}const fe="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function ge(e={}){const{selector:n="html",attribute:r="class",initialValue:s="auto",window:i=T,storage:l,storageKey:m="vueuse-color-scheme",listenToStorageChanges:c=!0,storageRef:h,emitAuto:p,disableTransition:d=!0}=e,a={auto:"",light:"light",dark:"dark",...e.modes||{}},f=ue({window:i}),w=k(()=>f.value?"dark":"light"),g=h||(m==null?G(s):de(m,s,l,{window:i,listenToStorageChanges:c})),t=k(()=>g.value==="auto"?w.value:g.value),o=K("updateHTMLAttrs",(E,C,F)=>{const R=typeof E=="string"?i==null?void 0:i.document.querySelector(E):O(E);if(!R)return;const N=new Set,W=new Set;let u=null;if(C==="class"){const S=F.split(/\s/g);Object.values(a).flatMap(P=>(P||"").split(/\s/g)).filter(Boolean).forEach(P=>{S.includes(P)?N.add(P):W.add(P)})}else u={key:C,value:F};if(N.size===0&&W.size===0&&u===null)return;let b;d&&(b=i.document.createElement("style"),b.appendChild(document.createTextNode(fe)),i.document.head.appendChild(b));for(const S of N)R.classList.add(S);for(const S of W)R.classList.remove(S);u&&R.setAttribute(u.key,u.value),d&&(i.getComputedStyle(b).opacity,document.head.removeChild(b))});function v(E){var C;o(n,r,(C=a[E])!=null?C:E)}function y(E){e.onChanged?e.onChanged(E,v):v(E)}L(t,y,{flush:"post",immediate:!0}),V(()=>y(t.value));const z=k({get(){return p?g.value:t.value},set(E){g.value=E}});return Object.assign(z,{store:g,system:w,state:t})}function me(e,n,r={}){const{window:s=T,...i}=r;let l;const m=x(()=>s&&"ResizeObserver"in s),c=()=>{l&&(l.disconnect(),l=void 0)},h=k(()=>{const a=M(e);return Array.isArray(a)?a.map(f=>O(f)):[O(a)]}),p=L(h,a=>{if(c(),m.value&&s){l=new ResizeObserver(n);for(const f of a)f&&l.observe(f,i)}},{immediate:!0,flush:"post"}),d=()=>{c(),p()};return D(d),{isSupported:m,stop:d}}function ye(e,n={}){const{reset:r=!0,windowResize:s=!0,windowScroll:i=!0,immediate:l=!0,updateTiming:m="sync"}=n,c=A(0),h=A(0),p=A(0),d=A(0),a=A(0),f=A(0),w=A(0),g=A(0);function t(){const v=O(e);if(!v){r&&(c.value=0,h.value=0,p.value=0,d.value=0,a.value=0,f.value=0,w.value=0,g.value=0);return}const y=v.getBoundingClientRect();c.value=y.height,h.value=y.bottom,p.value=y.left,d.value=y.right,a.value=y.top,f.value=y.width,w.value=y.x,g.value=y.y}function o(){m==="sync"?t():m==="next-frame"&&requestAnimationFrame(()=>t())}return me(e,o),L(()=>O(e),v=>!v&&o()),se(e,o,{attributeFilter:["style","class"]}),i&&_("scroll",o,{capture:!0,passive:!0}),s&&_("resize",o,{passive:!0}),V(()=>{l&&o()}),{height:c,bottom:h,left:p,right:d,top:a,width:f,x:w,y:g,update:o}}function be(e,n,r={}){const{root:s,rootMargin:i="0px",threshold:l=0,window:m=T,immediate:c=!0}=r,h=x(()=>m&&"IntersectionObserver"in m),p=k(()=>{const g=M(e);return(Array.isArray(g)?g:[g]).map(O).filter($)});let d=I;const a=A(c),f=h.value?L(()=>[p.value,O(s),a.value],([g,t])=>{if(d(),!a.value||!g.length)return;const o=new IntersectionObserver(n,{root:O(t),rootMargin:i,threshold:l});g.forEach(v=>v&&o.observe(v)),d=()=>{o.disconnect(),d=I}},{immediate:c,flush:"post"}):I,w=()=>{d(),f(),a.value=!1};return D(w),{isSupported:h,isActive:a,pause(){d(),a.value=!1},resume(){a.value=!0},stop:w}}function Se(e={}){const{window:n=T,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:s=Number.POSITIVE_INFINITY,listenOrientation:i=!0,includeScrollbar:l=!0,type:m="inner"}=e,c=A(r),h=A(s),p=()=>{n&&(m==="outer"?(c.value=n.outerWidth,h.value=n.outerHeight):l?(c.value=n.innerWidth,h.value=n.innerHeight):(c.value=n.document.documentElement.clientWidth,h.value=n.document.documentElement.clientHeight))};if(p(),V(p),_("resize",p,{passive:!0}),i){const d=q("(orientation: portrait)");L(d,()=>p())}return{width:c,height:h}}export{be as a,me as b,ge as c,de as d,ye as e,Se as f,we as o,_ as u};
diff --git a/js/@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js.gz b/js/@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js.gz
deleted file mode 100644
index 1cdfc635..00000000
Binary files a/js/@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js.gz and /dev/null differ
diff --git a/js/@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js b/js/@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js
new file mode 100644
index 00000000..73235fda
--- /dev/null
+++ b/js/@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js
@@ -0,0 +1 @@
+import{w as G,t as H,i as U,n as L,a as X,b as F,c as Z,p as J,d as Q,e as ee,f as j,g as te}from"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import{s as ne,k as E,l as M}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import{f as W,w as _,n as se,j as re,k as oe,l as ie,d as ae}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";const T=U?window:void 0;function O(e){var s;const o=M(e);return(s=o==null?void 0:o.$el)!=null?s:o}function N(...e){let s,o,i,h;if(typeof e[0]=="string"||Array.isArray(e[0])?([o,i,h]=e,s=T):[s,o,i,h]=e,!s)return L;o=F(o),i=F(i);const f=[],a=()=>{f.forEach(l=>l()),f.length=0},u=(l,r,c,w)=>(l.addEventListener(r,c,w),()=>l.removeEventListener(r,c,w)),m=_(()=>[O(s),M(h)],([l,r])=>{if(a(),!l)return;const c=Z(r)?{...r}:r;f.push(...o.flatMap(w=>i.map(g=>u(l,w,g,c))))},{immediate:!0,flush:"post"}),v=()=>{m(),a()};return j(v),v}let $=!1;function Oe(e,s,o={}){const{window:i=T,ignore:h=[],capture:f=!0,detectIframe:a=!1}=o;if(!i)return L;te&&!$&&($=!0,Array.from(i.document.body.children).forEach(t=>t.addEventListener("click",L)),i.document.documentElement.addEventListener("click",L));let u=!0;const m=t=>M(h).some(n=>{if(typeof n=="string")return Array.from(i.document.querySelectorAll(n)).some(p=>p===t.target||t.composedPath().includes(p));{const p=O(n);return p&&(t.target===p||t.composedPath().includes(p))}});function v(t){const n=M(t);return n&&n.$.subTree.shapeFlag===16}function l(t,n){const p=M(t),b=p.$.subTree&&p.$.subTree.children;return b==null||!Array.isArray(b)?!1:b.some(k=>k.el===n.target||n.composedPath().includes(k.el))}const r=t=>{const n=O(e);if(t.target!=null&&!(!(n instanceof Element)&&v(e)&&l(e,t))&&!(!n||n===t.target||t.composedPath().includes(n))){if(t.detail===0&&(u=!m(t)),!u){u=!0;return}s(t)}};let c=!1;const w=[N(i,"click",t=>{c||(c=!0,setTimeout(()=>{c=!1},0),r(t))},{passive:!0,capture:f}),N(i,"pointerdown",t=>{const n=O(e);u=!m(t)&&!!(n&&!t.composedPath().includes(n))},{passive:!0}),a&&N(i,"blur",t=>{setTimeout(()=>{var n;const p=O(e);((n=i.document.activeElement)==null?void 0:n.tagName)==="IFRAME"&&!(p!=null&&p.contains(i.document.activeElement))&&s(t)},0)},{passive:!0})].filter(Boolean);return()=>w.forEach(t=>t())}function ue(){const e=E(!1),s=ae();return s&&ie(()=>{e.value=!0},s),e}function B(e){const s=ue();return W(()=>(s.value,!!e()))}function le(e,s,o={}){const{window:i=T,...h}=o;let f;const a=B(()=>i&&"MutationObserver"in i),u=()=>{f&&(f.disconnect(),f=void 0)},m=W(()=>{const c=M(e),w=F(c).map(O).filter(Q);return new Set(w)}),v=_(()=>m.value,c=>{u(),a.value&&c.size&&(f=new MutationObserver(s),c.forEach(w=>f.observe(w,h)))},{immediate:!0,flush:"post"}),l=()=>f==null?void 0:f.takeRecords(),r=()=>{v(),u()};return j(r),{isSupported:a,stop:r,takeRecords:l}}const ce=Symbol("vueuse-ssr-width");function de(){const e=oe()?ee(ce,null):null;return typeof e=="number"?e:void 0}function Y(e,s={}){const{window:o=T,ssrWidth:i=de()}=s,h=B(()=>o&&"matchMedia"in o&&typeof o.matchMedia=="function"),f=E(typeof i=="number");let a;const u=E(!1),m=r=>{u.value=r.matches},v=()=>{a&&("removeEventListener"in a?a.removeEventListener("change",m):a.removeListener(m))},l=re(()=>{if(f.value){f.value=!h.value;const r=M(e).split(",");u.value=r.some(c=>{const w=c.includes("not all"),g=c.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),t=c.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let n=!!(g||t);return g&&n&&(n=i>=J(g[1])),t&&n&&(n=i<=J(t[1])),w?!n:n});return}h.value&&(v(),a=o.matchMedia(M(e)),"addEventListener"in a?a.addEventListener("change",m):a.addListener(m),u.value=a.matches)});return j(()=>{l(),v(),a=void 0}),W(()=>u.value)}const P=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},D="__vueuse_ssr_handlers__",fe=pe();function pe(){return D in P||(P[D]=P[D]||{}),P[D]}function q(e,s){return fe[e]||s}function me(e){return Y("(prefers-color-scheme: dark)",e)}function he(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const ve={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},K="vueuse-storage";function we(e,s,o,i={}){var h;const{flush:f="pre",deep:a=!0,listenToStorageChanges:u=!0,writeDefaults:m=!0,mergeDefaults:v=!1,shallow:l,window:r=T,eventFilter:c,onError:w=d=>{console.error(d)},initOnMounted:g}=i,t=(l?ne:E)(typeof s=="function"?s():s),n=W(()=>M(e));if(!o)try{o=q("getDefaultStorage",()=>{var d;return(d=T)==null?void 0:d.localStorage})()}catch(d){w(d)}if(!o)return t;const p=M(s),b=he(p),k=(h=i.serializer)!=null?h:ve[b],{pause:A,resume:I}=G(t,()=>R(t.value),{flush:f,deep:a,eventFilter:c});_(n,()=>C(),{flush:f}),r&&u&&H(()=>{o instanceof Storage?N(r,"storage",C,{passive:!0}):N(r,K,z),g&&C()}),g||C();function V(d,y){if(r){const S={key:n.value,oldValue:d,newValue:y,storageArea:o};r.dispatchEvent(o instanceof Storage?new StorageEvent("storage",S):new CustomEvent(K,{detail:S}))}}function R(d){try{const y=o.getItem(n.value);if(d==null)V(y,null),o.removeItem(n.value);else{const S=k.write(d);y!==S&&(o.setItem(n.value,S),V(y,S))}}catch(y){w(y)}}function x(d){const y=d?d.newValue:o.getItem(n.value);if(y==null)return m&&p!=null&&o.setItem(n.value,k.write(p)),p;if(!d&&v){const S=k.read(y);return typeof v=="function"?v(S,p):b==="object"&&!Array.isArray(S)?{...p,...S}:S}else return typeof y!="string"?y:k.read(y)}function C(d){if(!(d&&d.storageArea!==o)){if(d&&d.key==null){t.value=p;return}if(!(d&&d.key!==n.value)){A();try{(d==null?void 0:d.newValue)!==k.write(t.value)&&(t.value=x(d))}catch(y){w(y)}finally{d?se(I):I()}}}}function z(d){C(d.detail)}return t}const ge="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function Ae(e={}){const{selector:s="html",attribute:o="class",initialValue:i="auto",window:h=T,storage:f,storageKey:a="vueuse-color-scheme",listenToStorageChanges:u=!0,storageRef:m,emitAuto:v,disableTransition:l=!0}=e,r={auto:"",light:"light",dark:"dark",...e.modes||{}},c=me({window:h}),w=W(()=>c.value?"dark":"light"),g=m||(a==null?X(i):we(a,i,f,{window:h,listenToStorageChanges:u})),t=W(()=>g.value==="auto"?w.value:g.value),n=q("updateHTMLAttrs",(A,I,V)=>{const R=typeof A=="string"?h==null?void 0:h.document.querySelector(A):O(A);if(!R)return;const x=new Set,C=new Set;let z=null;if(I==="class"){const y=V.split(/\s/g);Object.values(r).flatMap(S=>(S||"").split(/\s/g)).filter(Boolean).forEach(S=>{y.includes(S)?x.add(S):C.add(S)})}else z={key:I,value:V};if(x.size===0&&C.size===0&&z===null)return;let d;l&&(d=h.document.createElement("style"),d.appendChild(document.createTextNode(ge)),h.document.head.appendChild(d));for(const y of x)R.classList.add(y);for(const y of C)R.classList.remove(y);z&&R.setAttribute(z.key,z.value),l&&(h.getComputedStyle(d).opacity,document.head.removeChild(d))});function p(A){var I;n(s,o,(I=r[A])!=null?I:A)}function b(A){e.onChanged?e.onChanged(A,p):p(A)}_(t,b,{flush:"post",immediate:!0}),H(()=>b(t.value));const k=W({get(){return v?g.value:t.value},set(A){g.value=A}});return Object.assign(k,{store:g,system:w,state:t})}function ye(e,s,o={}){const{window:i=T,...h}=o;let f;const a=B(()=>i&&"ResizeObserver"in i),u=()=>{f&&(f.disconnect(),f=void 0)},m=W(()=>{const r=M(e);return Array.isArray(r)?r.map(c=>O(c)):[O(r)]}),v=_(m,r=>{if(u(),a.value&&i){f=new ResizeObserver(s);for(const c of r)c&&f.observe(c,h)}},{immediate:!0,flush:"post"}),l=()=>{u(),v()};return j(l),{isSupported:a,stop:l}}function Me(e,s={}){const{reset:o=!0,windowResize:i=!0,windowScroll:h=!0,immediate:f=!0,updateTiming:a="sync"}=s,u=E(0),m=E(0),v=E(0),l=E(0),r=E(0),c=E(0),w=E(0),g=E(0);function t(){const p=O(e);if(!p){o&&(u.value=0,m.value=0,v.value=0,l.value=0,r.value=0,c.value=0,w.value=0,g.value=0);return}const b=p.getBoundingClientRect();u.value=b.height,m.value=b.bottom,v.value=b.left,l.value=b.right,r.value=b.top,c.value=b.width,w.value=b.x,g.value=b.y}function n(){a==="sync"?t():a==="next-frame"&&requestAnimationFrame(()=>t())}return ye(e,n),_(()=>O(e),p=>!p&&n()),le(e,n,{attributeFilter:["style","class"]}),h&&N("scroll",n,{capture:!0,passive:!0}),i&&N("resize",n,{passive:!0}),H(()=>{f&&n()}),{height:u,bottom:m,left:v,right:l,top:r,width:c,x:w,y:g,update:n}}function ke(e,s,o={}){const{root:i,rootMargin:h="0px",threshold:f=0,window:a=T,immediate:u=!0}=o,m=B(()=>a&&"IntersectionObserver"in a),v=W(()=>{const g=M(e);return F(g).map(O).filter(Q)});let l=L;const r=E(u),c=m.value?_(()=>[v.value,O(i),r.value],([g,t])=>{if(l(),!r.value||!g.length)return;const n=new IntersectionObserver(s,{root:O(t),rootMargin:h,threshold:f});g.forEach(p=>p&&n.observe(p)),l=()=>{n.disconnect(),l=L}},{immediate:u,flush:"post"}):L,w=()=>{l(),c(),r.value=!1};return j(w),{isSupported:m,isActive:r,pause(){l(),r.value=!1},resume(){r.value=!0},stop:w}}function Te(e={}){const{window:s=T,initialWidth:o=Number.POSITIVE_INFINITY,initialHeight:i=Number.POSITIVE_INFINITY,listenOrientation:h=!0,includeScrollbar:f=!0,type:a="inner"}=e,u=E(o),m=E(i),v=()=>{if(s)if(a==="outer")u.value=s.outerWidth,m.value=s.outerHeight;else if(a==="visual"&&s.visualViewport){const{width:r,height:c,scale:w}=s.visualViewport;u.value=Math.round(r*w),m.value=Math.round(c*w)}else f?(u.value=s.innerWidth,m.value=s.innerHeight):(u.value=s.document.documentElement.clientWidth,m.value=s.document.documentElement.clientHeight)};v(),H(v);const l={passive:!0};if(N("resize",v,l),s&&a==="visual"&&s.visualViewport&&N(s.visualViewport,"resize",v,l),h){const r=Y("(orientation: portrait)");_(r,()=>v())}return{width:u,height:m}}export{ke as a,ye as b,Ae as c,we as d,Me as e,Te as f,Oe as o,N as u};
diff --git a/js/@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js.gz b/js/@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js.gz
new file mode 100644
index 00000000..d26977a7
Binary files /dev/null and b/js/@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js.gz differ
diff --git a/js/@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js b/js/@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js
deleted file mode 100644
index af248de0..00000000
--- a/js/@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js
+++ /dev/null
@@ -1 +0,0 @@
-import{u as F,k as g,l as m,n as S,o as T,a as j,q as A,v as P}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import{k,n as D,w as x,d as C}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";function $(e){return A()?(P(e),!0):!1}function R(e){return typeof e=="function"?e():F(e)}const I=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const z=e=>e!=null,M=Object.prototype.toString,B=e=>M.call(e)==="[object Object]",d=()=>{},H=W();function W(){var e,t;return I&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function G(e,t){function n(...o){return new Promise((i,r)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(i).catch(r)})}return n}const v=e=>e();function L(...e){let t=0,n,o=!0,i=d,r,s,u,a,l;!j(e[0])&&typeof e[0]=="object"?{delay:s,trailing:u=!0,leading:a=!0,rejectOnCancel:l=!1}=e[0]:[s,u=!0,a=!0,l=!1]=e;const p=()=>{n&&(clearTimeout(n),n=void 0,i(),i=d)};return b=>{const c=R(s),w=Date.now()-t,f=()=>r=b();return p(),c<=0?(t=Date.now(),f()):(w>c&&(a||!o)?(t=Date.now(),f()):u&&(r=new Promise((h,O)=>{i=l?O:h,n=setTimeout(()=>{t=Date.now(),o=!0,h(f()),p()},Math.max(0,c-w))})),!a&&!n&&(n=setTimeout(()=>o=!0,c)),o=!1,r)}}function V(e=v){const t=g(!0);function n(){t.value=!1}function o(){t.value=!0}const i=(...r)=>{t.value&&e(...r)};return{isActive:m(t),pause:n,resume:o,eventFilter:i}}function _(e){return C()}function J(...e){if(e.length!==1)return S(...e);const t=e[0];return typeof t=="function"?m(T(()=>({get:t,set:d}))):g(t)}function y(e,t,n={}){const{eventFilter:o=v,...i}=n;return x(e,G(o,t),i)}function K(e,t,n={}){const{eventFilter:o,...i}=n,{eventFilter:r,pause:s,resume:u,isActive:a}=V(o);return{stop:y(e,t,{...i,eventFilter:r}),pause:s,resume:u,isActive:a}}function Q(e,t=!0,n){_()?k(e,n):t?e():D(e)}function U(e,t,n={}){const{throttle:o=0,trailing:i=!0,leading:r=!0,...s}=n;return y(e,t,{...s,eventFilter:L(o,i,r)})}export{Q as a,J as b,B as c,z as d,$ as e,H as f,U as g,I as i,d as n,R as t,K as w};
diff --git a/js/@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js.gz b/js/@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js.gz
deleted file mode 100644
index aeefb535..00000000
Binary files a/js/@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js.gz and /dev/null differ
diff --git a/js/@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js b/js/@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js
new file mode 100644
index 00000000..44db2243
--- /dev/null
+++ b/js/@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js
@@ -0,0 +1 @@
+import{k as g,n as v,o as A,q as S,a as k,u as P,v as T,l as x}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import{l as C,n as D,w as M,d as y,k as W,i as I}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";function B(e){return P()?(T(e),!0):!1}const d=new WeakMap,H=(...e)=>{var t;const o=e[0],n=(t=y())==null?void 0:t.proxy;if(n==null&&!W())throw new Error("injectLocal must be called in setup");return n&&d.has(n)&&o in d.get(n)?d.get(n)[o]:I(...e)},R=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const J=e=>e!=null,L=Object.prototype.toString,K=e=>L.call(e)==="[object Object]",p=()=>{},Q=N();function N(){var e,t;return R&&((e=window==null?void 0:window.navigator)==null?void 0:e.userAgent)&&(/iP(?:ad|hone|od)/.test(window.navigator.userAgent)||((t=window==null?void 0:window.navigator)==null?void 0:t.maxTouchPoints)>2&&/iPad|Macintosh/.test(window==null?void 0:window.navigator.userAgent))}function V(e,t){function o(...n){return new Promise((r,i)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(r).catch(i)})}return o}const b=e=>e();function _(...e){let t=0,o,n=!0,r=p,i,s,u,a,l;!k(e[0])&&typeof e[0]=="object"?{delay:s,trailing:u=!0,leading:a=!0,rejectOnCancel:l=!1}=e[0]:[s,u=!0,a=!0,l=!1]=e;const w=()=>{o&&(clearTimeout(o),o=void 0,r(),r=p)};return j=>{const c=x(s),h=Date.now()-t,f=()=>i=j();return w(),c<=0?(t=Date.now(),f()):(h>c&&(a||!n)?(t=Date.now(),f()):u&&(i=new Promise((m,O)=>{r=l?O:m,o=setTimeout(()=>{t=Date.now(),n=!0,m(f()),w()},Math.max(0,c-h))})),!a&&!o&&(o=setTimeout(()=>n=!0,c)),n=!1,i)}}function E(e=b){const t=g(!0);function o(){t.value=!1}function n(){t.value=!0}const r=(...i)=>{t.value&&e(...i)};return{isActive:v(t),pause:o,resume:n,eventFilter:r}}function U(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function G(e){return y()}function X(e){return Array.isArray(e)?e:[e]}function Y(...e){if(e.length!==1)return A(...e);const t=e[0];return typeof t=="function"?v(S(()=>({get:t,set:p}))):g(t)}function F(e,t,o={}){const{eventFilter:n=b,...r}=o;return M(e,V(n,t),r)}function Z(e,t,o={}){const{eventFilter:n,...r}=o,{eventFilter:i,pause:s,resume:u,isActive:a}=E(n);return{stop:F(e,t,{...r,eventFilter:i}),pause:s,resume:u,isActive:a}}function ee(e,t=!0,o){G()?C(e,o):t?e():D(e)}function te(e,t,o={}){const{throttle:n=0,trailing:r=!0,leading:i=!0,...s}=o;return F(e,t,{...s,eventFilter:_(n,r,i)})}export{Y as a,X as b,K as c,J as d,H as e,B as f,Q as g,te as h,R as i,p as n,U as p,ee as t,Z as w};
diff --git a/js/@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js.gz b/js/@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js.gz
new file mode 100644
index 00000000..c8eb5bcf
Binary files /dev/null and b/js/@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js.gz differ
diff --git a/js/BarcodeDemo-B0OBSU9q.js b/js/BarcodeDemo-B0OBSU9q.js
new file mode 100644
index 00000000..735e3de0
--- /dev/null
+++ b/js/BarcodeDemo-B0OBSU9q.js
@@ -0,0 +1 @@
+import{I as a}from"./hooks-Bi_Q9OFa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import{b as e,N as i,e as p,ah as l,J as s,M as n,a as F}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import{m as c,b as t,J as u}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as m}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./utils-4asTneEs.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const Et=c({name:"BarcodeDemo",setup(){const r={width:4},o=m(!1),d=m("RayTemplate");return{baseOptions:r,loading:o,text:d}},render(){const{baseOptions:r}=this;return t(F,{cols:2,xGap:12,yGap:12},{default:()=>[t(e,{span:2},{default:()=>[t(i,{title:"详细配置项说明"},{default:()=>[u("点击查看详细配置项:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/Options"},[u("js-barcode options")]),u("。")]})]}),t(e,{span:1},{default:()=>[t(i,{title:"基础条形码"},{default:()=>[t(a,{text:"RayTemplate",options:{...r}},null)]})]}),t(e,{span:1},{default:()=>[t(i,{title:"自定义颜色条形码"},{default:()=>[t(a,{text:"RayTemplate",options:{...r,lineColor:"red"}},null)]})]}),t(e,{span:1},{default:()=>[t(i,{title:"pharmacode 模式"},{default:()=>[t(p,{vertical:!0},{default:()=>[t(l,{type:"warning",title:"注意"},{default:()=>[u("该模式下,条形码只能渲染有效数值,否则将会渲染失败。可以查看官网说明:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/pharmacode"},[u("pharmacode")]),u("。")]}),t(a,{text:"1234",format:"pharmacode",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),t(e,{span:1},{default:()=>[t(i,{title:"codabar 模式"},{default:()=>[t(p,{vertical:!0},{default:()=>[t(l,{type:"warning",title:"注意"},{default:()=>[u("该模式下,需要注意 text 中的特殊字符,可以查看官网说明:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/codabar"},[u("codabar")]),u("。")]}),t(a,{text:"1234",format:"codabar",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),t(e,{span:1},{default:()=>[t(i,{title:"有状态的条形码"},{default:()=>[t(p,{vertical:!0,size:"large",justify:"flex-start",inline:!0},{default:()=>[t(s,{value:this.loading,"onUpdate:value":o=>this.loading=o,style:"width: fit-content"},{checked:()=>"loading...",unchecked:()=>"success!"}),t(a,{text:"RayTemplate",loading:this.loading},null)]})]})]}),t(e,{span:1},{default:()=>[t(i,{title:"watchText 主动监听 text 变化"},{default:()=>[t(p,{vertical:!0},{default:()=>[t(n,{value:this.text,"onUpdate:value":o=>this.text=o},null),t(a,{text:this.text,watchText:!0},null)]})]})]})]})}});export{Et as default};
diff --git a/js/BarcodeDemo-B0OBSU9q.js.gz b/js/BarcodeDemo-B0OBSU9q.js.gz
new file mode 100644
index 00000000..14b4a5d0
Binary files /dev/null and b/js/BarcodeDemo-B0OBSU9q.js.gz differ
diff --git a/js/BarcodeDemo-DIeP09RN.js b/js/BarcodeDemo-DIeP09RN.js
deleted file mode 100644
index cac6adaf..00000000
--- a/js/BarcodeDemo-DIeP09RN.js
+++ /dev/null
@@ -1 +0,0 @@
-import{I as a}from"./hooks-CpaAYtdw.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import{b as e,N as i,e as p,ah as l,J as s,M as n,a as F}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import{l as c,b as t,I as u}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as m}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./utils-DBF0WsFC.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const Et=c({name:"BarcodeDemo",setup(){const r={width:4},o=m(!1),d=m("RayTemplate");return{baseOptions:r,loading:o,text:d}},render(){const{baseOptions:r}=this;return t(F,{cols:2,xGap:12,yGap:12},{default:()=>[t(e,{span:2},{default:()=>[t(i,{title:"详细配置项说明"},{default:()=>[u("点击查看详细配置项:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/Options"},[u("js-barcode options")]),u("。")]})]}),t(e,{span:1},{default:()=>[t(i,{title:"基础条形码"},{default:()=>[t(a,{text:"RayTemplate",options:{...r}},null)]})]}),t(e,{span:1},{default:()=>[t(i,{title:"自定义颜色条形码"},{default:()=>[t(a,{text:"RayTemplate",options:{...r,lineColor:"red"}},null)]})]}),t(e,{span:1},{default:()=>[t(i,{title:"pharmacode 模式"},{default:()=>[t(p,{vertical:!0},{default:()=>[t(l,{type:"warning",title:"注意"},{default:()=>[u("该模式下,条形码只能渲染有效数值,否则将会渲染失败。可以查看官网说明:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/pharmacode"},[u("pharmacode")]),u("。")]}),t(a,{text:"1234",format:"pharmacode",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),t(e,{span:1},{default:()=>[t(i,{title:"codabar 模式"},{default:()=>[t(p,{vertical:!0},{default:()=>[t(l,{type:"warning",title:"注意"},{default:()=>[u("该模式下,需要注意 text 中的特殊字符,可以查看官网说明:"),t("a",{href:"https://github.com/lindell/JsBarcode/wiki/codabar"},[u("codabar")]),u("。")]}),t(a,{text:"1234",format:"codabar",options:{width:4,height:40,displayValue:!1,background:"#eee"}},null)]})]})]}),t(e,{span:1},{default:()=>[t(i,{title:"有状态的条形码"},{default:()=>[t(p,{vertical:!0,size:"large",justify:"flex-start",inline:!0},{default:()=>[t(s,{value:this.loading,"onUpdate:value":o=>this.loading=o,style:"width: fit-content"},{checked:()=>"loading...",unchecked:()=>"success!"}),t(a,{text:"RayTemplate",loading:this.loading},null)]})]})]}),t(e,{span:1},{default:()=>[t(i,{title:"watchText 主动监听 text 变化"},{default:()=>[t(p,{vertical:!0},{default:()=>[t(n,{value:this.text,"onUpdate:value":o=>this.text=o},null),t(a,{text:this.text,watchText:!0},null)]})]})]})]})}});export{Et as default};
diff --git a/js/BarcodeDemo-DIeP09RN.js.gz b/js/BarcodeDemo-DIeP09RN.js.gz
deleted file mode 100644
index 2035e5b8..00000000
Binary files a/js/BarcodeDemo-DIeP09RN.js.gz and /dev/null differ
diff --git a/js/Flow-BwOEXCKT.js b/js/Flow-BwOEXCKT.js
deleted file mode 100644
index 290e4765..00000000
--- a/js/Flow-BwOEXCKT.js
+++ /dev/null
@@ -1 +0,0 @@
-import{R as l,F as n,H as s}from"./hooks-CpaAYtdw.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import{N as m,a as d,ag as u,J as f,e as c}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import{l as g,k as y,b as t}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as p}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./utils-DBF0WsFC.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const Rt=g({name:"RFlowDemo",setup(){const[r,{getFlowInstance:e}]=s(),o=p(),i=p({readonly:!1}),a=()=>{e()};return setTimeout(()=>{o.value={nodes:[{id:"21",type:"rect",x:300,y:100,text:"rect node"},{id:"50",type:"circle",x:500,y:100,text:"circle node"}],edges:[{id:"21",type:"polyline",sourceNodeId:"50",targetNodeId:"21"}]}},1e3),y(()=>{a()}),{register:r,flowDataRef:o,settingRef:i}},render(){const{register:r,flowDataRef:e,settingRef:o}=this;return t(c,{vertical:!0},{default:()=>[t(m,null,{default:()=>[t(l,null,{default:()=>[t(d,{xGap:4,yGap:18,cols:4},{default:()=>[t(u,{label:"禁用流程图"},{default:()=>[t(f,{value:o.readonly,"onUpdate:value":i=>o.readonly=i},null)]})]})]})]}),t(m,null,{default:()=>[t(n,{height:500,onRegister:r,data:e,readonly:o.readonly},null)]})]})}});export{Rt as default};
diff --git a/js/Flow-BwOEXCKT.js.gz b/js/Flow-BwOEXCKT.js.gz
deleted file mode 100644
index ef5671ad..00000000
Binary files a/js/Flow-BwOEXCKT.js.gz and /dev/null differ
diff --git a/js/Flow-XWW4foIy.js b/js/Flow-XWW4foIy.js
new file mode 100644
index 00000000..285d8133
--- /dev/null
+++ b/js/Flow-XWW4foIy.js
@@ -0,0 +1 @@
+import{R as l,F as n,H as s}from"./hooks-Bi_Q9OFa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import{N as m,a as d,ag as u,J as f,e as c}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import{m as g,l as y,b as t}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as p}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./utils-4asTneEs.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const Rt=g({name:"RFlowDemo",setup(){const[r,{getFlowInstance:e}]=s(),o=p(),i=p({readonly:!1}),a=()=>{e()};return setTimeout(()=>{o.value={nodes:[{id:"21",type:"rect",x:300,y:100,text:"rect node"},{id:"50",type:"circle",x:500,y:100,text:"circle node"}],edges:[{id:"21",type:"polyline",sourceNodeId:"50",targetNodeId:"21"}]}},1e3),y(()=>{a()}),{register:r,flowDataRef:o,settingRef:i}},render(){const{register:r,flowDataRef:e,settingRef:o}=this;return t(c,{vertical:!0},{default:()=>[t(m,null,{default:()=>[t(l,null,{default:()=>[t(d,{xGap:4,yGap:18,cols:4},{default:()=>[t(u,{label:"禁用流程图"},{default:()=>[t(f,{value:o.readonly,"onUpdate:value":i=>o.readonly=i},null)]})]})]})]}),t(m,null,{default:()=>[t(n,{height:500,onRegister:r,data:e,readonly:o.readonly},null)]})]})}});export{Rt as default};
diff --git a/js/Flow-XWW4foIy.js.gz b/js/Flow-XWW4foIy.js.gz
new file mode 100644
index 00000000..619437c5
Binary files /dev/null and b/js/Flow-XWW4foIy.js.gz differ
diff --git a/js/TablePro-CT98TDAq.js b/js/TablePro-CT98TDAq.js
new file mode 100644
index 00000000..be502a89
--- /dev/null
+++ b/js/TablePro-CT98TDAq.js
@@ -0,0 +1 @@
+import{X as Z,Y as _,T as $,z as G,Z as Q,$ as W}from"./hooks-Bi_Q9OFa.js";import{m as ee}from"./utils-4asTneEs.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./print-js@1.6.0-CWwD-D0p.js";import{a as te}from"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./lodash@4.17.21-D1YkSij2.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import"./instance-BbSLtO2c.js";import{M as O}from"./mockjs@1.1.0-C0u4TCrj.js";import{d as S}from"./dayjs@1.11.13-BI9XULUM.js";import{w as ae,ag as b,M as j,H as ue,ak as oe,e as f,P as m,N as U,I,al as z,an as T}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import{m as re,b as e,F as le,J as l,q as ie}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as p}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./axios@1.7.9-upsvKRUO.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";function se(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!ie(a)}const ft=re({name:"TableProDemo",setup(){const{format:a}=W(),[q,{runTableRequest:h,getCurrentTableRequestParams:E,print:v,downloadCsv:n}]=Z(),i=p([]),g=p([{type:"selection"},{title:"Name",key:"name"},{title:"Sign Status",key:"statusText"},{title:"Sign Time",key:"signTimeStart",render:u=>a(u.signTimeStart)+" ~ "+a(u.signTimeEnd)},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:u=>u.tags.map(o=>e(ae,{type:"info",bordered:!1,style:"margin-right: 6px"},se(o)?o:{default:()=>[o]}))},{title:"Remark",key:"remark"}]),y=p(0),D=p({}),k=p((()=>{const d=[],o=S().valueOf();for(let r=0;r<30;r++)d.push({key:ee(),name:O.Random.cname(),age:r+20,address:O.Random.city(),tags:["nice","developer"],remark:"我是一条很长很长的备注",status:r%2===0?"success":"error",statusText:r%2===0?"在线":"离线",signTimeStart:S(o).add(r*2,"year").valueOf(),signTimeEnd:S(o).add(r+5,"day").valueOf()});return d})()),w=p({pagination:!0,manual:!1}),[L,{checkedRowKeysBind:x,getKeys:F,getRows:P,clearKey:R,clearAll:t,selectKey:M}]=_(i,g,{rowKey:"key",onChange:(u,d,o)=>{}}),V=p(!0),C=u=>u==null,H=u=>new Promise(d=>{const{page:o=1,pageSize:r=10,name:A,status:K,signTimeStart:N,signTimeEnd:B}=u||{};let s=k.value;const Y=k.value.length;A&&(s=s.filter(c=>c.name.includes(A))),K&&(s=s.filter(c=>c.status===K)),N&&B&&(s=s.filter(c=>c.signTimeStart>=N&&c.signTimeEnd<=B)),s=s.slice((o-1)*r,o*r),setTimeout(()=>{d({code:0,data:s,total:C(K)&&C(A)&&(C(N)||C(B))?Y:s.length,message:"success",page:o,pageSize:r})},1e3)}),{run:J,loading:X}=te(H,{onSuccess:u=>{const{data:d,total:o}=u;i.value=d,y.value=o}});return{tableDataRef:i,baseColumns:g,itemCountRef:y,loadingGetPersonList:X,runGetPersonList:J,conditionRef:D,radioRef:w,runTableRequest:h,tableProRegister:q,print:v,downloadCsv:n,checkedRowKeysBind:x,checkedRowKeys:L,getKeys:F,getRows:P,clearKey:R,clearAll:t,collapseRef:V,selectKey:M}},render(){const{tableDataRef:a,baseColumns:q,itemCountRef:h,loadingGetPersonList:E,runGetPersonList:v,conditionRef:n,radioRef:i,runTableRequest:g,tableProRegister:y,print:D,downloadCsv:k,checkedRowKeysBind:w,getKeys:L,getRows:x,clearKey:F,clearAll:P,selectKey:R}=this;return e(f,{vertical:!0},{default:()=>[e($,{open:this.collapseRef,bordered:!0},{default:()=>e(le,null,[e(b,{label:"用户名"},{default:()=>[e(j,{value:n.name,"onUpdate:value":t=>n.name=t,clearable:!0},null)]}),e(b,{label:"状态"},{default:()=>[e(ue,{value:n.status,"onUpdate:value":t=>n.status=t,clearable:!0,options:[{label:"成功",value:"success"},{label:"失败",value:"error"}]},null)]}),e(b,{label:"登陆时间"},{default:()=>[e(oe,{type:"datetimerange",value:n.RangeTime,"onUpdate:value":t=>n.RangeTime=t,clearable:!0},null)]}),e(b,{label:"演示折叠的条件框"},{default:()=>[e(j,{readonly:!0,placeholder:"我只是为了占位"},null)]})]),action:()=>e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>g(),loading:E},{default:()=>[l("查询")]})]}),collapse:t=>t?e(m,{onClick:()=>this.collapseRef=!0,secondary:!0},{default:()=>"受控展开",icon:()=>e(G,{name:"dark",size:"18"},null)}):e(m,{onClick:()=>this.collapseRef=!1,secondary:!0},{default:()=>"受控收起",icon:()=>e(G,{name:"light",size:"18"},null)})}),e(U,{title:"常用高级拓展功能"},{default:()=>[e(f,null,{default:()=>[e(I,{label:"分页"},{default:()=>[e(z,{value:i.pagination,"onUpdate:value":t=>i.pagination=t},{default:()=>[e(T,{value:!0},{default:()=>[l("显示分页")]}),e(T,{value:!1},{default:()=>[l("隐藏分页")]})]})]}),e(I,{label:"自动更新"},{default:()=>[e(z,{value:i.manual,"onUpdate:value":t=>i.manual=t},{default:()=>[e(T,{value:!1},{default:()=>[l("自动更新")]}),e(T,{value:!0},{default:()=>[l("取消自动")]})]})]})]})]}),e(U,{title:"useTablePro 部分方法"},{default:()=>[e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>D()},{default:()=>[l("打印")]}),e(m,{type:"primary",onClick:()=>k()},{default:()=>[l("下载 csv")]})]})]}),e(U,{title:"useCheckedRowKeys 部分方法"},{default:()=>[e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>{const t=a[1].key;R(t)}},{default:()=>[l("选中第二行")]}),e(m,{type:"primary",onClick:()=>{const t=a[1].key;F(t)}},{default:()=>[l("取消选中第二行")]}),e(m,{type:"primary",onClick:()=>{a==null||a.forEach(t=>R(t.key))}},{default:()=>[l("选中当前页面所有行")]}),e(m,{type:"primary",onClick:()=>{P()}},{default:()=>[l("取消所有已选中行")]})]})]}),e(Q,{onRegister:y,data:a,columns:this.baseColumns,"onUpdate:columns":t=>this.baseColumns=t,loading:E,paginationCount:h,request:v,requestConfig:{params:n,formatRangeTime:[{key:"RangeTime",target:["signTimeStart","signTimeEnd"]}]},showPagination:i.pagination,manual:i.manual,rowKey:t=>t.key,checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":t=>this.checkedRowKeys=t,onUpdateCheckedRowKeys:w},null)]})}});export{ft as default};
diff --git a/js/TablePro-CT98TDAq.js.gz b/js/TablePro-CT98TDAq.js.gz
new file mode 100644
index 00000000..070c81ba
Binary files /dev/null and b/js/TablePro-CT98TDAq.js.gz differ
diff --git a/js/TablePro-CxALP6p1.js b/js/TablePro-CxALP6p1.js
deleted file mode 100644
index 9b9425a7..00000000
--- a/js/TablePro-CxALP6p1.js
+++ /dev/null
@@ -1 +0,0 @@
-import{X as _,Y as $,T as J,z as G,Z as Q,$ as W}from"./hooks-CpaAYtdw.js";import{m as ee}from"./utils-DBF0WsFC.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./print-js@1.6.0-CWwD-D0p.js";import{a as te}from"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./lodash@4.17.21-D1YkSij2.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import"./instance-nutHwvcu.js";import{M as I}from"./mockjs@1.1.0-C0u4TCrj.js";import{d as U}from"./dayjs@1.11.13-BI9XULUM.js";import{ag as T,M as O,H as ae,ak as ue,e as f,P as m,N as L,I as j,al as z,an as b,w as oe}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import{l as re,b as e,F as le,I as l,p as ie}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as c}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./axios@1.7.9-upsvKRUO.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";function se(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!ie(a)}const ft=re({name:"TableProDemo",setup(){const{format:a}=W(),[h,{runTableRequest:E,getCurrentTableRequestParams:v,print:D,downloadCsv:n}]=_(),i=c([]),g=[{type:"selection"},{title:"Name",key:"name"},{title:"Sign Status",key:"statusText"},{title:"Sign Time",key:"signTimeStart",render:u=>a(u.signTimeStart)+" ~ "+a(u.signTimeEnd)},{title:"Age",key:"age"},{title:"Address",key:"address"},{title:"Tags",key:"tags",render:u=>u.tags.map(o=>e(oe,{type:"info",bordered:!1,style:"margin-right: 6px"},se(o)?o:{default:()=>[o]}))},{title:"Remark",key:"remark"}],y=c(0),w=c({}),k=c((()=>{const d=[],o=U().valueOf();for(let r=0;r<30;r++)d.push({key:ee(),name:I.Random.cname(),age:r+20,address:I.Random.city(),tags:["nice","developer"],remark:"我是一条很长很长的备注",status:r%2===0?"success":"error",statusText:r%2===0?"在线":"离线",signTimeStart:U(o).add(r*2,"year").valueOf(),signTimeEnd:U(o).add(r+5,"day").valueOf()});return d})()),F=c({pagination:!0,manual:!1}),[q,{checkedRowKeysBind:x,getKeys:P,getRows:A,clearKey:R,clearAll:t,selectKey:M}]=$(i,g,{rowKey:"key",onChange:(u,d,o)=>{}}),V=c(!0),C=u=>u==null,H=u=>new Promise(d=>{const{page:o=1,pageSize:r=10,name:K,status:N,signTimeStart:B,signTimeEnd:S}=u||{};let s=k.value;const Z=k.value.length;K&&(s=s.filter(p=>p.name.includes(K))),N&&(s=s.filter(p=>p.status===N)),B&&S&&(s=s.filter(p=>p.signTimeStart>=B&&p.signTimeEnd<=S)),s=s.slice((o-1)*r,o*r),setTimeout(()=>{d({code:0,data:s,total:C(N)&&C(K)&&(C(B)||C(S))?Z:s.length,message:"success",page:o,pageSize:r})},1e3)}),{run:X,loading:Y}=te(H,{onSuccess:u=>{const{data:d,total:o}=u;i.value=d,y.value=o}});return{tableDataRef:i,baseColumns:g,itemCountRef:y,loadingGetPersonList:Y,runGetPersonList:X,conditionRef:w,radioRef:F,runTableRequest:E,tableProRegister:h,print:D,downloadCsv:n,checkedRowKeysBind:x,checkedRowKeys:q,getKeys:P,getRows:A,clearKey:R,clearAll:t,collapseRef:V,selectKey:M}},render(){const{tableDataRef:a,baseColumns:h,itemCountRef:E,loadingGetPersonList:v,runGetPersonList:D,conditionRef:n,radioRef:i,runTableRequest:g,tableProRegister:y,print:w,downloadCsv:k,checkedRowKeysBind:F,getKeys:q,getRows:x,clearKey:P,clearAll:A,selectKey:R}=this;return e(f,{vertical:!0},{default:()=>[e(J,{open:this.collapseRef,bordered:!0},{default:()=>e(le,null,[e(T,{label:"用户名"},{default:()=>[e(O,{value:n.name,"onUpdate:value":t=>n.name=t,clearable:!0},null)]}),e(T,{label:"状态"},{default:()=>[e(ae,{value:n.status,"onUpdate:value":t=>n.status=t,clearable:!0,options:[{label:"成功",value:"success"},{label:"失败",value:"error"}]},null)]}),e(T,{label:"登陆时间"},{default:()=>[e(ue,{type:"datetimerange",value:n.RangeTime,"onUpdate:value":t=>n.RangeTime=t,clearable:!0},null)]}),e(T,{label:"演示折叠的条件框"},{default:()=>[e(O,{readonly:!0,placeholder:"我只是为了占位"},null)]})]),action:()=>e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>g(),loading:v},{default:()=>[l("查询")]})]}),collapse:t=>t?e(m,{onClick:()=>this.collapseRef=!0,secondary:!0},{default:()=>"受控展开",icon:()=>e(G,{name:"dark",size:"18"},null)}):e(m,{onClick:()=>this.collapseRef=!1,secondary:!0},{default:()=>"受控收起",icon:()=>e(G,{name:"light",size:"18"},null)})}),e(L,{title:"常用高级拓展功能"},{default:()=>[e(f,null,{default:()=>[e(j,{label:"分页"},{default:()=>[e(z,{value:i.pagination,"onUpdate:value":t=>i.pagination=t},{default:()=>[e(b,{value:!0},{default:()=>[l("显示分页")]}),e(b,{value:!1},{default:()=>[l("隐藏分页")]})]})]}),e(j,{label:"自动更新"},{default:()=>[e(z,{value:i.manual,"onUpdate:value":t=>i.manual=t},{default:()=>[e(b,{value:!1},{default:()=>[l("自动更新")]}),e(b,{value:!0},{default:()=>[l("取消自动")]})]})]})]})]}),e(L,{title:"useTablePro 部分方法"},{default:()=>[e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>w()},{default:()=>[l("打印")]}),e(m,{type:"primary",onClick:()=>k()},{default:()=>[l("下载 csv")]})]})]}),e(L,{title:"useCheckedRowKeys 部分方法"},{default:()=>[e(f,null,{default:()=>[e(m,{type:"primary",onClick:()=>{const t=a[1].key;R(t)}},{default:()=>[l("选中第二行")]}),e(m,{type:"primary",onClick:()=>{const t=a[1].key;P(t)}},{default:()=>[l("取消选中第二行")]}),e(m,{type:"primary",onClick:()=>{a==null||a.forEach(t=>R(t.key))}},{default:()=>[l("选中当前页面所有行")]}),e(m,{type:"primary",onClick:()=>{A()}},{default:()=>[l("取消所有已选中行")]})]})]}),e(Q,{onRegister:y,data:a,columns:h,loading:v,paginationCount:E,request:D,requestConfig:{params:n,formatRangeTime:[{key:"RangeTime",target:["signTimeStart","signTimeEnd"]}]},showPagination:i.pagination,manual:i.manual,rowKey:t=>t.key,checkedRowKeys:this.checkedRowKeys,"onUpdate:checkedRowKeys":t=>this.checkedRowKeys=t,onUpdateCheckedRowKeys:F},null)]})}});export{ft as default};
diff --git a/js/TablePro-CxALP6p1.js.gz b/js/TablePro-CxALP6p1.js.gz
deleted file mode 100644
index 8e00cfd8..00000000
Binary files a/js/TablePro-CxALP6p1.js.gz and /dev/null differ
diff --git a/js/draggable-card-Bn2yn2QC.js b/js/draggable-card-Bn2yn2QC.js
new file mode 100644
index 00000000..aeb8709f
--- /dev/null
+++ b/js/draggable-card-Bn2yn2QC.js
@@ -0,0 +1 @@
+import{K as i}from"./hooks-Bi_Q9OFa.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-BWv22OGL.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.10-Dy_oAVRl.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.25.4-CFsMsPXj.js";import"./preact@10.25.4--QYavupV.js";import{N as p,P as e}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-Pd0MfMWr.js";import{m as a,t as u,b as t,J as m}from"./@vue_runtime-core@3.5.13-pPpmd6wL.js";import{k as d}from"./@vue_reactivity@3.5.13-CVvlldVq.js";import"./lodash-es@4.17.21-BbYRMHep.js";import"./@vueuse_core@12.4.0_typescript@5.6.3-DzjsbTKf.js";import"./@vueuse_shared@12.4.0_typescript@5.6.3-BcXCAzGo.js";import"./utils-4asTneEs.js";import"./pinia-plugin-persistedstate@4.2.0_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3___rollup@4.30.1-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-D39uhmss.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-Ddx7y29b.js";import"./@vue_runtime-dom@3.5.13-DJqlZTHq.js";import"./@vue_shared@3.5.13-CQ6Z-5d1.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-DQlA9smo.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.6.0-Dq866SEH.js";import"./zrender@5.6.1-B_T0sHVE.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DZgPmxv3.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-DvmkD8RF.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-rG9g4GjQ.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const st=a({name:"DraggableCardDemo",setup(){const r=d(!1),o=u("domRef");return{card3:r,domRef:o}},render(){const{card3:r,domRef:o}=this;return t("div",null,[t("div",{ref:"domRef",style:{width:"100%",height:"400px",backgroundColor:"red"}},null),t(i,{animation:!0,title:"Body"},{default:()=>[m("我被限制在 body 中。")]}),r?t(i,{animation:!0,title:"Custom Container",restrictionElement:o,closable:!0,onClose:()=>this.card3=!1},{default:()=>"我被限制在红色区域中。并且我支持 NCard 的所有配置与插槽。","header-extra":()=>"其实我就是 NCard 封装的",footer:()=>"我支持 footer 插槽",action:()=>"我支持 action 插槽"}):null,t(p,{title:"显示与隐藏卡片"},{default:()=>[t(e,{type:"primary",onClick:()=>this.card3=!this.card3},{default:()=>[m("点一下试试")]})]})])}});export{st as default};
diff --git a/js/draggable-card-Bn2yn2QC.js.gz b/js/draggable-card-Bn2yn2QC.js.gz
new file mode 100644
index 00000000..d88e4979
Binary files /dev/null and b/js/draggable-card-Bn2yn2QC.js.gz differ
diff --git a/js/draggable-card-CZ4wS8CL.js b/js/draggable-card-CZ4wS8CL.js
deleted file mode 100644
index 4ef3444a..00000000
--- a/js/draggable-card-CZ4wS8CL.js
+++ /dev/null
@@ -1 +0,0 @@
-import{K as i}from"./hooks-CpaAYtdw.js";import"./currency.js@2.0.4-9OAR_aOO.js";import"./crypto-js@4.2.0-CO3T8151.js";import"./dayjs@1.11.13-BI9XULUM.js";import"./print-js@1.6.0-CWwD-D0p.js";import"./vue-hooks-plus@2.2.1_vue@3.5.13_typescript@5.6.3_-Dq_uaxSm.js";import"./lodash@4.17.21-D1YkSij2.js";import"./js-cookie@3.0.5-Z_8Sd105.js";import"./screenfull@5.2.0-DQHhvod-.js";import"./jsbarcode@3.11.6-VhIBVAt6.js";import"./@logicflow_core@2.0.6-xGbnZl_7.js";import"./mobx-preact@3.0.0_mobx@5.15.7_preact@10.22.0-DV7O4jNC.js";import"./preact@10.22.0-Dw4c-0kT.js";import{N as p,P as e}from"./naive-ui@2.41.0_vue@3.5.13_typescript@5.6.3_-DTO2mq-c.js";import{l as a,q as u,b as t,I as m}from"./@vue_runtime-core@3.5.13-BsGyjLIk.js";import{k as d}from"./@vue_reactivity@3.5.13-CjJL8SnF.js";import"./lodash-es@4.17.21-l6r90Unf.js";import"./@vueuse_core@12.0.0_typescript@5.6.3-oQ6A83ET.js";import"./@vueuse_shared@12.0.0_typescript@5.6.3-CbGzeoiM.js";import"./utils-DBF0WsFC.js";import"./pinia-plugin-persistedstate@4.1.3_pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3____ll7leqg3hb3s3tfh7h2g4rh3je-7e9nenNP.js";import"./destr@2.0.3-Cx7WjB9q.js";import"./deep-pick-omit@1.2.1-B1UrSIxj.js";import"./pinia@2.3.0_typescript@5.6.3_vue@3.5.13_typescript@5.6.3_-Dn2Mq2HM.js";import"./html-to-image@1.11.11-D6_yziCT.js";import"./vue-router@4.4.0_vue@3.5.13_typescript@5.6.3_-BdV6wPvH.js";import"./@vue_runtime-dom@3.5.13-CwqXTXrC.js";import"./@vue_shared@3.5.13-DbMIZLZJ.js";import"./interactjs@1.10.27-hUbPqkuo.js";import"./call-bind@1.0.7-BosuxZz1.js";import"./vue-i18n@9.13.1_vue@3.5.13_typescript@5.6.3_-BNHXouJk.js";import"./@intlify_shared@9.13.1-BxU0OzX2.js";import"./@intlify_core-base@9.13.1-CVxc1Bsn.js";import"./@intlify_message-compiler@9.13.1-GrLDMuy_.js";import"./echarts@5.5.1-Dj_7IMQj.js";import"./zrender@5.6.0-DbjVw6Tx.js";import"./tslib@2.3.0-BDyQ-Jie.js";import"./mobx@5.15.7-BvNiR7Ki.js";import"./uuid@9.0.1-CtRu48qb.js";import"./classnames@2.5.1-BXd8anFz.js";import"./mousetrap@1.6.5-D2xAa-oQ.js";import"./mobx-utils@5.6.2_mobx@5.15.7-D4RSJWSh.js";import"./date-fns@3.6.0-CG906D2E.js";import"./seemly@0.3.9-BnJ6M8Cl.js";import"./vueuc@0.4.64_vue@3.5.13_typescript@5.6.3_-DTLIKCUU.js";import"./evtd@0.2.4-CI_DDEu_.js";import"./@css-render_vue3-ssr@0.15.14_vue@3.5.13_typescript@5.6.3_-BeS0JKOP.js";import"./vooks@0.2.12_vue@3.5.13_typescript@5.6.3_-CEDoXTzE.js";import"./vdirs@0.1.8_vue@3.5.13_typescript@5.6.3_-C0KV5pCE.js";import"./@juggle_resize-observer@3.4.0-DY95s5UV.js";import"./css-render@0.15.14-BwokE0u2.js";import"./@emotion_hash@0.8.0-WldOFDRm.js";import"./treemate@0.3.11-CWtmm0QO.js";import"./date-fns-tz@3.2.0_date-fns@3.6.0-CULxTaQG.js";import"./async-validator@4.2.5-P8scd9xB.js";import"./@css-render_plugin-bem@0.15.14_css-render@0.15.14-BrMTnGYY.js";const st=a({name:"DraggableCardDemo",setup(){const r=d(!1),o=u("domRef");return{card3:r,domRef:o}},render(){const{card3:r,domRef:o}=this;return t("div",null,[t("div",{ref:"domRef",style:{width:"100%",height:"400px",backgroundColor:"red"}},null),t(i,{animation:!0,title:"Body"},{default:()=>[m("我被限制在 body 中。")]}),r?t(i,{animation:!0,title:"Custom Container",restrictionElement:o,closable:!0,onClose:()=>this.card3=!1},{default:()=>"我被限制在红色区域中。并且我支持 NCard 的所有配置与插槽。","header-extra":()=>"其实我就是 NCard 封装的",footer:()=>"我支持 footer 插槽",action:()=>"我支持 action 插槽"}):null,t(p,{title:"显示与隐藏卡片"},{default:()=>[t(e,{type:"primary",onClick:()=>this.card3=!this.card3},{default:()=>[m("点一下试试")]})]})])}});export{st as default};
diff --git a/js/draggable-card-CZ4wS8CL.js.gz b/js/draggable-card-CZ4wS8CL.js.gz
deleted file mode 100644
index 15b8f752..00000000
Binary files a/js/draggable-card-CZ4wS8CL.js.gz and /dev/null differ
diff --git a/js/echarts@5.5.1-Dj_7IMQj.js b/js/echarts@5.5.1-Dj_7IMQj.js
deleted file mode 100644
index 8a007c8c..00000000
--- a/js/echarts@5.5.1-Dj_7IMQj.js
+++ /dev/null
@@ -1,28 +0,0 @@
-import{i as W,r as Ta,m as F,c as U,e as w,a as le,b as lt,d as Y,f as ue,g as po,h as O,j as fe,k as Yp,l as N,n as X,o as Nn,p as Fe,P as Se,q as yl,s as ie,t as Xp,Z as Or,C as Ga,E as Fc,S as or,R as Gc,u as cs,v as Bn,w as he,L as er,B as Wc,A as vs,x as Zp,y as re,z as mt,D as $p,F as Kp,G as qp,H as Hc,I as go,T as Uc,J as hs,K as tr,M as jp,N as Ye,O as Qp,Q as ge,U as Jp,V as Yc,W as Da,X as we,Y as eg,_ as Ce,$ as Vn,a0 as q,a1 as K,a2 as xt,a3 as tg,a4 as Be,a5 as J,a6 as Ve,a7 as be,a8 as oe,a9 as Aa,aa as rg,ab as yt,ac as mo,ad as Xc,ae as ng,af as ag,ag as ig,ah as zn,ai as _l,aj as pi,ak as og,al as yo,am as _o,an as sg,ao as ds,ap as Sl,aq as gi,ar as lg,as as ug,at as Zc,au as sn,av as Dr,aw as $c,ax as fg,ay as cg,az as vg,aA as So,aB as xl,aC as hg,aD as dg,aE as pg,aF as gg,aG as mg,aH as bl,aI as wl,aJ as yg,aK as _g,aL as Sg,aM as xg,aN as bg,aO as wg,aP as Cg,aQ as Tg,aR as Dg,aS as Ag}from"./zrender@5.6.0-DbjVw6Tx.js";import{_ as B}from"./tslib@2.3.0-BDyQ-Jie.js";var Ig=1e-4,Kc=20;function Mg(r){return r.replace(/^\s+|\s+$/g,"")}function Ot(r,t,e,n){var a=t[0],i=t[1],o=e[0],s=e[1],l=i-a,u=s-o;if(l===0)return u===0?o:(o+s)/2;if(n)if(l>0){if(r<=a)return o;if(r>=i)return s}else{if(r>=a)return o;if(r<=i)return s}else{if(r===a)return o;if(r===i)return s}return(r-a)/l*u+o}function te(r,t){switch(r){case"center":case"middle":r="50%";break;case"left":case"top":r="0%";break;case"right":case"bottom":r="100%";break}return W(r)?Mg(r).match(/%$/)?parseFloat(r)/100*t:parseFloat(r):r==null?NaN:+r}function _e(r,t,e){return t==null&&(t=10),t=Math.min(Math.max(0,t),Kc),r=(+r).toFixed(t),e?r:+r}function Lg(r){return r.sort(function(t,e){return t-e}),r}function pt(r){if(r=+r,isNaN(r))return 0;if(r>1e-14){for(var t=1,e=0;e<15;e++,t*=10)if(Math.round(r*t)/t===r)return e}return Pg(r)}function Pg(r){var t=r.toString().toLowerCase(),e=t.indexOf("e"),n=e>0?+t.slice(e+1):0,a=e>0?e:t.length,i=t.indexOf("."),o=i<0?0:a-1-i;return Math.max(0,o-n)}function qc(r,t){var e=Math.log,n=Math.LN10,a=Math.floor(e(r[1]-r[0])/n),i=Math.round(e(Math.abs(t[1]-t[0]))/n),o=Math.min(Math.max(-a+i,0),20);return isFinite(o)?o:20}function Rg(r,t){var e=Ta(r,function(v,d){return v+(isNaN(d)?0:d)},0);if(e===0)return[];for(var n=Math.pow(10,t),a=F(r,function(v){return(isNaN(v)?0:v)/e*n*100}),i=n*100,o=F(a,function(v){return Math.floor(v)}),s=Ta(o,function(v,d){return v+d},0),l=F(a,function(v,d){return v-o[d]});su&&(u=l[c],f=c);++o[f],l[f]=0,++s}return F(o,function(v){return v/n})}function kg(r,t){var e=Math.max(pt(r),pt(t)),n=r+t;return e>Kc?n:_e(n,e)}function jc(r){var t=Math.PI*2;return(r%t+t)%t}function Ia(r){return r>-1e-4&&r=10&&t++,t}function Qc(r,t){var e=ps(r),n=Math.pow(10,e),a=r/n,i;return a<1.5?i=1:a<2.5?i=2:a<4?i=3:a<7?i=5:i=10,r=i*n,e>=-20?+r.toFixed(e<0?-e:0):r}function zt(r){var t=parseFloat(r);return t==r&&(t!==0||!W(r)||r.indexOf("x")<=0)?t:NaN}function Jc(r){return!isNaN(zt(r))}function ev(){return Math.round(Math.random()*9)}function tv(r,t){return t===0?r:tv(t,r%t)}function Cl(r,t){return r==null?t:t==null?r:r*t/tv(r,t)}function Q(r){throw new Error(r)}function Tl(r,t,e){return(t-r)*e+r}var rv="series\0",nv="\0_ec_\0";function de(r){return r instanceof Array?r:r==null?[]:[r]}function xo(r,t,e){if(r){r[t]=r[t]||{},r.emphasis=r.emphasis||{},r.emphasis[t]=r.emphasis[t]||{};for(var n=0,a=e.length;n=0||i&&le(i,l)<0)){var u=n.getShallow(l,t);u!=null&&(o[r[s][0]]=u)}}return o}}var im=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],om=bn(im),sm=function(){function r(){}return r.prototype.getAreaStyle=function(t,e){return om(this,t,e)},r}(),$=se(),lm=function(r,t,e,n){if(n){var a=$(n);a.dataIndex=e,a.dataType=t,a.seriesIndex=r,a.ssrType="chart",n.type==="group"&&n.traverse(function(i){var o=$(i);o.seriesIndex=r,o.dataIndex=e,o.dataType=t,o.ssrType="chart"})}},Al=1,Il={},uv=se(),_s=se(),Ss=0,Ha=1,Ua=2,Xe=["emphasis","blur","select"],Ma=["normal","emphasis","blur","select"],um=10,fm=9,Qt="highlight",ga="downplay",dn="select",ma="unselect",pn="toggleSelect";function ur(r){return r!=null&&r!=="none"}function Ya(r,t,e){r.onHoverStateChange&&(r.hoverState||0)!==e&&r.onHoverStateChange(t),r.hoverState=e}function fv(r){Ya(r,"emphasis",Ua)}function cv(r){r.hoverState===Ua&&Ya(r,"normal",Ss)}function xs(r){Ya(r,"blur",Ha)}function vv(r){r.hoverState===Ha&&Ya(r,"normal",Ss)}function cm(r){r.selected=!0}function vm(r){r.selected=!1}function Ml(r,t,e){t(r,e)}function bt(r,t,e){Ml(r,t,e),r.isGroup&&r.traverse(function(n){Ml(n,t,e)})}function Ll(r,t){switch(t){case"emphasis":r.hoverState=Ua;break;case"normal":r.hoverState=Ss;break;case"blur":r.hoverState=Ha;break;case"select":r.selected=!0}}function hm(r,t,e,n){for(var a=r.style,i={},o=0;o=0,i=!1;if(r instanceof Se){var o=uv(r),s=a&&o.selectFill||o.normalFill,l=a&&o.selectStroke||o.normalStroke;if(ur(s)||ur(l)){n=n||{};var u=n.style||{};u.fill==="inherit"?(i=!0,n=N({},n),u=N({},u),u.fill=s):!ur(u.fill)&&ur(s)?(i=!0,n=N({},n),u=N({},u),u.fill=yl(s)):!ur(u.stroke)&&ur(l)&&(i||(n=N({},n),u=N({},u)),u.stroke=yl(l)),n.style=u}}if(n&&n.z2==null){i||(n=N({},n));var f=r.z2EmphasisLift;n.z2=r.z2+(f??um)}return n}function pm(r,t,e){if(e&&e.z2==null){e=N({},e);var n=r.z2SelectLift;e.z2=r.z2+(n??fm)}return e}function gm(r,t,e){var n=le(r.currentStates,t)>=0,a=r.style.opacity,i=n?null:hm(r,["opacity"],t,{opacity:1});e=e||{};var o=e.style||{};return o.opacity==null&&(e=N({},e),o=N({opacity:n?a:i.opacity*.1},o),e.style=o),e}function mi(r,t){var e=this.states[r];if(this.style){if(r==="emphasis")return dm(this,r,t,e);if(r==="blur")return gm(this,r,e);if(r==="select")return pm(this,r,e)}return e}function mm(r){r.stateProxy=mi;var t=r.getTextContent(),e=r.getTextGuideLine();t&&(t.stateProxy=mi),e&&(e.stateProxy=mi)}function Pl(r,t){!gv(r,t)&&!r.__highByOuter&&bt(r,fv)}function Rl(r,t){!gv(r,t)&&!r.__highByOuter&&bt(r,cv)}function Ar(r,t){r.__highByOuter|=1<<(t||0),bt(r,fv)}function Ir(r,t){!(r.__highByOuter&=~(1<<(t||0)))&&bt(r,cv)}function ym(r){bt(r,xs)}function hv(r){bt(r,vv)}function dv(r){bt(r,cm)}function pv(r){bt(r,vm)}function gv(r,t){return r.__highDownSilentOnTouch&&t.zrByTouch}function mv(r){var t=r.getModel(),e=[],n=[];t.eachComponent(function(a,i){var o=_s(i),s=a==="series",l=s?r.getViewOfSeriesModel(i):r.getViewOfComponentModel(i);!s&&n.push(l),o.isBlured&&(l.group.traverse(function(u){vv(u)}),s&&e.push(i)),o.isBlured=!1}),w(n,function(a){a&&a.toggleBlurSeries&&a.toggleBlurSeries(e,!1,t)})}function bo(r,t,e,n){var a=n.getModel();e=e||"coordinateSystem";function i(u,f){for(var c=0;c0){var s={dataIndex:o,seriesIndex:e.seriesIndex};i!=null&&(s.dataType=i),t.push(s)}})}),t}function Co(r,t,e){yv(r,!0),bt(r,mm),Tm(r,t,e)}function Cm(r){yv(r,!1)}function Mr(r,t,e,n){n?Cm(r):Co(r,t,e)}function Tm(r,t,e){var n=$(r);t!=null?(n.focus=t,n.blurScope=e):n.focus&&(n.focus=null)}var El=["emphasis","blur","select"],Dm={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function wn(r,t,e,n){e=e||"itemStyle";for(var a=0;a0){var c=f.duration,h=f.delay,v=f.easing,d={duration:c,delay:h||0,easing:v,done:i,force:!!i||!!o,setToFinal:!u,scope:r,during:o};s?t.animateFrom(e,d):t.animateTo(e,d)}else t.stopAnimation(),!s&&t.attr(e),o&&o(1),i&&i()}function me(r,t,e,n,a,i){ws("update",r,t,e,n,a,i)}function De(r,t,e,n,a,i){ws("enter",r,t,e,n,a,i)}function Sr(r){if(!r.__zr)return!0;for(var t=0;tMath.abs(i[1])?i[0]>0?"right":"left":i[1]>0?"bottom":"top"}function Bl(r){return!r.isGroup}function Nm(r){return r.shape!=null}function Cv(r,t,e){if(!r||!t)return;function n(o){var s={};return o.traverse(function(l){Bl(l)&&l.anid&&(s[l.anid]=l)}),s}function a(o){var s={x:o.x,y:o.y,rotation:o.rotation};return Nm(o)&&(s.shape=N({},o.shape)),s}var i=n(r);t.traverse(function(o){if(Bl(o)&&o.anid){var s=i[o.anid];if(s){var l=a(o);o.attr(a(s)),me(o,l,e,$(o).dataIndex)}}})}function Tv(r,t){return F(r,function(e){var n=e[0];n=Pa(n,t.x),n=Ra(n,t.x+t.width);var a=e[1];return a=Pa(a,t.y),a=Ra(a,t.y+t.height),[n,a]})}function Bm(r,t){var e=Pa(r.x,t.x),n=Ra(r.x+r.width,t.x+t.width),a=Pa(r.y,t.y),i=Ra(r.y+r.height,t.y+t.height);if(n>=e&&i>=a)return{x:e,y:a,width:n-e,height:i-a}}function $a(r,t,e){var n=N({rectHover:!0},t),a=n.style={strokeNoScale:!0};if(e=e||{x:-1,y:-1,width:2,height:2},r)return r.indexOf("image://")===0?(a.image=r.slice(8),re(a,e),new Or(n)):Cs(r.replace("path://",""),n,e,"center")}function Vm(r,t,e,n,a){for(var i=0,o=a[a.length-1];i1)return!1;var g=yi(v,d,f,c)/h;return!(g<0||g>1)}function yi(r,t,e,n){return r*n-e*t}function zm(r){return r<=1e-6&&r>=-1e-6}function Ka(r){var t=r.itemTooltipOption,e=r.componentModel,n=r.itemName,a=W(t)?{formatter:t}:t,i=e.mainType,o=e.componentIndex,s={componentType:i,name:n,$vars:["name"]};s[i+"Index"]=o;var l=r.formatterParamsExtra;l&&w(Fe(l),function(f){mt(s,f)||(s[f]=l[f],s.$vars.push(f))});var u=$(r.el);u.componentMainType=i,u.componentIndex=o,u.tooltipConfig={name:n,option:re({content:n,encodeHTMLContent:!0,formatterParams:s},a)}}function Vl(r,t){var e;r.isGroup&&(e=t(r)),e||r.traverse(t)}function Wn(r,t){if(r)if(O(r))for(var e=0;e=0&&s.push(l)}),s}}function Is(r,t){return q(q({},r,!0),t,!0)}const Jm={time:{month:["January","February","March","April","May","June","July","August","September","October","November","December"],monthAbbr:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayOfWeekAbbr:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},legend:{selector:{all:"All",inverse:"Inv"}},toolbox:{brush:{title:{rect:"Box Select",polygon:"Lasso Select",lineX:"Horizontally Select",lineY:"Vertically Select",keep:"Keep Selections",clear:"Clear Selections"}},dataView:{title:"Data View",lang:["Data View","Close","Refresh"]},dataZoom:{title:{zoom:"Zoom",back:"Zoom Reset"}},magicType:{title:{line:"Switch to Line Chart",bar:"Switch to Bar Chart",stack:"Stack",tiled:"Tile"}},restore:{title:"Restore"},saveAsImage:{title:"Save as Image",lang:["Right Click to Save Image"]}},series:{typeNames:{pie:"Pie chart",bar:"Bar chart",line:"Line chart",scatter:"Scatter plot",effectScatter:"Ripple scatter plot",radar:"Radar chart",tree:"Tree",treemap:"Treemap",boxplot:"Boxplot",candlestick:"Candlestick",k:"K line chart",heatmap:"Heat map",map:"Map",parallel:"Parallel coordinate map",lines:"Line graph",graph:"Relationship graph",sankey:"Sankey diagram",funnel:"Funnel chart",gauge:"Gauge",pictorialBar:"Pictorial bar",themeRiver:"Theme River Map",sunburst:"Sunburst",custom:"Custom chart",chart:"Chart"}},aria:{general:{withTitle:'This is a chart about "{title}"',withoutTitle:"This is a chart"},series:{single:{prefix:"",withName:" with type {seriesType} named {seriesName}.",withoutName:" with type {seriesType}."},multiple:{prefix:". It consists of {seriesCount} series count.",withName:" The {seriesId} series is a {seriesType} representing {seriesName}.",withoutName:" The {seriesId} series is a {seriesType}.",separator:{middle:"",end:""}}},data:{allData:"The data is as follows: ",partialData:"The first {displayCnt} items are: ",withName:"the data for {name} is {value}",withoutName:"{value}",separator:{middle:", ",end:". "}}}},ey={time:{month:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],monthAbbr:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],dayOfWeekAbbr:["日","一","二","三","四","五","六"]},legend:{selector:{all:"全选",inverse:"反选"}},toolbox:{brush:{title:{rect:"矩形选择",polygon:"圈选",lineX:"横向选择",lineY:"纵向选择",keep:"保持选择",clear:"清除选择"}},dataView:{title:"数据视图",lang:["数据视图","关闭","刷新"]},dataZoom:{title:{zoom:"区域缩放",back:"区域缩放还原"}},magicType:{title:{line:"切换为折线图",bar:"切换为柱状图",stack:"切换为堆叠",tiled:"切换为平铺"}},restore:{title:"还原"},saveAsImage:{title:"保存为图片",lang:["右键另存为图片"]}},series:{typeNames:{pie:"饼图",bar:"柱状图",line:"折线图",scatter:"散点图",effectScatter:"涟漪散点图",radar:"雷达图",tree:"树图",treemap:"矩形树图",boxplot:"箱型图",candlestick:"K线图",k:"K线图",heatmap:"热力图",map:"地图",parallel:"平行坐标图",lines:"线图",graph:"关系图",sankey:"桑基图",funnel:"漏斗图",gauge:"仪表盘图",pictorialBar:"象形柱图",themeRiver:"主题河流图",sunburst:"旭日图",custom:"自定义图表",chart:"图表"}},aria:{general:{withTitle:"这是一个关于“{title}”的图表。",withoutTitle:"这是一个图表,"},series:{single:{prefix:"",withName:"图表类型是{seriesType},表示{seriesName}。",withoutName:"图表类型是{seriesType}。"},multiple:{prefix:"它由{seriesCount}个图表系列组成。",withName:"第{seriesId}个系列是一个表示{seriesName}的{seriesType},",withoutName:"第{seriesId}个系列是一个{seriesType},",separator:{middle:";",end:"。"}}},data:{allData:"其数据是——",partialData:"其中,前{displayCnt}项是——",withName:"{name}的数据是{value}",withoutName:"{value}",separator:{middle:",",end:""}}}};var ka="ZH",Ms="EN",xr=Ms,_a={},Ls={},Pv=fe.domSupported?function(){var r=(document.documentElement.lang||navigator.language||navigator.browserLanguage||xr).toUpperCase();return r.indexOf(ka)>-1?ka:xr}():xr;function Rv(r,t){r=r.toUpperCase(),Ls[r]=new ce(t),_a[r]=t}function ty(r){if(W(r)){var t=_a[r.toUpperCase()]||{};return r===ka||r===Ms?K(t):q(K(t),K(_a[xr]),!1)}else return q(K(r),K(_a[xr]),!1)}function ry(r){return Ls[r]}function ny(){return Ls[xr]}Rv(Ms,Jm);Rv(ka,ey);var Ps=1e3,Rs=Ps*60,gn=Rs*60,Ue=gn*24,Ul=Ue*365,ln={year:"{yyyy}",month:"{MMM}",day:"{d}",hour:"{HH}:{mm}",minute:"{HH}:{mm}",second:"{HH}:{mm}:{ss}",millisecond:"{HH}:{mm}:{ss} {SSS}",none:"{yyyy}-{MM}-{dd} {HH}:{mm}:{ss} {SSS}"},$n="{yyyy}-{MM}-{dd}",Yl={year:"{yyyy}",month:"{yyyy}-{MM}",day:$n,hour:$n+" "+ln.hour,minute:$n+" "+ln.minute,second:$n+" "+ln.second,millisecond:ln.none},xi=["year","month","day","hour","minute","second","millisecond"],kv=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Dt(r,t){return r+="","0000".substr(0,t-r.length)+r}function br(r){switch(r){case"half-year":case"quarter":return"month";case"week":case"half-week":return"day";case"half-day":case"quarter-day":return"hour";default:return r}}function ay(r){return r===br(r)}function iy(r){switch(r){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function ja(r,t,e,n){var a=_t(r),i=a[ks(e)](),o=a[wr(e)]()+1,s=Math.floor((o-1)/3)+1,l=a[Qa(e)](),u=a["get"+(e?"UTC":"")+"Day"](),f=a[Dn(e)](),c=(f-1)%12+1,h=a[Ja(e)](),v=a[ei(e)](),d=a[ti(e)](),p=f>=12?"pm":"am",g=p.toUpperCase(),m=n instanceof ce?n:ry(n||Pv)||ny(),y=m.getModel("time"),_=y.get("month"),S=y.get("monthAbbr"),b=y.get("dayOfWeek"),x=y.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,p+"").replace(/{A}/g,g+"").replace(/{yyyy}/g,i+"").replace(/{yy}/g,Dt(i%100+"",2)).replace(/{Q}/g,s+"").replace(/{MMMM}/g,_[o-1]).replace(/{MMM}/g,S[o-1]).replace(/{MM}/g,Dt(o,2)).replace(/{M}/g,o+"").replace(/{dd}/g,Dt(l,2)).replace(/{d}/g,l+"").replace(/{eeee}/g,b[u]).replace(/{ee}/g,x[u]).replace(/{e}/g,u+"").replace(/{HH}/g,Dt(f,2)).replace(/{H}/g,f+"").replace(/{hh}/g,Dt(c+"",2)).replace(/{h}/g,c+"").replace(/{mm}/g,Dt(h,2)).replace(/{m}/g,h+"").replace(/{ss}/g,Dt(v,2)).replace(/{s}/g,v+"").replace(/{SSS}/g,Dt(d,3)).replace(/{S}/g,d+"")}function oy(r,t,e,n,a){var i=null;if(W(e))i=e;else if(X(e))i=e(r.value,t,{level:r.level});else{var o=N({},ln);if(r.level>0)for(var s=0;s=0;--s)if(l[u]){i=l[u];break}i=i||o.none}if(O(i)){var c=r.level==null?0:r.level>=0?r.level:i.length+r.level;c=Math.min(c,i.length-1),i=i[c]}}return ja(new Date(r.value),i,a,n)}function Ev(r,t){var e=_t(r),n=e[wr(t)]()+1,a=e[Qa(t)](),i=e[Dn(t)](),o=e[Ja(t)](),s=e[ei(t)](),l=e[ti(t)](),u=l===0,f=u&&s===0,c=f&&o===0,h=c&&i===0,v=h&&a===1,d=v&&n===1;return d?"year":v?"month":h?"day":c?"hour":f?"minute":u?"second":"millisecond"}function Xl(r,t,e){var n=ue(r)?_t(r):r;switch(t=t||Ev(r,e),t){case"year":return n[ks(e)]();case"half-year":return n[wr(e)]()>=6?1:0;case"quarter":return Math.floor((n[wr(e)]()+1)/4);case"month":return n[wr(e)]();case"day":return n[Qa(e)]();case"half-day":return n[Dn(e)]()/24;case"hour":return n[Dn(e)]();case"minute":return n[Ja(e)]();case"second":return n[ei(e)]();case"millisecond":return n[ti(e)]()}}function ks(r){return r?"getUTCFullYear":"getFullYear"}function wr(r){return r?"getUTCMonth":"getMonth"}function Qa(r){return r?"getUTCDate":"getDate"}function Dn(r){return r?"getUTCHours":"getHours"}function Ja(r){return r?"getUTCMinutes":"getMinutes"}function ei(r){return r?"getUTCSeconds":"getSeconds"}function ti(r){return r?"getUTCMilliseconds":"getMilliseconds"}function sy(r){return r?"setUTCFullYear":"setFullYear"}function Ov(r){return r?"setUTCMonth":"setMonth"}function Nv(r){return r?"setUTCDate":"setDate"}function Bv(r){return r?"setUTCHours":"setHours"}function Vv(r){return r?"setUTCMinutes":"setMinutes"}function zv(r){return r?"setUTCSeconds":"setSeconds"}function Fv(r){return r?"setUTCMilliseconds":"setMilliseconds"}function Gv(r){if(!Jc(r))return W(r)?r:"-";var t=(r+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function Wv(r,t){return r=(r||"").toLowerCase().replace(/-(.)/g,function(e,n){return n.toUpperCase()}),t&&r&&(r=r.charAt(0).toUpperCase()+r.slice(1)),r}var ri=tg;function Mo(r,t,e){var n="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function a(f){return f&&Vn(f)?f:"-"}function i(f){return!!(f!=null&&!isNaN(f)&&isFinite(f))}var o=t==="time",s=r instanceof Date;if(o||s){var l=o?_t(r):r;if(isNaN(+l)){if(s)return"-"}else return ja(l,n,e)}if(t==="ordinal")return po(r)?a(r):ue(r)&&i(r)?r+"":"-";var u=zt(r);return i(u)?Gv(u):po(r)?a(r):typeof r=="boolean"?r+"":"-"}var Zl=["a","b","c","d","e","f","g"],bi=function(r,t){return"{"+r+(t??"")+"}"};function Hv(r,t,e){O(t)||(t=[t]);var n=t.length;if(!n)return"";for(var a=t[0].$vars||[],i=0;i':'';var o=e.markerId||"markerX";return{renderMode:i,content:"{"+o+"|} ",style:a==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:n}:{width:10,height:10,borderRadius:5,backgroundColor:n}}}function nr(r,t){return t=t||"transparent",W(r)?r:Y(r)&&r.colorStops&&(r.colorStops[0]||{}).color||t}function $l(r,t){if(t==="_blank"||t==="blank"){var e=window.open();e.opener=null,e.location.href=r}else window.open(r,t)}var Sa=w,uy=["left","right","top","bottom","width","height"],Kn=[["width","left","right"],["height","top","bottom"]];function Es(r,t,e,n,a){var i=0,o=0;n==null&&(n=1/0),a==null&&(a=1/0);var s=0;t.eachChild(function(l,u){var f=l.getBoundingRect(),c=t.childAt(u+1),h=c&&c.getBoundingRect(),v,d;if(r==="horizontal"){var p=f.width+(h?-h.x+f.x:0);v=i+p,v>n||l.newline?(i=0,v=p,o+=s+e,s=f.height):s=Math.max(s,f.height)}else{var g=f.height+(h?-h.y+f.y:0);d=o+g,d>a||l.newline?(i+=s+e,o=0,d=g,s=f.width):s=Math.max(s,f.width)}l.newline||(l.x=i,l.y=o,l.markRedraw(),r==="horizontal"?i=v+e:o=d+e)})}var Cr=Es;J(Es,"vertical");J(Es,"horizontal");function Gt(r,t,e){e=ri(e||0);var n=t.width,a=t.height,i=te(r.left,n),o=te(r.top,a),s=te(r.right,n),l=te(r.bottom,a),u=te(r.width,n),f=te(r.height,a),c=e[2]+e[0],h=e[1]+e[3],v=r.aspect;switch(isNaN(u)&&(u=n-s-h-i),isNaN(f)&&(f=a-l-c-o),v!=null&&(isNaN(u)&&isNaN(f)&&(v>n/a?u=n*.8:f=a*.8),isNaN(u)&&(u=v*f),isNaN(f)&&(f=u/v)),isNaN(i)&&(i=n-s-u-h),isNaN(o)&&(o=a-l-f-c),r.left||r.right){case"center":i=n/2-u/2-e[3];break;case"right":i=n-u-h;break}switch(r.top||r.bottom){case"middle":case"center":o=a/2-f/2-e[0];break;case"bottom":o=a-f-c;break}i=i||0,o=o||0,isNaN(u)&&(u=n-h-i-(s||0)),isNaN(f)&&(f=a-c-o-(l||0));var d=new Ye(i+e[3],o+e[0],u,f);return d.margin=e,d}function fy(r,t,e,n,a,i){i=i||r,i.x=r.x,i.y=r.y;var o;if(o=r.getBoundingRect(),r.needLocalTransform()){var s=r.getLocalTransform();o=o.clone(),o.applyTransform(s)}var l=Gt(re({width:o.width,height:o.height},t),e,n),u=l.x-o.x,f=l.y-o.y;return i.x+=u,i.y+=f,i===r&&r.markRedraw(),!0}function An(r){var t=r.layoutMode||r.constructor.layoutMode;return Y(t)?t:t?{type:t}:null}function Lr(r,t,e){var n=e&&e.ignoreSize;!O(n)&&(n=[n,n]);var a=o(Kn[0],0),i=o(Kn[1],1);u(Kn[0],r,a),u(Kn[1],r,i);function o(f,c){var h={},v=0,d={},p=0,g=2;if(Sa(f,function(_){d[_]=r[_]}),Sa(f,function(_){s(t,_)&&(h[_]=d[_]=t[_]),l(h,_)&&v++,l(d,_)&&p++}),n[c])return l(t,f[1])?d[f[2]]=null:l(t,f[2])&&(d[f[1]]=null),d;if(p===g||!v)return d;if(v>=g)return h;for(var m=0;m=0;l--)s=q(s,a[l],!0);n.defaultOption=s}return n.defaultOption},t.prototype.getReferringComponents=function(e,n){var a=e+"Index",i=e+"Id";return Gn(this.ecModel,e,{index:this.get(a,!0),id:this.get(i,!0)},n)},t.prototype.getBoxLayoutParams=function(){var e=this;return{left:e.get("left"),top:e.get("top"),right:e.get("right"),bottom:e.get("bottom"),width:e.get("width"),height:e.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(e){this.option.zlevel=e},t.protoInitialize=function(){var e=t.prototype;e.type="component",e.id="",e.name="",e.mainType="",e.subType="",e.componentIndex=0}(),t}(ce);lv(ee,ce);Wa(ee);jm(ee);Qm(ee,hy);function hy(r){var t=[];return w(ee.getClassesByMainType(r),function(e){t=t.concat(e.dependencies||e.prototype.dependencies||[])}),t=F(t,function(e){return nt(e).main}),r!=="dataset"&&le(t,"dataset")<=0&&t.unshift("dataset"),t}var Uv="";typeof navigator<"u"&&(Uv=navigator.platform||"");var fr="rgba(0, 0, 0, 0.2)";const dy={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:fr,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:fr,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:fr,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:fr,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:fr,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:fr,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:Uv.match(/^Win/)?"Microsoft YaHei":"sans-serif",fontSize:12,fontStyle:"normal",fontWeight:"normal"},blendMode:null,stateAnimation:{duration:300,easing:"cubicOut"},animation:"auto",animationDuration:1e3,animationDurationUpdate:500,animationEasing:"cubicInOut",animationEasingUpdate:"cubicInOut",animationThreshold:2e3,progressiveThreshold:3e3,progressive:400,hoverLayerThreshold:3e3,useUTC:!1};var Yv=U(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Ze="original",Ee="arrayRows",$e="objectRows",ut="keyedColumns",Bt="typedArray",Xv="unknown",st="column",zr="row",Te={Must:1,Might:2,Not:3},Zv=se();function py(r){Zv(r).datasetMap=U()}function $v(r,t,e){var n={},a=Os(t);if(!a||!r)return n;var i=[],o=[],s=t.ecModel,l=Zv(s).datasetMap,u=a.uid+"_"+e.seriesLayoutBy,f,c;r=r.slice(),w(r,function(p,g){var m=Y(p)?p:r[g]={name:p};m.type==="ordinal"&&f==null&&(f=g,c=d(m)),n[m.name]=[]});var h=l.get(u)||l.set(u,{categoryWayDim:c,valueWayDim:0});w(r,function(p,g){var m=p.name,y=d(p);if(f==null){var _=h.valueWayDim;v(n[m],_,y),v(o,_,y),h.valueWayDim+=y}else if(f===g)v(n[m],0,y),v(i,0,y);else{var _=h.categoryWayDim;v(n[m],_,y),v(o,_,y),h.categoryWayDim+=y}});function v(p,g,m){for(var y=0;yt)return r[n];return r[e-1]}function jv(r,t,e,n,a,i,o){i=i||r;var s=t(i),l=s.paletteIdx||0,u=s.paletteNameMap=s.paletteNameMap||{};if(u.hasOwnProperty(a))return u[a];var f=o==null||!n?e:xy(n,o);if(f=f||e,!(!f||!f.length)){var c=f[l];return a&&(u[a]=c),s.paletteIdx=(l+1)%f.length,c}}function by(r,t){t(r).paletteIdx=0,t(r).paletteNameMap={}}var qn,Xr,jl,Ql="\0_ec_inner",wy=1,Bs=function(r){B(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(e,n,a,i,o,s){i=i||{},this.option=null,this._theme=new ce(i),this._locale=new ce(o),this._optionManager=s},t.prototype.setOption=function(e,n,a){var i=tu(n);this._optionManager.setOption(e,a,i),this._resetOption(null,i)},t.prototype.resetOption=function(e,n){return this._resetOption(e,tu(n))},t.prototype._resetOption=function(e,n){var a=!1,i=this._optionManager;if(!e||e==="recreate"){var o=i.mountOption(e==="recreate");!this.option||e==="recreate"?jl(this,o):(this.restoreData(),this._mergeOption(o,n)),a=!0}if((e==="timeline"||e==="media")&&this.restoreData(),!e||e==="recreate"||e==="timeline"){var s=i.getTimelineOption(this);s&&(a=!0,this._mergeOption(s,n))}if(!e||e==="recreate"||e==="media"){var l=i.getMediaOption(this);l.length&&w(l,function(u){a=!0,this._mergeOption(u,n)},this)}return a},t.prototype.mergeOption=function(e){this._mergeOption(e,null)},t.prototype._mergeOption=function(e,n){var a=this.option,i=this._componentsMap,o=this._componentsCount,s=[],l=U(),u=n&&n.replaceMergeMainTypeMap;py(this),w(e,function(c,h){c!=null&&(ee.hasClass(h)?h&&(s.push(h),l.set(h,!0)):a[h]=a[h]==null?K(c):q(a[h],c,!0))}),u&&u.each(function(c,h){ee.hasClass(h)&&!l.get(h)&&(s.push(h),l.set(h,!0))}),ee.topologicalTravel(s,ee.getAllClassMainTypes(),f,this);function f(c){var h=_y(this,c,de(e[c])),v=i.get(c),d=v?u&&u.get(c)?"replaceMerge":"normalMerge":"replaceAll",p=Bg(v,h,d);Yg(p,c,ee),a[c]=null,i.set(c,null),o.set(c,0);var g=[],m=[],y=0,_;w(p,function(S,b){var x=S.existing,C=S.newOption;if(!C)x&&(x.mergeOption({},this),x.optionUpdated({},!1));else{var T=c==="series",D=ee.getClass(c,S.keyInfo.subType,!T);if(!D)return;if(c==="tooltip"){if(_)return;_=!0}if(x&&x.constructor===D)x.name=S.keyInfo.name,x.mergeOption(C,this),x.optionUpdated(C,!1);else{var A=N({componentIndex:b},S.keyInfo);x=new D(C,this,this,A),N(x,A),S.brandNew&&(x.__requireNewView=!0),x.init(C,this,this),x.optionUpdated(null,!0)}}x?(g.push(x.option),m.push(x),y++):(g.push(void 0),m.push(void 0))},this),a[c]=g,i.set(c,m),o.set(c,y),c==="series"&&qn(this)}this._seriesIndices||qn(this)},t.prototype.getOption=function(){var e=K(this.option);return w(e,function(n,a){if(ee.hasClass(a)){for(var i=de(n),o=i.length,s=!1,l=o-1;l>=0;l--)i[l]&&!xn(i[l])?s=!0:(i[l]=null,!s&&o--);i.length=o,e[a]=i}}),delete e[Ql],e},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(e){this._payload=e},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(e,n){var a=this._componentsMap.get(e);if(a){var i=a[n||0];if(i)return i;if(n==null){for(var o=0;o=t:e==="max"?r<=t:r===t}function Ry(r,t){return r.join(",")===t.join(",")}var Ke=w,In=Y,ru=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function Ci(r){var t=r&&r.itemStyle;if(t)for(var e=0,n=ru.length;e=0;g--){var m=r[g];if(s||(d=m.data.rawIndexOf(m.stackedByDimension,v)),d>=0){var y=m.data.getByRawIndex(m.stackResultDimension,d);if(l==="all"||l==="positive"&&y>0||l==="negative"&&y<0||l==="samesign"&&h>=0&&y>0||l==="samesign"&&h<=0&&y<0){h=kg(h,y),p=y;break}}}return n[0]=h,n[1]=p,n})})}var ai=function(){function r(t){this.data=t.data||(t.sourceFormat===ut?{}:[]),this.sourceFormat=t.sourceFormat||Xv,this.seriesLayoutBy=t.seriesLayoutBy||st,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var e=this.dimensionsDefine=t.dimensionsDefine;if(e)for(var n=0;np&&(p=_)}v[0]=d,v[1]=p}},a=function(){return this._data?this._data.length/this._dimSize:0};uu=(t={},t[Ee+"_"+st]={pure:!0,appendData:i},t[Ee+"_"+zr]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[$e]={pure:!0,appendData:i},t[ut]={pure:!0,appendData:function(o){var s=this._data;w(o,function(l,u){for(var f=s[u]||(s[u]=[]),c=0;c<(l||[]).length;c++)f.push(l[c])})}},t[Ze]={appendData:i},t[Bt]={persistent:!1,pure:!0,appendData:function(o){this._data=o},clean:function(){this._offset+=this.count(),this._data=null}},t);function i(o){for(var s=0;s=0&&(p=o.interpolatedValue[g])}return p!=null?p+"":""})}},r.prototype.getRawValue=function(t,e){return Pr(this.getData(e),t)},r.prototype.formatTooltip=function(t,e,n){},r}();function hu(r){var t,e;return Y(r)?r.type&&(e=r):t=r,{text:t,frag:e}}function mn(r){return new qy(r)}var qy=function(){function r(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return r.prototype.perform=function(t){var e=this._upstream,n=t&&t.skip;if(this._dirty&&e){var a=this.context;a.data=a.outputData=e.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var i;this._plan&&!n&&(i=this._plan(this.context));var o=f(this._modBy),s=this._modDataCount||0,l=f(t&&t.modBy),u=t&&t.modDataCount||0;(o!==l||s!==u)&&(i="reset");function f(y){return!(y>=1)&&(y=1),y}var c;(this._dirty||i==="reset")&&(this._dirty=!1,c=this._doReset(n)),this._modBy=l,this._modDataCount=u;var h=t&&t.step;if(e?this._dueEnd=e._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var v=this._dueIndex,d=Math.min(h!=null?this._dueIndex+h:1/0,this._dueEnd);if(!n&&(c||v1&&n>0?s:o}};return i;function o(){return t=r?null:lt},gte:function(r,t){return r>=t}},Qy=function(){function r(t,e){if(!ue(e)){var n="";Q(n)}this._opFn=uh[t],this._rvalFloat=zt(e)}return r.prototype.evaluate=function(t){return ue(t)?this._opFn(t,this._rvalFloat):this._opFn(zt(t),this._rvalFloat)},r}(),fh=function(){function r(t,e){var n=t==="desc";this._resultLT=n?1:-1,e==null&&(e=n?"min":"max"),this._incomparable=e==="min"?-1/0:1/0}return r.prototype.evaluate=function(t,e){var n=ue(t)?t:zt(t),a=ue(e)?e:zt(e),i=isNaN(n),o=isNaN(a);if(i&&(n=this._incomparable),o&&(a=this._incomparable),i&&o){var s=W(t),l=W(e);s&&(n=l?t:0),l&&(a=s?e:0)}return na?-this._resultLT:0},r}(),Jy=function(){function r(t,e){this._rval=e,this._isEQ=t,this._rvalTypeof=typeof e,this._rvalFloat=zt(e)}return r.prototype.evaluate=function(t){var e=t===this._rval;if(!e){var n=typeof t;n!==this._rvalTypeof&&(n==="number"||this._rvalTypeof==="number")&&(e=zt(t)===this._rvalFloat)}return this._isEQ?e:!e},r}();function e0(r,t){return r==="eq"||r==="ne"?new Jy(r==="eq",t):mt(uh,r)?new Qy(r,t):null}var t0=function(){function r(){}return r.prototype.getRawData=function(){throw new Error("not supported")},r.prototype.getRawDataItem=function(t){throw new Error("not supported")},r.prototype.cloneRawData=function(){},r.prototype.getDimensionInfo=function(t){},r.prototype.cloneAllDimensionInfo=function(){},r.prototype.count=function(){},r.prototype.retrieveValue=function(t,e){},r.prototype.retrieveValueFromItem=function(t,e){},r.prototype.convertValue=function(t,e){return xa(t,e)},r}();function r0(r,t){var e=new t0,n=r.data,a=e.sourceFormat=r.sourceFormat,i=r.startIndex,o="";r.seriesLayoutBy!==st&&Q(o);var s=[],l={},u=r.dimensionsDefine;if(u)w(u,function(p,g){var m=p.name,y={index:g,name:m,displayName:p.displayName};if(s.push(y),m!=null){var _="";mt(l,m)&&Q(_),l[m]=y}});else for(var f=0;f65535?f0:c0}function cr(){return[1/0,-1/0]}function v0(r){var t=r.constructor;return t===Array?r.slice():new t(r)}function gu(r,t,e,n,a){var i=hh[e||"float"];if(a){var o=r[t],s=o&&o.length;if(s!==n){for(var l=new i(n),u=0;ug[1]&&(g[1]=p)}return this._rawCount=this._count=l,{start:s,end:l}},r.prototype._initDataFromProvider=function(t,e,n){for(var a=this._provider,i=this._chunks,o=this._dimensions,s=o.length,l=this._rawExtent,u=F(o,function(y){return y.property}),f=0;fm[1]&&(m[1]=g)}}!a.persistent&&a.clean&&a.clean(),this._rawCount=this._count=e,this._extent=[]},r.prototype.count=function(){return this._count},r.prototype.get=function(t,e){if(!(e>=0&&e=0&&e=this._rawCount||t<0)return-1;if(!this._indices)return t;var e=this._indices,n=e[t];if(n!=null&&nt)i=o-1;else return o}return-1},r.prototype.indicesOfNearest=function(t,e,n){var a=this._chunks,i=a[t],o=[];if(!i)return o;n==null&&(n=1/0);for(var s=1/0,l=-1,u=0,f=0,c=this.count();f=0&&l<0)&&(s=d,l=v,u=0),v===l&&(o[u++]=f))}return o.length=u,o},r.prototype.getIndices=function(){var t,e=this._indices;if(e){var n=e.constructor,a=this._count;if(n===Array){t=new n(a);for(var i=0;i=c&&y<=h||isNaN(y))&&(l[u++]=p),p++}d=!0}else if(i===2){for(var g=v[a[0]],_=v[a[1]],S=t[a[1]][0],b=t[a[1]][1],m=0;m