From 3eeddc6c52a376c0cd856aac96ff155610d0c557 Mon Sep 17 00:00:00 2001 From: zshandy Date: Sun, 11 Feb 2024 18:42:40 -0800 Subject: [PATCH] Update app.js --- lineagex/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lineagex/app.js b/lineagex/app.js index f81aa5a..fd31d95 100644 --- a/lineagex/app.js +++ b/lineagex/app.js @@ -1 +1 @@ -!function(e){function t(t){for(var o,r,s=t[0],l=t[1],u=t[2],d=0,f=[];d=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,r=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){s=!0,a=e},f:function(){try{r||null==n.return||n.return()}finally{if(s)throw a}}}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=l.top&&(l.top=s.top+s.height+t),s.top+s.height+t0;)s();return{edges:i,fileds:a}}},{key:"_fixCenterNode",value:function(e,t){var n=this.getNode(t);if(n){var o=g.find(e,(function(e){return e.id===t})),i=o.left-n.left,a=o.top-n.top;e.forEach((function(e){e.left-=i,e.top-=a}))}}},{key:"relayout",value:function(e,t){var n=this.nodes,o=this.edges,i=n.map((function(e,t){return g.assign({left:e.left,top:e.top,order:t},e.options)})),a=[];a=t?e.edges||[]:o.map((function(e){return{source:e.sourceNode.id,target:e.targetNode.id}}));p.Layout.dagreLayout({rankdir:"LR",nodesep:50,ranksep:70,data:{nodes:i,edges:a}}),this._precollide(i,50,70),e&&e.centerNodeId&&this._fixCenterNode(i,e.centerNodeId),!t&&o.length>30&&(0,h.default)(this.svg).css("visibility","hidden"),this.nodes.forEach((function(e,t){var n=i[t].left,o=i[t].top;e.top===o&&e.left===n||(e.options.top=o,e.options.left=n,e.moveTo(n,o))})),!t&&o.length>30&&(0,h.default)(this.svg).css("visibility","visible")}},{key:"addNodes",value:function(e,t){var n=this,i=(0,l.default)((0,d.default)(o.prototype),"addNodes",this).call(this,e,t);return i.forEach((function(e){e._canvas=n})),i}}]),o}(p.Canvas);t.default=w},336:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setDragedPosition=t.setElementDragable=void 0;var o,i=new Map,a=function(e){o=e};t.setElementDragable=function(e,t){var n=!1,r=!1,s=0,l=0,u=0,c=0,d=0,f=0;e.addEventListener("mousedown",(function(t){n=!0,s=t.clientX,l=t.clientY,u=0,c=0,d=Number(e.style.top.replace("px",""))||0,f=Number(e.style.left.replace("px",""))||0,i.get(e)||i.set(e,{top:d,left:f})})),document.addEventListener("mouseup",(function(){n&&r&&(null==t||t(a)),n=!1})),document.addEventListener("mousemove",(function(t){r=!0,n&&r&&(o.zoom(1),u=t.clientX-s,c=t.clientY-l,e.style.top="".concat(d+c,"px"),e.style.left="".concat(f+u,"px"))}))};function r(e){var t=e.getBoundingClientRect(),n=t.top,o=t.left,i=t.width,a=t.height;return{x:o+i/2,y:n+a/2,height:a,width:i}}t.setDragedPosition=function(e,t,n){var o,i,a,s=(o=e,i=r(t),a=r(o),{x:i.x-a.x,y:i.y-a.y}),l=s.x,u=s.y,c=e.getBoundingClientRect(),d=c.width,f=c.height;return n.pos[1]=e.offsetTop+u+f/2,n.pos[0]=e.offsetLeft+l+d/2-15,n}},339:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0&&(this.canvas.removeEdges(r.rmEdges.map((function(e){return e.id}))),s=!0),r.rmNodes.length>0&&this.canvas.removeNodes(r.rmNodes.map((function(e){return e.id}))),r.addNodes.length>0&&this.canvas.addNodes(r.addNodes),r.collapseNodes.length>0&&(r.collapseNodes.forEach((function(e){n.canvas.getNode(e.id).collapse(e.isCollapse)})),s=!0),r.addEdges.length>0&&(this.canvas.addEdges(r.addEdges),s=!0),s){this.canvas.relayout({centerNodeId:e.centerId});var l=this.canvas.nodes.map((function(e){return e._renderPromise}));this.canvas._renderPromise=Promise.all(l).then((function(){return new Promise((function(t,o){e.centerId?(n.canvas.focusNodeWithAnimate(e.centerId,"node",{},(function(){setTimeout((function(){t()}),50)})),n.canvas.focus(e.centerId)):(n._isFirstFocus||(n.canvas.focusCenterWithAnimate(),n._isFirstFocus=!0),t())}))}))}return this.canvasData=a,(0,p.updateCanvasData)(a.nodes,this.canvas.nodes),(0,p.diffActionMenuData)(e.actionMenu,this.props.actionMenu)},t.prototype.render=function(){var e=this.canvas,t=this.props.actionMenu,n=void 0===t?[]:t,o=d.get(this,"props.config.showActionIcon",!0);return u.createElement("div",{className:this._genClassName()},u.createElement(h.default,{canvas:e,actionMenu:n,visible:o}))},t.prototype._genClassName=function(){return this.props.className?this.props.className+" butterfly-lineage-dag":"butterfly-lineage-dag"},t}(u.Component);t.default=g},460:function(e,t,n){var o=n(461);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(99)(o,i);o.locals&&(e.exports=o.locals)},461:function(e,t,n){(t=e.exports=n(81)(!1)).i(n(462),""),t.push([e.i,".butterfly-lineage-dag {\n position: relative;\n height: 100%;\n width: 100%;\n min-height: 200px;\n min-width: 200px;\n}\n.butterfly-lineage-dag .table-node {\n position: absolute;\n box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.15);\n min-width: 380px;\n background-color: white !important;\n}\n.butterfly-lineage-dag .table-node.focus {\n box-shadow: 0px 0px 5px #f66902;\n}\n.butterfly-lineage-dag .table-node .title-con {\n position: relative;\n min-width: 150px;\n}\n.butterfly-lineage-dag .table-node .title-con .operator {\n position: absolute;\n min-width: 50px;\n height: 100%;\n top: 0;\n right: 10px;\n}\n.butterfly-lineage-dag .table-node .title-con .operator .operator-item {\n display: inline-block;\n height: 100%;\n line-height: 34px;\n cursor: pointer;\n}\n.butterfly-lineage-dag .table-node .title-con .point {\n position: absolute;\n top: 50%;\n width: 0;\n height: 0;\n}\n.butterfly-lineage-dag .table-node .title-con .point.left-point {\n left: 6px;\n}\n.butterfly-lineage-dag .table-node .title-con .point.right-point {\n right: 6px;\n}\n.butterfly-lineage-dag .table-node .field {\n position: relative;\n margin: 0 16px;\n white-space: nowrap;\n}\n.butterfly-lineage-dag .table-node .field > span:nth-of-type(2) {\n display: none;\n}\n.butterfly-lineage-dag .table-node .field.hover-chain {\n background: #fef0e5;\n}\n.butterfly-lineage-dag .table-node .field.hover-chain .point {\n background: #ff6a00;\n}\n.butterfly-lineage-dag .table-node .field .field-item {\n display: inline-block;\n min-width: 50px;\n overflow-x: hidden;\n text-overflow: ellipsis;\n padding-right: 5px;\n text-align: center;\n}\n.butterfly-lineage-dag .table-node .field .point {\n position: absolute;\n top: 10px;\n width: 10px;\n height: 10px;\n border-radius: 50%;\n background: #D9D9D9;\n}\n.butterfly-lineage-dag .table-node .field .point.left-point {\n left: -14px;\n}\n.butterfly-lineage-dag .table-node .field .point.right-point {\n right: -14px;\n}\n.butterfly-lineage-dag .table-node .field .point.hidden {\n visibility: hidden;\n}\n.butterfly-lineage-dag .title {\n padding-left: 10px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n background: #fff;\n max-width: 250px;\n font-weight: 600;\n}\n.butterfly-lineage-dag .filed-title .filed-title-item {\n display: inline-block;\n text-align: center;\n}\n.butterfly-lineage-dag .butterflies-link.hover-chain {\n stroke: #F66902;\n stroke-width: 3px;\n}\n.butterfly-lineage-dag .butterflies-arrow {\n stroke-width: 2px;\n}\n.butterfly-lineage-dag .butterflies-arrow.hover-chain {\n stroke: #F66902;\n fill: #F66902;\n}\n.butterfly-lineage-dag .lineage-dag-canvas-action {\n box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);\n position: absolute;\n right: 10px;\n top: 10px;\n z-index: 999;\n}\n.butterfly-lineage-dag .lineage-dag-canvas-action div {\n height: 24px;\n width: 24px;\n text-align: center;\n line-height: 24px;\n cursor: pointer;\n color: #000;\n opacity: 0.7;\n border-bottom: 1px solid rgba(0, 0, 0, 0.1);\n}\n.butterfly-lineage-dag .lineage-dag-canvas-action div i {\n -webkit-text-stroke-width: 0;\n font-size: 14px;\n}\n.butterfly-lineage-dag .lineage-dag-canvas-action div:hover {\n background: #eee;\n}\n.butterfly-lineage-dag .lineage-dag-canvas-action div:last-child {\n border-bottom: none;\n}\n",""])},462:function(e,t,n){(e.exports=n(81)(!1)).push([e.i,'@font-face {\n font-family: "table-build-icon"; /* Project id 2369312 */\n src: \n url(\'data:application/x-font-woff2;charset=utf-8;base64,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\') format(\'woff2\'),\n url(\'//at.alicdn.com/t/font_2369312_kj11oxoesuj.woff?t=1649233665768\') format(\'woff\'),\n url(\'//at.alicdn.com/t/font_2369312_kj11oxoesuj.ttf?t=1649233665768\') format(\'truetype\');\n}\n\n.table-build-icon {\n font-family: "table-build-icon" !important;\n font-size: 16px;\n font-style: normal;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.table-build-icon-kongshuju:before {\n content: "\\E600";\n}\n\n.table-build-icon-zoom-in:before {\n content: "\\E604";\n}\n\n.table-build-icon-quanping2:before {\n content: "\\E78B";\n}\n\n.table-build-icon-zoom-out:before {\n content: "\\E9E5";\n}\n\n.table-build-icon-xiala:before {\n content: "\\E608";\n}\n\n.table-build-icon-canvas-cuo:before {\n content: "\\E61F";\n}\n\n.table-build-icon-iconfontxiaogantanhao:before {\n content: "\\E60D";\n}\n',""])},469:function(e,t,n){"use strict";var o=n(19),i=n(20);Object.defineProperty(t,"__esModule",{value:!0}),t.updateCanvasData=t.transformInitData=t.transformEdges=t.diffPropsData=t.diffActionMenuData=void 0;var a=o(n(40)),r=o(n(470)),s=o(n(472)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}o.default=e,n&&n.set(e,o);return o}(n(77));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}t.transformInitData=function(e){var t=e.tables,n=e.relations,o=e.columns,i=e.emptyContent,u=e.operator,c=e._titleRender,d=e._enableHoverChain,f=e._emptyContent,p=e._emptyWidth;return{nodes:t.map((function(e){var t;return l.assign((t={Class:r.default,_columns:o,_emptyContent:i,_operator:u,_titleRender:c,_enableHoverChain:d},(0,a.default)(t,"_emptyContent",f),(0,a.default)(t,"_emptyWidth",p),t),e)})),edges:n.map((function(e){return{id:e.id||"".concat(e.srcTableId,"-").concat(e.tgtTableId,"-").concat(e.srcTableColName,"-").concat(e.tgtTableColName),type:"endpoint",sourceNode:e.srcTableId,targetNode:e.tgtTableId,source:void 0!==e.srcTableColName&&null!==e.srcTableColName?e.srcTableColName:e.srcTableId+"-right",target:void 0!==e.tgtTableColName&&null!==e.tgtTableColName?e.tgtTableColName:e.tgtTableId+"-left",_isNodeEdge:!(void 0!==e.srcTableColName&&null!==e.srcTableColName||void 0!==e.tgtTableColName&&null!==e.tgtTableColName),Class:s.default}}))}};t.transformEdges=function(e,t){t.forEach((function(e){e._isNodeEdge||(e.source+="-right",e.target+="-left")})),e.forEach((function(e){e.isCollapse&&(t.filter((function(t){return e.id===t.sourceNode})).forEach((function(t){t.source="".concat(e.id,"-right"),t.sourceCollaps=!0})),t.filter((function(t){return e.id===t.targetNode})).forEach((function(t){t.target="".concat(e.id,"-left"),t.targetCollaps=!0})))}));var n={},o=[];for(var i in t.forEach((function(e){var t=n["".concat(e.sourceNode,"-").concat(e.source,"-").concat(e.targetNode,"-").concat(e.target)];t?l.assign(t,e):n["".concat(e.sourceNode,"-").concat(e.source,"-").concat(e.targetNode,"-").concat(e.target)]=e})),n)o.push(n[i]);return{nodes:e,edges:o}};t.diffPropsData=function(e,t){var n=function(e,t){return e.id===t.id},o=l.differenceWith(e.nodes,t.nodes,n),i=l.differenceWith(t.nodes,e.nodes,n),a=function(e,t){return e.sourceNode===t.sourceNode&&e.targetNode===t.targetNode&&e.source===t.source&&e.target===t.target},r=l.differenceWith(e.edges,t.edges,a),s=l.differenceWith(t.edges,e.edges,a),u=l.differenceWith(e.nodes,t.nodes,(function(e,t){return e.id===t.id&&e.isCollapse===t.isCollapse}));return{addNodes:o,rmNodes:i,addEdges:r,rmEdges:s,collapseNodes:u=l.differenceWith(u,o,n)}};t.updateCanvasData=function(e,t){t.forEach((function(t){var n=l.find(e,(function(e){return e.id===t.id}));l.assign(t.options,n)}))};t.diffActionMenuData=function(e,t){var n=function(e,t){return e.key===t.key},o=l.differenceWith(e,t,n),i=l.differenceWith(t,e,n);return 0!==o.length||0!==i.length}},470:function(e,t,n){"use strict";var o=n(19),i=n(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(66)),r=o(n(67)),s=o(n(68)),l=o(n(118)),u=o(n(100)),c=n(167),d=b(n(27)),f=o(n(119)),p=b(n(77)),h=o(n(471)),g=n(336),v=n(332);function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}function b(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return(0,l.default)(this,n)}}var j=function(e){(0,s.default)(n,e);var t=y(n);function n(e){var o;return(0,a.default)(this,n),(o=t.call(this,e)).TITLE_HEIGHT=34,o.ROW_HEIGHT=26,o.COLUMN_WIDTH=350,o.fieldsList=[],o.titlesList=[],o._renderPromise=Promise.resolve(),o._isRendering=!1,o}return(0,r.default)(n,[{key:"mounted",value:function(){this._createNodeEndpoint(!0),this.width=this.options.width=(0,f.default)(this.dom).width(),this.height=this.options.height=(0,f.default)(this.dom).height()}},{key:"draw",value:function(e){var t,n,o=this,i=e.dom,a=e.name||e.id||(null===(t=e.options)||void 0===t?void 0:t.name)||(null===(n=e.options)||void 0===n?void 0:n.id);i||(i=(0,f.default)("
").attr("class","node table-node").attr("id",a)),i.attr("id",a);var r=(0,f.default)(i),s=p.get(this,"options.classname");return s&&r.addClass(s),void 0!==e.top&&r.css("top",e.top),void 0!==e.left&&r.css("left",e.left),this._createTableName(r),this._createFields(r),(0,g.setElementDragable)(r[0],(function(e){(0,v.getEdges)(a).forEach((function(e){return e.redraw()})),e(o._canvas)})),r[0]}},{key:"collapse",value:function(e){var t=this;if(e!==this.options.isCollapse){if(this.options.isCollapse=e,e)this.fieldsList.forEach((function(e){(0,f.default)(e.dom).off()})),this.endpoints.filter((function(e){return!e.options._isNodeSelf})).map((function(e){return e.id})).forEach((function(e){t.removeEndpoint(e)})),(0,f.default)(this.dom).find(".field").remove(),this.fieldsList=[];else this._createFields(),this._createNodeEndpoint();this.width=this.options.width=(0,f.default)(this.dom).width(),this.height=this.options.height=(0,f.default)(this.dom).height()}}},{key:"focus",value:function(){(0,f.default)(this.dom).addClass("focus"),this.options.minimapActive=!0}},{key:"unfocus",value:function(){(0,f.default)(this.dom).removeClass("focus"),this.options.minimapActive=!1}},{key:"redrawTitle",value:function(){(0,f.default)(this.dom).find(".operator").remove(),this._createTableName((0,f.default)(this.dom),!0)}},{key:"_addEventListener",value:function(){var e=this;(0,f.default)(this.dom).on("mousedown",(function(t){0===t.button&&(["SELECT","INPUT","RADIO","CHECKBOX","TEXTAREA"].includes(t.target.nodeName)||t.preventDefault(),e.draggable?(e._isMoving=!0,e.emit("InnerEvents",{type:"node:dragBegin",data:e})):e.emit("InnerEvents",{type:"node:mouseDown",data:e}))})),(0,f.default)(this.dom).on("click",(function(t){e.emit("system.node.click",{node:e}),e.emit("events",{type:"node:click",node:e})})),this.setDraggable(this.draggable)}},{key:"_createTableName",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,f.default)(this.dom),n=arguments.length>1?arguments[1]:void 0,o=p.get(this,"options.name"),i=p.get(this,"options._titleRender"),a=p.get(this,"options._operator"),r=n?(0,f.default)(this.dom).find(".title-con"):(0,f.default)('
'),s=n?(0,f.default)(this.dom).find(".title"):(0,f.default)('
');if(this._isRendering)return!1;i?(this._isRendering=!0,(this._canvas?this._canvas._renderPromise:Promise.resolve()).then((function(){e._renderPromise=new Promise((function(t,n){d.render(i(o,e),s[0],(function(){if(0===e.height||0===e.width)e.width=e.options.width=(0,f.default)(e.dom).width(),e.height=e.options.height=(0,f.default)(e.dom).height(),e.endpoints.forEach((function(e){return e.updatePos()})),e.emit("custom.edge.redraw",{node:e});else{var n=[];e.endpoints.forEach((function(e){e.options._isNodeSelf&&(e.updatePos(),n.push(e))})),e.emit("custom.edge.redraw",{node:e,points:n})}t(),e._isRendering=!1})),r[0].title=r[0].textContent}))}))):o&&s.css({height:this.TITLE_HEIGHT+"px","line-height":this.TITLE_HEIGHT+"px"}),n||r.append(s);var l=null;if(a&&(l=(0,f.default)('
'),a.forEach((function(t){var n=(0,f.default)('
');d.render(t.icon,n[0]),t.onClick&&n.on("click",t.onClick.bind(e,e.options,e)),l.append(n)})),r.append(l)),!n){var u=(0,f.default)('
'),c=(0,f.default)('
');r.append(u).append(c),this.titlesList=this.titlesList.concat([{id:"".concat(this.id,"-left"),dom:u[0],type:"target"},{id:"".concat(this.id,"-right"),dom:c[0],type:"source"}]),(0,f.default)(t).append(r)}}},{key:"_createFields",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,f.default)(this.dom),n=p.get(this,"options.fields"),o=p.get(this,"options._columns"),i=p.get(this,"options.isCollapse"),a=o[0].key,r=[];if(n&&n.length){if(i)return;n.forEach((function(n,i){var s=(0,f.default)('
');s.css({height:e.ROW_HEIGHT+"px","line-height":e.ROW_HEIGHT+"px"}),o.forEach((function(t){if(t.render){var o=(0,f.default)('');o.css("width",(t.width||e.COLUMN_WIDTH)+"px"),d.render(t.render(n[t.key],n,i),o[0]),s.append(o)}else{var r=(0,f.default)('').concat(n[t.key],""));r.css("width",(t.width||e.COLUMN_WIDTH)+"px"),s.append(r)}t.primaryKey&&(a=t.key)}));var l=(0,f.default)(''),u=(0,f.default)('');s.append(l).append(u),e.options._enableHoverChain&&((0,f.default)(s).on("mouseover",(function(t){e.emit("custom.field.hover",{node:e,fieldId:n[a]})})),(0,f.default)(s).on("mouseout",(function(t){e.emit("custom.field.unHover",{node:e,fieldId:n[a]})}))),t.append(s),r.push({id:n[a],dom:s})})),this.fieldsList=this.fieldsList.concat(r)}else{var s=p.get(this.options,"_emptyContent");if(s){var l=(0,h.default)({content:s,width:this.options._emptyWidth});t.append(l),this.height=(0,f.default)(t).outerHeight()}}return r}},{key:"_createNodeEndpoint",value:function(e){var t=this;e&&this.titlesList.forEach((function(e){t.addEndpoint({id:e.id,orientation:"target"===e.type?[-1,0]:[1,0],dom:e.dom,originId:t.id,type:e.type,_isNodeSelf:!0})})),this.fieldsList.forEach((function(e){t.addEndpoint({id:"".concat(e.id,"-left"),orientation:[-1,0],dom:(0,f.default)(e.dom).find(".left-point")[0],originId:t.id,type:"target"}),t.addEndpoint({id:"".concat(e.id,"-right"),orientation:[1,0],dom:(0,f.default)(e.dom).find(".right-point")[0],originId:t.id,type:"source"}),t.options.isCollapse&&(0,f.default)(e.dom).css({visibility:"visible",display:"none"})}))}}]),n}(c.Node);t.default=j},471:function(e,t,n){"use strict";var o=n(19);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(119)),a=o(n(0)),r=o(n(27));t.default=function(e){var t=e.content,n=e.container[0],o=e.width;o||(o="150px"),"number"==typeof e.width&&(o=e.width+"px");var s,l='
';if(t)s=t,l=a.default.isValidElement(s)?r.default.render(t,n):(0,i.default)(t);else{l=(0,i.default)('
');var u=(0,i.default)('');l.append(u)}return l}},472:function(e,t,n){"use strict";var o=n(19);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(66)),a=o(n(67)),r=o(n(335)),s=o(n(68)),l=o(n(118)),u=o(n(100)),c=n(167),d=o(n(119)),f=o(n(473)),p=n(336);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return(0,l.default)(this,n)}}var g=function(e){(0,s.default)(n,e);var t=h(n);function n(e){return(0,i.default)(this,n),t.call(this,e)}return(0,a.default)(n,[{key:"mounted",value:function(){this.sourceNode.options.isCollapse||(0,d.default)(this.sourceEndpoint.dom).removeClass("hidden"),this.targetNode.options.isCollapse||(0,d.default)(this.targetEndpoint.dom).removeClass("hidden")}},{key:"calcPath",value:function(e,t){return(0,p.setDragedPosition)(this.sourceNode.dom,this.sourceEndpoint.dom,e),(0,p.setDragedPosition)(this.targetNode.dom,this.targetEndpoint.dom,t),(0,f.default)(e,t)}},{key:"focusChain",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"hover-chain";(0,d.default)(this.dom).addClass(e),(0,d.default)(this.arrowDom).addClass(e),(0,d.default)(this.labelDom).addClass(e),this.setZIndex(1e3)}},{key:"unfocusChain",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"hover-chain";(0,d.default)(this.dom).removeClass(e),(0,d.default)(this.arrowDom).removeClass(e),(0,d.default)(this.labelDom).removeClass(e),this.setZIndex(0)}},{key:"destroy",value:function(e){(0,r.default)((0,u.default)(n.prototype),"destroy",this).call(this,e),this.sourceNode.options.isCollapse||(0,d.default)(this.sourceEndpoint.dom).addClass("hidden"),this.targetNode.options.isCollapse||(0,d.default)(this.targetEndpoint.dom).addClass("hidden")}}]),n}(c.Edge);t.default=g},473:function(e,t,n){"use strict";var o=n(19);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(46)),a=o(n(20)),r=o(n(77)),s="Left",l="Top",u=function(e,t){this.x=e,this.y=t};function c(e,t,n,o,i){var s=function(e){if(i){for(var t=function(t){if(r.default.some(i,(function(n){return n===e[t]})))return{v:e[t]}},n=0;n=0?s(["Top","Left","Right","Bottom"]):c,c=u<0?s(["Bottom","Left","Right","Top"]):c),0===u&&(c=l>=0?s(["Right","Top","Bottom","Left"]):c,c=l<0?s(["Left","Top","Bottom","Right"]):c)):c=s(l>0&&u>0?d>1?["Top","Left","Right","Bottom"]:["Left","Top","Bottom","Right"]:l<0&&u>0?d>1?["Top","Right","Left","Bottom"]:["Right","Top","Bottom","Left"]:l<0&&u<0?d>1?["Bottom","Right","Left","Top"]:["Right","Bottom","Top","Left"]:d>1?["Bottom","Left","Right","Top"]:["Left","Bottom","Top","Right"]),c){case"Left":return[-1,0];case"Right":return[1,0];case"Top":return[0,-1];case"Bottom":return[0,1]}}var d=function(e,t,n){var o=new u;return["x","y"].forEach((function(i){e[i]>t[i]?o[i]=t[i]+n:e[i]0&&p*p<.1&&"Right"===a?(r=i,c=a):(f<0?r=new u(n.x-20,n.y):p>0&&"Bottom"===a||p<0&&a===l?r=new u(i.x,n.y):o===a?(d=Math.min(n.x,i.x)-20,r=new u(d,n.y)):r=new u(n.x-f/2,n.y),c=p>0?l:"Bottom"):"Right"===o?f<0&&p*p<.1&&a===s?(r=i,c=a):(f>0?r=new u(n.x+20,n.y):p>0&&"Bottom"===a||p<0&&a===l?r=new u(i.x,n.y):o===a?(d=Math.max(n.x,i.x)+20,r=new u(d,n.y)):r=new u(n.x-f/2,n.y),c=p>0?l:"Bottom"):"Bottom"===o?f*f<.1&&p<0&&a===l?(r=i,c=a):(p>0?r=new u(n.x,n.y+20):f>0&&"Right"===a||f<0&&a===s?r=new u(n.x,i.y):o===a?(d=Math.max(n.y,i.y)+20,r=new u(n.x,d)):r=new u(n.x,n.y-p/2),c=f>0?s:"Right"):o===l&&(f*f<.1&&p>0&&"Bottom"===a?(r=i,c=a):(p<0?r=new u(n.x,n.y-20):f>0&&"Right"===a||f<0&&a===s?r=new u(n.x,i.y):o===a?(d=Math.min(n.y,i.y)-20,r=new u(n.x,d)):r=new u(n.x,n.y-p/2),c=f>0?s:"Right")),e(t,r,c,i,a))}(n,o,d[e.orientation.join("")],a,d[t.orientation.join("")]),n.length<2)return"";if(2===n.length)return"M ".concat(n[0].x," ").concat(n[0].y," L ").concat(n[1].x," ").concat(n[1].y);var p=15;if(n.pop(),4!==n.length)return function(e){return e.reduce((function(e,t){return e.push(["L",t.x,t.y].join(" ")),e}),[["M",e[0].x,e[0].y].join(" ")]).join(" ")}(n);var h=n,g=(0,i.default)(h,4),v=g[0],m=g[1],b=g[2],y=g[3];if(Math.abs(v.y-y.y)<30&&(p=Math.abs(v.y-y.y)/2),r.default.first(n).x===r.default.last(n).x||r.default.first(n).y===r.default.last(n).y)return["M",r.default.first(n).x,r.default.first(n).y,"L",r.default.last(n).x,r.default.last(n).y].join(" ");r.default.first(n).x>r.default.last(n).x&&(n=n.reverse());var j=f(v,m,b,p),x=f(m,b,y,p);return["M",j[0].x,j[0].y,"L",j[1].x,j[1].y,"A",p,p,90,0,j[3],j[2].x,j[2].y,"L",x[1].x,x[1].y,"M",x[1].x,x[1].y,"A",p,p,90,0,x[3],x[2].x,x[2].y,"L",y.x,y.y].join(" ")};t.default=p},477:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(77)),l=a(n(0)),u=n(478),c=r(n(480));t.default=function(e){var t=e.canvas,n=e.actionMenu,o=void 0===n?[]:n;if(!e.visible)return null;Array.isArray(o)||(o=[]);for(var i=s.cloneDeep(u.actions),a=[],r=function(e){var t=s.find(i,(function(t){return t.key===e.key}));if(!t)return a.push(e),"continue";s.merge(t,e),a.push(t),i=i.filter((function(e){return e.key!==t.key}))},d=0,f=o;d=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,r=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return r=e.done,e},e:function(e){s=!0,a=e},f:function(){try{r||null==n.return||n.return()}finally{if(s)throw a}}}}function y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n=l.top&&(l.top=s.top+s.height+t),s.top+s.height+t0;)s();return{edges:i,fileds:a}}},{key:"_fixCenterNode",value:function(e,t){var n=this.getNode(t);if(n){var o=g.find(e,(function(e){return e.id===t})),i=o.left-n.left,a=o.top-n.top;e.forEach((function(e){e.left-=i,e.top-=a}))}}},{key:"relayout",value:function(e,t){var n=this.nodes,o=this.edges,i=n.map((function(e,t){return g.assign({left:e.left,top:e.top,order:t},e.options)})),a=[];a=t?e.edges||[]:o.map((function(e){return{source:e.sourceNode.id,target:e.targetNode.id}}));p.Layout.dagreLayout({rankdir:"LR",nodesep:50,ranksep:70,data:{nodes:i,edges:a}}),this._precollide(i,50,70),e&&e.centerNodeId&&this._fixCenterNode(i,e.centerNodeId),!t&&o.length>30&&(0,h.default)(this.svg).css("visibility","hidden"),this.nodes.forEach((function(e,t){var n=i[t].left,o=i[t].top;e.top===o&&e.left===n||(e.options.top=o,e.options.left=n,e.moveTo(n,o))})),!t&&o.length>30&&(0,h.default)(this.svg).css("visibility","visible")}},{key:"addNodes",value:function(e,t){var n=this,i=(0,l.default)((0,d.default)(o.prototype),"addNodes",this).call(this,e,t);return i.forEach((function(e){e._canvas=n})),i}}]),o}(p.Canvas);t.default=w},336:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.setDragedPosition=t.setElementDragable=void 0;var o,i=new Map,a=function(e){o=e};t.setElementDragable=function(e,t){var n=!1,r=!1,s=0,l=0,u=0,c=0,d=0,f=0;e.addEventListener("mousedown",(function(t){n=!0,s=t.clientX,l=t.clientY,u=0,c=0,d=Number(e.style.top.replace("px",""))||0,f=Number(e.style.left.replace("px",""))||0,i.get(e)||i.set(e,{top:d,left:f})})),document.addEventListener("mouseup",(function(){n&&r&&(null==t||t(a)),n=!1})),document.addEventListener("mousemove",(function(t){r=!0,n&&r&&(o.zoom(1),u=t.clientX-s,c=t.clientY-l,e.style.top="".concat(d+c,"px"),e.style.left="".concat(f+u,"px"))}))};function r(e){var t=e.getBoundingClientRect(),n=t.top,o=t.left,i=t.width,a=t.height;return{x:o+i/2,y:n+a/2,height:a,width:i}}t.setDragedPosition=function(e,t,n){var o,i,a,s=(o=e,i=r(t),a=r(o),{x:i.x-a.x,y:i.y-a.y}),l=s.x,u=s.y,c=e.getBoundingClientRect(),d=c.width,f=c.height;return n.pos[1]=e.offsetTop+u+f/2,n.pos[0]=e.offsetLeft+l+d/2-15,n}},339:function(e,t,n){"use strict";var o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,n=1,o=arguments.length;n0&&(this.canvas.removeEdges(r.rmEdges.map((function(e){return e.id}))),s=!0),r.rmNodes.length>0&&this.canvas.removeNodes(r.rmNodes.map((function(e){return e.id}))),r.addNodes.length>0&&this.canvas.addNodes(r.addNodes),r.collapseNodes.length>0&&(r.collapseNodes.forEach((function(e){n.canvas.getNode(e.id).collapse(e.isCollapse)})),s=!0),r.addEdges.length>0&&(this.canvas.addEdges(r.addEdges),s=!0),s){this.canvas.relayout({centerNodeId:e.centerId});var l=this.canvas.nodes.map((function(e){return e._renderPromise}));this.canvas._renderPromise=Promise.all(l).then((function(){return new Promise((function(t,o){e.centerId?(n.canvas.focusNodeWithAnimate(e.centerId,"node",{},(function(){setTimeout((function(){t()}),50)})),n.canvas.focus(e.centerId)):(n._isFirstFocus||(n.canvas.focusCenterWithAnimate(),n._isFirstFocus=!0),t())}))}))}return this.canvasData=a,(0,p.updateCanvasData)(a.nodes,this.canvas.nodes),(0,p.diffActionMenuData)(e.actionMenu,this.props.actionMenu)},t.prototype.render=function(){var e=this.canvas,t=this.props.actionMenu,n=void 0===t?[]:t,o=d.get(this,"props.config.showActionIcon",!0);return u.createElement("div",{className:this._genClassName()},u.createElement(h.default,{canvas:e,actionMenu:n,visible:o}))},t.prototype._genClassName=function(){return this.props.className?this.props.className+" butterfly-lineage-dag":"butterfly-lineage-dag"},t}(u.Component);t.default=g},460:function(e,t,n){var o=n(461);"string"==typeof o&&(o=[[e.i,o,""]]);var i={hmr:!0,transform:void 0,insertInto:void 0};n(99)(o,i);o.locals&&(e.exports=o.locals)},461:function(e,t,n){(t=e.exports=n(81)(!1)).i(n(462),""),t.push([e.i,".butterfly-lineage-dag {\n position: relative;\n height: 100%;\n width: 100%;\n min-height: 200px;\n min-width: 200px;\n}\n.butterfly-lineage-dag .table-node {\n position: absolute;\n box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.15);\n min-width: 380px;\n background-color: white !important;\n}\n.butterfly-lineage-dag .table-node.focus {\n box-shadow: 0px 0px 5px #f66902;\n}\n.butterfly-lineage-dag .table-node .title-con {\n position: relative;\n min-width: 150px;\n}\n.butterfly-lineage-dag .table-node .title-con .operator {\n position: absolute;\n min-width: 50px;\n height: 100%;\n top: 0;\n right: 10px;\n}\n.butterfly-lineage-dag .table-node .title-con .operator .operator-item {\n display: inline-block;\n height: 100%;\n line-height: 34px;\n cursor: pointer;\n}\n.butterfly-lineage-dag .table-node .title-con .point {\n position: absolute;\n top: 50%;\n width: 0;\n height: 0;\n}\n.butterfly-lineage-dag .table-node .title-con .point.left-point {\n left: 6px;\n}\n.butterfly-lineage-dag .table-node .title-con .point.right-point {\n right: 6px;\n}\n.butterfly-lineage-dag .table-node .field {\n position: relative;\n margin: 0 16px;\n white-space: nowrap;\n}\n.butterfly-lineage-dag .table-node .field > span:nth-of-type(2) {\n display: none;\n}\n.butterfly-lineage-dag .table-node .field.hover-chain {\n background: #fef0e5;\n}\n.butterfly-lineage-dag .table-node .field.hover-chain .point {\n background: #ff6a00;\n}\n.butterfly-lineage-dag .table-node .field .field-item {\n display: inline-block;\n min-width: 50px;\n overflow-x: hidden;\n text-overflow: ellipsis;\n padding-right: 5px;\n text-align: center;\n}\n.butterfly-lineage-dag .table-node .field .point {\n position: absolute;\n top: 10px;\n width: 10px;\n height: 10px;\n border-radius: 50%;\n background: #D9D9D9;\n}\n.butterfly-lineage-dag .table-node .field .point.left-point {\n left: -14px;\n}\n.butterfly-lineage-dag .table-node .field .point.right-point {\n right: -14px;\n}\n.butterfly-lineage-dag .table-node .field .point.hidden {\n visibility: hidden;\n}\n.butterfly-lineage-dag .title {\n padding-left: 10px;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n background: #fff;\n max-width: 250px;\n font-weight: 600;\n}\n.butterfly-lineage-dag .filed-title .filed-title-item {\n display: inline-block;\n text-align: center;\n}\n.butterfly-lineage-dag .butterflies-link.hover-chain {\n stroke: #F66902;\n stroke-width: 3px;\n}\n.butterfly-lineage-dag .butterflies-arrow {\n stroke-width: 2px;\n}\n.butterfly-lineage-dag .butterflies-arrow.hover-chain {\n stroke: #F66902;\n fill: #F66902;\n}\n.butterfly-lineage-dag .lineage-dag-canvas-action {\n box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);\n position: absolute;\n right: 10px;\n top: 10px;\n z-index: 999;\n}\n.butterfly-lineage-dag .lineage-dag-canvas-action div {\n height: 24px;\n width: 24px;\n text-align: center;\n line-height: 24px;\n cursor: pointer;\n color: #000;\n opacity: 0.7;\n border-bottom: 1px solid rgba(0, 0, 0, 0.1);\n}\n.butterfly-lineage-dag .lineage-dag-canvas-action div i {\n -webkit-text-stroke-width: 0;\n font-size: 14px;\n}\n.butterfly-lineage-dag .lineage-dag-canvas-action div:hover {\n background: #eee;\n}\n.butterfly-lineage-dag .lineage-dag-canvas-action div:last-child {\n border-bottom: none;\n}\n",""])},462:function(e,t,n){(e.exports=n(81)(!1)).push([e.i,'@font-face {\n font-family: "table-build-icon"; /* Project id 2369312 */\n src: \n url(\'data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAbwAAsAAAAADSQAAAajAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHFQGYACDdAqLRIodATYCJAMgCxIABCAFhUcHgQEbpgvIDiUFwcBgIKEAQDz8/37f9rn3+R/xhHszSyQ8iVkaa+CJTAmUMhAyiyYe6gz/btpDatA6oWLUDK1T941QscgLDRZKw0Rh58mJwdTpmQhy1p6If3E0pzbfEbvK0Y/Qm0uTwpdZjoDsplAoQIWUdEhqxpEQciZji3lWMcz6zqcIdLZoIzzUN7IVJN7GWDvIIhZPDuq6cZs2YSDWMihmYkKjrlY9tZgQ3AxK0gvhG3iX/338sS1iScosvtaRq70keOY7+PVN5I64yV/M7q4D7Z5QImPDidEHYucdL0EuyYZc0Y1VLpwFDEmhiO9/W3zTfNP/zeJv+e+/jkR6nUkRG3UgEZonpVolH/SfV4kVfRRwuaTmO5VB8L3IIPG9yaDkez+zqnIxZVDx45VN9gqwJH75FI3WeAiwAIivjvEjiMN3cZTyQxFZWxbL8uMT+5fIcsTiSuMwIs9DEHkmIhYPIUjybq9XLpDvrSSJLy9lyAIdAZBmnpSm8U8LRLNoqCuL5M7JEPczb3BvPSdI98llrDzemH6QK5LEI95Mwy7U5zl4ETF43befM/rkaGNz3gtOvr+dkxt8nnTjsNfrlm31CnejT+vCu5KFWMhtDQSEbkMweDhvfL3d4OXXPTgnkD0R4EJxsCcczAc3dQdQiWDWz10CuiTWfVkqFcuvCwQ9/h7/UpJw4FGicPAqkOiiiJ6e/ujlpGyD5PfMI4h/KZPcfvvhwwiScHD9iH+aQ/ds9RjDpOMN/ilgJtDyTMAmoJ4PCzzoKTE64BtSPjwOvRfXj8wtlbtnmPUVxnk5P9phE/pM5es3gPDn6+QRxHLIbZxN74A1WIM2BuzaUwfiRW6BE6JJcmq7hLsdpBmvVPrq4B0w+NCFggOCGwRXDLXjXJhTk6MbBaAE9+tMTUtLSalfqX0s/FfcP7Ivny/WjWd3OnKKCyOFsepLinNHDpR2WG4RpScutUSVtL4/+PxoSYzeR3ocxPYNmvd9+MzrKdsMwd2faTrPzaLbZJtqKtsa2VD/WU1JhJOSzbGfxXFxm+PwRwUlowxzlPpnRHCVAT3xp7mhrbl9x3L7c7ppc09OX+4xBtLSdLJ5bv+xvL7sHjPdndOfN1Ipr+7sq68cMQ7N/lEA4vN95d5V5fS0cnUfQyZbbaV0Ko3TqtW9vvOvQTwpLTctCTclaXI1SSY6SZYrS6Kh8An4Cf8rfseNjWhjJNLk9zd96f+SBr7i3xnoFwKwPXUKr3g66rd7kvX3pMYWXNw1M1I9VFk1VD1yP3urBoeqInKfI6uqgO4y265k73x3b11syIJ1Z6v3dZvr5nRGo26uLsCQaXXGZmGgblY3De615oFrdEuZZUduTo0Fe6d3tZj0JKk3tfwFgFZPYui/sGn7zhXdjBZFtTO6dwDQalEM/Q64nO8+lJ1y6tpL5wuiC8+fPZx1LXiuOD384EbZzyAeUfNlMyUcVzJTOv8GQ6bluGbBfOkbC6VErhuhylAZuu6whbJo4s7tUE80N+F6+CuD1p5ogvpfKD3e1AvGmzljQPfhVGGg6ORJLZBclEs2eimSzU4uVYelSDfG//cwHeb2dnMHIwQAqqmZDmFv89gt+1aXG+br6xcalz8HAABN2ecgCxHVgBrQgg37AdkpyVI2RPJLfsQvpgHM7y/uFHkEv5fz46JuAMhzKcS8L/8ncgntM1mSTiLXt9GO0rN5Iy/8h3fzfxWZuZTU8nes9Fc57evDiAeS3dbQSKzM/GM3drq4A5iPiO+0qtIUmGHy7hSzckLjuujChE5O4C/qGbG5S9Uo2L+qKq3GSW05zoZUoiKgGZd6DuPKEAPurAfP7hl1M8iiaLHKWYHDEq/iZMAvnC3xL1VERDouTUQDqcYCRnHnVNi49ayK5w86IcZCUoHvVNAEY6d4e5bFcCuswV20lazpL3QKmlxWzOl02S5AoXONplkVGqV6uKwf2qFzH0esbTNpWZZSUE7GpujbxfWg1cooHE7GDAlWucKyjmaVihrjrSQYG+jmBGFYEEkBtzPNTyMw7CjCysYYnBVUk7d3oVmRalbJPQUycbGOzrlir+YqoyCntUCkLZ+ChpJ6A9SvsG/U5YVUX7ONifYSbBSFau3EsFHoOxUCTaBihoJjfCcziMBSWtmg0KGZSg5FrapQHlZle1vmQSf+7CZS5CiijCrqaKLV3mLsprUVl9kVs4thbDW0PW7VhdkdtN2kje3djHGxUTtozIpJCMy+DVurIVwM8grRgwWMCbOzXLSCMQAA\') format(\'woff2\'),\n url(\'//at.alicdn.com/t/font_2369312_kj11oxoesuj.woff?t=1649233665768\') format(\'woff\'),\n url(\'//at.alicdn.com/t/font_2369312_kj11oxoesuj.ttf?t=1649233665768\') format(\'truetype\');\n}\n\n.table-build-icon {\n font-family: "table-build-icon" !important;\n font-size: 16px;\n font-style: normal;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.table-build-icon-kongshuju:before {\n content: "\\E600";\n}\n\n.table-build-icon-zoom-in:before {\n content: "\\E604";\n}\n\n.table-build-icon-quanping2:before {\n content: "\\E78B";\n}\n\n.table-build-icon-zoom-out:before {\n content: "\\E9E5";\n}\n\n.table-build-icon-xiala:before {\n content: "\\E608";\n}\n\n.table-build-icon-canvas-cuo:before {\n content: "\\E61F";\n}\n\n.table-build-icon-iconfontxiaogantanhao:before {\n content: "\\E60D";\n}\n',""])},469:function(e,t,n){"use strict";var o=n(19),i=n(20);Object.defineProperty(t,"__esModule",{value:!0}),t.updateCanvasData=t.transformInitData=t.transformEdges=t.diffPropsData=t.diffActionMenuData=void 0;var a=o(n(40)),r=o(n(470)),s=o(n(472)),l=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=u(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}o.default=e,n&&n.set(e,o);return o}(n(77));function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(u=function(e){return e?n:t})(e)}t.transformInitData=function(e){var t=e.tables,n=e.relations,o=e.columns,i=e.emptyContent,u=e.operator,c=e._titleRender,d=e._enableHoverChain,f=e._emptyContent,p=e._emptyWidth;return{nodes:t.map((function(e){var t;return l.assign((t={Class:r.default,_columns:o,_emptyContent:i,_operator:u,_titleRender:c,_enableHoverChain:d},(0,a.default)(t,"_emptyContent",f),(0,a.default)(t,"_emptyWidth",p),t),e)})),edges:n.map((function(e){return{id:e.id||"".concat(e.srcTableId,"-").concat(e.tgtTableId,"-").concat(e.srcTableColName,"-").concat(e.tgtTableColName),type:"endpoint",sourceNode:e.srcTableId,targetNode:e.tgtTableId,source:void 0!==e.srcTableColName&&null!==e.srcTableColName?e.srcTableColName:e.srcTableId+"-right",target:void 0!==e.tgtTableColName&&null!==e.tgtTableColName?e.tgtTableColName:e.tgtTableId+"-left",_isNodeEdge:!(void 0!==e.srcTableColName&&null!==e.srcTableColName||void 0!==e.tgtTableColName&&null!==e.tgtTableColName),Class:s.default}}))}};t.transformEdges=function(e,t){t.forEach((function(e){e._isNodeEdge||(e.source+="-right",e.target+="-left")})),e.forEach((function(e){e.isCollapse&&(t.filter((function(t){return e.id===t.sourceNode})).forEach((function(t){t.source="".concat(e.id,"-right"),t.sourceCollaps=!0})),t.filter((function(t){return e.id===t.targetNode})).forEach((function(t){t.target="".concat(e.id,"-left"),t.targetCollaps=!0})))}));var n={},o=[];for(var i in t.forEach((function(e){var t=n["".concat(e.sourceNode,"-").concat(e.source,"-").concat(e.targetNode,"-").concat(e.target)];t?l.assign(t,e):n["".concat(e.sourceNode,"-").concat(e.source,"-").concat(e.targetNode,"-").concat(e.target)]=e})),n)o.push(n[i]);return{nodes:e,edges:o}};t.diffPropsData=function(e,t){var n=function(e,t){return e.id===t.id},o=l.differenceWith(e.nodes,t.nodes,n),i=l.differenceWith(t.nodes,e.nodes,n),a=function(e,t){return e.sourceNode===t.sourceNode&&e.targetNode===t.targetNode&&e.source===t.source&&e.target===t.target},r=l.differenceWith(e.edges,t.edges,a),s=l.differenceWith(t.edges,e.edges,a),u=l.differenceWith(e.nodes,t.nodes,(function(e,t){return e.id===t.id&&e.isCollapse===t.isCollapse}));return{addNodes:o,rmNodes:i,addEdges:r,rmEdges:s,collapseNodes:u=l.differenceWith(u,o,n)}};t.updateCanvasData=function(e,t){t.forEach((function(t){var n=l.find(e,(function(e){return e.id===t.id}));l.assign(t.options,n)}))};t.diffActionMenuData=function(e,t){var n=function(e,t){return e.key===t.key},o=l.differenceWith(e,t,n),i=l.differenceWith(t,e,n);return 0!==o.length||0!==i.length}},470:function(e,t,n){"use strict";var o=n(19),i=n(20);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=o(n(66)),r=o(n(67)),s=o(n(68)),l=o(n(118)),u=o(n(100)),c=n(167),d=b(n(27)),f=o(n(119)),p=b(n(77)),h=o(n(471)),g=n(336),v=n(332);function m(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(m=function(e){return e?n:t})(e)}function b(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==i(e)&&"function"!=typeof e)return{default:e};var n=m(t);if(n&&n.has(e))return n.get(e);var o={},a=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var r in e)if("default"!==r&&Object.prototype.hasOwnProperty.call(e,r)){var s=a?Object.getOwnPropertyDescriptor(e,r):null;s&&(s.get||s.set)?Object.defineProperty(o,r,s):o[r]=e[r]}return o.default=e,n&&n.set(e,o),o}function y(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return(0,l.default)(this,n)}}var j=function(e){(0,s.default)(n,e);var t=y(n);function n(e){var o;return(0,a.default)(this,n),(o=t.call(this,e)).TITLE_HEIGHT=34,o.ROW_HEIGHT=26,o.COLUMN_WIDTH=350,o.fieldsList=[],o.titlesList=[],o._renderPromise=Promise.resolve(),o._isRendering=!1,o}return(0,r.default)(n,[{key:"mounted",value:function(){this._createNodeEndpoint(!0),this.width=this.options.width=(0,f.default)(this.dom).width(),this.height=this.options.height=(0,f.default)(this.dom).height()}},{key:"draw",value:function(e){var t,n,o=this,i=e.dom,a=e.name||e.id||(null===(t=e.options)||void 0===t?void 0:t.name)||(null===(n=e.options)||void 0===n?void 0:n.id);i||(i=(0,f.default)("
").attr("class","node table-node").attr("id",a)),i.attr("id",a);var r=(0,f.default)(i),s=p.get(this,"options.classname");return s&&r.addClass(s),void 0!==e.top&&r.css("top",e.top),void 0!==e.left&&r.css("left",e.left),this._createTableName(r),this._createFields(r),(0,g.setElementDragable)(r[0],(function(e){(0,v.getEdges)(a).forEach((function(e){return e.redraw()})),e(o._canvas)})),r[0]}},{key:"collapse",value:function(e){var t=this;if(e!==this.options.isCollapse){if(this.options.isCollapse=e,e)this.fieldsList.forEach((function(e){(0,f.default)(e.dom).off()})),this.endpoints.filter((function(e){return!e.options._isNodeSelf})).map((function(e){return e.id})).forEach((function(e){t.removeEndpoint(e)})),(0,f.default)(this.dom).find(".field").remove(),this.fieldsList=[];else this._createFields(),this._createNodeEndpoint();this.width=this.options.width=(0,f.default)(this.dom).width(),this.height=this.options.height=(0,f.default)(this.dom).height()}}},{key:"focus",value:function(){(0,f.default)(this.dom).addClass("focus"),this.options.minimapActive=!0}},{key:"unfocus",value:function(){(0,f.default)(this.dom).removeClass("focus"),this.options.minimapActive=!1}},{key:"redrawTitle",value:function(){(0,f.default)(this.dom).find(".operator").remove(),this._createTableName((0,f.default)(this.dom),!0)}},{key:"_addEventListener",value:function(){var e=this;(0,f.default)(this.dom).on("mousedown",(function(t){0===t.button&&(["SELECT","INPUT","RADIO","CHECKBOX","TEXTAREA"].includes(t.target.nodeName)||t.preventDefault(),e.draggable?(e._isMoving=!0,e.emit("InnerEvents",{type:"node:dragBegin",data:e})):e.emit("InnerEvents",{type:"node:mouseDown",data:e}))})),(0,f.default)(this.dom).on("click",(function(t){e.emit("system.node.click",{node:e}),e.emit("events",{type:"node:click",node:e})})),this.setDraggable(this.draggable)}},{key:"_createTableName",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,f.default)(this.dom),n=arguments.length>1?arguments[1]:void 0,o=p.get(this,"options.name"),i=p.get(this,"options._titleRender"),a=p.get(this,"options._operator"),r=n?(0,f.default)(this.dom).find(".title-con"):(0,f.default)('
'),s=n?(0,f.default)(this.dom).find(".title"):(0,f.default)('
');if(this._isRendering)return!1;i?(this._isRendering=!0,(this._canvas?this._canvas._renderPromise:Promise.resolve()).then((function(){e._renderPromise=new Promise((function(t,n){d.render(i(o,e),s[0],(function(){if(0===e.height||0===e.width)e.width=e.options.width=(0,f.default)(e.dom).width(),e.height=e.options.height=(0,f.default)(e.dom).height(),e.endpoints.forEach((function(e){return e.updatePos()})),e.emit("custom.edge.redraw",{node:e});else{var n=[];e.endpoints.forEach((function(e){e.options._isNodeSelf&&(e.updatePos(),n.push(e))})),e.emit("custom.edge.redraw",{node:e,points:n})}t(),e._isRendering=!1})),r[0].title=r[0].textContent}))}))):o&&s.css({height:this.TITLE_HEIGHT+"px","line-height":this.TITLE_HEIGHT+"px"}),n||r.append(s);var l=null;if(a&&(l=(0,f.default)('
'),a.forEach((function(t){var n=(0,f.default)('
');d.render(t.icon,n[0]),t.onClick&&n.on("click",t.onClick.bind(e,e.options,e)),l.append(n)})),r.append(l)),!n){var u=(0,f.default)('
'),c=(0,f.default)('
');r.append(u).append(c),this.titlesList=this.titlesList.concat([{id:"".concat(this.id,"-left"),dom:u[0],type:"target"},{id:"".concat(this.id,"-right"),dom:c[0],type:"source"}]),(0,f.default)(t).append(r)}}},{key:"_createFields",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:(0,f.default)(this.dom),n=p.get(this,"options.fields"),o=p.get(this,"options._columns"),i=p.get(this,"options.isCollapse"),a=o[0].key,r=[];if(n&&n.length){if(i)return;n.forEach((function(n,i){var s=(0,f.default)('
');s.css({height:e.ROW_HEIGHT+"px","line-height":e.ROW_HEIGHT+"px"}),o.forEach((function(t){if(t.render){var o=(0,f.default)('');o.css("width",(t.width||e.COLUMN_WIDTH)+"px"),d.render(t.render(n[t.key],n,i),o[0]),s.append(o)}else{var r=(0,f.default)('').concat(n[t.key],""));r.css("width",(t.width||e.COLUMN_WIDTH)+"px"),s.append(r)}t.primaryKey&&(a=t.key)}));var l=(0,f.default)(''),u=(0,f.default)('');s.append(l).append(u),e.options._enableHoverChain&&((0,f.default)(s).on("mouseover",(function(t){e.emit("custom.field.hover",{node:e,fieldId:n[a]})})),(0,f.default)(s).on("mouseout",(function(t){e.emit("custom.field.unHover",{node:e,fieldId:n[a]})}))),t.append(s),r.push({id:n[a],dom:s})})),this.fieldsList=this.fieldsList.concat(r)}else{var s=p.get(this.options,"_emptyContent");if(s){var l=(0,h.default)({content:s,width:this.options._emptyWidth});t.append(l),this.height=(0,f.default)(t).outerHeight()}}return r}},{key:"_createNodeEndpoint",value:function(e){var t=this;e&&this.titlesList.forEach((function(e){t.addEndpoint({id:e.id,orientation:"target"===e.type?[-1,0]:[1,0],dom:e.dom,originId:t.id,type:e.type,_isNodeSelf:!0})})),this.fieldsList.forEach((function(e){t.addEndpoint({id:"".concat(e.id,"-left"),orientation:[-1,0],dom:(0,f.default)(e.dom).find(".left-point")[0],originId:t.id,type:"target"}),t.addEndpoint({id:"".concat(e.id,"-right"),orientation:[1,0],dom:(0,f.default)(e.dom).find(".right-point")[0],originId:t.id,type:"source"}),t.options.isCollapse&&(0,f.default)(e.dom).css({visibility:"visible",display:"none"})}))}}]),n}(c.Node);t.default=j},471:function(e,t,n){"use strict";var o=n(19);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(119)),a=o(n(0)),r=o(n(27));t.default=function(e){var t=e.content,n=e.container[0],o=e.width;o||(o="150px"),"number"==typeof e.width&&(o=e.width+"px");var s,l='
';if(t)s=t,l=a.default.isValidElement(s)?r.default.render(t,n):(0,i.default)(t);else{l=(0,i.default)('
');var u=(0,i.default)('');l.append(u)}return l}},472:function(e,t,n){"use strict";var o=n(19);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(66)),a=o(n(67)),r=o(n(335)),s=o(n(68)),l=o(n(118)),u=o(n(100)),c=n(167),d=o(n(119)),f=o(n(473)),p=n(336);function h(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=(0,u.default)(e);if(t){var i=(0,u.default)(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return(0,l.default)(this,n)}}var g=function(e){(0,s.default)(n,e);var t=h(n);function n(e){return(0,i.default)(this,n),t.call(this,e)}return(0,a.default)(n,[{key:"mounted",value:function(){this.sourceNode.options.isCollapse||(0,d.default)(this.sourceEndpoint.dom).removeClass("hidden"),this.targetNode.options.isCollapse||(0,d.default)(this.targetEndpoint.dom).removeClass("hidden")}},{key:"calcPath",value:function(e,t){return(0,p.setDragedPosition)(this.sourceNode.dom,this.sourceEndpoint.dom,e),(0,p.setDragedPosition)(this.targetNode.dom,this.targetEndpoint.dom,t),(0,f.default)(e,t)}},{key:"focusChain",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"hover-chain";(0,d.default)(this.dom).addClass(e),(0,d.default)(this.arrowDom).addClass(e),(0,d.default)(this.labelDom).addClass(e),this.setZIndex(1e3)}},{key:"unfocusChain",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"hover-chain";(0,d.default)(this.dom).removeClass(e),(0,d.default)(this.arrowDom).removeClass(e),(0,d.default)(this.labelDom).removeClass(e),this.setZIndex(0)}},{key:"destroy",value:function(e){(0,r.default)((0,u.default)(n.prototype),"destroy",this).call(this,e),this.sourceNode.options.isCollapse||(0,d.default)(this.sourceEndpoint.dom).addClass("hidden"),this.targetNode.options.isCollapse||(0,d.default)(this.targetEndpoint.dom).addClass("hidden")}}]),n}(c.Edge);t.default=g},473:function(e,t,n){"use strict";var o=n(19);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=o(n(46)),a=o(n(20)),r=o(n(77)),s="Left",l="Top",u=function(e,t){this.x=e,this.y=t};function c(e,t,n,o,i){var s=function(e){if(i){for(var t=function(t){if(r.default.some(i,(function(n){return n===e[t]})))return{v:e[t]}},n=0;n=0?s(["Top","Left","Right","Bottom"]):c,c=u<0?s(["Bottom","Left","Right","Top"]):c),0===u&&(c=l>=0?s(["Right","Top","Bottom","Left"]):c,c=l<0?s(["Left","Top","Bottom","Right"]):c)):c=s(l>0&&u>0?d>1?["Top","Left","Right","Bottom"]:["Left","Top","Bottom","Right"]:l<0&&u>0?d>1?["Top","Right","Left","Bottom"]:["Right","Top","Bottom","Left"]:l<0&&u<0?d>1?["Bottom","Right","Left","Top"]:["Right","Bottom","Top","Left"]:d>1?["Bottom","Left","Right","Top"]:["Left","Bottom","Top","Right"]),c){case"Left":return[-1,0];case"Right":return[1,0];case"Top":return[0,-1];case"Bottom":return[0,1]}}var d=function(e,t,n){var o=new u;return["x","y"].forEach((function(i){e[i]>t[i]?o[i]=t[i]+n:e[i]0&&p*p<.1&&"Right"===a?(r=i,c=a):(f<0?r=new u(n.x-20,n.y):p>0&&"Bottom"===a||p<0&&a===l?r=new u(i.x,n.y):o===a?(d=Math.min(n.x,i.x)-20,r=new u(d,n.y)):r=new u(n.x-f/2,n.y),c=p>0?l:"Bottom"):"Right"===o?f<0&&p*p<.1&&a===s?(r=i,c=a):(f>0?r=new u(n.x+20,n.y):p>0&&"Bottom"===a||p<0&&a===l?r=new u(i.x,n.y):o===a?(d=Math.max(n.x,i.x)+20,r=new u(d,n.y)):r=new u(n.x-f/2,n.y),c=p>0?l:"Bottom"):"Bottom"===o?f*f<.1&&p<0&&a===l?(r=i,c=a):(p>0?r=new u(n.x,n.y+20):f>0&&"Right"===a||f<0&&a===s?r=new u(n.x,i.y):o===a?(d=Math.max(n.y,i.y)+20,r=new u(n.x,d)):r=new u(n.x,n.y-p/2),c=f>0?s:"Right"):o===l&&(f*f<.1&&p>0&&"Bottom"===a?(r=i,c=a):(p<0?r=new u(n.x,n.y-20):f>0&&"Right"===a||f<0&&a===s?r=new u(n.x,i.y):o===a?(d=Math.min(n.y,i.y)-20,r=new u(n.x,d)):r=new u(n.x,n.y-p/2),c=f>0?s:"Right")),e(t,r,c,i,a))}(n,o,d[e.orientation.join("")],a,d[t.orientation.join("")]),n.length<2)return"";if(2===n.length)return"M ".concat(n[0].x," ").concat(n[0].y," L ").concat(n[1].x," ").concat(n[1].y);var p=15;if(n.pop(),4!==n.length)return function(e){return e.reduce((function(e,t){return e.push(["L",t.x,t.y].join(" ")),e}),[["M",e[0].x,e[0].y].join(" ")]).join(" ")}(n);var h=n,g=(0,i.default)(h,4),v=g[0],m=g[1],b=g[2],y=g[3];if(Math.abs(v.y-y.y)<30&&(p=Math.abs(v.y-y.y)/2),r.default.first(n).x===r.default.last(n).x||r.default.first(n).y===r.default.last(n).y)return["M",r.default.first(n).x,r.default.first(n).y,"L",r.default.last(n).x,r.default.last(n).y].join(" ");r.default.first(n).x>r.default.last(n).x&&(n=n.reverse());var j=f(v,m,b,p),x=f(m,b,y,p);return["M",j[0].x,j[0].y,"L",j[1].x,j[1].y,"A",p,p,90,0,j[3],j[2].x,j[2].y,"L",x[1].x,x[1].y,"M",x[1].x,x[1].y,"A",p,p,90,0,x[3],x[2].x,x[2].y,"L",y.x,y.y].join(" ")};t.default=p},477:function(e,t,n){"use strict";var o=this&&this.__createBinding||(Object.create?function(e,t,n,o){void 0===o&&(o=n);var i=Object.getOwnPropertyDescriptor(t,n);i&&!("get"in i?!t.__esModule:i.writable||i.configurable)||(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,o,i)}:function(e,t,n,o){void 0===o&&(o=n),e[o]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var s=a(n(77)),l=a(n(0)),u=n(478),c=r(n(480));t.default=function(e){var t=e.canvas,n=e.actionMenu,o=void 0===n?[]:n;if(!e.visible)return null;Array.isArray(o)||(o=[]);for(var i=s.cloneDeep(u.actions),a=[],r=function(e){var t=s.find(i,(function(t){return t.key===e.key}));if(!t)return a.push(e),"continue";s.merge(t,e),a.push(t),i=i.filter((function(e){return e.key!==t.key}))},d=0,f=o;d