hyperbook 0.113.2 → 0.113.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/asset-manifest.json +9 -9
- package/dist/assets/directive-bitflow/{EditorElement-CE3Yr86b.js → EditorElement-BNwEKIvk.js} +143 -143
- package/dist/assets/directive-bitflow/{ReportElements-eYGRtw6N.js → ReportElements-CAvHx5xm.js} +2 -2
- package/dist/assets/directive-bitflow/{bitLoaders-CxvZkGrY.js → bitLoaders-7qanePQL.js} +41 -41
- package/dist/assets/directive-bitflow/{dom-uYx_3K1r.js → dom-B6NPWBb1.js} +1558 -1551
- package/dist/assets/directive-bitflow/editor.js +3 -3
- package/dist/assets/directive-bitflow/flow.js +4 -4
- package/dist/assets/directive-bitflow/{index-oNmOArKu.js → index-4JaKZ7WT.js} +2 -2
- package/dist/assets/directive-bitflow/{index-EKIgFddO.js → index-6CQr_atd.js} +19 -19
- package/dist/assets/directive-bitflow/{index-BadyFTU5.js → index-B9iG-a48.js} +2 -2
- package/dist/assets/directive-bitflow/{index-D4PdXMcj.js → index-BFYoOtcY.js} +5 -5
- package/dist/assets/directive-bitflow/{index-d5ebPDeY.js → index-BI6aFdIS.js} +10 -10
- package/dist/assets/directive-bitflow/{index-DruC5d43.js → index-Bf078mfo.js} +2 -2
- package/dist/assets/directive-bitflow/{index-CWe2GjBK.js → index-BinE5Wvd.js} +7 -7
- package/dist/assets/directive-bitflow/{index-BG0PL-Z6.js → index-BoX5-jkC.js} +7 -7
- package/dist/assets/directive-bitflow/{index-ledofrbo.js → index-BqRsXShM.js} +4 -4
- package/dist/assets/directive-bitflow/{index-CjKhq7gY.js → index-BxihQ8Oo.js} +13 -13
- package/dist/assets/directive-bitflow/{index-BNdpL6Ss.js → index-C5YguHZU.js} +28 -28
- package/dist/assets/directive-bitflow/{index-xTX3CXJW.js → index-C8zwSmE6.js} +7 -7
- package/dist/assets/directive-bitflow/{index-D9LOuqr2.js → index-C9JSBTNc.js} +21 -21
- package/dist/assets/directive-bitflow/{index-BydYlLy4.js → index-CCMI6UK4.js} +8 -8
- package/dist/assets/directive-bitflow/{index-WbE9UOFa.js → index-CGDt8H6s.js} +5 -5
- package/dist/assets/directive-bitflow/{index-D_QhyFcx.js → index-Ca1v0pjV.js} +5 -5
- package/dist/assets/directive-bitflow/{index-88c3K20U.js → index-CaYn3Gmh.js} +12 -12
- package/dist/assets/directive-bitflow/{index-C7RJxxAx.js → index-CbQue0If.js} +30 -30
- package/dist/assets/directive-bitflow/{index-CfKpkSVC.js → index-CjH3h0OO.js} +28 -28
- package/dist/assets/directive-bitflow/{index-TUXuIR22.js → index-CkO3QfOS.js} +4 -4
- package/dist/assets/directive-bitflow/{index-DIb3CXwC.js → index-Cz4i5rfe.js} +6 -6
- package/dist/assets/directive-bitflow/{index-HXNGIC7K.js → index-D0NtgeiX.js} +17 -17
- package/dist/assets/directive-bitflow/{index-CLHtOGrW.js → index-D1C_1SPY.js} +4 -4
- package/dist/assets/directive-bitflow/{index-Dn5hHVuT.js → index-D45u7EVR.js} +13 -13
- package/dist/assets/directive-bitflow/{index-IsMJtrUT.js → index-D9Ox4YpM.js} +10 -10
- package/dist/assets/directive-bitflow/{index-B61LKxr1.js → index-DJ1w2Xcm.js} +15 -15
- package/dist/assets/directive-bitflow/{index-BwBVUdJ9.js → index-DUqW2fmV.js} +2 -2
- package/dist/assets/directive-bitflow/{index-DUOrQfVe.js → index-Deedj9EF.js} +6 -6
- package/dist/assets/directive-bitflow/{index-DQP0cUsP.js → index-Dg6nnY_v.js} +14 -14
- package/dist/assets/directive-bitflow/{index-DW3cUBvZ.js → index-DgxEzomz.js} +2 -2
- package/dist/assets/directive-bitflow/{index-D0U3nepG.js → index-Dl0-ZAT5.js} +20 -20
- package/dist/assets/directive-bitflow/{index-ISbOe239.js → index-Do6dmZyj.js} +2 -2
- package/dist/assets/directive-bitflow/{index-Bw0pL0hW.js → index-DqnGC-DU.js} +6 -6
- package/dist/assets/directive-bitflow/{index-rp4UTV85.js → index-DwXXeSwk.js} +19 -19
- package/dist/assets/directive-bitflow/{index-BZhNY0lo.js → index-b6qwcTj9.js} +9 -9
- package/dist/assets/directive-bitflow/{index-BO-d4HVC.js → index-d105UFQI.js} +21 -21
- package/dist/assets/directive-bitflow/{index-BuQ-K_tR.js → index-jijMWQB6.js} +2 -2
- package/dist/assets/directive-bitflow/{index-DYWo0PUv.js → index-kxO5_U9Y.js} +2 -2
- package/dist/assets/directive-bitflow/{index-Cm4w1Zyc.js → index-p5AOgOal.js} +21 -21
- package/dist/assets/directive-bitflow/{index-BlT1EcFH.js → index-q2APknM6.js} +15 -15
- package/dist/assets/directive-bitflow/{index-CERSJ9uS.js → index-zVkWgm5I.js} +11 -11
- package/dist/assets/directive-bitflow/index.js +6 -6
- package/dist/assets/directive-bitflow/report.js +1 -1
- package/dist/assets/directive-bitflow/{shareableReport-vjEU4OvA.js → shareableReport-mdyEMdsJ.js} +6 -6
- package/dist/index.js +1 -1
- package/package.json +4 -4
package/dist/assets/directive-bitflow/{EditorElement-CE3Yr86b.js → EditorElement-BNwEKIvk.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { r as Qs, o as Qn, a as P, j as m, s as Gr,
|
|
2
|
-
import { O as al, T as Jn, G as sl, d as ll, P as je, C as cn, M as oe, I as Jr, y as cl, x as dl, e as ei, f as ul, F as Ft, r as ti, $ as fl, l as hl } from "./bitLoaders-
|
|
1
|
+
import { r as Qs, o as Qn, a as P, j as m, s as Gr, W as Ur, b as ke, g as Tn, F as Js, k as Et, n as el, E as Yt, t as Qr, y as tl, c as nl, d as ol, e as ut, f as rl, h as Cn, i as Po, l as il } from "./dom-B6NPWBb1.js";
|
|
2
|
+
import { O as al, T as Jn, G as sl, d as ll, P as je, C as cn, M as oe, I as Jr, y as cl, x as dl, e as ei, f as ul, F as Ft, r as ti, $ as fl, l as hl } from "./bitLoaders-7qanePQL.js";
|
|
3
3
|
Qs();
|
|
4
4
|
const gl = ".react-flow{direction:ltr;--xy-edge-stroke-default: #b1b1b7;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #555;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(255, 255, 255, .5);--xy-minimap-background-color-default: #fff;--xy-minimap-mask-background-color-default: rgba(240, 240, 240, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #e2e2e2;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: transparent;--xy-background-pattern-dots-color-default: #91919a;--xy-background-pattern-lines-color-default: #eee;--xy-background-pattern-cross-color-default: #e2e2e2;background-color:var(--xy-background-color, var(--xy-background-color-default));--xy-node-color-default: inherit;--xy-node-border-default: 1px solid #1a192b;--xy-node-background-color-default: #fff;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(0, 0, 0, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #1a192b;--xy-node-border-radius-default: 3px;--xy-handle-background-color-default: #1a192b;--xy-handle-border-color-default: #fff;--xy-selection-background-color-default: rgba(0, 89, 220, .08);--xy-selection-border-default: 1px dotted rgba(0, 89, 220, .8);--xy-controls-button-background-color-default: #fefefe;--xy-controls-button-background-color-hover-default: #f4f4f4;--xy-controls-button-color-default: inherit;--xy-controls-button-color-hover-default: inherit;--xy-controls-button-border-color-default: #eee;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #ffffff;--xy-edge-label-color-default: inherit;--xy-resize-background-color-default: #3367d9}.react-flow.dark{--xy-edge-stroke-default: #3e3e3e;--xy-edge-stroke-width-default: 1;--xy-edge-stroke-selected-default: #727272;--xy-connectionline-stroke-default: #b1b1b7;--xy-connectionline-stroke-width-default: 1;--xy-attribution-background-color-default: rgba(150, 150, 150, .25);--xy-minimap-background-color-default: #141414;--xy-minimap-mask-background-color-default: rgba(60, 60, 60, .6);--xy-minimap-mask-stroke-color-default: transparent;--xy-minimap-mask-stroke-width-default: 1;--xy-minimap-node-background-color-default: #2b2b2b;--xy-minimap-node-stroke-color-default: transparent;--xy-minimap-node-stroke-width-default: 2;--xy-background-color-default: #141414;--xy-background-pattern-dots-color-default: #555;--xy-background-pattern-lines-color-default: #333;--xy-background-pattern-cross-color-default: #333;--xy-node-color-default: #f8f8f8;--xy-node-border-default: 1px solid #3c3c3c;--xy-node-background-color-default: #1e1e1e;--xy-node-group-background-color-default: rgba(240, 240, 240, .25);--xy-node-boxshadow-hover-default: 0 1px 4px 1px rgba(255, 255, 255, .08);--xy-node-boxshadow-selected-default: 0 0 0 .5px #999;--xy-handle-background-color-default: #bebebe;--xy-handle-border-color-default: #1e1e1e;--xy-selection-background-color-default: rgba(200, 200, 220, .08);--xy-selection-border-default: 1px dotted rgba(200, 200, 220, .8);--xy-controls-button-background-color-default: #2b2b2b;--xy-controls-button-background-color-hover-default: #3e3e3e;--xy-controls-button-color-default: #f8f8f8;--xy-controls-button-color-hover-default: #fff;--xy-controls-button-border-color-default: #5b5b5b;--xy-controls-box-shadow-default: 0 0 2px 1px rgba(0, 0, 0, .08);--xy-edge-label-background-color-default: #141414;--xy-edge-label-color-default: #f8f8f8}.react-flow__background{background-color:var(--xy-background-color-props, var(--xy-background-color, var(--xy-background-color-default)));pointer-events:none;z-index:-1}.react-flow__container{position:absolute;width:100%;height:100%;top:0;left:0}.react-flow__pane{z-index:1;touch-action:none}.react-flow__pane.draggable{cursor:grab}.react-flow__pane.dragging{cursor:grabbing}.react-flow__pane.selection{cursor:pointer}.react-flow__viewport{transform-origin:0 0;z-index:2;pointer-events:none}.react-flow__renderer{z-index:4}.react-flow__selection{z-index:6}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible{outline:none}.react-flow__edge-path{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default));stroke-width:var(--xy-edge-stroke-width, var(--xy-edge-stroke-width-default));fill:none}.react-flow__connection-path{stroke:var(--xy-connectionline-stroke, var(--xy-connectionline-stroke-default));stroke-width:var(--xy-connectionline-stroke-width, var(--xy-connectionline-stroke-width-default));fill:none}.react-flow .react-flow__edges{position:absolute}.react-flow .react-flow__edges svg{overflow:visible;position:absolute;pointer-events:none}.react-flow__edge{pointer-events:visibleStroke}.react-flow__edge.selectable{cursor:pointer}.react-flow__edge.animated path{stroke-dasharray:5;animation:dashdraw .5s linear infinite}.react-flow__edge.animated path.react-flow__edge-interaction{stroke-dasharray:none;animation:none}.react-flow__edge.inactive{pointer-events:none}.react-flow__edge.selected,.react-flow__edge:focus,.react-flow__edge:focus-visible{outline:none}.react-flow__edge.selected .react-flow__edge-path,.react-flow__edge.selectable:focus .react-flow__edge-path,.react-flow__edge.selectable:focus-visible .react-flow__edge-path{stroke:var(--xy-edge-stroke-selected, var(--xy-edge-stroke-selected-default))}.react-flow__edge-textwrapper{pointer-events:all}.react-flow__edge .react-flow__edge-text{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__arrowhead polyline{stroke:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__arrowhead polyline.arrowclosed{fill:var(--xy-edge-stroke, var(--xy-edge-stroke-default))}.react-flow__connection{pointer-events:none}.react-flow__connection .animated{stroke-dasharray:5;animation:dashdraw .5s linear infinite}svg.react-flow__connectionline{z-index:1001;overflow:visible;position:absolute}.react-flow__nodes{pointer-events:none;transform-origin:0 0}.react-flow__node{position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:all;transform-origin:0 0;box-sizing:border-box;cursor:default}.react-flow__node.selectable{cursor:pointer}.react-flow__node.draggable{cursor:grab;pointer-events:all}.react-flow__node.draggable.dragging{cursor:grabbing}.react-flow__nodesselection{z-index:3;transform-origin:left top;pointer-events:none}.react-flow__nodesselection-rect{position:absolute;pointer-events:all;cursor:grab}.react-flow__handle{position:absolute;pointer-events:none;min-width:5px;min-height:5px;width:6px;height:6px;background-color:var(--xy-handle-background-color, var(--xy-handle-background-color-default));border:1px solid var(--xy-handle-border-color, var(--xy-handle-border-color-default));border-radius:100%}.react-flow__handle.connectingfrom{pointer-events:all}.react-flow__handle.connectionindicator{pointer-events:all;cursor:crosshair}.react-flow__handle-bottom{top:auto;left:50%;bottom:0;transform:translate(-50%,50%)}.react-flow__handle-top{top:0;left:50%;transform:translate(-50%,-50%)}.react-flow__handle-left{top:50%;left:0;transform:translate(-50%,-50%)}.react-flow__handle-right{top:50%;right:0;transform:translate(50%,-50%)}.react-flow__edgeupdater{cursor:move;pointer-events:all}.react-flow__pane.selection .react-flow__panel{pointer-events:none}.react-flow__panel{position:absolute;z-index:5;margin:15px}.react-flow__panel.top{top:0}.react-flow__panel.bottom{bottom:0}.react-flow__panel.top.center,.react-flow__panel.bottom.center{left:50%;transform:translate(-15px) translate(-50%)}.react-flow__panel.left{left:0}.react-flow__panel.right{right:0}.react-flow__panel.left.center,.react-flow__panel.right.center{top:50%;transform:translateY(-15px) translateY(-50%)}.react-flow__attribution{font-size:10px;background:var(--xy-attribution-background-color, var(--xy-attribution-background-color-default));padding:2px 3px;margin:0}.react-flow__attribution a{text-decoration:none;color:#999}@keyframes dashdraw{0%{stroke-dashoffset:10}}.react-flow__edgelabel-renderer{position:absolute;width:100%;height:100%;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;left:0;top:0}.react-flow__viewport-portal{position:absolute;width:100%;height:100%;left:0;top:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__minimap{background:var( --xy-minimap-background-color-props, var(--xy-minimap-background-color, var(--xy-minimap-background-color-default)) )}.react-flow__minimap-svg{display:block}.react-flow__minimap-mask{fill:var( --xy-minimap-mask-background-color-props, var(--xy-minimap-mask-background-color, var(--xy-minimap-mask-background-color-default)) );stroke:var( --xy-minimap-mask-stroke-color-props, var(--xy-minimap-mask-stroke-color, var(--xy-minimap-mask-stroke-color-default)) );stroke-width:var( --xy-minimap-mask-stroke-width-props, var(--xy-minimap-mask-stroke-width, var(--xy-minimap-mask-stroke-width-default)) )}.react-flow__minimap-node{fill:var( --xy-minimap-node-background-color-props, var(--xy-minimap-node-background-color, var(--xy-minimap-node-background-color-default)) );stroke:var( --xy-minimap-node-stroke-color-props, var(--xy-minimap-node-stroke-color, var(--xy-minimap-node-stroke-color-default)) );stroke-width:var( --xy-minimap-node-stroke-width-props, var(--xy-minimap-node-stroke-width, var(--xy-minimap-node-stroke-width-default)) )}.react-flow__background-pattern.dots{fill:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-dots-color-default)) )}.react-flow__background-pattern.lines{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-lines-color-default)) )}.react-flow__background-pattern.cross{stroke:var( --xy-background-pattern-color-props, var(--xy-background-pattern-color, var(--xy-background-pattern-cross-color-default)) )}.react-flow__controls{display:flex;flex-direction:column;box-shadow:var(--xy-controls-box-shadow, var(--xy-controls-box-shadow-default))}.react-flow__controls.horizontal{flex-direction:row}.react-flow__controls-button{display:flex;justify-content:center;align-items:center;height:26px;width:26px;padding:4px;border:none;background:var(--xy-controls-button-background-color, var(--xy-controls-button-background-color-default));border-bottom:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) );color:var( --xy-controls-button-color-props, var(--xy-controls-button-color, var(--xy-controls-button-color-default)) );cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none}.react-flow__controls-button svg{width:100%;max-width:12px;max-height:12px;fill:currentColor}.react-flow__edge.updating .react-flow__edge-path{stroke:#777}.react-flow__edge-text{font-size:10px}.react-flow__node.selectable:focus,.react-flow__node.selectable:focus-visible{outline:none}.react-flow__node-input,.react-flow__node-default,.react-flow__node-output,.react-flow__node-group{padding:10px;border-radius:var(--xy-node-border-radius, var(--xy-node-border-radius-default));width:150px;font-size:12px;color:var(--xy-node-color, var(--xy-node-color-default));text-align:center;border:var(--xy-node-border, var(--xy-node-border-default));background-color:var(--xy-node-background-color, var(--xy-node-background-color-default))}.react-flow__node-input.selectable:hover,.react-flow__node-default.selectable:hover,.react-flow__node-output.selectable:hover,.react-flow__node-group.selectable:hover{box-shadow:var(--xy-node-boxshadow-hover, var(--xy-node-boxshadow-hover-default))}.react-flow__node-input.selectable.selected,.react-flow__node-input.selectable:focus,.react-flow__node-input.selectable:focus-visible,.react-flow__node-default.selectable.selected,.react-flow__node-default.selectable:focus,.react-flow__node-default.selectable:focus-visible,.react-flow__node-output.selectable.selected,.react-flow__node-output.selectable:focus,.react-flow__node-output.selectable:focus-visible,.react-flow__node-group.selectable.selected,.react-flow__node-group.selectable:focus,.react-flow__node-group.selectable:focus-visible{box-shadow:var(--xy-node-boxshadow-selected, var(--xy-node-boxshadow-selected-default))}.react-flow__node-group{background-color:var(--xy-node-group-background-color, var(--xy-node-group-background-color-default))}.react-flow__nodesselection-rect,.react-flow__selection{background:var(--xy-selection-background-color, var(--xy-selection-background-color-default));border:var(--xy-selection-border, var(--xy-selection-border-default))}.react-flow__nodesselection-rect:focus,.react-flow__nodesselection-rect:focus-visible,.react-flow__selection:focus,.react-flow__selection:focus-visible{outline:none}.react-flow__controls-button:hover{background:var( --xy-controls-button-background-color-hover-props, var(--xy-controls-button-background-color-hover, var(--xy-controls-button-background-color-hover-default)) );color:var( --xy-controls-button-color-hover-props, var(--xy-controls-button-color-hover, var(--xy-controls-button-color-hover-default)) )}.react-flow__controls-button:disabled{pointer-events:none}.react-flow__controls-button:disabled svg{fill-opacity:.4}.react-flow__controls-button:last-child{border-bottom:none}.react-flow__controls.horizontal .react-flow__controls-button{border-bottom:none;border-right:1px solid var( --xy-controls-button-border-color-props, var(--xy-controls-button-border-color, var(--xy-controls-button-border-color-default)) )}.react-flow__controls.horizontal .react-flow__controls-button:last-child{border-right:none}.react-flow__resize-control{position:absolute}.react-flow__resize-control.left,.react-flow__resize-control.right{cursor:ew-resize}.react-flow__resize-control.top,.react-flow__resize-control.bottom{cursor:ns-resize}.react-flow__resize-control.top.left,.react-flow__resize-control.bottom.right{cursor:nwse-resize}.react-flow__resize-control.bottom.left,.react-flow__resize-control.top.right{cursor:nesw-resize}.react-flow__resize-control.handle{width:5px;height:5px;border:1px solid #fff;border-radius:1px;background-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));translate:-50% -50%}.react-flow__resize-control.handle.left{left:0;top:50%}.react-flow__resize-control.handle.right{left:100%;top:50%}.react-flow__resize-control.handle.top{left:50%;top:0}.react-flow__resize-control.handle.bottom{left:50%;top:100%}.react-flow__resize-control.handle.top.left,.react-flow__resize-control.handle.bottom.left{left:0}.react-flow__resize-control.handle.top.right,.react-flow__resize-control.handle.bottom.right{left:100%}.react-flow__resize-control.line{border-color:var(--xy-resize-background-color, var(--xy-resize-background-color-default));border-width:0;border-style:solid}.react-flow__resize-control.line.left,.react-flow__resize-control.line.right{width:1px;transform:translate(-50%);top:0;height:100%}.react-flow__resize-control.line.left{left:0;border-left-width:1px}.react-flow__resize-control.line.right{left:100%;border-right-width:1px}.react-flow__resize-control.line.top,.react-flow__resize-control.line.bottom{height:1px;transform:translateY(-50%);left:0;width:100%}.react-flow__resize-control.line.top{top:0;border-top-width:1px}.react-flow__resize-control.line.bottom{border-bottom-width:1px;top:100%}.react-flow__edge-textbg{fill:var(--xy-edge-label-background-color, var(--xy-edge-label-background-color-default))}.react-flow__edge-text{fill:var(--xy-edge-label-color, var(--xy-edge-label-color-default))}", _e = {
|
|
5
5
|
en: {
|
|
@@ -1414,17 +1414,17 @@ function si(e) {
|
|
|
1414
1414
|
return t.matches(e);
|
|
1415
1415
|
};
|
|
1416
1416
|
}
|
|
1417
|
-
var
|
|
1418
|
-
function
|
|
1417
|
+
var Wl = Array.prototype.find;
|
|
1418
|
+
function Xl(e) {
|
|
1419
1419
|
return function() {
|
|
1420
|
-
return
|
|
1420
|
+
return Wl.call(this.children, e);
|
|
1421
1421
|
};
|
|
1422
1422
|
}
|
|
1423
1423
|
function Kl() {
|
|
1424
1424
|
return this.firstElementChild;
|
|
1425
1425
|
}
|
|
1426
1426
|
function ql(e) {
|
|
1427
|
-
return this.select(e == null ? Kl :
|
|
1427
|
+
return this.select(e == null ? Kl : Xl(typeof e == "function" ? e : si(e)));
|
|
1428
1428
|
}
|
|
1429
1429
|
var Gl = Array.prototype.filter;
|
|
1430
1430
|
function Ul() {
|
|
@@ -1741,14 +1741,14 @@ function Zc(e) {
|
|
|
1741
1741
|
this.innerHTML = t ?? "";
|
|
1742
1742
|
};
|
|
1743
1743
|
}
|
|
1744
|
-
function
|
|
1744
|
+
function Wc(e) {
|
|
1745
1745
|
return arguments.length ? this.each(e == null ? Yc : (typeof e == "function" ? Zc : Fc)(e)) : this.node().innerHTML;
|
|
1746
1746
|
}
|
|
1747
|
-
function
|
|
1747
|
+
function Xc() {
|
|
1748
1748
|
this.nextSibling && this.parentNode.appendChild(this);
|
|
1749
1749
|
}
|
|
1750
1750
|
function Kc() {
|
|
1751
|
-
return this.each(
|
|
1751
|
+
return this.each(Xc);
|
|
1752
1752
|
}
|
|
1753
1753
|
function qc() {
|
|
1754
1754
|
this.previousSibling && this.parentNode.insertBefore(this, this.parentNode.firstChild);
|
|
@@ -1899,7 +1899,7 @@ ce.prototype = Mt.prototype = {
|
|
|
1899
1899
|
property: Oc,
|
|
1900
1900
|
classed: Tc,
|
|
1901
1901
|
text: Vc,
|
|
1902
|
-
html:
|
|
1902
|
+
html: Wc,
|
|
1903
1903
|
raise: Kc,
|
|
1904
1904
|
lower: Gc,
|
|
1905
1905
|
append: Uc,
|
|
@@ -2253,7 +2253,7 @@ var vt = 0.7, Ut = 1 / vt, nt = "\\s*([+-]?\\d+)\\s*", wt = "\\s*([+-]?(?:\\d*\\
|
|
|
2253
2253
|
yellow: 16776960,
|
|
2254
2254
|
yellowgreen: 10145074
|
|
2255
2255
|
};
|
|
2256
|
-
oo(Pt,
|
|
2256
|
+
oo(Pt, We, {
|
|
2257
2257
|
copy(e) {
|
|
2258
2258
|
return Object.assign(new this.constructor(), this, e);
|
|
2259
2259
|
},
|
|
@@ -2280,7 +2280,7 @@ function Id() {
|
|
|
2280
2280
|
function Ho() {
|
|
2281
2281
|
return this.rgb().formatRgb();
|
|
2282
2282
|
}
|
|
2283
|
-
function
|
|
2283
|
+
function We(e) {
|
|
2284
2284
|
var t, n;
|
|
2285
2285
|
return e = (e + "").trim().toLowerCase(), (t = Sd.exec(e)) ? (n = t[1].length, t = parseInt(t[1], 16), n === 6 ? Vo(t) : n === 3 ? new se(t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, (t & 15) << 4 | t & 15, 1) : n === 8 ? jt(t >> 24 & 255, t >> 16 & 255, t >> 8 & 255, (t & 255) / 255) : n === 4 ? jt(t >> 12 & 15 | t >> 8 & 240, t >> 8 & 15 | t >> 4 & 240, t >> 4 & 15 | t & 240, ((t & 15) << 4 | t & 15) / 255) : null) : (t = kd.exec(e)) ? new se(t[1], t[2], t[3], 1) : (t = _d.exec(e)) ? new se(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, 1) : (t = Cd.exec(e)) ? jt(t[1], t[2], t[3], t[4]) : (t = Nd.exec(e)) ? jt(t[1] * 255 / 100, t[2] * 255 / 100, t[3] * 255 / 100, t[4]) : (t = Ed.exec(e)) ? Zo(t[1], t[2] / 100, t[3] / 100, 1) : (t = Md.exec(e)) ? Zo(t[1], t[2] / 100, t[3] / 100, t[4]) : $o.hasOwnProperty(e) ? Vo($o[e]) : e === "transparent" ? new se(NaN, NaN, NaN, 0) : null;
|
|
2286
2286
|
}
|
|
@@ -2291,7 +2291,7 @@ function jt(e, t, n, o) {
|
|
|
2291
2291
|
return o <= 0 && (e = t = n = NaN), new se(e, t, n, o);
|
|
2292
2292
|
}
|
|
2293
2293
|
function zd(e) {
|
|
2294
|
-
return e instanceof Pt || (e =
|
|
2294
|
+
return e instanceof Pt || (e = We(e)), e ? (e = e.rgb(), new se(e.r, e.g, e.b, e.opacity)) : new se();
|
|
2295
2295
|
}
|
|
2296
2296
|
function Hn(e, t, n, o) {
|
|
2297
2297
|
return arguments.length === 1 ? zd(e) : new se(e, t, n, o ?? 1);
|
|
@@ -2346,7 +2346,7 @@ function Zo(e, t, n, o) {
|
|
|
2346
2346
|
}
|
|
2347
2347
|
function wi(e) {
|
|
2348
2348
|
if (e instanceof fe) return new fe(e.h, e.s, e.l, e.opacity);
|
|
2349
|
-
if (e instanceof Pt || (e =
|
|
2349
|
+
if (e instanceof Pt || (e = We(e)), !e) return new fe();
|
|
2350
2350
|
if (e instanceof fe) return e;
|
|
2351
2351
|
e = e.rgb();
|
|
2352
2352
|
var t = e.r / 255, n = e.g / 255, o = e.b / 255, r = Math.min(t, n, o), i = Math.max(t, n, o), a = NaN, s = i - r, l = (i + r) / 2;
|
|
@@ -2375,17 +2375,17 @@ oo(fe, Dd, vi(Pt, {
|
|
|
2375
2375
|
);
|
|
2376
2376
|
},
|
|
2377
2377
|
clamp() {
|
|
2378
|
-
return new fe(
|
|
2378
|
+
return new fe(Wo(this.h), Rt(this.s), Rt(this.l), Qt(this.opacity));
|
|
2379
2379
|
},
|
|
2380
2380
|
displayable() {
|
|
2381
2381
|
return (0 <= this.s && this.s <= 1 || isNaN(this.s)) && 0 <= this.l && this.l <= 1 && 0 <= this.opacity && this.opacity <= 1;
|
|
2382
2382
|
},
|
|
2383
2383
|
formatHsl() {
|
|
2384
2384
|
const e = Qt(this.opacity);
|
|
2385
|
-
return `${e === 1 ? "hsl(" : "hsla("}${
|
|
2385
|
+
return `${e === 1 ? "hsl(" : "hsla("}${Wo(this.h)}, ${Rt(this.s) * 100}%, ${Rt(this.l) * 100}%${e === 1 ? ")" : `, ${e})`}`;
|
|
2386
2386
|
}
|
|
2387
2387
|
}));
|
|
2388
|
-
function
|
|
2388
|
+
function Wo(e) {
|
|
2389
2389
|
return e = (e || 0) % 360, e < 0 ? e + 360 : e;
|
|
2390
2390
|
}
|
|
2391
2391
|
function Rt(e) {
|
|
@@ -2487,9 +2487,9 @@ function Si(e, t) {
|
|
|
2487
2487
|
}
|
|
2488
2488
|
function mt(e, t) {
|
|
2489
2489
|
var n = typeof t, o;
|
|
2490
|
-
return t == null || n === "boolean" ? ro(t) : (n === "number" ? xe : n === "string" ? (o =
|
|
2490
|
+
return t == null || n === "boolean" ? ro(t) : (n === "number" ? xe : n === "string" ? (o = We(t)) ? (t = o, Jt) : Si : t instanceof We ? Jt : t instanceof Date ? Bd : Td(t) ? Ld : Array.isArray(t) ? $d : typeof t.valueOf != "function" && typeof t.toString != "function" || isNaN(t) ? Hd : xe)(e, t);
|
|
2491
2491
|
}
|
|
2492
|
-
var
|
|
2492
|
+
var Xo = 180 / Math.PI, ki = {
|
|
2493
2493
|
translateX: 0,
|
|
2494
2494
|
translateY: 0,
|
|
2495
2495
|
rotate: 0,
|
|
@@ -2502,8 +2502,8 @@ function _i(e, t, n, o, r, i) {
|
|
|
2502
2502
|
return (a = Math.sqrt(e * e + t * t)) && (e /= a, t /= a), (l = e * n + t * o) && (n -= e * l, o -= t * l), (s = Math.sqrt(n * n + o * o)) && (n /= s, o /= s, l /= s), e * o < t * n && (e = -e, t = -t, l = -l, a = -a), {
|
|
2503
2503
|
translateX: r,
|
|
2504
2504
|
translateY: i,
|
|
2505
|
-
rotate: Math.atan2(t, e) *
|
|
2506
|
-
skewX: Math.atan(l) *
|
|
2505
|
+
rotate: Math.atan2(t, e) * Xo,
|
|
2506
|
+
skewX: Math.atan(l) * Xo,
|
|
2507
2507
|
scaleX: a,
|
|
2508
2508
|
scaleY: s
|
|
2509
2509
|
};
|
|
@@ -2546,7 +2546,7 @@ function Ci(e, t, n, o) {
|
|
|
2546
2546
|
};
|
|
2547
2547
|
};
|
|
2548
2548
|
}
|
|
2549
|
-
var
|
|
2549
|
+
var Wd = Ci(Fd, "px, ", "px)", "deg)"), Xd = Ci(Zd, ", ", ")", ")"), Kd = 1e-12;
|
|
2550
2550
|
function Ko(e) {
|
|
2551
2551
|
return ((e = Math.exp(e)) + 1 / e) / 2;
|
|
2552
2552
|
}
|
|
@@ -2556,7 +2556,7 @@ function qd(e) {
|
|
|
2556
2556
|
function Gd(e) {
|
|
2557
2557
|
return ((e = Math.exp(2 * e)) - 1) / (e + 1);
|
|
2558
2558
|
}
|
|
2559
|
-
const
|
|
2559
|
+
const Wt = (function e(t, n, o) {
|
|
2560
2560
|
function r(i, a) {
|
|
2561
2561
|
var s = i[0], l = i[1], c = i[2], d = a[0], f = a[1], u = a[2], h = d - s, g = f - l, x = h * h + g * g, w, v;
|
|
2562
2562
|
if (x < Kd)
|
|
@@ -2585,14 +2585,14 @@ const Xt = (function e(t, n, o) {
|
|
|
2585
2585
|
return e(a, s, l);
|
|
2586
2586
|
}, r;
|
|
2587
2587
|
})(Math.SQRT2, 2, 4);
|
|
2588
|
-
var rt = 0, gt = 0, ft = 0, Ni = 1e3, en, pt, tn = 0,
|
|
2588
|
+
var rt = 0, gt = 0, ft = 0, Ni = 1e3, en, pt, tn = 0, Xe = 0, fn = 0, xt = typeof performance == "object" && performance.now ? performance : Date, Ei = typeof window == "object" && window.requestAnimationFrame ? window.requestAnimationFrame.bind(window) : function(e) {
|
|
2589
2589
|
setTimeout(e, 17);
|
|
2590
2590
|
};
|
|
2591
2591
|
function io() {
|
|
2592
|
-
return
|
|
2592
|
+
return Xe || (Ei(Ud), Xe = xt.now() + fn);
|
|
2593
2593
|
}
|
|
2594
2594
|
function Ud() {
|
|
2595
|
-
|
|
2595
|
+
Xe = 0;
|
|
2596
2596
|
}
|
|
2597
2597
|
function nn() {
|
|
2598
2598
|
this._call = this._time = this._next = null;
|
|
@@ -2614,15 +2614,15 @@ function Mi(e, t, n) {
|
|
|
2614
2614
|
function Qd() {
|
|
2615
2615
|
io(), ++rt;
|
|
2616
2616
|
for (var e = en, t; e; )
|
|
2617
|
-
(t =
|
|
2617
|
+
(t = Xe - e._time) >= 0 && e._call.call(void 0, t), e = e._next;
|
|
2618
2618
|
--rt;
|
|
2619
2619
|
}
|
|
2620
2620
|
function qo() {
|
|
2621
|
-
|
|
2621
|
+
Xe = (tn = xt.now()) + fn, rt = gt = 0;
|
|
2622
2622
|
try {
|
|
2623
2623
|
Qd();
|
|
2624
2624
|
} finally {
|
|
2625
|
-
rt = 0, eu(),
|
|
2625
|
+
rt = 0, eu(), Xe = 0;
|
|
2626
2626
|
}
|
|
2627
2627
|
}
|
|
2628
2628
|
function Jd() {
|
|
@@ -2637,7 +2637,7 @@ function eu() {
|
|
|
2637
2637
|
function Yn(e) {
|
|
2638
2638
|
if (!rt) {
|
|
2639
2639
|
gt && (gt = clearTimeout(gt));
|
|
2640
|
-
var t = e -
|
|
2640
|
+
var t = e - Xe;
|
|
2641
2641
|
t > 24 ? (e < 1 / 0 && (gt = setTimeout(qo, e - xt.now() - fn)), ft && (ft = clearInterval(ft))) : (ft || (tn = xt.now(), ft = setInterval(Jd, Ni)), rt = 1, Ei(qo));
|
|
2642
2642
|
}
|
|
2643
2643
|
}
|
|
@@ -2647,7 +2647,7 @@ function Go(e, t, n) {
|
|
|
2647
2647
|
o.stop(), e(r + t);
|
|
2648
2648
|
}, t, n), o;
|
|
2649
2649
|
}
|
|
2650
|
-
var tu = dn("start", "end", "cancel", "interrupt"), nu = [], Pi = 0, Uo = 1, Fn = 2,
|
|
2650
|
+
var tu = dn("start", "end", "cancel", "interrupt"), nu = [], Pi = 0, Uo = 1, Fn = 2, Xt = 3, Qo = 4, Zn = 5, Kt = 6;
|
|
2651
2651
|
function hn(e, t, n, o, r, i) {
|
|
2652
2652
|
var a = e.__transition;
|
|
2653
2653
|
if (!a) e.__transition = {};
|
|
@@ -2675,7 +2675,7 @@ function ao(e, t) {
|
|
|
2675
2675
|
}
|
|
2676
2676
|
function Ce(e, t) {
|
|
2677
2677
|
var n = me(e, t);
|
|
2678
|
-
if (n.state >
|
|
2678
|
+
if (n.state > Xt) throw new Error("too late; already running");
|
|
2679
2679
|
return n;
|
|
2680
2680
|
}
|
|
2681
2681
|
function me(e, t) {
|
|
@@ -2694,13 +2694,13 @@ function ou(e, t, n) {
|
|
|
2694
2694
|
if (n.state !== Uo) return l();
|
|
2695
2695
|
for (d in o)
|
|
2696
2696
|
if (h = o[d], h.name === n.name) {
|
|
2697
|
-
if (h.state ===
|
|
2697
|
+
if (h.state === Xt) return Go(a);
|
|
2698
2698
|
h.state === Qo ? (h.state = Kt, h.timer.stop(), h.on.call("interrupt", e, e.__data__, h.index, h.group), delete o[d]) : +d < t && (h.state = Kt, h.timer.stop(), h.on.call("cancel", e, e.__data__, h.index, h.group), delete o[d]);
|
|
2699
2699
|
}
|
|
2700
2700
|
if (Go(function() {
|
|
2701
|
-
n.state ===
|
|
2701
|
+
n.state === Xt && (n.state = Qo, n.timer.restart(s, n.delay, n.time), s(c));
|
|
2702
2702
|
}), n.state = Fn, n.on.call("start", e, e.__data__, n.index, n.group), n.state === Fn) {
|
|
2703
|
-
for (n.state =
|
|
2703
|
+
for (n.state = Xt, r = new Array(u = n.tween.length), d = 0, f = -1; d < u; ++d)
|
|
2704
2704
|
(h = n.tween[d].value.call(e, e.__data__, n.index, n.group)) && (r[++f] = h);
|
|
2705
2705
|
r.length = f + 1;
|
|
2706
2706
|
}
|
|
@@ -2788,7 +2788,7 @@ function so(e, t, n) {
|
|
|
2788
2788
|
}
|
|
2789
2789
|
function Ii(e, t) {
|
|
2790
2790
|
var n;
|
|
2791
|
-
return (typeof t == "number" ? xe : t instanceof
|
|
2791
|
+
return (typeof t == "number" ? xe : t instanceof We ? Jt : (n = We(t)) ? (t = n, Jt) : Si)(e, t);
|
|
2792
2792
|
}
|
|
2793
2793
|
function lu(e) {
|
|
2794
2794
|
return function() {
|
|
@@ -2829,7 +2829,7 @@ function hu(e, t, n) {
|
|
|
2829
2829
|
};
|
|
2830
2830
|
}
|
|
2831
2831
|
function gu(e, t) {
|
|
2832
|
-
var n = un(e), o = n === "transform" ?
|
|
2832
|
+
var n = un(e), o = n === "transform" ? Xd : Ii;
|
|
2833
2833
|
return this.attrTween(e, typeof t == "function" ? (n.local ? hu : fu)(n, o, so(this, "attr." + e, t)) : t == null ? (n.local ? cu : lu)(n) : (n.local ? uu : du)(n, o, t));
|
|
2834
2834
|
}
|
|
2835
2835
|
function pu(e, t) {
|
|
@@ -3016,19 +3016,19 @@ function Fu(e, t) {
|
|
|
3016
3016
|
};
|
|
3017
3017
|
}
|
|
3018
3018
|
function Zu(e, t, n) {
|
|
3019
|
-
var o = (e += "") == "transform" ?
|
|
3019
|
+
var o = (e += "") == "transform" ? Wd : Ii;
|
|
3020
3020
|
return t == null ? this.styleTween(e, Hu(e, o)).on("end.style." + e, zi(e)) : typeof t == "function" ? this.styleTween(e, Yu(e, o, so(this, "style." + e, t))).each(Fu(this._id, e)) : this.styleTween(e, Vu(e, o, t), n).on("end.style." + e, null);
|
|
3021
3021
|
}
|
|
3022
|
-
function
|
|
3022
|
+
function Wu(e, t, n) {
|
|
3023
3023
|
return function(o) {
|
|
3024
3024
|
this.style.setProperty(e, t.call(this, o), n);
|
|
3025
3025
|
};
|
|
3026
3026
|
}
|
|
3027
|
-
function
|
|
3027
|
+
function Xu(e, t, n) {
|
|
3028
3028
|
var o, r;
|
|
3029
3029
|
function i() {
|
|
3030
3030
|
var a = t.apply(this, arguments);
|
|
3031
|
-
return a !== r && (o = (r = a) &&
|
|
3031
|
+
return a !== r && (o = (r = a) && Wu(e, a, n)), o;
|
|
3032
3032
|
}
|
|
3033
3033
|
return i._value = t, i;
|
|
3034
3034
|
}
|
|
@@ -3037,7 +3037,7 @@ function Ku(e, t, n) {
|
|
|
3037
3037
|
if (arguments.length < 2) return (o = this.tween(o)) && o._value;
|
|
3038
3038
|
if (t == null) return this.tween(o, null);
|
|
3039
3039
|
if (typeof t != "function") throw new Error();
|
|
3040
|
-
return this.tween(o,
|
|
3040
|
+
return this.tween(o, Xu(e, t, n ?? ""));
|
|
3041
3041
|
}
|
|
3042
3042
|
function qu(e) {
|
|
3043
3043
|
return function() {
|
|
@@ -3255,7 +3255,7 @@ function gf(e, t, n) {
|
|
|
3255
3255
|
);
|
|
3256
3256
|
}
|
|
3257
3257
|
function Oi() {
|
|
3258
|
-
var e = df, t = uf, n = gf, o = ff, r = hf, i = [0, 1 / 0], a = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], s = 250, l =
|
|
3258
|
+
var e = df, t = uf, n = gf, o = ff, r = hf, i = [0, 1 / 0], a = [[-1 / 0, -1 / 0], [1 / 0, 1 / 0]], s = 250, l = Wt, c = dn("start", "zoom", "end"), d, f, u, h = 500, g = 150, x = 0, w = 10;
|
|
3259
3259
|
function v(y) {
|
|
3260
3260
|
y.property("__zoom", Jo).on("wheel.zoom", z, { passive: !1 }).on("mousedown.zoom", D).on("dblclick.zoom", H).filter(r).on("touchstart.zoom", R).on("touchmove.zoom", A).on("touchend.zoom touchcancel.zoom", _).style("-webkit-tap-highlight-color", "rgba(0,0,0,0)");
|
|
3261
3261
|
}
|
|
@@ -3306,11 +3306,11 @@ function Oi() {
|
|
|
3306
3306
|
}).on("interrupt.zoom end.zoom", function() {
|
|
3307
3307
|
S(this, arguments).event(I).end();
|
|
3308
3308
|
}).tween("zoom", function() {
|
|
3309
|
-
var j = this, O = arguments, T = S(j, O).event(I), B = t.apply(j, O), $ = N == null ? b(B) : typeof N == "function" ? N.apply(j, O) : N,
|
|
3309
|
+
var j = this, O = arguments, T = S(j, O).event(I), B = t.apply(j, O), $ = N == null ? b(B) : typeof N == "function" ? N.apply(j, O) : N, W = Math.max(B[1][0] - B[0][0], B[1][1] - B[0][1]), F = j.__zoom, X = typeof M == "function" ? M.apply(j, O) : M, q = l(F.invert($).concat(W / F.k), X.invert($).concat(W / X.k));
|
|
3310
3310
|
return function(K) {
|
|
3311
|
-
if (K === 1) K =
|
|
3311
|
+
if (K === 1) K = X;
|
|
3312
3312
|
else {
|
|
3313
|
-
var L = q(K), Y =
|
|
3313
|
+
var L = q(K), Y = W / L[2];
|
|
3314
3314
|
K = new Pe(Y, $[0] - L[0] * Y, $[1] - L[1] * Y);
|
|
3315
3315
|
}
|
|
3316
3316
|
T.zoom(null, K);
|
|
@@ -3367,16 +3367,16 @@ function Oi() {
|
|
|
3367
3367
|
}
|
|
3368
3368
|
function D(y, ...M) {
|
|
3369
3369
|
if (u || !e.apply(this, arguments)) return;
|
|
3370
|
-
var N = y.currentTarget, I = S(this, M, !0).event(y), j = le(y.view).on("mousemove.zoom", $, !0).on("mouseup.zoom",
|
|
3370
|
+
var N = y.currentTarget, I = S(this, M, !0).event(y), j = le(y.view).on("mousemove.zoom", $, !0).on("mouseup.zoom", W, !0), O = ue(y, N), T = y.clientX, B = y.clientY;
|
|
3371
3371
|
mi(y.view), In(y), I.mouse = [O, this.__zoom.invert(O)], qt(this), I.start();
|
|
3372
3372
|
function $(F) {
|
|
3373
3373
|
if (ht(F), !I.moved) {
|
|
3374
|
-
var
|
|
3375
|
-
I.moved =
|
|
3374
|
+
var X = F.clientX - T, q = F.clientY - B;
|
|
3375
|
+
I.moved = X * X + q * q > x;
|
|
3376
3376
|
}
|
|
3377
3377
|
I.event(F).zoom("mouse", n(p(I.that.__zoom, I.mouse[0] = ue(F, N), I.mouse[1]), I.extent, a));
|
|
3378
3378
|
}
|
|
3379
|
-
function
|
|
3379
|
+
function W(F) {
|
|
3380
3380
|
j.on("mousemove.zoom mouseup.zoom", null), yi(F.view, I.moved), ht(F), I.event(F).end();
|
|
3381
3381
|
}
|
|
3382
3382
|
}
|
|
@@ -3402,8 +3402,8 @@ function Oi() {
|
|
|
3402
3402
|
for (ht(y), O = 0; O < j; ++O)
|
|
3403
3403
|
T = I[O], B = ue(T, this), N.touch0 && N.touch0[2] === T.identifier ? N.touch0[0] = B : N.touch1 && N.touch1[2] === T.identifier && (N.touch1[0] = B);
|
|
3404
3404
|
if (T = N.that.__zoom, N.touch1) {
|
|
3405
|
-
var
|
|
3406
|
-
T = k(T, Math.sqrt(K / L)), B = [(
|
|
3405
|
+
var W = N.touch0[0], F = N.touch0[1], X = N.touch1[0], q = N.touch1[1], K = (K = X[0] - W[0]) * K + (K = X[1] - W[1]) * K, L = (L = q[0] - F[0]) * L + (L = q[1] - F[1]) * L;
|
|
3406
|
+
T = k(T, Math.sqrt(K / L)), B = [(W[0] + X[0]) / 2, (W[1] + X[1]) / 2], $ = [(F[0] + q[0]) / 2, (F[1] + q[1]) / 2];
|
|
3407
3407
|
} else if (N.touch0) B = N.touch0[0], $ = N.touch0[1];
|
|
3408
3408
|
else return;
|
|
3409
3409
|
N.zoom("touch", n(p(T, B, $), N.extent, a));
|
|
@@ -3658,7 +3658,7 @@ const tr = (e, t, n) => e < t ? at(Math.abs(e - t), 1, t) / t : e > n ? -at(Math
|
|
|
3658
3658
|
y: Math.min(e.y, t.y),
|
|
3659
3659
|
x2: Math.max(e.x2, t.x2),
|
|
3660
3660
|
y2: Math.max(e.y2, t.y2)
|
|
3661
|
-
}),
|
|
3661
|
+
}), Wn = ({ x: e, y: t, width: n, height: o }) => ({
|
|
3662
3662
|
x: e,
|
|
3663
3663
|
y: t,
|
|
3664
3664
|
x2: e + n,
|
|
@@ -3684,7 +3684,7 @@ const tr = (e, t, n) => e < t ? at(Math.abs(e - t), 1, t) / t : e > n ? -at(Math
|
|
|
3684
3684
|
x2: n + (e.measured?.width ?? e.width ?? e.initialWidth ?? 0),
|
|
3685
3685
|
y2: o + (e.measured?.height ?? e.height ?? e.initialHeight ?? 0)
|
|
3686
3686
|
};
|
|
3687
|
-
}, Vi = (e, t) => mn(pn(
|
|
3687
|
+
}, Vi = (e, t) => mn(pn(Wn(e), Wn(t))), Yi = (e, t, n, o, r, i, a, s) => {
|
|
3688
3688
|
const l = Math.max(0, Math.min(e + n, r + a) - Math.max(e, r)), c = Math.max(0, Math.min(t + o, i + s) - Math.max(t, i));
|
|
3689
3689
|
return Math.ceil(l * c);
|
|
3690
3690
|
}, an = (e, t) => Yi(e.x, e.y, e.width, e.height, t.x, t.y, t.width, t.height), nr = (e) => he(e.width) && he(e.height) && he(e.x) && he(e.y), he = (e) => !isNaN(e) && isFinite(e), Fi = (e, t) => (n, o) => {
|
|
@@ -3768,7 +3768,7 @@ function ye(e) {
|
|
|
3768
3768
|
function Zi(e) {
|
|
3769
3769
|
return (e.measured?.width ?? e.width ?? e.initialWidth) !== void 0 && (e.measured?.height ?? e.height ?? e.initialHeight) !== void 0;
|
|
3770
3770
|
}
|
|
3771
|
-
function
|
|
3771
|
+
function Wi(e, t = { width: 0, height: 0 }, n, o, r) {
|
|
3772
3772
|
const i = { ...e }, a = o.get(n);
|
|
3773
3773
|
if (a) {
|
|
3774
3774
|
const s = a.origin || r;
|
|
@@ -3804,7 +3804,7 @@ function yt(e, { snapGrid: t = [0, 0], snapToGrid: n = !1, transform: o, contain
|
|
|
3804
3804
|
const ho = (e) => ({
|
|
3805
3805
|
width: e.offsetWidth,
|
|
3806
3806
|
height: e.offsetHeight
|
|
3807
|
-
}),
|
|
3807
|
+
}), Xi = (e) => e?.getRootNode?.() || window?.document, Cf = ["INPUT", "SELECT", "TEXTAREA"];
|
|
3808
3808
|
function Ki(e) {
|
|
3809
3809
|
const t = e.composedPath?.()?.[0] || e.target;
|
|
3810
3810
|
return t?.nodeType !== 1 ? !1 : Cf.includes(t.nodeName) || t.hasAttribute("contenteditable") || !!t.closest(".nokey");
|
|
@@ -3988,7 +3988,7 @@ function Df(e, t, n, o) {
|
|
|
3988
3988
|
const s = e.x < n.x ? 1 : -1, l = e.y < n.y ? -1 : 1;
|
|
3989
3989
|
return `L ${i},${a + r * l}Q ${i},${a} ${i + r * s},${a}`;
|
|
3990
3990
|
}
|
|
3991
|
-
function
|
|
3991
|
+
function Xn({ sourceX: e, sourceY: t, sourcePosition: n = Z.Bottom, targetX: o, targetY: r, targetPosition: i = Z.Top, borderRadius: a = 5, centerX: s, centerY: l, offset: c = 20, stepPosition: d = 0.5 }) {
|
|
3992
3992
|
const [f, u, h, g, x] = Af({
|
|
3993
3993
|
source: { x: e, y: t },
|
|
3994
3994
|
sourcePosition: n,
|
|
@@ -4396,15 +4396,15 @@ function Zf({ dragItems: e, snapGrid: t, x: n, y: o }) {
|
|
|
4396
4396
|
y: a.y - i.y
|
|
4397
4397
|
};
|
|
4398
4398
|
}
|
|
4399
|
-
function
|
|
4399
|
+
function Wf({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: o, onDragStop: r }) {
|
|
4400
4400
|
let i = { x: null, y: null }, a = 0, s = /* @__PURE__ */ new Map(), l = !1, c = { x: 0, y: 0 }, d = null, f = !1, u = null, h = !1, g = !1, x = null;
|
|
4401
4401
|
function w({ noDragClassName: k, handleSelector: p, domNode: b, isSelectable: E, nodeId: S, nodeClickDistance: C = 0 }) {
|
|
4402
4402
|
u = le(b);
|
|
4403
4403
|
function z({ x: A, y: _ }) {
|
|
4404
4404
|
const { nodeLookup: y, nodeExtent: M, snapGrid: N, snapToGrid: I, nodeOrigin: j, onNodeDrag: O, onSelectionDrag: T, onError: B, updateNodePositions: $ } = t();
|
|
4405
4405
|
i = { x: A, y: _ };
|
|
4406
|
-
let
|
|
4407
|
-
const F = s.size > 1,
|
|
4406
|
+
let W = !1;
|
|
4407
|
+
const F = s.size > 1, X = F && M ? Wn(zt(s)) : null, q = F && I ? Zf({
|
|
4408
4408
|
dragItems: s,
|
|
4409
4409
|
snapGrid: N,
|
|
4410
4410
|
x: A,
|
|
@@ -4419,8 +4419,8 @@ function Xf({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: o, o
|
|
|
4419
4419
|
y: Math.round(Y.y + q.y)
|
|
4420
4420
|
} : At(Y, N));
|
|
4421
4421
|
let G = null;
|
|
4422
|
-
if (F && M && !L.extent &&
|
|
4423
|
-
const { positionAbsolute: U } = L.internals, J = U.x -
|
|
4422
|
+
if (F && M && !L.extent && X) {
|
|
4423
|
+
const { positionAbsolute: U } = L.internals, J = U.x - X.x + M[0][0], te = U.x + L.measured.width - X.x2 + M[1][0], ae = U.y - X.y + M[0][1], be = U.y + L.measured.height - X.y2 + M[1][1];
|
|
4424
4424
|
G = [
|
|
4425
4425
|
[J, ae],
|
|
4426
4426
|
[te, be]
|
|
@@ -4434,9 +4434,9 @@ function Xf({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: o, o
|
|
|
4434
4434
|
nodeOrigin: j,
|
|
4435
4435
|
onError: B
|
|
4436
4436
|
});
|
|
4437
|
-
|
|
4437
|
+
W = W || L.position.x !== Q.x || L.position.y !== Q.y, L.position = Q, L.internals.positionAbsolute = V;
|
|
4438
4438
|
}
|
|
4439
|
-
if (g = g ||
|
|
4439
|
+
if (g = g || W, !!W && ($(s, !0), x && (o || O || !S && T))) {
|
|
4440
4440
|
const [K, L] = zn({
|
|
4441
4441
|
nodeId: S,
|
|
4442
4442
|
dragItems: s,
|
|
@@ -4459,14 +4459,14 @@ function Xf({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: o, o
|
|
|
4459
4459
|
function H(A) {
|
|
4460
4460
|
const { nodeLookup: _, multiSelectionActive: y, nodesDraggable: M, transform: N, snapGrid: I, snapToGrid: j, selectNodesOnDrag: O, onNodeDragStart: T, onSelectionDragStart: B, unselectNodesAndEdges: $ } = t();
|
|
4461
4461
|
f = !0, (!O || !E) && !y && S && (_.get(S)?.selected || $()), E && O && S && e?.(S);
|
|
4462
|
-
const
|
|
4463
|
-
if (i =
|
|
4464
|
-
const [F,
|
|
4462
|
+
const W = yt(A.sourceEvent, { transform: N, snapGrid: I, snapToGrid: j, containerBounds: d });
|
|
4463
|
+
if (i = W, s = Ff(_, M, W, S), s.size > 0 && (n || T || !S && B)) {
|
|
4464
|
+
const [F, X] = zn({
|
|
4465
4465
|
nodeId: S,
|
|
4466
4466
|
dragItems: s,
|
|
4467
4467
|
nodeLookup: _
|
|
4468
4468
|
});
|
|
4469
|
-
n?.(A.sourceEvent, s, F,
|
|
4469
|
+
n?.(A.sourceEvent, s, F, X), T?.(A.sourceEvent, F, X), S || B?.(A.sourceEvent, X);
|
|
4470
4470
|
}
|
|
4471
4471
|
}
|
|
4472
4472
|
const R = bi().clickDistance(C).on("start", (A) => {
|
|
@@ -4513,7 +4513,7 @@ function Xf({ onNodeMouseDown: e, getStoreItems: t, onDragStart: n, onDrag: o, o
|
|
|
4513
4513
|
destroy: v
|
|
4514
4514
|
};
|
|
4515
4515
|
}
|
|
4516
|
-
function
|
|
4516
|
+
function Xf(e, t, n) {
|
|
4517
4517
|
const o = [], r = {
|
|
4518
4518
|
x: e.x - n,
|
|
4519
4519
|
y: e.y - n,
|
|
@@ -4527,7 +4527,7 @@ function Wf(e, t, n) {
|
|
|
4527
4527
|
const Kf = 250;
|
|
4528
4528
|
function qf(e, t, n, o) {
|
|
4529
4529
|
let r = [], i = 1 / 0;
|
|
4530
|
-
const a =
|
|
4530
|
+
const a = Xf(e, n, t + Kf);
|
|
4531
4531
|
for (const s of a) {
|
|
4532
4532
|
const l = [...s.internals.handleBounds?.source ?? [], ...s.internals.handleBounds?.target ?? []];
|
|
4533
4533
|
for (const c of l) {
|
|
@@ -4561,7 +4561,7 @@ function Gf(e, t) {
|
|
|
4561
4561
|
}
|
|
4562
4562
|
const aa = () => !0;
|
|
4563
4563
|
function Uf(e, { connectionMode: t, connectionRadius: n, handleId: o, nodeId: r, edgeUpdaterType: i, isTarget: a, domNode: s, nodeLookup: l, lib: c, autoPanOnConnect: d, flowId: f, panBy: u, cancelConnection: h, onConnectStart: g, onConnect: x, onConnectEnd: w, isValidConnection: v = aa, onReconnectEnd: k, updateConnection: p, getTransform: b, getFromHandle: E, autoPanSpeed: S, dragThreshold: C = 1, handleDomNode: z }) {
|
|
4564
|
-
const D =
|
|
4564
|
+
const D = Xi(e.target);
|
|
4565
4565
|
let H = 0, R;
|
|
4566
4566
|
const { x: A, y: _ } = ge(e), y = ia(i, z), M = s?.getBoundingClientRect();
|
|
4567
4567
|
let N = !1;
|
|
@@ -4571,25 +4571,25 @@ function Uf(e, { connectionMode: t, connectionRadius: n, handleId: o, nodeId: r,
|
|
|
4571
4571
|
if (!I)
|
|
4572
4572
|
return;
|
|
4573
4573
|
let j = ge(e, M), O = !1, T = null, B = !1, $ = null;
|
|
4574
|
-
function
|
|
4574
|
+
function W() {
|
|
4575
4575
|
if (!d || !M)
|
|
4576
4576
|
return;
|
|
4577
4577
|
const [G, Q] = uo(j, M, S);
|
|
4578
|
-
u({ x: G, y: Q }), H = requestAnimationFrame(
|
|
4578
|
+
u({ x: G, y: Q }), H = requestAnimationFrame(W);
|
|
4579
4579
|
}
|
|
4580
4580
|
const F = {
|
|
4581
4581
|
...I,
|
|
4582
4582
|
nodeId: r,
|
|
4583
4583
|
type: y,
|
|
4584
4584
|
position: I.position
|
|
4585
|
-
},
|
|
4585
|
+
}, X = l.get(r);
|
|
4586
4586
|
let q = {
|
|
4587
4587
|
inProgress: !0,
|
|
4588
4588
|
isValid: null,
|
|
4589
|
-
from: Ge(
|
|
4589
|
+
from: Ge(X, F, Z.Left, !0),
|
|
4590
4590
|
fromHandle: F,
|
|
4591
4591
|
fromPosition: F.position,
|
|
4592
|
-
fromNode:
|
|
4592
|
+
fromNode: X,
|
|
4593
4593
|
to: j,
|
|
4594
4594
|
toHandle: null,
|
|
4595
4595
|
toPosition: er[F.position],
|
|
@@ -4612,7 +4612,7 @@ function Uf(e, { connectionMode: t, connectionRadius: n, handleId: o, nodeId: r,
|
|
|
4612
4612
|
return;
|
|
4613
4613
|
}
|
|
4614
4614
|
const Q = b();
|
|
4615
|
-
j = ge(G, M), R = qf(Dt(j, Q, !1, [1, 1]), n, l, F), O || (
|
|
4615
|
+
j = ge(G, M), R = qf(Dt(j, Q, !1, [1, 1]), n, l, F), O || (W(), O = !0);
|
|
4616
4616
|
const V = sa(G, {
|
|
4617
4617
|
handle: R,
|
|
4618
4618
|
connectionMode: t,
|
|
@@ -4850,12 +4850,12 @@ function ah({ domNode: e, minZoom: t, maxZoom: n, translateExtent: o, viewport:
|
|
|
4850
4850
|
u.wheelDelta(ca);
|
|
4851
4851
|
async function w(A, _) {
|
|
4852
4852
|
return h ? new Promise((y) => {
|
|
4853
|
-
u?.interpolate(_?.interpolate === "linear" ? mt :
|
|
4853
|
+
u?.interpolate(_?.interpolate === "linear" ? mt : Wt).transform(Dn(h, _?.duration, _?.ease, () => y(!0)), A);
|
|
4854
4854
|
}) : !1;
|
|
4855
4855
|
}
|
|
4856
|
-
function v({ noWheelClassName: A, noPanClassName: _, onPaneContextMenu: y, userSelectionActive: M, panOnScroll: N, panOnDrag: I, panOnScrollMode: j, panOnScrollSpeed: O, preventScrolling: T, zoomOnPinch: B, zoomOnScroll: $, zoomOnDoubleClick:
|
|
4856
|
+
function v({ noWheelClassName: A, noPanClassName: _, onPaneContextMenu: y, userSelectionActive: M, panOnScroll: N, panOnDrag: I, panOnScrollMode: j, panOnScrollSpeed: O, preventScrolling: T, zoomOnPinch: B, zoomOnScroll: $, zoomOnDoubleClick: W, panActivationKeyPressed: F = !1, zoomActivationKeyPressed: X, lib: q, onTransformChange: K, connectionInProgress: L, paneClickDistance: Y, selectionOnDrag: G }) {
|
|
4857
4857
|
M && !c.isZoomingOrPanning && k();
|
|
4858
|
-
const Q = N && !
|
|
4858
|
+
const Q = N && !X && !M;
|
|
4859
4859
|
u.clickDistance(G ? 1 / 0 : !he(Y) || Y < 0 ? 0 : Y);
|
|
4860
4860
|
const V = Q ? eh({
|
|
4861
4861
|
zoomPanValues: c,
|
|
@@ -4899,11 +4899,11 @@ function ah({ domNode: e, minZoom: t, maxZoom: n, translateExtent: o, viewport:
|
|
|
4899
4899
|
u.on("end", te);
|
|
4900
4900
|
const ae = ih({
|
|
4901
4901
|
panActivationKeyPressed: F,
|
|
4902
|
-
zoomActivationKeyPressed:
|
|
4902
|
+
zoomActivationKeyPressed: X,
|
|
4903
4903
|
panOnDrag: I,
|
|
4904
4904
|
zoomOnScroll: $,
|
|
4905
4905
|
panOnScroll: N,
|
|
4906
|
-
zoomOnDoubleClick:
|
|
4906
|
+
zoomOnDoubleClick: W,
|
|
4907
4907
|
zoomOnPinch: B,
|
|
4908
4908
|
userSelectionActive: M,
|
|
4909
4909
|
noPanClassName: _,
|
|
@@ -4911,7 +4911,7 @@ function ah({ domNode: e, minZoom: t, maxZoom: n, translateExtent: o, viewport:
|
|
|
4911
4911
|
lib: q,
|
|
4912
4912
|
connectionInProgress: L
|
|
4913
4913
|
});
|
|
4914
|
-
u.filter(ae),
|
|
4914
|
+
u.filter(ae), W ? h.on("dblclick.zoom", x) : h.on("dblclick.zoom", null);
|
|
4915
4915
|
}
|
|
4916
4916
|
function k() {
|
|
4917
4917
|
u.on("zoom", null);
|
|
@@ -4936,12 +4936,12 @@ function ah({ domNode: e, minZoom: t, maxZoom: n, translateExtent: o, viewport:
|
|
|
4936
4936
|
}
|
|
4937
4937
|
async function C(A, _) {
|
|
4938
4938
|
return h ? new Promise((y) => {
|
|
4939
|
-
u?.interpolate(_?.interpolate === "linear" ? mt :
|
|
4939
|
+
u?.interpolate(_?.interpolate === "linear" ? mt : Wt).scaleTo(Dn(h, _?.duration, _?.ease, () => y(!0)), A);
|
|
4940
4940
|
}) : !1;
|
|
4941
4941
|
}
|
|
4942
4942
|
async function z(A, _) {
|
|
4943
4943
|
return h ? new Promise((y) => {
|
|
4944
|
-
u?.interpolate(_?.interpolate === "linear" ? mt :
|
|
4944
|
+
u?.interpolate(_?.interpolate === "linear" ? mt : Wt).scaleBy(Dn(h, _?.duration, _?.ease, () => y(!0)), A);
|
|
4945
4945
|
}) : !1;
|
|
4946
4946
|
}
|
|
4947
4947
|
function D(A) {
|
|
@@ -5126,21 +5126,21 @@ function uh({ domNode: e, nodeId: t, getStoreItems: n, onChange: o, onEnd: r })
|
|
|
5126
5126
|
}), I = [];
|
|
5127
5127
|
if (!p)
|
|
5128
5128
|
return;
|
|
5129
|
-
const { x: j, y: O, width: T, height: B } = v, $ = {},
|
|
5129
|
+
const { x: j, y: O, width: T, height: B } = v, $ = {}, W = p.origin ?? M, { width: F, height: X, x: q, y: K } = lh(k, a.controlDirection, N, a.boundaries, a.keepAspectRatio, W, C, z), L = F !== T, Y = X !== B, G = q !== j && L, Q = K !== O && Y;
|
|
5130
5130
|
if (!G && !Q && !L && !Y)
|
|
5131
5131
|
return;
|
|
5132
|
-
if ((G || Q ||
|
|
5132
|
+
if ((G || Q || W[0] === 1 || W[1] === 1) && ($.x = G ? q : v.x, $.y = Q ? K : v.y, v.x = $.x, v.y = $.y, E.length > 0)) {
|
|
5133
5133
|
const J = q - j, te = K - O;
|
|
5134
5134
|
for (const ae of E)
|
|
5135
5135
|
ae.position = {
|
|
5136
|
-
x: ae.position.x - J +
|
|
5137
|
-
y: ae.position.y - te +
|
|
5136
|
+
x: ae.position.x - J + W[0] * (F - T),
|
|
5137
|
+
y: ae.position.y - te + W[1] * (X - B)
|
|
5138
5138
|
}, I.push(ae);
|
|
5139
5139
|
}
|
|
5140
|
-
if ((L || Y) && ($.width = L && (!a.resizeDirection || a.resizeDirection === "horizontal") ? F : v.width, $.height = Y && (!a.resizeDirection || a.resizeDirection === "vertical") ?
|
|
5141
|
-
const J =
|
|
5140
|
+
if ((L || Y) && ($.width = L && (!a.resizeDirection || a.resizeDirection === "horizontal") ? F : v.width, $.height = Y && (!a.resizeDirection || a.resizeDirection === "vertical") ? X : v.height, v.width = $.width, v.height = $.height), S && p.expandParent) {
|
|
5141
|
+
const J = W[0] * ($.width ?? 0);
|
|
5142
5142
|
$.x && $.x < J && (v.x = J, k.x = k.x - ($.x - J));
|
|
5143
|
-
const te =
|
|
5143
|
+
const te = W[1] * ($.height ?? 0);
|
|
5144
5144
|
$.y && $.y < te && (v.y = te, k.y = k.y - ($.y - te));
|
|
5145
5145
|
}
|
|
5146
5146
|
const V = sh({
|
|
@@ -5699,11 +5699,11 @@ function Ar(e) {
|
|
|
5699
5699
|
type: "remove"
|
|
5700
5700
|
};
|
|
5701
5701
|
}
|
|
5702
|
-
const
|
|
5703
|
-
function
|
|
5702
|
+
const Wh = Fi();
|
|
5703
|
+
function Xh(e, t, n = {}) {
|
|
5704
5704
|
return If(e, t, {
|
|
5705
5705
|
...n,
|
|
5706
|
-
onError: n.onError ??
|
|
5706
|
+
onError: n.onError ?? Wh
|
|
5707
5707
|
});
|
|
5708
5708
|
}
|
|
5709
5709
|
const Dr = (e) => pf(e), Kh = (e) => $i(e);
|
|
@@ -5773,7 +5773,7 @@ function vo() {
|
|
|
5773
5773
|
}, s = (f) => {
|
|
5774
5774
|
n.edgeQueue.push(f);
|
|
5775
5775
|
}, l = (f) => {
|
|
5776
|
-
const { nodeLookup: u, nodeOrigin: h } = t.getState(), g = Dr(f) ? f : u.get(f.id), x = g.parentId ?
|
|
5776
|
+
const { nodeLookup: u, nodeOrigin: h } = t.getState(), g = Dr(f) ? f : u.get(f.id), x = g.parentId ? Wi(g.position, g.measured, g.parentId, u, h) : g.position, w = {
|
|
5777
5777
|
...g,
|
|
5778
5778
|
position: x,
|
|
5779
5779
|
width: g.measured?.width ?? g.width,
|
|
@@ -6129,10 +6129,10 @@ function sg({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = kt.Full
|
|
|
6129
6129
|
B(Q, V), w.current = requestAnimationFrame($);
|
|
6130
6130
|
});
|
|
6131
6131
|
}
|
|
6132
|
-
const
|
|
6132
|
+
const W = () => {
|
|
6133
6133
|
cancelAnimationFrame(w.current), w.current = 0, M.current = !1;
|
|
6134
6134
|
};
|
|
6135
|
-
P.useEffect(() => () =>
|
|
6135
|
+
P.useEffect(() => () => W(), []);
|
|
6136
6136
|
const F = (L) => {
|
|
6137
6137
|
const { userSelectionRect: Y, transform: G, resetSelectedElements: Q } = v.getState();
|
|
6138
6138
|
if (!D.current || !Y)
|
|
@@ -6147,7 +6147,7 @@ function sg({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = kt.Full
|
|
|
6147
6147
|
Q(), s?.(L);
|
|
6148
6148
|
}
|
|
6149
6149
|
_.current = !0, M.current || ($(), M.current = !0), B(V, U);
|
|
6150
|
-
},
|
|
6150
|
+
}, X = (L) => {
|
|
6151
6151
|
if (!C) {
|
|
6152
6152
|
L.target === z.current && v.getState().connection.inProgress && (A.current = !0);
|
|
6153
6153
|
return;
|
|
@@ -6157,11 +6157,11 @@ function sg({ isSelecting: e, selectionKeyPressed: t, selectionMode: n = kt.Full
|
|
|
6157
6157
|
userSelectionRect: null
|
|
6158
6158
|
}), _.current && (l?.(L), v.setState({
|
|
6159
6159
|
nodesSelectionActive: H.current.size > 0
|
|
6160
|
-
})),
|
|
6160
|
+
})), W());
|
|
6161
6161
|
}, q = (L) => {
|
|
6162
|
-
L.target?.releasePointerCapture?.(L.pointerId),
|
|
6162
|
+
L.target?.releasePointerCapture?.(L.pointerId), W();
|
|
6163
6163
|
}, K = o === !0 || Array.isArray(o) && o.includes(0);
|
|
6164
|
-
return m.jsxs("div", { className: ie(["react-flow__pane", { draggable: K, dragging: b, selection: e }]), onClick: C ? void 0 : Rn(N, z), onContextMenu: Rn(I, z), onWheel: Rn(j, z), onPointerEnter: C ? void 0 : u, onPointerMove: C ? F : h, onPointerUp:
|
|
6164
|
+
return m.jsxs("div", { className: ie(["react-flow__pane", { draggable: K, dragging: b, selection: e }]), onClick: C ? void 0 : Rn(N, z), onContextMenu: Rn(I, z), onWheel: Rn(j, z), onPointerEnter: C ? void 0 : u, onPointerMove: C ? F : h, onPointerUp: X, onPointerCancel: C ? q : void 0, onPointerDownCapture: C ? T : void 0, onClickCapture: C ? O : void 0, onPointerLeave: g, ref: z, style: wn, children: [x, m.jsx(ig, {})] });
|
|
6165
6165
|
}
|
|
6166
6166
|
function Un({ id: e, store: t, unselect: n = !1, nodeRef: o }) {
|
|
6167
6167
|
const { addSelectedNodes: r, unselectNodesAndEdges: i, multiSelectionActive: a, nodeLookup: s, onError: l } = t.getState(), c = s.get(e);
|
|
@@ -6175,7 +6175,7 @@ function xa({ nodeRef: e, disabled: t = !1, noDragClassName: n, handleSelector:
|
|
|
6175
6175
|
const s = ne(), [l, c] = P.useState(!1), d = P.useRef();
|
|
6176
6176
|
return P.useEffect(() => {
|
|
6177
6177
|
if (!t)
|
|
6178
|
-
return d.current =
|
|
6178
|
+
return d.current = Wf({
|
|
6179
6179
|
getStoreItems: () => s.getState(),
|
|
6180
6180
|
onNodeMouseDown: (f) => {
|
|
6181
6181
|
Un({
|
|
@@ -6280,7 +6280,7 @@ function pg({ type: e = "source", position: t = Z.Top, isValidConnection: n, isC
|
|
|
6280
6280
|
};
|
|
6281
6281
|
if (j) {
|
|
6282
6282
|
const { edges: T, setEdges: B, onError: $ } = w.getState();
|
|
6283
|
-
B(
|
|
6283
|
+
B(Xh(O, T, { onError: $ }));
|
|
6284
6284
|
}
|
|
6285
6285
|
I?.(O), s?.(O);
|
|
6286
6286
|
}, _ = (M) => {
|
|
@@ -6316,14 +6316,14 @@ function pg({ type: e = "source", position: t = Z.Top, isValidConnection: n, isC
|
|
|
6316
6316
|
}
|
|
6317
6317
|
N ? d?.(M) : f?.(M);
|
|
6318
6318
|
}, y = (M) => {
|
|
6319
|
-
const { onClickConnectStart: N, onClickConnectEnd: I, connectionClickStartHandle: j, connectionMode: O, isValidConnection: T, lib: B, rfId: $, nodeLookup:
|
|
6319
|
+
const { onClickConnectStart: N, onClickConnectEnd: I, connectionClickStartHandle: j, connectionMode: O, isValidConnection: T, lib: B, rfId: $, nodeLookup: W, connection: F } = w.getState();
|
|
6320
6320
|
if (!v || !j && !r)
|
|
6321
6321
|
return;
|
|
6322
6322
|
if (!j) {
|
|
6323
6323
|
N?.(M.nativeEvent, { nodeId: v, handleId: g, handleType: e }), w.setState({ connectionClickStartHandle: { nodeId: v, type: e, id: g } });
|
|
6324
6324
|
return;
|
|
6325
6325
|
}
|
|
6326
|
-
const
|
|
6326
|
+
const X = Xi(M.target), q = n || T, { connection: K, isValid: L } = Gn.isValid(M.nativeEvent, {
|
|
6327
6327
|
handle: {
|
|
6328
6328
|
nodeId: v,
|
|
6329
6329
|
id: g,
|
|
@@ -6335,9 +6335,9 @@ function pg({ type: e = "source", position: t = Z.Top, isValidConnection: n, isC
|
|
|
6335
6335
|
fromType: j.type,
|
|
6336
6336
|
isValidConnection: q,
|
|
6337
6337
|
flowId: $,
|
|
6338
|
-
doc:
|
|
6338
|
+
doc: X,
|
|
6339
6339
|
lib: B,
|
|
6340
|
-
nodeLookup:
|
|
6340
|
+
nodeLookup: W
|
|
6341
6341
|
});
|
|
6342
6342
|
L && K && A(K);
|
|
6343
6343
|
const Y = structuredClone(F);
|
|
@@ -6442,8 +6442,8 @@ function Sg({ onSelectionContextMenu: e, noPanClassName: t, disableKeyboardA11y:
|
|
|
6442
6442
|
}
|
|
6443
6443
|
const Lr = typeof window < "u" ? window : void 0, kg = (e) => ({ nodesSelectionActive: e.nodesSelectionActive, userSelectionActive: e.userSelectionActive });
|
|
6444
6444
|
function Ca({ children: e, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: o, onPaneMouseLeave: r, onPaneContextMenu: i, onPaneScroll: a, paneClickDistance: s, deleteKeyCode: l, selectionKeyCode: c, selectionOnDrag: d, selectionMode: f, onSelectionStart: u, onSelectionEnd: h, multiSelectionKeyCode: g, panActivationKeyCode: x, zoomActivationKeyCode: w, elementsSelectable: v, zoomOnScroll: k, zoomOnPinch: p, panOnScroll: b, panOnScrollSpeed: E, panOnScrollMode: S, zoomOnDoubleClick: C, panOnDrag: z, autoPanOnSelection: D, defaultViewport: H, translateExtent: R, minZoom: A, maxZoom: _, preventScrolling: y, onSelectionContextMenu: M, noWheelClassName: N, noPanClassName: I, disableKeyboardA11y: j, onViewportChange: O, isControlledViewport: T }) {
|
|
6445
|
-
const { nodesSelectionActive: B, userSelectionActive: $ } = ee(kg, re),
|
|
6446
|
-
return eg({ deleteKeyCode: l, multiSelectionKeyCode: g }), m.jsx(og, { onPaneContextMenu: i, elementsSelectable: v, zoomOnScroll: k, zoomOnPinch: p, panOnScroll: q, panActivationKeyPressed: F, panOnScrollSpeed: E, panOnScrollMode: S, zoomOnDoubleClick: C, panOnDrag: !
|
|
6445
|
+
const { nodesSelectionActive: B, userSelectionActive: $ } = ee(kg, re), W = Nt(c, { target: Lr }), F = Nt(x, { target: Lr }), X = F || z, q = F || b, K = d && X !== !0, L = W || $ || K;
|
|
6446
|
+
return eg({ deleteKeyCode: l, multiSelectionKeyCode: g }), m.jsx(og, { onPaneContextMenu: i, elementsSelectable: v, zoomOnScroll: k, zoomOnPinch: p, panOnScroll: q, panActivationKeyPressed: F, panOnScrollSpeed: E, panOnScrollMode: S, zoomOnDoubleClick: C, panOnDrag: !W && X, defaultViewport: H, translateExtent: R, minZoom: A, maxZoom: _, zoomActivationKeyCode: w, preventScrolling: y, noWheelClassName: N, noPanClassName: I, onViewportChange: O, isControlledViewport: T, paneClickDistance: s, selectionOnDrag: K, children: m.jsxs(sg, { onSelectionStart: u, onSelectionEnd: h, onPaneClick: t, onPaneMouseEnter: n, onPaneMouseMove: o, onPaneMouseLeave: r, onPaneContextMenu: i, onPaneScroll: a, panOnDrag: X, autoPanOnSelection: D, isSelecting: !!L, selectionMode: f, selectionKeyPressed: W, paneClickDistance: s, selectionOnDrag: K, children: [e, B && m.jsx(Sg, { onSelectionContextMenu: M, noPanClassName: I, disableKeyboardA11y: j })] }) });
|
|
6447
6447
|
}
|
|
6448
6448
|
Ca.displayName = "FlowRenderer";
|
|
6449
6449
|
const _g = P.memo(Ca), Cg = (e) => (t) => e ? co(t.nodeLookup, { x: 0, y: 0, width: t.width, height: t.height }, t.transform, !0).map((n) => n.id) : Array.from(t.nodeLookup.keys());
|
|
@@ -6502,7 +6502,7 @@ function Ig({ id: e, onClick: t, onMouseEnter: n, onMouseMove: o, onMouseLeave:
|
|
|
6502
6502
|
}), N = Sa();
|
|
6503
6503
|
if (p.hidden)
|
|
6504
6504
|
return null;
|
|
6505
|
-
const I = ye(p), j = wg(p), O = D || z || t || n || o || r, T = n ? (L) => n(L, { ...b.userNode }) : void 0, B = o ? (L) => o(L, { ...b.userNode }) : void 0, $ = r ? (L) => r(L, { ...b.userNode }) : void 0,
|
|
6505
|
+
const I = ye(p), j = wg(p), O = D || z || t || n || o || r, T = n ? (L) => n(L, { ...b.userNode }) : void 0, B = o ? (L) => o(L, { ...b.userNode }) : void 0, $ = r ? (L) => r(L, { ...b.userNode }) : void 0, W = i ? (L) => i(L, { ...b.userNode }) : void 0, F = a ? (L) => a(L, { ...b.userNode }) : void 0, X = (L) => {
|
|
6506
6506
|
const { selectNodesOnDrag: Y, nodeDragThreshold: G } = A.getState();
|
|
6507
6507
|
D && (!Y || !z || G > 0) && Un({
|
|
6508
6508
|
id: e,
|
|
@@ -6564,7 +6564,7 @@ function Ig({ id: e, onClick: t, onMouseEnter: n, onMouseMove: o, onMouseLeave:
|
|
|
6564
6564
|
visibility: _ ? "visible" : "hidden",
|
|
6565
6565
|
...p.style,
|
|
6566
6566
|
...j
|
|
6567
|
-
}, "data-id": e, "data-testid": `rf__node-${e}`, onMouseEnter: T, onMouseMove: B, onMouseLeave: $, onContextMenu:
|
|
6567
|
+
}, "data-id": e, "data-testid": `rf__node-${e}`, onMouseEnter: T, onMouseMove: B, onMouseLeave: $, onContextMenu: W, onClick: X, onDoubleClick: F, onKeyDown: R ? q : void 0, tabIndex: R ? 0 : void 0, onFocus: R ? K : void 0, role: p.ariaRole ?? (R ? "group" : void 0), "aria-roledescription": "node", "aria-describedby": g ? void 0 : `${ha}-${x}`, "aria-label": p.ariaLabel, ...p.domAttributes, children: m.jsx(cg, { value: e, children: m.jsx(C, { id: e, data: p.data, type: S, positionAbsoluteX: b.positionAbsolute.x, positionAbsoluteY: b.positionAbsolute.y, selected: p.selected ?? !1, selectable: D, draggable: z, deletable: p.deletable ?? !0, isConnectable: H, sourcePosition: p.sourcePosition, targetPosition: p.targetPosition, dragging: M, dragHandle: p.dragHandle, zIndex: b.z, parentId: p.parentId, ...I }) }) });
|
|
6568
6568
|
}
|
|
6569
6569
|
var zg = P.memo(Ig);
|
|
6570
6570
|
const Ag = (e) => ({
|
|
@@ -6730,7 +6730,7 @@ Hg.displayName = "SimpleBezierEdge";
|
|
|
6730
6730
|
za.displayName = "SimpleBezierEdgeInternal";
|
|
6731
6731
|
function Aa(e) {
|
|
6732
6732
|
return P.memo(({ id: t, sourceX: n, sourceY: o, targetX: r, targetY: i, label: a, labelStyle: s, labelShowBg: l, labelBgStyle: c, labelBgPadding: d, labelBgBorderRadius: f, style: u, sourcePosition: h = Z.Bottom, targetPosition: g = Z.Top, markerEnd: x, markerStart: w, pathOptions: v, interactionWidth: k }) => {
|
|
6733
|
-
const [p, b, E] =
|
|
6733
|
+
const [p, b, E] = Xn({
|
|
6734
6734
|
sourceX: n,
|
|
6735
6735
|
sourceY: o,
|
|
6736
6736
|
sourcePosition: h,
|
|
@@ -6796,11 +6796,11 @@ const Br = {
|
|
|
6796
6796
|
sourcePosition: null,
|
|
6797
6797
|
targetPosition: null,
|
|
6798
6798
|
zIndex: void 0
|
|
6799
|
-
}, Zg = (e, t, n) => n === Z.Left ? e - t : n === Z.Right ? e + t : e,
|
|
6799
|
+
}, Zg = (e, t, n) => n === Z.Left ? e - t : n === Z.Right ? e + t : e, Wg = (e, t, n) => n === Z.Top ? e - t : n === Z.Bottom ? e + t : e, Vr = "react-flow__edgeupdater";
|
|
6800
6800
|
function Yr({ position: e, centerX: t, centerY: n, radius: o = 10, onMouseDown: r, onMouseEnter: i, onMouseOut: a, type: s }) {
|
|
6801
|
-
return m.jsx("circle", { onMouseDown: r, onMouseEnter: i, onMouseOut: a, className: ie([Vr, `${Vr}-${s}`]), cx: Zg(t, o, e), cy:
|
|
6801
|
+
return m.jsx("circle", { onMouseDown: r, onMouseEnter: i, onMouseOut: a, className: ie([Vr, `${Vr}-${s}`]), cx: Zg(t, o, e), cy: Wg(n, o, e), r: o, stroke: "transparent", fill: "transparent" });
|
|
6802
6802
|
}
|
|
6803
|
-
function
|
|
6803
|
+
function Xg({ isReconnectable: e, reconnectRadius: t, edge: n, sourceX: o, sourceY: r, targetX: i, targetY: a, sourcePosition: s, targetPosition: l, onReconnect: c, onReconnectStart: d, onReconnectEnd: f, setReconnecting: u, setUpdateHover: h }) {
|
|
6804
6804
|
const g = ne(), x = (b, E) => {
|
|
6805
6805
|
if (b.button !== 0)
|
|
6806
6806
|
return;
|
|
@@ -6867,10 +6867,10 @@ function Kg({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
|
|
|
6867
6867
|
...te || Hr,
|
|
6868
6868
|
zIndex: ae
|
|
6869
6869
|
};
|
|
6870
|
-
}, [p.source, p.target, p.sourceHandle, p.targetHandle, p.selected, p.zIndex, v]), re),
|
|
6870
|
+
}, [p.source, p.target, p.sourceHandle, p.targetHandle, p.selected, p.zIndex, v]), re), W = P.useMemo(() => p.markerStart ? `url('#${Kn(p.markerStart, g)}')` : void 0, [p.markerStart, g]), F = P.useMemo(() => p.markerEnd ? `url('#${Kn(p.markerEnd, g)}')` : void 0, [p.markerEnd, g]);
|
|
6871
6871
|
if (p.hidden || I === null || j === null || O === null || T === null)
|
|
6872
6872
|
return null;
|
|
6873
|
-
const
|
|
6873
|
+
const X = (V) => {
|
|
6874
6874
|
const { addSelectedEdges: U, unselectNodesAndEdges: J, multiSelectionActive: te } = M.getState();
|
|
6875
6875
|
D && (M.setState({ nodesSelectionActive: !1 }), p.selected && te ? (J({ nodes: [], edges: [p] }), H.current?.blur()) : U([e])), r && r(V, p);
|
|
6876
6876
|
}, q = i ? (V) => {
|
|
@@ -6901,7 +6901,7 @@ function Kg({ id: e, edgesFocusable: t, edgesReconnectable: n, elementsSelectabl
|
|
|
6901
6901
|
updating: R,
|
|
6902
6902
|
selectable: D
|
|
6903
6903
|
}
|
|
6904
|
-
]), onClick:
|
|
6904
|
+
]), onClick: X, onDoubleClick: q, onContextMenu: K, onMouseEnter: L, onMouseMove: Y, onMouseLeave: G, onKeyDown: C ? Q : void 0, tabIndex: C ? 0 : void 0, role: p.ariaRole ?? (C ? "group" : "img"), "aria-roledescription": "edge", "data-id": e, "data-testid": `rf__edge-${e}`, "aria-label": p.ariaLabel === null ? void 0 : p.ariaLabel || `Edge from ${p.source} to ${p.target}`, "aria-describedby": C ? `${ga}-${g}` : void 0, ref: H, ...p.domAttributes, children: [!_ && m.jsx(S, { id: e, source: p.source, target: p.target, type: p.type, selected: p.selected, animated: p.animated, selectable: D, deletable: p.deletable ?? !0, label: p.label, labelStyle: p.labelStyle, labelShowBg: p.labelShowBg, labelBgStyle: p.labelBgStyle, labelBgPadding: p.labelBgPadding, labelBgBorderRadius: p.labelBgBorderRadius, sourceX: I, sourceY: j, targetX: O, targetY: T, sourcePosition: B, targetPosition: $, data: p.data, style: p.style, sourceHandleId: p.sourceHandle, targetHandleId: p.targetHandle, markerStart: W, markerEnd: F, pathOptions: "pathOptions" in p ? p.pathOptions : void 0, interactionWidth: p.interactionWidth }), z && m.jsx(Xg, { edge: p, isReconnectable: z, reconnectRadius: d, onReconnect: f, onReconnectStart: u, onReconnectEnd: h, sourceX: I, sourceY: j, targetX: O, targetY: T, sourcePosition: B, targetPosition: $, setUpdateHover: A, setReconnecting: y })] }) });
|
|
6905
6905
|
}
|
|
6906
6906
|
var qg = P.memo(Kg);
|
|
6907
6907
|
const Gg = (e) => ({
|
|
@@ -6985,13 +6985,13 @@ const Va = ({ style: e, type: t = Re.Bezier, CustomComponent: n, isValid: o }) =
|
|
|
6985
6985
|
[g] = Pa(x);
|
|
6986
6986
|
break;
|
|
6987
6987
|
case Re.Step:
|
|
6988
|
-
[g] =
|
|
6988
|
+
[g] = Xn({
|
|
6989
6989
|
...x,
|
|
6990
6990
|
borderRadius: 0
|
|
6991
6991
|
});
|
|
6992
6992
|
break;
|
|
6993
6993
|
case Re.SmoothStep:
|
|
6994
|
-
[g] =
|
|
6994
|
+
[g] = Xn(x);
|
|
6995
6995
|
break;
|
|
6996
6996
|
default:
|
|
6997
6997
|
[g] = Ji(x);
|
|
@@ -7008,11 +7008,11 @@ function lp() {
|
|
|
7008
7008
|
ne(), P.useRef(!1), P.useEffect(() => {
|
|
7009
7009
|
}, []);
|
|
7010
7010
|
}
|
|
7011
|
-
function Ya({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: o, onEdgeClick: r, onNodeDoubleClick: i, onEdgeDoubleClick: a, onNodeMouseEnter: s, onNodeMouseMove: l, onNodeMouseLeave: c, onNodeContextMenu: d, onSelectionContextMenu: f, onSelectionStart: u, onSelectionEnd: h, connectionLineType: g, connectionLineStyle: x, connectionLineComponent: w, connectionLineContainerStyle: v, selectionKeyCode: k, selectionOnDrag: p, selectionMode: b, multiSelectionKeyCode: E, panActivationKeyCode: S, zoomActivationKeyCode: C, deleteKeyCode: z, onlyRenderVisibleElements: D, elementsSelectable: H, defaultViewport: R, translateExtent: A, minZoom: _, maxZoom: y, preventScrolling: M, defaultMarkerColor: N, zoomOnScroll: I, zoomOnPinch: j, panOnScroll: O, panOnScrollSpeed: T, panOnScrollMode: B, zoomOnDoubleClick: $, panOnDrag:
|
|
7012
|
-
return Zr(e), Zr(t), lp(), Jg(n), tp(Ee), m.jsx(_g, { onPaneClick:
|
|
7011
|
+
function Ya({ nodeTypes: e, edgeTypes: t, onInit: n, onNodeClick: o, onEdgeClick: r, onNodeDoubleClick: i, onEdgeDoubleClick: a, onNodeMouseEnter: s, onNodeMouseMove: l, onNodeMouseLeave: c, onNodeContextMenu: d, onSelectionContextMenu: f, onSelectionStart: u, onSelectionEnd: h, connectionLineType: g, connectionLineStyle: x, connectionLineComponent: w, connectionLineContainerStyle: v, selectionKeyCode: k, selectionOnDrag: p, selectionMode: b, multiSelectionKeyCode: E, panActivationKeyCode: S, zoomActivationKeyCode: C, deleteKeyCode: z, onlyRenderVisibleElements: D, elementsSelectable: H, defaultViewport: R, translateExtent: A, minZoom: _, maxZoom: y, preventScrolling: M, defaultMarkerColor: N, zoomOnScroll: I, zoomOnPinch: j, panOnScroll: O, panOnScrollSpeed: T, panOnScrollMode: B, zoomOnDoubleClick: $, panOnDrag: W, autoPanOnSelection: F, onPaneClick: X, onPaneMouseEnter: q, onPaneMouseMove: K, onPaneMouseLeave: L, onPaneScroll: Y, onPaneContextMenu: G, paneClickDistance: Q, nodeClickDistance: V, onEdgeContextMenu: U, onEdgeMouseEnter: J, onEdgeMouseMove: te, onEdgeMouseLeave: ae, reconnectRadius: be, onReconnect: ve, onReconnectStart: we, onReconnectEnd: Te, noDragClassName: ze, noWheelClassName: dt, noPanClassName: $e, disableKeyboardA11y: Be, nodeExtent: de, rfId: Ne, viewport: Ee, onViewportChange: He, nodesDraggable: Sn }) {
|
|
7012
|
+
return Zr(e), Zr(t), lp(), Jg(n), tp(Ee), m.jsx(_g, { onPaneClick: X, onPaneMouseEnter: q, onPaneMouseMove: K, onPaneMouseLeave: L, onPaneContextMenu: G, onPaneScroll: Y, paneClickDistance: Q, deleteKeyCode: z, selectionKeyCode: k, selectionOnDrag: p, selectionMode: b, onSelectionStart: u, onSelectionEnd: h, multiSelectionKeyCode: E, panActivationKeyCode: S, zoomActivationKeyCode: C, elementsSelectable: H, zoomOnScroll: I, zoomOnPinch: j, zoomOnDoubleClick: $, panOnScroll: O, panOnScrollSpeed: T, panOnScrollMode: B, panOnDrag: W, autoPanOnSelection: F, defaultViewport: R, translateExtent: A, minZoom: _, maxZoom: y, onSelectionContextMenu: f, preventScrolling: M, noDragClassName: ze, noWheelClassName: dt, noPanClassName: $e, disableKeyboardA11y: Be, onViewportChange: He, isControlledViewport: !!Ee, children: m.jsxs(Qg, { children: [m.jsx(Ug, { edgeTypes: t, onEdgeClick: r, onEdgeDoubleClick: a, onReconnect: ve, onReconnectStart: we, onReconnectEnd: Te, onlyRenderVisibleElements: D, onEdgeContextMenu: U, onEdgeMouseEnter: J, onEdgeMouseMove: te, onEdgeMouseLeave: ae, reconnectRadius: be, defaultMarkerColor: N, noPanClassName: $e, disableKeyboardA11y: Be, rfId: Ne }), m.jsx(ap, { style: x, type: g, component: w, containerStyle: v }), m.jsx("div", { className: "react-flow__edgelabel-renderer" }), m.jsx(Dg, { nodeTypes: e, onNodeClick: o, onNodeDoubleClick: i, onNodeMouseEnter: s, onNodeMouseMove: l, onNodeMouseLeave: c, onNodeContextMenu: d, nodeClickDistance: V, onlyRenderVisibleElements: D, noPanClassName: $e, noDragClassName: ze, disableKeyboardA11y: Be, nodeExtent: de, rfId: Ne, nodesDraggable: Sn }), m.jsx("div", { className: "react-flow__viewport-portal" })] }) });
|
|
7013
7013
|
}
|
|
7014
7014
|
Ya.displayName = "GraphView";
|
|
7015
|
-
const cp = P.memo(Ya), dp = Fi(),
|
|
7015
|
+
const cp = P.memo(Ya), dp = Fi(), Wr = ({ nodes: e, edges: t, defaultNodes: n, defaultEdges: o, width: r, height: i, fitView: a, fitViewOptions: s, minZoom: l = 0.5, maxZoom: c = 2, nodeOrigin: d, nodeExtent: f, zIndexMode: u = "basic" } = {}) => {
|
|
7016
7016
|
const h = /* @__PURE__ */ new Map(), g = /* @__PURE__ */ new Map(), x = /* @__PURE__ */ new Map(), w = /* @__PURE__ */ new Map(), v = o ?? t ?? [], k = n ?? e ?? [], p = d ?? [0, 0], b = f ?? St;
|
|
7017
7017
|
na(x, w, v);
|
|
7018
7018
|
const { nodesInitialized: E } = qn(k, h, g, {
|
|
@@ -7105,7 +7105,7 @@ const cp = P.memo(Ya), dp = Fi(), Xr = ({ nodes: e, edges: t, defaultNodes: n, d
|
|
|
7105
7105
|
}, k), p?.resolve(!0), h({ fitViewResolver: null }));
|
|
7106
7106
|
}
|
|
7107
7107
|
return {
|
|
7108
|
-
...
|
|
7108
|
+
...Wr({
|
|
7109
7109
|
nodes: e,
|
|
7110
7110
|
edges: t,
|
|
7111
7111
|
width: r,
|
|
@@ -7297,7 +7297,7 @@ const cp = P.memo(Ya), dp = Fi(), Xr = ({ nodes: e, edges: t, defaultNodes: n, d
|
|
|
7297
7297
|
updateConnection: (w) => {
|
|
7298
7298
|
h({ connection: w });
|
|
7299
7299
|
},
|
|
7300
|
-
reset: () => h({ ...
|
|
7300
|
+
reset: () => h({ ...Wr() })
|
|
7301
7301
|
};
|
|
7302
7302
|
}, Object.is);
|
|
7303
7303
|
function Fa({ initialNodes: e, initialEdges: t, defaultNodes: n, defaultEdges: o, initialWidth: r, initialHeight: i, initialMinZoom: a, initialMaxZoom: s, initialFitViewOptions: l, fitView: c, nodeOrigin: d, nodeExtent: f, zIndexMode: u, children: h }) {
|
|
@@ -7328,11 +7328,11 @@ const hp = {
|
|
|
7328
7328
|
position: "relative",
|
|
7329
7329
|
zIndex: 0
|
|
7330
7330
|
};
|
|
7331
|
-
function gp({ nodes: e, edges: t, defaultNodes: n, defaultEdges: o, className: r, nodeTypes: i, edgeTypes: a, onNodeClick: s, onEdgeClick: l, onInit: c, onMove: d, onMoveStart: f, onMoveEnd: u, onConnect: h, onConnectStart: g, onConnectEnd: x, onClickConnectStart: w, onClickConnectEnd: v, onNodeMouseEnter: k, onNodeMouseMove: p, onNodeMouseLeave: b, onNodeContextMenu: E, onNodeDoubleClick: S, onNodeDragStart: C, onNodeDrag: z, onNodeDragStop: D, onNodesDelete: H, onEdgesDelete: R, onDelete: A, onSelectionChange: _, onSelectionDragStart: y, onSelectionDrag: M, onSelectionDragStop: N, onSelectionContextMenu: I, onSelectionStart: j, onSelectionEnd: O, onBeforeDelete: T, connectionMode: B, connectionLineType: $ = Re.Bezier, connectionLineStyle:
|
|
7331
|
+
function gp({ nodes: e, edges: t, defaultNodes: n, defaultEdges: o, className: r, nodeTypes: i, edgeTypes: a, onNodeClick: s, onEdgeClick: l, onInit: c, onMove: d, onMoveStart: f, onMoveEnd: u, onConnect: h, onConnectStart: g, onConnectEnd: x, onClickConnectStart: w, onClickConnectEnd: v, onNodeMouseEnter: k, onNodeMouseMove: p, onNodeMouseLeave: b, onNodeContextMenu: E, onNodeDoubleClick: S, onNodeDragStart: C, onNodeDrag: z, onNodeDragStop: D, onNodesDelete: H, onEdgesDelete: R, onDelete: A, onSelectionChange: _, onSelectionDragStart: y, onSelectionDrag: M, onSelectionDragStop: N, onSelectionContextMenu: I, onSelectionStart: j, onSelectionEnd: O, onBeforeDelete: T, connectionMode: B, connectionLineType: $ = Re.Bezier, connectionLineStyle: W, connectionLineComponent: F, connectionLineContainerStyle: X, deleteKeyCode: q = "Backspace", selectionKeyCode: K = "Shift", selectionOnDrag: L = !1, selectionMode: Y = kt.Full, panActivationKeyCode: G = "Space", multiSelectionKeyCode: Q = Ct() ? "Meta" : "Control", zoomActivationKeyCode: V = Ct() ? "Meta" : "Control", snapToGrid: U, snapGrid: J, onlyRenderVisibleElements: te = !1, selectNodesOnDrag: ae, nodesDraggable: be, autoPanOnNodeFocus: ve, nodesConnectable: we, nodesFocusable: Te, nodeOrigin: ze = pa, edgesFocusable: dt, edgesReconnectable: $e, elementsSelectable: Be = !0, defaultViewport: de = Th, minZoom: Ne = 0.5, maxZoom: Ee = 2, translateExtent: He = St, preventScrolling: Sn = !0, nodeExtent: kn, defaultMarkerColor: qa = "#b1b1b7", zoomOnScroll: Ga = !0, zoomOnPinch: Ua = !0, panOnScroll: Qa = !1, panOnScrollSpeed: Ja = 0.5, panOnScrollMode: es = Ze.Free, zoomOnDoubleClick: ts = !0, panOnDrag: ns = !0, onPaneClick: os, onPaneMouseEnter: rs, onPaneMouseMove: is, onPaneMouseLeave: as, onPaneScroll: ss, onPaneContextMenu: ls, paneClickDistance: cs = 1, nodeClickDistance: ds = 0, children: us, onReconnect: fs, onReconnectStart: hs, onReconnectEnd: gs, onEdgeContextMenu: ps, onEdgeDoubleClick: ms, onEdgeMouseEnter: ys, onEdgeMouseMove: bs, onEdgeMouseLeave: vs, reconnectRadius: ws = 10, onNodesChange: xs, onEdgesChange: Ss, noDragClassName: ks = "nodrag", noWheelClassName: _s = "nowheel", noPanClassName: xo = "nopan", fitView: So, fitViewOptions: ko, connectOnClick: Cs, attributionPosition: Ns, proOptions: Es, defaultEdgeOptions: Ms, elevateNodesOnSelect: Ps = !0, elevateEdgesOnSelect: Is = !1, disableKeyboardA11y: _o = !1, autoPanOnConnect: zs, autoPanOnNodeDrag: As, autoPanOnSelection: Ds = !0, autoPanSpeed: Os, connectionRadius: js, isValidConnection: Rs, onError: Ls, style: Ts, id: Co, nodeDragThreshold: $s, connectionDragThreshold: Bs, viewport: Hs, onViewportChange: Vs, width: Ys, height: Fs, colorMode: Zs = "light", debug: Ws, onScroll: No, ariaLabelConfig: Xs, zIndexMode: Eo = "basic", ...Ks }, qs) {
|
|
7332
7332
|
const _n = Co || "1", Gs = Vh(Zs), Us = P.useCallback((Mo) => {
|
|
7333
7333
|
Mo.currentTarget.scrollTo({ top: 0, left: 0, behavior: "instant" }), No?.(Mo);
|
|
7334
7334
|
}, [No]);
|
|
7335
|
-
return m.jsx("div", { "data-testid": "rf__wrapper", ...Ks, onScroll: Us, style: { ...Ts, ...hp }, ref: qs, className: ie(["react-flow", r, Gs]), id: Co, role: "application", children: m.jsxs(fp, { nodes: e, edges: t, width: Ys, height: Fs, fitView: So, fitViewOptions: ko, minZoom: Ne, maxZoom: Ee, nodeOrigin: ze, nodeExtent: kn, zIndexMode: Eo, children: [m.jsx(Hh, { nodes: e, edges: t, defaultNodes: n, defaultEdges: o, onConnect: h, onConnectStart: g, onConnectEnd: x, onClickConnectStart: w, onClickConnectEnd: v, nodesDraggable: be, autoPanOnNodeFocus: ve, nodesConnectable: we, nodesFocusable: Te, edgesFocusable: dt, edgesReconnectable: $e, elementsSelectable: Be, elevateNodesOnSelect: Ps, elevateEdgesOnSelect: Is, minZoom: Ne, maxZoom: Ee, nodeExtent: kn, onNodesChange: xs, onEdgesChange: Ss, snapToGrid: U, snapGrid: J, connectionMode: B, translateExtent: He, connectOnClick: Cs, defaultEdgeOptions: Ms, fitView: So, fitViewOptions: ko, onNodesDelete: H, onEdgesDelete: R, onDelete: A, onNodeDragStart: C, onNodeDrag: z, onNodeDragStop: D, onSelectionDrag: M, onSelectionDragStart: y, onSelectionDragStop: N, onMove: d, onMoveStart: f, onMoveEnd: u, noPanClassName: xo, nodeOrigin: ze, rfId: _n, autoPanOnConnect: zs, autoPanOnNodeDrag: As, autoPanSpeed: Os, onError: Ls, connectionRadius: js, isValidConnection: Rs, selectNodesOnDrag: ae, nodeDragThreshold: $s, connectionDragThreshold: Bs, onBeforeDelete: T, debug:
|
|
7335
|
+
return m.jsx("div", { "data-testid": "rf__wrapper", ...Ks, onScroll: Us, style: { ...Ts, ...hp }, ref: qs, className: ie(["react-flow", r, Gs]), id: Co, role: "application", children: m.jsxs(fp, { nodes: e, edges: t, width: Ys, height: Fs, fitView: So, fitViewOptions: ko, minZoom: Ne, maxZoom: Ee, nodeOrigin: ze, nodeExtent: kn, zIndexMode: Eo, children: [m.jsx(Hh, { nodes: e, edges: t, defaultNodes: n, defaultEdges: o, onConnect: h, onConnectStart: g, onConnectEnd: x, onClickConnectStart: w, onClickConnectEnd: v, nodesDraggable: be, autoPanOnNodeFocus: ve, nodesConnectable: we, nodesFocusable: Te, edgesFocusable: dt, edgesReconnectable: $e, elementsSelectable: Be, elevateNodesOnSelect: Ps, elevateEdgesOnSelect: Is, minZoom: Ne, maxZoom: Ee, nodeExtent: kn, onNodesChange: xs, onEdgesChange: Ss, snapToGrid: U, snapGrid: J, connectionMode: B, translateExtent: He, connectOnClick: Cs, defaultEdgeOptions: Ms, fitView: So, fitViewOptions: ko, onNodesDelete: H, onEdgesDelete: R, onDelete: A, onNodeDragStart: C, onNodeDrag: z, onNodeDragStop: D, onSelectionDrag: M, onSelectionDragStart: y, onSelectionDragStop: N, onMove: d, onMoveStart: f, onMoveEnd: u, noPanClassName: xo, nodeOrigin: ze, rfId: _n, autoPanOnConnect: zs, autoPanOnNodeDrag: As, autoPanSpeed: Os, onError: Ls, connectionRadius: js, isValidConnection: Rs, selectNodesOnDrag: ae, nodeDragThreshold: $s, connectionDragThreshold: Bs, onBeforeDelete: T, debug: Ws, ariaLabelConfig: Xs, zIndexMode: Eo }), m.jsx(cp, { onInit: c, onNodeClick: s, onEdgeClick: l, onNodeMouseEnter: k, onNodeMouseMove: p, onNodeMouseLeave: b, onNodeContextMenu: E, onNodeDoubleClick: S, nodeTypes: i, edgeTypes: a, connectionLineType: $, connectionLineStyle: W, connectionLineComponent: F, connectionLineContainerStyle: X, selectionKeyCode: K, selectionOnDrag: L, selectionMode: Y, deleteKeyCode: q, multiSelectionKeyCode: Q, panActivationKeyCode: G, zoomActivationKeyCode: V, onlyRenderVisibleElements: te, defaultViewport: de, translateExtent: He, minZoom: Ne, maxZoom: Ee, preventScrolling: Sn, zoomOnScroll: Ga, zoomOnPinch: Ua, zoomOnDoubleClick: ts, panOnScroll: Qa, panOnScrollSpeed: Ja, panOnScrollMode: es, panOnDrag: ns, autoPanOnSelection: Ds, onPaneClick: os, onPaneMouseEnter: rs, onPaneMouseMove: is, onPaneMouseLeave: as, onPaneScroll: ss, onPaneContextMenu: ls, paneClickDistance: cs, nodeClickDistance: ds, onSelectionContextMenu: I, onSelectionStart: j, onSelectionEnd: O, onReconnect: fs, onReconnectStart: hs, onReconnectEnd: gs, onEdgeContextMenu: ps, onEdgeDoubleClick: ms, onEdgeMouseEnter: ys, onEdgeMouseMove: bs, onEdgeMouseLeave: vs, reconnectRadius: ws, defaultMarkerColor: qa, noDragClassName: ks, noWheelClassName: _s, noPanClassName: xo, rfId: _n, disableKeyboardA11y: _o, nodeExtent: kn, viewport: Hs, onViewportChange: Vs, nodesDraggable: be }), m.jsx(Lh, { onSelectionChange: _ }), us, m.jsx(Ah, { proOptions: Es, position: Ns }), m.jsx(zh, { rfId: _n, disableKeyboardA11y: _o })] }) });
|
|
7336
7336
|
}
|
|
7337
7337
|
var pp = ba(gp);
|
|
7338
7338
|
function mp({ dimensions: e, lineWidth: t, variant: n, className: o }) {
|
|
@@ -7402,7 +7402,7 @@ const Np = (e) => ({
|
|
|
7402
7402
|
maxZoomReached: e.transform[2] >= e.maxZoom,
|
|
7403
7403
|
ariaLabelConfig: e.ariaLabelConfig
|
|
7404
7404
|
});
|
|
7405
|
-
function
|
|
7405
|
+
function Wa({ style: e, showZoom: t = !0, showFitView: n = !0, showInteractive: o = !0, fitViewOptions: r, onZoomIn: i, onZoomOut: a, onFitView: s, onInteractiveChange: l, className: c, children: d, position: f = "bottom-left", orientation: u = "vertical", "aria-label": h }) {
|
|
7406
7406
|
const g = ne(), { isInteractive: x, minZoomReached: w, maxZoomReached: v, ariaLabelConfig: k } = ee(Np, re), { zoomIn: p, zoomOut: b, fitView: E } = vo(), S = () => {
|
|
7407
7407
|
p(), i?.();
|
|
7408
7408
|
}, C = () => {
|
|
@@ -7418,8 +7418,8 @@ function Xa({ style: e, showZoom: t = !0, showFitView: n = !0, showInteractive:
|
|
|
7418
7418
|
};
|
|
7419
7419
|
return m.jsxs(vn, { className: ie(["react-flow__controls", u === "horizontal" ? "horizontal" : "vertical", c]), position: f, style: e, "data-testid": "rf__controls", "aria-label": h ?? k["controls.ariaLabel"], children: [t && m.jsxs(m.Fragment, { children: [m.jsx(Vt, { onClick: S, className: "react-flow__controls-zoomin", title: k["controls.zoomIn.ariaLabel"], "aria-label": k["controls.zoomIn.ariaLabel"], disabled: v, children: m.jsx(xp, {}) }), m.jsx(Vt, { onClick: C, className: "react-flow__controls-zoomout", title: k["controls.zoomOut.ariaLabel"], "aria-label": k["controls.zoomOut.ariaLabel"], disabled: w, children: m.jsx(Sp, {}) })] }), n && m.jsx(Vt, { className: "react-flow__controls-fitview", onClick: z, title: k["controls.fitView.ariaLabel"], "aria-label": k["controls.fitView.ariaLabel"], children: m.jsx(kp, {}) }), o && m.jsx(Vt, { className: "react-flow__controls-interactive", onClick: D, title: k["controls.interactive.ariaLabel"], "aria-label": k["controls.interactive.ariaLabel"], children: x ? m.jsx(Cp, {}) : m.jsx(_p, {}) }), d] });
|
|
7420
7420
|
}
|
|
7421
|
-
|
|
7422
|
-
const Ep = P.memo(
|
|
7421
|
+
Wa.displayName = "Controls";
|
|
7422
|
+
const Ep = P.memo(Wa);
|
|
7423
7423
|
function Mp({ id: e, x: t, y: n, width: o, height: r, style: i, color: a, strokeColor: s, strokeWidth: l, className: c, borderRadius: d, shapeRendering: f, selected: u, onClick: h }) {
|
|
7424
7424
|
const { background: g, backgroundColor: x } = i || {}, w = a || g || x;
|
|
7425
7425
|
return m.jsx("rect", { className: ie(["react-flow__minimap-node", { selected: u }, c]), x: t, y: n, rx: d, ry: d, width: o, height: r, style: {
|
|
@@ -7489,8 +7489,8 @@ const jp = 200, Rp = 150, Lp = (e) => !e.hidden, Tp = (e) => {
|
|
|
7489
7489
|
flowHeight: e.height,
|
|
7490
7490
|
ariaLabelConfig: e.ariaLabelConfig
|
|
7491
7491
|
};
|
|
7492
|
-
},
|
|
7493
|
-
function
|
|
7492
|
+
}, Xr = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, $p = (e, t) => Xr(e.viewBB, t.viewBB) && Xr(e.boundingRect, t.boundingRect) && e.rfId === t.rfId && e.panZoom === t.panZoom && e.translateExtent === t.translateExtent && e.flowWidth === t.flowWidth && e.flowHeight === t.flowHeight && e.ariaLabelConfig === t.ariaLabelConfig, Bp = "react-flow__minimap-desc";
|
|
7493
|
+
function Xa({
|
|
7494
7494
|
style: e,
|
|
7495
7495
|
className: t,
|
|
7496
7496
|
nodeStrokeColor: n,
|
|
@@ -7517,7 +7517,7 @@ function Wa({
|
|
|
7517
7517
|
zoomStep: p = 1,
|
|
7518
7518
|
offsetScale: b = 5
|
|
7519
7519
|
}) {
|
|
7520
|
-
const E = ne(), S = P.useRef(null), { boundingRect: C, viewBB: z, rfId: D, panZoom: H, translateExtent: R, flowWidth: A, flowHeight: _, ariaLabelConfig: y } = ee(Tp, $p), M = e?.width ?? jp, N = e?.height ?? Rp, I = C.width / M, j = C.height / N, O = Math.max(I, j), T = O * M, B = O * N, $ = b * O,
|
|
7520
|
+
const E = ne(), S = P.useRef(null), { boundingRect: C, viewBB: z, rfId: D, panZoom: H, translateExtent: R, flowWidth: A, flowHeight: _, ariaLabelConfig: y } = ee(Tp, $p), M = e?.width ?? jp, N = e?.height ?? Rp, I = C.width / M, j = C.height / N, O = Math.max(I, j), T = O * M, B = O * N, $ = b * O, W = C.x - (T - C.width) / 2 - $, F = C.y - (B - C.height) / 2 - $, X = T + $ * 2, q = B + $ * 2, K = `${Bp}-${D}`, L = P.useRef(0), Y = P.useRef();
|
|
7521
7521
|
L.current = O, P.useEffect(() => {
|
|
7522
7522
|
if (S.current && H)
|
|
7523
7523
|
return Y.current = Qf({
|
|
@@ -7555,11 +7555,11 @@ function Wa({
|
|
|
7555
7555
|
"--xy-minimap-node-background-color-props": typeof o == "string" ? o : void 0,
|
|
7556
7556
|
"--xy-minimap-node-stroke-color-props": typeof n == "string" ? n : void 0,
|
|
7557
7557
|
"--xy-minimap-node-stroke-width-props": typeof a == "number" ? a : void 0
|
|
7558
|
-
}, className: ie(["react-flow__minimap", t]), "data-testid": "rf__minimap", children: m.jsxs("svg", { width: M, height: N, viewBox: `${
|
|
7558
|
+
}, className: ie(["react-flow__minimap", t]), "data-testid": "rf__minimap", children: m.jsxs("svg", { width: M, height: N, viewBox: `${W} ${F} ${X} ${q}`, className: "react-flow__minimap-svg", role: "img", "aria-labelledby": K, ref: S, onClick: G, children: [V && m.jsx("title", { id: K, children: V }), m.jsx(Op, { onClick: Q, nodeColor: o, nodeStrokeColor: n, nodeBorderRadius: i, nodeClassName: r, nodeStrokeWidth: a, nodeComponent: s }), m.jsx("path", { className: "react-flow__minimap-mask", d: `M${W - $},${F - $}h${X + $ * 2}v${q + $ * 2}h${-X - $ * 2}z
|
|
7559
7559
|
M${z.x},${z.y}h${z.width}v${z.height}h${-z.width}z`, fillRule: "evenodd", pointerEvents: "none" })] }) });
|
|
7560
7560
|
}
|
|
7561
|
-
|
|
7562
|
-
const Hp = P.memo(
|
|
7561
|
+
Xa.displayName = "MiniMap";
|
|
7562
|
+
const Hp = P.memo(Xa), Vp = (e) => (t) => e ? `${Math.max(1 / t.transform[2], 1)}` : void 0, Yp = {
|
|
7563
7563
|
[lt.Line]: "right",
|
|
7564
7564
|
[lt.Handle]: "bottom-right"
|
|
7565
7565
|
};
|
|
@@ -7584,18 +7584,18 @@ function Fp({ nodeId: e, position: t, variant: n = lt.Handle, className: o, styl
|
|
|
7584
7584
|
onChange: (R, A) => {
|
|
7585
7585
|
const { triggerNodeChanges: _, nodeLookup: y, parentLookup: M, nodeOrigin: N } = b.getState(), I = [], j = { x: R.x, y: R.y }, O = y.get(p);
|
|
7586
7586
|
if (O && O.expandParent && O.parentId) {
|
|
7587
|
-
const T = O.origin ?? N, B = R.width ?? O.measured.width ?? 0, $ = R.height ?? O.measured.height ?? 0,
|
|
7587
|
+
const T = O.origin ?? N, B = R.width ?? O.measured.width ?? 0, $ = R.height ?? O.measured.height ?? 0, W = {
|
|
7588
7588
|
id: O.id,
|
|
7589
7589
|
parentId: O.parentId,
|
|
7590
7590
|
rect: {
|
|
7591
7591
|
width: B,
|
|
7592
7592
|
height: $,
|
|
7593
|
-
...
|
|
7593
|
+
...Wi({
|
|
7594
7594
|
x: R.x ?? O.position.x,
|
|
7595
7595
|
y: R.y ?? O.position.y
|
|
7596
7596
|
}, { width: B, height: $ }, O.parentId, y, T)
|
|
7597
7597
|
}
|
|
7598
|
-
}, F = bo([
|
|
7598
|
+
}, F = bo([W], y, M, N);
|
|
7599
7599
|
I.push(...F), j.x = R.x ? Math.max(T[0] * B, R.x) : void 0, j.y = R.y ? Math.max(T[1] * $, R.y) : void 0;
|
|
7600
7600
|
}
|
|
7601
7601
|
if (j.x !== void 0 && j.y !== void 0) {
|
|
@@ -7699,7 +7699,7 @@ const Zp = ({
|
|
|
7699
7699
|
]
|
|
7700
7700
|
}
|
|
7701
7701
|
);
|
|
7702
|
-
},
|
|
7702
|
+
}, Wp = { bit: Zp }, Xp = 400, ln = 280, Ka = 0.6, Kr = (e, t) => {
|
|
7703
7703
|
const n = Math.max(ln, t * Ka);
|
|
7704
7704
|
return Math.round(Math.min(Math.max(e, ln), n));
|
|
7705
7705
|
}, Kp = 16, qp = 64, Gp = ({
|
|
@@ -7762,7 +7762,7 @@ const Zp = ({
|
|
|
7762
7762
|
onError: (_) => s.current.onError?.(_)
|
|
7763
7763
|
}),
|
|
7764
7764
|
[]
|
|
7765
|
-
), c = Jn(l), d = Ur(t), [f, u] = P.useState(!1), [h, g] = P.useState(null), [x, w] = P.useState(
|
|
7765
|
+
), c = Jn(l), d = Ur(t), [f, u] = P.useState(!1), [h, g] = P.useState(null), [x, w] = P.useState(Xp), v = qr(["palette"]), k = qr(), p = P.useRef(null), b = P.useCallback(
|
|
7766
7766
|
(_, y) => ke(_e, _, d, y),
|
|
7767
7767
|
[d]
|
|
7768
7768
|
);
|
|
@@ -7907,7 +7907,7 @@ const Zp = ({
|
|
|
7907
7907
|
{
|
|
7908
7908
|
nodes: z,
|
|
7909
7909
|
edges: H,
|
|
7910
|
-
nodeTypes:
|
|
7910
|
+
nodeTypes: Wp,
|
|
7911
7911
|
nodesDraggable: !n,
|
|
7912
7912
|
nodesConnectable: !n,
|
|
7913
7913
|
edgesReconnectable: !n,
|